/* Huedle Game – design tokens */
:root {
  --bg: #090a13;
  --bg2: #0f1120;
  --surface: rgba(255, 255, 255, 0.045);
  --surface2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eeedf7;
  --muted: #a3a5c0;
  --faint: #6f7192;
  --p1: #36d1c4;
  --p2: #7c6cff;
  --p3: #ff7a6b;
  --p4: #ffc857;
  --ok: #4ade80;
  --near: #f5b84a;
  --radius: 18px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body);
  min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 12% 8%, color-mix(in oklab, var(--p1) 22%, transparent), transparent 70%),
    radial-gradient(38vmax 30vmax at 88% 12%, color-mix(in oklab, var(--p2) 22%, transparent), transparent 70%),
    radial-gradient(45vmax 35vmax at 50% 110%, color-mix(in oklab, var(--p3) 14%, transparent), transparent 70%);
  transition: background 1s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: color-mix(in oklab, var(--p1) 70%, white); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: rgba(9, 10, 19, 0.72); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 18px/1 var(--display); letter-spacing: 0.02em; flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand small { font: 600 11px var(--body); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: var(--surface2); }
@media (max-width: 860px) {
  .head-in { flex-wrap: wrap; height: auto; padding: 10px 0 0; gap: 6px; }
  .nav { width: 100%; margin: 0 -4px; padding-bottom: 8px; }
  .nav a { padding: 6px 11px; font-size: 14px; background: var(--surface); }
}

/* hero + game shell */
.hero { padding: 26px 0 4px; text-align: center; }
@media (max-width: 600px) { .hero { padding-top: 16px; } .hero .lede { font-size: 15px; } .eyebrow { font-size: 11px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eyebrow i { width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--p1), var(--p2)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 4.2vw, 46px); margin: 10px 0 8px; font-weight: 700; }
h1 .grad, .grad { background: linear-gradient(100deg, var(--p1), var(--p2) 40%, var(--p3) 75%, var(--p4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); max-width: 640px; margin: 0 auto; }
.play-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; padding: 18px 0 40px; }
.play-area > .game-card { order: -1; }
@media (min-width: 1040px) { .play-area > .game-card { order: 0; } }
@media (max-width: 1039px) { .play-area .side { width: min(520px, 100%); } }
@media (min-width: 1040px) { .play-area.split { grid-template-columns: 1fr 520px 1fr; align-items: start; } .play-area.split .side { width: 100%; } }
.game-card {
  width: min(520px, 100%); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative; touch-action: manipulation;
}
.game-card::after { content: ''; position: absolute; inset: -1px; border-radius: 26px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in oklab, var(--p1) 60%, transparent), transparent 35%, transparent 65%, color-mix(in oklab, var(--p3) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.game-loading { min-height: 520px; display: grid; place-items: center; color: var(--muted); }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.game-title { display: flex; flex-direction: column; min-width: 0; }
.game-title strong { font: 700 17px/1.2 var(--display); }
.game-kicker { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tools { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface2); }
.meter { height: 4px; border-radius: 4px; background: var(--surface2); overflow: hidden; margin-bottom: 10px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--p1), var(--p2), var(--p3)); transition: width .3s; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.hud-item { background: var(--surface); border-radius: 12px; padding: 6px 8px; text-align: center; }
.hud-item span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hud-item b { font: 600 17px/1.3 var(--display); font-variant-numeric: tabular-nums; }

