/* BreakLobby Poker Guide
   A fully isolated, in-app learning surface. All guide styles are prefixed so
   the live Poker table and its game controls remain untouched. */

:root {
  --poker-guide-focus: #fff2ba;
}

.hybrid-poker-controls > .hybrid-poker-guide-trigger,
.hybrid-poker-guide-trigger {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px !important;
  overflow: hidden;
  border: 1px solid #d9ad52 !important;
  border-radius: 11px !important;
  color: #fff2c7 !important;
  background:
    linear-gradient(135deg, rgba(255, 226, 145, 0.12), transparent 42%),
    linear-gradient(135deg, #6b1320, #28070d 62%, #0b0807) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 190, 0.2),
    inset 0 0 0 1px rgba(84, 9, 18, 0.72),
    0 8px 18px rgba(0, 0, 0, 0.28) !important;
  font: 950 clamp(0.68rem, 0.95vw, 0.82rem)/1.05 Inter, system-ui, sans-serif;
  letter-spacing: 0.105em !important;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease !important;
}

.hybrid-poker-guide-trigger::before {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  content: "?";
  border: 1px solid rgba(255, 235, 174, 0.76);
  border-radius: 50%;
  color: #2a1308;
  background: linear-gradient(145deg, #fff0af, #bd7b26);
  box-shadow: 0 0 15px rgba(230, 178, 70, 0.23);
  font: 950 0.76rem/1 Georgia, serif;
  letter-spacing: 0;
}

.hybrid-poker-guide-trigger::after {
  content: "RULES  •  RANKINGS  •  QUIZ";
  color: rgba(249, 218, 145, 0.68);
  font-size: clamp(0.42rem, 0.55vw, 0.5rem);
  font-weight: 850;
  letter-spacing: 0.09em;
}

.hybrid-poker-guide-trigger:hover {
  border-color: #f0cb70 !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 205, 0.3),
    0 0 0 2px rgba(231, 183, 79, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.34) !important;
}

.hybrid-poker-guide-trigger:active {
  filter: brightness(0.94);
  transform: translateY(1px) scale(0.995);
}

.hybrid-poker-guide-trigger:focus-visible {
  outline: 3px solid var(--poker-guide-focus);
  outline-offset: 3px;
  border-color: #fff0a8 !important;
}

#pokerGuideOverlay {
  --poker-guide-black: #060505;
  --poker-guide-black-soft: #100a0b;
  --poker-guide-burgundy: #5f101c;
  --poker-guide-burgundy-deep: #26060c;
  --poker-guide-burgundy-bright: #8f1c2d;
  --poker-guide-gold: #d6a94d;
  --poker-guide-gold-bright: #f2cf78;
  --poker-guide-gold-muted: #9b7131;
  --poker-guide-ivory: #fff4d6;
  --poker-guide-ivory-muted: #d9c49c;
  --poker-guide-green: #83cca0;
  --poker-guide-red: #c51c2e;
  --poker-guide-panel: rgba(18, 8, 10, 0.94);
  --poker-guide-line: rgba(218, 171, 78, 0.27);
  --poker-guide-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
  --poker-guide-card-width: clamp(52px, 5.5vw, 78px);
  position: fixed;
  inset: 0;
  z-index: 120;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: stretch;
  padding:
    max(6px, env(safe-area-inset-top))
    max(6px, env(safe-area-inset-right))
    max(6px, env(safe-area-inset-bottom))
    max(6px, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--poker-guide-ivory);
  background:
    radial-gradient(circle at 14% 10%, rgba(180, 34, 50, 0.22), transparent 30%),
    radial-gradient(circle at 86% 88%, rgba(208, 160, 61, 0.13), transparent 29%),
    linear-gradient(135deg, #050404, #26070c 48%, #090606);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  direction: ltr;
  animation: pokerGuideFadeIn 180ms ease both;
}

#pokerGuideOverlay[hidden] {
  display: none !important;
}

#pokerGuideOverlay,
#pokerGuideOverlay *,
#pokerGuideOverlay *::before,
#pokerGuideOverlay *::after {
  box-sizing: border-box;
}

#pokerGuideOverlay::before,
#pokerGuideOverlay::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

#pokerGuideOverlay::before {
  inset: 0;
  opacity: 0.24;
  background:
    repeating-linear-gradient(117deg, transparent 0 27px, rgba(255, 255, 255, 0.02) 28px 29px),
    repeating-linear-gradient(27deg, transparent 0 33px, rgba(215, 168, 68, 0.016) 34px 35px);
}

#pokerGuideOverlay::after {
  width: min(52vw, 720px);
  aspect-ratio: 1;
  right: -16vw;
  bottom: -55%;
  border: 1px solid rgba(221, 172, 74, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(126, 19, 31, 0.035),
    0 0 0 76px rgba(215, 169, 72, 0.018);
}

.poker-guide-shell {
  position: relative;
  isolation: isolate;
  width: min(1580px, 100%);
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(231, 189, 96, 0.58);
  border-radius: clamp(14px, 1.8vw, 26px);
  background:
    radial-gradient(circle at 50% -30%, rgba(133, 27, 40, 0.34), transparent 47%),
    linear-gradient(155deg, rgba(29, 8, 12, 0.985), rgba(6, 5, 5, 0.99) 65%);
  box-shadow:
    var(--poker-guide-shadow),
    inset 0 0 0 3px rgba(8, 5, 4, 0.78),
    inset 0 0 80px rgba(146, 24, 38, 0.1);
}

