/*
 * Per-page blocks for the v4 pages.
 *
 * system.css is the contract every page shares; this is what individual pages
 * add on top. Loaded after it, so anything here deliberately wins.
 */

/* Present to a screen reader, absent to everyone else. Used where a page needs
   an H1 for search but showing one would put a heading between the visitor and
   the thing they came to do. */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* The logo wrapper, so a tile's flex row can't stretch a game mark. */
.ic-wrap{display:flex;flex:none}

/* ---------------------------------------------------------------- the hub */
.hubh{padding-block:40px 10px}
.hubgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
/* The game's colour runs the whole card rather than stopping at the artwork:
   a tinted lid on a white box reads as two things stacked, not one card. */
.gt{border-radius:var(--r-lg);overflow:hidden;background:var(--card);border:1px solid var(--rule);display:flex;flex-direction:column}
.gt.q{background:var(--q);border-color:#C7D9C0}
.gt.mf{background:var(--mf);border-color:#E7CDC2}
.gt.p{background:var(--p);border-color:#C9D5EA}
/*
 * The mark should sit in the space, not fill it. At the system's large sizes
 * the Minefields grid is 160px tall inside a 170px area -- five pixels of air,
 * which reads as cramped however good the mark is. A taller area and smaller
 * marks give every game about 40px on each side, and the three stay optically
 * matched: they are sized to equal *height*, not equal width, because a four
 * bar stack, a 3x3 grid and a two column figure fill a box very differently.
 */
/*
 * No fixed height any more. A 190px art area made sense while the card had a
 * white lower half and the tint boundary gave the mark its shape; now the
 * whole card is one colour, that height and the text block's padding merge
 * into one large void above the game's name. Padding instead, so the space
 * belongs to the mark rather than to a box nobody can see.
 */
.gt .art{display:grid;place-items:center;padding:32px 0 8px}
.gt .big .ic-q{width:112px;gap:10px}
.gt .big .ic-q b{height:19px;border-radius:5px}
.gt .big .ic-mf{width:116px;gap:8px}
.gt .big .ic-mf b{border-radius:9px}
.gt .big .ic-p{width:94px}
.gt .tx{padding:14px 22px 22px;text-align:center;display:flex;flex-direction:column;gap:6px;flex:1}
.gt .tx .btn{margin-top:14px}
.save{margin-top:26px;display:flex;align-items:center;gap:24px;padding:24px 28px;background:var(--paper)}

@media (max-width:600px){
 .hubgrid{grid-template-columns:1fr;gap:12px}
 .gt{flex-direction:row}
 /* The art column has to be meaningfully wider than the mark inside it, or
    the logo sits in a 4px gutter and the whole card reads as cramped. */
 .gt .art{width:126px;flex-shrink:0;padding:0}
 .gt .big .ic-q{width:74px;gap:7px}
 .gt .big .ic-q b{height:13px;border-radius:4px}
 .gt .big .ic-mf{width:78px;gap:6px}
 .gt .big .ic-mf b{border-radius:8px}
 .gt .big .ic-p{width:62px}
 .gt .tx{text-align:left;padding:16px;gap:3px}
 .gt .tx .btn{margin-top:10px;height:42px}
 .save{flex-direction:column;align-items:stretch;gap:12px;padding:20px}
}

/* --------------------------------------------------------- the game pages */
.gp{padding-block:30px 10px}
.qh{font-family:var(--serif);font-weight:900;font-size:36px;line-height:1.14;letter-spacing:-.5px;margin:28px 0 24px}
.more{padding-block:30px 50px}
.more h2{font-family:var(--serif);font-weight:900;font-size:22px;margin:0 0 14px}
.band-how{margin-left:auto;font-size:14px}

/* Minefields: twenty boxes, three columns, two on a phone. */
.board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}
.board .box{min-height:56px;padding:8px 10px;border-radius:var(--r-sm);border:1.5px solid #E7D3C8;background:#fff;display:grid;place-items:center;font-weight:600;font-size:15px;font-family:inherit;color:inherit;cursor:pointer;text-align:center}
.board .box:disabled{cursor:default}
.board .box.ok{background:var(--q);border-color:#7FB27A;color:#245F2C}
.board .box.ok:before{content:'✓ '}
.board .box.mine{background:var(--mf-ink);border-color:var(--mf-ink);color:#fff}
.board .box.mine:before{content:'✕ '}
.board .box.missed{border-color:#7FB27A;border-style:dashed;color:#245F2C}
.mf-gate{padding-block:10px 20px}

/* ------------------------------------------------------- the result block */
.score{font-family:var(--serif);font-weight:900;font-size:100px;line-height:.95;letter-spacing:-4px;margin:10px 0 12px}
.score span{font-size:30px;color:var(--mute);letter-spacing:0;font-weight:700}
.keep{margin-top:26px;padding:28px;border:2px solid var(--ink)}
.keep .row{display:flex;gap:10px;margin-top:20px}
.share{display:flex;gap:18px;margin-top:18px;align-items:center}
.stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;border-block:1px solid var(--rule);padding:16px 0;margin-top:18px}
.stats b{display:block;font-family:var(--serif);font-weight:900;font-size:32px}

@media (max-width:600px){
 .qh{font-size:28px}
 .board{grid-template-columns:1fr 1fr}
 .score{font-size:80px}
 .keep{padding:22px}
 .keep .row{flex-direction:column}
 .stats b{font-size:26px}
}

/* ------------------------------------------------------------- homepage */
.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center;padding-block:60px 56px}
.hero .ctas{display:flex;gap:12px;margin-top:28px}
.proof{display:flex;align-items:center;gap:12px;margin-top:22px}
.proof .body{font-size:14px}

.game{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.game.rev .vis{order:-1}
.demo{padding:28px}

.minib{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.minib span{height:44px;border-radius:9px;border:1.5px solid #E7D3C8;background:#fff;display:grid;place-items:center;font-weight:600;font-size:13.5px}
.minib .ok{background:var(--q);border-color:#7FB27A;color:#245F2C}
.minib .boom{background:var(--mf-ink);border-color:var(--mf-ink);color:#fff}

.ul{list-style:none;padding:0;margin:18px 0 26px}
.ul li{display:flex;gap:10px;font-size:15px;color:var(--soft);margin-bottom:8px}
.ul li:before{content:"✓";font-weight:700}

/* Top padding of its own rather than relying on the phone to push the text
   column down: when the text is the taller of the two, centring gives it no
   top space at all and the label ends up on the edge. */
.app{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;border-radius:var(--r-lg);background:var(--paper);padding:52px 56px 0;overflow:hidden}
.app-ctas{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:40px}

/* The phone from the mockup, drawn rather than photographed, so there is no
   image to ship, scale or keep in sync with the design. */
.phone{width:290px;margin:0 auto -120px;border:12px solid #2A2724;border-radius:42px;background:var(--page);overflow:hidden}
.phone-in{padding:22px 16px 40px}
.phone .opt{height:auto;min-height:0;padding:11px 12px;font-size:14px;margin-bottom:8px;background:var(--paper);border-color:transparent}
.phone .opt b{width:24px;height:24px;font-size:11px;border-radius:6px}
.phone-q{font-family:var(--sans);font-weight:700;font-size:19px;line-height:1.25;margin:8px 0 16px}

.revs{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.rev{padding:22px}
.rev q{display:block;font-family:var(--serif);font-style:italic;font-size:19px;line-height:1.35;margin:12px 0 16px;quotes:none}

.price{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:860px;margin:0 auto}
.pc{padding:30px}
.pc .amt{font-family:var(--serif);font-weight:900;font-size:44px;margin:8px 0 2px}
.pc.sup{background:var(--ink);color:#fff;border-color:var(--ink)}
.pc.sup .body,.pc.sup .ul li{color:#D9CFC2}
.pc.sup .btn{background:#fff;color:var(--ink);border-color:#fff}

.final{text-align:center}
.final .tiles{max-width:560px;margin:26px auto 0;text-align:left}

@media (max-width:600px){
 /* The tiles come up before the paragraph: the games are the point, and on a
    phone they should be visible without scrolling. */
 .hero{grid-template-columns:1fr;gap:20px;padding-block:28px 34px}
 .hero>div:first-child{display:contents}
 .hero .d1{order:1}.hero .tiles{order:2}.hero .lead{order:3}
 .hero .ctas{order:4;margin-top:0}
 .hero .ctas .btn:first-child{display:none}
 .hero .ctas .btn{flex:1}
 .proof{order:5;margin-top:0}

 .game{grid-template-columns:1fr;gap:24px}.game.rev .vis{order:0}.demo{padding:18px}
 .app{grid-template-columns:1fr;padding:34px 22px 0;gap:10px}
 .phone{width:220px;margin:10px auto -90px}
 .revs{grid-template-columns:1fr 1fr}.rev{padding:16px}.rev q{font-size:16px}
 .price{grid-template-columns:1fr}.pc{padding:24px}
}

/* ----------------------------------------------------- the Pairs sample */
/* The prompt being asked, over the grid of ten answers. */
.prompt{background:var(--p);border-radius:var(--r-md);padding:18px 20px;margin-bottom:16px}
.prompt-text{font-family:var(--serif);font-weight:900;font-size:26px;line-height:1.15;letter-spacing:-.3px;margin-top:6px}
.prompt-verdict{margin:8px 0 0;font-size:14px;font-weight:600;color:var(--mf-ink);min-height:1.2em}

.prgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:4px}
.prtile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
        min-height:60px;padding:10px;border-radius:var(--r-sm);border:1.5px solid #C9D5EA;background:#fff;
        font-weight:600;font-size:14.5px;font-family:inherit;color:inherit;cursor:pointer;text-align:center}
.prtile:disabled{cursor:default}
/* Right: the tick is earned. */
.prtile.right{background:var(--q);border-color:#7FB27A;color:#245F2C}
.prtile.right .prtile-face:before{content:'✓ '}
/* The tile just picked, wrongly. */
.prtile.wrong{background:var(--mf);border-color:var(--mf-ink);color:var(--mf-ink)}
/* The tile that held the answer for a pair the player missed. No cross: the
   answer on it is correct, it simply was not the one chosen. */
.prtile.missed{background:#fff;border-color:#D89A88;border-style:dashed;color:var(--soft)}
/* The prompt a tile took, right or wrong. */
.prtile-took{font-family:var(--mono);font-size:10px;letter-spacing:1px;text-transform:uppercase;opacity:.75}
.prtile-took.missed{color:var(--mf-ink)}

/* The homepage demo runs at a smaller scale than the real board. */
.demo .prompt{padding:14px 16px;margin-bottom:12px}
.demo .prompt-text{font-size:21px}
.demo .prgrid{grid-template-columns:repeat(3,1fr);gap:8px}
.demo .prtile{min-height:52px;font-size:13px;padding:8px 6px}
.demo .prtile-took{font-size:9px;letter-spacing:.5px}

/* -------------------------------------------------------- how to play */
.howrow{display:grid;grid-template-columns:64px 1fr;gap:22px;align-items:start;padding-block:26px;border-top:1px solid var(--rule)}
.howmark{padding-top:4px}

@media (max-width:600px){
 .prompt-text{font-size:22px}
 .prtile{font-size:13.5px;min-height:56px}
 .howrow{grid-template-columns:1fr;gap:14px}
}

/* ------------------------------------------------------------ sign in/up */
.auth{max-width:440px;margin:0 auto;padding:44px 20px 60px;text-align:center}
.auth .field{margin-bottom:12px}
.auth .lb{text-align:left;margin:2px 0 6px}
.auth-google{display:flex;justify-content:center}
.auth-hint{font-size:13px;text-align:left;margin:-4px 0 14px;color:var(--mute)}
.auth-error{text-align:left;color:var(--mf-ink);font-weight:600;margin:0 0 14px}
.auth form{margin:0}

/* ------------------------------------------------------------- account */
.acc{padding-block:40px 60px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}
.gs{padding:22px}
.gs-head{display:flex;align-items:center;gap:12px}
.gs .stats{margin-top:12px}
.stats-2{grid-template-columns:repeat(2,1fr)}
/* Scoped to the account page on purpose: the homepage pricing card is also
   .pc.sup, and an unscoped .sup laid that out as a row. */
.acc .sup{margin-top:18px;padding:28px;background:var(--ink);color:#fff;border-color:var(--ink);display:flex;align-items:center;gap:24px}
.acc .sup .body{color:#D9CFC2}
.acc .sup .btn{background:#fff;color:var(--ink);border-color:#fff}
.set{margin-top:18px}
.set div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 22px;border-bottom:1px solid var(--rule);font-size:15px}
.set div:last-child{border:0}

@media (max-width:600px){
 .grid2{grid-template-columns:1fr}
 .acc .sup{flex-direction:column;align-items:stretch;padding:22px}
 .set div{padding:14px 18px}
}

/* A card for a game already played: what you scored, where Play was. */
.gt-done{margin-top:14px;display:flex;align-items:center;justify-content:center;height:50px;
         font-family:var(--mono);font-size:12px;letter-spacing:1.5px;text-transform:uppercase}
.gt.q .gt-done{color:var(--q-ink)}
.gt.mf .gt-done{color:var(--mf-ink)}
.gt.p .gt-done{color:var(--p-ink)}
@media (max-width:600px){ .gt-done{height:42px;margin-top:10px;justify-content:flex-start} }

/* ---------------------------------------- written pages: privacy, terms… */
.prose{padding-block:48px 64px}
.prose .d2{margin-bottom:26px}
.entry-content{font-size:16px;line-height:1.7;color:var(--soft)}
.entry-content p{margin:0 0 18px}
.entry-content h2{font-family:var(--serif);font-weight:900;font-size:26px;line-height:1.15;color:var(--ink);margin:34px 0 12px}
.entry-content h3{font-family:var(--serif);font-weight:900;font-size:20px;color:var(--ink);margin:26px 0 10px}
.entry-content ul,.entry-content ol{margin:0 0 18px;padding-left:22px}
.entry-content li{margin-bottom:8px}
.entry-content a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.entry-content strong{color:var(--ink)}
.entry-content hr{border:0;border-top:1px solid var(--rule);margin:30px 0}
