/* Card Games With M: a card room at night. Dark felt, ivory cards, gold chips. */
:root {
  --bg: #0b1210;
  --panel: #13201a;
  --panel-2: #192920;
  --panel-3: #22362b;
  --line: rgba(222, 240, 228, .08);
  --line-2: rgba(222, 240, 228, .16);
  --text: #f3efe4;
  --text-2: #b4c1b8;
  --text-3: #849389;
  --gold: #ffc93c;
  --gold-hi: #ffd86b;
  --gold-ink: #241a00;
  --red: #ff5f57;
  --blue: #62a9ff;
  --green: #3ddc8f;
  --ivory: #f3efe4;
  --card-ink: #14120e;
  --card-red: #d8392f;
  --s-spade: var(--ivory);
  --s-heart: var(--red);
  --s-diamond: var(--blue);
  --s-club: var(--green);
  --display: "Lilita One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --sans: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --face: Georgia, "Times New Roman", serif;
  --r: 14px;
  --r-lg: 20px;
  --top: 68px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--sans);
  background-color: var(--bg);
  background-image: radial-gradient(80% 560px at 50% -160px, rgba(37, 122, 82, .42), transparent 72%), var(--noise);
  background-repeat: no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .005em; color: var(--text); text-wrap: balance; }
p { margin: 0 0 1em; }
button, input { font: inherit; }

.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
.su-spade { color: var(--s-spade); }
.su-heart { color: var(--s-heart); }
.su-diamond { color: var(--s-diamond); }
.su-club { color: var(--s-club); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px;
  border: 0; border-radius: 12px; background: var(--panel-3); color: var(--text); cursor: pointer;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
  transition: background .15s ease, transform .1s ease, box-shadow .1s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { background: #2b4437; color: var(--text); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .22); }
.btn-gold, .btn-gold:hover { color: var(--gold-ink); }
.btn-gold { background: var(--gold); box-shadow: inset 0 -3px 0 rgba(120, 72, 0, .35), 0 8px 22px -10px rgba(255, 201, 60, .7); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold:active { box-shadow: inset 0 -1px 0 rgba(120, 72, 0, .35); }
.btn-sm { height: 40px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.08rem; border-radius: 14px; }
.btn-lg .ico { width: 20px; height: 20px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); cursor: pointer;
  font: 500 .92rem/1 var(--sans); white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.chip:not(:has(.n)) { padding-right: 14px; }
.chip .ico { width: 16px; height: 16px; }
.chip .n { min-width: 24px; padding: 4px 7px; border-radius: 999px; background: var(--panel-3); color: var(--text-2); font-size: .76rem; font-weight: 600; text-align: center; }
.chip:hover { color: var(--text); border-color: rgba(222, 240, 228, .32); }
.chip[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--card-ink); font-weight: 600; }
.chip[aria-pressed="true"] .n { background: rgba(20, 18, 14, .1); color: var(--card-ink); }
.chip[aria-pressed="true"] .su-spade { color: var(--card-ink); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px;
  font: 700 .68rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(7, 13, 11, .8); color: var(--text);
}
.badge-gold { background: var(--gold); color: var(--gold-ink); }
.badge-green { background: var(--green); color: #032313; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(11, 18, 16, .88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: var(--top); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo-mark { width: 40px; height: 40px; transition: rotate .25s ease; }
.logo:hover .logo-mark { rotate: -8deg; }
.logo-text { font: 400 1.34rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.logo-text b { font-weight: 400; color: var(--gold); }
.search { position: relative; flex: 1; max-width: 440px; margin: 0 0 0 14px; }
.search .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 60, .2); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav a .ico { width: 18px; height: 18px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--panel-2); color: var(--text); }

/* ---------- Home: intro + game mosaic ---------- */
.intro { padding-top: 44px; padding-bottom: 28px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 440px); gap: 16px 56px; align-items: end; }
.intro h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: .98; letter-spacing: 0; max-width: 12em; }
.intro-lede { margin: 0; color: var(--text-2); font-size: 1.06rem; }
.intro-lede b { color: var(--text); font-weight: 600; }

