/*
 * The Daily Quiz — web design system v4.
 *
 * One light paper system for every page. Taken from the delivered mockups
 * (src/system.css) with the values unchanged: this file is the contract, and
 * anything a page needs beyond it belongs in the page, not in here.
 *
 * Three rules it exists to enforce:
 *   - light paper everywhere, never a dark page background;
 *   - every primary action is ink, one per screen;
 *   - a game's colour marks that game only — its tile, its band, its section.
 */
:root{
 --page:#FBF7F1;--paper:#F4ECE2;--card:#FFFFFF;--ink:#111111;--soft:#3A3633;--mute:#857E75;--rule:#E5DACB;
 --q:#DCE8D6;--q-ink:#2F7A4E;--mf:#F2DFD7;--mf-ink:#B84A2E;--p:#DFE6F3;--p-ink:#2F5DA8;--gold:#E2A93B;
 --serif:'Playfair Display',Georgia,serif;--sans:'Inter',system-ui,sans-serif;--mono:'JetBrains Mono',ui-monospace,monospace;
 --r-lg:20px;--r-md:14px;--r-sm:10px;--wrap:1180px;--narrow:680px}
*{box-sizing:border-box}
html,body{margin:0;background:var(--page);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}

/*
 * The footer sits at the bottom of the window on a short page, rather than
 * stopping where the content happens to end and leaving page colour beneath
 * it. A column with the footer pushed down by auto margin: on a long page
 * nothing changes, on a short one the footer takes the slack.
 */
body{min-height:100vh;display:flex;flex-direction:column}
body > *{flex-shrink:0}
.foot{margin-top:auto}
img{max-width:100%}
a{color:inherit}

/* type */
.d1{font-family:var(--serif);font-weight:900;font-size:58px;line-height:1.03;letter-spacing:-1.2px;margin:0}.d1 i,.d2 i{font-weight:400}
.d2{font-family:var(--serif);font-weight:900;font-size:40px;line-height:1.08;letter-spacing:-.7px;margin:0}
.d3{font-family:var(--serif);font-weight:900;font-size:26px;line-height:1.15;letter-spacing:-.3px;margin:0}
.lead{font-size:17px;line-height:1.55;color:var(--soft);margin:0}
.body{font-size:15px;line-height:1.55;color:var(--soft);margin:0}
.lab{font-family:var(--mono);font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--mute)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;padding:0 24px;border-radius:999px;font-weight:600;font-size:15px;background:var(--ink);color:#fff;border:1.5px solid var(--ink);white-space:nowrap;text-decoration:none;cursor:pointer;font-family:inherit}
.btn.sec{background:transparent;color:var(--ink)}
.btn.sm{height:38px;padding:0 16px;font-size:13.5px}
.btn.lg{height:56px;padding:0 30px;font-size:16px}
.btn.full{width:100%}
.btn:disabled{opacity:.55;cursor:default}
.link{font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;background:none;border:0;padding:0;font-family:inherit;font-size:inherit;color:inherit}

/* top bar */
.bar{position:relative;height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--rule);background:var(--page)}
.logo{font-family:var(--serif);font-size:24px;font-weight:900;letter-spacing:-.3px;text-decoration:none}.logo i{font-weight:400}
.nav{display:flex;gap:28px;font-size:14px;font-weight:500}
.nav a{text-decoration:none}
.nav .on{text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:2px}
.bar .r{display:flex;align-items:center;gap:16px;font-size:14px;font-weight:600}
.av{width:34px;height:34px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700;text-decoration:none}

/* layout */
.wrap{max-width:var(--wrap);margin:0 auto;padding-left:48px;padding-right:48px}
.narrow{max-width:var(--narrow);margin:0 auto;padding-left:20px;padding-right:20px}
section{padding-block:64px}
.sect-h{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:28px}

