*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#f4f0e8;--surface:#fcfaf6;--surface-2:#ece7dd;--border:rgba(58,44,30,.12);--border-strong:rgba(58,44,30,.28);
  --text:#1e1a15;--text-2:#665c50;--text-3:#8f8577;
  --accent:#b6452b;--accent-ink:#963620;--accent-soft:rgba(182,69,43,.10);--on-accent:#ffffff;
  --good:#2f7a4f;--warn:#a5641c;--negative:#b6452b;
  --radius:12px;--shadow:0 1px 2px rgba(40,30,20,.05),0 10px 30px rgba(40,30,20,.06);
  --serif:'Newsreader',Georgia,'Times New Roman',serif;
  color-scheme:light;
}
html.dark{
  --bg:#0d0b09;--surface:#161311;--surface-2:#211d19;--border:rgba(255,240,220,.13);--border-strong:rgba(255,240,220,.30);
  --text:#f3ede3;--text-2:#b9afa1;--text-3:#8a7f72;
  --accent:#e2664a;--accent-ink:#f2917a;--accent-soft:rgba(226,102,74,.16);--on-accent:#1b0e09;
  --good:#72c690;--warn:#e3a555;--negative:#f0806a;
  --shadow:0 1px 2px rgba(0,0,0,.5),0 10px 30px rgba(0,0,0,.45);
  color-scheme:dark;
}
html{scrollbar-gutter:stable;scroll-padding-top:calc(var(--controls-h,0px) + 48px)}
/* Field colour coding [Sora L4123]: ratings amber, skill blue, players green, money brick. Labels and column headers carry it. */
:root{--c-rating:#a5641c;--c-skill:#3f5fb5;--c-players:#2f7a4f;--c-money:#963620}
html.dark{--c-rating:#e3a555;--c-skill:#8fa6ee;--c-players:#72c690;--c-money:#f2917a}
th.f-avg,th.f-geek,th.f-voters,td.f-avg .k,td.f-geek .k,td.f-voters .k{color:var(--c-rating)}
th.f-learning,th.f-depth,th.f-weight,td.f-learning .k,td.f-depth .k,td.f-weight .k{color:var(--c-skill)}
th.f-rec,th.f-best,td.f-rec .k,td.f-best .k{color:var(--c-players)}
th.f-price,th.f-markup,td.f-price .k,td.f-markup .k{color:var(--c-money)}
td.f-learning .score,td.f-depth .score{color:var(--c-skill)}
td.f-rec .v,td.f-best .v{color:var(--c-players)}
/* India-only chrome: the price notes, the in-stock filter, the sources block. The html.india class comes from /geo or the region choice. */
html:not(.india) .india-only{display:none!important}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased;font-size:16px;font-feature-settings:'cv11','ss01','tnum'}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent-ink)}
a.link,.help a,.method a,.banner a,.feedback a{color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
h1{font-family:var(--serif);font-weight:600;font-size:2.1rem;letter-spacing:-.01em;line-height:1.1}
h2{font-family:var(--serif);font-weight:600;font-size:1.45rem;letter-spacing:-.005em;margin:36px 0 10px}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:var(--surface-2);padding:1px 5px;border-radius:5px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:8px;background:var(--accent);color:var(--on-accent);padding:8px 12px;border-radius:8px;z-index:50}
.skip:focus{left:8px}
:focus-visible{outline:2px solid var(--text-2);outline-offset:2px}
[hidden]{display:none!important}
@media (min-width:761px){.phone-only{display:none!important}}