.m-card { position: relative; display: inline-block; width: .82em; height: 1.08em; margin: 0 .06em 0 .1em; vertical-align: -.14em; }
.m-card::before, .m-card::after { content: ""; position: absolute; inset: 0; border-radius: .12em; }
.m-card::before { background: var(--gold); rotate: 13deg; translate: .12em .02em; }
.m-card::after { background: var(--ivory); rotate: -6deg; box-shadow: 0 .06em .18em rgba(0, 0, 0, .45); }
.m-card span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding-top: .06em; color: var(--card-red); rotate: -6deg; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.bar h2 { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; }
.bar h2 .ico { width: 22px; height: 22px; color: var(--gold); }

.games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r); background: var(--panel);
  color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s ease;
}
.tile:hover { color: var(--text); transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 0 0 2px var(--gold), 0 22px 34px -18px rgba(0, 0, 0, .9); }
.tile:focus-visible { outline-offset: 3px; border-radius: var(--r); }
.tile-art { position: relative; aspect-ratio: 5 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--panel-2); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-art img { transform: scale(1.06); }
.tile-art .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.tile-play {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 -3px 0 rgba(120, 72, 0, .35), 0 8px 18px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(8px) scale(.85); transition: opacity .18s ease, transform .18s ease;
}
.tile-play .ico { width: 18px; height: 18px; margin-left: 2px; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: none; }
.tile-cap { display: grid; gap: 4px; padding: 11px 14px 14px; }
.tile-name { font-size: 1.16rem; line-height: 1.12; }
.tile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin: 0; color: var(--text-3); font-size: .8rem; }
.tile-meta .ico { width: 14px; height: 14px; }
.tile-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.tile-desc, .tile-cta, .tile .badge-feat { display: none; }