/* game logos */
.ic{display:grid}
.ic-q{width:52px;gap:5px}.ic-q b{height:9px;border-radius:2px;background:#111}.ic-q b.g{background:var(--q-ink)}.ic-q b:nth-child(2){width:78%}.ic-q b:nth-child(4){width:62%}
.ic-mf{grid-template-columns:repeat(3,1fr);gap:4px;width:54px}.ic-mf b{aspect-ratio:1;border-radius:4px;background:#A84E36}.ic-mf b.l{background:#DDB5A8}.ic-mf b.k{background:#111;display:grid;place-items:center}.ic-mf b.k:after{content:"";width:30%;height:30%;border-radius:50%;background:#fff}
.ic-p{width:44px}
/* The stroke scales with the artwork, so the 1.6 that reads as a hairline on a
   44px tile becomes a 5px slab at 128px. The large variant gets a finer line,
   and round caps so the ends meet the squares instead of being chopped off. */
.ic-p path{stroke-linecap:round}
.big .ic-p path{stroke-width:.85}
.big .ic-q{width:150px;gap:14px}.big .ic-q b{height:26px;border-radius:6px}.big .ic-mf{width:160px;gap:11px}.big .ic-mf b{border-radius:11px}.big .ic-p{width:128px}

/* game tile — one component: hero, hub, Up next, More games */
.tile{display:flex;align-items:center;gap:18px;border-radius:var(--r-md);padding:18px 22px;text-decoration:none}
.tile.q{background:var(--q)}.tile.mf{background:var(--mf)}.tile.p{background:var(--p)}
.tile h3{font-family:var(--serif);font-weight:900;font-size:23px;margin:0 0 2px}
.tile p{margin:0;font-size:14px;color:var(--soft)}
.tile .end{margin-left:auto;display:flex;align-items:center;gap:10px}
.tile .st{font-family:var(--mono);font-size:10.5px;letter-spacing:1.5px;text-transform:uppercase;white-space:nowrap}
.tiles{display:grid;gap:12px}
.tile-arrow{font-size:22px;line-height:1;display:inline-block}

/*
 * A tile is a link, so it should answer the pointer. Small on purpose: these
 * sit three in a row in the hero and anything springier turns the block into
 * a fairground. The arrow moves further than the card, which is what makes it
 * read as "this goes somewhere" rather than just "this is hoverable".
 */
.tile{transition:transform .18s ease,box-shadow .18s ease}
.tile:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(17,17,17,.08)}
.tile:active{transform:translateY(0);box-shadow:none}
.tile .tile-arrow{transition:transform .18s ease}
.tile:hover .tile-arrow{transform:translateX(4px)}
.tile:hover .btn.sm{background:var(--soft);border-color:var(--soft)}

/* Somebody who has asked for less motion gets the colour change and nothing
   that moves. */
@media (prefers-reduced-motion:reduce){
 .tile,.tile .tile-arrow{transition:none}
 .tile:hover{transform:none}
 .tile:hover .tile-arrow{transform:none}
}

/* The hero's proof line cross-fades between the four reviews. */
#hero-quote{transition:opacity .45s ease}

/* cards & blocks */
.card{background:var(--card);border:1px solid var(--rule);border-radius:var(--r-lg)}
.band{border-bottom:1px solid var(--rule)}.band.q{background:var(--q)}.band.mf{background:var(--mf)}.band.p{background:var(--p)}
.band .in{display:flex;align-items:center;gap:18px;padding-block:22px}

/* game ui */
.progtop{display:flex;justify-content:space-between;align-items:baseline}
.num{font-family:var(--serif);font-style:italic;font-weight:900;font-size:19px;color:var(--ink);letter-spacing:0}
.segs{display:flex;gap:6px;margin-top:12px}
.segs i{flex:1;height:4px;border-radius:2px;background:#E6DCCB}
.segs i.f{background:var(--ink)}.segs i.g{background:var(--q-ink)}.segs i.r{background:var(--mf-ink)}
.opt{display:flex;align-items:center;gap:16px;width:100%;min-height:60px;padding:10px 18px;border:1.5px solid var(--rule);border-radius:var(--r-md);background:var(--card);font-size:17px;margin-bottom:10px;text-align:left;font-family:inherit;color:inherit;cursor:pointer}
.opt b{flex:none;width:30px;height:30px;border:1.5px solid var(--ink);border-radius:8px;display:grid;place-items:center;font-size:13px}
.opt.ok{background:var(--q);border-color:#7FB27A}.opt.ok b{background:var(--q-ink);border-color:var(--q-ink);color:#fff}
.opt.bad{background:var(--mf);border-color:#D89A88}.opt.bad b{background:var(--mf-ink);border-color:var(--mf-ink);color:#fff}
.opt:disabled{cursor:default}
.field{height:52px;width:100%;border:1.5px solid var(--rule);border-radius:var(--r-sm);background:var(--card);display:flex;align-items:center;padding:0 16px;color:var(--ink);font-size:15px;font-family:inherit}
.field::placeholder{color:var(--mute)}
.or{display:flex;align-items:center;gap:14px;margin:16px 0}.or:before,.or:after{content:"";flex:1;height:1px;background:var(--rule)}
.stars{color:var(--gold);letter-spacing:3px;font-size:15px}
.dots{display:flex;gap:6px}.dots i{width:22px;height:22px;border-radius:50%;border:1.5px solid #D2C5B4}.dots i.f{background:var(--ink);border-color:var(--ink)}

/* footer */
.foot{border-top:1px solid var(--rule);background:var(--paper)}
.foot .in{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding-block:44px}
.foot h4{font-family:var(--mono);font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--mute);margin:0 0 12px;font-weight:500}
.foot a{display:block;font-size:14px;margin-bottom:8px;color:var(--soft);text-decoration:none}
.foot .bot{border-top:1px solid var(--rule);padding-block:16px;display:flex;justify-content:space-between}

/* The hidden attribute loses to any author display rule, and plenty above set
   one. Without this every two-state block renders both halves at once. */
[hidden]{display:none !important}

@media (max-width:600px){
 .bar{padding:0 16px;height:58px}.logo{font-size:20px}.nav,.bar .hide-m{display:none}.bar .r{gap:10px}
 .wrap{padding-left:16px;padding-right:16px}.narrow{padding-left:16px;padding-right:16px}section{padding-block:40px}
 .d1{font-size:34px}.d2{font-size:28px}.d3{font-size:22px}.lead{font-size:15px}
 .sect-h{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:20px}
 .tile{padding:14px 16px;gap:14px}.tile h3{font-size:20px}.tile p{font-size:13px}
 .big .ic-q{width:96px;gap:9px}.big .ic-q b{height:17px}.big .ic-mf{width:100px;gap:7px}.big .ic-p{width:80px}
 .opt{min-height:54px;font-size:16px}
 .foot .in{grid-template-columns:1fr 1fr;gap:22px}.foot .bot{flex-direction:column;gap:6px}
}
