/* Single-game pages and the /games index. Same tokens as the main page (graphite, ivory, wine; Geologica + Onest). */
/* Stand-ins with the web fonts' widths (measured), so text wraps the same before and after the fonts arrive. */
@font-face { font-family: "Onest Fallback"; src: local("Arial"); size-adjust: 106.2%; }
@font-face { font-family: "Geologica Fallback"; src: local("Arial"); size-adjust: 103.5%; }
:root { --bg: #141110; --bg-2: #1e1a18; --fg: #efe6da; --fg-2: rgba(239,230,218,0.72); --fg-3: rgba(239,230,218,0.58); --line: rgba(239,230,218,0.12); --wine: #8e2335; --accent: #b8404f; --paper: #f1e9dd;
  --display: "Geologica", "Geologica Fallback", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; --body: "Onest", "Onest Fallback", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; --max: 1160px; color-scheme: dark; }
* { box-sizing: border-box; }
::selection { background: rgba(142,35,53,0.75); color: #efe6da; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; } a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; } p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }

/* header, footer: as on the main page */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(20,17,16,0.92); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 18px/1 var(--display); letter-spacing: -0.025em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .wm { display: inline-flex; height: 23px; align-items: center; } .brand .w1::before { content: "Sommel"; } .brand .w2::before { content: "er"; }
.brand .i { position: relative; display: inline-block; } .brand .i::before { content: "\0131"; }
.brand .i::after { content: ""; position: absolute; left: 50%; top: 0.03em; width: 0.2em; height: 0.2em; transform: translateX(-50%); border-radius: 0.04em; background: var(--accent); }
.nav-links { display: flex; gap: 24px; font-size: 15px; } .nav-links a { color: var(--fg-2); text-decoration: none; } .nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
.nav-right { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--body); background: var(--fg); color: #141110; border: 0; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #f7f0e6; transform: translateY(-1px); } .btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); } .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg-3); background: transparent; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--fg-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; } footer a { text-decoration: none; } footer a:hover { color: var(--fg); } footer .r { margin-left: auto; }
.link { border-bottom: 1px solid var(--fg-3); padding-bottom: 1px; text-decoration: none; } .link:hover { border-color: var(--fg); }

/* verdict marks: one sprite, colour from the status */
.v { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .v svg { width: 1.15em; height: 1.15em; flex: none; }
.v.works, .v.likely { color: var(--fg); } .v.unknown { color: var(--fg-2); } .v.wont { color: #d9697a; }

/* hero */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--fg-3); list-style: none; margin: 0 0 22px; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; } .crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.ghero { position: relative; isolation: isolate; overflow: clip; }
.ghero .art { position: absolute; inset: 0; z-index: -2; } .ghero .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ghero.no .art img { filter: grayscale(.85) brightness(.8); }
.ghero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,17,16,0.96) 0%, rgba(20,17,16,0.84) 46%, rgba(20,17,16,0.5) 100%), linear-gradient(to bottom, rgba(20,17,16,0.2), var(--bg)); }
.ghero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); }
.ghero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; max-width: 14em; }
.answer { margin-top: 26px; display: grid; gap: 10px; max-width: 34em; }
.answer .v { font-size: clamp(20px, 2.2vw, 26px); font-family: var(--display); letter-spacing: -0.02em; }
.answer p { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.checked { margin-top: 18px; font-size: 14px; color: var(--fg-3); }
.cover { justify-self: end; width: min(100%, 300px); border-radius: 14px; box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgba(255,255,255,0.08); }
.ghero.no .cover { filter: grayscale(.9); }

/* sections */
.gsec { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.gsec .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.gsec h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.12; }
.gsec .body { display: grid; gap: 16px; color: var(--fg-2); max-width: 40em; } .gsec .body p { color: var(--fg-2); } .gsec .body b { color: var(--fg); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; } .facts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--line); } .facts li > span:first-child { color: var(--fg-3); } .facts li > span:last-child { color: var(--fg); }
.facts .no { color: #d9697a !important; }
table.spec { width: 100%; border-collapse: collapse; font-size: 16px; } .spec th, .spec td { padding: 13px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); } .spec th { color: var(--fg-3); font-weight: 400; width: 34%; padding-right: 16px; } .spec td { color: var(--fg); }
.spec .mute { color: var(--fg-3); }
.spec .ex { color: #f5b86a; font-size: 13px; }
.gsec .body > div > p + p { margin-top: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; } .stores li { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); } .stores svg { width: 18px; height: 18px; color: var(--fg-2); }
.stores a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-bottom: 1px solid var(--fg-3); padding-bottom: 1px; }

