/* Yoola Games: account pages and admin. Yoola brand colours (docs/Yoola_Brandbook_eng), dark by default,
   light with <html data-theme="light"> (see theme.js). Same tokens as the tester. */

/* Dark theme. The sign-in side panel stays dark in both themes, so it takes the same tokens. */
:root, .auth-stage {
  color-scheme: dark;
  /* Brand palette */
  --purple: #8157FF; --green: #35E591; --yellow: #DFFF1A; --blue: #44E5E7; --black: #23202D; --white: #FFFFFF;
  --purple-hover: #9572FF; --purple-press: #6D45EE;
  --purple-tint: rgba(129, 87, 255, .16); --purple-tint-2: rgba(129, 87, 255, .28);
  /* Surfaces, built on brand black */
  --bg: var(--black); --bg-deep: #1B1923; --surface: #2B2836; --surface-2: #343042;
  --line: #3B3748; --line-soft: #312D3D; --field: #4A4559; --field-hover: #6A6480;
  --row-tint: rgba(255, 255, 255, .025); --chip: rgba(255, 255, 255, .07); --shadow: rgba(0, 0, 0, .45);
  /* Text */
  --text: var(--white); --text-body: #E6E4EC; --muted: #A7A3B4; --faint: #7D798A; --purple-text: #A98CFF;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7A3B4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  /* Status: fills (dots, badges) and text */
  --pass: var(--green); --fail: #FF5C6C; --warn: var(--yellow);
  --pass-text: var(--green); --fail-text: #FF5C6C; --warn-text: var(--yellow);
  --error-text: #FFC9CF; --ok-text: #C2F7DD;
  --info-edge: var(--blue); --warn-edge: var(--yellow); --ok-edge: var(--green);
  --code-bg: #1B1923; --code-ink: #E6E4EC;
  /* The tick inside green circles, centred (tester, sign-in preview, "Ready to send?") */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.9 8.5 9.4 3.7' fill='none' stroke='%2323202D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* TT Norms is the brand font (paid); Plus Jakarta Sans is the closest free match. The logo keeps Unbounded. */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
  --font-logo: "Unbounded", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Circle-based brand pattern (brandbook 08), drawn in thin purple lines */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' fill='none' stroke='%238157FF' stroke-width='1.2'%3E%3Cpath d='M0 .5h128M0 64.5h128M.5 0v128M64.5 0v128'/%3E%3Cpath d='M0 64a32 32 0 0 1 64 0M64 0a32 32 0 0 0 64 0M64 128a32 32 0 0 1 64 0M32 64a32 32 0 0 1 32 32 32 32 0 0 1-32 32M96 64a32 32 0 0 0-32-32'/%3E%3C/svg%3E");
}
/* Light theme: brand black on white, darker shades where brand colours are too light for text on white */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F4F8; --bg-deep: #FFFFFF; --surface: #FFFFFF; --surface-2: #F0EEF5;
  --line: #E2DFEA; --line-soft: #EEECF3; --field: #CFCAD9; --field-hover: #A9A2BA;
  --row-tint: rgba(35, 32, 45, .025); --chip: rgba(35, 32, 45, .06); --shadow: rgba(35, 32, 45, .14);
  --purple-tint: rgba(129, 87, 255, .1); --purple-tint-2: rgba(129, 87, 255, .18);
  --text: var(--black); --text-body: #3A3645; --muted: #6B6679; --faint: #8E8A9B; --purple-text: #6A3FF0;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6679' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --pass-text: #087A47; --fail-text: #D02A3E; --warn-text: #7A6200;
  --error-text: #9E1C2C; --ok-text: #0A5E3A;
  --info-edge: #1BBFC2; --warn-edge: #C5E000; --ok-edge: #1FCB7A;
  --code-bg: var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--purple-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
