/* Gamegbee static pages: the Atlas's calm database look, with Squid accents (wordmark, pink, cover-style no-art tiles). */
:root {
  --bg: #fbfaf7; --panel: #ffffff; --ink: #261447; --muted: #6b647b; --line: #e7e2ee; --wash: #f4f1f8;
  --pink: #ba164b; --yellow: #ffcd36; --lilac: #b9a0ed; --rose: #ffa3c4;
  --display: "Bangers", Impact, sans-serif; --body: "Space Grotesk", system-ui, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 50px; height: 34px; object-fit: contain; transform: rotate(-4deg); }
.brand b { font: 400 26px/1 var(--display); letter-spacing: .5px; }
.toplinks { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-left: auto; font-size: 14px; font-weight: 600; align-items: center; }
.toplinks a { text-decoration: none; } .toplinks a:hover { text-decoration: underline; }
.toplinks .add { border: 1px solid var(--ink); border-radius: 9px; padding: 5px 10px; }
.toplinks .squid, .menu .squid { color: var(--pink); }
/* phones: one Menu button instead of a wrapped row of links */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--ink); border-radius: 9px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--panel); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 210px; background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); padding: 6px; z-index: 30; }
.menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.menu nav a:hover { background: var(--wash); }

.page { max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 18px 60px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink); }
.lead { margin-bottom: 22px; }
.lead h1 { font: 700 clamp(30px, 4vw, 44px)/1.1 var(--body); margin: 0 0 6px; text-wrap: balance; }
.lead p { margin: 0; color: var(--muted); max-width: 65ch; }

