@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/static/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/static/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  --cobalt: #2438e8;
  --amber: #ffb238;
  --coral: #ff6b5e;
  --lime: #c8ff2e;
  --navy: #10142b;
  /* The same bright scheme as sevenstudios.io (src/styles/global.css in the website repo). */
  --bg: #f3f5fa;
  --surface: #ffffff;
  --line: #dfe3ee;
  --text: #10142b;
  --muted: #4a5068;
  --ghost: #e6e9f2;
  --accent: #2438e8;
  --on-accent: #ffffff;
  --link: #2438e8;
  --inverse: #10142b;
  --on-inverse: #ffffff;
  --inverse-muted: #c9cde6;
  --deep: #10142b;
  --control: #ffffff;
  --control-line: #dfe3ee;
  --display: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  --body: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 28px;
  --btn-radius: 999px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ok: #0f7a3d;
  --ok-bg: #e5f7ec;
  --warn: #8a5300;
  --warn-bg: #fff4dc;
  --bad: #a3271a;
  --bad-bg: #fff0ee;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.skip:focus { top: 12px; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 250, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 22px; height: 22px; }
.wordmark b { font-weight: 800; }
.wordmark small { font-family: var(--body); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: #fff; letter-spacing: 0.04em; }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.mainnav a { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--muted); }
.mainnav a:hover { color: var(--text); background: var(--ghost); }
.mainnav a[aria-current='page'] { background: var(--navy); color: #fff; }

.foot { display: flex; gap: 18px; flex-wrap: wrap; padding-block: 36px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h1.display { font-size: clamp(34px, 5vw, 56px); margin: 36px 0 10px; }
h2.display { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--accent); margin-top: 36px; }
.eyebrow + h1.display { margin-top: 6px; }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono, code { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--ghost); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); margin-top: 22px; }
.panel.dark { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.panel.dark .muted { color: var(--inverse-muted); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 22px; }
.stack > * + * { margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 14px; margin-top: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 700; }
.stat.hi { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.stat.hi span { color: var(--inverse-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: var(--btn-radius); border: 2px solid transparent; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: var(--surface); border-color: #cfd5e4; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--inverse); color: var(--on-inverse); }
.btn-danger { background: var(--surface); border-color: #f0c2bc; color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }

label { display: block; font-weight: 800; font-size: 14px; margin-top: 14px; }
label .hint { display: block; font-weight: 500; color: var(--muted); }
input[type='text'], input[type='password'], input[type='email'], input[type='url'], input[type='number'], input[type='search'], select, textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 10px 14px; border: 2px solid var(--control-line); border-radius: 14px; background: var(--control); font: inherit; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input[type='file'] { display: block; margin-top: 8px; font: inherit; max-width: 100%; }
textarea { min-height: 90px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form label { margin-top: 0; flex: 1 1 160px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0 calc(-1 * clamp(18px, 3vw, 30px)); padding: 0 clamp(18px, 3vw, 30px); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { font-weight: 700; color: var(--accent); }
.empty { color: var(--muted); padding: 18px 0 4px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--ghost); color: var(--muted); white-space: nowrap; }
.s-live, .s-closed, .s-ok, .s-ready, .s-active.op, .s-rolled_back { background: var(--ok-bg); color: var(--ok); }
.s-active, .s-crediting, .s-debiting, .s-retry, .s-pending, .s-uploading, .s-draft, .s-rolling_back { background: var(--warn-bg); color: var(--warn); }
.s-failed, .s-rejected, .s-disabled, .s-suspended, .s-cancelled { background: var(--bad-bg); color: var(--bad); }

.alert { border-radius: 18px; padding: 14px 18px; margin-top: 18px; font-weight: 600; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.secret { font-family: var(--mono); background: var(--deep); color: var(--lime); padding: 12px 16px; border-radius: 14px; overflow-wrap: anywhere; margin-top: 8px; }

pre { background: var(--deep); color: #e8ebff; border-radius: 18px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.auth { max-width: 420px; margin: 8vh auto 0; }
.progress { height: 10px; border-radius: 999px; background: var(--ghost); overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.log { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; background: var(--ghost); border-radius: 14px; padding: 12px 14px; margin-top: 12px; max-height: 280px; overflow: auto; }

.hero { padding: clamp(36px, 7vw, 80px) 0 10px; }
.hero h1.display { font-size: clamp(42px, 7vw, 88px); margin: 8px 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 28px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.feature p { color: var(--muted); font-size: 15px; }
.chip { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
.docs nav { position: sticky; top: 90px; align-self: start; font-size: 14px; display: flex; flex-direction: column; gap: 2px; margin-top: 36px; }
.docs nav a { padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; }
.docs nav a:hover { background: var(--ghost); color: var(--text); }
.docs section { margin-top: 36px; }
.docs section h2 { scroll-margin-top: 90px; }
.docs p, .docs li { max-width: 78ch; }
.docs p + p, .docs p + pre, .docs pre + p, .docs ul + p, .docs p + ul, .docs table + p { margin-top: 12px; }
.docs .endpoint { font-family: var(--mono); font-weight: 700; background: var(--ghost); display: inline-block; padding: 4px 12px; border-radius: 10px; margin-top: 16px; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .docs nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

.casino-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 14px; }
.casino-head .eyebrow { margin-top: 0; }
.casino-head h1.display { font-size: clamp(28px, 3.4vw, 40px); margin: 2px 0 0; }
.casino-wallet { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 16px; }
.casino-wallet div { display: grid; line-height: 1.2; }
.casino-wallet b { font-size: 20px; font-variant-numeric: tabular-nums; }
.casino-wallet select { width: auto; margin: 0; min-height: 40px; }
.casino { display: grid; gap: 10px; }
.game-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.game-tabs button { min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.game-tabs button:hover { color: var(--text); border-color: var(--control-line); }
.game-tabs button[aria-current='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.casino .screen { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); min-height: 360px; background: var(--navy); border-radius: 20px; overflow: hidden; display: grid; place-items: center; color: #c9cde6; }
.casino iframe { width: 100%; height: 100%; border: 0; display: block; }
.casino-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.casino-bar .fault { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }
.casino-bar .fault select { width: auto; margin: 0; min-height: 36px; padding: 4px 10px; font-size: 14px; }
.casino-note { margin-top: 14px; max-width: 80ch; }
@media (max-width: 760px) {
  .casino .screen { aspect-ratio: auto; height: 82vh; max-height: none; min-height: 520px; }
  .casino-bar .fault { margin-left: 0; }
}
}
.round-id { font-size: clamp(20px, 3vw, 30px) !important; overflow-wrap: anywhere; }
.chip[data-c='cobalt'] { background: var(--cobalt); }
.chip[data-c='amber'] { background: var(--amber); }
.chip[data-c='coral'] { background: var(--coral); }
.chip[data-c='lime'] { background: var(--lime); }

/* ---------- Game versions ---------- */
.versions { display: grid; gap: 14px; }
.version { border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; background: var(--bg); }
.version.serving { border: 2px solid var(--ok); background: var(--surface); }
.version-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.version-head h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.version-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.version-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 14px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.version.serving .mode { background: var(--bg); }
.mode-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mode-top b { font-size: 15px; text-transform: capitalize; }
.mode-top span { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--ghost); padding: 1px 8px; border-radius: 999px; }
.mode-rtp { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.15; margin: 6px 0 8px; }
.mode-rtp small { font-family: var(--body); font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 6px; letter-spacing: 0.04em; }
.mode dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0; font-size: 13px; }
.mode dt { color: var(--muted); }
.mode dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mode.warn { border-color: #f0d49a; }
.mode.warn .mode-rtp { color: var(--warn); }

/* ---------- Submit a version ---------- */
.submit .panel-head { align-items: flex-start; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: step; flex-wrap: wrap; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--ghost); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); font-size: 11px; }
.steps li.on { background: var(--inverse); color: var(--on-inverse); }
.steps li.on::before { background: var(--amber); color: var(--navy); }
.steps li.done { background: var(--ok-bg); color: var(--ok); }
.steps li.done::before { content: '✓'; background: var(--ok); color: #fff; }
.drops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 6px 0 8px; }
.drop { position: relative; border: 2px dashed #c3cadc; border-radius: 22px; background: var(--bg); min-height: 210px; padding: 22px; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; display: flex; }
.drop:hover, .drop:focus-visible { border-color: var(--accent); background: #eef0ff; }
.drop.over { border-color: var(--accent); border-style: solid; background: #e7eaff; transform: scale(1.01); }
.drop.ok { border-style: solid; border-color: var(--ok); background: var(--surface); cursor: default; }
.drop.bad { border-style: solid; border-color: #e7a59c; background: var(--bad-bg); }
.drop.busy { cursor: progress; }
.drop-empty { margin: auto; display: grid; justify-items: center; text-align: center; gap: 6px; max-width: 34ch; }
.drop-empty b { font-size: 18px; }
.drop-empty span { color: var(--muted); font-size: 14px; }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--lime); margin-bottom: 4px; }
.drop-icon svg { width: 26px; height: 26px; }
#drop-front .drop-icon { color: var(--amber); }
.drop-cta { margin-top: 6px; font-weight: 800; color: var(--accent) !important; }
.drop-full { width: 100%; }
.file-row { display: flex; align-items: center; gap: 12px; }
.file-badge { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: var(--navy); color: #fff; }
.drop.ok .file-badge { background: var(--ok); }
.drop.bad .file-badge { background: var(--bad); }
.file-row div { min-width: 0; flex: 1; }
.file-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row span { font-size: 13px; color: var(--muted); }
.file-row button { flex: none; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks li::before { content: '✓'; color: var(--ok); font-weight: 900; }
.checks li.x::before { content: '✕'; color: var(--bad); }
.checks li.x { color: var(--bad); font-weight: 700; }
.drop .mode-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 12px; }
.drop .mode { padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.drop .mode-rtp { font-size: 24px; margin: 2px 0 4px; }
.tree { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 8px 12px; max-height: 112px; overflow: auto; }
.submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px 14px 20px; border-radius: 18px; background: var(--ghost); }
.submit-bar p { font-weight: 700; }
.submit-bar p.ready { color: var(--text); }
.upload-status { margin-top: 16px; }
.upload-line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.upload-status .progress { height: 14px; margin-top: 8px; }
.upload-status .progress span { background: linear-gradient(90deg, var(--cobalt), #5b6cff); }
.result { margin-top: 16px; border-radius: 22px; padding: 20px 22px; background: var(--inverse); color: var(--on-inverse); }
.result h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.result p { color: var(--inverse-muted); margin-top: 4px; }
.result .mode { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
.result .mode dt, .result .mode-top span, .result .mode-rtp small { color: var(--inverse-muted); }
.result .mode-top span { background: rgba(255, 255, 255, 0.1); }
.result.bad { background: var(--bad-bg); color: var(--bad); }
.result.bad p { color: var(--bad); }
.result .actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.how { margin-top: 16px; font-size: 14px; color: var(--muted); }
.how summary { cursor: pointer; font-weight: 800; color: var(--text); }
.how p { margin-top: 8px; }
.how a { color: var(--accent); }
.file-row .file-badge { color: #fff; font-size: 11px; }
.drop-empty .drop-icon { color: var(--lime); }

/* ---------- Links ---------- */
.eyebrow a, .lede a, p a, td a, .how a, .small a { color: var(--link); }
.alert a { color: inherit; text-decoration: underline; }

/* Review states */
.r-pending { background: var(--warn-bg); color: var(--warn); }
.r-approved { background: var(--ok-bg); color: var(--ok); }
.r-rejected { background: var(--bad-bg); color: var(--bad); }
.version-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; }
.version-actions form { margin: 0; }
.version-notes { margin-top: 8px; }
.review-note { margin-top: 12px; font-weight: 500; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.alert.todo { display: flex; gap: 8px; flex-wrap: wrap; }

/* Studio portal */
.auth.wide { max-width: 720px; }
.auth .panel { margin-top: 18px; }
.auth .actions a { font-weight: 700; }
.studio-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.studio-game { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.studio-game:hover { border-color: var(--accent); transform: translateY(-2px); }
.studio-game b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.journey div { border-radius: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); display: grid; gap: 2px; }
.journey b { color: var(--text); font-size: 15px; }
.journey span { font-size: 13px; }
.journey .on { border-color: var(--accent); }
.journey .on b::after { content: ' · now'; color: var(--accent); }
.journey .done { background: var(--ok-bg); border-color: transparent; }
.journey .done b::after { content: ' ✓'; color: var(--ok); }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } }

/* =====================================================================
   Signed-in areas (studio and RGS admin), styled after the sevenstudios.io admin:
   top bar with underline nav, big display headlines, navy ledger card, ruled section labels
   ===================================================================== */
body.app { display: block; background: var(--bg); }
.shell { display: block; min-height: 100vh; }
.app-top { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 250, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-top-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); height: 64px; display: flex; align-items: center; gap: 28px; }
.app-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; flex: none; }
.app-brand svg { width: 22px; height: 22px; }
.app-brand b { font-weight: 800; }
.app-brand small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.app-nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.app-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.app-nav a:hover { color: var(--text); background: var(--ghost); }
.app-nav a[aria-current='page'] { color: var(--text); }
.app-nav a[aria-current='page']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -10px; height: 3px; border-radius: 3px; background: var(--cobalt); }
.n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.acct { position: relative; margin-left: auto; flex: none; }
.acct summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 700; font-size: 15px; }
.acct summary::-webkit-details-marker { display: none; }
.acct .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(16, 20, 43, 0.16); display: grid; }
.acct-menu .role { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu .role b { display: block; color: var(--text); font-size: 14px; }
.acct-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; }
.acct-menu a:hover, .acct-menu a[aria-current='page'] { background: var(--ghost); }
.acct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.app-content { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px) 80px; }

/* Page heads: small cobalt line, big display title (with an optional cobalt highlight), actions right */
.app .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.app .page-head .eyebrow { margin: 0 0 8px; font-size: 14px; }
.app .page-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(34px, 4.4vw, 52px); }
.app .page-head h1 em { font-style: normal; color: var(--cobalt); }
.app .page-head .sub { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 70ch; }
.app .head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); text-decoration: none; margin-bottom: 6px; }
.crumb:hover { color: var(--cobalt); }
.status-line { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }

/* Shared pieces in the app use the site's sizes */
.app .btn { min-height: 46px; padding: 10px 22px; font-size: 15px; }
.app .btn-sm { min-height: 36px; padding: 6px 15px; font-size: 14px; }
.app .btn .ico { width: 17px; height: 17px; }
.app .panel { border: 1px solid #e6e8f1; border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 20, 43, 0.04), 0 8px 24px -16px rgba(16, 20, 43, 0.12); margin-top: 18px; }
.app h2.display { font-family: var(--body); font-size: 15px; font-weight: 800; letter-spacing: 0; margin: 0 0 12px; }
.app .alert { border-radius: 14px; margin: 0 0 18px; }
.app .note, .app .alert.warn { border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; background: #fff8ea; color: var(--text); font-weight: 500; }
.app .stats { margin-top: 0; }
.app .mode-rtp { font-size: 26px; }
.app input[type='text'], .app input[type='password'], .app input[type='email'], .app input[type='url'], .app input[type='number'], .app input[type='search'], .app select, .app textarea { min-height: 48px; border-width: 1.5px; border-color: #cfd5e4; border-radius: 14px; }
.app input:focus, .app select:focus, .app textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Navy ledger card (like the site's Pipeline) */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ledger { padding: 26px 26px 20px; border-radius: 28px; background: var(--navy); color: #fff; }
.ledger h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #c9cde6; }
.ledger dl { margin: 10px 0 0; }
.ledger dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.ledger dl > div:last-child { border-bottom: 0; }
.ledger dt { font-weight: 700; font-size: 15px; color: #dfe2f3; }
.ledger dt a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.ledger dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ledger dd.hi { color: var(--amber); }
.rule-top { margin-top: 26px; padding-top: 16px; border-top: 2px solid var(--text); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .dash { grid-template-columns: minmax(0, 1fr); } }

/* Section label with a rule (like NEW BRIEFS ------ All briefs) */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.section-title h2 { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.section-title a { font-weight: 800; font-size: 14px; color: var(--cobalt); text-decoration: none; }
.section-title + .card, .section-title + .versions, .section-title + .empty-line, .section-title + .checks-list, .section-title + .art-grid { margin-top: 18px; }
.empty-line { padding: 16px 2px; color: var(--muted); }

/* Big headline list rows (like the site's "needs you" list) */
.needs { list-style: none; margin: 0; padding: 0; }
.needs li { border-bottom: 1px solid var(--line); }
.needs a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; min-height: 64px; padding: 16px 4px; text-decoration: none; }
.needs a:hover .t { color: var(--cobalt); }
.needs .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.needs .tag::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.needs .tag.ok { color: var(--ok); } .needs .tag.go { color: var(--cobalt); } .needs .tag.wait { color: #8a5300; } .needs .tag.bad { color: var(--bad); } .needs .tag.todo { color: var(--muted); }
.needs .t { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; transition: color 0.15s; }
.needs .d { grid-column: 2; color: var(--muted); font-size: 15px; }
.needs .w { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-weight: 800; font-size: 15px; white-space: nowrap; }
.needs .w span { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .needs a { grid-template-columns: minmax(0, 1fr) auto; } .needs .tag, .needs .t { grid-column: 1; } .needs .d { grid-column: 1 / -1; } .needs .w { grid-column: 2; } }

/* White table card, as on the site's Games page */
.card { background: var(--surface); border: 1px solid #e6e8f1; border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 20, 43, 0.04), 0 8px 24px -16px rgba(16, 20, 43, 0.12); overflow: hidden; }
.card + .card { margin-top: 18px; }
.card-pad { padding: clamp(18px, 2.4vw, 28px); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 14px 18px; background: #fafbfd; border-bottom: 1px solid var(--line); font-weight: 800; white-space: nowrap; }
.tbl td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.rowlink { cursor: pointer; }
.tbl tr.rowlink:hover td { background: #fafbfd; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .name { font-weight: 700; color: var(--text); text-decoration: none; }
.tbl .sub { display: block; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 2px; }
.tbl .thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 18px; flex: none; }
.tbl .game-cell { display: flex; align-items: center; gap: 14px; }
.th-0 { background: var(--cobalt); } .th-1 { background: var(--amber); color: var(--navy) !important; } .th-2 { background: var(--coral); } .th-3 { background: var(--navy); }

/* Tabs: underline, as on the site's Briefs page */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 26px; overflow-x: auto; }
.tabs a { position: relative; padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current='page'] { color: var(--text); }
.tabs a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cobalt); }
.tab-count { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 700; }
.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state b { color: var(--text); font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.empty-state p { max-width: 46ch; }
.empty-state .btn { margin-top: 10px; }
.ico { width: 18px; height: 18px; flex: none; }
.ico.big { width: 30px; height: 30px; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 20px; background: var(--navy); color: #fff; margin-bottom: 26px; }
.next-step p { font-weight: 700; font-size: 17px; }
.next-step .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.steps-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 26px; counter-reset: s; border-top: 2px solid var(--text); padding-top: 18px; }
.steps-line div { position: relative; padding: 0 12px 0 40px; color: var(--muted); font-size: 14px; }
.steps-line div::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ghost); color: var(--muted); font-weight: 800; font-size: 13px; }
.steps-line b { display: block; color: var(--text); font-size: 15px; }
.steps-line .done::before { content: '✓'; background: var(--ok); color: #fff; }
.steps-line .on::before { background: var(--cobalt); color: #fff; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kv-grid div { padding: 16px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.kv-grid span { color: var(--muted); font-size: 13px; font-weight: 700; }
.kv-grid b { font-weight: 700; overflow-wrap: anywhere; }
.inline-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.inline-actions form { margin: 0; }
.kpis { display: none; }
@media (max-width: 760px) {
  .app-top-in { gap: 12px; }
  .app-brand span, .app-brand small { display: none; }
  .acct .name { display: none; }
  .steps-line { grid-template-columns: 1fr; gap: 12px; }
}

/* Dialogs */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(460px, 94vw); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(16, 20, 43, 0.25); }
dialog.modal::backdrop { background: rgba(16, 20, 43, 0.45); backdrop-filter: blur(2px); }
dialog.modal form { padding: 22px; }
dialog.modal h2 { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
dialog.modal p { margin-top: 6px; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Game player: pop-up with screen sizes, also used full-page by share links */
dialog.player { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; background: #0d1024; color: #fff; }
dialog.player::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog.player[open], .player-page { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.player-page { height: 100vh; background: #0d1024; color: #fff; }
.player-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.player-title { font-weight: 800; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.player-title svg { width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }
.seg button { border: 0; background: transparent; color: #c9cde6; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--navy); }
.player-actions { display: flex; gap: 8px; }
.player .btn-ghost, .player-page .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.player-stage { display: grid; place-items: center; padding: 18px; min-height: 0; overflow: auto; }
.device { background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5); transition: width 0.2s, height 0.2s; }
.device iframe { width: 100%; height: 100%; border: 0; display: block; }
.device[data-size='desktop'] { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; }
.device[data-size='tablet'] { width: min(100%, 820px, calc((100vh - 140px) * 3 / 4)); aspect-ratio: 3 / 4; border-radius: 22px; border: 10px solid #1c2140; }
.device[data-size='phone'] { width: min(100%, 390px, calc((100vh - 140px) * 9 / 19.5)); aspect-ratio: 9 / 19.5; border-radius: 34px; border: 10px solid #1c2140; }
.device[data-size='phone-land'] { width: min(100%, 844px, calc((100vh - 140px) * 19.5 / 9)); aspect-ratio: 19.5 / 9; border-radius: 34px; border: 10px solid #1c2140; }
.player-note { text-align: center; padding: 0 16px 10px; color: #a6add6 !important; min-height: 20px; }

/* Math report */
.math-modes summary { list-style: none; cursor: pointer; }
.math-modes summary::-webkit-details-marker { display: none; }
.math-row { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr) 0.8fr 20px; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.math-row.head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; }
.math-row b { text-transform: uppercase; }
.math-row .chev { transition: transform 0.15s; color: var(--muted); }
details[open] > summary .chev { transform: rotate(90deg); }
.math-detail { padding: 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--ghost); }
.split-bar span:nth-child(1) { background: #c9cee0; }
.split-bar span:nth-child(2) { background: #8a93b8; }
.split-bar span:nth-child(3) { background: var(--accent); }
.split-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.split-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.facts div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts span { color: var(--muted); }
.facts b { font-variant-numeric: tabular-nums; }
.dist { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 8px; }
.dist-row { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 2fr 0.7fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.dist-row:last-child { border-bottom: 0; }
.dist-row.head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; }
.dist-row .bar { height: 6px; border-radius: 999px; background: var(--ghost); overflow: hidden; }
.dist-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.dist-row .r { text-align: right; }
.checks-list { display: grid; }
.checks-list div { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.checks-list div:last-child { border-bottom: 0; }
.checks-list b { flex: 1; }
.checks-list .ok { color: var(--ok); font-weight: 900; }
.checks-list .no { color: var(--warn); font-weight: 900; }
.checks-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.vol-low { color: var(--ok); } .vol-medium { color: var(--warn); } .vol-high { color: var(--bad); }

@media (max-width: 900px) {
  .math-row { grid-template-columns: 1fr 1fr 1fr 20px; }
  .math-row > :nth-child(n + 4):not(:last-child) { display: none; }
  .dist-row { grid-template-columns: 1fr 1fr 1fr; }
  .dist-row > :nth-child(2), .dist-row > :nth-child(4) { display: none; }
}
.split-legend i.k0 { background: #c9cee0; }
.split-legend i.k1 { background: #8a93b8; }
.split-legend i.k2 { background: var(--accent); }
.t-ok { background: var(--ok-bg); color: var(--ok); }
.t-go { background: #e8ebff; color: var(--accent); }
.t-wait { background: var(--warn-bg); color: var(--warn); }
.t-bad { background: var(--bad-bg); color: var(--bad); }
.t-todo { background: var(--ghost); color: var(--muted); }
.r-draft { background: var(--ghost); color: var(--muted); }

/* New game dialog: two ways to bring a game */
fieldset.choice { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
fieldset.choice legend { font-weight: 800; font-size: 13px; margin-bottom: 6px; padding: 0; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.choice-card:has(input:checked) { border-color: var(--accent); background: #f3f5ff; }
.choice-card input { margin-top: 3px; accent-color: var(--accent); }
.choice-card b { display: block; font-size: 14px; }
.choice-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
dialog.modal .art-only { display: none; }
dialog.modal form:has(input[value='art']:checked) .art-only { display: block; }

/* Art slots */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.art-slot { display: grid; gap: 4px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0; }
.art-slot.has { border-color: #b9e3c9; }
.art-slot.busy { opacity: 0.6; }
.art-thumb { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--bg) repeating-conic-gradient(#e9ecf4 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; color: var(--muted); overflow: hidden; margin-bottom: 4px; }
.art-thumb img { width: 100%; height: 100%; object-fit: contain; }
.art-slot b { font-size: 13.5px; }
.file-btn { position: relative; overflow: hidden; margin: 6px 0 0; justify-self: start; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
fieldset.checks-inline { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
fieldset.checks-inline legend { font-weight: 800; font-size: 13px; padding: 0; margin-bottom: 4px; width: 100%; }
fieldset.checks-inline .check { margin: 0; font-weight: 600; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { width: auto; margin: 0; }
.app .grid2 { gap: 14px; }
.app .grid2 > .card { margin-top: 14px; }
.prewrap { white-space: pre-wrap; }
.review-item + .review-item { margin-top: 14px; }
.review-item .page-head { margin-bottom: 8px; }
.review-item .page-head h2 { margin: 0; }
.art-intro { margin-bottom: 14px; }

.ledger .sub-h { margin-top: 22px; }
.needs.rule-list { border-top: 2px solid var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* New game: two choices on a plain background with the Sevenstudios mark */
body.picker { min-height: 100vh; overflow-x: hidden; }
.picker-top { position: fixed; inset: 0 0 auto 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 40px); }
.picker-mark { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; }
.picker-mark svg { width: min(78vw, 820px); height: auto; opacity: 0.07; }
.picker-main { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 96px 16px 48px; }
.pick-card { width: min(880px, 100%); text-align: center; }
.pick-card h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(36px, 5vw, 60px); }
.pick-card > .muted { margin-top: 12px; font-size: 17px; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 34px; text-align: left; }
.pick { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 28px; background: var(--surface); border: 1.5px solid #e6e8f1; box-shadow: 0 1px 2px rgba(16, 20, 43, 0.04), 0 18px 40px -24px rgba(16, 20, 43, 0.25); text-decoration: none; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.pick:hover, .pick:focus-visible { transform: translateY(-3px); border-color: var(--cobalt); box-shadow: 0 24px 50px -24px rgba(36, 56, 232, 0.45); }
.pick-art { display: block; height: 96px; margin-bottom: 8px; }
.pick-art svg { height: 100%; width: auto; }
.pick b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pick > span:not(.pick-art):not(.pick-go) { color: var(--muted); font-size: 16px; }
.pick-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 800; color: var(--cobalt); }
.pick-go .ico { width: 14px; height: 14px; }
.pick-card.narrow { width: min(580px, 100%); text-align: left; background: var(--surface); border: 1px solid #e6e8f1; border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 60px -30px rgba(16, 20, 43, 0.35); }
.pick-card.narrow h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 4px; }
.pick-card.narrow .muted { margin-top: 10px; }
.pick-back { display: inline-block; margin-bottom: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.pick-back::before { content: '← '; }
.big-field input { margin-top: 22px; min-height: 60px !important; font-size: 20px !important; font-weight: 600; }
fieldset.tpl { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
fieldset.tpl legend { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.tpl-card { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; font-weight: 500; }
.tpl-card:has(input:checked) { border-color: var(--cobalt); background: #f3f5ff; }
.tpl-card input { margin-top: 4px; accent-color: var(--cobalt); }
.tpl-card b { display: block; font-size: 15px; }
.tpl-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pick-submit { width: 100%; margin-top: 22px; min-height: 54px !important; font-size: 16px !important; }
.app-nav { overflow: visible; }
@media (max-width: 760px) { .app-nav { overflow-x: auto; padding-bottom: 12px; margin-bottom: -12px; } .app-nav a[aria-current='page']::after { bottom: 2px; } }
.review-item h2.display { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.review-item .page-head { margin-bottom: 14px; }
/* The RGS / STUDIO tag next to the logo: filled navy, so the area is recognisable at a glance */
.app-brand small { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Phones ---------- */
.menu-sm { display: none; }
@media (max-width: 760px) {
  .topbar-in { flex-wrap: nowrap; gap: 12px; padding-block: 8px; }
  .mainnav { display: none; }
  .menu-sm { display: block; position: relative; margin-left: auto; }
  .menu-sm summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfd5e4; background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer; }
  .menu-sm summary::-webkit-details-marker { display: none; }
  .menu-sm summary::before { content: ''; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-shadow: inset 0 -4px 0 -2px currentColor; }
  .menu-sm[open] summary { border-color: var(--text); }
  .menu-sm nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; padding: 8px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(16, 20, 43, 0.18); }
  .menu-sm nav a { padding: 12px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
  .menu-sm nav a[aria-current='page'] { background: var(--ghost); }

  /* Tables become stacked rows with a label per value */
  .app table thead, .casino-wrap table thead, main table thead { display: none; }
  main table, main table tbody { display: block; width: 100%; }
  main table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  main table tr:last-child { border-bottom: 0; }
  main table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 5px 0 !important; border: 0 !important; text-align: right; min-width: 0; }
  main table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; }
  main table td:first-child { display: block; text-align: left; padding-bottom: 8px !important; }
  main table td:first-child::before { content: none; }
  main table td[data-label='']::before, main table td:not([data-label])::before { content: none; }
  main table td.num { text-align: right; }
  main .tbl-wrap, main .table-wrap { overflow: visible; margin: 0; padding: 0; }
  main .table-wrap { margin: 0 calc(-1 * clamp(18px, 3vw, 30px)); }
  .tbl .game-cell { gap: 12px; }
  .inline-actions, .row-actions { justify-content: flex-start; }

  /* Signed-in pages */
  .app .page-head { margin-bottom: 20px; }
  .app .page-head h1 { font-size: 34px; }
  .app .page-head .sub { font-size: 15px; }
  .app .head-actions { width: 100%; }
  .ledger { padding: 20px 20px 14px; border-radius: 22px; }
  .ledger dl > div { padding: 10px 0; }
  .ledger dd { font-size: 22px; }
  .needs .t { font-size: 20px; }
  .section-title { margin-top: 28px; }
  .next-step { padding: 16px; border-radius: 16px; }
  .next-step p { font-size: 15px; }
  .version-foot { align-items: flex-start; }
  .version-actions { justify-content: flex-start; }
  .kv-grid div { padding: 12px 16px; }
  .picks { margin-top: 24px; }
  .pick { padding: 20px; border-radius: 22px; }
  .pick b { font-size: 22px; }
  .pick-art { height: 72px; }
  .casino-head { align-items: stretch; }
  .casino-wallet { width: 100%; justify-content: space-between; }
  .casino-bar .fault { width: 100%; justify-content: space-between; }
  .player-bar { gap: 8px; padding: 8px 10px; }
  .player-title { width: 100%; }
  .seg { width: 100%; overflow-x: auto; }
  .seg button { flex: 1; padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .player-actions { width: 100%; justify-content: space-between; }
  .player-actions .btn { flex: 1; }
  .player-stage { padding: 10px; }
}
.sm-only, .menu-word { display: none; }
@media (max-width: 760px) {
  .app-nav { display: none; }
  .acct .sm-only { display: grid; }
  .acct .menu-word { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
  .acct summary { padding: 0 6px 0 14px; border: 1.5px solid #cfd5e4; border-radius: 999px; background: var(--surface); min-height: 44px; }
  .acct .avatar { width: 32px; height: 32px; font-size: 12px; }
  .app-brand span { display: inline; font-size: 18px; }
  .app-brand small { display: inline-block; }
  .acct-menu { min-width: min(280px, calc(100vw - 32px)); }
  .acct-menu a { padding: 12px 14px; font-size: 15px; }
  .player-actions .btn { white-space: nowrap; font-size: 13px !important; min-height: 34px !important; padding: 4px 10px !important; }
  .player-actions .btn .ico { width: 14px; height: 14px; }
  .player-title { font-size: 15px; }
}
@media (max-width: 380px) { .app-brand span { display: none; } }
/* Share links and the test player on a phone: no device frame or size buttons, the game fills the screen. */
@media (max-width: 760px), (max-height: 500px) {
  .player-page .seg, dialog.player .seg, .player-page .player-note, dialog.player .player-note, #player-open { display: none !important; }
  .player-bar { flex-wrap: nowrap; gap: 8px; padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
  .player-title { width: auto !important; min-width: 0; flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .player-title .muted { display: none; }
  .player-actions { width: auto !important; flex: none; }
  .player-actions .btn { flex: none !important; }
  .player-stage { padding: 0 !important; display: grid; place-items: stretch; }
  .player-page .device, dialog.player .device { width: 100% !important; height: 100% !important; max-width: none !important; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .player-page, dialog.player[open] { grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
}

/* ---------- Public game pages ---------- */
.game-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: 28px; }
.game-tile { display: grid; gap: 4px; text-decoration: none; }
.tile-cover { display: block; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--ghost); box-shadow: 0 18px 40px -24px rgba(16, 20, 43, 0.4); transition: transform 0.2s; margin-bottom: 8px; }
.game-tile:hover .tile-cover { transform: translateY(-4px); }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 8vw, 96px); color: #fff; }
.game-tile b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tile-studio { color: var(--muted); font-size: 14px; font-weight: 600; }
.tile-facts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--cobalt); }
.preview-note { margin-top: 24px; }
.game-hero { position: relative; margin-top: 28px; border-radius: 32px; overflow: hidden; background: var(--navy); color: #fff; min-height: 320px; display: grid; align-items: end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero.has-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 20, 43, 0) 20%, rgba(16, 20, 43, 0.88) 100%); }
.hero-mark { position: absolute; right: -40px; top: -40px; width: 380px; opacity: 0.12; }
.hero-in { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); padding: clamp(22px, 4vw, 44px); }
.hero-cover { flex: none; width: clamp(110px, 16vw, 190px); aspect-ratio: 1; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); border: 3px solid rgba(255, 255, 255, 0.9); background: var(--ghost); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-studio { font-weight: 800; color: var(--amber); font-size: 15px; }
.game-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-size: clamp(40px, 6vw, 76px); margin: 4px 0 8px; }
.hero-tag { font-size: clamp(16px, 1.6vw, 20px); color: #dfe2f3; max-width: 52ch; }
.game-hero .actions { margin-top: 18px; }
.game-hero .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); margin: 22px 0 0; background: var(--surface); border: 1px solid #e6e8f1; border-radius: 22px; box-shadow: 0 8px 24px -16px rgba(16, 20, 43, 0.12); overflow: hidden; }
.fact-strip div { padding: 16px 20px; border-right: 1px solid var(--line); }
.fact-strip div:last-child { border-right: 0; }
.fact-strip dt { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact-strip dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.section-h { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--text); margin-bottom: 16px; }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.game-about p { font-size: 17px; max-width: 68ch; }
.game-about p + p { margin-top: 14px; }
.game-features ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.game-features li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.game-features li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--cobalt); transform: translateY(-1px); }
.shots-h { margin-top: 44px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.shot-grid a { display: block; border-radius: 18px; overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; }
.shot-grid a.tall { aspect-ratio: 9 / 16; max-height: 520px; }
.shot-grid img { width: 100%; height: 100%; object-fit: cover; }
.game-foot { margin-top: 28px; }
@media (max-width: 860px) { .game-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .game-hero { min-height: 0; border-radius: 24px; }
  .hero-in { flex-direction: column; align-items: flex-start; }
  .fact-strip div { border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; }
  .fact-strip dd { margin: 0; font-size: 20px; }
}

/* ---------- Studio: Profile tab ---------- */
.profile-edit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.section-title.first { margin-top: 0; }
.media-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin-top: 16px; }
.media-grid.shots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.media-slot { display: grid; gap: 6px; align-content: start; padding: 10px; border: 1px solid #e6e8f1; border-radius: 18px; background: var(--surface); }
.media-slot.has { border-color: #b9e3c9; }
.media-thumb { border-radius: 12px; overflow: hidden; background: var(--bg) repeating-conic-gradient(#e9ecf4 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; color: var(--muted); aspect-ratio: 16 / 9; }
.media-slot.cover .media-thumb { aspect-ratio: 1; }
.media-slot.banner .media-thumb { aspect-ratio: 8 / 3; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-meta { display: grid; }
.media-meta b { font-size: 14px; }
.media-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.media-actions form { margin: 0; }
@media (max-width: 900px) { .profile-edit { grid-template-columns: 1fr; } .media-grid { grid-template-columns: 1fr; } }
.media-slot.busy { opacity: 0.6; }
@media (max-width: 640px) {
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip div { display: block; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .fact-strip div:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact-strip dd { margin-top: 2px; font-size: 20px; }
  .game-tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
  .game-tile b { font-size: 18px; }
  .tile-cover { border-radius: 18px; }
  .tile-facts { font-size: 12px; gap: 6px; }
}

/* ---------- Review lock and scorecards ---------- */
.lock-banner { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin: 0 0 18px; border-radius: 16px; background: #eef0ff; border: 1px solid #c9cff8; }
.lock-banner > .ico { flex: none; width: 22px; height: 22px; color: var(--cobalt); margin-top: 2px; }
.lock-banner > div { flex: 1; min-width: 0; }
.lock-banner p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.lock-banner form { flex: none; }
@media (max-width: 640px) { .lock-banner { flex-wrap: wrap; } .lock-banner form { width: 100%; } }

.stars { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.stars > span { color: var(--amber); letter-spacing: 1px; font-size: 18px; line-height: 1; }
.stars > span i { font-style: normal; color: var(--line); }
.stars b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.stars.sm > span { font-size: 14px; }

.scorecard { border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 0 16px 16px 0; background: var(--surface); padding: 14px 16px; margin: 14px 0; }
.scorecard.bad { border-left-color: var(--bad); }
.version .scorecard { margin: 12px 0 4px; }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-head > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-overall { display: flex; align-items: center; gap: 10px; }
.sc-notes { margin: 12px 0 0; white-space: pre-wrap; }
.sc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; margin-top: 12px; }
.sc-scores { display: grid; gap: 6px; margin: 0; }
.sc-scores div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sc-scores dt { font-size: 14px; color: var(--muted); }
.sc-scores dd { margin: 0; }
.sc-check summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.sc-check ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.sc-check li { display: flex; gap: 8px; }
.sc-check li span[aria-hidden] { width: 14px; font-weight: 900; }
.sc-check li.yes span[aria-hidden] { color: var(--ok); }
.sc-check li.no { color: var(--muted); }
@media (max-width: 760px) { .sc-body { grid-template-columns: minmax(0, 1fr); } }

.auto-checks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; }
.auto-checks h3 { font-size: 15px; margin: 0 0 8px; }
@media (max-width: 860px) { .auto-checks { grid-template-columns: minmax(0, 1fr); } }
.release-notes { margin: 0 0 8px; }

.scorecard-form { margin-top: 22px; }
.star-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px 24px; margin: 16px 0 6px; }
.star-input { border: 0; padding: 0; margin: 0; min-width: 0; }
.star-input legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 4px; }
.star-row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { cursor: pointer; font-size: 30px; line-height: 1; padding: 2px 3px; color: var(--line); margin: 0; transition: color 0.1s; }
.star-row input:checked ~ label, .star-row label:hover, .star-row label:hover ~ label { color: var(--amber); }
.star-row input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.star-overall { padding: 10px 14px; border-radius: 14px; background: var(--bg); }
.star-overall .star-row label { font-size: 34px; }
.review-checklist { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.review-checklist legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.review-checklist .check { font-weight: 600; }
.review-checklist .req { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bad); background: var(--bad-bg); padding: 1px 7px; border-radius: 999px; }
.review-checklist legend .hint { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Launch path, submit confirmation, scorecard follow-up ---------- */
.steps-line.steps-4 { grid-template-columns: repeat(4, 1fr); }
.submit-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 22px; align-items: start; }
.submit-review .mode-grid { margin: 18px 0; }
.pre-checks { margin: 4px 0 10px; box-shadow: none; }
.pre-checks a { font-weight: 600; font-size: 13px; margin-left: 8px; }
.submit-review .lock-banner { margin: 18px 0 0; }
.confirm-submit { margin-top: 20px; }
.what-we-check h3 { font-size: 15px; margin: 0; }
.what-we-check h3 + p { margin: 2px 0 8px; }
.what-we-check ul + h3 { margin-top: 20px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
ul.plain li { padding-left: 16px; position: relative; }
ul.plain li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.req { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bad); background: var(--bad-bg); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.sc-todo { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); }
.sc-todo ul { margin: 6px 0 0; padding-left: 18px; font-weight: 600; }
.overdue { color: var(--bad); font-weight: 700; }
@media (max-width: 900px) { .submit-review { grid-template-columns: minmax(0, 1fr); } .steps-line.steps-4 { grid-template-columns: 1fr 1fr; gap: 14px 0; } }
@media (max-width: 760px) { .steps-line.steps-4 { grid-template-columns: 1fr; } }
.submit-review .eyebrow { margin: 0 0 6px; }
.submit-review h2.display { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 8px; line-height: 1.15; }
.what-we-check ul.plain li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sc-body { align-items: start; }

/* ---------- Games list: controls, approval marks, money ---------- */
.list-controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; }
.list-controls .ctl-group { display: flex; gap: 8px; flex-wrap: wrap; }
.list-controls .ctl { margin: 0; }
.list-controls .search { position: relative; flex: 0 1 300px; }
.list-controls .search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.list-controls .search input { padding-left: 40px; margin: 0; border-radius: 999px; height: 42px; }
.list-controls select { margin: 0; height: 40px; border-radius: 999px; padding: 0 34px 0 14px; font-weight: 700; font-size: 14px; width: auto; }
.games-tbl th.c, .games-tbl td.c { text-align: center; }
.games-tbl .cover { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--ghost); }
.games-tbl .play-cell { text-align: right; white-space: nowrap; width: 1%; }
.games-tbl .play-cell .btn { margin: 0; }
.games-tbl td.pos { color: var(--ok); font-weight: 700; }
.games-tbl td.neg { color: var(--bad); font-weight: 700; }
.games-tbl tfoot th, .games-tbl tfoot td { padding: 16px 18px; background: #fafbfd; border-top: 1px solid var(--line); font-weight: 800; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); text-align: left; }
.games-tbl tfoot td.num { text-align: right; }
.games-tbl tfoot .sub { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.mark { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 900; font-size: 16px; line-height: 1; }
.mark small { font-size: 11px; font-weight: 700; color: var(--muted); }
.mark.yes > span { color: var(--ok); }
.mark.no > span { color: var(--bad); }
.mark.wait > span { color: var(--warn); }
.mark.none > span { color: var(--line); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); margin-right: 6px; vertical-align: 1px; }
.live-dot.on { background: #18b85c; box-shadow: 0 0 0 3px rgba(24, 184, 92, 0.18); }
.list-note { margin: 10px 2px 0; }
@media (max-width: 760px) { .list-controls .search { flex: 1 1 100%; } .games-tbl .mark { flex-direction: row; gap: 6px; } }
@media (max-width: 760px) {
  main table.games-tbl tfoot { display: block; }
  main table.games-tbl tfoot th { display: block; padding: 0 0 6px !important; background: none; border: 0; }
  main table.games-tbl tfoot td { background: none; }
  main table.games-tbl tfoot td:empty { display: none; }
  main table.games-tbl tfoot tr { background: #fafbfd; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; }
}

/* ---------- Share dialog ---------- */
dialog.share-dialog { width: min(560px, 94vw); }
.share-in { padding: 22px; }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.share-in > p { margin: 6px 0 14px; font-size: 14px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; font-size: 16px; flex: none; }
.icon-btn:hover { background: var(--ghost); }
.share-new { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin: 0 0 16px; }
.share-new label { margin: 0; font-size: 13px; font-weight: 800; }
.share-new select { margin: 4px 0 0; height: 44px; }
.share-new .btn { height: 44px; }
.share-list { display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.share-link { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); }
.share-link-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.share-link-head form { margin: 0; }
.link-btn { background: none; border: 0; padding: 4px 0; font-weight: 800; color: var(--bad); cursor: pointer; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.share-url { display: flex; gap: 8px; margin: 8px 0 4px; }
.share-url input { margin: 0; font-family: var(--mono); font-size: 13px; height: 40px; }
@media (max-width: 560px) { .share-new { grid-template-columns: 1fr 1fr; } .share-new .btn { grid-column: 1 / -1; } }

/* Share-link player settings */
.player-settings { position: relative; }
.player-settings > summary { list-style: none; }
.player-settings > summary::-webkit-details-marker { display: none; }
.player-settings-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; gap: 10px; min-width: 220px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 20, 43, 0.18); }
.player-settings-menu label { margin: 0; font-size: 13px; font-weight: 800; }
.player-settings-menu select { margin: 4px 0 0; height: 40px; }
.player-settings-menu { color: var(--text); }
.player-settings-menu label { color: var(--text); }
.player-settings-menu .btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }

/* Staff sign-in: main-site account first, emergency password folded away */
.sso-panel p { margin: 0 0 4px; }
.pw-fallback { margin-top: 18px; }
.pw-fallback > summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.pw-fallback .panel { margin-top: 10px; }
.casino-form .scope { border: 0; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.casino-form .casino-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg); margin: 4px 0 14px; }

/* Verify a round */
.verify-form .grid2 { align-items: start; }
.verify-form label { margin-top: 0; }
.verify-form label input { margin: 6px 0 6px; }
.verify-form label .hint { font-size: 13px; }
label .opt { font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 6px; }
.draw-steps { margin: 14px 0 18px; padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.draw-steps li { position: relative; padding-left: 40px; line-height: 1.55; }
.draw-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ghost); font-weight: 800; font-size: 13px; }
.draw-code { margin: 0 0 14px; }
.verify-form .grid2 { row-gap: 20px; }
