/* ==========================================================================
   Kings in the Corner — kingsinthecorner.co
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Buttons
   5. Header & menu
   6. Hero
   7. Game board
   8. Playing cards
   9. Sections (how to play, news, learn, strategy, daily, guides, faq)
  10. Newsletter & footer
  11. Fullscreen
  12. Responsive
  ========================================================================== */

/* ------------------------------- 1. Tokens ------------------------------ */
:root {
  --cream:      #FEFCF8;
  --cream-2:    #FAF7EE;
  --cream-3:    #F4F1E6;
  --white:      #FFFFFF;

  --navy:       #12315A;
  --navy-deep:  #0E2647;
  --navy-soft:  #1B4C82;
  --ink:        #16305C;
  --text:       #43536E;
  --muted:      #6E7C93;

  --gold:       #C8A15C;
  --gold-dark:  #AC8434;
  --gold-light: #E3C07C;
  --gold-soft:  #E7CF9E;

  --felt:       #12643E;
  --felt-dark:  #0A4527;
  --felt-deep:  #073A20;
  --wood:       #7C3A1B;
  --wood-dark:  #56260F;

  --red:        #C22B2B;
  --line:       #E8E3D7;
  --line-soft:  #F0ECE1;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shell: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 60, .06);
  --shadow:    0 2px 10px rgba(20, 35, 60, .07);
  --shadow-lg: 0 18px 44px rgba(12, 30, 55, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* card metrics — overridden per breakpoint / fullscreen */
  --cw: 54px;
  --ch: calc(var(--cw) * 1.44);
  --cr: calc(var(--cw) * .1);
}

/* ---------------------------- 2. Reset & base --------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--ink); line-height: 1.18; font-weight: 700; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-soft); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------ 3. Utilities ---------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.shell--wide { max-width: 1280px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; z-index: 100; top: 8px; left: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
}

.m-only { display: none !important; }

.h2 {
  position: relative;
  font-size: clamp(24px, 2.4vw, 31px);
  letter-spacing: -.01em;
}
.h2::after {
  content: "";
  display: inline-block;
  width: 44px; height: 2px;
  margin-left: 16px; margin-bottom: 7px;
  background: var(--gold);
  vertical-align: middle;
}

.eyebrow {
  font-style: normal;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--felt);
}

.sec { padding: 40px 0; }
.sec--band { background: var(--cream-2); border-block: 1px solid var(--line-soft); }
.sec--faq  { background: var(--cream-2); border-top: 1px solid var(--line-soft); }
.sec--howto { border-bottom: 1px solid var(--line); padding-top: 34px; }

.sec__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.more {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;              /* comfortable tap target */
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.more svg { width: 16px; height: 16px; }

/* ------------------------------ 4. Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 22px;
  border: 0; border-radius: 6px;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  text-align: center; white-space: nowrap;
  transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(180deg, #D3AE6D, var(--gold-dark));
  color: #2A1D06;
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: linear-gradient(180deg, #DEBC80, #BC9440); color: #2A1D06; }

.btn--ghost {
  background: rgba(6, 32, 22, .55);
  color: #F3EFE4;
  border: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--sans); font-weight: 600; font-size: 14px;
}
.btn--ghost:hover { background: rgba(6, 32, 22, .78); color: #fff; }

.btn--sm { min-height: 34px; padding: 5px 14px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 12px 28px; font-size: 17px; }
.btn--icon { min-height: 34px; width: 38px; padding: 0; }
.btn--icon svg { width: 17px; height: 17px; }

.btn--fs {
  background: linear-gradient(180deg, #235C93, #16406B);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.btn--fs:hover { background: linear-gradient(180deg, #2C6DAB, #1B4E80); color: #fff; }

/* --------------------------- 5. Header & menu --------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.hdr__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__crown { width: 40px; height: 27px; color: var(--gold); flex: none; }
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--serif); font-weight: 800;
  font-size: 24px; line-height: 1.05; letter-spacing: .01em;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; font-size: .74em; font-weight: 700; }
.brand__tag {
  display: block; margin-top: 3px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--gold-dark); }

.hdr__actions { display: flex; align-items: center; gap: 22px; }
.hdr__quote {
  padding-left: 22px; border-left: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 14px;
  line-height: 1.45; color: var(--muted);
}

.hdr__burger {
  margin-left: auto; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #fff;
}
.hdr__burger svg { width: 26px; height: 26px; }

.menu {
  position: absolute; right: 12px; top: calc(100% - 6px);
  width: min(300px, calc(100vw - 24px));
  background: var(--cream);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.menu__panel { padding: 8px; }
.menu__panel a {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.menu__panel a:hover { background: var(--cream-3); }
.menu__panel a svg { width: 21px; height: 21px; color: var(--navy); flex: none; }
.menu__cta { width: 100%; margin-top: 6px; font-size: 18px; }

/* ------------------------------- 6. Hero -------------------------------- */
.hero { padding: 26px 0 34px; }
.hero__title {
  font-size: clamp(28px, 3.4vw, 42px);
  text-align: center; letter-spacing: -.015em;
}
.hero__title span { color: inherit; }
.hero__sub {
  max-width: 780px; margin: 10px auto 0;
  text-align: center; font-size: 15px; color: var(--muted);
}

/* ---------------------------- 7. Game board ----------------------------- */
.board {
  margin-top: 22px;
  padding: 9px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #8C4A24, var(--wood) 40%, var(--wood-dark));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.board__felt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "hud   hud   hud"
    ".     north ."
    "west  table east"
    "you   you   you";
  gap: 8px;
  min-height: 520px;
  padding: 14px 16px 18px;
  border-radius: 8px;
  color: #EAF3EC;
  background:
    radial-gradient(120% 90% at 50% 40%, #17724A 0%, var(--felt) 45%, var(--felt-dark) 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .38);
  overflow: hidden;
}
.board__felt::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 4px);
  pointer-events: none;
}