/* game page */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.gallery { display: grid; gap: 8px; min-width: 0; }
.gallery .main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--wash); }
.thumbs { display: flex; gap: 6px; overflow-x: auto; }
.thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.thumbs button:hover, .thumbs button:focus-visible { border-color: var(--ink); }
.thumbs img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.none { display: grid; place-content: center; text-align: center; gap: 4px; aspect-ratio: 16 / 10; border-radius: 10px; color: var(--ink);
  background: var(--lilac) radial-gradient(#26144726 1.2px, transparent 1.5px) 0 0 / 8px 8px; padding: 10px; }
.none b { font: 400 clamp(18px, 2vw, 26px)/1 var(--display); letter-spacing: .4px; }
.none small { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.none.big { aspect-ratio: 16 / 9; } .none.big b { font-size: clamp(32px, 5vw, 56px); }
.intro { display: grid; gap: 10px; min-width: 0; }
.intro .code { margin: 0; font: 700 12px var(--mono); color: var(--muted); letter-spacing: .5px; }
.intro .code a { color: var(--ink); }
.intro h1 { margin: 0; font: 700 clamp(32px, 4.4vw, 52px)/1.05 var(--body); text-wrap: balance; }
.intro .by { margin: 0; color: var(--muted); } .intro .by a { color: var(--ink); font-weight: 600; }
.intro .lede { margin: 0; font-size: 18px; max-width: 46ch; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--panel); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn.ghost { background: var(--panel); color: var(--ink); }
.take { margin: 28px 0 0; border-left: 4px solid var(--pink); background: #fdf1f5; border-radius: 0 12px 12px 0; padding: 14px 18px; max-width: 75ch; }
.take span { font: 400 18px var(--display); letter-spacing: .5px; color: var(--pink); }
.take p { margin: 4px 0 0; font-size: 17px; }
.game section { margin-top: 30px; }
.game h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 10px; }
.facts dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; max-width: 760px; }
.facts dt { color: var(--muted); font-size: 14px; } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts small { color: var(--muted); }
/* where to play: one logo chip per store or platform, linked; the first link leads */
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; border: 1px solid var(--ink); border-radius: 10px; padding: 6px 14px 6px 10px; background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.15; }
.store .ic { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
a.store:hover, a.store:focus-visible { background: var(--ink); color: var(--panel); }
.stores > a.store:first-child { background: var(--ink); color: var(--panel); }
.stores > a.store:first-child:hover, .stores > a.store:first-child:focus-visible { background: var(--pink); border-color: var(--pink); }
a.store:hover small, a.store:focus-visible small, .stores > a.store:first-child small { color: inherit; opacity: .8; }
.store.off { border-style: dashed; border-color: var(--muted); color: var(--muted); font-weight: 600; }
h2.playat, h3.playat { margin: 4px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.pl { display: inline-block; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; margin: 0 4px 4px 0; }
.pl.dev { border-style: dashed; color: var(--muted); }
.cov ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; } .cov small { color: var(--muted); }
.jumpto { display: block; font-size: 12px; color: var(--muted); font-style: italic; margin-top: 2px; }
.check { margin-top: 26px; font-size: 14px; background: #fff7dc; border: 1px solid #f1df9e; border-radius: 10px; padding: 10px 14px; max-width: 75ch; }
.srcs { margin-top: 14px; font-size: 13px; color: var(--muted); } .srcs summary { cursor: pointer; font-weight: 600; }
.credit { margin-top: 26px; font-size: 13px; color: var(--muted); }
.rights { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
/* evidence: every claim can point at where it is written down */
.src { font-size: 12px; font-weight: 700; color: var(--pink); text-decoration: none; white-space: nowrap; }
.src:hover { text-decoration: underline; }
.todo { font-size: 11px; font-weight: 700; color: #6b4a00; background: #fff3cf; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.tscroll { overflow-x: auto; max-width: 760px; }
.places table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.places th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); background: var(--wash); padding: 8px 12px; }
.places td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.places td small { color: var(--muted); font-style: italic; }
.places td a:not(.src) { font-weight: 600; }
.status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 760px; }
.status li { padding-left: 24px; position: relative; font-size: 14px; }
.status li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.status li.s-ok::before { background: #79ddd1; } .status li.s-part::before { background: var(--yellow); } .status li.s-todo::before { background: var(--panel); }
.status .check { margin-top: 12px; }
.game .srcs { margin-top: 30px; font-size: 14px; color: var(--ink); }
.srcs ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; max-width: 760px; }
.srcs ol .src { white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
.more p { margin: 10px 0 0; font-weight: 600; }

/* cards and rows */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gcard { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-decoration: none; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.gcard:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.gcard .pic img, .gcard .pic .none { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.gcard .info { display: grid; gap: 2px; padding: 0 4px 4px; min-width: 0; }
.gcard .code { font: 700 11px var(--mono); color: var(--muted); }
.gcard b { font-size: 16px; line-height: 1.2; }
.gcard small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard small.why { color: var(--ink); white-space: normal; }
/* country pages: Squid's intro and picks lead, the full index follows */
.lead.country { max-width: 760px; }
.lead .kicker { font: 700 12px var(--mono); color: var(--pink); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.lead .intro { color: var(--ink); font-size: 19px; line-height: 1.5; max-width: 62ch; margin-top: 10px; }
.lead .byline { font-size: 12px; margin-top: 8px; }
.picks, .makers, .all { margin-top: 34px; }
.picks h2, .makers h2, .all h2 { font: 400 26px/1 var(--display); letter-spacing: .5px; margin: 0 0 12px; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pick { display: grid; background: var(--panel); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; min-width: 0; }
.pick:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.pick .pic img, .pick .pic .none { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; display: grid; }
.pick .body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.pick .code { font: 700 11px var(--mono); color: var(--muted); }
.pick b { font-size: 20px; line-height: 1.15; }
.pick small { font: 400 15px var(--display); color: var(--pink); letter-spacing: .4px; }
.hint { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
/* this week: the pick runs big, picture beside the reason */
.weekpick { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--panel); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--pink); }
.weekpick .pic img, .weekpick .pic .none { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: grid; }
.weekpick .body { display: grid; gap: 10px; align-content: center; padding: 22px 24px; }
.weekpick .code { font: 700 11px var(--mono); color: var(--muted); }
.weekpick b { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; } .weekpick b a { text-decoration: none; }
.weekpick .body > span:not(.code):not(.acts) { font-size: 17px; }
.weekpick .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pick b a { text-decoration: none; }
.pick .pic { display: block; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.qcountry { margin-top: 28px; } .qcountry h2 { font: 700 20px var(--body); margin: 0 0 10px; }
.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; min-width: 0; }
.qcard header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .qcard header b { font-size: 16px; }
.qcard .chip { font: 700 11px var(--mono); text-transform: uppercase; border-radius: 6px; padding: 1px 6px; background: var(--wash); }
.qcard.s-ready .chip { background: #79ddd1; } .qcard.s-hold .chip { background: #fff3cf; } .qcard.s-approved .chip { background: var(--ink); color: var(--panel); } .qcard.s-rejected .chip { background: #f5d0dc; }
.qcard .kind { font-size: 12px; color: var(--muted); } .qcard p { margin: 0; } .qcard .facts { color: var(--muted); } .qcard .line { font-style: italic; }
.qcard .why { color: #6b4a00; } .qcard .research, .qcard .found { font-size: 12px; color: var(--muted); }
.qcard .checks { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); } .qcard .links { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.qcard .boxes { display: flex; gap: 14px; } .qcard .boxes label { display: flex; gap: 6px; align-items: center; font-weight: 700; }
#qout { width: 100%; max-width: 680px; font: 13px var(--mono); }
.method { max-width: 70ch; } .method h2 { font: 700 20px var(--body); margin: 26px 0 6px; } .method p { margin: 0; }
.foot .build { font: 700 11px var(--mono); color: var(--muted); }
.more-to-find { margin-top: 26px; }
.studio { margin-top: 28px; scroll-margin-top: 80px; } .studio h2 { font: 700 22px var(--body); margin: 0 0 4px; } .studio:target h2 { color: var(--pink); }
.makers .rows { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 10px; }
.makers .row { padding: 8px 12px; border-radius: 10px; grid-template-columns: 1fr auto auto; }
.makers .row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .makers .row small { font-size: 12px; }
.rows { display: grid; gap: 6px; max-width: 760px; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.row:hover { border-color: var(--ink); }
.row small { color: var(--muted); } .row span { font: 700 13px var(--mono); color: var(--pink); }

/* submit form */
.form { display: grid; gap: 14px; max-width: 680px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--ink); }
.form .checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 400; }
.form .checks label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.notice { max-width: 680px; background: #fff7dc; border: 1px solid #f1df9e; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 18px; }
.consent { display: grid; gap: 8px; }
.form fieldset.checks label, .form .consent label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form .err { color: var(--pink); font-size: 13px; font-weight: 600; }
.done { border: 2px solid var(--ink); border-radius: 14px; padding: 18px; box-shadow: 4px 4px 0 var(--pink); background: var(--panel); max-width: 680px; }

.foot { border-top: 1px solid var(--line); padding: 24px 16px 40px; display: grid; gap: 14px; font-size: 14px; max-width: 1120px; margin: 0 auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav b { width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.foot a { font-weight: 600; } .foot p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
  .toplinks { display: none; } .menu { display: block; }
  .top { flex-wrap: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .lead .intro { font-size: 17px; }
  .weekpick { grid-template-columns: 1fr; } .weekpick .pic img { min-height: 0; aspect-ratio: 16 / 9; } .weekpick .body { padding: 16px; }
  .facts dl { grid-template-columns: 110px 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