.poker-guide-shell::before {
  position: absolute;
  inset: 7px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(226, 179, 78, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.poker-guide-header {
  position: relative;
  z-index: 8;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  padding:
    clamp(12px, 1.65vw, 22px)
    clamp(13px, 2vw, 30px);
  border-bottom: 1px solid var(--poker-guide-line);
  background:
    linear-gradient(90deg, rgba(17, 7, 8, 0.98), rgba(83, 14, 25, 0.72) 48%, rgba(16, 8, 8, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.018) 35px 36px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.poker-guide-header::after {
  position: absolute;
  right: clamp(12px, 2vw, 30px);
  bottom: -1px;
  left: clamp(12px, 2vw, 30px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--poker-guide-gold), transparent);
  opacity: 0.44;
}

.poker-guide-back,
.poker-guide-close,
.poker-guide-icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(222, 177, 82, 0.54);
  border-radius: 999px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(180deg, rgba(74, 21, 27, 0.86), rgba(12, 8, 7, 0.94));
  box-shadow: inset 0 1px rgba(255, 240, 194, 0.1), 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: clamp(0.7rem, 0.9vw, 0.86rem);
  font-weight: 900;
  cursor: pointer;
}

.poker-guide-back {
  white-space: nowrap;
}

.poker-guide-back-arrow {
  font-size: 1.2em;
  line-height: 1;
}

.poker-guide-heading {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.poker-guide-kicker {
  color: var(--poker-guide-gold-bright);
  font-size: clamp(0.48rem, 0.66vw, 0.64rem);
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.poker-guide-title,
.poker-guide-header h1 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--poker-guide-ivory);
  font: 900 clamp(1.02rem, 2.25vw, 1.85rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: clamp(0.035em, 0.6vw, 0.105em);
  text-overflow: ellipsis;
  text-shadow: 0 2px 18px rgba(227, 178, 72, 0.17);
  white-space: nowrap;
}

.poker-guide-subtitle {
  margin: 0;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.58rem, 0.82vw, 0.78rem);
  line-height: 1.25;
}

.poker-guide-status {
  min-width: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(219, 173, 77, 0.25);
  border-radius: 10px;
  color: var(--poker-guide-ivory-muted);
  background: rgba(0, 0, 0, 0.32);
  font-size: clamp(0.5rem, 0.67vw, 0.64rem);
  font-weight: 800;
  line-height: 1.25;
}

.poker-guide-status::before {
  width: 9px;
  height: 9px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.poker-guide-status.is-paused {
  color: var(--poker-guide-green);
}

.poker-guide-status.is-live {
  color: #f2bd69;
}

.poker-guide-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(228px, 20vw, 296px) minmax(0, 1fr);
  overflow: hidden;
}

.poker-guide-chapters {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(12px, 1.5vw, 20px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--poker-guide-line);
  background:
    linear-gradient(180deg, rgba(48, 11, 16, 0.72), rgba(8, 6, 6, 0.9)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.012) 19px 20px);
  scrollbar-width: thin;
  scrollbar-color: var(--poker-guide-gold-muted) #100708;
}

.poker-guide-chapters::-webkit-scrollbar,
.poker-guide-content::-webkit-scrollbar,
.poker-guide-quick-rankings-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.poker-guide-chapters::-webkit-scrollbar-track,
.poker-guide-content::-webkit-scrollbar-track,
.poker-guide-quick-rankings-panel::-webkit-scrollbar-track {
  background: #100708;
}

.poker-guide-chapters::-webkit-scrollbar-thumb,
.poker-guide-content::-webkit-scrollbar-thumb,
.poker-guide-quick-rankings-panel::-webkit-scrollbar-thumb {
  border: 2px solid #100708;
  border-radius: 999px;
  background: var(--poker-guide-gold-muted);
}

.poker-guide-chapters-title {
  margin: 2px 4px 6px;
  color: var(--poker-guide-gold-bright);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.poker-guide-chapter-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(216, 168, 72, 0.16);
  border-radius: 10px;
  color: #d9c69f;
  background: rgba(8, 6, 6, 0.44);
  font-size: clamp(0.62rem, 0.78vw, 0.76rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.poker-guide-chapter-button::before {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  content: attr(data-chapter-number);
  border: 1px solid rgba(211, 164, 69, 0.38);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(105, 21, 32, 0.4);
  font-size: 0.6rem;
  font-weight: 950;
}

.poker-guide-chapter-button::after {
  content: "›";
  color: var(--poker-guide-gold-muted);
  font: 900 1.2rem/1 Georgia, serif;
}

.poker-guide-chapter-button:hover {
  color: var(--poker-guide-ivory);
  border-color: rgba(235, 193, 98, 0.46);
  background: rgba(98, 18, 29, 0.46);
  transform: translateX(2px);
}

.poker-guide-chapter-button.is-active,
.poker-guide-chapter-button[aria-current="page"] {
  color: #241208;
  border-color: #f0ce7d;
  background: linear-gradient(135deg, #ffe7a0, #c7892f);
  box-shadow: 0 7px 18px rgba(199, 137, 47, 0.18);
}

.poker-guide-chapter-button.is-active::before,
.poker-guide-chapter-button[aria-current="page"]::before {
  color: #fff3c3;
  border-color: rgba(80, 28, 11, 0.42);
  background: #68131f;
}

.poker-guide-chapter-button.is-active::after,
.poker-guide-chapter-button[aria-current="page"]::after {
  color: #4c240d;
}

.poker-guide-content {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--poker-guide-gold-muted) #100708;
  background:
    radial-gradient(circle at 75% 0, rgba(116, 19, 31, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(15, 8, 9, 0.76), rgba(5, 5, 5, 0.88));
}

.poker-guide-content-inner,
.poker-guide-chapter {
  width: min(1120px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.poker-guide-chapter {
  padding: clamp(20px, 3.25vw, 48px);
  animation: pokerGuideChapterIn 220ms ease both;
}

.poker-guide-chapter[hidden] {
  display: none !important;
}

.poker-guide-section {
  min-width: 0;
  margin-block: clamp(18px, 3vw, 36px);
}

.poker-guide-section:first-child {
  margin-top: 0;
}

.poker-guide-section:last-child {
  margin-bottom: 0;
}

.poker-guide-eyebrow,
.poker-guide-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--poker-guide-gold-bright);
  font-size: clamp(0.52rem, 0.72vw, 0.66rem);
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.poker-guide-eyebrow::before,
.poker-guide-section-kicker::before {
  width: 18px;
  height: 1px;
  content: "";
  background: currentColor;
}

.poker-guide-chapter h2,
.poker-guide-chapter h3,
.poker-guide-chapter h4 {
  color: var(--poker-guide-ivory);
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

.poker-guide-chapter h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.poker-guide-chapter h3 {
  margin: 0 0 9px;
  font-size: clamp(1.12rem, 2.2vw, 1.65rem);
  line-height: 1.08;
}

.poker-guide-chapter h4 {
  margin: 0 0 6px;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
}

.poker-guide-chapter p,
.poker-guide-chapter li,
.poker-guide-copy {
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.82rem, 1.16vw, 1rem);
  line-height: 1.64;
}

.poker-guide-chapter p {
  margin: 0 0 12px;
}

.poker-guide-chapter strong {
  color: var(--poker-guide-ivory);
}

.poker-guide-chapter ul,
.poker-guide-chapter ol {
  margin: 10px 0 0;
  padding-left: 1.25rem;
}

.poker-guide-chapter li + li {
  margin-top: 5px;
}

.poker-guide-lead {
  max-width: 760px;
  color: #ead8b3 !important;
  font-size: clamp(0.94rem, 1.45vw, 1.18rem) !important;
  line-height: 1.55 !important;
}

.poker-guide-hero {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  min-height: min(470px, 58vh);
  padding: clamp(24px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(231, 184, 85, 0.35);
  border-radius: clamp(17px, 2vw, 26px);
  background:
    radial-gradient(circle at 82% 28%, rgba(201, 41, 57, 0.29), transparent 36%),
    linear-gradient(135deg, rgba(105, 17, 29, 0.7), rgba(8, 6, 6, 0.92) 64%);
  box-shadow: inset 0 1px rgba(255, 240, 193, 0.1), 0 26px 60px rgba(0, 0, 0, 0.3);
}

.poker-guide-hero::before {
  position: absolute;
  width: 390px;
  aspect-ratio: 1;
  right: -110px;
  bottom: -210px;
  z-index: -1;
  content: "♠";
  color: rgba(224, 178, 75, 0.05);
  font: 900 360px/1 Georgia, serif;
  transform: rotate(9deg);
}

.poker-guide-hero-copy {
  min-width: 0;
}

.poker-guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.poker-guide-primary-button,
.poker-guide-secondary-button,
.poker-guide-quick-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--poker-guide-gold);
  border-radius: 10px;
  color: #1d0e07;
  background: linear-gradient(135deg, #ffeca9, #c98a2e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.36), 0 9px 20px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.poker-guide-secondary-button,
.poker-guide-quick-button {
  color: var(--poker-guide-ivory);
  background: linear-gradient(135deg, rgba(100, 18, 29, 0.86), rgba(9, 7, 7, 0.94));
}

.poker-guide-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.poker-guide-hero-visual .poker-guide-card:nth-child(1) {
  transform: translateX(14px) rotate(-10deg);
}

.poker-guide-hero-visual .poker-guide-card:nth-child(2) {
  transform: translateX(-14px) rotate(10deg);
}

.poker-guide-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}

.poker-guide-home-card {
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: clamp(14px, 1.8vw, 20px);
  overflow: hidden;
  border: 1px solid rgba(220, 172, 75, 0.25);
  border-radius: 14px;
  color: var(--poker-guide-ivory-muted);
  background: linear-gradient(145deg, rgba(73, 14, 22, 0.58), rgba(7, 6, 6, 0.82));
  box-shadow: inset 0 1px rgba(255, 239, 189, 0.06), 0 12px 26px rgba(0, 0, 0, 0.2);
  text-align: left;
}

button.poker-guide-home-card {
  cursor: pointer;
}

.poker-guide-home-card::after {
  position: absolute;
  right: 13px;
  bottom: 10px;
  content: "→";
  color: var(--poker-guide-gold);
  font-size: 1rem;
}

.poker-guide-home-card:hover {
  border-color: rgba(239, 199, 108, 0.58);
  background: linear-gradient(145deg, rgba(103, 19, 30, 0.72), rgba(10, 7, 7, 0.88));
  transform: translateY(-2px);
}

.poker-guide-home-card-number {
  color: var(--poker-guide-gold-bright);
  font: 900 0.66rem/1 Georgia, serif;
  letter-spacing: 0.14em;
}

.poker-guide-home-card strong {
  color: var(--poker-guide-ivory);
  font: 900 clamp(0.9rem, 1.3vw, 1.08rem)/1.16 Georgia, serif;
}

.poker-guide-home-card small {
  padding-right: 24px;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.65rem, 0.85vw, 0.78rem);
  line-height: 1.42;
}

.poker-guide-panel,
.poker-guide-callout,
.poker-guide-example {
  min-width: 0;
  padding: clamp(15px, 2.25vw, 26px);
  border: 1px solid rgba(219, 172, 77, 0.25);
  border-radius: clamp(13px, 1.6vw, 18px);
  background:
    linear-gradient(145deg, rgba(75, 14, 23, 0.35), rgba(7, 6, 6, 0.68));
  box-shadow: inset 0 1px rgba(255, 239, 189, 0.055), 0 14px 32px rgba(0, 0, 0, 0.18);
}

.poker-guide-callout {
  border-left: 4px solid var(--poker-guide-gold);
}

.poker-guide-callout.is-important {
  border-color: #f0cc73;
  background: linear-gradient(135deg, rgba(116, 21, 34, 0.58), rgba(8, 6, 6, 0.78));
}

.poker-guide-callout.is-split {
  border-color: var(--poker-guide-green);
  background: linear-gradient(135deg, rgba(31, 91, 57, 0.28), rgba(8, 7, 6, 0.76));
}

.poker-guide-card {
  position: relative;
  isolation: isolate;
  width: var(--poker-guide-card-width);
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 5 / 7;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(4px, 0.55vw, 8px);
  overflow: hidden;
  border: 2px solid #e9d49a;
  border-radius: clamp(7px, 0.85vw, 12px);
  color: #15110c;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(145deg, #fffdf4, #e9dec4);
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(84, 45, 15, 0.15);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  user-select: none;
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.poker-guide-card::before {
  position: absolute;
  inset: 3px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(89, 45, 13, 0.08);
  border-radius: calc(clamp(7px, 0.85vw, 12px) - 3px);
  pointer-events: none;
}

.poker-guide-card-rank,
.poker-guide-card > b {
  justify-self: start;
  font-size: clamp(0.92rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 0.9;
}

.poker-guide-card-suit,
.poker-guide-card > i {
  place-self: center;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-style: normal;
  line-height: 1;
}

.poker-guide-card-corner {
  align-self: end;
  justify-self: end;
  font-size: clamp(0.64rem, 1.3vw, 0.92rem);
  transform: rotate(180deg);
}

.poker-guide-card.is-red,
.poker-guide-card[data-suit="hearts"],
.poker-guide-card[data-suit="diamonds"] {
  color: #b30f20;
}

.poker-guide-card.is-winning {
  z-index: 2;
  border-color: #f4cb63;
  box-shadow:
    0 0 0 3px rgba(240, 194, 85, 0.2),
    0 0 28px rgba(233, 177, 55, 0.42),
    0 12px 21px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
}

.poker-guide-card.is-winning::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 3px;
  content: "BEST";
  border-radius: 3px;
  color: #fff6d0;
  background: #6c1420;
  font: 950 clamp(0.28rem, 0.42vw, 0.38rem)/1 Inter, sans-serif;
  letter-spacing: 0.05em;
}

.poker-guide-card.is-unused {
  opacity: 0.38;
  filter: grayscale(0.76) brightness(0.72);
  transform: scale(0.94);
}

.poker-guide-card.is-unused::after {
  position: absolute;
  inset: auto 3px 3px;
  padding: 2px;
  content: "NOT USED";
  border-radius: 3px;
  color: #eee3ca;
  background: rgba(17, 14, 12, 0.82);
  font: 900 clamp(0.25rem, 0.38vw, 0.34rem)/1 Inter, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
}

.poker-guide-card.is-concealed {
  place-content: center;
  border-color: #c6983e;
  color: #e8bd60;
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, rgba(226, 181, 77, 0.16) 6px 8px),
    linear-gradient(145deg, #4c0c16, #0a0606);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.46), inset 0 0 0 3px #16090a;
}

.poker-guide-card.is-concealed::after {
  content: "BL";
  font: 900 clamp(0.72rem, 1.5vw, 1rem)/1 Georgia, serif;
  letter-spacing: 0.12em;
}

.poker-guide-card.is-placeholder {
  place-content: center;
  border-style: dashed;
  border-color: rgba(222, 178, 84, 0.42);
  color: rgba(231, 188, 98, 0.5);
  background: rgba(3, 3, 3, 0.38);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.52);
}

button.poker-guide-card {
  cursor: help;
}

button.poker-guide-card:hover,
button.poker-guide-card:focus-visible {
  z-index: 4;
  transform: translateY(-5px) rotate(-1deg);
}

.poker-guide-hand-row,
.poker-guide-hole-cards,
.poker-guide-community-cards,
.poker-guide-board {
  --poker-guide-card-count: 5;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(3px, 0.9vw, 11px);
}

.poker-guide-hole-cards {
  --poker-guide-card-count: 2;
}

.poker-guide-hand-row.is-left,
.poker-guide-hole-cards.is-left,
.poker-guide-community-cards.is-left,
.poker-guide-board.is-left {
  justify-content: flex-start;
}

.poker-guide-hand-label,
.poker-guide-visual-label {
  display: block;
  margin-bottom: 8px;
  color: var(--poker-guide-gold-bright);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poker-guide-selection-demo {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(145px, 0.48fr) auto minmax(300px, 1.15fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}

.poker-guide-selection-group {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.poker-guide-arrow {
  min-width: 34px;
  display: grid;
  place-items: center;
  color: var(--poker-guide-gold-bright);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  filter: drop-shadow(0 0 8px rgba(224, 174, 69, 0.24));
}

.poker-guide-mini-table {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(310px, 41vw, 470px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  place-items: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border: clamp(3px, 0.45vw, 6px) solid #b98b38;
  border-radius: 46% / 28%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(132, 16, 29, 0.72), rgba(43, 6, 11, 0.93) 52%, #090606 82%),
    repeating-linear-gradient(120deg, transparent 0 17px, rgba(255, 255, 255, 0.018) 18px 19px);
  box-shadow: inset 0 0 0 4px #170d08, inset 0 0 55px #000, 0 18px 36px rgba(0, 0, 0, 0.38);
}

.poker-guide-mini-table::before {
  position: absolute;
  inset: 13%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(244, 200, 106, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(187, 25, 41, 0.2);
}

.poker-guide-mini-table-seat,
.poker-guide-mini-table-center {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.poker-guide-mini-table-seat > strong {
  color: var(--poker-guide-ivory);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.poker-guide-mini-table-center {
  align-self: center;
}

.poker-guide-pot,
.poker-guide-split-pot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid rgba(229, 182, 83, 0.55);
  border-radius: 999px;
  color: var(--poker-guide-gold-bright);
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.poker-guide-split-pot {
  border-color: rgba(131, 204, 160, 0.65);
  color: #d9ffe8;
  background: rgba(25, 82, 50, 0.38);
  box-shadow: 0 0 20px rgba(95, 188, 130, 0.15);
}

.poker-guide-stage-timeline {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 14px);
  margin: clamp(18px, 3vw, 32px) 0;
}

.poker-guide-stage {
  position: relative;
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: clamp(12px, 1.6vw, 18px) clamp(7px, 1vw, 12px);
  border: 1px solid rgba(219, 172, 77, 0.24);
  border-radius: 13px;
  color: var(--poker-guide-ivory-muted);
  background: linear-gradient(155deg, rgba(75, 13, 22, 0.46), rgba(5, 5, 5, 0.72));
  text-align: center;
}

.poker-guide-stage:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: calc(clamp(6px, 1.2vw, 14px) * -1 - 1px);
  z-index: 2;
  content: "›";
  color: var(--poker-guide-gold);
  font: 900 1.15rem/1 Georgia, serif;
  transform: translate(50%, -50%);
}

.poker-guide-stage-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 190, 97, 0.5);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(92, 16, 27, 0.58);
  font-size: 0.62rem;
  font-weight: 950;
}

.poker-guide-stage strong {
  color: var(--poker-guide-ivory);
  font-size: clamp(0.67rem, 0.95vw, 0.82rem);
  letter-spacing: 0.08em;
}

.poker-guide-stage small {
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.56rem, 0.72vw, 0.68rem);
  line-height: 1.42;
}

.poker-guide-stage.is-active {
  border-color: #f0c86c;
  background: linear-gradient(145deg, rgba(139, 26, 41, 0.72), rgba(12, 7, 7, 0.86));
  box-shadow: 0 0 25px rgba(213, 161, 56, 0.17);
}

.poker-guide-stage.is-complete .poker-guide-stage-number {
  color: #102517;
  border-color: #99dbb2;
  background: var(--poker-guide-green);
}

.poker-guide-action-grid,
.poker-guide-action-demos {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}

.poker-guide-action-demo {
  min-width: 0;
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(219, 171, 76, 0.25);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(68, 13, 20, 0.46), rgba(6, 5, 5, 0.74));
}

.poker-guide-action-demo p {
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  line-height: 1.5;
}

.poker-guide-action-button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid #d8ae59;
  border-radius: 10px;
  color: #201006;
  background: linear-gradient(135deg, #ffeca8, #c7892e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32), 0 8px 16px rgba(0, 0, 0, 0.24);
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  font-weight: 950;
  letter-spacing: 0.075em;
  text-align: center;
  text-transform: uppercase;
}

.poker-guide-action-button small {
  color: inherit;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  opacity: 0.67;
}

.poker-guide-action-button.is-fold {
  color: #ffe8df;
  border-color: #c54750;
  background: linear-gradient(135deg, #761723, #29070d);
}

.poker-guide-action-button.is-all-in {
  color: #fff1bf;
  border-color: #dfb753;
  background: linear-gradient(135deg, #571321, #0b0807);
}

.poker-guide-action-button.is-check,
.poker-guide-action-button.is-call {
  background: linear-gradient(135deg, #f7ecd3, #c7b085);
}

.poker-guide-chip-row,
.poker-guide-chip-stack {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.poker-guide-chip-stack {
  min-height: 38px;
  align-items: flex-end;
}

.poker-guide-chip,
.poker-guide-chip-stack > span {
  width: 28px;
  aspect-ratio: 1;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(255, 245, 213, 0.82);
  border-radius: 50%;
  color: #fff4cf;
  background: radial-gradient(circle, #a51d31 0 48%, #68101e 50% 100%);
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.38), inset 0 0 0 2px rgba(60, 5, 12, 0.42);
  font-size: 0.42rem;
  font-weight: 950;
}

.poker-guide-chip.is-gold,
.poker-guide-chip-stack > span:nth-child(3n) {
  color: #281507;
  border-color: #fff2bd;
  background: radial-gradient(circle, #e6b84f 0 48%, #9b661e 50% 100%);
}

.poker-guide-chip.is-black,
.poker-guide-chip-stack > span:nth-child(3n + 2) {
  border-color: #d5ae58;
  background: radial-gradient(circle, #25211e 0 48%, #060505 50% 100%);
}

.poker-guide-chip-stack > span + span {
  margin-left: -14px;
}

.poker-guide-chip-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  gap: 10px;
  text-align: center;
}

.poker-guide-chip-flow strong,
.poker-guide-chip-flow small {
  display: block;
}

.poker-guide-chip-flow strong {
  color: var(--poker-guide-ivory);
}

.poker-guide-chip-flow small {
  margin-top: 3px;
  color: var(--poker-guide-ivory-muted);
  font-size: 0.64rem;
}

.poker-guide-ranking-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.poker-guide-ranking-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.85fr) minmax(250px, 1.15fr) minmax(84px, 0.34fr);
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(14px, 1.8vw, 21px);
  overflow: hidden;
  border: 1px solid rgba(218, 170, 73, 0.26);
  border-radius: 15px;
  background:
    linear-gradient(110deg, rgba(85, 15, 25, 0.44), rgba(7, 6, 6, 0.82) 62%),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.012) 31px 32px);
  box-shadow: inset 0 1px rgba(255, 241, 199, 0.055), 0 14px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.poker-guide-ranking-card:hover,
.poker-guide-ranking-card:focus-within {
  border-color: rgba(239, 199, 106, 0.56);
  box-shadow: inset 0 1px rgba(255, 241, 199, 0.08), 0 16px 34px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

.poker-guide-ranking-card.is-royal {
  border-color: rgba(246, 207, 111, 0.82);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 218, 111, 0.22), transparent 32%),
    linear-gradient(110deg, rgba(117, 27, 37, 0.92), rgba(19, 9, 8, 0.94));
  box-shadow:
    0 0 0 2px rgba(233, 186, 77, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 241, 184, 0.18);
}

.poker-guide-ranking-card.is-royal::after {
  position: absolute;
  top: -17px;
  right: 18px;
  z-index: -1;
  content: "♛";
  color: rgba(241, 195, 91, 0.12);
  font: 900 6.6rem/1 Georgia, serif;
  transform: rotate(8deg);
}

.poker-guide-rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 184, 88, 0.48);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(103, 18, 29, 0.58);
  font: 900 1.08rem/1 Georgia, serif;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
}

.poker-guide-ranking-card.is-royal .poker-guide-rank-number {
  color: #321804;
  background: linear-gradient(145deg, #fff0ac, #c88a2d);
}

.poker-guide-ranking-copy {
  min-width: 0;
}

.poker-guide-ranking-copy h3 {
  margin: 0 0 5px;
  color: var(--poker-guide-ivory);
  font-size: clamp(0.95rem, 1.6vw, 1.28rem);
  letter-spacing: 0.035em;
}

.poker-guide-ranking-copy p {
  margin: 0;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.66rem, 0.88vw, 0.8rem);
  line-height: 1.46;
}

.poker-guide-strength {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.poker-guide-strength > span {
  color: var(--poker-guide-gold-bright);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.poker-guide-strength-meter {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(218, 172, 76, 0.3);
  border-radius: 999px;
  background: #13090a;
}

.poker-guide-strength-meter > i {
  width: var(--strength, 50%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #74202c, #d49d3b, #ffe79b);
  box-shadow: 0 0 10px rgba(224, 175, 67, 0.25);
}

.poker-guide-ranking-note {
  grid-column: 2 / -1;
  margin-top: -6px;
  padding: 8px 10px;
  border-left: 2px solid var(--poker-guide-gold);
  color: #d7c297;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.68rem;
  line-height: 1.45;
}

.poker-guide-memorize {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
  gap: clamp(15px, 2.5vw, 28px);
  align-items: stretch;
}

.poker-guide-memorize-strip {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 7px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(229, 184, 88, 0.36);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(102, 19, 30, 0.62), rgba(6, 5, 5, 0.82));
}

.poker-guide-memorize-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(224, 177, 77, 0.25);
  border-radius: 999px;
  color: #ead7ae;
  background: rgba(0, 0, 0, 0.3);
  font-size: clamp(0.58rem, 0.82vw, 0.72rem);
  font-weight: 850;
}

.poker-guide-memorize-strip span:first-child {
  color: #211006;
  border-color: #ffe394;
  background: linear-gradient(135deg, #ffeaa4, #c8892e);
}

.poker-guide-strength-ladder,
.poker-guide-memorize-ladder {
  display: grid;
  gap: 0;
  padding: 13px;
  border: 1px solid rgba(219, 172, 75, 0.24);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
}

.poker-guide-strength-ladder > span,
.poker-guide-memorize-ladder > span {
  min-height: 32px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.56rem, 0.72vw, 0.68rem);
  font-weight: 800;
}

.poker-guide-strength-ladder > span::before,
.poker-guide-memorize-ladder > span::before {
  content: "↑";
  color: var(--poker-guide-gold);
  text-align: center;
}

.poker-guide-strength-ladder > span:first-child,
.poker-guide-memorize-ladder > span:first-child {
  color: var(--poker-guide-gold-bright);
}

.poker-guide-strength-ladder > span:first-child::before,
.poker-guide-memorize-ladder > span:first-child::before {
  content: "♛";
}

.poker-guide-comparison,
.poker-guide-tie-example,
.poker-guide-kicker-example {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(10px, 2vw, 22px);
}

.poker-guide-player-hand {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(218, 171, 76, 0.25);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(75, 14, 22, 0.44), rgba(6, 5, 5, 0.74));
  text-align: center;
}

.poker-guide-player-hand.is-winner {
  border-color: rgba(242, 201, 107, 0.78);
  box-shadow: 0 0 25px rgba(221, 169, 58, 0.14);
}

.poker-guide-player-label {
  color: var(--poker-guide-gold-bright);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.poker-guide-versus {
  align-self: center;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 180, 83, 0.4);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(80, 14, 23, 0.72);
  font: 900 0.68rem/1 Georgia, serif;
}

.poker-guide-kicker {
  position: relative;
  z-index: 2;
  border-color: #e0aa38 !important;
  box-shadow: 0 0 0 3px rgba(226, 171, 58, 0.18), 0 0 24px rgba(226, 171, 58, 0.28) !important;
}

.poker-guide-kicker::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 2px 3px;
  content: "KICKER";
  border-radius: 3px;
  color: #fff0b3;
  background: #741320;
  font: 950 clamp(0.26rem, 0.42vw, 0.38rem)/1 Inter, sans-serif;
  letter-spacing: 0.04em;
}

.poker-guide-result-banner {
  grid-column: 1 / -1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(232, 189, 94, 0.48);
  border-radius: 11px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(135deg, rgba(106, 19, 31, 0.66), rgba(6, 5, 5, 0.82));
  font-size: clamp(0.68rem, 0.95vw, 0.84rem);
  font-weight: 900;
  text-align: center;
}

.poker-guide-quiz {
  min-width: 0;
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(17px, 2.6vw, 30px);
  border: 1px solid rgba(230, 185, 91, 0.4);
  border-radius: clamp(15px, 2vw, 22px);
  background:
    radial-gradient(circle at 50% 0, rgba(129, 22, 35, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(35, 9, 12, 0.92), rgba(5, 5, 5, 0.92));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 240, 194, 0.08);
}

.poker-guide-quiz-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poker-guide-quiz-progress {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(223, 178, 80, 0.32);
  border-radius: 999px;
  color: var(--poker-guide-gold-bright);
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.poker-guide-quiz-table {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}

.poker-guide-quiz-player,
.poker-guide-quiz-board {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(217, 169, 73, 0.2);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.27);
}

.poker-guide-quiz-player strong,
.poker-guide-quiz-board strong {
  color: var(--poker-guide-gold-bright);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
}

.poker-guide-quiz-answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.poker-guide-quiz-answer {
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(223, 177, 79, 0.42);
  border-radius: 10px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(145deg, rgba(86, 16, 26, 0.74), rgba(7, 6, 6, 0.88));
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  font-weight: 900;
  cursor: pointer;
}

.poker-guide-quiz-answer:hover,
.poker-guide-quiz-answer.is-selected {
  border-color: #efc86d;
  background: linear-gradient(145deg, rgba(125, 24, 38, 0.86), rgba(11, 7, 7, 0.9));
  transform: translateY(-1px);
}

.poker-guide-quiz-answer.is-correct,
.poker-guide-quiz-answer[aria-pressed="true"].is-correct {
  color: #e7ffef;
  border-color: #8cdaad;
  background: linear-gradient(145deg, #245f3b, #0b2416);
  box-shadow: 0 0 18px rgba(94, 190, 129, 0.16);
}

.poker-guide-quiz-answer.is-incorrect,
.poker-guide-quiz-answer[aria-invalid="true"] {
  color: #ffe8e2;
  border-color: #e36a70;
  background: linear-gradient(145deg, #75202a, #2a0a0e);
}

.poker-guide-quiz-feedback {
  display: none;
  gap: 5px;
  padding: 12px 14px;
  border-left: 4px solid var(--poker-guide-gold);
  border-radius: 8px;
  color: var(--poker-guide-ivory-muted);
  background: rgba(0, 0, 0, 0.34);
  font-size: clamp(0.7rem, 0.92vw, 0.84rem);
  line-height: 1.48;
}

.poker-guide-quiz-feedback.is-visible,
.poker-guide-quiz-feedback[aria-hidden="false"] {
  display: grid;
  animation: pokerGuideAnswerIn 180ms ease both;
}

.poker-guide-quiz-feedback.is-correct {
  border-color: var(--poker-guide-green);
}

.poker-guide-quiz-feedback.is-incorrect {
  border-color: #e36a70;
}

.poker-guide-glossary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.poker-guide-glossary-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(217, 169, 73, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(70, 13, 21, 0.39), rgba(6, 5, 5, 0.66));
}

.poker-guide-glossary-item dt,
.poker-guide-glossary-item strong {
  margin: 0 0 5px;
  color: var(--poker-guide-gold-bright);
  font: 900 clamp(0.76rem, 1vw, 0.9rem)/1.1 Georgia, serif;
}

.poker-guide-glossary-item dd,
.poker-guide-glossary-item p {
  margin: 0;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  line-height: 1.48;
}

.poker-guide-details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(219, 171, 75, 0.25);
  border-radius: 12px;
  background: rgba(8, 6, 6, 0.48);
}

.poker-guide-details + .poker-guide-details {
  margin-top: 9px;
}

.poker-guide-details > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--poker-guide-ivory);
  font-size: clamp(0.72rem, 0.96vw, 0.86rem);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.poker-guide-details > summary::-webkit-details-marker {
  display: none;
}

.poker-guide-details > summary::before {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  content: "+";
  border: 1px solid rgba(224, 177, 78, 0.4);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  font-size: 0.9rem;
}

.poker-guide-details[open] > summary {
  color: var(--poker-guide-gold-bright);
  background: rgba(101, 18, 29, 0.34);
}

.poker-guide-details[open] > summary::before {
  content: "−";
}

.poker-guide-details-body {
  padding: 0 16px 16px 47px;
  color: var(--poker-guide-ivory-muted);
  animation: pokerGuideDetailsIn 150ms ease both;
}

.poker-guide-footer {
  position: relative;
  z-index: 8;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(110px, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  padding:
    clamp(9px, 1.2vw, 14px)
    clamp(13px, 2vw, 28px);
  border-top: 1px solid var(--poker-guide-line);
  background: linear-gradient(180deg, rgba(20, 8, 10, 0.98), rgba(6, 5, 5, 0.99));
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.2);
}

.poker-guide-previous,
.poker-guide-next {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(225, 180, 83, 0.48);
  border-radius: 10px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(145deg, rgba(91, 17, 27, 0.76), rgba(7, 6, 6, 0.88));
  font-size: clamp(0.66rem, 0.82vw, 0.76rem);
  font-weight: 900;
  cursor: pointer;
}

.poker-guide-next {
  color: #201006;
  border-color: var(--poker-guide-gold);
  background: linear-gradient(135deg, #ffeba5, #c7892e);
}

.poker-guide-footer-progress {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--poker-guide-ivory-muted);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-align: center;
}

.poker-guide-footer-progress-bar {
  width: min(240px, 100%);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #1f0b0e;
}

.poker-guide-footer-progress-bar > i {
  width: var(--progress, 9%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #9c2638, #edc666);
  transition: width 220ms ease;
}

.poker-guide-quick-rankings,
.poker-guide-drawer {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear 180ms, opacity 180ms ease;
}

.poker-guide-quick-rankings.is-open,
.poker-guide-drawer.is-open,
.poker-guide-quick-rankings[aria-hidden="false"],
.poker-guide-drawer[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.poker-guide-drawer-backdrop,
.poker-guide-quick-rankings-backdrop {
  grid-column: 1;
  grid-row: 1;
  border: 0;
  background: rgba(3, 2, 2, 0.68);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.poker-guide-quick-rankings-panel,
.poker-guide-drawer-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    18px;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid rgba(231, 187, 92, 0.5);
  background:
    radial-gradient(circle at 100% 0, rgba(136, 25, 39, 0.34), transparent 36%),
    linear-gradient(155deg, #2b090f, #080606 64%);
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.54);
  transform: translateX(102%);
  transition: transform 210ms ease;
}

.poker-guide-quick-rankings.is-open .poker-guide-quick-rankings-panel,
.poker-guide-drawer.is-open .poker-guide-drawer-panel,
.poker-guide-quick-rankings[aria-hidden="false"] .poker-guide-quick-rankings-panel,
.poker-guide-drawer[aria-hidden="false"] .poker-guide-drawer-panel {
  transform: translateX(0);
}

.poker-guide-quick-rankings-panel h2,
.poker-guide-drawer-panel h2 {
  margin: 0 0 4px;
  color: var(--poker-guide-ivory);
  font: 900 clamp(1.3rem, 2.7vw, 2rem)/1 Georgia, serif;
}

.poker-guide-quick-rankings-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.poker-guide-quick-rankings-list > div,
.poker-guide-quick-rankings-list > button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(220, 173, 76, 0.2);
  border-radius: 9px;
  color: var(--poker-guide-ivory-muted);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: left;
}

.poker-guide-quick-rankings-list > :first-child {
  color: #251206;
  border-color: #f2d07c;
  background: linear-gradient(135deg, #ffe9a3, #c98a2e);
}

#pokerGuideOverlay button,
#pokerGuideOverlay summary,
#pokerGuideOverlay [tabindex] {
  -webkit-tap-highlight-color: transparent;
}

#pokerGuideOverlay button:hover,
#pokerGuideOverlay summary:hover {
  filter: brightness(1.07);
}

#pokerGuideOverlay button:active,
#pokerGuideOverlay summary:active {
  transform: translateY(1px);
}

#pokerGuideOverlay button:focus-visible,
#pokerGuideOverlay summary:focus-visible,
#pokerGuideOverlay [tabindex]:focus-visible {
  outline: 3px solid var(--poker-guide-focus);
  outline-offset: 3px;
}