/* ===== Top bar: a mark, the wordmark, theme, account. Nothing else. ===== */
.topbar{max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;height:64px;padding:0 24px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text)}
.brand:hover{color:var(--text)}
.mark{width:30px;height:30px;flex:none}
/* The mark: a price tag carrying three die pips. The name is "What Should We Play?" [Sora L4127]; no Indian-flavoured branding [L4106]. */
.mark .tag{fill:var(--accent)}
.mark .hole{fill:var(--bg)}
.mark .pips{fill:var(--on-accent)}
.wordmark{font-family:var(--serif);font-weight:600;font-size:1.3rem;letter-spacing:-.015em;line-height:1;white-space:nowrap}
.topbar-actions{display:flex;align-items:center;gap:8px;flex:none}
.icon-button{width:40px;height:40px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icon-button:hover{background:var(--surface-2);border-color:var(--border-strong)}
html.dark .icon-button .sun,html:not(.dark) .icon-button .moon{display:none}
.account-link{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 6px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-weight:500;max-width:260px}
.account-link:hover{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
.avatar{width:28px;height:28px;border-radius:50%;background:var(--surface-2);color:var(--text-2);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:.85rem;flex:none}
.account-link.signed{border-color:var(--accent-soft);background:var(--accent-soft)}
.account-link.signed .avatar{background:var(--accent);color:var(--on-accent)}
.account-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== Layout ===== */
main{max-width:1440px;margin:0 auto;padding:6px 24px 48px}
.intro{margin:14px 0 20px;max-width:70ch}
/* The top bar already names the site: on the main view the title block leaves the screen (still read by screen readers). */
body[data-view=main] .intro{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lede{color:var(--text-2);margin-top:8px;font-size:1.05rem}
.banner{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;margin:-8px 0 18px;color:var(--text-2);font-size:.95rem}
.banner strong{font-weight:600;color:var(--text)}
.footer{max-width:1440px;margin:0 auto;padding:22px 24px;display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--text-3);font-size:.88rem;border-top:1px solid var(--border)}
.footer a{color:var(--text-2)}

/* ===== Controls: pills ===== */
.button{font:inherit;font-weight:500;min-height:42px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.button:hover{background:var(--surface-2);border-color:var(--border-strong)}
.button[aria-expanded=true],.button.on{background:var(--text);border-color:var(--text);color:var(--bg)}
.button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.button.primary:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.button.small{min-height:36px;padding:0 13px;font-size:.92rem}
.button.icon-only{width:42px;padding:0}
.button svg{width:18px;height:18px;flex:none}
.button:disabled{opacity:.55;cursor:default}
input[type=search],input[type=text],input[type=email],input[type=password],input:not([type]),select{font:inherit;min-height:42px;padding:0 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)}
input:focus,select:focus{border-color:var(--text-2);outline:none;box-shadow:0 0 0 3px rgba(58,44,30,.10)}
html.dark input:focus,html.dark select:focus{box-shadow:0 0 0 3px rgba(255,240,220,.12)}
input[aria-invalid=true]{border-color:var(--negative)}
input[type=search]{border-radius:999px}
input[type=search]::-webkit-search-decoration{-webkit-appearance:none}
select{appearance:none;-webkit-appearance:none;padding-right:34px;border-radius:999px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;cursor:pointer}
input[type=checkbox],input[type=radio]{width:20px;height:20px;accent-color:var(--accent);cursor:pointer;flex:none}
.check{display:inline-flex;align-items:center;gap:8px;min-height:42px;cursor:pointer;white-space:nowrap}
.select-wrap{display:inline-flex;align-items:center;gap:8px;color:var(--text-2);white-space:nowrap}
.select-wrap select{color:var(--text)}
.help{font-size:.9rem;color:var(--text-2)}
.help code{font-size:.85em}
.message{margin:12px 0;font-size:.95rem}
.message:empty{display:none}
.message.error{color:var(--negative)}
.file-button input{display:none}

/* ===== Toolbar: search, then one rail ===== */
/* The controls block sticks to the top; the table header sticks under it. Panels open inside it, so a filter or field
   change is one tap away at any depth [Sora L4123]. */
.controls{position:sticky;top:0;z-index:5;background:var(--bg);padding-top:6px}
html.compact .controls{box-shadow:0 10px 18px -14px rgba(0,0,0,.35)}
.controls .panel{max-height:60vh;overflow:auto}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:4px 0 12px}
.search-wrap{position:relative;display:flex;flex:1 1 300px;max-width:520px}
.search-wrap svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--text-3);pointer-events:none}
.search-wrap input{width:100%;padding-left:44px}
.rail{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:8px;align-items:center}
.rail-end{display:inline-flex;gap:8px;align-items:center;margin-left:auto}
.sort-wrap select{max-width:280px}
.menu-wrap{position:relative;display:inline-flex}
.menu{position:absolute;right:0;top:calc(100% + 6px);min-width:240px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:6px;z-index:30;display:flex;flex-direction:column}
.menu-item{font:inherit;text-align:left;background:none;border:0;padding:10px 14px;border-radius:9px;color:var(--text);cursor:pointer;min-height:42px;white-space:nowrap}
.menu-item:hover{background:var(--surface-2)}
.menu-sep{height:1px;background:var(--border);margin:6px 6px}
.panel{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:18px;margin:0 0 14px;box-shadow:var(--shadow)}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.panel-head strong{font-family:var(--serif);font-weight:600;font-size:1.25rem}
.panel-actions{display:flex;gap:8px}
.panel-toggles{display:flex;gap:10px 22px;flex-wrap:wrap;margin-bottom:12px}
.panel-toggles select{border-radius:10px}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px 14px;margin-bottom:12px}
.filter-grid label{display:flex;flex-direction:column;justify-content:flex-end;gap:4px;font-size:.88rem;color:var(--text-2)}
.filter-grid .scale{color:var(--text-3);font-size:.8rem;white-space:nowrap}
.filter-grid input{width:100%;min-width:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font:inherit;font-size:.92rem;min-height:36px;padding:0 13px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-2);cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip[aria-pressed=true]{background:var(--text);border-color:var(--text);color:var(--bg)}
.chip[aria-pressed=true]::before{content:"✓";font-weight:700}

