:root{color-scheme:light;--paper:#f4f1e9;--ink:#253d35;--muted:#5d6b62;--line:#d6d4c6;--accent:#aa563c;--serif:Georgia,'Times New Roman',serif;--mono:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--ink);background:var(--paper);-webkit-text-size-adjust:100%}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
img{display:block;max-width:100%}
h1,h2,h3,p,ul,dl,dd{margin:0;padding:0}
ul{list-style:none}
a{color:inherit;text-underline-offset:3px}
a:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:2px}

/* Player index: a small newspaper index, with board-like rows instead of product cards. */
.players{max-width:980px;margin:0 auto;padding:18px 16px 48px;font:16px/1.45 var(--serif);background:#fbf8f1;color:#1d1b17}
.players *{box-sizing:border-box}.players button,.players input{font:inherit}.players .skip{position:fixed;left:10px;top:-70px;background:#1d1b17;color:#fbf8f1;padding:10px;z-index:5}.players .skip:focus{top:10px}
.players .top{display:flex;align-items:end;justify-content:space-between;gap:12px;border-bottom:2px solid #1d1b17;padding:0 0 10px;min-height:auto}.players h1{margin:0;font:600 clamp(28px,5vw,42px)/.95 var(--serif);letter-spacing:-.035em}.players .top p{margin:6px 0 0;color:#6d675c;font-size:16px}.issue,.section-label span,.count,.badge,.players footer{font:12px/1.25 var(--mono);letter-spacing:.04em;color:#6d675c}.issue{text-transform:uppercase;white-space:nowrap}
.controls{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:12px 0 9px;background:#fbf8f1;border-bottom:1px solid #e2dccf}.search{flex:1 1 190px;display:grid;gap:3px;font:11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#6d675c}.search input{width:100%;min-height:38px;border:1px solid #c9c1b5;border-radius:0;padding:7px 10px;background:#fff;font:16px var(--serif);color:#1d1b17}.chips{display:flex;flex-wrap:wrap;gap:4px}.chip,.expand button{min-height:36px;border:1px solid #c9c1b5;border-radius:0;background:#fff;color:#1d1b17;padding:6px 9px;font:12px var(--mono);cursor:pointer}.chip[aria-pressed=true],.expand button:hover,.expand button:focus-visible{background:#1d1b17;border-color:#1d1b17;color:#fbf8f1}.expand{display:flex}.expand button+button{border-left:0}.count{margin:8px 0 0;text-align:right}.game-group{margin-top:22px}.section-label{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid #1d1b17;padding-bottom:6px}.section-label h2{margin:0;font:600 12px var(--mono);letter-spacing:.1em;text-transform:uppercase}.games{list-style:none;margin:0;padding:0}.game-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid #e2dccf}.row-toggle{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:60px minmax(0,1fr) auto 16px;gap:10px;align-items:center;min-height:78px;padding:9px 8px 9px 0;width:100%}.row-toggle:focus-visible{outline:2px solid #b5562d;outline-offset:-2px}.art{width:60px;height:60px;overflow:hidden;background:var(--game-ground);display:grid;place-items:center;border:1px solid rgba(29,27,23,.12)}.thumb{width:100%;height:100%;object-fit:cover}.wordmark{font:600 18px/1 var(--serif);letter-spacing:-.04em;color:#1d1b17}.copy{min-width:0;display:grid;gap:3px}.game-title{font:600 19px/1.1 var(--serif);letter-spacing:-.015em}.pitch{font-size:14.5px;line-height:1.28;color:#6d675c}.badges{display:flex;gap:4px;align-self:start}.badge{border:1px solid #b5562d;color:#8a3d20;padding:3px 4px;white-space:nowrap}.badge.new{border-color:#1d1b17;color:#1d1b17}.chevron{font:20px/1 var(--mono);color:#6d675c}.open .chevron{color:#b5562d}.detail{grid-column:1/-1;margin:0 0 11px 70px;padding:9px 12px;border-left:3px solid #b5562d;background:#f3eee3;font-size:14px;line-height:1.4}.detail p{margin:0}.detail p+p{margin-top:6px}.detail b{font:600 11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#6d675c}.detail .credit{color:#5f594f}.play{align-self:center;display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:0 0 0 4px;padding:0 9px;border:1px solid #1d1b17;color:#1d1b17;text-decoration:none;font:600 13px var(--mono);white-space:nowrap}.play:hover,.play:focus-visible{background:#1d1b17;color:#fbf8f1}.empty{margin:14px 0;color:#6d675c}.players footer{margin-top:32px;padding-top:10px;border-top:1px solid #e2dccf}
@media (max-width:500px){.players{padding:14px 12px 40px}.players .top{align-items:start}.issue{padding-top:4px}.controls{top:0}.expand{width:100%}.expand button{flex:1}.row-toggle{grid-template-columns:56px minmax(0,1fr) 14px;gap:9px}.art{width:56px;height:56px}.badges{grid-column:2;grid-row:2;align-self:end;margin-top:-5px}.pitch{padding-right:2px}.chevron{grid-column:3;grid-row:1}.play{position:absolute;right:0;bottom:8px;min-height:30px;font-size:12px;background:#fbf8f1}.detail{margin-left:0;margin-right:0;padding-right:82px}.game-row{padding-bottom:36px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.page{max-width:1180px;margin:0 auto;padding:0 16px calc(24px + env(safe-area-inset-bottom))}

/* Pictures: a thin ink edge and square-ish corners, the game's own colour behind */
.shot{display:block;background:var(--bg,#ddd);overflow:hidden;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(37,61,53,.14)}
.shot img{width:100%;height:100%;object-fit:cover;object-position:center top}
/* Credit: one quiet italic line naming what a game came from */
.credit{font:italic 13px/1.3 var(--serif);color:var(--muted)}
.meta,.label,.today{font-family:var(--mono);font-size:12.5px;letter-spacing:.01em;color:var(--muted)}

/* Top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding-top:env(safe-area-inset-top)}
.brand{display:flex;align-items:center;gap:10px;font:400 26px/1 var(--serif);letter-spacing:-.02em;text-decoration:none;min-height:44px}
.brand img{border-radius:8px}
.about-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:15px;color:var(--muted)}
.wide{display:none}

.intro{font:italic 400 18px/1.35 var(--serif);color:var(--muted);margin:0 0 14px;max-width:34em}

/* Featured: one lead game with a big picture, then two as rows */
.featured{display:grid;grid-template-columns:1fr}
.feature{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--line);text-decoration:none}
.feature .shot{position:relative;height:84px}
.frame{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.frame.on{opacity:1}
.feature .text{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:3px;min-width:0}
.feature .title,.feature .line,.feature .credit,.feature .case,.feature .meta{grid-column:1}
.feature .title{font:400 21px/1.1 var(--serif);letter-spacing:-.01em}
.feature .line{font-size:15px;line-height:1.3}
.feature .case{font-size:13px;line-height:1.3;color:var(--muted)}
.feature .action{grid-column:2;grid-row:1/-1;align-self:center;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;border:1px solid var(--ink);border-radius:3px;font-size:14px;font-weight:600;white-space:nowrap}
.feature.lead{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0 0 16px;border-top:0}
.feature.lead .shot{height:206px}
.feature.lead .text{column-gap:14px;align-items:center;padding-top:12px}
.feature.lead .title{font-size:28px;grid-column:1}
.feature.lead .line{font-size:16px;grid-column:1}
.feature.lead .meta,.feature.lead .credit{grid-column:1}
.feature.lead .action{background:var(--accent);border-color:var(--accent);color:#fff;font-size:17px;padding:0 20px}

/* Section headings */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:30px 0 12px}
.section-head h2{font:400 24px/1.15 var(--serif);letter-spacing:-.01em}
.daily-hint{margin-top:3px;font-size:13px;line-height:1.3;color:var(--muted)}

/* Play today's: a sideways strip on a phone */
.strip{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:2px 16px 8px;scrollbar-width:none;overscroll-behavior-x:contain}
.strip::-webkit-scrollbar{display:none}
.strip li{flex:0 0 128px;scroll-snap-align:start}
.tile{display:flex;flex-direction:column;text-decoration:none;height:100%}
.tile .shot{height:96px}
.tile .shot img{transform:scale(1.65);transform-origin:center 18%}
.tile .title{font:400 16px/1.15 var(--serif);padding:8px 0 2px}

/* All games, grouped, as ruled rows */
.group{margin-top:22px}
.group h3{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);margin:0;padding-bottom:7px;border-bottom:1px solid var(--ink)}
.group h3 span{display:block;font-weight:400;letter-spacing:0;text-transform:none;margin-top:3px;font-size:14px;color:var(--muted)}
.row{display:flex;align-items:center;gap:14px;min-height:80px;padding:9px 0;border-bottom:1px solid var(--line);text-decoration:none}
.row .shot{flex:0 0 64px;height:64px}
.row .shot img{transform:scale(3.5);transform-origin:center top}
.row[data-game="fool-the-algorithm"] .shot img{transform:scale(1.2);transform-origin:center}
.row .text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.row .title{font:400 18px/1.15 var(--serif)}
.row .line{font-size:15px;line-height:1.3}
.row-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:0 9px;border:1px solid var(--ink);border-radius:3px;font-size:13px;font-weight:600;white-space:nowrap}
.row-action span{font-size:17px;line-height:1}
.row.soon .title,.row.soon .line{color:var(--muted)}
.row.soon .meta{color:var(--ink)}

/* Complete inventory: compact, numbered links rather than a second field of cards. */
.inventory{margin-top:42px}
.inventory-group{margin-top:28px}
.inventory-group h3{font:400 23px/1.15 var(--serif);letter-spacing:-.01em;margin:0;padding:0 0 9px;border-bottom:1px solid var(--ink)}
.inventory-group h3 span{font:italic 16px/1.2 var(--serif);color:var(--muted);letter-spacing:0}
.inventory-rows{list-style:none;counter-reset:inventory}
.inventory-row{display:grid;grid-template-columns:27px 58px minmax(0,1fr) 24px;gap:10px;align-items:center;min-height:82px;padding:10px 0;border-bottom:1px solid var(--line);text-decoration:none}
.inventory-number{font:12.5px var(--mono);color:var(--muted)}
.inventory-row .shot{width:58px;height:58px}
.inventory-row .text{display:flex;flex-direction:column;gap:2px;min-width:0}
.inventory-row .title{font:400 18px/1.12 var(--serif)}
.inventory-row .line{font-size:15px;line-height:1.3}
.inventory-status{font:12.5px/1.25 var(--mono);color:var(--muted);margin-top:2px}
.inventory-arrow{font-size:20px;line-height:1;color:var(--muted);justify-self:end}

/* Footer */
.foot{margin-top:40px;font-size:14px;color:var(--muted);display:flex;flex-direction:column;gap:6px}
.foot p{display:flex;flex-wrap:wrap;gap:4px 18px}
.foot a{display:inline-flex;align-items:center;min-height:44px}

/* About page */
.about main{max-width:720px}
.about h1{font:400 36px/1.1 var(--serif);letter-spacing:-.02em;margin:8px 0 14px}
.about h2{font:400 24px/1.2 var(--serif);margin:30px 0 10px}
.about main>p{font-size:17px;line-height:1.55;margin-bottom:12px}
.about .lead{font-size:19px}
.toc{display:flex;flex-wrap:wrap;gap:0 16px;margin:4px 0 18px}
.toc a{display:inline-flex;align-items:center;min-height:44px;font-size:15px}
.note{border-top:1px solid var(--line);padding:16px 0 18px;scroll-margin-top:12px}
.note-head{display:grid;grid-template-columns:60px 1fr auto;gap:12px;align-items:center;margin-bottom:8px}
.note-head .shot{width:60px;height:60px}
.note h3{font:400 21px/1.15 var(--serif)}
.note .line{font-size:15px;color:var(--muted);margin-top:2px}
.note-status{font:12px var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-top:5px}
.note .soon{font-size:14px;color:var(--muted);margin-top:4px;font-style:italic}
.play{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:3px;background:var(--ink);color:var(--paper);text-decoration:none;font-weight:600;font-size:15px}
.play.later{background:none;color:var(--muted);padding:0;font:12.5px var(--mono)}
.note dt{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:10px}
.note dd{font-size:16px;line-height:1.5;margin-top:3px;max-width:62ch}
.why{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;max-width:62ch}
.why summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;font-size:15px;font-weight:600}
.why p{font-size:16px;line-height:1.5;margin-top:6px}
.note-credit{font:italic 15px/1.45 var(--serif);color:var(--muted);margin-top:12px;max-width:62ch}
.note-credit span{font:600 13px system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;margin-right:4px}
.credit-group{margin-top:20px}
.credit-group h3{font:400 19px/1.2 var(--serif);padding-bottom:6px;border-bottom:1px solid var(--line)}
.credits li{font-size:15px;line-height:1.45;padding:7px 0;border-bottom:1px solid var(--line);color:var(--muted)}
.credits li>a:first-child{color:var(--ink);font-weight:600;margin-right:4px}

@media (hover:hover){
  .feature:hover .title,.row:hover .title,.tile:hover .title,.inventory-row:hover .title{text-decoration:underline;text-decoration-thickness:1px}
}
@media (prefers-reduced-motion:reduce){.frame{transition:none}}

@media (max-width:759px){
  .row{min-height:92px}
  .row .shot{flex-basis:76px;height:76px}
  .inventory-row{grid-template-columns:25px 60px minmax(0,1fr) 18px;gap:9px;min-height:86px}
  .inventory-row .shot{width:60px;height:60px}
}

/* Wider screens: the lead game on the left, the next two stacked beside it */
@media (min-width:760px){
  .page{padding:0 32px 40px}
  .top{min-height:76px}
  .wide{display:inline}
  .intro{font-size:21px;margin-bottom:22px}
  .featured{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:40px;align-items:start}
  .feature.lead{grid-row:1/4;padding-bottom:0}
  .feature.lead .shot{height:360px}
  .feature.lead .title{font-size:32px}
  .feature{grid-template-columns:minmax(0,190px) 1fr;gap:18px;padding:16px 0}
  .feature:nth-child(2){border-top:0;padding-top:0}
  .feature .shot{height:150px}
  .feature .title{font-size:24px}
  .feature .line{font-size:16px}
  .section-head{margin-top:48px}
  .section-head h2{font-size:28px}
  .strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px;overflow:visible;margin:0;padding:0}
  .tile .shot{height:110px}
  .rows{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
  .group{margin-top:30px}
  .about h1{font-size:46px}
}