/* Chapter headings receive programmatic focus for screen-reader context after
   navigation; they are not controls, so keep that focus visually quiet. */
#pokerGuideOverlay .poker-guide-chapter__title:focus,
#pokerGuideOverlay .poker-guide-chapter__title:focus-visible {
  outline: none;
  box-shadow: none;
}

#pokerGuideOverlay button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(0.42);
}

.poker-guide-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes pokerGuideFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pokerGuideChapterIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pokerGuideAnswerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pokerGuideDetailsIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  #pokerGuideOverlay {
    --poker-guide-card-width: clamp(48px, 6.2vw, 70px);
  }

  .poker-guide-layout {
    grid-template-columns: clamp(210px, 22vw, 248px) minmax(0, 1fr);
  }

  .poker-guide-home-grid,
  .poker-guide-action-grid,
  .poker-guide-action-demos,
  .poker-guide-glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-guide-ranking-card {
    grid-template-columns: 48px minmax(0, 0.8fr) minmax(245px, 1.2fr);
  }

  .poker-guide-ranking-card .poker-guide-strength {
    grid-column: 2 / -1;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
  }

  .poker-guide-ranking-note {
    grid-column: 2 / -1;
  }

  .poker-guide-selection-demo {
    grid-template-columns: minmax(130px, 0.45fr) auto minmax(250px, 1fr);
  }

  .poker-guide-selection-demo > :nth-child(4),
  .poker-guide-selection-demo > :nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  #pokerGuideOverlay {
    --poker-guide-card-width: clamp(47px, 8.2vw, 66px);
    padding: 0;
  }

  .poker-guide-shell {
    width: 100%;
    border-inline: 0;
    border-radius: 0;
  }

  .poker-guide-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .poker-guide-chapters {
    position: relative;
    z-index: 6;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 36vw);
    gap: 6px;
    padding: 7px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--poker-guide-line);
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .poker-guide-chapters-title {
    display: none;
  }

  .poker-guide-chapter-button {
    min-height: 44px;
    grid-template-columns: 25px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .poker-guide-chapter-button::before {
    width: 23px;
    height: 23px;
  }

  .poker-guide-chapter-button::after {
    display: none;
  }

  .poker-guide-chapter-button:hover {
    transform: translateY(-1px);
  }

  .poker-guide-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    min-height: 390px;
  }

  .poker-guide-ranking-card {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .poker-guide-ranking-card .poker-guide-hand-row,
  .poker-guide-ranking-card .poker-guide-community-cards,
  .poker-guide-ranking-card .poker-guide-board,
  .poker-guide-ranking-card .poker-guide-strength,
  .poker-guide-ranking-note {
    grid-column: 2;
    justify-content: flex-start;
  }

  .poker-guide-stage-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-stage {
    min-height: 82px;
    grid-template-columns: 32px minmax(100px, 0.36fr) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .poker-guide-stage:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: calc(clamp(6px, 1.2vw, 14px) * -1 - 1px);
    left: 21px;
    transform: translate(-50%, 50%) rotate(90deg);
  }

  .poker-guide-quiz-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-guide-quiz-board {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .poker-guide-quiz-player {
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  #pokerGuideOverlay {
    --poker-guide-card-width: clamp(42px, 14.2vw, 56px);
  }

  .poker-guide-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
  }

  .poker-guide-heading {
    justify-items: start;
    text-align: left;
  }

  .poker-guide-title,
  .poker-guide-header h1 {
    font-size: clamp(0.88rem, 4.3vw, 1.15rem);
    letter-spacing: 0.025em;
  }

  .poker-guide-subtitle {
    font-size: 0.56rem;
  }

  .poker-guide-status {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 5px 8px;
  }

  .poker-guide-back {
    width: 44px;
    padding: 7px;
    font-size: 0;
  }

  .poker-guide-back-arrow,
  .poker-guide-back::before {
    font-size: 1.1rem;
  }

  .poker-guide-chapters {
    grid-auto-columns: minmax(136px, 46vw);
  }

  .poker-guide-chapter {
    padding: 18px 13px 24px;
  }

  .poker-guide-chapter h2 {
    font-size: clamp(1.5rem, 8vw, 2.15rem);
  }

  .poker-guide-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    padding: 20px 15px;
  }

  .poker-guide-hero-visual {
    min-height: 190px;
  }

  .poker-guide-home-grid,
  .poker-guide-action-grid,
  .poker-guide-action-demos,
  .poker-guide-glossary,
  .poker-guide-memorize {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-home-card,
  .poker-guide-action-demo {
    min-height: 0;
  }

  .poker-guide-selection-demo,
  .poker-guide-chip-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .poker-guide-selection-demo > *,
  .poker-guide-selection-demo > :nth-child(4),
  .poker-guide-selection-demo > :nth-child(5),
  .poker-guide-chip-flow > * {
    grid-column: 1;
  }

  .poker-guide-selection-demo .poker-guide-arrow,
  .poker-guide-chip-flow .poker-guide-arrow {
    transform: rotate(90deg);
  }

  .poker-guide-mini-table {
    min-height: 335px;
    padding: 25px 10px;
    border-radius: 35% / 20%;
  }

  .poker-guide-comparison,
  .poker-guide-tie-example,
  .poker-guide-kicker-example {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-versus {
    justify-self: center;
  }

  .poker-guide-result-banner {
    grid-column: 1;
  }

  .poker-guide-ranking-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 9px;
  }

  .poker-guide-rank-number {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .poker-guide-ranking-card .poker-guide-hand-row,
  .poker-guide-ranking-card .poker-guide-community-cards,
  .poker-guide-ranking-card .poker-guide-board,
  .poker-guide-ranking-card .poker-guide-strength,
  .poker-guide-ranking-note {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .poker-guide-ranking-copy {
    align-self: center;
  }

  .poker-guide-ranking-card .poker-guide-strength {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .poker-guide-quiz {
    padding: 15px 10px;
  }

  .poker-guide-quiz-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-quiz-board,
  .poker-guide-quiz-player {
    grid-column: 1;
    grid-row: auto;
  }

  .poker-guide-quiz-board {
    grid-row: 2;
  }

  .poker-guide-quiz-player:first-of-type {
    grid-row: 1;
  }

  .poker-guide-quiz-player:last-of-type {
    grid-row: 3;
  }

  .poker-guide-quiz-answers {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-footer {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 7px 9px max(7px, env(safe-area-inset-bottom));
  }

  .poker-guide-previous,
  .poker-guide-next {
    width: 44px;
    padding: 7px;
    font-size: 0;
  }

  .poker-guide-previous::before {
    content: "←";
    font-size: 1rem;
  }

  .poker-guide-next::after {
    content: "→";
    font-size: 1rem;
  }

  .poker-guide-quick-rankings,
  .poker-guide-drawer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .poker-guide-drawer-backdrop,
  .poker-guide-quick-rankings-backdrop,
  .poker-guide-quick-rankings-panel,
  .poker-guide-drawer-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .poker-guide-quick-rankings-panel,
  .poker-guide-drawer-panel {
    align-self: end;
    width: 100%;
    max-height: min(84dvh, 720px);
    padding:
      18px
      max(14px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    border-top: 1px solid rgba(231, 187, 92, 0.5);
    border-left: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(102%);
  }

  .poker-guide-quick-rankings.is-open .poker-guide-quick-rankings-panel,
  .poker-guide-drawer.is-open .poker-guide-drawer-panel,
  .poker-guide-quick-rankings[aria-hidden="false"] .poker-guide-quick-rankings-panel,
  .poker-guide-drawer[aria-hidden="false"] .poker-guide-drawer-panel {
    transform: translateY(0);
  }
}

@media (max-width: 430px) {
  #pokerGuideOverlay {
    --poker-guide-card-width: clamp(40px, 13.6vw, 53px);
  }

  .hybrid-poker-guide-trigger::after {
    display: none;
  }

  .hybrid-poker-controls > .hybrid-poker-guide-trigger,
  .hybrid-poker-guide-trigger {
    min-height: 44px;
    padding-inline: 9px !important;
    font-size: 0.62rem;
  }

  .hybrid-poker-guide-trigger::before {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .poker-guide-subtitle {
    display: none;
  }

  .poker-guide-status {
    font-size: 0.48rem;
  }

  .poker-guide-chapters {
    grid-auto-columns: minmax(126px, 58vw);
  }

  .poker-guide-chapter-button {
    padding-inline: 7px;
    font-size: 0.58rem;
  }

  .poker-guide-chapter p,
  .poker-guide-chapter li,
  .poker-guide-copy {
    font-size: 0.8rem;
  }

  .poker-guide-panel,
  .poker-guide-callout,
  .poker-guide-example {
    padding: 13px 10px;
  }

  .poker-guide-hand-row,
  .poker-guide-hole-cards,
  .poker-guide-community-cards,
  .poker-guide-board {
    gap: 3px;
  }

  .poker-guide-card {
    border-width: 1px;
    padding: 3px;
  }

  .poker-guide-card.is-winning {
    box-shadow: 0 0 0 2px rgba(240, 194, 85, 0.2), 0 0 18px rgba(233, 177, 55, 0.36), 0 8px 14px rgba(0, 0, 0, 0.46);
    transform: translateY(-4px);
  }

  .poker-guide-card.is-winning::after,
  .poker-guide-card.is-unused::after,
  .poker-guide-kicker::after {
    font-size: 0.24rem;
  }

  .poker-guide-mini-table {
    min-height: 315px;
  }

  .poker-guide-stage {
    grid-template-columns: 30px minmax(86px, 0.42fr) minmax(0, 1fr);
    padding-inline: 8px;
  }

  .poker-guide-stage small {
    font-size: 0.54rem;
  }

  .poker-guide-quiz-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .poker-guide-details-body {
    padding: 0 12px 13px;
  }
}

@media (max-width: 370px) {
  #pokerGuideOverlay {
    --poker-guide-card-width: clamp(38px, 13vw, 47px);
  }

  .poker-guide-header {
    padding-inline: 7px;
  }

  .poker-guide-title,
  .poker-guide-header h1 {
    font-size: 0.82rem;
  }

  .poker-guide-chapter {
    padding-inline: 9px;
  }

  .poker-guide-ranking-card {
    padding-inline: 7px;
  }

  .poker-guide-card.is-winning::after,
  .poker-guide-card.is-unused::after,
  .poker-guide-kicker::after {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  #pokerGuideOverlay {
    --poker-guide-card-width: clamp(42px, 5.8vw, 61px);
  }

  .poker-guide-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-block: 6px;
  }

  .poker-guide-subtitle {
    display: none;
  }

  .poker-guide-status {
    grid-column: auto;
    width: auto;
    min-width: 138px;
  }

  .poker-guide-layout {
    grid-template-columns: clamp(180px, 26vw, 220px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .poker-guide-chapters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--poker-guide-line);
    border-bottom: 0;
    scroll-snap-type: none;
  }

  .poker-guide-chapters-title {
    display: block;
    margin-bottom: 3px;
  }

  .poker-guide-chapter-button {
    flex: 0 0 auto;
    min-height: 42px;
    grid-template-columns: 23px minmax(0, 1fr);
  }

  .poker-guide-chapter {
    padding-block: 16px;
  }

  .poker-guide-hero {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
    min-height: 285px;
  }

  .poker-guide-hero-visual {
    min-height: 170px;
  }

  .poker-guide-footer {
    padding-block: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pokerGuideOverlay,
  #pokerGuideOverlay *,
  #pokerGuideOverlay *::before,
  #pokerGuideOverlay *::after,
  .hybrid-poker-guide-trigger {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .poker-guide-card.is-winning,
  .poker-guide-home-card:hover,
  .poker-guide-ranking-card:hover,
  .poker-guide-chapter-button:hover,
  .hybrid-poker-guide-trigger:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  #pokerGuideOverlay,
  .poker-guide-shell,
  .poker-guide-panel,
  .poker-guide-card,
  .poker-guide-action-button,
  .poker-guide-ranking-card,
  .poker-guide-quiz-answer {
    forced-color-adjust: auto;
  }

  .poker-guide-card.is-winning,
  .poker-guide-kicker,
  .poker-guide-quiz-answer.is-correct,
  .poker-guide-quiz-answer.is-incorrect {
    outline: 3px solid CanvasText;
    outline-offset: 2px;
  }
}

/* --------------------------------------------------------------------------
   Runtime DOM integration
   poker-guide.js uses a compact BEM vocabulary. These rules deliberately live
   after the visual primitives above so the generated chapters receive the same
   premium system without coupling to the live Poker table.
   -------------------------------------------------------------------------- */

body.poker-guide-is-open {
  overflow: hidden;
  touch-action: none;
}

.poker-guide-overlay {
  touch-action: pan-y;
}

/* Actual trigger contents supplied by index.html. */
.hybrid-poker-guide-trigger::before,
.hybrid-poker-guide-trigger::after {
  display: none;
}

.hybrid-poker-guide-trigger > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: #f3cb70;
  fill: currentColor;
  filter: drop-shadow(0 0 7px rgba(231, 181, 69, 0.28));
}

.hybrid-poker-guide-trigger > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.hybrid-poker-guide-trigger > span > small {
  color: rgba(244, 216, 153, 0.7);
  font-size: clamp(0.4rem, 0.52vw, 0.48rem);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.hybrid-poker-guide-trigger > b {
  margin-left: auto;
  color: #f1c967;
  font-size: clamp(0.48rem, 0.62vw, 0.58rem);
  white-space: nowrap;
}

/* Header markup. */
.poker-guide-heading > span {
  color: var(--poker-guide-gold-bright);
  font-size: clamp(0.46rem, 0.64vw, 0.6rem);
  font-weight: 950;
  letter-spacing: 0.2em;
}

.poker-guide-heading > h2 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--poker-guide-ivory);
  font: 900 clamp(1.02rem, 2.25vw, 1.85rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: clamp(0.025em, 0.48vw, 0.085em);
  text-overflow: ellipsis;
  text-shadow: 0 2px 18px rgba(227, 178, 72, 0.17);
  white-space: nowrap;
}

.poker-guide-heading > p {
  margin: 0;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.56rem, 0.78vw, 0.74rem);
}

.poker-guide-session-notice {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -3px 0 0;
  padding: 5px 10px;
  border: 1px solid rgba(132, 207, 162, 0.28);
  border-radius: 8px;
  color: #c9f3d8;
  background: rgba(24, 74, 44, 0.22);
  font-size: clamp(0.5rem, 0.68vw, 0.64rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.poker-guide-session-notice::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  content: "";
  border-radius: 50%;
  background: var(--poker-guide-green);
  box-shadow: 0 0 9px rgba(131, 204, 160, 0.65);
}

.poker-guide-session-notice[data-mode="online"] {
  color: #f6d28b;
  border-color: rgba(233, 181, 79, 0.32);
  background: rgba(105, 56, 16, 0.22);
}

.poker-guide-session-notice[data-mode="online"]::before {
  background: #e8b64c;
  box-shadow: 0 0 9px rgba(232, 182, 76, 0.65);
}

/* Chapter rail buttons are generated without an extra presentation class. */
#pokerGuideChapterNav > button[data-guide-chapter] {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(216, 168, 72, 0.16);
  border-radius: 10px;
  color: #d9c69f;
  background: rgba(8, 6, 6, 0.44);
  font-size: clamp(0.6rem, 0.76vw, 0.74rem);
  font-weight: 800;
  line-height: 1.18;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

#pokerGuideChapterNav > button[data-guide-chapter]::before {
  display: none;
  content: none;
}

#pokerGuideChapterNav > button[data-guide-chapter] > strong {
  min-width: 0;
  display: block;
}

#pokerGuideChapterNav > button[data-guide-chapter] > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 164, 69, 0.38);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(105, 21, 32, 0.4);
  font-size: 0.55rem;
  font-weight: 950;
}

#pokerGuideChapterNav > button[data-guide-chapter]::after {
  content: "›";
  color: var(--poker-guide-gold-muted);
  font: 900 1.15rem/1 Georgia, serif;
}