/* ===== Scope tabs (All · lists · Owned) and the status line ===== */
.tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;margin:0 0 6px;padding:2px 0}
.tabs::-webkit-scrollbar{display:none}
.tab{font:inherit;font-weight:500;min-height:38px;padding:0 14px;border:0;border-radius:999px;background:none;color:var(--text-2);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.tab:hover{color:var(--text)}
.tab .n{font-size:.82rem;color:var(--text-3);font-variant-numeric:tabular-nums}
.tab[aria-selected=true]{background:var(--surface-2);color:var(--text)}
.tab[aria-selected=true] .n{color:var(--text-2)}
.status{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-height:34px;margin:0 0 12px;color:var(--text-2);font-size:.92rem}
.count{white-space:nowrap}
.count strong{color:var(--text);font-weight:600}
.chips-row{display:inline-flex;flex-wrap:wrap;gap:6px}
.chips-row:empty{display:none}
.chips-row .chip{min-height:30px;font-size:.85rem;padding:0 10px;color:var(--text)}
.chips-row .chip.clear{color:var(--text-2)}
.list-help{color:var(--text-3)}
.list-help:empty{display:none}
.feedback{border:1px solid var(--border);border-radius:14px;padding:14px 16px;margin:0 0 14px;background:var(--surface)}
.feedback ul{margin:8px 0 12px 20px}
.feedback li{margin:4px 0}
.empty{padding:48px 0;color:var(--text-2);text-align:center;font-family:var(--serif);font-size:1.3rem}

/* ===== Desktop: a list with cover art, not a grid of boxes ===== */
/* The table keeps its own sideways scroll on desktop, so its header cannot stick to the page; the controls block above it does. */
.table-scroll{overflow-x:auto}
table.games{border-collapse:separate;border-spacing:0;width:100%;font-size:.92rem}
table.games th,table.games td{text-align:left;vertical-align:top;padding:14px 10px;border-bottom:1px solid var(--border)}
table.games th{position:sticky;top:0;background:var(--bg);z-index:2;font-weight:500;white-space:nowrap;color:var(--text-3);font-size:.8rem;padding-top:6px;padding-bottom:8px}
table.games thead th.sortable{cursor:pointer;user-select:none}
table.games thead th.sortable:hover{color:var(--text)}
table.games thead th .arrow{color:var(--accent);margin-left:2px}
table.games tbody tr:hover td{background:var(--surface)}
table.games tbody tr:last-child td{border-bottom:0}
td.cover-cell{width:64px;padding-right:0}
.cover{display:block;width:52px;height:52px;border-radius:9px;object-fit:cover;background:var(--surface-2);border:1px solid var(--border)}
.rank-pill{display:none}
table.games td.f-rank{color:var(--text-3);width:52px}
table.games td.f-name{min-width:220px;padding-top:12px}
table.games td.f-name .game-name{font-family:var(--serif);font-weight:500;font-size:1.2rem;line-height:1.2;color:var(--text)}
table.games td.f-name .game-name:hover{color:var(--accent-ink)}
table.games td.f-name .year{color:var(--text-3);font-weight:400;margin-left:6px;font-size:.85rem}
table.games td.f-hook{min-width:220px;max-width:42ch;color:var(--text-2);font-size:.88rem;line-height:1.45}
.hook-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
table.games td.f-price{min-width:180px}
td.f-price a{font-weight:600;font-size:1.02rem;font-variant-numeric:tabular-nums;color:var(--text)}
/* Store prices are links out to the shop: underlined, with an ↗ after the amount, so they read as leaving the page. */
a.out{text-decoration:underline;text-decoration-color:var(--border-strong);text-decoration-thickness:1px;text-underline-offset:3px}
a.out::after{content:"\2197";display:inline-block;margin-left:.25em;font-size:.72em;font-weight:500;color:var(--accent-ink);vertical-align:.15em}
td.f-price a:hover,a.out:hover{color:var(--accent-ink);text-decoration-color:var(--accent-ink)}
td small.store .copy{color:var(--warn);font-weight:600}
/* The Board Games India line sits under the pick inside the Price cell, on desktop and phone alike. */
td.f-price .orig-line{display:block;margin-top:6px;padding-top:6px;border-top:1px dashed var(--border)}
td.f-price .orig-line a{font-size:.98rem}
td.f-price .orig-line.none{color:var(--text-3);font-size:.85rem}
td small{display:block;color:var(--text-2);font-size:.82rem;line-height:1.4}
td small.store{color:var(--text-2)}
td small.note{color:var(--warn)}
td small.minor{color:var(--text-3)}
td small.stock.in{color:var(--good)}
td small.stock.pre{color:var(--warn)}
td small.stock.out,td small.stock.unk{color:var(--text-3)}
td.empty-offer{color:var(--text-3)}
td .k{display:none}
table.games td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.score[title]{text-decoration:underline dotted var(--text-3);text-underline-offset:3px;cursor:help}
/* Marks: owned box, + list, hide */
td.marks{white-space:nowrap;width:150px}
td.marks>*{vertical-align:middle}
.owned-chip{display:inline-flex;align-items:center;gap:8px;cursor:pointer;margin-right:4px}
.owned-label,.list-name{display:none}
.list-toggle,.hide-toggle{font:inherit;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-2);cursor:pointer;min-height:32px;padding:0 10px;font-size:.85rem;line-height:1;margin-left:4px;display:inline-flex;align-items:center;gap:5px}
.list-toggle:hover,.hide-toggle:hover{border-color:var(--border-strong);color:var(--text)}
.list-toggle{min-width:32px;padding:0 9px}
.list-toggle .sym{font-weight:700;font-size:1rem}
.list-toggle[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.hide-toggle[aria-pressed=true]{background:var(--text-2);border-color:var(--text-2);color:var(--bg)}
tr.is-hidden td.f-name .game-name{color:var(--text-3)}
tr.is-owned td.f-name .game-name::after{content:"Owned";font-family:'Inter',sans-serif;font-size:.68rem;font-weight:600;color:var(--good);border:1px solid currentColor;border-radius:999px;padding:1px 7px;margin-left:8px;vertical-align:middle;letter-spacing:.01em}
/* Reorder controls: shown only while a list tab is selected (table.reorderable). */
.reorder{display:none;align-items:center;gap:2px;margin-left:6px;vertical-align:middle}
table.games.reorderable .reorder{display:inline-flex}
.move-up,.move-down{font:inherit;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer;min-width:32px;min-height:32px;padding:0;font-size:.95rem;line-height:1}
.move-up:hover,.move-down:hover{background:var(--surface-2)}
.drag-handle{cursor:grab;color:var(--text-3);padding:0 4px 0 6px;font-size:1.05rem;user-select:none;letter-spacing:-3px}
.drag-handle:active{cursor:grabbing}
tr.dragging td{opacity:.45}
tr.drop-before td{box-shadow:inset 0 3px 0 var(--accent)}
tr.drop-after td{box-shadow:inset 0 -3px 0 var(--accent)}

/* ===== Method ===== */
.method{margin-top:48px;max-width:90ch;color:var(--text-2);font-size:.95rem}
.method h2{color:var(--text)}
.method p{margin:10px 0}
.downloads{margin-top:14px}

/* ===== Account page ===== */
.account{max-width:600px}
.account h1{margin-top:14px}
.account h2{margin-top:36px;padding-top:22px;border-top:1px solid var(--border)}
.account .form{display:flex;flex-direction:column;gap:12px;margin:18px 0}
.account label{display:flex;flex-direction:column;gap:5px;color:var(--text-2);font-size:.92rem}
.account .form-actions label{flex-direction:row;align-items:center;font-size:inherit}
.account label.file-button{color:var(--text)}
.account .form>label>input{width:100%}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0}
.form-actions input[type=text]{flex:1 1 240px;min-width:0}
.dialog{border:1px solid var(--border);border-radius:18px;padding:24px;background:var(--surface);color:var(--text);max-width:min(560px,92vw);box-shadow:var(--shadow)}
.dialog::backdrop{background:rgba(20,12,8,.45)}
.dialog h2{margin:0 0 6px}
.dialog p{margin:4px 0 10px;color:var(--text-2)}