/* -- HUD ---------------------------------------------------------------- */
.board__hud {
  grid-area: hud;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}

.scores {
  min-width: 190px;
  padding: 9px 12px 10px;
  border-radius: 8px;
  background: rgba(4, 26, 18, .55);
  border: 1px solid rgba(255, 255, 255, .12);
}
.scores__title {
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: #CFE0D5;
}
.scores__list li {
  display: flex; align-items: center; gap: 9px;
  padding: 2px 0; font-size: 13.5px; color: #E8F1EA;
}
.scores__list li span { flex: 1; }
.scores__list li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.scores__list li[data-active="true"] { color: var(--gold-soft); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--you   { background: #E8C069; }
.dot--north { background: #7FA9D8; }
.dot--east  { background: #6FC08A; }
.dot--west  { background: #E07C7C; }

.chips { display: flex; gap: 8px; }
.chip {
  display: grid; gap: 1px; justify-items: center;
  min-width: 74px; padding: 6px 10px;
  border-radius: 8px;
  background: rgba(4, 26, 18, .6);
  border: 1px solid rgba(255, 255, 255, .14);
}
.chip span { font-size: 11px; color: #B9CFC1; }
.chip b { font-size: 17px; font-family: var(--serif); color: #fff; font-variant-numeric: tabular-nums; }

.board__tools {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 10px;
  max-width: 460px;
}
.turn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 18px;
  border-radius: 999px;
  background: rgba(4, 26, 18, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--serif); font-weight: 700; font-size: 15px; color: #fff;
}
.board__ctrls { display: flex; gap: 8px; flex-basis: 100%; justify-content: flex-end; }

.settings {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: 250px; padding: 12px 14px;
  border-radius: 10px;
  background: #0B3B24;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow-lg);
}
.settings h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.settings__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 38px; font-size: 13.5px; color: #DDE9E0; cursor: pointer;
}
.settings__row select {
  background: rgba(0, 0, 0, .3); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 5px; padding: 5px 7px; font-size: 13px;
}
.settings__row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }

/* -- Seats -------------------------------------------------------------- */
.seat--north { grid-area: north; justify-self: center; display: grid; justify-items: center; gap: 6px; }
.seat--west  { grid-area: west;  align-self: center; display: flex; align-items: center; gap: 8px; }
.seat--east  { grid-area: east;  align-self: center; display: flex; align-items: center; gap: 8px; flex-direction: row-reverse; }
.seat--you   { grid-area: you;   display: grid; justify-items: center; gap: 2px; }

.seat__id { display: flex; align-items: center; gap: 8px; }
.seat--west .seat__id, .seat--east .seat__id { flex-direction: column; gap: 3px; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  background: #DCE6DE;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.avatar--active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 161, 92, .35); }

.seat__meta {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(4, 26, 18, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  text-align: center; line-height: 1.25;
}
.seat__meta b { display: block; font-size: 13px; color: #fff; font-weight: 600; }
.seat__meta span { display: block; font-size: 11px; color: #A9C4B4; }

.seat[data-active="true"] .avatar { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 161, 92, .35); }

.seat__hand { display: flex; }
.seat--north .seat__hand { flex-direction: row; }
.seat--north .seat__hand .card { margin-left: calc(var(--cw) * -.52); }
.seat--north .seat__hand .card:first-child { margin-left: 0; }
.seat--west .seat__hand, .seat--east .seat__hand { flex-direction: column; }
.seat--west .seat__hand .card, .seat--east .seat__hand .card { margin-top: calc(var(--ch) * -.78); }
.seat--west .seat__hand .card:first-child, .seat--east .seat__hand .card:first-child { margin-top: 0; }

/* your hand — gentle fan */
.seat__hand--fan {
  display: flex; align-items: flex-end; justify-content: center;
  min-height: calc(var(--ch) + 14px);
  padding-top: 10px;
}
/* --rot and --lift are set per card by game.js so the fan works without
   relying on CSS abs(), which is still poorly supported. */
.seat__hand--fan .card {
  margin-left: calc(var(--cw) * -.34);
  transform-origin: 50% 130%;
  transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0px));
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.seat__hand--fan .card:first-child { margin-left: 0; }
.seat__hand--fan .card:hover,
.seat__hand--fan .card:focus-visible {
  transform: rotate(var(--rot, 0deg)) translateY(-14px);
  z-index: 5;
}
.seat__hand--fan .card[data-selected="true"] {
  transform: rotate(0deg) translateY(-20px);
  z-index: 6;
  box-shadow: 0 0 0 3px var(--gold), 0 12px 22px rgba(0, 0, 0, .4);
}

/* -- Table -------------------------------------------------------------- */
.table {
  grid-area: table;
  align-self: center; justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(3, auto);
  gap: 10px 14px;
  align-items: center; justify-items: center;
}
.table__slot--n { grid-area: 1 / 2; }
.table__slot--w { grid-area: 2 / 1; }
.table__slot--c { grid-area: 2 / 2; display: flex; gap: 10px; }
.table__slot--e { grid-area: 2 / 3; }
.table__slot--s { grid-area: 3 / 2; }

.pile {
  position: relative;
  width: var(--cw); height: var(--ch);
  padding: 0; border: 0; background: none;
  border-radius: var(--cr);
}
/* The dashed "next card" slot peeking out from behind each foundation.
   It must stay in flow (no negative z-index, which would drop it behind
   the felt) — the pile's card sits above it via .pile .card { z-index: 1 }. */
.pile::after {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transform: translate(calc(var(--cw) * .34), calc(var(--cw) * -.14));
  border: 1.5px dashed rgba(255, 255, 255, .3);
  border-radius: var(--cr);
  font-size: calc(var(--cw) * .38);
  color: rgba(255, 255, 255, .32);
  pointer-events: none;
}
/* Each ghost slot leans toward the middle of the table, as in the design. */
.pile[data-foundation="S"]::after { content: "♠"; transform: translateX(calc(var(--cw) * -.34)); }
.pile[data-foundation="H"]::after { content: "♥"; transform: translateX(calc(var(--cw) * .34)); }
.pile[data-foundation="C"]::after { content: "♣"; transform: translateX(calc(var(--cw) * -.34)); }
.pile[data-foundation="D"]::after { content: "♦"; transform: translateX(calc(var(--cw) * .34)); }
.pile--stock::after, .pile--discard::after { content: none; }

.pile[data-droppable="true"] {
  box-shadow: 0 0 0 3px var(--gold-soft), 0 0 22px rgba(231, 207, 158, .55);
  cursor: pointer;
}
.pile[data-complete="true"] { box-shadow: 0 0 0 2px rgba(231, 207, 158, .7); }

.pile--stock { cursor: pointer; }
.pile--stock[data-empty="true"] { cursor: default; }
.pile--stock .count,
.pile--discard .count { display: none; }

.pile--discard[data-empty="true"]::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border: 1.5px dashed rgba(255, 255, 255, .28);
  border-radius: var(--cr);
  transform: none;
}

.felt-quote {
  grid-area: table;
  align-self: end; justify-self: center;
  margin-bottom: 4px;
  font-family: var(--serif); font-style: italic; font-size: 17px;
  text-align: center; color: rgba(255, 255, 255, .72);
  pointer-events: none;
}

.board__counts,
.board__rule {
  position: absolute; bottom: 12px;
  padding: 7px 14px;
  border-radius: 7px;
  background: rgba(4, 26, 18, .62);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: #D5E4DA;
}
.board__counts { left: 16px; display: flex; gap: 18px; }
.board__counts b { color: #fff; font-variant-numeric: tabular-nums; }
.board__rule { right: 16px; text-align: center; line-height: 1.45; max-width: 280px; }

.board__msg {
  position: absolute; left: 50%; top: 50%; z-index: 30;
  transform: translate(-50%, -50%);
  min-width: 260px; max-width: 90%;
  padding: 20px 28px;
  border-radius: 12px;
  background: rgba(4, 26, 18, .93);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg);
  font-family: var(--serif); font-size: 20px; text-align: center; color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.board__msg[data-show="true"] { opacity: 1; visibility: visible; }

/* --------------------------- 8. Playing cards --------------------------- */
.card {
  position: relative;
  width: var(--cw); height: var(--ch);
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--cr);
  background: linear-gradient(160deg, #FFFFFF, #F5F2EA);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .1);
  color: #16233C;
  font-family: var(--sans);
  user-select: none;
}
button.card { cursor: pointer; }
.card--red { color: var(--red); }

.card__c {
  position: absolute;
  display: grid; justify-items: center;
  line-height: .95;
  font-weight: 700;
  font-size: calc(var(--cw) * .27);
}
.card__c i { font-style: normal; font-size: calc(var(--cw) * .26); }
.card__c--tl { top: calc(var(--cw) * .07); left: calc(var(--cw) * .09); }
.card__c--br { bottom: calc(var(--cw) * .07); right: calc(var(--cw) * .09); transform: rotate(180deg); }

.card__face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: calc(var(--cw) * .52);
}
.card--court .card__face {
  font-size: calc(var(--cw) * .3);
  font-family: var(--serif); font-weight: 800;
  letter-spacing: .04em;
}
.card--court::before {
  content: "";
  position: absolute; inset: calc(var(--cw) * .17) calc(var(--cw) * .13);
  border: 1px solid currentColor;
  border-radius: calc(var(--cr) * .6);
  opacity: .35;
}

.card--back {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .13) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .13) 0 3px, transparent 3px 6px),
    linear-gradient(160deg, #3D63A8, #1E3E77);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 0 0 4px #24457E;
}
.card--back::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--cw) * .3); height: calc(var(--cw) * .3);
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 2px;
}

