/* mssgs games — the mss.gs look (fancy-v2-light: cream, forest green, glass
   surfaces, Bricolage Grotesque over Hanken Grotesk), shared with
   mssgs-stickers.com, and mss.gs's own hall of fame for the podium (gold,
   silver and bronze carrying dark figures, so they read at AA).
   No inline styles anywhere (CSP style-src 'self') and no script: the tabs
   are radio buttons, the bars are width classes. */

/* ---- Typefaces: the same files the mssgs site self-hosts ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/web/fonts/bricolage/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/web/fonts/bricolage/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/web/fonts/hanken/HankenGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/web/fonts/hanken/HankenGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallbacks (numbers from the mssgs site), so the page does
   not jump when the real faces land. */
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial'); size-adjust: 112.82%; ascent-override: 82.43%; descent-override: 23.93%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; src: local('Arial'); size-adjust: 123.47%; ascent-override: 80.99%; descent-override: 24.54%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --green-400: #4f8f63;
  --green-500: #2f6e48;
  --green-600: #265f3e;
  --green-700: #1f4f34;
  --green-800: #193f2a;
  --brand: var(--green-500);
  --brand-hover: var(--green-600);
  --on-brand: #f7f3e8;
  --bg: #ebe4d3;
  --ink: #20301f;
  --ink2: #33402f;
  --mut: #4f5b48;
  --line: rgba(50, 55, 30, .14);
  --line2: rgba(50, 55, 30, .22);
  --glass: rgba(255, 255, 255, .55);
  --focus: rgba(51, 117, 77, .45);
  --gold: #dcab3c;
  --gold-ink: #6b4f10;
  --gold-soft: rgba(220, 171, 60, .16);
  --tile: #1c2333;
  --shadow: 0 10px 30px rgba(31, 35, 33, .08);
  --shadow-lg: 0 18px 44px rgba(31, 35, 33, .14);
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Hanken Grotesk', sans-serif;
  --font-sans: 'Hanken Grotesk', 'Hanken Fallback', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink2);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
/* The aurora: soft glows behind everything, as on mss.gs, with a little of
   the hall of fame's gold. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 700px at 50% -220px, rgba(51, 117, 77, .16), transparent 64%),
    radial-gradient(700px 700px at -12% 32%, rgba(176, 141, 87, .14), transparent 62%),
    radial-gradient(640px 640px at 112% 70%, rgba(220, 171, 60, .10), transparent 62%);
}
main { flex: 1; }
a { color: var(--green-700); }
a:hover { color: var(--green-800); }
::selection { background: rgba(51, 117, 77, .22); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .5em; }
/* Named with the sectioning elements too: Chrome deprecates the UA's smaller
   h1 inside <section>/<article>, and warns unless the page sets it there. */