#pokerGuideChapterNav > button[data-guide-chapter]:hover {
  color: var(--poker-guide-ivory);
  border-color: rgba(235, 193, 98, 0.46);
  background: rgba(98, 18, 29, 0.46);
  transform: translateX(2px);
}

#pokerGuideChapterNav > button.is-current,
#pokerGuideChapterNav > button[aria-current="page"] {
  color: #241208;
  border-color: #f0ce7d;
  background: linear-gradient(135deg, #ffe7a0, #c7892f);
  box-shadow: 0 7px 18px rgba(199, 137, 47, 0.18);
}

#pokerGuideChapterNav > button.is-current > span,
#pokerGuideChapterNav > button[aria-current="page"] > span {
  color: #fff3c3;
  border-color: rgba(80, 28, 11, 0.42);
  background: #68131f;
}

#pokerGuideChapterNav > button.is-current::after,
#pokerGuideChapterNav > button[aria-current="page"]::after {
  color: #4c240d;
}

/* Chapter headings generated by chapterShell(). */
.poker-guide-chapter__header {
  min-width: 0;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.poker-guide-chapter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--poker-guide-gold-bright);
  font-size: clamp(0.5rem, 0.7vw, 0.64rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.poker-guide-chapter__eyebrow::before {
  width: 20px;
  height: 1px;
  content: "";
  background: currentColor;
}

.poker-guide-chapter__title {
  margin: 0 0 10px !important;
  color: var(--poker-guide-ivory);
  font: 900 clamp(1.6rem, 4vw, 3.1rem)/1 Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.poker-guide-chapter__intro {
  max-width: 820px;
  margin: 0 !important;
  color: #ead8b3 !important;
  font-size: clamp(0.9rem, 1.35vw, 1.12rem) !important;
  line-height: 1.55 !important;
}

.poker-guide-section-heading {
  min-width: 0;
  margin-bottom: 13px;
}

.poker-guide-section-heading h3 {
  margin-bottom: 0;
}

.poker-guide-label {
  display: block;
  color: var(--poker-guide-gold-bright);
  font-size: clamp(0.5rem, 0.66vw, 0.6rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Actual reusable card component. */
.poker-guide-cards {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(3px, 0.75vw, 9px);
}

.poker-guide-cards[data-five-card-hand="true"] {
  width: fit-content;
  max-width: 100%;
}

.poker-guide-card {
  display: block;
  padding: 0;
}

.poker-guide-card--red {
  color: #b30f20;
}

.poker-guide-card--dark {
  color: #15110c;
}

.poker-guide-card__corner {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.8;
}

.poker-guide-card__corner > b {
  font-size: clamp(0.66rem, 1.28vw, 1rem);
  line-height: 0.9;
}

.poker-guide-card__corner > i {
  font-size: clamp(0.58rem, 1.05vw, 0.86rem);
  font-style: normal;
  line-height: 0.9;
}

.poker-guide-card__corner--top {
  top: 7%;
  left: 9%;
}

.poker-guide-card__corner--bottom {
  right: 9%;
  bottom: 7%;
  transform: rotate(180deg);
}

.poker-guide-card__suit {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(1.25rem, 2.7vw, 2.15rem);
  line-height: 1;
  transform: translate(-50%, -50%);
}

.poker-guide-card__badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 4;
  max-width: calc(100% - 8px);
  padding: 2px 3px;
  overflow: hidden;
  border-radius: 3px;
  color: #fff2bd;
  background: #6d1220;
  font: 950 clamp(0.25rem, 0.38vw, 0.34rem)/1 Inter, sans-serif;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
}

.poker-guide-card.is-dimmed {
  opacity: 0.38;
  filter: grayscale(0.76) brightness(0.72);
  transform: scale(0.94);
}

.poker-guide-card.is-dimmed::after {
  position: absolute;
  inset: auto 3px 3px;
  padding: 2px;
  content: "NOT USED";
  border-radius: 3px;
  color: #eee3ca;
  background: rgba(17, 14, 12, 0.82);
  font: 900 clamp(0.23rem, 0.35vw, 0.31rem)/1 Inter, sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
}

.poker-guide-card.is-kicker {
  border-color: #dda63a;
  box-shadow: 0 0 0 2px rgba(226, 171, 58, 0.16), 0 0 21px rgba(226, 171, 58, 0.22), 0 9px 18px rgba(0, 0, 0, 0.4);
}

.poker-guide-card.is-special {
  border-color: #f1ca67;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 226, 134, 0.2), transparent 42%),
    linear-gradient(145deg, #fffdf4, #ead9b6);
  box-shadow: 0 0 22px rgba(230, 177, 65, 0.25), 0 9px 18px rgba(0, 0, 0, 0.4);
}

.poker-guide-card.is-winning:has(.poker-guide-card__badge)::after {
  display: none;
}

/* Goal and chapter-home visuals. */
.poker-guide-hero-rule {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid rgba(231, 184, 85, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 0, rgba(183, 34, 50, 0.25), transparent 38%),
    linear-gradient(135deg, rgba(96, 16, 28, 0.66), rgba(8, 6, 6, 0.86));
  box-shadow: inset 0 1px rgba(255, 240, 193, 0.08), 0 20px 42px rgba(0, 0, 0, 0.24);
}

.poker-guide-concepts {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.poker-guide-concept {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0 !important;
  padding: 10px;
  border: 1px solid rgba(221, 173, 77, 0.2);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.27);
}

.poker-guide-concept__number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 191, 94, 0.54);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(105, 19, 31, 0.64);
  font-size: 0.64rem;
  font-weight: 950;
}

.poker-guide-concept strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
}

.poker-guide-concept p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
}