.games.featured .is-featured { grid-column: span 2; grid-row: span 2; }
.games.featured .is-featured .tile-art { aspect-ratio: auto; flex: 1; min-height: 220px; }
.games.featured .is-featured .tile-art img { position: absolute; inset: 0; }
.games.featured .is-featured .tile-cap { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 16px 20px 20px; }
.games.featured .is-featured .tile-name { font-size: 2.1rem; }
.games.featured .is-featured .tile-meta { grid-column: 1; font-size: .86rem; }
.games.featured .is-featured .tile-desc { display: block; grid-column: 1; margin: 2px 0 0; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.games.featured .is-featured .tile-cta { display: inline-flex; grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.games.featured .is-featured .badge-feat { display: inline-flex; }
.games.featured .is-featured .tile-play { display: none; }
.games:not(.featured) .tile-az { display: none; }

.tile-az {
  grid-column: span 3; padding: 20px 22px; gap: 14px; justify-content: space-between; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, #1d6a48 0%, #134330 45%, var(--panel) 100%);
}
.az-k { display: flex; align-items: center; gap: 8px; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.az-k .ico { width: 16px; height: 16px; }
.tile-az .tile-name { font-size: 1.55rem; max-width: 18em; }
.az-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.az-names li { padding: 5px 10px; border-radius: 8px; background: rgba(243, 239, 228, .09); color: var(--text-2); font-size: .82rem; white-space: nowrap; }
.az-names .more { background: var(--ivory); color: var(--card-ink); font-weight: 600; }
.az-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--gold); }
.az-go .ico { width: 16px; height: 16px; transition: translate .15s; }
.tile-az:hover .az-go .ico { translate: 4px 0; }

.recent { margin-top: 28px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.recent h2 { display: flex; align-items: center; gap: 8px; font: 600 .9rem/1 var(--sans); color: var(--text-2); }
.recent h2 .ico { width: 18px; height: 18px; color: var(--gold); }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-list a { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.recent-list a:hover { background: var(--panel-2); }
.recent-list img { width: 52px; height: 32px; border-radius: 8px; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding-top: 88px; scroll-margin-top: calc(var(--top) + 8px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { display: flex; align-items: center; gap: .32em; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.sec-head h2 .ico { width: .74em; height: .74em; color: var(--gold); }
.sec-head p { margin: 10px 0 0; max-width: 64ch; color: var(--text-2); }
.sec-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-3); color: var(--gold); margin-bottom: 14px; }
.sec-icon .ico { width: 22px; height: 22px; }

.answer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 56px;
  padding: 22px 26px; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.answer h2 { font-size: 1.45rem; margin-bottom: 6px; }
.answer p { margin: 0; color: var(--text-2); max-width: 92ch; }
.answer a { color: var(--text); font-weight: 600; text-decoration-color: rgba(255, 201, 60, .7); }
.answer a:hover { color: var(--gold); }
.suit-card {
  display: grid; grid-template-columns: repeat(2, 20px); gap: 6px; padding: 12px 11px; border-radius: 10px;
  background: var(--ivory); rotate: -5deg; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .6);
}
.suit-card .ico { width: 20px; height: 20px; }
/* Suits printed on an ivory card face use deeper inks. */
.mini.su-spade, .on-card .su-spade { color: var(--card-ink); }
.mini.su-heart, .on-card .su-heart { color: var(--card-red); }
.mini.su-diamond, .on-card .su-diamond { color: #2f76d6; }
.mini.su-club, .on-card .su-club { color: #1d9c5c; }

/* ---------- The M list ---------- */
.toolbar {
  position: sticky; top: var(--top); z-index: 12; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  padding: 12px 0; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px);
}
.toolbar .search { flex: 1 1 280px; max-width: 380px; margin: 0; }
.count { margin: 14px 0 0; color: var(--text-3); font-size: .86rem; }

.group { padding-top: 36px; scroll-margin-top: calc(var(--top) + 72px); }
.group-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.group-head h3 { font-size: 1.6rem; }
.group-head .n { padding: 4px 9px; border-radius: 999px; background: var(--panel-3); color: var(--text-2); font: 600 .78rem/1 var(--sans); }
.group-head p { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: .93rem; }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.entry {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 16px; align-content: start; padding: 18px 18px 20px;
  border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  scroll-margin-top: calc(var(--top) + 84px); transition: box-shadow .15s;
}
.entry:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.entry-id { align-self: center; min-width: 0; }
.entry h4 { font-size: 1.32rem; line-height: 1.1; }
.entry .aka { margin: 4px 0 0; color: var(--text-3); font-size: .82rem; line-height: 1.35; }
.specs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.specs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: var(--panel-2); color: var(--text-2); font-size: .8rem; font-weight: 500; line-height: 1.2; }
.specs .ico { width: 14px; height: 14px; color: var(--text-3); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; border-radius: 2px; background: rgba(243, 239, 228, .16); rotate: 45deg; }
.lvl-1 .pips i:nth-child(-n+1) { background: var(--green); }
.lvl-2 .pips i:nth-child(-n+2) { background: var(--gold); }
.lvl-3 .pips i:nth-child(-n+3) { background: var(--red); }
.entry > p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.entry-play {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px 8px 10px;
  border-radius: 10px; background: rgba(255, 201, 60, .12); color: var(--gold); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.entry-play .ico { width: 16px; height: 16px; }
.entry-play:hover { background: var(--gold); color: var(--gold-ink); }
.entry.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 45% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 6px rgba(255, 201, 60, .2); } 100% { box-shadow: inset 0 0 0 1px var(--line); } }

/* Mini covers: the list is dealt as one deck, numbered 1 to 30. */
.mini {
  position: relative; display: grid; place-items: center; width: 52px; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 7px;
  background: var(--ivory); color: var(--card-ink); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .65); rotate: -3deg;
}
.entry:nth-child(even) .mini { rotate: 3deg; }
.mini .ico { width: 22px; height: 22px; }
.mini .rk { position: absolute; top: 4px; left: 5px; font: 400 .78rem/1 var(--display); }
.mini .rk.r { top: auto; left: auto; bottom: 4px; right: 5px; rotate: 180deg; }
.mini.red { color: var(--card-red); }
.mini.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini.photo .rk { z-index: 1; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.empty { margin-top: 18px; padding: 32px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--text-2); text-align: center; }

/* Draw a random game */
.draw {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 24px 48px;
  margin-top: 72px; padding: 44px 52px; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  background: radial-gradient(90% 130% at 80% 40%, #1f7d54 0%, #125236 50%, #0c3524 100%);
}
.draw::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .8; pointer-events: none; }
.draw > * { position: relative; }
.draw h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.draw p { margin: 12px 0 24px; max-width: 46ch; color: rgba(243, 239, 228, .8); }
.draw-result { min-height: 1.6em; margin: 16px 0 0 !important; font-weight: 500; color: var(--text) !important; }
.draw-result a { color: var(--gold); font-weight: 700; }
.draw-stage { position: relative; height: 250px; display: grid; place-items: center; perspective: 900px; }
.draw-stage::before, .draw-stage::after, .draw-back {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 9px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 9px), #b8271e;
  border: 6px solid var(--ivory);
}
.draw-stage::before, .draw-stage::after { content: ""; position: absolute; width: 150px; aspect-ratio: 5 / 7; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.draw-stage::before { rotate: -14deg; translate: -64px 12px; }
.draw-stage::after { rotate: -6deg; translate: -34px 4px; }
.draw-card { position: relative; z-index: 1; width: 158px; aspect-ratio: 5 / 7; rotate: 7deg; translate: 40px 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.draw-card.up { transform: rotateY(180deg); }
.draw-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.draw-front { display: grid; place-content: center; gap: 8px; padding: 16px; transform: rotateY(180deg); background: var(--ivory); color: var(--card-ink); text-align: center; }
.draw-front b { font: 400 1.35rem/1.05 var(--display); }
.draw-front span:not(.rk) { font-size: .74rem; color: #5d574b; }
.draw-front .rk { position: absolute; top: 9px; left: 11px; font: 400 1.05rem/1 var(--display); color: var(--card-red); }
.draw-front .rk.r { top: auto; left: auto; right: 11px; bottom: 9px; rotate: 180deg; }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.occ { padding: 20px 22px 22px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.occ .sec-icon { width: 40px; height: 40px; margin-bottom: 14px; }
.occ .sec-icon .ico { width: 20px; height: 20px; }
.occ h3 { font-size: 1.28rem; }
.occ p { margin: 6px 0 14px; color: var(--text-3); font-size: .9rem; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
.picks a { padding: 6px 11px; border-radius: 8px; background: var(--panel-3); color: var(--text); font-weight: 600; font-size: .86rem; text-decoration: none; }
.picks a:hover { background: var(--gold); color: var(--gold-ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 920px; }
.faq details { border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--line-2); }
.faq summary { position: relative; padding: 18px 60px 18px 22px; list-style: none; cursor: pointer; font: 600 1.04rem/1.4 var(--sans); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px; color: var(--text);
  background: linear-gradient(currentColor 0 0) center / 12px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 12px no-repeat, var(--panel-3);
  transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; color: var(--gold-ink); background-color: var(--gold); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); max-width: 76ch; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 112px; background: #070d0b; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 44px; }
.foot-brand p { max-width: 34ch; margin: 16px 0 0; color: var(--text-3); font-size: .92rem; }
.foot-suits { display: flex; gap: 8px; margin-top: 18px; }
.foot-suits .ico { width: 18px; height: 18px; opacity: .85; }
.site-footer h2 { margin-bottom: 14px; font: 600 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { color: var(--text-2); font-size: .93rem; text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); }
.foot-base { border-top: 1px solid var(--line); }
.foot-base .wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; color: var(--text-3); font-size: .82rem; }

/* ---------- Game pages ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 18px 0 14px; color: var(--text-3); font-size: .85rem; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs .ico { width: 14px; height: 14px; opacity: .55; }
.game-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.console { overflow: hidden; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -36px #000; }
.screen { position: relative; width: 100%; aspect-ratio: 5 / 3; max-height: calc(100vh - 200px); min-height: 340px; background: #050807; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.screen:fullscreen { aspect-ratio: auto; max-height: none; }
.gate { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; text-align: center; }
.gate-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(26px) saturate(1.25) brightness(.42); }
.gate-inner { position: relative; display: grid; justify-items: center; gap: 20px; padding: 24px; }
.gate-thumb { width: min(360px, 62vw); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 3px rgba(243, 239, 228, .9), 0 24px 50px rgba(0, 0, 0, .6); rotate: -2deg; }
.gate-note { max-width: 46ch; margin: 0; color: rgba(243, 239, 228, .72); font-size: .84rem; text-wrap: balance; }
.gate-note .ico { width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; color: var(--green); }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.console-icon { flex: none; width: 66px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); }
.console-id { flex: 1; min-width: 0; }
.console-id h1 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.05; }
.console-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 5px 0 0; color: var(--text-3); font-size: .85rem; }
.console-meta .ico { width: 15px; height: 15px; }
.console-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.console-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--panel-3); color: var(--text); font: 600 .88rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.icon-btn .ico { width: 17px; height: 17px; }
.icon-btn:hover:not(:disabled) { background: #2b4437; color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: default; }

.side h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1.3rem; }
.side-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-list a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 12px; color: var(--text); text-decoration: none; }
.side-list a:hover { background: var(--panel-2); color: var(--text); }
.side-list img { width: 116px; aspect-ratio: 5 / 3; height: auto; object-fit: cover; border-radius: 9px; }
.side-list b { display: block; font: 400 1.04rem/1.15 var(--display); font-weight: 400; }
.side-list small { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--text-3); font-size: .78rem; }
.side-list small .ico { width: 13px; height: 13px; }

.game-info { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 56px; align-items: start; padding-top: 48px; }
.facts { position: sticky; top: calc(var(--top) + 20px); overflow: hidden; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.facts h2 { padding: 16px 18px 6px; font-size: 1.25rem; }
.facts dl { margin: 0; padding: 0 18px 6px; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-3); }
.facts dd { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; text-align: right; }
.facts dd .ico { width: 15px; height: 15px; }
.facts-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--panel-2); color: var(--gold); font-weight: 600; font-size: .92rem; text-decoration: none; }
.facts-link .ico { width: 16px; height: 16px; transition: translate .15s; }
.facts-link:hover .ico { translate: 4px 0; }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; color: var(--text-2); }
.prose .lede { color: var(--text); font-size: 1.14rem; line-height: 1.6; }
.prose h2 { margin: 1.7em 0 .65em; font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
.prose > h2:first-child, .prose .lede + h2 { margin-top: .9em; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 1.3rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--gold); }
.steps { display: grid; gap: 10px; margin: 0; padding: 0 !important; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; padding: 14px 18px 14px 16px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 46px; border-radius: 6px; rotate: -5deg;
  background: var(--ivory); color: var(--card-red); font: 400 1.35rem/1 var(--display); box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .6);
}
.steps li:nth-child(even)::before { rotate: 4deg; color: var(--card-ink); }
.tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 26px 0; padding: 18px 20px; border-radius: var(--r); background: rgba(255, 201, 60, .07); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .24); }
.tip > .ico { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--gold); }
.tip b { font: 700 .76rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tip p { margin: 0; color: var(--text); }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.rule { padding: 16px 18px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rule b { display: block; color: var(--text); font: 400 1.22rem/1.15 var(--display); }
.rule p { margin: 6px 0 0; font-size: .93rem; }
.prose .faq { margin-top: 8px; }

/* Plain text pages */
.page { padding-top: 56px; }
.narrow { max-width: 808px; }
.page h1 { margin-bottom: .45em; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.page h2 { margin-top: 1.5em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 11px; border-radius: 8px; background: var(--panel-3); color: var(--gold); font: 700 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.lost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.lost-card { width: 150px; aspect-ratio: 5 / 7; border-radius: 14px; rotate: -8deg; border: 6px solid var(--ivory); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 9px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 9px), #b8271e; }
.lost .picks { margin-top: 20px !important; }

/* ---------- Playing cards (own games) ---------- */
.card {
  --w: 74px;
  position: relative; flex: none; width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * .09);
  background: #fbf8f1; color: var(--card-ink); border: 1px solid rgba(0, 0, 0, .15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 12px rgba(0, 0, 0, .25);
  font-family: var(--face); user-select: none; -webkit-user-select: none;
}
.card.red { color: var(--card-red); }
.card .corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 700; font-size: calc(var(--w) * .2); }
.card .corner i { font-style: normal; font-size: .85em; margin-top: 1px; }
.card .tl { top: 6%; left: 8%; }
.card .br { bottom: 6%; right: 8%; transform: rotate(180deg); }
.card .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .5); }
.card .pip.face { font-size: calc(var(--w) * .42); font-weight: 700; }
.card.back {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 8px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 8px), #b8271e;
  border: 3px solid #fbf8f1;
}
.card.back > * { display: none; }

.table-felt {
  position: relative; overflow: hidden; min-height: 500px; padding: 20px; color: var(--ivory);
  background: radial-gradient(90% 75% at 50% 38%, #1f8257 0%, #155d3e 48%, #0c3a27 100%);
}
.table-felt::before { content: ""; position: absolute; inset: 0; background: var(--noise); pointer-events: none; }
.table-felt > * { position: relative; }
.table-felt > .overlay { position: absolute; }
.hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.hud .stats { display: flex; flex-wrap: wrap; gap: 6px; }
.hud .stats span { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .26); color: rgba(243, 239, 228, .72); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hud .stats b { color: #fff; font: 400 1.08rem/1 var(--display); letter-spacing: .02em; text-transform: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .28); }
.seg button { padding: 9px 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(243, 239, 228, .8); font: 600 .86rem/1 var(--sans); cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: var(--ivory); color: var(--card-ink); }
.btn.felt, .btn.felt:hover { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 -3px 0 rgba(120, 72, 0, .35); height: 44px; font-size: .95rem; }
.btn.felt-ghost, .btn.felt-ghost:hover { height: 44px; background: rgba(0, 0, 0, .22); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(243, 239, 228, .35); font-size: .92rem; }
.btn.felt-ghost:hover { background: rgba(0, 0, 0, .34); }

/* Memory */
.memory-grid { display: grid; gap: 10px; justify-content: center; grid-template-columns: repeat(var(--cols, 4), minmax(0, 96px)); }
.mcard { width: 100%; aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; }
.mcard .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .38s ease; }
.mcard:hover:not(.up):not(.done) .inner { transform: translateY(-3px); }
.mcard.up .inner, .mcard.done .inner { transform: rotateY(180deg); }
.mcard .card { --w: 100%; position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; container-type: inline-size; }
.mcard .card .corner { font-size: 20cqw; }
.mcard .card .pip { font-size: 50cqw; }
.mcard .card .pip.face { font-size: 42cqw; }
.mcard .front { transform: rotateY(180deg); }
.mcard.done .front { box-shadow: 0 0 0 3px var(--gold); opacity: .85; }
.mcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; text-align: center; background: rgba(5, 22, 14, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay h2 { margin: 0 0 10px; color: var(--gold); font-size: clamp(2rem, 5vw, 3rem); }
.overlay p { margin: 0 0 22px; color: var(--ivory); }

/* Mau Mau */
.mm-table { display: grid; gap: 16px; }
.opponents { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.opp { min-width: 128px; padding: 10px 14px; border-radius: 14px; border: 2px solid transparent; background: rgba(0, 0, 0, .22); text-align: center; transition: border-color .2s; }
.opp.active { border-color: var(--gold); }
.opp .name { font: 400 1rem/1.2 var(--display); }
.opp .fan { display: flex; justify-content: center; min-height: 48px; margin-top: 6px; }
.opp .fan .card { --w: 34px; }
.opp .fan .card + .card { margin-left: -24px; }
.opp .ccount { font-size: .8rem; opacity: .85; }
.opp .said { min-height: 1.2em; color: var(--gold); font: 400 .95rem var(--display); }
.center { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.pile { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8rem; opacity: .95; }
.pile .card { --w: 84px; }
.deck-btn { padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.deck-btn .card { transition: transform .12s ease; }
.deck-btn:disabled { cursor: default; }
.deck-btn:not(:disabled):hover .card { transform: translateY(-4px); }
.deck-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.suit-badge { padding: 4px 12px; border-radius: 999px; background: #fbf8f1; color: var(--card-ink); font: 700 1rem var(--face); }
.suit-badge.red { color: var(--card-red); }
.status { min-height: 1.6em; margin: 0; text-align: center; font-weight: 600; }
.hand-area { padding: 14px; border-radius: 16px; border: 2px solid transparent; background: rgba(0, 0, 0, .2); transition: border-color .2s; }
.hand-area.active { border-color: var(--gold); }
.hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 112px; }
.hand .card-btn { padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; transition: transform .12s ease; }
.hand .card-btn .card { --w: 72px; }
.hand .card-btn.playable:hover, .hand .card-btn.playable:focus-visible { transform: translateY(-10px); }
.hand .card-btn.playable .card { box-shadow: 0 0 0 2px var(--gold), 0 6px 12px rgba(0, 0, 0, .3); }
.hand .card-btn:not(.playable) { cursor: not-allowed; }
.hand .card-btn:not(.playable) .card { filter: brightness(.78); }
.hand .card-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hand-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.btn.mau[aria-pressed="true"] { background: #fff; }
.suit-picker { display: flex; justify-content: center; gap: 10px; }
.suit-picker button { width: 64px; height: 64px; border: 0; border-radius: 14px; background: #fbf8f1; color: var(--card-ink); font: 700 2rem/1 var(--face); cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 6px 14px rgba(0, 0, 0, .35); }
.suit-picker button.red { color: var(--card-red); }
.log { max-height: 5.4em; overflow: hidden; font-size: .85rem; opacity: .85; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile-az { grid-column: 1 / -1; }
  .nav a[href="/about/"] { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .topbar .search { margin-left: auto; }
  .intro { grid-template-columns: 1fr; }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-top, .game-info { grid-template-columns: minmax(0, 1fr); }
  .side-list { grid-auto-flow: column; grid-auto-columns: 172px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .side-list li { scroll-snap-align: start; }
  .side-list a { grid-template-columns: 1fr; gap: 8px; }
  .side-list img { width: 100%; }
  .facts { position: static; max-width: 560px; }
  .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .draw { grid-template-columns: 1fr; padding: 32px 28px; }
  .draw-stage { height: 230px; }
}
@media (max-width: 720px) {
  :root { --top: 0px; }
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar { position: static; }
  .topbar .wrap { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 1.18rem; }
  .random { margin-left: auto; }
  .random span { display: none; }
  .random.btn { width: 40px; padding: 0; }
  .topbar .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .intro { padding-top: 26px; padding-bottom: 20px; }
  .intro h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .bar { margin-bottom: 14px; }
  .bar h2 { font-size: 1.35rem; }
  .bar .chips, .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .bar .chips::-webkit-scrollbar, .toolbar .chips::-webkit-scrollbar { display: none; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .games.featured .is-featured { grid-row: auto; }
  .games.featured .is-featured .tile-art { aspect-ratio: 5 / 3; flex: none; min-height: 0; }
  .games.featured .is-featured .tile-cap { grid-template-columns: 1fr; padding: 14px 16px 16px; }
  .games.featured .is-featured .tile-name { font-size: 1.7rem; }
  .games.featured .is-featured .tile-cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .tile-cap { padding: 10px 11px 12px; }
  .tile-name { font-size: 1.04rem; }
  .tile-play { opacity: 1; transform: none; width: 36px; height: 36px; }
  .tile-play .ico { width: 15px; height: 15px; }
  .tile:hover { transform: none; }
  .tile-az { padding: 18px; }
  .tile-az .tile-name { font-size: 1.35rem; }
  .az-names li:nth-child(n+7):not(.more) { display: none; }
  .answer { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .suit-card { justify-self: start; }
  .section { padding-top: 64px; }
  .toolbar { position: static; box-shadow: none; clip-path: none; padding-top: 0; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .entries { grid-template-columns: 1fr; gap: 10px; }
  .entry { padding: 16px; }
  .draw { margin-top: 56px; padding: 28px 20px; border-radius: 20px; }
  .draw-stage { height: 210px; }
  .draw-stage::before, .draw-stage::after { width: 124px; }
  .draw-card { width: 132px; }
  .occasions { grid-template-columns: 1fr; }
  .site-footer { margin-top: 80px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-top: 14px; }
  .crumbs::-webkit-scrollbar { display: none; }
  .game-top { margin: 0 -16px; gap: 20px; }
  .console { border-radius: 0; box-shadow: none; border-block: 1px solid var(--line); }
  .side { padding: 0 16px; }
  .screen { aspect-ratio: 4 / 3; min-height: 0; }
  .gate-thumb { display: none; }
  .console-bar { flex-wrap: wrap; padding: 12px 16px 14px; }
  .console-actions { width: 100%; }
  .console-actions .icon-btn { flex: 1; padding: 0 10px; }
  .game-info { padding-top: 32px; }
  .rules-grid { grid-template-columns: 1fr; }
  .table-felt { min-height: 0; padding: 12px; }
  .hud { margin-bottom: 12px; }
  .memory-grid { gap: 7px; }
  .hand .card-btn .card { --w: 54px; }
  .hand { gap: 5px; min-height: 84px; }
  .pile .card { --w: 64px; }
  .opp { min-width: 92px; padding: 8px; }
  .lost { grid-template-columns: 1fr; gap: 28px; }
  .lost-card { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover { transform: none; }
}