/* tiles board */
.board { width: min(100%, calc(var(--cols) / var(--rows) * max(280px, 100vh - 480px))); margin-inline: auto; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), auto); gap: 3px; user-select: none; -webkit-user-select: none; touch-action: none; }
.tile { aspect-ratio: 1; border: 0; padding: 0; border-radius: 7px; background: var(--c); cursor: grab; position: relative; transition: box-shadow .15s, border-radius .4s, opacity .15s; }
.tile:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.tile.locked { cursor: not-allowed; }
.tile.locked::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: rgba(0,0,0,.45); box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.tile.ok::before { content: ''; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.tile.sel { box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(0,0,0,.5); z-index: 2; transform: scale(1.06); }
.tile.over { box-shadow: inset 0 0 0 3px #fff; }
.tile.dragging { z-index: 10; cursor: grabbing; box-shadow: 0 14px 30px rgba(0,0,0,.6); transition: none; }
.tile .tnum { display: none; font: 700 11px var(--body); color: rgba(0,0,0,.6); text-shadow: 0 0 3px rgba(255,255,255,.7); }
.assist .tile .tnum { display: grid; place-items: center; height: 100%; }
.board.peek .tile { background: var(--peek); }
.board.solved { gap: 0; }
.board.solved .tile { border-radius: 0; cursor: default; }
.board.solved .tile:first-child { border-top-left-radius: 12px; }
.board.solved .tile::before { display: none; }
.game-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.archive-banner { background: var(--surface2); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: 700 15px var(--body); color: #0b0c16; background: linear-gradient(135deg, #fff, #dcdcf0); padding: 11px 20px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255,255,255,.4); color: #0b0c16; }
.btn.ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { color: #fff; box-shadow: none; background: rgba(255,255,255,.12); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.glow { background: linear-gradient(120deg, var(--p1), var(--p2) 55%, var(--p3)); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }

/* bars */
.seg { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); font: 700 14px var(--body); padding: 8px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface2); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.strip { display: flex; height: min(300px, 52vh); gap: 2px; position: relative; user-select: none; touch-action: none; }
.bar { flex: 1; min-width: 0; border: 0; padding: 0; background: var(--c); border-radius: 6px; cursor: grab; position: relative; }
.bar.locked { cursor: not-allowed; }
.bar.locked::after { content: ''; position: absolute; left: 50%; bottom: 10px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(0,0,0,.45); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.bar.ok::before { content: ''; position: absolute; left: 50%; top: 10px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255,255,255,.8); }
.bar.sel { box-shadow: 0 0 0 3px #fff; z-index: 2; }
.bar.dragging { z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.6); transition: none; }
.drop-marker { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; opacity: 0; pointer-events: none; }
.drop-marker.show { opacity: 1; }
.strip.solved { gap: 0; }
.strip.solved .bar { border-radius: 0; }
.hint-line { color: var(--muted); font-size: 13.5px; text-align: center; margin: 12px 0 0; }

/* hex */
.hex-wrap { display: grid; gap: 12px; }
.target { height: 120px; border-radius: 16px; background: var(--c); display: flex; align-items: flex-end; padding: 10px 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 20px 50px -20px var(--c); }
.target span, .dial-sw span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; padding: 3px 8px; border-radius: 999px; }
.hex-rows { display: grid; gap: 5px; }
.hex-row { display: grid; grid-template-columns: 16px repeat(6, 1fr) 30px 42px; gap: 5px; align-items: center; }
.hex-row .hash { color: var(--faint); font-weight: 800; }
.hex-row .cell { height: 42px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 700 18px/1 var(--display); position: relative; }
.hex-row.active .cell { border-color: rgba(255,255,255,.3); }
.cell small { position: absolute; right: 3px; top: 2px; font: 800 10px var(--body); opacity: .85; }
.cell.hit { background: #1f9d55; border-color: transparent; }
.cell.near { background: #b7791f; border-color: transparent; }
.cell.far { background: #2a2c45; border-color: transparent; }
.mini-sw { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: inline-block; }
.sim { font-size: 13px; color: var(--muted); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.keypad { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 14px; }
.key { height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: 700 16px var(--display); cursor: pointer; }
.key:hover { background: rgba(255,255,255,.14); }
.key.wide { grid-column: span 4; font-family: var(--body); }
.key.go { background: #fff; color: #0b0c16; }

/* dial */
.dial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dial-sw { height: 130px; border-radius: 16px; background: var(--c); display: flex; align-items: flex-end; padding: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.sliders { display: grid; gap: 10px; }
.slider { display: grid; grid-template-columns: 90px 1fr 52px; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.slider output { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.rng { -webkit-appearance: none; appearance: none; height: 14px; border-radius: 999px; outline-offset: 4px; }
.rng-h { background: linear-gradient(90deg, hsl(0 var(--ss,60%) var(--ll,50%)), hsl(60 var(--ss,60%) var(--ll,50%)), hsl(120 var(--ss,60%) var(--ll,50%)), hsl(180 var(--ss,60%) var(--ll,50%)), hsl(240 var(--ss,60%) var(--ll,50%)), hsl(300 var(--ss,60%) var(--ll,50%)), hsl(359 var(--ss,60%) var(--ll,50%))); }
.rng-s { background: linear-gradient(90deg, hsl(var(--hh,180) 0% var(--ll,50%)), hsl(var(--hh,180) 100% var(--ll,50%))); }
.rng-l { background: linear-gradient(90deg, #000, hsl(var(--hh,180) var(--ss,60%) 50%), #fff); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #0b0c16; box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: pointer; }
.rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #0b0c16; cursor: pointer; }
.dial-list { display: grid; gap: 6px; margin-top: 14px; }
.dial-row { display: grid; grid-template-columns: 18px 28px repeat(3, 1fr) 40px; gap: 6px; align-items: center; }
.dial-row .n { color: var(--faint); font-weight: 800; font-size: 13px; }
.dial-row .cell { border-radius: 9px; padding: 6px 4px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dial-row .cell small { position: static; opacity: .7; margin-right: 3px; }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5,6,12,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal.open { opacity: 1; }
.modal-card { width: min(460px, 100%); max-height: 90vh; overflow: auto; background: #12142a; border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px 20px; position: relative; box-shadow: 0 40px 100px -20px #000; }
.modal-title { margin: 0 0 14px; font-size: 21px; }
.modal-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; }
.modal-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; }
.result-swatch { height: 96px; border-radius: 16px; display: flex; align-items: flex-end; padding: 10px; margin-bottom: 10px; }
.result-swatch span { background: rgba(0,0,0,.4); color: #fff; font: 700 14px var(--display); padding: 4px 10px; border-radius: 999px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.stat { background: var(--surface); border-radius: 12px; padding: 8px 4px; text-align: center; }
.stat b { display: block; font: 700 19px/1.2 var(--display); }
.stat span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mini { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.next { text-align: center; color: var(--muted); margin: 10px 0 0; }
.next b { color: var(--text); font-variant-numeric: tabular-nums; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting small { display: block; color: var(--muted); font-size: 13px; }
.setting input { width: 20px; height: 20px; accent-color: var(--p2); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 700 13.5px var(--body); cursor: pointer; }
.chip.on { background: #fff; color: #0b0c16; }
#toast { position: fixed; left: 50%; top: 80px; transform: translate(-50%, -20px); background: #fff; color: #0b0c16; font-weight: 700; padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-modal { overflow: hidden; }

/* side panels */
.side { display: grid; gap: 12px; align-content: start; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-card h2 { font-size: 15px; margin: 0 0 8px; }
.side-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.week { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.week li { display: flex; justify-content: space-between; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.week li.today { background: var(--surface2); color: #fff; font-weight: 700; }
.mode-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding: 8px; border-radius: 12px; }
.mode-link:hover { background: var(--surface2); color: #fff; }
.mode-link img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; }
.mode-link b { display: block; font-size: 15px; }
.mode-link span { font-size: 13px; color: var(--muted); }

/* content */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; }
.section-lede { color: var(--muted); max-width: 720px; margin: 0 0 28px; font-size: 17px; }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: #d6d6e6; }
.prose li { margin: 6px 0; }
.prose.small { font-size: 15px; }
.prose.small p, .prose.small li { color: var(--muted); }
.prose code, code { background: var(--surface2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--p2); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose figure { margin: 26px 0; }
.prose figcaption { color: var(--faint); font-size: 14px; margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); color: var(--text); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-b { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; font: 700 15px var(--display); margin-bottom: 10px; }
.steps b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.hero-img { border-radius: 24px; border: 1px solid var(--line); overflow: hidden; }
.two-col { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 1fr; } }
.crumbs { font-size: 14px; color: var(--faint); margin: 24px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 48px); }
.updated { color: var(--faint); font-size: 14px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 15px; color: var(--muted); }

/* archive */
.arc { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.arc-item { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.arc-sw { width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; position: relative; }
.arc-done { position: absolute; right: -4px; top: -4px; background: #fff; color: #000; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.arc-meta b { font-family: var(--display); }
.arc-meta span { display: block; color: var(--muted); font-size: 13.5px; }
.arc-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.arc-links a { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface2); text-decoration: none; color: var(--text); }
.arc-links a.done { background: #1f9d55; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot-grid h2 { font: 700 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--faint); }

@media (max-width: 480px) {
  .game-card { padding: 12px; border-radius: 20px; }
  .board { gap: 2px; }
  .tile { border-radius: 5px; }
  .hex-row { grid-template-columns: 10px repeat(6, 1fr) 26px 36px; gap: 4px; }
  .hex-row .cell { height: 38px; font-size: 16px; }
  .slider { grid-template-columns: 74px 1fr 44px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
