/* Five Minute Game: the editorial look (Rich's mockup 03, November 2026). Paper and ink, serif headings, a muted teal and a
   warm gold. Mobile first: one column on phones, grids from 640px. Every colour is a token here; games keep their own look
   inside their frames. */
:root {
  --paper: #faf8f4; --card: #ffffff; --tint: #f3efe6; --ink: #14233d; --text: #1e2a40; --muted: #56617a; --line: #e4ded2;
  --teal: #167b70; --teal-d: #0f5d55; --teal-soft: #e5f1ee; --gold: #e9b53d; --gold-soft: #fbf0d6; --done: #23704a; --done-soft: #e3f2e8;
  --heart: #c2364f;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(20,35,61,.06), 0 6px 20px rgba(20,35,61,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--f); min-height: 100vh;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(32px, 8vw, 58px); line-height: 1.04; letter-spacing: -.015em; margin: 10px 0 12px; text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(22px, 4.6vw, 28px); line-height: 1.15; letter-spacing: -.01em; margin: 0; font-weight: 650; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 650; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 22px; }

/* ---------- header: logo, main menu, categories, search ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 0 8px; padding-top: max(12px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); margin-bottom: 10px; position: relative; z-index: 20; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; margin-right: auto; }
.logo img { width: 42px; height: 42px; }
.logo .wm { font: 700 22px/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.mainnav { display: flex; align-items: center; gap: 2px; order: 3; flex: 1 1 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav > a, .dd > summary { white-space: nowrap; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }
.mainnav > a:hover, .dd > summary:hover { background: var(--tint); }
.mainnav > a[aria-current="page"] { color: var(--teal); }
.dd { position: static; }
.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.ddm { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.ddm a { padding: 9px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.ddm a:hover { background: var(--tint); }
.ddm small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.search { position: relative; order: 2; flex: 0 1 260px; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 9px 14px 9px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2356617a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 13px 50%; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.sres { position: absolute; right: 0; top: calc(100% + 6px); width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; padding: 6px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.sres a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.sres a:hover, .sres a.on { background: var(--tint); }
.sres img { width: 36px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.sres b { display: block; font-size: 15px; line-height: 1.25; }
.sres small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.sres .kind { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.sres p { margin: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 759px) {
  .search { flex: 1 1 100%; order: 2; }
  .sres { left: 0; right: auto; width: 100%; }
  .is-game .mainnav, .is-game .search { display: none; }
  .is-game .top { padding-bottom: 6px; margin-bottom: 6px; }
}
@media (min-width: 760px) {
  .top { flex-wrap: nowrap; padding: 16px 0 12px; }
  .logo { margin-right: 6px; }
  .mainnav { order: 2; flex: 1 1 auto; margin: 0; overflow: visible; }
  .search { order: 3; }
  .ddm { left: auto; right: auto; width: 520px; }
  .dd { position: relative; }
  .dd .ddm { left: -10px; }
}

/* ---------- shared bits: buttons, shelves, tiles, chips ---------- */
.btn, .playbtn { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1.2 var(--f); padding: 12px 20px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer;
  background: var(--gold); color: var(--ink); box-shadow: 0 2px 0 rgba(20,35,61,.12); }
.btn:hover, .playbtn:hover { background: #f0c35a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--tint); }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { background: var(--teal-d); }
.btn:disabled { opacity: .55; cursor: default; }
.shelf { margin: 0 0 40px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 14px; }
.shelf-head a { color: var(--teal); font-size: 15px; font-weight: 600; text-decoration: none; }
.shelf-head a:hover { text-decoration: underline; }
.shelf .sub { color: var(--muted); margin: -8px 0 14px; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tint); }
.tile div { padding: 10px 12px 12px; }
.tile b { display: block; font: 650 17px/1.2 var(--serif); color: var(--ink); }
.tile b em { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 11px/1.5 var(--f); font-style: normal; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.tile span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 3px; }
.tile .meta { color: var(--teal); font-weight: 600; font-size: 12px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc, var(--teal)); }
.crumbs { color: var(--muted); font-size: 14px; margin: 4px 0 6px; min-width: 0; }
.crumbs span { color: var(--text); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.banner { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; text-decoration: none; margin: 0 0 34px;
  background: #fff5f3; border: 1px solid #f0cdc6; border-left: 5px solid #b3202f; }
.banner b { color: #8f1a26; font: 650 20px/1.2 var(--serif); }
.banner span { color: var(--muted); }

/* ---------- home ---------- */
.hero { display: grid; gap: 22px; margin: 10px 0 30px; }
.hero h1 { margin-top: 6px; }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { display: none; position: relative; min-height: 300px; }
.hero-art img { position: absolute; width: 46%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(20,35,61,.22); border: 4px solid #fff; }
.hero-art img:nth-child(1) { left: 2%; top: 14%; transform: rotate(-7deg); }
.hero-art img:nth-child(2) { left: 27%; top: 2%; z-index: 2; transform: rotate(2deg); }
.hero-art img:nth-child(3) { left: 52%; top: 16%; transform: rotate(8deg); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(290px, .9fr); align-items: center; gap: 26px; }
  .hero-art { display: block; }
}
.prog { padding: 18px 20px; }
.prog h2 { font-size: 22px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prog h2 a { font: 600 14px var(--f); color: var(--teal); text-decoration: none; }
.prog ol { margin: 0; padding-left: 20px; color: var(--muted); }
.prog li { margin: 6px 0; } .prog li b { color: var(--ink); }
.prog-row { display: flex; align-items: center; gap: 16px; }
.prog-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.prog-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.prog-list li:last-child { border-bottom: 0; }
.prog-list b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--tint); } .ring .fg { stroke: var(--done); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.2; }
.ring span b { font: 700 24px/1 var(--serif); color: var(--ink); }
.d5strip { padding: 16px; margin: 0 0 40px; }
.d5strip .shelf-head { margin-bottom: 12px; }
.d5strip .shelf-head p { margin: 0; color: var(--muted); font-size: 15px; flex: 1 1 260px; }
.d5row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .d5row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.d5c { position: relative; display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px; border-radius: 14px; text-decoration: none; background: #f6f8fc; border: 1px solid #dfe5f0; }
.d5c.done { background: var(--done-soft); border-color: #bfdcc9; }
.d5c.going { background: var(--gold-soft); border-color: #efd9a3; }
.d5c img { width: 48px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.d5c .t { min-width: 0; display: grid; gap: 1px; }
.d5c .slot { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.d5c b { font: 650 16px/1.2 var(--serif); color: var(--ink); }
.d5c small { color: var(--muted); font-size: 13px; }
.d5c .st { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-content: center; font-size: 13px; font-weight: 800; }
.d5c.done .st { background: var(--done); color: #fff; }
.d5c.going .st { box-shadow: inset 0 0 0 2px #c08a12; }
@media (min-width: 640px) { .d5c { flex-direction: column; align-items: flex-start; } .d5c img { width: 100%; height: 92px; } }
.origs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .origs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.otile { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; text-decoration: none; background: var(--ink); }
@media (min-width: 900px) { .otile { aspect-ratio: 16 / 9; } }
.otile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.otile:hover img { transform: scale(1.04); }
.otile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(10,18,32,.86)); color: #fff; text-align: center; }
.otile b { display: block; font: 700 clamp(18px, 4.5vw, 24px)/1.15 var(--serif); }
.otile small { display: block; font-size: 13px; opacity: .92; }
.split { display: grid; gap: 16px; margin: 0 0 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.split > .card { padding: 18px 20px; }
.split h2 { margin-bottom: 4px; }
.split p { margin: 0 0 14px; color: var(--muted); }
.azlist { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .azlist { columns: 4; } }
.azlist li { break-inside: avoid; padding: 3px 0; }
.azlist a { text-decoration: none; color: var(--ink); } .azlist a:hover { color: var(--teal); text-decoration: underline; }
.catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.catcard { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 14px; border-radius: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--acc, var(--teal)); }
.catcard:hover { box-shadow: var(--shadow); }
.catcard b { font: 650 18px/1.2 var(--serif); color: var(--ink); }
.catcard span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.catcard small { color: var(--acc, var(--teal)); font-size: 13px; font-weight: 700; margin-top: 4px; }

/* ---------- game pages: title and facts above the game, the frame, the bar under it ---------- */
.gtitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 4px 0 8px; }
.gtitle h1 { font-size: clamp(22px, 5vw, 34px); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.facts li { padding: 2px 9px; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.facts li.hl { background: var(--gold-soft); color: #6d4c06; font-weight: 600; }
.facts li.or { background: var(--teal-soft); color: var(--teal-d); font-weight: 600; }
@media (max-width: 759px) {
  .is-game .gtitle { flex-wrap: nowrap; overflow: hidden; margin: 0 0 6px; }
  .is-game .gtitle h1 { font-size: 21px; white-space: nowrap; }
  .is-game .facts { flex-wrap: nowrap; overflow: hidden; }
  .is-game .facts li.x { display: none; }
}
.stage { width: 100%; max-width: 1000px; margin: 0 auto; height: min(calc(100dvh - 130px), 880px); min-height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0d1320; box-shadow: var(--shadow); }
@supports not (height: 100dvh) { .stage { height: min(calc(100vh - 130px), 880px); } }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: baseline; max-width: 1000px; margin: 8px auto 0; font-size: 14px; color: var(--muted); }
.bar .crumbs { margin: 0; }
.bar .acts { display: flex; gap: 16px; align-items: baseline; }
.bar .acts > a { font-weight: 600; white-space: nowrap; color: var(--teal); }
.bar .fav { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.bar .fav[aria-pressed="true"] { color: var(--heart); }
.d5gbar { max-width: 1000px; margin: 10px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #efd9a3; font-size: 15px; }
.d5gbar a { color: var(--teal-d); font-weight: 700; white-space: nowrap; }
.gbody { display: grid; gap: 0 40px; margin: 30px 0 10px; }
@media (min-width: 1000px) { .gbody { grid-template-columns: minmax(0, 1fr) 320px; } }
.gside { align-self: start; }
.gside .card { padding: 16px; margin-bottom: 16px; }
.gside h2 { font-size: 20px; margin-bottom: 8px; }
.gside ul { margin: 0; padding-left: 18px; }
.gside li { margin: 5px 0; }
.gside a { color: var(--teal); }

/* ---------- prose: game pages, guides, about, privacy ---------- */
.prose { max-width: 68ch; margin: 0 0 30px; }
.prose h1 { font-size: clamp(28px, 6vw, 42px); }
.prose h2 { margin-top: 30px; margin-bottom: 8px; }
.prose .summary { color: var(--text); font-size: 19px; margin-top: 0; }
.prose.about p { color: var(--text); font-size: 18px; }
.prose a, .more a { color: var(--teal); }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.more a { font-weight: 600; }
.faq h3 { margin-top: 20px; font-size: 18px; } .faq p { margin: 2px 0 0; }
.glance { margin: 4px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; }
.glance-h { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); font-family: var(--f); }
.glance dl { margin: 0; display: grid; gap: 6px; }
.glance dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; font-size: 15px; }
.glance dt { color: var(--muted); font-weight: 600; }
.glance dd { margin: 0; }
ul.themes { list-style: none; padding: 0; margin: 8px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
ul.themes li { margin: 0; }
ul.themes a { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
ul.themes a:hover { border-color: var(--teal); color: var(--teal); }

/* guides */
.guide { max-width: 74ch; margin: 0 0 34px; }
.guide h1 { font-size: clamp(30px, 7vw, 46px); }
.guide .summary { font-size: 19px; }
.guide h2 { margin: 36px 0 10px; scroll-margin-top: 12px; }
.guide h3 { margin: 18px 0 8px; }
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin: 7px 0; }
.guide section { scroll-margin-top: 12px; }
.guide .glance-h { font-size: 13px; margin-top: 28px; }
.tablewrap { overflow-x: auto; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.guide tr:first-child th, .guide tr:first-child td, .guide thead th { border-top: 0; }
.guide thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.guide tbody th { color: var(--ink); font-weight: 600; width: 34%; }
.toc { margin: 26px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.toc b { display: block; margin-bottom: 6px; font-family: var(--serif); color: var(--ink); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--teal); } .toc a:hover { text-decoration: underline; }
.guide dl { margin: 0; }
.guide dt { color: var(--ink); font-weight: 600; margin-top: 12px; }
.guide dd { margin: 2px 0 0; }
.cta { margin: 18px 0 0; }
.updated { font-size: 14px; margin-top: 30px; color: var(--muted); }
ul.guides { list-style: none; padding: 0; margin: 12px 0 30px; display: grid; gap: 10px; }
@media (min-width: 700px) { ul.guides { grid-template-columns: 1fr 1fr; } }
ul.guides a { display: block; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
ul.guides a:hover { border-color: var(--teal); }
ul.guides b { display: block; font: 650 17px/1.3 var(--serif); color: var(--ink); }
ul.guides span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 480px) { .toc ol { columns: 1; } }

/* ---------- daily cards (category pages, daily games hub) ---------- */
.dlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .dlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dcard, .d5-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); }
.dcard:hover, .d5-card:hover { border-color: var(--teal); }
.dcard img, .d5-card img { width: 54px; height: 72px; border-radius: 9px; object-fit: cover; flex: none; background: var(--tint); }
.dcard .dt, .d5-card .dt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dcard .dt b, .d5-card .dt b { font: 650 17px/1.2 var(--serif); color: var(--ink); }
.dcard .dt small, .d5-card .dt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.dcard .dn { color: var(--teal); font-weight: 700; font-variant-numeric: tabular-nums; }
.d5-card .dt small.slot { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.dcard .ds, .d5-card .ds { flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--gold); color: var(--ink); }
.dcard.going .ds, .d5-card.going .ds { background: transparent; color: #7a5507; box-shadow: inset 0 0 0 1.5px #c08a12; }
.dcard.done .ds, .d5-card.done .ds { background: var(--done-soft); color: var(--done); }

/* ---------- Daily Five page ---------- */
.d5home { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; background: var(--teal-soft); border: 1px solid #bcdcd5; }
.d5home:hover { border-color: var(--teal); }
.d5home .d5h-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.d5home .d5h-n { font: 700 20px/1.2 var(--serif); color: var(--ink); }
.d5home .d5h-t span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.d5home .d5h-s { color: var(--done); font-size: 13px; font-weight: 700; }
.d5home .d5h-c { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--teal); color: #fff; text-align: center; max-width: 10em; }
.d5 { margin: 6px 0 26px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.d5-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.d5-n { font: 650 20px/1.2 var(--serif); color: var(--ink); }
.d5-count { color: var(--done); font-weight: 700; font-variant-numeric: tabular-nums; }
.d5-bar { height: 10px; margin: 10px 0 14px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.d5-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--done)); transition: width .4s; }
.d5-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .d5-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d5-card { background: var(--paper); }
.d5-done { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--done-soft); color: var(--done); font-weight: 600; }
.d5-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
#d5msg, #clearmsg { color: var(--muted); font-size: 14px; white-space: pre-line; }
.d5stats { margin: 0 0 26px; }
.d5stats h2 { margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 2px 0 0; font: 700 24px/1.2 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- games directory ---------- */
.filters { display: grid; gap: 12px; padding: 14px; margin: 0 0 18px; }
.filters input[type=search] { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.fgroups { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fgroups fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fgroups legend { float: left; margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fbtn { font: 600 14px/1 var(--f); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.fbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fcount { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.fnone { padding: 18px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 34px; color: var(--muted); font-size: 14px; }
.fcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (min-width: 760px) { .fcols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
footer h2 { font: 700 13px/1.2 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 6px; break-inside: avoid; }
footer a { text-decoration: none; color: var(--text); } footer a:hover { text-decoration: underline; color: var(--teal); }
footer p { margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) { .tile, .otile img, .ring .fg, .d5-bar i { transition: none; } }
/* original games hub */
.olist { display: grid; gap: 16px; margin: 0 0 24px; }
.oitem { display: grid; gap: 14px; padding: 14px; }
@media (min-width: 700px) { .oitem { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.oitem h2 a { text-decoration: none; } .oitem h2 a:hover { color: var(--teal); }
.oitem .meta { margin: 2px 0 6px; color: var(--teal); font-weight: 600; font-size: 14px; }
.oitem p { margin: 0 0 10px; }
.oact { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.oact > a:not(.btn) { color: var(--teal); font-weight: 600; }
@media (max-width: 899px) { .prog.is-new { display: none; } }
@media (max-width: 639px) { .hero .lead { font-size: 17px; margin-bottom: 16px; } .hero { margin-bottom: 22px; } .oitem .otile { aspect-ratio: 16 / 9; } .oitem .otile img { object-position: center 30%; } }
.otile img { object-position: center 35%; }
@media (max-width: 759px) { .mainnav { justify-content: space-between; margin: 0 -6px; } .mainnav > a, .dd > summary { padding: 8px 6px; font-size: 14.5px; } .dd > summary { gap: 4px; } }
@media (max-width: 360px) { .mainnav > a, .dd > summary { padding: 8px 4px; font-size: 13.5px; } }
/* guide articles */
.kicker { margin: 6px 0 0; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.sources { font-size: 14px; color: var(--muted); }
.artplay { padding: 16px; margin: 0 0 30px; }
.artplay h2 { margin-bottom: 12px; }