/* games like this */
.more { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; list-style: none; margin: 0; padding: 0; }
.more.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more a { display: grid; gap: 6px; text-decoration: none; }
.more img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 16px 28px -18px #000; transition: transform .3s; } .more a:hover img { transform: translateY(-5px); }
.more b { font: 600 14px/1.25 var(--body); } .more .v { font-size: 13px; }
.gsec.alt .wrap { grid-template-columns: 1fr; } .gsec.alt .head { display: grid; gap: 10px; max-width: 44em; margin-bottom: 26px; } .gsec.alt .head p { color: var(--fg-2); }

/* FAQ */
details { border-top: 1px solid var(--line); } details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; } summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 400 26px/1 var(--body); transition: transform .25s; } details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--fg-2); max-width: 38em; }

/* closing call to action */
.gcta { position: relative; isolation: isolate; overflow: clip; border-top: 1px solid var(--line); }
.gcta .art { position: absolute; inset: 0; z-index: -2; } .gcta .art img { width: 100%; height: 100%; object-fit: cover; } .gcta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,17,16,0.78); }
.gcta .wrap { padding-block: clamp(56px, 8vw, 110px); display: grid; gap: 22px; justify-items: start; } .gcta h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; max-width: 16em; } .gcta p { color: var(--fg-2); max-width: 34em; font-size: 18px; }
.gcta .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* /games index */
.idx-head { padding-block: clamp(36px, 5vw, 64px) 28px; } .idx-head h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; max-width: 14em; } .idx-head p { margin-top: 16px; color: var(--fg-2); max-width: 40em; font-size: 19px; }
.tools { display: grid; gap: 16px; padding-bottom: 22px; }
.search { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); } .search:focus-within { border-color: rgba(239,230,218,0.4); }
.search svg { width: 19px; height: 19px; color: var(--fg-3); flex: none; } .search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--fg); font: 500 17px/1 var(--body); } .search input::placeholder { color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); font: 500 14.5px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--fg-3); } .chip[aria-pressed="true"] { background: var(--fg); color: #141110; border-color: var(--fg); } .chip .n { opacity: .85; font-variant-numeric: tabular-nums; }
.az { display: flex; flex-wrap: wrap; gap: 4px 2px; list-style: none; padding: 0; margin: 0; font-size: 14px; } .az a { display: block; min-width: 28px; padding: 6px 8px; text-align: center; border-radius: 6px; text-decoration: none; color: var(--fg-3); } .az a:hover { color: var(--fg); background: rgba(239,230,218,0.08); }
.glist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.glist li { border-top: 1px solid var(--line); } .glist li[hidden] { display: none; }
.grow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 12px 0; text-decoration: none; } .grow:hover b { text-decoration: underline; text-underline-offset: 3px; }
.grow img { grid-row: span 2; width: 44px; height: 66px; object-fit: cover; border-radius: 6px; } .grow b { font: 600 16px/1.25 var(--body); align-self: end; } .grow .v { font-size: 13.5px; font-weight: 500; align-self: start; }
.letter { grid-column: 1 / -1; padding: 28px 0 8px; font: 600 14px/1 var(--display); color: var(--accent); border-top: 0 !important; } .letter:first-child { padding-top: 6px; }
.none { padding: 28px 0; color: var(--fg-2); } .count { color: var(--fg-3); font-size: 14px; }

/* the mockup only: a ribbon, and ?dev shows what comes from data */
.mock { background: #3a1d22; color: #f1d9dc; font-size: 13px; text-align: center; padding: 8px 12px; } .mock b { color: #fff; }
body.dev [data-f] { outline: 1px dashed #e8a1aa; outline-offset: 2px; position: relative; } body.dev [data-f]:hover::after { content: attr(data-f); position: absolute; left: 0; top: -22px; z-index: 50; padding: 2px 7px; border-radius: 5px; background: #e8a1aa; color: #1a0a0d; font: 600 11px/1.4 ui-monospace, monospace; white-space: nowrap; }
body.dev [data-new]::before { content: "new field"; position: absolute; right: 0; top: -16px; font: 600 10px/1 ui-monospace, monospace; color: #f5b86a; }

@media (max-width: 900px) { .nav-links { display: none; } .nav-right { margin-left: auto; }
  .ghero .wrap { grid-template-columns: 1fr; align-items: start; } .cover { justify-self: start; width: 140px; }
  .gsec .wrap { grid-template-columns: 1fr; gap: 20px; } .more { grid-template-columns: repeat(3, minmax(0, 1fr)); } .more.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glist { grid-template-columns: 1fr 1fr; } .facts li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 560px) { .glist { grid-template-columns: 1fr; } .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec th { width: 40%; } }