.poker-guide-table-demo {
  min-width: 0;
  margin-top: clamp(18px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(224, 177, 80, 0.31);
  border-radius: 20px;
  background: rgba(4, 4, 4, 0.42);
}

.poker-guide-table-demo__felt {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) auto minmax(330px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(126, 17, 30, 0.68), rgba(36, 7, 11, 0.94) 64%, #080606),
    repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, 0.015) 15px 16px);
}

.poker-guide-card-zone {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.poker-guide-plus {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 184, 87, 0.42);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(0, 0, 0, 0.44);
  font: 900 1.2rem/1 Georgia, serif;
}

.poker-guide-selection-result {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: clamp(18px, 2.6vw, 28px);
  border-top: 1px solid rgba(224, 177, 80, 0.24);
  background: linear-gradient(180deg, rgba(87, 15, 25, 0.38), rgba(8, 6, 6, 0.78));
  text-align: center;
}

.poker-guide-selection-result__arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: -36px;
  border: 1px solid rgba(231, 188, 92, 0.5);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: #26080e;
}

.poker-guide-selection-result > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.poker-guide-selection-result p {
  margin: 2px 0 0;
  font-size: 0.76rem;
}

.poker-guide-important,
.poker-guide-tip,
.poker-guide-final-reminder {
  min-width: 0;
  margin-top: clamp(16px, 2.4vw, 26px);
  padding: clamp(14px, 1.9vw, 20px);
  border: 1px solid rgba(230, 184, 87, 0.34);
  border-left: 4px solid var(--poker-guide-gold);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(100, 18, 30, 0.46), rgba(6, 5, 5, 0.7));
}