/* ===== Phone: the games are the surface; chrome is search, one rail, tabs ===== */
@media (max-width:760px){
  /* Only vertical scrolling on phones: the page clips sideways overflow and the body ignores horizontal pans; the scope tabs keep their own sideways scroll [Sora L4123]. */
  html{overflow-x:hidden;overscroll-behavior-x:none}
  body{touch-action:pan-y pinch-zoom;max-width:100vw}
  .tabs{touch-action:pan-x pan-y}
  /* Compact bar once scrolled: search and sort share one row with Filters and the menu; Share and the status line step aside. */
  html.compact .controls{padding-top:6px;margin:0 -14px;padding-left:14px;padding-right:14px}
  html.compact .toolbar{flex-wrap:nowrap;gap:6px;margin-bottom:6px}
  html.compact .search-wrap{flex:1 1 40%;min-width:0}
  html.compact .search-wrap input{height:40px;padding-left:38px;font-size:.95rem}
  html.compact .search-wrap svg{left:12px;width:16px;height:16px}
  html.compact .rail{flex:1 1 60%;grid-template-columns:minmax(118px,1fr) auto auto;gap:6px}
  html.compact #share{display:none}
  html.compact .sort-wrap select,html.compact .toolbar .button{height:40px;padding:0 10px;font-size:.92rem}
  html.compact .sort-wrap select{padding-right:26px;background-position:right 8px center}
  html.compact .status{display:none}
  html.compact .tabs{margin-bottom:0}
  .desktop-only{display:none!important}
  .topbar{height:56px;padding:0 14px;gap:8px}
  .mark{width:26px;height:26px}
  .wordmark{font-size:1.08rem}
  .icon-button{width:38px;height:38px}
  .account-link{height:38px;padding:0 12px 0 5px}
  .account-link .account-name{max-width:72px;font-size:.92rem}
  .avatar{width:26px;height:26px;font-size:.78rem}
  main{padding:2px 14px 32px}
  .long{display:none}
  h1{font-size:1.6rem}
  .intro{margin:8px 0 14px}
  .lede{font-size:.95rem;margin-top:4px}
  .banner{margin:-4px 0 12px;font-size:.92rem}
  .toolbar{margin:4px 0 8px;gap:8px}
  .search-wrap{flex:1 1 100%;max-width:none}
  .rail{flex:1 1 100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px}
  .rail-end{display:contents}
  .sort-wrap{min-width:0;display:flex}
  .sort-wrap select{width:100%;max-width:none}
  .toolbar .button{padding:0 13px}
  #share{width:42px;padding:0}
  .menu{right:0;min-width:230px}
  .tabs{margin:0 -14px 2px;padding:2px 14px}
  .tab{min-height:36px;padding:0 12px}
  .status{margin:0 0 10px;gap:6px 10px;min-height:30px}
  .chips-row .chip{flex:none}
  .panel{padding:14px;border-radius:14px;margin-bottom:10px}
  .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feedback{padding:12px}
  .method{font-size:.92rem;margin-top:32px}
  /* Cards: cover beside the eyebrow, name and description; price line; stats three across; actions */
  .table-scroll{overflow:visible}
  table.games,table.games tbody{display:block;width:100%}
  table.games thead{display:none}
  /* Every field has a fixed slot in the card; hiding one leaves its slot empty instead of reflowing the rest [Sora L4123]. */
  table.games tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"cover name name" "cover hook hook" "price price price" "avg geek learning" "depth weight rec" "best markup voters" "marks marks marks";gap:3px 8px;align-items:start;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:var(--shadow)}
  table.games tbody tr:hover td{background:none}
  table.games td{display:block;padding:0;border:0;min-width:0;max-width:none;width:auto;overflow-wrap:anywhere;font-size:1rem;line-height:1.45;white-space:normal}
  td.cover-cell{grid-area:cover;padding:0}
  td.f-avg{grid-area:avg}td.f-geek{grid-area:geek}td.f-learning{grid-area:learning}td.f-depth{grid-area:depth}td.f-weight{grid-area:weight}td.f-rec{grid-area:rec}td.f-best{grid-area:best}td.f-markup{grid-area:markup}td.f-voters{grid-area:voters}
  .cover{width:100%;height:auto;aspect-ratio:1/1;border-radius:12px}
  .rank-pill{display:inline-block;font-size:.8rem;font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums}
  table.games td.f-name{grid-area:name;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;padding:0}
  table.games td.f-name .rank-pill{order:0}
  table.games td.f-name .year{order:1;margin:0;font-size:.8rem;color:var(--text-3)}
  table.games td.f-name .game-name{order:2;flex:0 0 100%;font-size:1.3rem;line-height:1.15;margin-top:2px}
  table.games td.f-hook{grid-area:hook;color:var(--text-2);font-size:.9rem;line-height:1.4;max-width:none;margin-top:4px}
  table.games td.f-price{grid-area:price}
  table.games td.marks{grid-area:marks}
  table.games td.f-price{margin-top:8px;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px}
  td.f-price a{font-size:1.35rem;font-weight:700;letter-spacing:-.01em}
  td.f-price small{display:inline;font-size:.92rem}
  td.f-price small.minor{display:none}
  td.f-price .orig-line{flex:0 0 100%;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;margin-top:4px;padding-top:6px}
  td.f-price .orig-line a{font-size:1rem;font-weight:600;color:var(--text)}
  td.f-price .orig-line.none{font-size:.9rem}
  table.games td.empty-offer{color:var(--text-3);font-size:.95rem;margin-top:8px}
  table.games td.stat{display:flex;align-items:baseline;gap:4px;font-size:.88rem;line-height:1.3;margin-top:8px;white-space:normal}
  table.games td.stat.f-rank{display:none}
  td.stat .v{font-weight:600;font-variant-numeric:tabular-nums}
  td.stat .k{display:inline;font-size:.78rem;color:var(--text-3)}
  td.stat .score[title]{text-decoration:none;cursor:default}
  td.stat a{color:var(--accent-ink)}
  table.games td.marks{display:flex;gap:8px;align-items:center;margin-top:10px;padding-top:12px;border-top:1px solid var(--border);white-space:nowrap;width:auto}
  .owned-chip{margin:0;min-height:44px;padding:0 13px 0 9px;border:1px solid var(--border);border-radius:999px;background:var(--surface)}
  /* While a list is arranged, ↑ ↓ join the row: the tab already names the list, so the + chip drops the name. */
  table.games.reorderable .list-toggle .list-name{display:none}
  table.games.reorderable .list-toggle{padding:0 14px}
  .owned-chip input{width:20px;height:20px;margin:0}
  .owned-label,.list-name{display:inline}
  .owned-label{font-size:.95rem;color:var(--text-2)}
  td.marks button{margin:0;min-height:44px;padding:0 16px;font-size:.95rem;border-radius:999px}
  .list-toggle{padding:0 16px 0 13px}
  .list-toggle .list-name{font-weight:500}
  td.marks .reorder{margin-left:auto;gap:4px}
  .move-up,.move-down{min-width:44px;border-radius:999px}
  .drag-handle{display:none}
  .footer{font-size:.85rem;padding:18px 14px}
  .account .form-actions>.button,.account .form-actions>.file-button{flex:1 1 140px;justify-content:center}
  .account .form-actions .select-wrap{flex:1 1 100%}
  .account .select-wrap select{flex:1;min-width:0}
  .dialog{padding:18px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