h1, :is(article, aside, nav, section) h1 { font-size: clamp(38px, 6.4vw, 66px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
small { font-size: .8em; font-weight: 500; color: var(--mut); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 72px; }
.section-head { margin-bottom: 24px; max-width: 720px; }
.section-head p { color: var(--mut); }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--green-700); margin-bottom: 10px; letter-spacing: .01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.kicker .crown { width: 15px; height: 15px; color: #c9962c; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--mut); max-width: 640px; }
.more { margin-top: 18px; font-weight: 600; }
.more a { text-decoration: none; }
.more a::after { content: " →"; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 700 11px/1.6 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

/* ---- Glass ---- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045), var(--shadow);
  border-radius: 22px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand);
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--brand-hover); color: var(--on-brand); box-shadow: 0 4px 20px rgba(38, 95, 62, .24); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light { background: #fffdf4; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---- Top bar: the mss.gs glass pill ---- */
.topbar { position: sticky; top: 12px; z-index: 50; display: flex; justify-content: center; padding: 12px 12px 0; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 22px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255, 253, 244, .72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 4px 20px rgba(31, 35, 33, .08);
}
.nav-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.nav-logo:hover { color: var(--ink); }
.nav-logo b { color: var(--green-600); font-weight: 700; }
/* The mssgs mark as the app icon draws it (mss.gs's .mssgs-mark): the g in
   near-white on the icon's green, in a rounded square of --mark. */
.mark { --mark: 26px; box-sizing: border-box; display: block; flex: none; width: var(--mark); height: var(--mark); padding: calc(var(--mark) * .165); border-radius: 22.5%; background: linear-gradient(105deg, #52a25b, #3e7a47); }
.footer-brand .mark { --mark: 24px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 14px; font-weight: 500; color: #56624f; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { font-weight: 700; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.nav-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px;
  border-radius: 16px; background: rgba(253, 250, 241, .97); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column;
}
.nav-menu-panel a { padding: 11px 14px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.nav-menu-panel a:hover { background: rgba(51, 117, 77, .1); }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 64px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--ink2); text-decoration: none; margin-bottom: 22px;
}
.pill .mark { --mark: 20px; }
.pill b { color: var(--green-700); }
.hero h1 { max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mut); font-size: 15px; }
.stats b { color: var(--ink); font-size: 17px; }

/* The art wall: every game's icon, as mss.gs draws them, on a slight tilt. */
.artwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; transform: rotate(-4deg); padding: 10px; }
.art { display: block; aspect-ratio: 1 / 1; border-radius: 22%; overflow: hidden; background: var(--tile); box-shadow: 0 12px 26px rgba(31, 35, 33, .18), inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .3s var(--ease); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art:nth-child(odd) { transform: translateY(10px); }
.art-trophy { display: grid; place-items: center; background: linear-gradient(160deg, #f8dc8a, var(--gold)); color: #4d3606; }
.art-trophy .crown { width: 46%; height: 46%; }

/* ---- Tabs: two radio buttons and their labels, no script ---- */
.tabs { position: relative; }
.tab-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-bar { display: flex; width: max-content; max-width: 100%; margin: 0 0 18px; padding: 3px; border-radius: 999px; background: rgba(50, 55, 30, .08); }
.tabs-center .tab-bar { margin: 0 auto 26px; }
.tab-bar label { padding: 6px 14px; border-radius: 999px; color: var(--mut); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; }
.tab-bar label:hover { color: var(--ink); }
.t-week:checked ~ .tab-bar .l-week, .t-all:checked ~ .tab-bar .l-all { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31, 35, 33, .12); }
.t-week:focus-visible ~ .tab-bar .l-week, .t-all:focus-visible ~ .tab-bar .l-all { box-shadow: 0 0 0 3px var(--focus); }
.tab-panel { display: none; }
.t-week:checked ~ .p-week, .t-all:checked ~ .p-all { display: block; }

.board-msg { padding: 30px 8px; margin: 0; text-align: center; font-size: 15px; color: var(--mut); }
.board-note { margin: 22px 0 0; font-size: 13.5px; color: var(--mut); }
.fame-tile .board-note { text-align: center; }
.board-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .5); color: var(--mut); font-size: 14.5px; line-height: 1.45; }
.board-empty p { flex: 1 1 180px; margin: 0; }

/* ---- A player ---- */
.who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
a.who:hover { color: var(--ink); }
a.who:hover .who-name { text-decoration: underline; text-underline-offset: 2px; }
.av { position: relative; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; background: var(--green-400); color: #fff; font-weight: 700; font-size: 14px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.who-handle { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--mut); }

/* ---- The hall of fame: mss.gs's podium ---- */
.fame-tile {
  position: relative; overflow: hidden; isolation: isolate; padding: 30px 34px 26px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 248, 224, .82), rgba(255, 255, 255, .55) 55%);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045), var(--shadow);
}
.fame-glow { position: absolute; width: 640px; height: 640px; left: 50%; top: -430px; margin-left: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 178, 64, .32), transparent 62%); filter: blur(50px); pointer-events: none; z-index: -1; }
.fame-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px 40px; align-items: end; }
.podium { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 500px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.place { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.place1 { order: 2; --metal: var(--gold); --metal-hi: #f8dc8a; --metal-ink: #4d3606; }
.place2 { order: 1; --metal: #bcc2cb; --metal-hi: #eef0f3; --metal-ink: #2f343c; }
.place3 { order: 3; --metal: #d4925f; --metal-hi: #f4cdaa; --metal-ink: #4a250c; }
.place-crown .crown { width: 30px; height: 30px; margin-bottom: 6px; color: #d9a83a; filter: drop-shadow(0 3px 6px rgba(201, 150, 44, .4)); }
.place .who { flex-direction: column; gap: 9px; max-width: 100%; }
.place .who-text { align-items: center; max-width: 100%; }
.place .who-name, .place .who-handle { max-width: 100%; }
.place .av { width: 58px; height: 58px; border-radius: 17px; font-size: 21px; box-shadow: 0 0 0 3px #fffdf4, 0 0 0 6px var(--metal), 0 10px 22px rgba(31, 35, 33, .14); }
.place1 .av { width: 76px; height: 76px; border-radius: 22px; font-size: 28px; }
.place-count { display: flex; flex-direction: column; align-items: center; margin: 4px 0 12px; line-height: 1.3; font-size: 14px; }
.place-count b { color: var(--ink); }
.place-count span { font-size: 12px; color: var(--mut); }
.place-open { margin-bottom: 12px; font-size: 13px; color: var(--mut); }
.step { display: flex; justify-content: center; width: 100%; padding-top: 10px; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, var(--metal-hi), var(--metal)); color: var(--metal-ink); font: 700 30px/1 var(--font-display); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.place1 .step { height: 112px; font-size: 38px; }
.place2 .step { height: 80px; }
.place3 .step { height: 60px; }
.place--open .step { opacity: .4; }
.fame-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fame-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .62); box-shadow: 0 1px 2px rgba(31, 35, 33, .05); }
.fame-row .who { flex: 1; }
.fame-row .av { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.fame-count, .row-val { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; line-height: 1.3; font-size: 14px; }
.fame-count b, .row-val b { color: var(--ink); white-space: nowrap; }
.fame-count span, .row-val span { font-size: 12px; color: var(--mut); white-space: nowrap; }
.rank { flex: none; width: 24px; text-align: center; font-weight: 700; color: var(--mut); }
@media (min-width: 860px) {
  .fame-board--list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

/* ---- Board tables ---- */
.board-tile { padding: 26px 28px; }
.board-tile h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.board-rule { color: var(--mut); font-size: 15px; margin-bottom: 18px; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 6px; border-radius: 12px; }
.row:nth-child(odd) { background: rgba(255, 255, 255, .5); }
.row .who { flex: 1; }
.row-top .rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
.r1 .rank { background: linear-gradient(180deg, #f8dc8a, var(--gold)); color: #4d3606; }
.r2 .rank { background: linear-gradient(180deg, #eef0f3, #bcc2cb); color: #2f343c; }
.r3 .rank { background: linear-gradient(180deg, #f4cdaa, #d4925f); color: #4a250c; }
.boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.boards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Most played ---- */
.played { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.played-row { display: grid; grid-template-columns: 24px minmax(150px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 6px 12px 6px 6px; border-radius: 14px; }
.played-row:nth-child(odd) { background: rgba(255, 255, 255, .5); }
.played-game { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.played-game span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.played-game:hover span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.played-game .gameicon { width: 40px; height: 40px; border-radius: 11px; }
.played-bar { display: block; height: 12px; border-radius: 999px; background: rgba(50, 55, 30, .08); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-400), var(--green-500)); }
.played-row:first-child .bar { background: linear-gradient(90deg, #f8dc8a, var(--gold)); }
.played-count { display: flex; flex-direction: column; align-items: flex-end; min-width: 108px; line-height: 1.3; font-size: 14px; text-align: right; }
.played-count b { color: var(--ink); }
.played-count span { font-size: 12px; color: var(--mut); }
.played-none .played-game { color: var(--mut); font-weight: 600; }
.w0 { width: 0; } .w1 { width: 5%; } .w2 { width: 10%; } .w3 { width: 15%; } .w4 { width: 20%; }
.w5 { width: 25%; } .w6 { width: 30%; } .w7 { width: 35%; } .w8 { width: 40%; } .w9 { width: 45%; }
.w10 { width: 50%; } .w11 { width: 55%; } .w12 { width: 60%; } .w13 { width: 65%; } .w14 { width: 70%; }
.w15 { width: 75%; } .w16 { width: 80%; } .w17 { width: 85%; } .w18 { width: 90%; } .w19 { width: 95%; } .w20 { width: 100%; }

/* ---- High scores ---- */
.scoregrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scoregrid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scorecard { padding: 20px 20px 16px; min-width: 0; }
.scorecard-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.scorecard-head .gameicon { width: 52px; height: 52px; border-radius: 14px; }
.scorecard-head h3, .scorecard-head h2 { font-size: 19px; margin: 2px 0 2px; }
.scorecard-head h3 a, .scorecard-head h2 a { color: var(--ink); text-decoration: none; }
.scorecard-head h3 a:hover, .scorecard-head h2 a:hover { text-decoration: underline; }
.scorecard-head p { margin: 0; font-size: 13.5px; color: var(--mut); line-height: 1.45; }
.scorecard .row { padding: 6px 8px 6px 2px; gap: 8px; }
.scorecard .av { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }

/* ---- Latest wins ---- */
.latest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.latest-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; }
.latest-row .who { flex: 0 1 auto; max-width: 42%; }
.latest-what { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; color: var(--ink2); }
.latest-what a { font-weight: 700; text-decoration: none; }
.latest-what a:hover { text-decoration: underline; }
.latest-total { font-size: 12.5px; color: var(--mut); }
.latest-row time { flex: none; font-size: 13px; color: var(--mut); white-space: nowrap; }

/* ---- Game cards: mss.gs's gallery cards ---- */
.gameicon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border-radius: 15px; background: var(--tile); overflow: hidden; }
.gameicon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gamegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gcard { display: flex; gap: 16px; align-items: flex-start; padding: 20px; color: inherit; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gcard:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31, 35, 33, .11); }
.gcard-text { display: flex; flex-direction: column; min-width: 0; }
.gcard-name { font: 700 18px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.gcard-players { font-size: 12.5px; color: var(--mut); margin: 2px 0 6px; }
.gcard-desc { font-size: 14.5px; color: var(--mut); line-height: 1.5; }
.gcard-champ { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(220, 171, 60, .15); color: var(--gold-ink); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.gcard-champ .crown { flex: none; width: 13px; height: 13px; color: #c9962c; }
.gcard-champ-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gcard-champ-wins { flex: none; font-weight: 500; }
.gcard-champ-wins::before { content: "·"; margin-right: 7px; }
.gcard-week { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--green-700); }

/* ---- How to play, and the closing panel ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 26px; }
.steps p { margin: 0; color: var(--mut); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 700 16px/1 var(--font-display); }
.cta { margin-top: 26px; padding: 64px 32px; border-radius: 28px; text-align: center; background: radial-gradient(600px 300px at 50% 0, rgba(79, 143, 99, .35), transparent 70%), #202327; color: #dfe0e2; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; }
.cta p { color: #b9bbc0; max-width: 520px; margin: 0 auto 24px; }

/* ---- A game's page ---- */
.gamehead { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 44px; align-items: center; padding-top: 28px; }
.gamehead-art img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 22%; background: var(--tile); box-shadow: var(--shadow-lg); }
.gamehead h1 { margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink2); }
.factbar { list-style: none; margin: 36px 0 0; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 10px 32px; border-radius: 18px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px var(--line); color: var(--mut); font-size: 15px; }
.factbar b { color: var(--ink); font: 700 22px/1 var(--font-display); margin-right: 4px; }
.champ-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; padding: 12px 18px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; font-weight: 600; }
.champ-strip .crown { width: 20px; height: 20px; color: #c9962c; }
.champ-strip b { color: var(--gold-ink); }

/* ---- Inner pages ---- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--mut); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #8a9184; }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pagehead { padding-top: 26px; padding-bottom: 28px; }
.pagehead h1 { font-size: clamp(34px, 5vw, 54px); max-width: 20ch; }
.table-tile { padding: 8px 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { color: var(--mut); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.champs-game { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.champs-game:hover span { text-decoration: underline; }
.champs-game .gameicon { width: 38px; height: 38px; border-radius: 10px; }
.champs-cell { display: flex; align-items: center; gap: 12px; }
.champs-cell b { flex: none; font-size: 14px; color: var(--ink); }
.champs-cell .av { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.champs-none { color: var(--mut); font-size: 14px; }

/* ---- Footer ---- */
.footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 44px 0 26px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand p { color: var(--mut); font-size: 14px; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-h { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.footer-cols a { color: var(--mut); text-decoration: none; font-size: 14px; padding: 5px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-small { margin-top: 26px; font-size: 13px; color: var(--mut); }

/* ---- Smaller screens ---- */
@media (max-width: 1000px) {
  .scoregrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: block; }
  .nav { padding: 6px 6px 6px 16px; gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 30px; }
  .artwall { max-width: 460px; transform: rotate(-3deg); }
  .gamehead { grid-template-columns: 1fr; gap: 26px; }
  .gamehead-art { max-width: 240px; }
  .boards-2, .latest, .steps, .scoregrid-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .gamegrid, .scoregrid { grid-template-columns: minmax(0, 1fr); }
  .played-row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px 12px; }
  .played-bar { grid-column: 2 / 4; grid-row: 2; height: 8px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding-top: 56px; }
  .fame-tile { padding: 24px 14px 20px; }
  .board-tile { padding: 22px 14px; }
  .podium { gap: 8px; }
  .place .av { width: 46px; height: 46px; border-radius: 14px; font-size: 17px; }
  .place1 .av { width: 60px; height: 60px; border-radius: 18px; font-size: 22px; }
  .place .who-name { font-size: 13.5px; }
  .place .who-handle { display: none; }
  .place-count { font-size: 13px; }
  .place1 .step { height: 92px; font-size: 32px; }
  .place2 .step { height: 66px; font-size: 26px; }
  .place3 .step { height: 50px; font-size: 26px; }
  .fame-row, .row { gap: 10px; padding: 8px 10px 8px 4px; }
  .latest-row { flex-wrap: wrap; }
  .latest-row .who { max-width: 100%; }
  .latest-what { flex-basis: 100%; order: 3; padding-left: 44px; }
  .latest-row time { margin-left: auto; }
  .gcard { padding: 16px; gap: 14px; }
  .gcard .gameicon { width: 56px; height: 56px; }
  .factbar { gap: 8px 22px; }
  .cta { padding: 48px 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