.poker-guide-important > strong,
.poker-guide-tip > strong,
.poker-guide-final-reminder > strong {
  display: block;
  margin-bottom: 4px;
  color: var(--poker-guide-gold-bright);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.poker-guide-important p,
.poker-guide-tip p {
  margin: 0;
  font-size: clamp(0.72rem, 0.94vw, 0.84rem);
}

.poker-guide-chapter-menu-section {
  margin-top: clamp(22px, 3.5vw, 42px);
}

.poker-guide-home-menu {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.poker-guide-home-menu__item {
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(219, 171, 75, 0.24);
  border-radius: 12px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(145deg, rgba(77, 14, 23, 0.52), rgba(7, 6, 6, 0.75));
  text-align: left;
  cursor: pointer;
}

.poker-guide-home-menu__item > span {
  color: var(--poker-guide-gold-bright);
  font-size: 0.58rem;
  font-weight: 950;
}

.poker-guide-home-menu__item > strong {
  font-size: clamp(0.68rem, 0.92vw, 0.82rem);
  line-height: 1.2;
}

.poker-guide-home-menu__item > i {
  color: var(--poker-guide-gold);
  font-style: normal;
}

.poker-guide-home-menu__item:hover {
  border-color: rgba(239, 198, 104, 0.56);
  background: linear-gradient(145deg, rgba(111, 21, 33, 0.68), rgba(9, 6, 6, 0.82));
  transform: translateY(-2px);
}

/* How a hand works, blinds, and shared-card examples. */
.poker-guide-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.poker-guide-flow__step {
  min-width: 0;
  min-height: 142px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: 15px 10px;
  border: 1px solid rgba(218, 170, 73, 0.24);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(75, 14, 22, 0.48), rgba(6, 5, 5, 0.75));
  text-align: center;
}

.poker-guide-flow__step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 187, 90, 0.48);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(105, 19, 31, 0.56);
  font-size: 0.62rem;
  font-weight: 950;
}

.poker-guide-flow__step p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
}

.poker-guide-flow__arrow {
  color: var(--poker-guide-gold);
  font-size: 1rem;
}

.poker-guide-mini-table {
  grid-template-columns: minmax(110px, 0.32fr) minmax(260px, 1fr) minmax(110px, 0.32fr);
  grid-template-rows: minmax(0, 1fr);
  margin-top: clamp(18px, 3vw, 32px);
}

.poker-guide-mini-table__felt {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 14px;
}

.poker-guide-seat {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.poker-guide-seat > strong {
  color: var(--poker-guide-ivory);
  font-size: clamp(0.62rem, 0.82vw, 0.74rem);
  letter-spacing: 0.08em;
}

.poker-guide-seat > small {
  color: var(--poker-guide-ivory-muted);
  font-size: 0.58rem;
  line-height: 1.3;
}

.poker-guide-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #d6a84c;
  border-radius: 50%;
  color: #fff1bd;
  background: linear-gradient(145deg, #711522, #120708);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
  font: 900 0.9rem/1 Georgia, serif;
}

.poker-guide-board-slots,
.poker-guide-stage__slots {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.poker-guide-board-slots > span,
.poker-guide-stage__slots > span {
  width: clamp(28px, 3.8vw, 44px);
  aspect-ratio: 5 / 7;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(229, 185, 91, 0.46);
  border-radius: 6px;
  color: rgba(235, 195, 105, 0.48);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.5rem;
  font-weight: 900;
}

.poker-guide-stage__slots > span.is-dealt {
  color: #25130a;
  border-style: solid;
  border-color: #e7d29b;
  background: linear-gradient(145deg, #fffbed, #ddceae);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.28);
}

.poker-guide-dealer-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #d0a14a;
  border-radius: 50%;
  color: #171006;
  background: #f7e8be;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
  font-size: 0.62rem;
  font-weight: 950;
}

.poker-guide-chip-stack > i {
  width: 25px;
  aspect-ratio: 1;
  flex: 0 0 25px;
  border: 3px dashed rgba(255, 243, 209, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle, #a51d31 0 48%, #68101e 50% 100%);
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.36);
}

.poker-guide-chip-stack > i + i {
  margin-left: -14px;
}

.poker-guide-chip-stack > b {
  margin-left: 3px;
  color: var(--poker-guide-gold-bright);
  font-size: 0.62rem;
}

.poker-guide-two-column {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(16px, 2.5vw, 26px);
}

.poker-guide-info-card,
.poker-guide-example-card {
  min-width: 0;
  padding: clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(219, 171, 75, 0.23);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(71, 13, 21, 0.42), rgba(6, 5, 5, 0.68));
}

.poker-guide-info-card p,
.poker-guide-example-card p {
  margin-bottom: 0;
  font-size: clamp(0.7rem, 0.92vw, 0.82rem);
}

.poker-guide-details > div,
.poker-guide-details > p {
  margin: 0;
  padding: 0 16px 16px 47px;
  color: var(--poker-guide-ivory-muted);
  animation: pokerGuideDetailsIn 150ms ease both;
}

.poker-guide-details > p {
  font-size: clamp(0.7rem, 0.92vw, 0.84rem);
}

.poker-guide-details.poker-guide-kicker {
  display: block;
  border-color: rgba(224, 170, 56, 0.52) !important;
  box-shadow: 0 0 22px rgba(224, 170, 56, 0.1) !important;
}

.poker-guide-details.poker-guide-kicker::after {
  display: none;
}

.poker-guide-hole-demo {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(228, 182, 86, 0.3);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(89, 16, 26, 0.55), rgba(6, 5, 5, 0.77));
}

.poker-guide-hole-demo__cards {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.poker-guide-private-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(232, 190, 96, 0.48);
  border-radius: 999px;
  color: var(--poker-guide-gold-bright);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.poker-guide-check-list {
  padding-left: 1.15rem !important;
}

.poker-guide-check-list li::marker {
  color: var(--poker-guide-gold);
}

.poker-guide-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: clamp(18px, 3vw, 30px);
}

.poker-guide-comparison__grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.poker-guide-example-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.poker-guide-board-lesson {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(226, 181, 85, 0.32);
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 50%, rgba(117, 17, 29, 0.66), rgba(12, 7, 8, 0.88));
}

.poker-guide-board-brackets {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 5px;
}

.poker-guide-board-brackets > span {
  padding-top: 7px;
  border-top: 2px solid rgba(230, 186, 91, 0.58);
  color: var(--poker-guide-gold-bright);
  font-size: 0.5rem;
  font-weight: 900;
  text-align: center;
}

/* Action examples mirror the real Poker controls. */
.poker-guide-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.poker-guide-action-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(218, 170, 73, 0.23);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(71, 13, 21, 0.44), rgba(6, 5, 5, 0.72));
}

.poker-guide-action-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.poker-guide-action-card p {
  margin-bottom: 8px;
  font-size: clamp(0.68rem, 0.88vw, 0.8rem);
  line-height: 1.45;
}

