@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url('fonts/pixelify-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }

/* Same colors as the editor, so the site and the app feel like one thing. */
:root {
  --bg: #1b2130;
  --bg-deep: #141926;
  --panel: #262e42;
  --panel-2: #313a52;
  --ink: #ece6d6;
  --muted: #a6aec1;
  --accent: #f2b134;
  --accent-ink: #1b2130;
  --sky: #6fb3e8;
  --grass: #7cc35b;
  --line: #3b4560;
  --danger: #e5655a;
  --ok: #7cc35b;
  --radius: 10px;
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Pixelify Sans', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:hover { color: #ffc95a; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: clamp(38px, 10vw, 72px); }
h2 { font-size: clamp(30px, 7vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Wordmark, drawn the same way as the editor's title. */
.logo { font: 700 22px/1 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { display: inline-block; width: .5em; height: .5em; margin-left: .14em; background: var(--accent); box-shadow: .5em -.5em 0 var(--accent); vertical-align: .1em; }
.logo:hover { color: var(--ink); }

/* Buttons have a hard pixel shadow that they press into. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink);
  font: 700 17px/1.1 var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--bg-deep);
  transition: transform .08s, box-shadow .08s; }
.btn:hover { color: var(--ink); border-color: #4d5a7c; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bg-deep); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 #a5741a; }
.btn.primary:active { box-shadow: 0 1px 0 #a5741a; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(27, 33, 48, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.top nav { margin-left: auto; }
.menu-btn { margin-left: auto; width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 2px solid var(--line);
  border-radius: 8px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.top.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-links a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { margin-top: 8px; }
@media (min-width: 860px) {
  .menu-btn { display: none; }
  .nav-links, .top.open .nav-links { display: flex; flex-direction: row; align-items: center; gap: 4px; position: static; padding: 0; border: 0; background: none; }
  .nav-links a { padding: 8px 10px; }
  .nav-links .btn { margin: 0 0 0 8px; }
}

/* Hero */
.hero { padding: 40px 0 24px; background: linear-gradient(var(--bg-deep), var(--bg)); }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.cta-row .btn { flex: 1 1 200px; }
@media (min-width: 600px) { .cta-row .btn { flex: 0 0 auto; } }
.fine { font-size: 15px; color: var(--muted); }
.hero-shots { position: relative; margin-top: 28px; }
.frame { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-deep); box-shadow: 0 8px 0 var(--bg-deep); }
.hero-phone { display: none; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
  .hero-shots { margin-top: 0; }
  .hero-phone { display: block; position: absolute; right: -12px; bottom: -36px; width: 25%; border-radius: 18px; border-width: 3px; }
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-deep); }
.kicker { font: 700 15px/1 var(--display); color: var(--grass); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.intro { max-width: 40em; font-size: 18px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid.four { grid-template-columns: 1fr 1fr; } }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .shot { margin: -20px -20px 16px; border-bottom: 2px solid var(--line); aspect-ratio: 16 / 8; object-fit: cover; width: calc(100% + 40px); max-width: none; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 16px; left: 20px; width: 28px; height: 28px;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 16px/1 var(--display); border-radius: 4px; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split.flip > :first-child { order: 2; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; background: var(--grass); }

/* Little labels for lists of things, like materials or weather. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.chips li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 15px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font: 700 30px/1.1 var(--display); color: var(--accent); }
.stat span { font-size: 15px; color: var(--muted); }

details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 4px; gap: 4px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); margin: 8px 0 24px; }
.billing-toggle button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 700 16px var(--font); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.billing-toggle small { font-weight: 400; }
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.plan.best { border-color: var(--accent); box-shadow: 0 6px 0 #a5741a; }
.plan .tag { align-self: flex-start; font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: 1px; background: var(--accent);
  color: var(--accent-ink); padding: 6px 8px; border-radius: 4px; margin-bottom: 12px; }
.plan h3 { font-size: 26px; margin-bottom: 4px; }
.price { font: 700 44px/1 var(--display); margin: 12px 0 4px; }
.price small { font: 400 17px var(--font); color: var(--muted); }
.price-note { min-height: 1.5em; font-size: 15px; color: var(--grass); margin-bottom: 16px; }
.plan .ticks { flex: 1; }
.plan .ticks li.no { color: var(--muted); }
.plan .ticks li.no::before { background: none; border: 2px solid var(--line); width: 10px; height: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 700 26px/1 var(--display); color: var(--accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); max-width: 46em; }

.final { text-align: center; }
.final .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .copy { width: 100%; }

/* Forms, used on the account page */
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg-deep);
  color: var(--ink); font: 17px var(--font); }
.field input:focus { border-color: var(--accent); outline: none; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.tabs button { flex: 1; min-height: 48px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--muted);
  font: 700 17px var(--font); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: var(--panel-2); border-left: 4px solid var(--sky); }
.notice.error { border-left-color: var(--danger); }
.notice.good { border-left-color: var(--ok); }

/* Legal pages */
.prose { max-width: 46em; }
.prose h1 { font-size: clamp(32px, 8vw, 48px); }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }

/* Games pages */
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(34px, 8vw, 56px); }
.games-tools { display: grid; gap: 12px; margin-bottom: 20px; }
.sort-tabs { display: flex; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); overflow-x: auto; scrollbar-width: none; }
.sort-tabs::-webkit-scrollbar { display: none; }
.sort-tabs button { flex: 1 0 auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 8px; background: none; color: var(--ink);
  font: 700 16px var(--font); cursor: pointer; white-space: nowrap; }