::selection { background: var(--purple); color: var(--white); }
h1 { margin: 0; font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.lede strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.small { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--purple); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-logo); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* Light / dark switch: shows the theme it switches to */
.theme-toggle { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--purple); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon, :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Auth layout: form column + product preview */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 64px) 32px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-body { width: 100%; max-width: 400px; margin: auto; padding: 48px 0; }
.auth-foot { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.auth-foot:empty { display: none; }

.auth-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 56px clamp(32px, 5vw, 88px);
  background: var(--bg-deep); color: var(--text);
  border-left: 1px solid var(--line);
}
.auth-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 128px 128px; opacity: .22; -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 75%); mask-image: linear-gradient(160deg, #000 0%, transparent 75%); }
.stage-copy h2 { margin: 0; max-width: 15em; font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.stage-copy p { margin: 16px 0 0; max-width: 42ch; color: var(--muted); font-size: 17px; font-weight: 300; line-height: 1.4; }

.preview { width: min(440px, 100%); padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.preview-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.preview-title { font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--purple-text); }
.preview-score { color: var(--pass-text); font-weight: 700; font-size: 14px; opacity: 0; animation: fade-in .3s ease 2s forwards; }
.preview-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.preview-list li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.preview-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
.tick { position: relative; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--line); animation: tick-pass .3s ease forwards; }
.tick::after { content: ""; position: absolute; inset: 0; background: var(--check) center / 12px no-repeat; transform: scale(0); animation: tick-mark .25s ease forwards; }
.preview-list li:nth-child(1) .tick, .preview-list li:nth-child(1) .tick::after { animation-delay: .5s; }
.preview-list li:nth-child(2) .tick, .preview-list li:nth-child(2) .tick::after { animation-delay: .78s; }
.preview-list li:nth-child(3) .tick, .preview-list li:nth-child(3) .tick::after { animation-delay: 1.06s; }
.preview-list li:nth-child(4) .tick, .preview-list li:nth-child(4) .tick::after { animation-delay: 1.34s; }
.preview-list li:nth-child(5) .tick, .preview-list li:nth-child(5) .tick::after { animation-delay: 1.62s; }
@keyframes tick-pass { to { background: var(--pass); } }
@keyframes tick-mark { to { transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }

/* Forms */
.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.readonly-value { margin: 0; padding: 10px 0 2px; color: var(--text); }  /* a field shown but not editable (an update's title, D-60) */
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-link { font-size: 13.5px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], textarea, select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 12px;
  background: var(--bg-deep); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:hover, textarea:hover, select:hover { border-color: var(--field-hover); }
input:focus, input:focus-visible, textarea:focus, select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(129, 87, 255, .3); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--bg-deep) inset; caret-color: var(--text); }
.has-error input, .has-error select { border-color: var(--fail); }
.has-error input:focus, .has-error select:focus { box-shadow: 0 0 0 4px rgba(255, 92, 108, .25); }
.msg { margin: 0; color: var(--muted); font-size: 13.5px; }
.msg.error { color: var(--fail-text); }
.msg.warn-text { color: var(--warn-text); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; height: 36px; padding: 0 10px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: var(--purple-text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--purple-tint); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn.block { width: 100%; }
.btn.primary { background: var(--purple); color: var(--white); font-weight: 600; }
.btn.primary:hover { background: var(--purple-hover); color: var(--white); }
.btn.primary:active { background: var(--purple-press); }
.btn.secondary { background: transparent; border-color: var(--field); color: var(--text); }
.btn.secondary:hover { border-color: var(--purple); background: var(--purple-tint); color: var(--text); }
.btn.small { margin: 0; height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn[data-requires-check]:disabled { opacity: .45; cursor: not-allowed; }
.lede + .btn, .lede + .form, .alert + .btn { margin-top: 28px; }

.alert { margin-top: 20px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.alert.error { background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .45); color: var(--error-text); }
.alert.info { background: var(--purple-tint); border-color: var(--purple-tint-2); color: var(--text); }
.alert.success, .alert.ok { background: rgba(53, 229, 145, .1); border-color: rgba(53, 229, 145, .4); color: var(--ok-text); }
.alert a { color: inherit; font-weight: 600; }
.alert a:hover { color: var(--text); }
.alert.collect-missing { margin: 0 0 20px; }  /* under the Metrics tabs, above the search or the page's first section */

.mail-mark { width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: var(--purple-tint); color: var(--purple-text); display: grid; place-items: center; }
.mail-mark svg { width: 26px; height: 26px; }

/* Simple pages (404) */
.plain { max-width: 480px; margin: 0 auto; padding: 28px 24px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.plain .brand { position: absolute; top: 28px; }
.plain .btn { align-self: flex-start; margin-top: 28px; }

/* Admin */
.admin-page { background: var(--bg); }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 24px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; align-items: center; gap: 4px; }
.admin-nav form { margin: 0; }
.admin-nav .theme-toggle { margin-right: 8px; }
.nav-link { padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats div { padding: 16px 18px; background: var(--surface); }
.stats dt { color: var(--muted); font-size: 13.5px; }
.stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.section-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.1; }
.guides-wrap { margin-bottom: 32px; }
.search { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.search input { max-width: 420px; height: 40px; }
/* Games › All (YG-0049): the search, with its long hint, has the first line; the four filters go under it */
.search-wrap { flex-wrap: wrap; }
.search-wrap input.wide { flex: 1 1 100%; max-width: none; }
.search .btn { height: 40px; }
.clear-link { font-size: 14px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
table.users { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.users th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.users td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.users tr:last-child td { border-bottom: 0; }
.users tbody tr:hover td { background: var(--row-tint); }
.users .num { text-align: right; font-variant-numeric: tabular-nums; }
.users .strong { font-weight: 600; white-space: nowrap; }
.users .muted { color: var(--muted); }
.users .nowrap { white-space: nowrap; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: var(--black); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.pager-links { display: flex; gap: 8px; }
.empty { padding: 40px 24px; background: var(--surface); border: 1px dashed var(--field); border-radius: 16px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 8px; }
.empty strong { color: var(--text); overflow-wrap: anywhere; }

/* Top bar with the main menu (docs pages; the tester has the same bar in its own file) */
.topbar { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 20px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.main-nav { display: flex; align-items: center; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line); }
.main-nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] { background: var(--purple-tint); color: var(--text); }
.nav-short { display: none; }
.account { position: relative; }
.account summary { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.account summary::-webkit-details-marker { display: none; }
.account summary:hover, .account[open] summary { border-color: var(--purple); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: var(--white); font-size: 12px; font-weight: 700; }
.account-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 260px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px var(--shadow); }
.account-id { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-id b { display: block; font-weight: 600; }
.account-id span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pop a, .account-pop button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.account-pop a:hover, .account-pop button:hover { background: var(--surface-2); color: var(--text); }
.account-pop form { margin: 0; }

/* Docs: the guides, laid out like their PDFs */
.docs-main { max-width: 920px; margin: 0 auto; padding: 0 20px 64px; }
.docs-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; background: var(--bg); }
.doc-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.doc-switch a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.doc-switch a:hover { background: var(--surface-2); color: var(--text); }
.doc-switch a[aria-current="page"] { background: var(--purple); color: var(--white); }
.tab-badge { margin-left: 4px; padding: 2px 6px; border-radius: 5px; background: var(--yellow); color: var(--black); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.docs-bar .btn svg { flex: none; }

.doc {
  --ink: var(--text-body); --ink-2: var(--muted); --ink-3: var(--faint); --accent: var(--purple-text); --bar: var(--purple);
  --code-edge: var(--purple); --chip-bg: var(--purple-tint); --rule: var(--line);
  padding: 44px clamp(20px, 6vw, 60px) 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6;
}
.doc-head { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.doc-kind { padding: 4px 10px; border-radius: 6px; background: var(--purple-tint); color: var(--purple-text); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.doc-meta { color: var(--ink-2); font-size: 13px; }
.doc h1 { font-family: inherit; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--text); }
.doc-sub { margin: 12px 0 24px; color: var(--ink-2); font-size: 18px; font-weight: 300; line-height: 1.4; }
.doc h2 { margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--bar); color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.1; }
.doc h3 { margin: 26px 0 10px; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.2; }
.doc h4 { margin: 0 0 6px; color: var(--text); }
.doc h5 { margin: 16px 0 6px; color: var(--text); font-size: 15px; font-weight: 700; }
.doc p { margin: 0 0 12px; }
.doc strong, .doc b { color: var(--text); }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--purple-text); }
.doc code { padding: 1px 5px; border-radius: 5px; background: var(--chip-bg); color: var(--accent); font: 600 .86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.doc pre.code { margin: 0 0 16px; padding: 14px 18px; overflow-x: auto; border: 1px solid var(--line); border-left: 4px solid var(--code-edge); border-radius: 10px; background: var(--code-bg); color: var(--code-ink); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; tab-size: 2; }
.doc pre.code code { padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }

.callout { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid; border-radius: 10px; font-size: 14.5px; color: var(--ink); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout.info { background: rgba(68, 229, 231, .08); border-color: var(--info-edge); }
.callout.warn { background: rgba(223, 255, 26, .08); border-color: var(--warn-edge); }
.callout.ok { margin-top: 24px; background: rgba(53, 229, 145, .08); border-color: var(--ok-edge); }
.callout b { color: var(--text); }
.callout.info li::marker { color: var(--info-edge); }
.callout.warn li::marker { color: var(--warn-edge); }
.callout.ok li::marker { color: var(--ok-edge); }

.table-scroll { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th { padding: 12px 14px; background: var(--purple); color: var(--white); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.doc-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:nth-child(even) td { background: var(--row-tint); }
.doc-table td:first-child:has(code) { min-width: 180px; }
.doc-table code { overflow-wrap: normal; }

.api { margin: 0 0 18px; padding: 18px 20px 6px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; }
.api .sig { color: var(--text); font: 700 15.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.doc hr { margin: 32px 0; border: 0; border-top: 1px solid var(--rule); }
.doc h1 + .callout, .doc .callout + .callout { margin-top: 18px; }
.doc li.task { list-style: none; position: relative; margin-left: -4px; padding-left: 26px; }
.doc .task-box { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 2px solid var(--bar); border-radius: 4px; }
.doc .task.done .task-box { background: var(--bar); }
.doc .callout p:last-child { margin-bottom: 0; }
/* Cover guide (templates/docs/cover-guide.html): example cards framed green (good) or red (poor), as in the PDF */
.callout.bad { background: rgba(255, 92, 108, .08); border-color: var(--fail); }
.cg-kicker { margin: 0 0 8px; color: var(--warn-text); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cg-section { margin-top: 44px; }
.doc .cg-section + h2 { margin-top: 0; }
.cg-partner { display: inline-block; padding: 6px 14px; border-radius: 8px; background: var(--yellow); color: var(--black); font-weight: 700; }
.doc h2.cg-plain { margin: 0 0 12px; padding: 0; border: 0; font-size: 26px; line-height: 1.2; }
.cg-lead { margin: -6px 0 16px; color: var(--ink-2); }
.cg-big { margin: 0 0 10px; color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.25; }
.cg-big span { display: block; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.cg-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; margin: 28px 0 22px; }
.cg-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cg-trio figure { margin: 0; }
.cg-trio figcaption { margin-top: 6px; color: var(--warn-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.doc img { display: block; width: 100%; height: auto; border-radius: 10px; }
.doc .cg-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: rule; }
.doc .cg-rules li { margin: 0; padding: 16px 18px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; counter-increment: rule; }
.cg-rules li::before { content: counter(rule, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--purple-text); font-size: 13px; font-weight: 700; }
.cg-rules p, .cg-panel p { margin: 0 0 8px; font-size: 14px; }
.cg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.cg-panel { padding: 18px 20px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; }
.cg-panel h3 { margin-top: 0; }
.cg-panel h5 { margin: 14px 0 4px; color: var(--purple-text); }
.doc .cg-aside { margin-top: 14px; color: var(--ink-3); font-size: 13px; }
/* Four cards in a row, as on the slides: the cover guide page is wider than the text guides. */
.docs-main.docs-cover-guide { max-width: 1120px; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 22px; }
.cg-card { display: flex; flex-direction: column; margin: 0; padding: 0 12px 14px; border: 2px solid; border-radius: 14px; overflow: hidden; }
.cg-card.good { border-color: var(--pass); background: rgba(53, 229, 145, .06); }
.cg-card.poor { border-color: var(--fail); background: rgba(255, 92, 108, .06); }
.cg-card-kind { margin: 0 -12px 12px; padding: 6px 12px; color: var(--black); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cg-card.good .cg-card-kind { background: var(--pass); }
.cg-card.poor .cg-card-kind { background: var(--fail); }
.cg-card img, .cg-trio img { aspect-ratio: 420 / 572; object-fit: cover; border-radius: 8px; }  /* covers are 408–435 px wide: keep rows aligned */
.cg-card h4 { margin: 12px 0 4px; font-size: 15px; }
.cg-card p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.doc .cg-note { margin: auto 0 0; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.cg-note b { display: block; margin-bottom: 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.cg-card.good .cg-note b { color: var(--pass-text); }
.cg-card.poor .cg-note b { color: var(--fail-text); }
.cg-contact { margin-top: 36px; padding: 24px; background: var(--purple-tint); border-radius: 16px; }
.cg-contact a { color: var(--purple-text); font-weight: 700; }
@media (max-width: 720px) {
  .cg-hero, .cg-two { grid-template-columns: 1fr; }
  .doc .cg-rules { grid-template-columns: 1fr; }
  .cg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.doc-foot a { color: var(--accent); font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: none; }
.doc-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-stage { display: none; }
  .auth-body { padding: 40px 0 24px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-head { flex-wrap: wrap; }
  .search { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .topbar { gap: 12px; padding: 0 16px; }
  .topbar .brand-name, .account-name, .nav-long { display: none; }
  .nav-short { display: inline; }
  .main-nav { padding-left: 12px; }
  .topbar-right { gap: 8px; }
  .docs-main { padding: 0 12px 40px; }
  .doc h1 { font-size: 26px; }
  .doc-head { align-items: flex-start; }
}
/* Phones: the logo, four menu items (Analytics since YG-0010), the theme switch and the avatar overflowed 375 points by
   ~60 (measured 04.12.2026): tighter, and if a long badge still doesn't fit, the menu scrolls, not the page */
@media (max-width: 420px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar-right { gap: 6px; }
  .main-nav { gap: 0; padding-left: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 7px 5px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .auth-main { padding: 20px 20px 28px; }
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tick { background: var(--pass); }
  .tick::after { transform: rotate(45deg) scale(1); }
  .preview-score { opacity: 1; }
}

/* My games and the review queue (YG-0011) */
textarea { height: auto; min-height: 96px; padding-top: 10px; padding-bottom: 10px; line-height: 1.5; resize: vertical; }
/* Our own chevron instead of the browser's: the native arrow sat against the right edge, at different sizes per
   browser; the colour follows the theme (--chevron) */
select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.alert.warn { background: rgba(223, 255, 26, .08); border-color: rgba(223, 255, 26, .4); color: var(--text); }
.app-page { background: var(--bg); }
.app-main { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
.admin-main.narrow { max-width: 900px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head form { margin: 0; }
.page-head .btn { white-space: nowrap; }
.crumbs { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.panel { margin: 0 0 18px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.panel h3 { margin: 18px 0 8px; font-size: 15px; }
.panel p { margin: 0 0 10px; }
.status-panel { border-left: 4px solid var(--purple); }
.status-panel.s-approved { border-left-color: var(--pass); }
.status-panel.s-changes_requested { border-left-color: var(--warn-edge); }
.status-panel.s-declined { border-left-color: var(--fail); }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status.s-in_review { background: var(--purple-tint); color: var(--purple-text); }
.status.s-approved { background: rgba(53, 229, 145, .14); color: var(--pass-text); }
.status.s-changes_requested { background: rgba(223, 255, 26, .14); color: var(--warn-text); }
.status.s-declined { background: rgba(255, 92, 108, .12); color: var(--fail-text); }
/* Certification (YG-0004): with Yoola or YouTube — purple, needs the team — yellow, YouTube's answer — green or red */
.status.s-submitted, .status.s-in_progress, .status.s-uploaded { background: var(--purple-tint); color: var(--purple-text); }
.status.s-cert_changes, .status.s-youtube_changes { background: rgba(223, 255, 26, .14); color: var(--warn-text); }
.status.s-live { background: rgba(53, 229, 145, .14); color: var(--pass-text); }
.status.s-update { background: rgba(68, 229, 231, .14); color: var(--text); }  /* an update of a live game (YG-0017) */
.status.s-rejected { background: rgba(255, 92, 108, .12); color: var(--fail-text); }
.status-panel.s-live { border-left-color: var(--pass); }
.status-panel.s-rejected { border-left-color: var(--fail); }
.flag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.flag.warn { background: rgba(223, 255, 26, .14); color: var(--warn-text); }
.flag.fail { background: rgba(255, 92, 108, .12); color: var(--fail-text); }
.flag.ok { background: rgba(53, 229, 145, .12); color: var(--pass-text); }
.nav-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--black); font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; }
.nav-link.current { background: var(--surface-2); color: var(--text); }
.comment { margin: 0 0 14px; padding: 12px 16px; background: var(--bg); border-left: 4px solid var(--purple); border-radius: 8px; }
.comment p { margin: 0; }
.comment-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.actions form { margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { margin: 4px 0; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { display: block; color: var(--muted); font-size: 12.5px; }
.event-comment { margin: 6px 0 0; padding: 8px 12px; background: var(--bg); border-radius: 8px; font-size: 14px; }
.empty-state { padding: 32px; background: var(--surface); border: 1px dashed var(--field); border-radius: 16px; }
.empty-state h2 { margin: 0 0 10px; }
.empty-state ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.games td a { color: var(--text); }
.users .sub { display: block; color: var(--muted); font-size: 13px; }
.optional { color: var(--faint); font-weight: 400; font-size: 13px; }
.counter { justify-self: end; margin-top: -4px; color: var(--faint); font-size: 12px; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field.check input { margin-top: 3px; }
.choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choices label { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
/* Games section (YG-0049): All, Review and Certification above each list's own status tabs */
.section-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -8px 0 20px; border-bottom: 1px solid var(--line); }
.section-tabs a { margin-bottom: -1px; padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.section-tabs a:hover { color: var(--text); }
.section-tabs a[aria-current="page"] { border-bottom-color: var(--purple); color: var(--text); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.tabs a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--purple); color: var(--white); }
.taken { display: flex; align-items: center; gap: 10px; }
.taken form { margin: 0; }
.link-btn { padding: 0; border: 0; background: none; color: var(--purple-text); font: inherit; font-size: 13.5px; cursor: pointer; }
.role-form { margin: 0; }
.role-form.inline { display: inline; margin-left: 6px; font-weight: 400; }
/* Server warnings for admins (YG-0026) */
.ops-alert { padding: 12px 24px; background: rgba(255, 92, 108, .12); border-bottom: 1px solid rgba(255, 92, 108, .45); color: var(--text); font-size: 14px; line-height: 1.5; }
.ops-alert code { overflow-wrap: anywhere; }

/* Game files (YG-0011 stage 2) */
.upload-slot { margin: 0 0 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.upload-slot.has-error, .thumb.has-error .thumb-box { border-color: var(--fail); }
.slot-head { margin-bottom: 10px; }
.slot-head .muted { display: block; font-size: 13px; }
.file-line { margin: 0 0 8px; overflow-wrap: anywhere; }
.file-pick { position: relative; margin-top: 8px; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-status { margin-top: 8px; font-size: 13.5px; color: var(--muted); white-space: pre-line; }
.upload-status.error { color: var(--fail-text); }
.play-line { margin: 12px 0; }
a[data-play].is-disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
.expiry { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
p.expiry { font-size: 14px; }
.expiry.soon { color: var(--warn-text); font-weight: 600; }
.play-line .muted { margin: 8px 0 0; font-size: 13px; }
.gameplay-video { display: block; width: 100%; max-width: 640px; max-height: 360px; margin-top: 8px; border-radius: 10px; background: #000; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 14px; align-items: start; }
.thumb { margin: 0; }
.thumb p, .thumb figcaption { margin: 6px 0 0; font-size: 13px; }
.thumb-box { display: grid; place-items: center; overflow: hidden; background: var(--bg); border: 1px dashed var(--field); border-radius: 10px; color: var(--faint); }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-thumb_1x1 { aspect-ratio: 1 / 1; }
.ratio-thumb_5x7 { aspect-ratio: 5 / 7; }
.ratio-thumb_16x9 { aspect-ratio: 16 / 9; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 6px; padding: 0; list-style: none; }
.shots img, .gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.shot-actions { display: flex; gap: 10px; margin-top: 4px; }
.shot-actions form { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.file-view h3 { margin: 18px 0 8px; font-size: 15px; }
.form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
}

/* Design pass (YG-0011, 14.10.2026): game tiles, game hero, progress, the dino (docs/brand/dino.md) */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.game-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.game-tile:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 14px 30px var(--shadow); }
.game-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--chip); z-index: 1; }
.game-tile.s-in_review::before { background: var(--purple); }
.game-tile.s-approved::before { background: var(--pass); }
.game-tile.s-changes_requested::before { background: var(--warn-edge); }
.game-tile.s-declined::before { background: var(--fail); }
.tile-link { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.tile-link:hover { color: var(--text); }
.tile-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.tile-cover.no-cover::before { content: ""; position: absolute; inset: 0; background: var(--pattern) 0 0 / 96px 96px; opacity: .22; }
.tile-letter { position: relative; font-family: var(--font-logo); font-size: 44px; font-weight: 600; color: var(--purple-text); text-transform: uppercase; }
.tile-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.tile-title { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.game-tile .expiry { margin: 0; font-size: 12.5px; }
/* Edit and delete a draft from the list (YG-0040): in the cover's corner, shown on hover or keyboard focus; always on
   touch screens, which have no hover */
.tile-actions { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.tile-actions form { display: contents; }
.game-tile:hover .tile-actions, .tile-actions:focus-within { opacity: 1; }
@media (hover: none) { .tile-actions { opacity: 1; } }
.tile-action { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: 0 4px 12px var(--shadow); }
.tile-action svg { width: 16px; height: 16px; }
.tile-action:hover { border-color: var(--purple); color: var(--purple-text); }
.tile-action.danger:hover { border-color: var(--fail); color: var(--fail-text); }

.game-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.hero-cover { flex: none; width: 96px; aspect-ratio: 1; border-radius: 20px; border: 1px solid var(--line); }
.hero-cover .tile-letter { font-size: 40px; }
.game-hero .lede { margin-top: 8px; }

.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; }
.stepper li { position: relative; padding: 10px 12px 10px 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; counter-increment: step; }
.stepper li::before { content: counter(step); position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--chip); color: var(--muted); font-size: 11.5px; line-height: 20px; text-align: center; }
.stepper li.done { color: var(--text); }
.stepper li.done::before { content: ""; background: var(--pass) var(--check) center / 12px no-repeat; }
.stepper li.current { color: var(--text); border-color: var(--purple); background: var(--purple-tint); }
.stepper li.current::before { background: var(--purple); color: var(--white); }
.stepper li.current.warn { border-color: var(--warn-edge); background: rgba(223, 255, 26, .08); }
.stepper li.current.warn::before { background: var(--warn-edge); color: var(--black); }
.stepper li.current.fail { border-color: var(--fail); background: rgba(255, 92, 108, .08); }
.stepper li.current.fail::before { content: "✕"; background: var(--fail); color: var(--white); }

.dino { display: block; height: auto; image-rendering: auto; user-select: none; pointer-events: none; }
.with-dino { display: flex; gap: 24px; align-items: center; }
.with-dino > .dino { flex: none; order: 2; width: 120px; margin-left: auto; }
.with-dino > div { min-width: 0; flex: 1; }
.empty-state.with-dino { align-items: flex-start; }
.empty-state.with-dino > .dino { order: 0; width: 140px; margin: 8px 0 0; }

@media (max-width: 640px) {
  .stepper { grid-template-columns: 1fr 1fr; }
  .game-hero { gap: 14px; }
  .hero-cover { width: 64px; border-radius: 14px; }
  .with-dino > .dino { width: 72px; align-self: flex-start; }
  .empty-state.with-dino { flex-direction: column; }
  .empty-state.with-dino > .dino { width: 96px; }
}
.app-main > .alert { margin: 0 0 16px; }
.head-action { display: flex; align-items: flex-end; gap: 14px; }
.head-dino { width: 60px; margin-bottom: -4px; }
@media (max-width: 640px) { .head-dino { display: none; } }

/* Edit page: the form and files, with "Ready to send?" beside them */
.app-main.wide { max-width: 1160px; }
/* The certification wizard (YG-0004): every step as wide as Test with its big game preview, so the head and the
   stepper stay put from step to step; two columns like Test, and text no wider than reads well */
.app-main.full { max-width: 1680px; }
.app-main.full .edit-layout { grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr); }
@media (max-width: 960px) { .app-main.full .edit-layout { grid-template-columns: 1fr; } }
.app-main.full .card-previews { max-width: 380px; }  /* the cards about the size YouTube shows them */
.app-main.full .lede, .app-main.full .sec-lede, .app-main.full .msg, .app-main.full .cs-text, .app-main.full .cs-hint,
.app-main.full .facts dd { max-width: 72ch; }
.edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.edit-main { min-width: 0; }
.edit-side { position: sticky; top: 20px; }
.ready-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ready-card h2 { margin: 0 0 12px; font-size: 18px; }
.ready-list { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.ready-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ready-list .mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--field); }
.ready-list li.ok { color: var(--text); }
.ready-list li.ok .mark { border: 0; background: var(--pass); position: relative; }
.ready-list li.ok .mark::after { content: ""; position: absolute; inset: 0; background: var(--check) center / 12px no-repeat; }
.ready-actions { display: grid; gap: 8px; }
.ready-note { margin: 12px 0 0; font-size: 12.5px; }
@media (max-width: 960px) {
  .edit-layout { grid-template-columns: 1fr; }
  .edit-side { position: static; }
}
.slot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.slot-actions .file-pick { margin-top: 0; }

/* Review queue */
.queue td { vertical-align: middle; }
.queue-game { display: inline-flex; align-items: center; gap: 12px; }
.queue-cover { flex: none; width: 64px; border-radius: 8px; border: 1px solid var(--line); }
.queue-cover .tile-letter { font-size: 18px; }
.queue .flag { margin-left: 0; }
.queue-empty { justify-content: center; text-align: left; }
.queue-empty > .dino { order: 0; width: 110px; margin: 0; }
.queue-empty > div { flex: none; }

/* Review page: the game on the left, the decision on the right */
.admin-hero { margin-bottom: 0; }
.admin-hero .hero-cover { width: 72px; border-radius: 16px; }
.admin-hero .lede { font-size: 14.5px; }
.taken { flex-wrap: wrap; justify-content: flex-end; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.review-main { min-width: 0; }
.review-side { position: sticky; top: 20px; }
.review-side .panel { margin-bottom: 0; }
.review-side .decide { border-top: 3px solid var(--purple); }
@media (max-width: 1000px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-side { position: static; order: -1; }
}
.queue-cover { height: 36px; aspect-ratio: auto; }
.review-side .choices label { flex-wrap: wrap; row-gap: 2px; }
.review-side .choices .muted { flex-basis: 100%; padding-left: 26px; font-size: 13px; }

/* The dino on the sign-in panel and on error pages */
.preview-wrap { position: relative; width: min(440px, 100%); }
.stage-dino { position: absolute; right: -78px; bottom: -8px; width: 92px; z-index: 1; }
.plain-dino { width: 110px; margin-bottom: 20px; }
.panel.with-dino .alert { margin-top: 0; }
@media (max-width: 1180px) { .stage-dino { display: none; } }

/* Upload zones (YG-0011 design, 15.10.2026): a zone takes a click or a dropped file and shows a bar while it goes */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; overflow: hidden; border: 1.5px dashed var(--field); border-radius: 14px; background: var(--bg-deep); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s, color .15s; }
.drop > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:hover, .drop:focus-within { border-color: var(--purple); background: var(--purple-tint); color: var(--text); }
.drop:focus-within { box-shadow: 0 0 0 4px rgba(129, 87, 255, .3); }
.drop:active { transform: scale(.985); }
.drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--purple-tint); color: var(--purple-text); transition: transform .2s; }
.drop:hover .drop-icon { transform: translateY(-3px); }
.drop-title { color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.drop-hint { color: var(--faint); font-size: 12.5px; }
.drop.wide { min-height: 150px; }
.drop.dragover, .upload-slot.dragover .drop, .upload-slot.dragover .file-card { border-color: var(--purple); border-style: solid; background: var(--purple-tint-2); transform: scale(1.01); }
.drop-bar { position: absolute; left: 0; bottom: 0; width: calc(var(--p, 0) * 100%); height: 4px; background: var(--purple); opacity: 0; transition: width .3s ease; }
.uploading .drop-bar { opacity: 1; }
.checking .drop-bar { width: 100%; background: linear-gradient(90deg, var(--purple) 0 35%, var(--blue) 50%, var(--purple) 65% 100%); background-size: 200% 100%; animation: bar-shimmer 1.1s linear infinite; }
.uploading .drop, .uploading .file-card { pointer-events: none; }
.uploading .drop-icon { animation: bob 1s ease-in-out infinite; }
@keyframes bar-shimmer { to { background-position: -200% 0; } }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* Previews: one row, the same height, the frame itself is the zone */
.thumbs { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.thumb .thumb-box { height: 190px; width: auto; padding: 10px; }
.thumb .thumb-box.filled { padding: 0; border: 1px solid var(--line); background: var(--bg-deep); }
.thumb .thumb-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .drop-title { font-size: 17px; }
.thumb p { margin: 6px 0 0; }
/* Upload status and errors take the preview's width instead of setting it: a long file name used to widen the
   column and push the next preview to a new row */
.thumb .upload-status, .thumb .msg { width: 0; min-width: 100%; overflow-wrap: anywhere; }
.drop-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(27, 25, 35, .62); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.drop-overlay .ico { width: 18px; height: 18px; }
.thumb-box.filled:hover .drop-overlay, .thumb-box.filled:focus-within .drop-overlay, .thumb-box.filled.dragover .drop-overlay { opacity: 1; }

/* Screenshots: tiles with their tools on hover, the last tile adds more */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-deep); }
.shots .shot img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0; }
.shot-num { position: absolute; left: 6px; top: 6px; min-width: 20px; padding: 0 6px; border-radius: 6px; background: rgba(27, 25, 35, .78); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.shot-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.shot:hover .shot-tools, .shot:focus-within .shot-tools { opacity: 1; }
.shot-tools form { margin: 0; }
.tool-btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: rgba(27, 25, 35, .82); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.tool-btn:hover { background: var(--purple); }
.tool-btn.danger:hover { background: var(--fail); }
.shot.add { height: 100%; padding: 10px; gap: 4px; border: 1.5px dashed var(--field); }
.shot.add .drop-icon { width: 36px; height: 36px; }
.shot.add .drop-title { font-size: 13.5px; }
@media (hover: none) { .shot-tools { opacity: 1; } }

/* A chosen file: build or video */
.file-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep); transition: border-color .15s, background-color .15s, transform .15s; }
.file-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--purple-tint); color: var(--purple-text); }
.file-meta { display: grid; flex: 1; gap: 2px; min-width: 0; }
.file-meta b { font-size: 14.5px; overflow-wrap: anywhere; }
.file-meta .muted { font-size: 13px; }
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-actions form { margin: 0; }
.file-actions .file-pick { margin-top: 0; }
.file-video { flex: none; width: 160px; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
@media (max-width: 640px) {
  .file-card { flex-wrap: wrap; }
  .file-video { width: 100%; }
  .thumb .thumb-box { height: 150px; }
}

/* Build checks: one row each for "YouTube readiness" and the SDK run, opening to the details */
.checks { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep); }
.check-row + .check-row { border-top: 1px solid var(--line-soft); }
.check-row > summary, .check-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; font-size: 14px; list-style: none; }
.check-row > summary { cursor: pointer; }
.check-row > summary::-webkit-details-marker { display: none; }
.check-row > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.check-row[open] > summary::after { transform: rotate(-135deg); }
.check-row > summary:hover { background: var(--row-tint); }
.check-sum { color: var(--muted); font-size: 13px; }
.check-row .mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--field); }
.check-row.ok .mark { border: 0; background: var(--pass) var(--check) center / 12px no-repeat; }
.check-row.warn .mark { border: 0; background: var(--warn); }
.check-row.fail .mark { border: 0; background: var(--fail); }
.check-row.warn .mark::after, .check-row.fail .mark::after { content: "!"; display: block; color: var(--black); font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.check-row.fail .mark::after { color: var(--white); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin: 0; padding: 2px 14px 4px 42px; list-style: none; font-size: 13.5px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list small { display: block; color: var(--muted); font-size: 12px; }
.check-list .dot { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--field); }
.check-list .c-pass .dot { border: 0; background: var(--pass) var(--check) center / 10px no-repeat; }
.check-list .c-fail .dot { border: 0; background: var(--fail); }
.check-sub { margin: 10px 14px 4px 42px; font-size: 13px; font-weight: 600; }
.check-notes { margin: 0; padding: 0 14px 0 60px; font-size: 13.5px; }
.check-notes li { margin: 3px 0; }
.check-notes .i-error { color: var(--fail-text); }
.check-foot { margin: 8px 14px 12px 42px; font-size: 12.5px; }
/* Preview frames on the view pages (card, review) too: the frame holds its picture, the same height in a row */
.thumb .thumb-box { position: relative; }
.file-view .thumb .thumb-box { height: 170px; padding: 0; border-style: solid; border-color: var(--line); }
.file-view .thumbs a { display: block; height: 100%; }
.checks .check-foot { margin: 8px 14px 12px 42px; }
.checks .check-sub { margin: 10px 14px 4px 42px; }

/* View pages (game card, review page): the same files look as the form, read-only */
.not-set { color: var(--faint); font-style: italic; }
.panel-title .muted { margin-left: 6px; font-size: 14px; font-weight: 500; }
.file-view h3 .muted { font-size: 13px; font-weight: 500; }
.file-view .thumb-box.missing { border: 1.5px dashed var(--field); background: var(--bg-deep); color: var(--faint); font-weight: 600; }
.file-view .thumb-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-view .thumb a.thumb-box { display: block; transition: border-color .15s, transform .15s; }
.file-view .thumb a.thumb-box:hover { border-color: var(--purple); transform: translateY(-2px); }
.file-view .shot a { display: block; height: 100%; }
.file-view .file-card { margin-bottom: 0; }
.manager-memo { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--purple-tint); color: var(--text-body); font-size: 13px; line-height: 1.45; }
.file-caption { margin: 6px 0 0; font-size: 13px; }
.ready-list .ready-go { color: inherit; text-decoration: none; }
.ready-list li:not(.ok) .ready-go:hover { color: var(--text); text-decoration: underline; }
/* Certification, Review & submit (stage 4a): why a step keeps Submit off */
.ready-list li:has(.ready-why) { flex-wrap: wrap; }
.ready-why { flex-basis: 100%; padding-left: 28px; color: var(--muted); font-size: 12.5px; }
.ready-card .ready-title { margin-top: 18px; }
.ready-list li.ok .ready-go { pointer-events: none; }
.ready-list .ready-play { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--purple-tint-2); color: var(--purple-text); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.ready-list .ready-play:hover { background: var(--purple); color: var(--white); }
.ready-list .ready-play svg { width: 10px; height: 10px; fill: currentColor; }
.btn[data-ready-gate]:disabled, .btn.not-yet:disabled, .btn[data-submit-gate]:disabled { opacity: .4; cursor: not-allowed; }  /* not yet, not busy */
.ready-hint { margin: -2px 0 2px; color: var(--muted); font-size: 12.5px; text-align: center; }
/* Buttons with an icon, and the destructive one */
.btn .ico { width: 16px; height: 16px; margin-left: -2px; }
.btn.danger { background: transparent; border-color: rgba(255, 92, 108, .5); color: var(--fail-text); }
.btn.danger:hover { background: rgba(255, 92, 108, .12); border-color: var(--fail); color: var(--fail-text); }

/* Account, admin, docs and 404 pages sit on the tester's "stage" (D-24): a deeper background with the purple dot
   grid and a soft glow at the top, so the cards in the middle stand out from the empty sides. The sticky docs bar
   repeats the same fixed background, so the guide scrolls under it without a visible band. */
.app-page, .admin-page, .docs-page, .plain-page, .docs-page .docs-bar {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 1100px 560px at 50% -160px, rgba(129, 87, 255, .2), transparent 70%),
    radial-gradient(rgba(129, 87, 255, .22) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  background-attachment: fixed, fixed;
}
:root[data-theme="light"] .app-page, :root[data-theme="light"] .admin-page, :root[data-theme="light"] .docs-page,
:root[data-theme="light"] .plain-page, :root[data-theme="light"] .docs-page .docs-bar {
  background-color: #EFEDF5;
  background-image:
    radial-gradient(ellipse 1100px 560px at 50% -160px, rgba(129, 87, 255, .14), transparent 70%),
    radial-gradient(rgba(129, 87, 255, .2) 1px, transparent 1px);
}
.app-page .topbar, .docs-page .topbar, .admin-page .admin-top { background: var(--bg); }
.app-page .game-tile, .app-page .panel, .admin-page .panel, .admin-page .table-wrap, .docs-page .doc { box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .18); }

/* Radios and checkboxes in the site's style (the native ones look foreign on the dark theme) */
input[type="radio"], input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 18px; height: 18px; margin: 0; border: 2px solid var(--field-hover); background: var(--bg-deep); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"]:hover, input[type="checkbox"]:hover { border-color: var(--purple); }
input[type="radio"]:checked { border-color: var(--purple); background: radial-gradient(circle, var(--purple) 0 4px, transparent 4.5px), var(--bg-deep); }
input[type="checkbox"]:checked { border-color: var(--purple); background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.9 8.5 9.4 3.7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(129, 87, 255, .3); }
.has-error input[type="checkbox"] { border-color: var(--fail); }
/* A click on a choice must not select its text (and highlight the radio as a purple square) */
.choices label, .field.check label { user-select: none; -webkit-user-select: none; }
.choices label { align-items: center; }
.review-side .choices label { align-items: center; }
.field.check input { margin-top: 2px; }

/* Game card head: cover, title, status and the action now, with the progress along the bottom (15.10.2026) */
.game-head { position: relative; overflow: hidden; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.game-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(180deg, var(--purple-tint), transparent), var(--pattern) 0 0 / 128px 128px; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
:root[data-theme="light"] .game-head::before { opacity: .35; }
.game-head-top { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
.game-head-text { min-width: 0; }
.game-head-text h1 { overflow-wrap: anywhere; }
.game-head .lede { margin-top: 8px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.head-actions form { margin: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 18px 12px 18px; border-top: 1px solid var(--line-soft); list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; counter-increment: step; }
.steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--field); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.steps li::after { content: ""; position: absolute; top: 13px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; border-radius: 2px; background: var(--field); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { content: ""; border-color: var(--pass); background: var(--pass) var(--check) center / 13px no-repeat; }
.steps li.done::after { background: var(--pass); }
.steps li.current { color: var(--text); font-weight: 700; }
.steps li.current::before { border-color: var(--purple); background: var(--purple); color: var(--white); box-shadow: 0 0 0 6px rgba(129, 87, 255, .2); }
.steps li.current.warn::before { border-color: var(--warn-edge); background: var(--warn); color: var(--black); box-shadow: 0 0 0 6px rgba(223, 255, 26, .16); }
.steps li.current.fail::before { content: "✕"; border-color: var(--fail); background: var(--fail); color: var(--white); box-shadow: 0 0 0 6px rgba(255, 92, 108, .18); }
@media (max-width: 640px) {
  .game-head-top { flex-wrap: wrap; padding: 18px; }
  .head-actions { width: 100%; margin-left: 0; }
  .steps { padding: 14px 2px; }
  /* five steps on a phone: the longest label (Certification) has to fit a fifth of the width */
  .steps li { font-size: 10.5px; letter-spacing: -.01em; }
}
/* My games: status tabs */
.status-tabs { margin-bottom: 0; }
.games-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

/* My games: tiles or table (the choice is root[data-games-view], set by theme.js) */
.view-toggle { flex: none; display: flex; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 12px; }
.view-toggle button { display: grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.view-toggle button:hover { color: var(--text); }
.view-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.view-toggle svg { width: 17px; height: 17px; }
.games-head { display: none; }
:root[data-games-view="table"] .game-grid { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
:root[data-games-view="table"] .games-head,
:root[data-games-view="table"] .tile-link { display: grid; grid-template-columns: 64px minmax(0, 1fr) 170px 110px 76px; align-items: center; column-gap: 16px; padding: 10px 16px; }
:root[data-games-view="table"] .games-head { padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
:root[data-games-view="table"] .game-tile { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; box-shadow: none; transform: none; }
:root[data-games-view="table"] .game-tile:last-child { border-bottom: 0; }
:root[data-games-view="table"] .game-tile:hover { background: var(--row-tint); }
:root[data-games-view="table"] .game-tile::before { inset: 0 auto 0 0; width: 3px; height: auto; }
:root[data-games-view="table"] .tile-cover { grid-row: span 2; width: 64px; border-radius: 8px; }
:root[data-games-view="table"] .tile-letter { font-size: 18px; }
:root[data-games-view="table"] .tile-body,
:root[data-games-view="table"] .tile-meta { display: contents; }
:root[data-games-view="table"] .tile-title { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; }
:root[data-games-view="table"] .game-tile:has(.expiry) .tile-title { grid-row: 1; align-self: end; }
:root[data-games-view="table"] .tile-meta > .status { grid-column: 3; grid-row: 1 / span 2; justify-self: start; }
:root[data-games-view="table"] .game-tile:has(.update-badge) .tile-meta > .status:first-child { grid-row: 1; align-self: end; }
:root[data-games-view="table"] .tile-meta > .status.update-badge { grid-row: 2; align-self: start; }  /* an update beside Live (YG-0017) */
:root[data-games-view="table"] .tile-meta > .muted { grid-column: 4; grid-row: 1 / span 2; font-size: 13.5px; }
:root[data-games-view="table"] .game-tile .expiry { grid-column: 2; grid-row: 2; align-self: start; }
:root[data-games-view="table"] .tile-actions { top: 50%; right: 16px; transform: translateY(-50%); }
:root[data-games-view="table"] .tile-action { box-shadow: none; }
@media (max-width: 640px) {
  :root[data-games-view="table"] .games-head,
  :root[data-games-view="table"] .tile-link { grid-template-columns: 48px minmax(0, 1fr) auto 76px; column-gap: 12px; padding-inline: 12px; }
  :root[data-games-view="table"] .tile-cover { width: 48px; }
  :root[data-games-view="table"] .games-head span:nth-child(4),
  :root[data-games-view="table"] .tile-meta > .muted { display: none; }
}
.tab-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.tabs a[aria-current="page"] .tab-count { background: rgba(255, 255, 255, .22); color: var(--white); }
.tabs a:not([aria-current]):hover { background: var(--surface-2); color: var(--text); }

/* Toasts (YG-0011): what just happened, at the top under the header (60px), instead of a reloaded page with a banner */
.toasts { position: fixed; left: 50%; top: 72px; z-index: 50; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 30px var(--shadow); animation: toast-in .2s ease; transition: opacity .3s, transform .3s; }
.toast::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--pass) var(--check) center / 12px no-repeat; }
.toast.error { border-color: rgba(255, 92, 108, .45); white-space: pre-line; border-radius: 14px; }
.toast.error::before { content: "!"; display: grid; place-items: center; background: var(--fail); color: var(--black); font-size: 12px; font-weight: 800; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: none; } }


/* Submission format (D-21): with a build or without; .if-build / .if-no-build follow the choice */
.format-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; padding: 0; border: 0; }
.format-switch legend { grid-column: 1 / -1; margin-bottom: 10px; padding: 0; font-weight: 700; font-size: 16px; }
.format-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; user-select: none; transition: border-color .15s, background-color .15s; }
.format-option:hover { border-color: var(--field-hover); }
.format-option:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.format-option input { margin-top: 2px; }
.format-option b { display: block; font-size: 15px; line-height: 1.3; }
.format-option .muted { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; }
.format-note { margin: 0 0 18px; padding: 12px 14px; border: 1px dashed var(--field); border-radius: 12px; color: var(--muted); font-size: 14px; }
.edit-layout[data-with-build="1"] .if-no-build, .edit-layout[data-with-build="0"] .if-build { display: none; }
@media (max-width: 640px) { .format-switch { grid-template-columns: 1fr; } }

/* Submission fields (D-22): version, the ads block, a counter over its limit. Ads classes are monet-*: ad blockers
   hide generic ad-like class names (EasyList) and a partner saw an empty block (test_no_adblock_names) */
.counter.over { color: var(--fail-text); font-weight: 700; }
.version-field input { max-width: 180px; }
.monet-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.monet-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-deep); }
.monet-item > div { display: grid; gap: 6px; }
.monet-item label { font-weight: 700; }
.monet-item .muted { margin: 0; font-size: 13px; }
.monet-item textarea { margin-top: 4px; }
.monet-item.auto { align-items: center; border-style: dashed; background: transparent; }
.monet-item.auto b { font-size: 15px; }
.monet-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--purple-tint); color: var(--purple-text); font-size: 13px; font-weight: 800; letter-spacing: -.08em; }
.monet-item.auto .monet-mark { background: var(--chip); color: var(--muted); }
.monet-item:focus-within { border-color: var(--purple); }
.monet-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(53, 229, 145, .14); color: var(--pass-text); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.monet-facts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.monet-facts b { display: inline-block; min-width: 92px; }
.monet-mark svg { width: 18px; height: 18px; }
.monet-head { display: flex; align-items: center; gap: 8px; }
.monet-head .monet-tag { margin-left: 0; }

/* The form in the blocks of Game details in the Playables Portal (D-23): each block a panel; the file slots inside
   it lose their own frame */
.format-panel { display: grid; gap: 10px; }
.format-panel .format-switch { margin: 0; }
.form-sec { display: grid; gap: 18px; }
.form-sec h2 { margin: 0; font-size: 19px; }
.form-sec h2 .optional { margin-left: 6px; font-size: 13px; }
.sec-lede { margin: -10px 0 0; color: var(--muted); font-size: 14px; }
.sub-head { margin-bottom: -10px; font-size: 15px; }
.form-sec .upload-slot { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.form-sec .upload-slot.has-error { padding-left: 12px; border-left: 3px solid var(--fail); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* Ready-made places under the ad fields (D-26): a pressed chip is in the text */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-body); font: inherit; font-size: 13px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.chip:hover { border-color: var(--purple); color: var(--text); }
.chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(129, 87, 255, .35); }
.chip[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-tint-2); color: var(--text); }
.chip[aria-pressed="true"]::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.9 8.5 9.4 3.7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.9 8.5 9.4 3.7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chip-none { border-style: dashed; color: var(--muted); }

/* A block title with an action on the right, e.g. Thumbnails and the cover guide */
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sec-head .btn .ico { width: 15px; height: 15px; margin: 0 -2px 0 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The site's own confirm dialog (app.js, form[data-confirm]) */
.confirm-dialog { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 60px var(--shadow); }
.confirm-dialog[open] { animation: confirm-in .16s ease-out; }
.confirm-dialog::backdrop { background: rgba(14, 12, 20, .62); backdrop-filter: blur(3px); }
.confirm-dialog h2 { margin: 0; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.confirm-note { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.btn.danger-solid { background: var(--fail); border-color: var(--fail); color: #fff; }
.btn.danger-solid:hover { background: #ff7482; border-color: #ff7482; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }

/* Analytics (YG-0027): /admin/analytics and a user's card. Charts are SVG without inline styles (CSP). */
.analytics .stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.analytics .stats dd.text { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.analytics .an-section { margin: 0 0 44px; scroll-margin-top: 16px; }
.analytics .sub-title { margin: 24px 0 10px; font-size: 15px; font-weight: 700; }
.analytics .note { margin: -4px 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.analytics .table-wrap + .note { margin-top: 12px; }
.head-links { display: inline-flex; gap: 8px; }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 14px; }
.period .chip { text-decoration: none; }
.period .chip.current { border-color: var(--purple); background: var(--purple-tint-2); color: var(--text); }
.period .muted { font-size: 13px; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 28px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.jump a { color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--text); }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.two-cols > section .section-title { margin-top: 0; }
table.users.compact td, table.users.compact th { padding: 9px 14px; }
.users .bar-col { width: 28%; min-width: 90px; vertical-align: middle; }
.meter { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--chip); }
.meter rect { fill: var(--purple); }
/* Charts (_charts.html). The plots stretch to their box, so strokes don't scale and text stays in HTML. */
:root { --chart-1: var(--purple); --chart-2: var(--blue); --chart-3: var(--green); --chart-4: var(--yellow); --chart-u: var(--field); }
/* on white the brand teal, green and yellow are too pale for a line or a slice */
:root[data-theme="light"] { --chart-2: #14ADB0; --chart-3: #19B86C; --chart-4: #B3C400; --chart-u: #D3CEDD; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.chart-box { min-width: 0; margin: 0; padding: 16px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.chart-box figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 14px; }
.trend-title { color: var(--text); font-size: 14px; font-weight: 700; }
.trend-sum { color: var(--muted); font-size: 12.5px; }
.trend-sum b { color: var(--text-body); font-weight: 600; font-variant-numeric: tabular-nums; }
.trend-body { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 150px auto; column-gap: 10px; }
.trend-y { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 18px; color: var(--faint); font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.trend-y span { height: 0; line-height: 0; }  /* zero-height: each label is centred on its grid line */
.trend-plot { grid-column: 2; grid-row: 1; display: block; width: 100%; height: 150px; overflow: visible; }
.trend-x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.trend-x .only { margin: 0 auto; }
.trend-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.trend-grid line.base { stroke-dasharray: none; }
.trend-line { fill: none; stroke: var(--chart-1); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.trend-area { pointer-events: none; }
.trend-stop-top { stop-color: var(--chart-1); stop-opacity: .32; }
.trend-stop-bottom { stop-color: var(--chart-1); stop-opacity: 0; }
.tone-2 .trend-line { stroke: var(--chart-2); }
.tone-2 .trend-stop-top, .tone-2 .trend-stop-bottom { stop-color: var(--chart-2); }
.trend-hits rect { fill: transparent; }
.trend-hits line { stroke: var(--text); stroke-opacity: 0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-hits .pt:hover rect { fill: var(--chip); }
.trend-hits .pt:hover line { stroke-opacity: .5; }
/* Headline numbers with their change and daily shape */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.kpi { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.kpi dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi dd { margin: 0; }
.kpi .kpi-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.kpi-num { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .delta { margin-left: 0; }
.kpi .kpi-foot { display: flex; flex: 1; align-items: flex-end; min-height: 30px; margin-top: 10px; color: var(--faint); font-size: 12.5px; }
.spark { display: block; width: 100%; height: 30px; overflow: visible; }
.spark-hits rect { fill: transparent; }
.spark-line { fill: none; stroke: var(--chart-1); stroke-width: 1.75; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--chart-1); fill-opacity: .12; }
.spark.tone-2 .spark-line { stroke: var(--chart-2); }
.spark.tone-2 .spark-area { fill: var(--chart-2); }
/* The chart switch (YG-0010): each tile is a link to its chart under the tiles; app.js swaps them without a reload */
.chart-switch { margin: 0 0 28px; }
.chart-switch .trend-body { grid-template-rows: 230px auto; }
.chart-switch .trend-plot { height: 230px; }
.kpi.picked { position: relative; transition: border-color .15s, background-color .15s; }
.kpi.picked:hover { border-color: var(--field-hover); }
.kpi.current, .kpi.current:hover { border-color: var(--purple); background: var(--purple-tint); box-shadow: inset 0 3px 0 var(--purple); }
.kpi-pick { color: inherit; text-decoration: none; }
.kpi-pick::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }  /* the whole tile is the link */
.kpi-pick:focus-visible { outline: none; }
.kpi.picked:has(.kpi-pick:focus-visible) { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.trend-prev { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; pointer-events: none; }
.trend-key { margin-left: 8px; white-space: nowrap; }
.trend-key i { display: inline-block; width: 14px; height: 0; margin: 0 5px 0 8px; border-top: 2px solid var(--chart-1); vertical-align: middle; }
.tone-2 .trend-key i.now { border-top-color: var(--chart-2); }
.trend-key i.prev { border-top: 2px dashed var(--faint); }
.period-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.period-seg a { padding: 6px 14px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.period-seg a:hover { color: var(--text); }
.period-seg a.current { background: var(--purple); color: var(--white); }
@media (max-width: 640px) {
  .chart-switch .trend-body { grid-template-rows: 170px auto; }
  .chart-switch .trend-plot { height: 170px; }
}
/* Chart tips (app.js): fixed to the window, placed by the script over the hovered point or bar */
.chart-tip { position: fixed; z-index: 60; display: grid; gap: 2px; max-width: 260px; padding: 8px 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px var(--shadow); color: var(--text-body); font-size: 12.5px; line-height: 1.35; pointer-events: none; }
.chart-tip b { color: var(--text); font-size: 12.5px; }
.chart-tip-prev { color: var(--muted); }
.chart-dot { position: fixed; z-index: 59; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--chart-1); pointer-events: none; }
.chart-dot.tone-2 { background: var(--chart-2); }
.bar-list li[data-tip], .legend li[data-tip] { cursor: default; }
/* Shares: bar lists and rings in cards */
.analytics .table-wrap + .section-title { margin-top: 32px; }
/* Three cards a row also on a game's page, which is narrower than the admin pages */
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 28px; }
.viz-card { min-width: 0; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.viz-title { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.viz-empty { margin: 0; color: var(--muted); font-size: 13.5px; }
.bar-list, .legend { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; gap: 5px 10px; align-items: baseline; font-size: 13.5px; }
.bar-list .meter { grid-column: 1 / -1; height: 8px; border-radius: 4px; }
.bar-label { overflow: hidden; color: var(--text-body); text-overflow: ellipsis; white-space: nowrap; }
.bar-num { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bar-share { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-list li.rest .meter rect { fill: var(--chart-u); }
.donut-wrap { display: grid; justify-items: center; gap: 16px; }
.donut { position: relative; width: 132px; height: 132px; }
.donut-ring { display: block; width: 100%; height: 100%; }
.donut-track { fill: none; stroke: var(--chip); stroke-width: 6; }
.donut-part { fill: none; stroke-width: 6; transition: stroke-width .15s; }
.donut-part:hover { stroke-width: 7.5; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; line-height: 1.2; text-align: center; pointer-events: none; }
.donut-center b { font-size: 19px; font-variant-numeric: tabular-nums; }
.donut-center span { max-width: 78px; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.legend { justify-self: stretch; min-width: 0; }
.legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 42px; gap: 8px; align-items: center; font-size: 13.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.donut-part.c1 { stroke: var(--chart-1); } .dot.c1 { background: var(--chart-1); }
.donut-part.c2 { stroke: var(--chart-2); } .dot.c2 { background: var(--chart-2); }
.donut-part.c3 { stroke: var(--chart-3); } .dot.c3 { background: var(--chart-3); }
.donut-part.c4 { stroke: var(--chart-4); } .dot.c4 { background: var(--chart-4); }
.donut-part.cu { stroke: var(--chart-u); } .dot.cu { background: var(--chart-u); }
@media (max-width: 640px) {
  .games-metrics .bar-col { display: none; }
  .trend-body { grid-template-rows: 120px auto; }
  .trend-plot { height: 120px; }
  .kpi-num { font-size: 22px; }
}
.more { margin-top: 12px; }

/* Playables analytics (YG-0010): the partner's Analytics, a game's tab and Admin › Metrics */
.delta { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.55; vertical-align: middle; white-space: nowrap; }
.delta.up { color: var(--pass-text); background: rgba(53, 229, 145, .14); }
.delta.down { color: var(--fail-text); background: rgba(255, 92, 108, .13); }
.users .delta { margin-left: 0; }
.games-metrics .bar-col { width: 14%; min-width: 64px; }
.games-metrics tr.other td { color: var(--muted); }
.game-tabs { margin: 0 0 24px; }
.analytics .two-cols + .two-cols { margin-top: 16px; }
.more summary { cursor: pointer; color: var(--purple-text); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.narrow-table { max-width: 560px; }
.cohorts td.heat { color: var(--text); }
.cohorts .h0 { background: transparent; }
.cohorts .h1 { background: rgba(129, 87, 255, .08); } .cohorts .h2 { background: rgba(129, 87, 255, .14); }
.cohorts .h3 { background: rgba(129, 87, 255, .2); } .cohorts .h4 { background: rgba(129, 87, 255, .27); }
.cohorts .h5 { background: rgba(129, 87, 255, .34); } .cohorts .h6 { background: rgba(129, 87, 255, .42); }
.cohorts .h7 { background: rgba(129, 87, 255, .5); } .cohorts .h8 { background: rgba(129, 87, 255, .6); }
.cohorts .h9 { background: rgba(129, 87, 255, .7); } .cohorts .h10 { background: rgba(129, 87, 255, .8); }
.cohorts tfoot th, .cohorts tfoot td { padding: 9px 14px; border-top: 1px solid var(--line); text-align: left; }
.cohorts tfoot td.num { text-align: right; }
.badge.muted-badge { background: var(--chip); color: var(--muted); }
.tracking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 28px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.tracking p { margin: 0; flex: 1 1 320px; }
/* A user's access on their card: Manager and Analytics checkboxes, set by admins */
.access-boxes { display: grid; gap: 8px; flex: 1 1 420px; }
.access-boxes label { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.session { margin: 0 0 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.session h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; }
.timeline { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.timeline li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.timeline li.action { border-left-color: var(--purple); }
.timeline time { min-width: 44px; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .two-cols, .charts { grid-template-columns: 1fr; }
}
/* the analytics grids have a ragged last row: lines per cell, so the empty rest stays plain */
.analytics .stats { gap: 0; background: var(--surface); }
.analytics .stats div { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }

/* Certification wizard (YG-0004) */
/* The certification wizard's steps (YG-0004): three cards joined by a line — done (green tick), current (purple),
   to do (number); each is a link, so any step can be opened again */
.wz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0 0 22px; padding: 0; list-style: none; }
.wz-step { position: relative; }
.wz-step:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 28px; height: 2px; background: var(--field); }
.wz-step.done:not(:last-child)::after { background: var(--pass); }
.wz-step a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; }
.wz-step a:hover { border-color: var(--purple); }
.wz-step.current a { border-color: var(--purple); background: var(--purple-tint); box-shadow: 0 0 0 3px rgba(129, 87, 255, .18); }
.wz-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--field); border-radius: 50%; color: var(--muted); font-size: 13.5px; font-weight: 800; }
.wz-mark svg { width: 16px; height: 16px; }
.wz-step.done .wz-mark { border-color: var(--pass); background: var(--pass); color: #0b2a1b; }
.wz-step.current:not(.done) .wz-mark { border-color: var(--purple); background: var(--purple); color: var(--white); }
.wz-text { display: grid; gap: 2px; min-width: 0; }
.wz-label { font-weight: 700; }
.wz-note { color: var(--muted); font-size: 12.5px; }
.wz-step.done .wz-note { color: var(--pass-text); }
@media (max-width: 760px) {
  .wz-steps { grid-template-columns: 1fr; gap: 8px; }
  .wz-step:not(:last-child)::after { display: none; }
  .wz-step a { padding: 10px 12px; }
}
.monet-item .sub-label { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.tags { margin: 0; padding: 0; border: 0; }
.tags legend { margin-bottom: 6px; font-weight: 600; }
.tags-more { margin: 0 0 16px; }
.tags-more > summary { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-weight: 600; cursor: pointer; list-style: none; }
.tags-more > summary::-webkit-details-marker { display: none; }
.tags-more > summary::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.tags-more[open] > summary::after { transform: rotate(-135deg); }
.tags-more > summary:hover { color: var(--purple-text); }
.tag-group { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.tag-group-name { flex-basis: 100%; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.card-previews { display: grid; grid-template-columns: 5fr 7fr; gap: 12px; align-items: start; margin-bottom: 10px; }
.card-preview { margin: 0; }
.card-preview figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.card-art { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.card-preview.tall .card-art { aspect-ratio: 5 / 7; }
.card-preview.square .card-art { aspect-ratio: 1; }
.card-art.empty { border-style: dashed; }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-play { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 11.5px; font-weight: 700; }

/* Certification, step Test (YG-0004): the preview and the checklist on one page, as in the Playables Portal */
.cert-test { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr); grid-template-areas: "preview checklist" "links bundle"; gap: 20px; align-items: start; }
.preview-panel { grid-area: preview; }
.cert-test .testing-links { grid-area: links; }
.cert-test #sec-bundle { grid-area: bundle; min-width: 0; }
/* The checklist is as tall as the preview, whatever its content: the panel fills the row the preview sets, and its
   sections scroll inside */
.cert-checklist { grid-area: checklist; position: relative; align-self: stretch; min-width: 0; }
.checklist { position: absolute; inset: 0; display: flex; flex-direction: column; }
.checklist .cert-sections { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.checklist .ready-card { flex: none; margin-top: 12px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.checklist .ready-actions { display: flex; gap: 10px; }
.checklist .ready-actions .btn { flex: 1; }
/* Narrow screens: one column, the checklist as long as it needs. The preview drops 16:9: with its minimum height the
   ratio would widen it past a phone's screen */
@media (max-width: 1000px) {
  .cert-test { grid-template-columns: 1fr; grid-template-areas: "preview" "checklist" "bundle" "links"; }
  .cert-test .preview-frame { aspect-ratio: auto; height: min(70vh, 600px); min-height: 360px; }
  .checklist { position: static; }
  .checklist .cert-sections { overflow: visible; }
}
.preview-panel h2, .testing-links h2, .checklist h2 { margin: 0 0 12px; font-size: 18px; }
.preview-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); min-height: 420px; overflow: hidden; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.preview-frame.empty { display: grid; place-items: center; height: 240px; min-height: 0; aspect-ratio: auto; color: var(--muted); }
.qr-row { display: flex; gap: 16px; align-items: center; }
.qr { flex: none; border-radius: 8px; background: #fff; }
.qr-row p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.testing-url a { overflow-wrap: anywhere; font-size: 13.5px; }
.cert-sections { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cert-section { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.cs-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cs-head:disabled { cursor: default; opacity: .6; }
.cs-title { flex: 1; font-weight: 600; }
.cs-state { color: var(--muted); font-size: 13px; }
.cs-mark { flex: none; width: 18px; height: 18px; border: 2px solid var(--field); border-radius: 50%; }
.cert-section[data-state="passed"] .cs-mark { border-color: var(--pass); background: var(--pass) var(--check) center / 11px no-repeat; }
.cert-section[data-state="failed"] .cs-mark { border-color: var(--fail); background: var(--fail); }
.cert-section[data-state="passed"] .cs-state { color: var(--pass-text); }
.cert-section[data-state="failed"] .cs-state { color: var(--fail-text); }
.cs-body { padding: 0 14px 14px 42px; }
.cs-lede { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.cs-steps { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.cs-step { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.cs-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--field); }
.cs-step.ok .cs-dot { background: var(--pass); }
.cs-step.fail .cs-dot { background: var(--fail); }
.cs-step.ask .cs-dot { background: var(--purple); }
.cs-step.wait .cs-dot { background: var(--yellow); animation: cs-pulse 1s ease-in-out infinite; }
@keyframes cs-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .cs-step.wait .cs-dot { animation: none; } }
.cs-step p { margin: 0 0 6px; }
.cs-hint { color: var(--muted); font-size: 13px; }
.cs-answer { display: flex; gap: 8px; }
/* An answered question and a pressed step button are just done: not loading (.btn:disabled shows progress) */
.cs-step .btn:disabled { cursor: default; opacity: .45; }
.cs-answer .btn.chosen:disabled { opacity: 1; border-color: var(--purple); background: rgba(129, 87, 255, .2); }
.cs-step .qr { margin: 4px 0 6px; }
.cs-result { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.cs-result.ok { border: 1px solid var(--pass); background: rgba(53, 229, 145, .08); }
.cs-result.fail { border: 1px solid var(--fail); background: rgba(255, 92, 108, .08); }
.cs-result p { margin: 4px 0 8px; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-size { margin: 8px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Certification, Age rating (YG-0004): the IARC questionnaire */
.iarc-type { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.iarc-categories { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.iarc-category { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.iarc-category h3 { margin: 0 0 10px; font-size: 16px; }
.iarc-q { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.iarc-q legend { margin-bottom: 8px; padding: 0; font-weight: 500; font-size: 14.5px; max-width: 72ch; }
.iarc-options { display: grid; gap: 6px; }
.iarc-options.inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.iarc-opt { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.iarc-opt input { margin-top: 3px; accent-color: var(--purple); }
.iarc-nested, .iarc-items { margin: 4px 0 6px 6px; padding: 10px 0 0 16px; border-left: 2px solid var(--line); }

/* Manager's certification card (YG-0004, stage 4a): the Playables Portal's order, a Copy button per text */
.portal-sec h2 .muted { font-size: 13px; font-weight: 500; }
.copy-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.copy-row:last-child { border-bottom: 0; }
.copy-row > dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.copy-row > dd { margin: 0; overflow-wrap: anywhere; }
.copy-row .field { margin: 0; }
.copy-btn { padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-body); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--purple); color: var(--text); }
.copy-btn.done { border-color: var(--pass); color: var(--pass-text); }
.copy-note { display: block; margin-top: 4px; color: var(--warn-text); font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
/* The extension's install page for managers (YG-0030) */
.ext-help .panel h2 { margin-top: 0; }
.ext-help .admin-head .btn { white-space: nowrap; }
.howto { margin: 10px 0 0; padding-left: 22px; }
.howto > li { margin: 0 0 10px; line-height: 1.55; }
.howto ul { margin: 6px 0; padding-left: 20px; }
.howto-copy { max-width: 520px; margin: 8px 0 0; }
.howto-copy .copy-row { grid-template-columns: 80px minmax(0, 1fr) auto; }
.faq dt { margin-top: 12px; font-weight: 700; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--text-body); }
.cert-tests { margin: 0; padding: 0; list-style: none; }
.cert-tests > li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cert-tests > li:last-child { border-bottom: 0; }
.cert-tests summary { cursor: pointer; font-weight: 700; }
.qa { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.qa li { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(45%); gap: 12px; }
.qa li b { text-align: right; } /* a long multi-choice answer wraps in its column instead of squeezing the question */
.qa .heading { display: block; margin-top: 8px; font-weight: 700; color: var(--text); }
.qa .d1 { padding-left: 14px; } .qa .d2 { padding-left: 28px; } .qa .d3 { padding-left: 42px; } .qa .d4 { padding-left: 56px; } .qa .d5 { padding-left: 70px; }
.ratings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.ratings { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) {
  .copy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .copy-row > dt { grid-column: 1 / -1; }
  .ratings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A change request's files (YG-0004, D-40): the team downloads YouTube's videos and screenshots of the issues */
.request-files { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.request-files li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.request-files li > span:not(.request-video) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.request-thumb, .request-video { flex: none; display: grid; place-items: center; width: 56px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--chip); color: var(--muted); }
.request-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status-panel.s-cert_changes, .status-panel.s-youtube_changes { border-left-color: var(--warn-edge); }
.status-panel.asked { margin-top: 16px; }
.attach { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.attach legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.attach-pick { justify-self: start; cursor: pointer; }
.attach .request-files li { font-size: 13px; }
.review-side .panel + .panel { margin-top: 14px; }
.review-side:has(#sec-request) { position: static; }  /* taller than the screen: it scrolls with the page */
.request-scope { margin-top: 10px !important; font-size: 13.5px; }
.scope { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.scope legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.scope label { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: 13.5px; }
.scope .muted { flex-basis: 100%; padding-left: 24px; font-size: 12.5px; }
/* A version's changes on the manager's card: before, then after */
.diff { margin: 0; }
.diff-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.diff-row:last-child { border-bottom: 0; }
.diff-row dt { color: var(--muted); font-size: 13px; }
.diff-row dd { margin: 0; overflow-wrap: anywhere; }
.diff-row .old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 92, 108, .6); }
.diff-row .old:has(img) { text-decoration: none; opacity: .7; }
.diff-row img { max-width: 160px; max-height: 120px; border-radius: 8px; display: block; }
#sec-changed { border-top: 3px solid var(--warn-edge); }
@media (max-width: 760px) { .diff-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .diff-row dt { grid-column: 1 / -1; } }

/* Scorecards by Yoola staff (YG-0038) */
.tier { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--chip); color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tier.t-AAA { background: var(--purple); color: var(--white); }
.tier.t-A { background: rgba(53, 229, 145, .14); color: var(--pass-text); }
.tier.t-B { background: var(--purple-tint); color: var(--purple-text); }
.tier.t-C { background: rgba(223, 255, 26, .14); color: var(--warn-text); }
.tier.t-D { background: rgba(255, 92, 108, .12); color: var(--fail-text); }
.tier.t-none { color: var(--muted); font-weight: 600; }
.score-side p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; }

.score-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.score-big { margin: 0; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.score-big small { margin-left: 2px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.score-head.draft .score-big { color: var(--muted); }
.score-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.score-sum .tier { padding: 3px 10px; font-size: 13px; }
.score-meta { color: var(--muted); font-size: 13px; }
/* The tier floors (40, 60, 75, 90) marked on the bar */
.score-bar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 999px; background:
  linear-gradient(90deg, transparent calc(40% - 1px), var(--field) 0 40%, transparent 0 calc(60% - 1px), var(--field) 0 60%,
  transparent 0 calc(75% - 1px), var(--field) 0 75%, transparent 0 calc(90% - 1px), var(--field) 0 90%, transparent 0), var(--chip); overflow: hidden; }
.score-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--purple); transition: width .2s; }
.score-head.draft .score-bar span { background: var(--field-hover); }
.score-scale { grid-column: 1 / -1; margin: 0; font-size: 12px; }

.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.score-item { min-width: 0; margin: 0; padding: 10px 12px 10px; border: 1px solid var(--line); border-radius: 12px; }
.score-item legend { float: left; width: 100%; display: flex; align-items: center; gap: 6px; padding: 0; font-size: 14px; }
.score-item legend b { margin-right: auto; }
.score-weight { padding: 0 6px; border-radius: 6px; background: var(--chip); color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 18px; }
.score-hint { clear: both; min-height: 2.7em; margin: 2px 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }  /* pills in line across a row */
.score-pills { display: flex; gap: 4px; }
.score-pills .pill { flex: 1; position: relative; display: block; min-width: 0; padding: 4px 0; border: 1px solid var(--line); border-radius: 8px; color: var(--text-body); font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; user-select: none; }
.score-pills .pill.none { flex: .7; color: var(--muted); }
.score-pills .pill:hover { border-color: var(--field-hover); }
.score-pills input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.score-pills .pill:has(input:checked), .score-pills .pill.on { border-color: var(--purple); background: var(--purple); color: var(--white); }
.score-pills .pill.none:has(input:checked) { border-color: var(--line); background: var(--chip); color: var(--muted); }
.score-pills .pill:has(input:focus-visible) { outline: 2px solid var(--purple-text); outline-offset: 1px; }
.score-pills .pill:has(input:disabled) { cursor: default; }
.score-item.auto .pill { cursor: default; }
.score-item.auto .pill:not(.on) { opacity: .55; }
.score-pills .pill.ghost { visibility: hidden; }  /* lines the computed pills up with the rated ones */
.score-level { margin: 6px 0 0; font-size: 12.5px; line-height: 1.35; }

.score-bonus { margin: 0 0 16px; padding: 0; border: 0; }
.score-bonus legend { margin-bottom: 8px; padding: 0; }
.score-bonus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.score-bonus-grid label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.score-bonus-grid label:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.score-bonus-grid input { margin-top: 2px; }
.score-bonus-grid .muted { font-size: 12.5px; }
.scorecard .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.score-more { margin-top: 12px; }
/* The folded developer scorecard looks clickable (YG-0047): a tinted row and a chevron that nudges on hover */
.score-more > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 -10px; padding: 8px 10px; border-radius: 10px; list-style: none; cursor: pointer; transition: background-color .15s; }
.score-more > summary::-webkit-details-marker { display: none; }
.score-more > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s, border-color .15s; }
.score-more > summary:hover { background: var(--purple-tint); }
.score-more > summary:hover b { color: var(--purple-text); }
.score-more > summary:hover::after { border-color: var(--purple-text); transform: translateY(2px) rotate(45deg); }
.score-more[open] > summary { margin-bottom: 8px; }
.score-more[open] > summary::after { transform: rotate(-135deg); }
.score-more[open] > summary:hover::after { transform: translateY(-2px) rotate(-135deg); }
.score-link .tier { transition: box-shadow .15s, transform .15s; }
.score-link:hover .tier { box-shadow: 0 0 0 2px var(--purple); transform: translateY(-1px); }
.score-more[open] > summary .score-brief { display: none; }  /* the form below shows the live total */
.dev-score { max-width: 760px; }
.search-select { width: auto; height: 40px; }
@media (max-width: 720px) {
  .score-grid, .score-bonus-grid { grid-template-columns: 1fr; }
}

/* Bulk decisions in the review queue (YG-0041): admin_bulk.js */
.queue th.pick, .queue td.pick { width: 36px; padding-right: 0; }
.queue .pick input { width: 16px; height: 16px; accent-color: var(--purple); cursor: pointer; }
.bulk-bar { position: sticky; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--purple-tint-2); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 28px var(--shadow); }
.bulk-bar[hidden] { display: none; }
.bulk-count { margin-right: auto; font-weight: 700; }
.bulk-dialog { width: min(520px, calc(100vw - 32px)); }
.bulk-games { max-height: 160px; overflow: auto; margin: 12px 0 16px; padding: 10px 14px 10px 30px; border-radius: 10px; background: var(--bg-deep); font-size: 14px; line-height: 1.5; }
.bulk-dialog .label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.bulk-dialog textarea { width: 100%; box-sizing: border-box; }
.bulk-final { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.45; }
.bulk-final[hidden] { display: none; }
.bulk-dialog .field-error { margin: 10px 0 0; color: var(--fail-text); font-size: 14px; }

/* Terms of Service and Privacy Policy pages (YG-0042): text from tools/legal_from_docx.py */
.legal .clause { margin: 0 0 12px; }
.legal .clause .num { color: var(--text); font-weight: 700; }
.legal .clause.d2 { padding-left: 22px; }
.legal .clause.d3 { padding-left: 44px; }
.legal a { overflow-wrap: anywhere; }  /* colour and hover: the site's links */
.legal-table { margin: 4px 0 20px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th { padding: 11px 14px; background: var(--purple); color: var(--white); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-table td:first-child { min-width: 160px; color: var(--text); font-weight: 600; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table tbody tr:nth-child(even) td { background: var(--row-tint); }
.signup-legal { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