.poker-guide-action-button--burgundy {
  color: #ffe8df;
  border-color: #c54750;
  background: linear-gradient(135deg, #761723, #29070d);
}

.poker-guide-action-button--ivory {
  color: #1d1008;
  border-color: #d7c397;
  background: linear-gradient(135deg, #fff9e8, #c8b184);
}

.poker-guide-action-button--gold {
  color: #201006;
  border-color: #e2b65a;
  background: linear-gradient(135deg, #ffeca8, #c7892e);
}

.poker-guide-action-button--neutral {
  color: #27170c;
  border-color: #cbb98e;
  background: linear-gradient(135deg, #f4ebd5, #ac9a77);
}

.poker-guide-action-example {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  color: var(--poker-guide-ivory-muted);
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.66rem;
  line-height: 1.4;
}

.poker-guide-chip--gold {
  color: #281507;
  border-color: #fff2bd;
  background: radial-gradient(circle, #e6b84f 0 48%, #9b661e 50% 100%);
}

.poker-guide-chip--burgundy {
  color: #fff4cf;
  border-color: rgba(255, 245, 213, 0.82);
  background: radial-gradient(circle, #a51d31 0 48%, #68101e 50% 100%);
}

.poker-guide-folded-cards {
  color: #d6b262;
  font-size: 1.35rem;
  letter-spacing: -0.16em;
}

.poker-guide-call-math {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(223, 177, 79, 0.27);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
}

.poker-guide-call-math > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(98, 17, 29, 0.36);
  text-align: center;
}

.poker-guide-call-math > div > span {
  color: var(--poker-guide-ivory-muted);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.poker-guide-call-math > div > strong {
  font-size: 1.1rem;
}

.poker-guide-call-math > div.is-result {
  color: #241307;
  background: linear-gradient(135deg, #ffeaa4, #c88a2e);
}

.poker-guide-call-math > div.is-result > span,
.poker-guide-call-math > div.is-result > strong {
  color: inherit;
}

/* Betting-stage timeline and table animation. */
.poker-guide-timeline-labels {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1vw, 12px);
  margin-bottom: 14px;
  color: var(--poker-guide-gold-bright);
  font-size: clamp(0.5rem, 0.72vw, 0.66rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.poker-guide-timeline-labels > i {
  color: var(--poker-guide-gold-muted);
  font-style: normal;
}

.poker-guide-stages {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.poker-guide-stage {
  min-height: 110px;
  grid-template-columns: 54px minmax(210px, 0.8fr) minmax(190px, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(12px, 2vw, 24px);
  text-align: left;
}

.poker-guide-stage::after {
  display: none;
}

.poker-guide-stage__marker {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 191, 95, 0.56);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(108, 19, 31, 0.62);
  box-shadow: 0 0 16px rgba(221, 169, 61, 0.1);
  font: 900 0.82rem/1 Georgia, serif;
}

.poker-guide-stage__copy h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.poker-guide-stage__copy p {
  margin: 0;
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  line-height: 1.45;
}

.poker-guide-animated-table {
  min-width: 0;
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 4px solid #b88a38;
  border-radius: 45% / 25%;
  background: radial-gradient(ellipse at 50% 50%, rgba(127, 17, 30, 0.72), rgba(35, 6, 11, 0.94) 67%, #080606);
  box-shadow: inset 0 0 0 3px #170d08, inset 0 0 45px #000, 0 16px 32px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.poker-guide-animated-table__board {
  min-width: 0;
  display: grid;
  place-items: center;
}

.poker-guide-animated-table p {
  width: min(660px, 100%);
  margin: 17px auto 0;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
}

/* Win paths and showdown. */
.poker-guide-win-paths {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.poker-guide-win-path {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: clamp(18px, 2.7vw, 28px);
  border: 1px solid rgba(221, 174, 78, 0.27);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(79, 14, 23, 0.5), rgba(6, 5, 5, 0.75));
  text-align: center;
}

.poker-guide-win-path__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 191, 95, 0.55);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(105, 19, 31, 0.54);
  font-size: 1.55rem;
}

.poker-guide-win-path p {
  margin: 0;
  font-size: clamp(0.7rem, 0.92vw, 0.84rem);
}

.poker-guide-win-paths__or {
  align-self: center;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 179, 81, 0.42);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: #3d0d15;
  font: 900 0.6rem/1 Georgia, serif;
}

.poker-guide-showdown-example {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(280px, 1fr) minmax(150px, 0.45fr);
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(18px, 2.7vw, 28px);
  border: 1px solid rgba(226, 181, 85, 0.3);
  border-radius: 17px;
  background: radial-gradient(ellipse at 50% 50%, rgba(117, 17, 29, 0.6), rgba(7, 6, 6, 0.82));
}

.poker-guide-showdown-example > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.poker-guide-verdict {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 10px 13px;
  border-left: 3px solid var(--poker-guide-gold);
  border-radius: 8px;
  color: var(--poker-guide-ivory-muted);
  background: rgba(0, 0, 0, 0.34);
  font-size: clamp(0.7rem, 0.92vw, 0.84rem) !important;
  text-align: center;
}

/* Actual hand-ranking cards. */
.poker-guide-ranking-scale {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--poker-guide-gold-bright);
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.poker-guide-ranking-scale > i {
  height: 2px;
  background: linear-gradient(90deg, #f0c866, #8d2434, #43302a);
}

.poker-guide-rankings {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.poker-guide-ranking {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(13px, 2vw, 24px);
  padding: clamp(14px, 1.9vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(218, 170, 73, 0.26);
  border-radius: 15px;
  background:
    linear-gradient(110deg, rgba(85, 15, 25, 0.46), rgba(7, 6, 6, 0.83) 62%),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.012) 31px 32px);
  box-shadow: inset 0 1px rgba(255, 241, 199, 0.055), 0 14px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.poker-guide-ranking:hover,
.poker-guide-ranking:focus-within {
  border-color: rgba(239, 199, 106, 0.56);
  box-shadow: inset 0 1px rgba(255, 241, 199, 0.08), 0 16px 34px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

.poker-guide-ranking--royal {
  border-color: rgba(246, 207, 111, 0.8);
  background:
    radial-gradient(circle at 92% 0, rgba(255, 218, 111, 0.22), transparent 34%),
    linear-gradient(110deg, rgba(117, 27, 37, 0.92), rgba(19, 9, 8, 0.94));
  box-shadow: 0 0 0 2px rgba(233, 186, 77, 0.1), 0 18px 38px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 241, 184, 0.18);
}

.poker-guide-ranking--royal::after {
  position: absolute;
  top: -15px;
  right: 18px;
  z-index: -1;
  content: "♛";
  color: rgba(241, 195, 91, 0.12);
  font: 900 6rem/1 Georgia, serif;
  transform: rotate(8deg);
}

.poker-guide-ranking__number {
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(230, 184, 88, 0.48);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(103, 18, 29, 0.58);
  font: 900 1.08rem/0.9 Georgia, serif;
  text-align: center;
}

.poker-guide-ranking__number > span {
  font-size: 0.45rem;
}

.poker-guide-ranking--royal .poker-guide-ranking__number {
  color: #321804;
  background: linear-gradient(145deg, #fff0ac, #c88a2d);
}

.poker-guide-ranking__main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
  align-items: center;
  gap: 8px clamp(14px, 2vw, 24px);
}

.poker-guide-ranking__heading {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.poker-guide-ranking__heading h3 {
  margin: 0;
  font-size: clamp(0.96rem, 1.6vw, 1.26rem);
  letter-spacing: 0.025em;
}

.poker-guide-ranking__main > .poker-guide-cards {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-content: flex-end;
}

.poker-guide-ranking__main > p {
  grid-column: 1;
  margin: 0;
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  line-height: 1.44;
}

.poker-guide-ranking__main > small {
  grid-column: 1;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.59rem, 0.76vw, 0.7rem);
  line-height: 1.42;
}

.poker-guide-strength {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(50px, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.poker-guide-strength > i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a2232 calc(var(--poker-guide-strength) * 10%), rgba(67, 33, 35, 0.68) 0);
  box-shadow: inset 0 0 0 1px rgba(221, 173, 76, 0.2);
}

.poker-guide-strength > b {
  color: var(--poker-guide-gold-bright);
  font-size: 0.52rem;
}

.poker-guide-special-rule {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  margin-top: 16px;
  padding: clamp(17px, 2.4vw, 26px);
  border: 1px solid rgba(232, 188, 93, 0.44);
  border-left: 4px solid var(--poker-guide-gold);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(106, 19, 31, 0.58), rgba(6, 5, 5, 0.76));
}

.poker-guide-special-rule p {
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
}

/* Tie breakers and split pots. */
.poker-guide-tie-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: clamp(15px, 2.2vw, 24px);
  border: 1px solid rgba(221, 174, 78, 0.26);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(75, 14, 22, 0.43), rgba(6, 5, 5, 0.71));
}

.poker-guide-versus {
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.poker-guide-versus-player {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(218, 171, 76, 0.23);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}

.poker-guide-versus-player.is-winner {
  border-color: rgba(242, 201, 107, 0.74);
  box-shadow: 0 0 22px rgba(221, 169, 58, 0.12);
}

.poker-guide-versus-player > strong {
  color: var(--poker-guide-ivory);
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
}

.poker-guide-versus__mark {
  align-self: center;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 180, 83, 0.4);
  border-radius: 50%;
  color: var(--poker-guide-gold-bright);
  background: rgba(80, 14, 23, 0.72);
  font: 900 0.62rem/1 Georgia, serif;
}

.poker-guide-split-pot {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: clamp(17px, 2.5vw, 27px);
  border: 1px solid rgba(131, 204, 160, 0.55);
  border-radius: 15px;
  color: var(--poker-guide-ivory-muted);
  background: linear-gradient(135deg, rgba(28, 82, 50, 0.26), rgba(7, 6, 6, 0.76));
  text-align: center;
}

.poker-guide-split-pot__players {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--poker-guide-ivory-muted);
  font-size: 0.66rem;
}

.poker-guide-split-pot__players > span {
  padding: 9px 12px;
  border: 1px solid rgba(131, 204, 160, 0.25);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
}

.poker-guide-split-pot__players > i {
  color: var(--poker-guide-green);
  font-style: normal;
  font-weight: 950;
}

.poker-guide-split-pot__badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid rgba(143, 218, 172, 0.64);
  border-radius: 999px;
  color: #e2ffec;
  background: rgba(31, 91, 57, 0.4);
  box-shadow: 0 0 20px rgba(95, 188, 130, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}

.poker-guide-split-pot p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
}

.poker-guide-tie-order {
  margin-top: 16px;
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid rgba(220, 173, 77, 0.24);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.27);
}

.poker-guide-tie-order ol {
  margin-bottom: 0;
}

/* Quiz BEM and answer states. */
.poker-guide-quizzes {
  min-width: 0;
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.poker-guide-quiz > header {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.poker-guide-quiz > header > span {
  color: var(--poker-guide-gold-bright);
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.poker-guide-quiz > header > h3 {
  margin: 0;
}

.poker-guide-quiz__table {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(145px, 0.45fr) minmax(275px, 1fr) minmax(145px, 0.45fr);
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}

.poker-guide-quiz__player,
.poker-guide-quiz__board {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(217, 169, 73, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.poker-guide-quiz__choices {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.poker-guide-quiz__choices > legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--poker-guide-ivory);
  font: 900 0.84rem/1.2 Georgia, serif;
  text-align: center;
}

.poker-guide-quiz__choices > button {
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid rgba(223, 177, 79, 0.42);
  border-radius: 10px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(145deg, rgba(86, 16, 26, 0.74), rgba(7, 6, 6, 0.88));
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  font-weight: 900;
  cursor: pointer;
}

.poker-guide-quiz__choices > button:hover,
.poker-guide-quiz__choices > button[aria-pressed="true"] {
  border-color: #efc86d;
  background: linear-gradient(145deg, rgba(125, 24, 38, 0.86), rgba(11, 7, 7, 0.9));
}

.poker-guide-quiz__choices > button.is-correct {
  color: #e7ffef;
  border-color: #8cdaad;
  background: linear-gradient(145deg, #245f3b, #0b2416);
  box-shadow: 0 0 18px rgba(94, 190, 129, 0.16);
}

.poker-guide-quiz__choices > button.is-wrong {
  color: #ffe8e2;
  border-color: #e36a70;
  background: linear-gradient(145deg, #75202a, #2a0a0e);
}

.poker-guide-quiz__result {
  min-width: 0;
  margin: 0 !important;
  padding: 11px 13px;
  border-left: 4px solid var(--poker-guide-gold);
  border-radius: 8px;
  color: var(--poker-guide-ivory-muted) !important;
  background: rgba(0, 0, 0, 0.34);
  font-size: clamp(0.7rem, 0.92vw, 0.84rem) !important;
  line-height: 1.46 !important;
}

.poker-guide-quiz__result.is-correct {
  border-color: var(--poker-guide-green);
}

.poker-guide-quiz__result.is-wrong {
  border-color: #e36a70;
}

/* Quick reference and glossary. */
.poker-guide-memorize {
  grid-template-columns: minmax(0, 0.45fr) minmax(280px, 1fr);
  align-items: start;
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid rgba(229, 184, 88, 0.34);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(97, 18, 29, 0.52), rgba(6, 5, 5, 0.76));
}

.poker-guide-quick-ladder {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.poker-guide-quick-ladder__top,
.poker-guide-quick-ladder__bottom {
  display: flex;
  justify-content: space-between;
  color: var(--poker-guide-gold-bright);
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.poker-guide-quick-ladder__bottom {
  color: var(--poker-guide-ivory-muted);
}

.poker-guide-quick-ladder > ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.poker-guide-quick-ladder > ol > li {
  min-height: 36px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(221, 173, 77, 0.19);
  border-radius: 8px;
  color: var(--poker-guide-ivory-muted);
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.66rem;
}

.poker-guide-quick-ladder > ol > li:first-child {
  color: #241307;
  border-color: #f0cf78;
  background: linear-gradient(135deg, #ffe9a3, #c98a2e);
}

.poker-guide-quick-ladder > ol > li > span {
  font-size: 0.54rem;
  font-weight: 950;
}

.poker-guide-reference-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.poker-guide-reference-grid > article {
  min-width: 0;
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(219, 171, 75, 0.23);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(72, 13, 21, 0.42), rgba(6, 5, 5, 0.68));
}

.poker-guide-reference-grid strong {
  color: var(--poker-guide-gold-bright);
  font-size: 0.7rem;
}

.poker-guide-reference-grid span {
  color: var(--poker-guide-ivory-muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.poker-guide-blinds-reference {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: clamp(15px, 2.2vw, 23px);
  border: 1px solid rgba(222, 175, 78, 0.25);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.poker-guide-blinds-reference > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.poker-guide-blinds-reference > span {
  color: var(--poker-guide-gold-bright);
  font-size: 0.62rem;
  font-weight: 950;
}

.poker-guide-blinds-reference p {
  margin: 0;
  font-size: 0.68rem;
}

.poker-guide-glossary {
  display: block;
  margin-top: clamp(18px, 3vw, 30px);
}

.poker-guide-glossary > dl {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.poker-guide-glossary > dl > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(217, 169, 73, 0.22);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(70, 13, 21, 0.39), rgba(6, 5, 5, 0.66));
}

.poker-guide-glossary dt {
  margin: 0 0 4px;
  color: var(--poker-guide-gold-bright);
  font: 900 clamp(0.72rem, 0.96vw, 0.86rem)/1.1 Georgia, serif;
}

.poker-guide-glossary dd {
  margin: 0;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.64rem, 0.82vw, 0.75rem);
  line-height: 1.44;
}

.poker-guide-final-reminder ol {
  margin-bottom: 0;
}

/* Footer IDs in index.html. */
#pokerGuidePrevious,
#pokerGuideNext {
  min-width: 130px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(225, 180, 83, 0.48);
  border-radius: 10px;
  color: var(--poker-guide-ivory);
  background: linear-gradient(145deg, rgba(91, 17, 27, 0.76), rgba(7, 6, 6, 0.88));
  font-size: clamp(0.66rem, 0.82vw, 0.76rem);
  font-weight: 900;
  cursor: pointer;
}

#pokerGuideNext {
  justify-self: end;
  color: #201006;
  border-color: var(--poker-guide-gold);
  background: linear-gradient(135deg, #ffeba5, #c7892e);
}

#pokerGuideProgress {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--poker-guide-ivory-muted);
  font-size: clamp(0.55rem, 0.74vw, 0.68rem);
  font-weight: 850;
  letter-spacing: 0.055em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Actual quick-ranking side panel. */
#pokerGuideQuickPanel.poker-guide-quick-panel {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 140;
  width: min(430px, 100%);
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    18px;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid rgba(231, 187, 92, 0.5);
  color: var(--poker-guide-ivory);
  background:
    radial-gradient(circle at 100% 0, rgba(136, 25, 39, 0.34), transparent 36%),
    linear-gradient(155deg, #2b090f, #080606 64%);
  box-shadow: -28px 0 72px rgba(0, 0, 0, 0.65);
  animation: pokerGuideQuickIn 190ms ease both;
}

#pokerGuideQuickPanel[hidden] {
  display: none !important;
}

.poker-guide-quick-head {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin: -20px -18px 5px;
  padding: 20px 18px 12px;
  border-bottom: 1px solid rgba(224, 177, 79, 0.28);
  background: rgba(23, 7, 10, 0.96);
}

.poker-guide-quick-head span {
  color: var(--poker-guide-gold-bright);
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.poker-guide-quick-head h3 {
  margin: 3px 0 0;
  color: var(--poker-guide-ivory);
  font: 900 1.22rem/1 Georgia, serif;
}

#pokerGuideQuickClose {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 180, 83, 0.46);
  border-radius: 50%;
  color: var(--poker-guide-ivory);
  background: rgba(86, 15, 25, 0.72);
  font-size: 1.2rem;
  cursor: pointer;
}

@keyframes pokerGuideQuickIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* DOM-aware responsive refinements. */
@media (max-width: 1100px) {
  .poker-guide-home-menu,
  .poker-guide-glossary > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-guide-ranking__main {
    grid-template-columns: minmax(180px, 0.62fr) minmax(250px, 1fr);
  }

  .poker-guide-action-card {
    grid-template-columns: minmax(105px, 0.32fr) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  #pokerGuideChapterNav > button[data-guide-chapter] {
    min-height: 44px;
    grid-template-columns: 25px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  #pokerGuideChapterNav > button[data-guide-chapter] > span {
    width: 23px;
    height: 23px;
  }

  #pokerGuideChapterNav > button[data-guide-chapter]::after {
    display: none;
  }

  #pokerGuideChapterNav > button[data-guide-chapter]:hover {
    transform: translateY(-1px);
  }

  .poker-guide-hero-rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-concepts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poker-guide-concept {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .poker-guide-table-demo__felt {
    grid-template-columns: minmax(130px, 0.36fr) auto minmax(280px, 1fr);
  }

  .poker-guide-home-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-guide-flow {
    grid-template-columns: repeat(7, auto);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .poker-guide-flow__step {
    width: 180px;
    scroll-snap-align: start;
  }

  .poker-guide-mini-table {
    grid-template-columns: minmax(94px, 0.28fr) minmax(235px, 1fr) minmax(94px, 0.28fr);
    padding-inline: 20px;
  }

  .poker-guide-comparison__grid,
  .poker-guide-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-ranking__main {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-ranking__main > .poker-guide-cards {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .poker-guide-ranking__main > p,
  .poker-guide-ranking__main > small {
    grid-column: 1;
  }

  .poker-guide-special-rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-special-rule .poker-guide-cards {
    justify-content: flex-start;
  }

  .poker-guide-quiz__table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-guide-quiz__board {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .poker-guide-quiz__player {
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .hybrid-poker-guide-trigger > b {
    display: none;
  }

  .poker-guide-heading {
    justify-items: start;
    text-align: left;
  }

  .poker-guide-heading > h2 {
    font-size: clamp(0.86rem, 4.2vw, 1.12rem);
    letter-spacing: 0.02em;
  }

  .poker-guide-heading > p {
    font-size: 0.54rem;
  }

  .poker-guide-session-notice {
    font-size: 0.48rem;
  }

  .poker-guide-chapter__title {
    font-size: clamp(1.45rem, 8vw, 2.1rem) !important;
  }

  .poker-guide-concepts,
  .poker-guide-home-menu,
  .poker-guide-two-column,
  .poker-guide-comparison__grid,
  .poker-guide-glossary > dl,
  .poker-guide-reference-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-concept {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }

  .poker-guide-table-demo__felt {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .poker-guide-plus {
    transform: rotate(90deg);
  }

  .poker-guide-hole-demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-mini-table {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(160px, 1fr) auto;
    border-radius: 32% / 15%;
  }

  .poker-guide-board-brackets {
    font-size: 0.44rem;
  }

  .poker-guide-action-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-action-button {
    width: 100%;
  }

  .poker-guide-call-math {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-call-math > span {
    transform: rotate(90deg);
    text-align: center;
  }

  .poker-guide-timeline-labels {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    font-size: 0.42rem;
    text-align: center;
  }

  .poker-guide-timeline-labels > i {
    display: none;
  }

  .poker-guide-stage {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .poker-guide-stage__marker {
    width: 39px;
    height: 39px;
  }

  .poker-guide-stage__slots {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .poker-guide-animated-table {
    padding-inline: 11px;
    border-radius: 31% / 14%;
  }

  .poker-guide-win-paths,
  .poker-guide-showdown-example {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-win-paths__or {
    justify-self: center;
  }

  .poker-guide-showdown-example > div,
  .poker-guide-verdict {
    grid-column: 1;
  }

  .poker-guide-ranking {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 9px;
  }

  .poker-guide-ranking__number {
    width: 38px;
    height: 38px;
    font-size: 0.84rem;
  }

  .poker-guide-ranking__main > .poker-guide-cards {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .poker-guide-ranking__main > p,
  .poker-guide-ranking__main > small {
    grid-column: 1 / -1;
  }

  .poker-guide-versus {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-versus__mark {
    justify-self: center;
  }

  .poker-guide-split-pot__players {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-quiz__table,
  .poker-guide-quiz__choices,
  .poker-guide-memorize,
  .poker-guide-blinds-reference {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-guide-quiz__board,
  .poker-guide-quiz__player {
    grid-column: 1;
    grid-row: auto;
  }

  .poker-guide-quiz__board {
    grid-row: 2;
  }

  .poker-guide-quiz__player:first-of-type {
    grid-row: 1;
  }

  .poker-guide-quiz__player:last-of-type {
    grid-row: 3;
  }

  #pokerGuidePrevious,
  #pokerGuideNext {
    width: 44px;
    min-width: 44px;
    padding: 7px;
    font-size: 0;
  }

  #pokerGuidePrevious > span,
  #pokerGuideNext > span {
    font-size: 1rem;
  }

  #pokerGuidePrevious::before,
  #pokerGuideNext::after {
    display: none;
    content: none;
  }

  #pokerGuideQuickPanel.poker-guide-quick-panel {
    inset: auto 0 0;
    width: 100%;
    max-height: min(84dvh, 720px);
    border-top: 1px solid rgba(231, 187, 92, 0.5);
    border-left: 0;
    border-radius: 20px 20px 0 0;
    animation-name: pokerGuideQuickUp;
  }
}

@media (max-width: 430px) {
  .hybrid-poker-guide-trigger > span > small {
    display: none;
  }

  .poker-guide-heading > p {
    display: none;
  }

  .poker-guide-card__corner--top {
    top: 5%;
    left: 7%;
  }

  .poker-guide-card__corner--bottom {
    right: 7%;
    bottom: 5%;
  }

  .poker-guide-card__badge,
  .poker-guide-card.is-dimmed::after {
    font-size: 0.22rem;
  }

  .poker-guide-home-menu__item {
    min-height: 62px;
  }

  .poker-guide-details > div,
  .poker-guide-details > p {
    padding: 0 12px 13px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .poker-guide-session-notice {
    grid-column: 1 / -1;
    min-height: 24px;
    padding-block: 3px;
  }

  #pokerGuideChapterNav > button[data-guide-chapter] {
    flex: 0 0 auto;
    min-height: 42px;
    grid-template-columns: 23px minmax(0, 1fr);
  }

  .poker-guide-hero-rule {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  }
}

@keyframes pokerGuideQuickUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