.sort-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tag-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: none; }
.tag-row::-webkit-scrollbar { display: none; }
.tag-row button { flex: 0 0 auto; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  color: var(--ink); font: 15px var(--font); cursor: pointer; }
.tag-row button[aria-pressed="true"] { border-color: var(--grass); background: var(--grass); color: var(--accent-ink); font-weight: 700; }
.search { position: relative; }
.search input { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg-deep);
  color: var(--ink); font: 17px var(--font); }
.search input:focus { border-color: var(--accent); outline: none; }
@media (min-width: 860px) {
  .games-tools { grid-template-columns: auto 1fr; align-items: center; }
  .games-tools .tag-row { grid-column: 1 / -1; grid-row: 2; margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .games-tools .search { justify-self: end; width: 100%; max-width: 320px; }
}

.game-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.game-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .1s, transform .1s; }
.game-card:hover { border-color: #4d5a7c; }
.game-card:focus-within { border-color: var(--accent); }
.game-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); border-bottom: 2px solid var(--line); }
.game-cover.blank { display: grid; place-items: center; font: 700 56px/1 var(--display); color: var(--line);
  background: repeating-linear-gradient(45deg, var(--bg-deep) 0 12px, var(--bg) 12px 24px); }
.game-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.game-card h3 { font-size: 21px; margin: 0; overflow-wrap: anywhere; }
.game-card h3 a { color: var(--ink); text-decoration: none; }
/* The title link covers the whole card, and the maker link sits above it. */
.card-link::after { content: ''; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.game-card .by { position: relative; z-index: 1; margin: 0; font-size: 15px; color: var(--muted); }
.game-card .tagline { margin: 4px 0 0; font-size: 15px; }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: auto 0 0; padding-top: 8px; font-size: 15px; }
.chips.small { margin: 6px 0 0; gap: 6px; }
.chips.small li { padding: 2px 8px; font-size: 13px; }
.load-more { display: flex; justify-content: center; margin: 24px 0 0; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* Stars: a grey row with a gold row on top, cut to the average. */
.stars { position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; color: var(--line); }
.stars::before { content: '\2605\2605\2605\2605\2605'; }
.stars::after { content: '\2605\2605\2605\2605\2605'; position: absolute; left: 0; top: 0; width: var(--fill, 0%); overflow: hidden; color: var(--accent); white-space: nowrap; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; }

/* One game */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep) center / cover no-repeat; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .play-btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; min-height: 56px; font-size: 20px; padding: 14px 28px; }
.player.empty-player { display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); }
.player.max { position: fixed; inset: 0; z-index: 100; aspect-ratio: auto; border: 0; border-radius: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: #000; }
.player.max .player-exit { display: inline-flex; }
.player-exit { display: none; position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); z-index: 2; }
body.player-open { overflow: hidden; }
.player-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.player-bar .btn { flex: 1 1 140px; }
@media (min-width: 600px) { .player-bar .btn { flex: 0 0 auto; } }
.game-layout { display: grid; gap: 28px; padding: 20px 0 56px; }
@media (min-width: 980px) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .game-layout .side { grid-column: 2; grid-row: 1 / span 2; }
  .game-comments { grid-column: 1; }
}
.game-comments { margin-top: 12px; }
.game-title h1 { font-size: clamp(30px, 7vw, 46px); margin: 0 0 6px; overflow-wrap: anywhere; }
.game-title .by { margin: 0 0 10px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.description { white-space: pre-line; overflow-wrap: anywhere; }
.side { display: grid; gap: 16px; }
.side h2 { font-size: 22px; margin-bottom: 10px; }
/* The stars are in the page from 5 down to 1 and shown the other way round, so hovering one
   can light it and every star before it. */
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate button { width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--line); font-size: 34px; line-height: 1; cursor: pointer; }
.rate button.on { color: var(--accent); }
.rate button:disabled { cursor: default; }
@media (hover: hover) {
  .rate:not(.locked):hover button { color: var(--line); }
  .rate:not(.locked) button:hover, .rate:not(.locked) button:hover ~ button { color: #ffc95a; }
}
.owner-note { border-left-color: var(--accent); }

.comment-form textarea, .field textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px;
  background: var(--bg-deep); color: var(--ink); font: 17px/1.45 var(--font); resize: vertical; }