.card[data-playable="true"] { box-shadow: 0 0 0 2px var(--gold-soft), 0 4px 10px rgba(0, 0, 0, .35); }
.card[data-hint="true"] { animation: pulse 1s var(--ease) 3; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold-soft), 0 4px 10px rgba(0, 0, 0, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(231, 207, 158, .75), 0 8px 18px rgba(0, 0, 0, .4); }
}

/* stacked look for piles holding several cards */
.pile .card { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.pile[data-depth="true"]::before {
  content: "";
  position: absolute; inset: 0;
  transform: translate(3px, 3px);
  border-radius: var(--cr);
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

/* --------------------------- 9. Content sections ------------------------ */

/* How to play */
.howto { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.howto__intro p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { display: flex; gap: 14px; padding: 4px 22px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps b {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-family: var(--serif); font-size: 17px;
}
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { font-size: 13.5px; color: var(--muted); }

/* Mobile stacked rows */
.rows { display: grid; gap: 12px; }
.row-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--cream-3);
  color: var(--ink);
}
.row-link--blue  { background: #E9EFF4; }
.row-link--green { background: #E3EEE5; }
.row-link__thumb { width: 108px; height: 78px; border-radius: 10px; object-fit: cover; flex: none; }
.row-link__icon {
  display: grid; place-items: center; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy-deep); color: var(--gold);
}
.row-link__icon--felt { background: var(--felt-dark); }
.row-link__icon svg { width: 30px; height: 30px; }
.row-link__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row-link__body b { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.row-link__body > span { font-size: 14.5px; color: var(--text); }
.row-link__chev { width: 22px; height: 22px; color: var(--muted); flex: none; }

/* News */
.news { display: grid; grid-template-columns: 1.72fr 1fr 1fr 1fr; gap: 14px; align-items: start; }
.news__feat, .news__item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.news__feat:hover, .news__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news__feat { display: grid; grid-template-columns: 44% 1fr; }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
.news__item .news__media img { height: 106px; }
.news__body { padding: 14px 16px 16px; display: grid; gap: 7px; align-content: start; }
.news__feat .news__body { padding: 20px 22px; }
.news__body h3 { font-size: 16px; line-height: 1.25; }
.news__feat .news__body h3 { font-size: 21px; }
/* inline-block + padding keeps the headline link above the 24px target floor */
.news__body h3 a { color: inherit; display: inline-block; padding-block: 3px; }
.news__body h3 a:hover { color: var(--gold-dark); }
.news__body p { font-size: 13.5px; color: var(--muted); }
.news__body time { font-size: 12px; color: var(--muted); }
.news__feat .news__body time { margin-top: 8px; }
.news__item .news__body time { justify-self: end; }
.badge {
  justify-self: start;
  padding: 3px 9px; border-radius: 4px;
  background: #D33A3A; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}

/* Learn */
.learn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lcard {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.lcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lcard img { width: 100%; height: 128px; object-fit: cover; }
.lcard__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.lcard h3 { font-size: 17px; }
.lcard p { font-size: 13.5px; color: var(--muted); }
.lcard__cta {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px;              /* keeps the CTA above the 24px target floor */
  margin-top: 4px; font-size: 14px; font-weight: 600;
}
.lcard__cta svg { width: 15px; height: 15px; }

/* Strategy */
.strat {
  display: grid;
  grid-template-columns: 44% 1fr auto;
  gap: 36px; align-items: center;
}
.strat__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.strat__body { display: grid; gap: 14px; justify-items: start; }
.strat__lead { font-size: 15px; color: var(--muted); max-width: 480px; }
.checks { display: grid; gap: 9px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text); }
.checks i {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #fff;
}
.checks i svg { width: 15px; height: 15px; }
.strat__quote {
  max-width: 210px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.strat__quote p {
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4;
  color: var(--muted);
}
.strat__quote::after {
  content: ""; display: block; width: 60px; height: 2px;
  margin-top: 16px; background: var(--gold);
}

/* Daily challenge */
.daily {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 34px; align-items: center;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: #EDF2EA;
  border: 1px solid #DFE7DA;
}
.daily__intro > p { margin-top: 8px; font-size: 14.5px; color: var(--muted); max-width: 340px; }
.stats { display: flex; gap: 12px; margin-top: 18px; }
.stats li {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
  padding: 10px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stats__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px; color: var(--gold-dark); }
.stats__ico--flame { color: #E2622A; }
.stats__ico svg { width: 24px; height: 24px; }
.stats b { font-family: var(--serif); font-size: 17px; color: var(--ink); align-self: end; }
.stats span { font-size: 12px; color: var(--muted); align-self: start; }

.mini {
  --cw: 46px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(3, auto);
  gap: 8px 14px;
  place-items: center;
}
.mini__cell--t { grid-area: 1 / 2; }
.mini__cell--l { grid-area: 2 / 1; }
.mini__cell--c { grid-area: 2 / 2; }
.mini__cell--r { grid-area: 2 / 3; }
.mini__cell--b { grid-area: 3 / 2; }
.mini__ghost {
  display: grid; place-items: center;
  width: var(--cw); height: var(--ch);
  border: 1.5px dashed #BFC9BC; border-radius: var(--cr);
  color: #9DAE9D; font-size: 18px;
}
.mini__ghost--tl { grid-area: 1 / 1; }
.mini__ghost--tr { grid-area: 1 / 3; }
.mini__ghost--bl { grid-area: 3 / 1; }
.mini__ghost--br { grid-area: 3 / 3; }
.mini .card { box-shadow: 0 2px 6px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(0, 0, 0, .12); }

.daily__cta { display: grid; gap: 10px; justify-items: start; }
.daily__cta h3 { font-size: 18px; }
.daily__cta p { font-size: 14.5px; color: var(--muted); max-width: 300px; }

/* Popular guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.guide:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.guide img { width: 96px; height: 62px; border-radius: 6px; object-fit: cover; flex: none; }
.guide__txt { display: grid; gap: 2px; }
.guide__txt b { font-family: var(--serif); font-size: 16px; }
.guide__txt span { font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item + .faq__item { border-top: 1px solid var(--line-soft); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 12px 20px;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-dark); }
.faq__item summary i { flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq__item summary i svg { width: 18px; height: 18px; }
.faq__item[open] summary i { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; }
.faq__a p { font-size: 14.5px; color: var(--text); max-width: 80ch; }

/* --------------------- 10. Newsletter & footer -------------------------- */
.cta { background: #16385F; color: #EAF0F7; padding: 30px 0; }
.cta__inner {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 30px; align-items: center;
}
.cta__ico { width: 56px; height: 40px; color: var(--gold); flex: none; }
.cta__copy h2 { color: #fff; font-size: clamp(20px, 2vw, 27px); }
.cta__copy p { margin-top: 5px; font-size: 14.5px; color: #B9CBE0; }
.cta__form { position: relative; display: flex; }
.cta__form input {
  width: 260px; min-height: 46px;
  padding: 10px 16px;
  border: 0; border-radius: 6px 0 0 6px;
  background: #fff; color: #223046;
}
.cta__form input::placeholder { color: #8D9AAC; }
.cta__form .btn { border-radius: 0 6px 6px 0; }
.cta__note {
  position: absolute; left: 0; top: calc(100% + 5px);
  font-size: 12.5px; color: var(--gold-soft);
}
.cta__quote {
  padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45;
  color: #C6D5E5;
}

.ftr { background: var(--navy-deep); color: #C3D2E2; padding: 26px 0 18px; }
.ftr__inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding-bottom: 18px;
}
.brand--ftr { color: #fff; }
.brand--ftr .brand__name { font-size: 21px; }
.brand--ftr .brand__tag { color: var(--gold); letter-spacing: .3em; }
.ftr__nav { display: flex; gap: 26px; margin-inline: auto; }
.ftr__nav a {
  display: inline-flex; align-items: center; min-height: 32px;
  color: #C3D2E2; font-size: 14.5px;
}
.ftr__nav a:hover { color: var(--gold); }
.ftr__quote { font-family: var(--serif); font-style: italic; font-size: 14px; color: #A9BCD1; }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 6px; }
.social a:hover { color: var(--gold); background: rgba(255, 255, 255, .07); }
.social svg { width: 19px; height: 19px; }

.ftr__base {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: #96A9C0;
}
.ftr__legal { display: flex; gap: 20px; }
.ftr__legal a {
  display: inline-flex; align-items: center; min-height: 32px;
  color: #96A9C0; font-size: 12.5px;
}
.ftr__legal a:hover { color: var(--gold); }

/* ---------------------------- 11. Fullscreen ---------------------------- */
.board:fullscreen,
.board:-webkit-full-screen,
.board.is-fs {
  --cw: min(5.4vw, 8.4vh);
  width: 100%; height: 100%;
  margin: 0; padding: 8px;
  border-radius: 0;
  background: var(--wood-dark);
}
.board.is-fs {
  position: fixed; inset: 0; z-index: 200;
  height: 100dvh;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.board:fullscreen .board__felt,
.board:-webkit-full-screen .board__felt,
.board.is-fs .board__felt {
  height: 100%;
  border-radius: 4px;
}
body.has-fs { overflow: hidden; }

/* --------------------------- 12. Responsive ----------------------------- */
@media (max-width: 1100px) {
  .news { grid-template-columns: repeat(2, 1fr); }
  .news__feat { grid-column: 1 / -1; }
  .learn  { grid-template-columns: repeat(2, 1fr); }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .strat  { grid-template-columns: 1fr 1fr; }
  .strat__quote { grid-column: 1 / -1; max-width: none; padding-left: 0; border-left: 0; }
  .daily  { grid-template-columns: 1fr 1fr; }
  .daily__cta { grid-column: 1 / -1; }
  .howto  { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --cw: 42px; --shell: 100%; }

  .d-only { display: none !important; }
  .m-only { display: revert !important; }
  .rows.m-only { display: grid !important; }
  .row-link.m-only { display: flex !important; }
  .chips.m-only { display: flex !important; }

  .shell { padding-inline: 16px; }

  /* header becomes the navy bar */
  .hdr { background: var(--navy-deep); border-bottom: 0; }
  .hdr__inner { min-height: 64px; gap: 12px; }
  /* "KINGS" over "IN THE CORNER", as in the mobile design */
  .brand { color: #fff; }
  .brand__name { font-size: 21px; }
  .brand__name b:first-of-type { display: block; }
  .brand__tag { display: none; }

  /* hero becomes the dark green panel */
  .hero {
    padding: 0 0 18px;
    background: linear-gradient(180deg, #04351F, #063A22 55%, #063A22);
  }
  .hero .shell:first-child { padding-block: 22px 16px; }
  .hero__title {
    text-align: left; color: #fff;
    font-size: clamp(30px, 8.4vw, 40px); line-height: 1.12;
  }
  .hero__title span { color: var(--gold); }
  .hero__sub { text-align: left; margin-inline: 0; color: #C4D6C9; font-size: 15px; }

  .board { margin-top: 0; padding: 7px; border-radius: 14px; }
  /* extra row so the felt quote can never sit on top of a foundation */
  .board__felt {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas:
      "hud   hud   hud"
      ".     north ."
      "west  table east"
      "quote quote quote"
      "you   you   you";
    min-height: 460px;
    padding: 10px 10px 12px;
    gap: 6px;
  }
  /* Chips left, Open Full Screen right on one line — as in the mobile design.
     .board__tools collapses with display:contents so its children join the HUD's
     own flex line instead of forming a narrow column beside the chips. */
  .board__hud {
    position: relative;
    flex-direction: row; flex-wrap: wrap;
    align-items: flex-start; gap: 8px;
  }
  .board__tools { display: contents; }
  .chips { flex: 0 0 auto; gap: 6px; }
  .chip { min-width: 54px; padding: 4px 7px; }
  .chip span { font-size: 10px; }
  .chip b { font-size: 15px; }
  .btn--fs {
    margin-left: auto;
    min-height: 40px; padding: 7px 11px; gap: 6px; font-size: 12.5px;
  }
  .board__ctrls { flex-basis: 100%; justify-content: flex-start; margin-top: 2px; }
  .board__ctrls .btn { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
  .settings { right: 0; top: calc(100% + 4px); }
  .turn { display: none; }

  .felt-quote { grid-area: quote; align-self: center; margin: 2px 0 6px; }
  .settings { right: 0; }
  .seat__meta { padding: 3px 8px; }
  .seat__meta b { font-size: 11.5px; }
  .seat__meta span { font-size: 10px; }
  .avatar { width: 34px; height: 34px; }
  .table { gap: 6px 8px; }

  .sec { padding: 26px 0; }
  .sec--howto .howto__intro { display: none; }
  .sec--howto { border-bottom: 0; padding-top: 20px; }
  .sec__head { align-items: center; }
  .h2 { font-size: 25px; }
  .h2::after { display: none; }

  .news { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .news__feat { display: none; }
  .news__item .news__media img { height: 120px; }

  .learn { grid-template-columns: 1fr; }
  .lcard { display: grid; grid-template-columns: 120px 1fr; }
  .lcard img { height: 100%; }

  .sec--band .strat { grid-template-columns: 1fr; gap: 18px; }
  .strat__quote { display: none; }

  .daily { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .mini { --cw: 40px; justify-self: center; }
  .stats { flex-wrap: wrap; }

  .guides { grid-template-columns: 1fr; }

  .faq { display: none; }

  /* The mobile design replaces these four sections (and the FAQ accordion)
     with the compact rows above. Nothing is deleted: tapping a row reveals
     the section it points at, so the content stays reachable on phones. */
  #learn, #strategy, #daily, #guides { display: none; }
  #learn.is-revealed,
  #strategy.is-revealed,
  #daily.is-revealed,
  #guides.is-revealed { display: block; }
  .faq.is-revealed { display: block; }

  .cta { padding: 22px 0; }
  .cta__inner { grid-template-columns: auto 1fr; gap: 14px 16px; }
  .cta__ico { width: 44px; height: 32px; }
  .cta__form { grid-column: 1 / -1; }
  .cta__form input { width: 100%; }

  .ftr__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ftr__nav { margin-inline: 0; flex-wrap: wrap; gap: 16px; }
  .ftr__quote { display: none; }
  .ftr__base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ftr__base-quote { font-family: var(--serif); font-style: italic; color: #A9BCD1; }
}

@media (max-width: 560px) {
  :root { --cw: 34px; }
  .board__felt { min-height: 400px; padding: 8px; }
  .chip { min-width: 62px; padding: 5px 8px; }
  .chip b { font-size: 15px; }
  .btn--fs { font-size: 11.5px; padding: 7px 9px; }
  .chip { min-width: 50px; }
  .seat--west .seat__id, .seat--east .seat__id { display: none; }
  .felt-quote { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