.comment-form textarea:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.comments { list-style: none; padding: 0; margin: 16px 0 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.comment-head a { font-weight: 700; color: var(--ink); }
.comment-head time { font-size: 14px; color: var(--muted); }
.comment p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 16px; margin-top: 6px; font-size: 14px; }
.comment-actions .link-btn { color: var(--muted); min-height: 32px; }

/* Profiles */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 32px 0 20px; }
.avatar { flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
  font: 700 36px/1 var(--display); text-transform: uppercase; }
.profile-head h1 { font-size: clamp(30px, 7vw, 46px); margin: 0; overflow-wrap: anywhere; }
.profile-head p { margin: 2px 0 0; color: var(--muted); }
.bio { max-width: 40em; white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 24px; }

/* My games */
.field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg-deep);
  color: var(--ink); font: 17px var(--font); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.tag-picks legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.tag-picks label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-deep); cursor: pointer; font-size: 15px; }
.tag-picks input { accent-color: var(--grass); width: 18px; height: 18px; margin: 0; }
.my-game { margin-bottom: 16px; padding: 0; overflow: hidden; }
.my-game > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; min-height: 64px; }
.my-game > summary::-webkit-details-marker { display: none; }
.my-game > summary img, .my-game > summary .thumb { flex: 0 0 auto; width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--bg-deep); }
.my-game > summary b { display: block; overflow-wrap: anywhere; }
.my-game > summary span { font-size: 14px; color: var(--muted); }
.my-game[open] > summary { border-bottom: 2px solid var(--line); }
.my-game-body { padding: 16px; }
.state { display: inline-block; padding: 2px 8px; border-radius: 4px; font: 700 12px/1.4 var(--font); text-transform: uppercase; letter-spacing: .5px;
  background: var(--panel-2); color: var(--muted); }
.state.live { background: var(--grass); color: var(--accent-ink); }
.state.off { background: var(--danger); color: var(--accent-ink); }
.upload-box { display: grid; gap: 8px; padding: 14px; margin-bottom: 14px; border: 2px dashed var(--line); border-radius: 10px; }
.upload-box p { margin: 0; }
.upload-box .cover-preview { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.progress { height: 8px; border-radius: 4px; background: var(--bg-deep); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 14px; font-weight: 700; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--grass); margin: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button-row .btn { flex: 1 1 160px; }
@media (min-width: 600px) { .button-row .btn { flex: 0 0 auto; } }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { color: var(--ink); background: var(--danger); }
.report-item { margin-bottom: 12px; }
.report-item blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); white-space: pre-line; overflow-wrap: anywhere; }

dialog.sheet { width: min(100% - 32px, 480px); padding: 20px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(10, 12, 20, .6); }
dialog.sheet h2 { font-size: 24px; }

/* Screenshots from the templates: two across on phones, three on wide screens. */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { margin: 0; }
.gallery .frame { box-shadow: 0 4px 0 var(--bg-deep); }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
