/* Fonts: Noto Serif SC (Source Han Serif, the official Infinity Nikki site's headline face) and
   Source Sans 3. Latin + Cyrillic slices only; licences in /static/fonts/OFL-*.txt. */
@font-face { font-family: 'Noto Serif SC'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/static/fonts/noto-serif-sc-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Serif SC'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/static/fonts/noto-serif-sc-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/static/fonts/source-sans-3-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/static/fonts/source-sans-3-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --ground: #f8f4fa;
  --surface: #ffffff;
  --surface-soft: #fffdff;
  --ink: #2a2238;
  --body: #574a6b;
  --muted: #67597a;
  --line: #e4daee;
  --line-strong: #d9cce6;
  --rose: #b23c7f;
  --rose-deep: #8e2c66;
  --rose-tint: #f6e4ef;
  --rose-soft: #f8f1f8;
  --rose-line: #edd9e8;
  --gold: #c9a46a;
  --gold-line: #e2cfa6;
  --gold-ink: #7e6136;
  --slate: #46607e;
  --lilac: #eee6f6;
  --lilac-dot: #9a8cb0;
  --live: #ff4d67;
  --ok: #2e6b47;
  --ok-dot: #2e7d4f;
  --ok-tint: #e6f4ec;
  --error: #b3261e;
  --error-tint: #fcebea;
  --serif: 'Noto Serif SC', 'Source Han Serif', Georgia, serif;
  --sans: 'Source Sans 3', 'Source Han Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --content: 1120px;
  --shadow-card: 0 40px 80px -36px rgba(60, 36, 90, 0.55);
  --shadow-soft: 0 30px 60px -44px rgba(60, 36, 90, 0.45);
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.2 3.4 10.4 12 12-8.6 1.6-11.4 5.8-12 12-.6-6.2-3.4-10.4-12-12 8.6-1.6 11.4-5.8 12-12z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
main { display: flex; flex: 1; flex-direction: column; }
main > .scene { flex: 1; }
a { color: var(--rose); }
a:hover { color: var(--rose-deep); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(178, 60, 127, 0.45); outline-offset: 2px; }
::selection { background: #f3cfe2; color: var(--ink); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--lilac); padding: 1px 6px; border-radius: 6px; }
.icon { width: 1em; height: 1em; flex: none; }
.inline { display: inline; }
.nowrap { white-space: nowrap; }
.muted { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hint { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.1; letter-spacing: -0.01em; }
.display-md { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.15; }
.display-sm { font-size: 28px; line-height: 1.2; }
.accent { color: var(--rose); }
.hero-title .accent { display: block; }
.lead { margin: 0; max-width: 34em; color: var(--body); font-size: 17px; line-height: 1.65; }
.eyebrow { color: var(--gold-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--slate); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tag .icon { width: 10px; height: 10px; }
.rule { display: flex; align-items: center; gap: 8px; margin-top: -6px; color: var(--gold); }
.rule span { flex: 1; height: 1px; background: var(--line-strong); }
.rule .icon { width: 10px; height: 10px; }
.ornament { display: flex; align-items: center; gap: 12px; width: 180px; color: var(--gold); }
.ornament span { flex: 1; height: 1px; background: var(--gold-line); }
.ornament .icon { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.button .icon { width: 20px; height: 20px; }
.button-primary { background: var(--rose); color: #fff; box-shadow: 0 14px 28px -14px rgba(178, 60, 127, 0.8); }
.button-primary:hover { background: var(--rose-deep); color: #fff; }
.button-outline { border-color: var(--rose); color: var(--rose); }
.button-outline:hover { background: var(--rose-tint); color: var(--rose-deep); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #3b3050; color: #fff; }
.button-danger { border-color: var(--error); background: #fff; color: var(--error); }
.button-danger:hover { background: var(--error-tint); color: var(--error); }
.button-pill { border-radius: 999px; }
.button-block { display: flex; width: 100%; min-height: 58px; border-radius: 16px; }
.button-big { min-height: 62px; font-size: 18px; flex-wrap: wrap; gap: 4px 10px; }
.button-small { min-height: 44px; padding: 8px 16px; border-radius: 12px; font-size: 14px; }
.button-meta { font-weight: 500; color: #fbe3ef; }
.link-button { min-height: 44px; padding: 0 12px; border: none; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.link-button:hover { color: var(--rose-deep); }

/* ---------- Header ---------- */
.site-header { background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.live-ribbon { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 16px; font-size: 14px; text-decoration: none; }
.live-ribbon.is-live { background: var(--ink); color: #fff; }
.live-ribbon.is-off, .live-ribbon.is-unknown { background: var(--lilac); color: var(--body); }
.live-ribbon.is-live:hover .live-link { color: #e9c98b; }
.live-ribbon.is-off:hover .live-link, .live-ribbon.is-unknown:hover .live-link { color: var(--rose); }
.live-label { flex: none; color: #e9c98b; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.live-title { min-width: 0; overflow: hidden; color: #efe8f7; text-overflow: ellipsis; white-space: nowrap; }
.live-link { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.is-off .live-link, .is-unknown .live-link { color: var(--rose-deep); }
.live-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--lilac-dot); }
.is-live .live-dot, .button .live-dot { background: var(--live); box-shadow: 0 0 0 4px rgba(255, 77, 103, 0.28); }
.is-unknown .live-dot { background: transparent; border: 2px solid var(--lilac-dot); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--gold-line); border-radius: 50%; background: var(--ground); color: var(--rose); }
.brand-mark .icon { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; }
.brand-game { color: var(--gold-ink); font-size: 10px; font-weight: 800; letter-spacing: 0.28em; line-height: 1; text-transform: uppercase; }
.user-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-link:hover { background: var(--lilac); color: var(--ink); }
.user-nav .button-pill { margin-left: 6px; min-height: 44px; padding: 0 20px; font-size: 15px; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--rose-tint); color: var(--rose-deep); font-size: 13px; font-weight: 800; }
.user-name { font-size: 15px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding: 20px var(--gutter) 28px; background: var(--surface-soft); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; color: var(--muted); font-size: 15px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.footer-brand .icon { width: 14px; height: 14px; color: var(--rose); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-weight: 600; }
.footer-nav .social-link { justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); }
.social-link .icon { width: 22px; height: 22px; }
.footer-nav .social-twitch { color: #7b3fe4; }
.footer-nav .social-telegram { color: #1c87bd; }
.footer-nav .social-link:hover { background: var(--rose-tint); }
.footer-legal { flex: 1 1 100%; margin: 0; font-size: 13px; }

/* ---------- Cards and panels ---------- */
.panel { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-soft); }
.panel-tight { padding: 22px 24px; border-radius: 20px; box-shadow: none; }
.glass { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.5vw, 36px); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 28px; background: rgba(255, 253, 255, 0.84); box-shadow: 0 30px 60px -36px rgba(60, 36, 90, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.item-card { padding: 10px; border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 30px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.item-card-inner { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--gold-line); border-radius: 22px; }
.item-card-inner.centered { align-items: center; gap: 18px; text-align: center; }
.item-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars .icon { width: 12px; height: 12px; }
.badge-open { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--rose-tint); color: var(--rose-deep); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-open .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.version { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.version-number { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.version-meta { color: var(--muted); font-size: 15px; }
.divider { height: 1px; margin: 0; border: 0; background: var(--line); }
.card-text { margin: 0; color: var(--body); font-size: 16px; line-height: 1.6; }
.card-text strong { color: var(--ink); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.card-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-weight: 700; }
.file-name { display: inline-flex; align-items: center; gap: 8px; }
.file-name .icon { width: 16px; height: 16px; }
.icon-circle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--gold-line); border-radius: 50%; background: var(--surface); color: var(--rose); }
.icon-circle .icon { width: 22px; height: 22px; }
.icon-circle-muted { border: none; background: var(--lilac); color: var(--muted); }
.icon-circle-lg { width: 64px; height: 64px; }
.icon-circle-lg .icon { width: 30px; height: 30px; }
.tone-success { border: none; background: var(--rose-tint); color: var(--rose); }
.tone-error { border: none; background: var(--lilac); color: var(--muted); }
.unavailable { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0; }

/* Reward block (home card and admin preview) */
.reward { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--rose-line); border-radius: 18px; background: var(--rose-soft); }
.reward-head { display: flex; align-items: center; gap: 14px; }
.reward-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reward-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.reward-cost { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 14px; border-top: 1px solid var(--rose-line); color: var(--muted); font-size: 15px; }
.reward-cost strong { color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 700; white-space: nowrap; }
.reward-preview .reward-cost { padding-top: 0; border-top: none; }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; color: var(--body); font-size: 15px; line-height: 1.45; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: flex-start; gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--slate); color: #fff; font-size: 13px; font-weight: 700; }

/* Watch-time fallback */
.watch { display: flex; flex-direction: column; gap: 12px; }
.watch-label { margin: 0; font-size: 15px; }
.progress { width: 100%; height: 12px; border: none; border-radius: 999px; overflow: hidden; background: var(--lilac); -webkit-appearance: none; appearance: none; accent-color: var(--rose); }
.progress::-webkit-progress-bar { background: var(--lilac); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--rose); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--rose); border-radius: 999px; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; top: 0; right: 0; left: 0; height: clamp(460px, 50vw, 640px); overflow: hidden; background: #cdbddd; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 28% 30%; }
.hero-art::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 42%; background: linear-gradient(180deg, rgba(248, 244, 250, 0) 0%, rgba(248, 244, 250, 0.85) 72%, var(--ground) 100%); }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 7vw, 96px); }
.hero-copy { flex: 1 1 440px; min-width: 0; padding-top: clamp(250px, 30vw, 380px); }
.hero-card { flex: 1 1 380px; max-width: 460px; min-width: 0; padding-top: clamp(0px, calc(20vw - 136px), 120px); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-ruled { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 44px; text-align: center; }
.how-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.how-card { display: flex; flex: 1 1 280px; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.how-art { position: relative; height: 180px; background: #dcd0e8; }
.how-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.how-art .focus-right { object-position: 68% 40%; }
.how-art .focus-low { object-position: 55% 55%; }
.how-number { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: var(--gold-ink); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.how-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.how-body h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; font-weight: 700; }
.how-body h3 .icon { width: 22px; height: 22px; color: var(--rose); }
.how-body p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.changelog-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 64px; }
.changelog-head { display: flex; flex: 1 1 280px; flex-direction: column; gap: 14px; min-width: 0; }
.changelog { flex: 2 1 480px; min-width: 0; box-shadow: none; font-size: 18px; line-height: 1.55; }
.changelog > :first-child { margin-top: 0; }
.changelog > :last-child { margin-bottom: 0; }
.changelog h1, .changelog h2, .changelog h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.changelog ul, .sparkle-list { display: flex; flex-direction: column; gap: 16px; padding: 0; list-style: none; }
.changelog li, .sparkle-list li { position: relative; padding-left: 28px; }
.changelog li::before, .sparkle-list li::before { content: ''; position: absolute; top: 0.4em; left: 0; width: 14px; height: 14px; background: var(--gold); -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; }

/* ---------- Inner pages ---------- */
.page { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.page-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.page-intro { display: flex; flex: 1 1 320px; flex-direction: column; gap: 20px; min-width: 0; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-size: 15px; font-weight: 700; text-decoration: none; }
.arch { max-width: 360px; padding: 8px; border: 1px solid var(--gold-line); border-radius: 200px 200px 26px 26px; background: rgba(255, 255, 255, 0.6); }
.arch img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: 78% 50%; border-radius: 192px 192px 18px 18px; }
.panel-title-sm { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.sparkle-list { gap: 10px; margin: 0; color: var(--body); font-size: 15px; line-height: 1.5; }
.sparkle-list li { padding-left: 24px; }
.sparkle-list li::before { width: 12px; height: 12px; }

/* Forms */
.form-panel { display: flex; flex: 1.4 1 520px; flex-direction: column; gap: 22px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 200px; min-width: 0; }
.field-label { font-size: 15px; font-weight: 700; }
.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
textarea.input { min-height: 200px; padding: 14px; line-height: 1.6; resize: vertical; }
.input:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.input.is-invalid { border-color: var(--error); }
.input-static { display: flex; align-items: center; color: var(--body); }
.field-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.field-hint .icon { width: 12px; height: 12px; color: var(--gold); }
.field-error { display: flex; align-items: center; gap: 8px; margin: -10px 0 0; color: var(--error); font-size: 14px; font-weight: 700; }
.field-error .icon { width: 16px; height: 16px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; border: 1.5px dashed #d2bfdf; border-radius: 18px; background: var(--ground); font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; }
.dropzone input[type='file'] { max-width: 100%; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; }
.dropzone input[type='file']::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 1px solid var(--rose); border-radius: 999px; background: #fff; color: var(--rose); font: inherit; font-weight: 700; cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 4px; }
.form-actions .button { min-height: 56px; padding: 0 36px; border-radius: 16px; }
.alert { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 14px 18px; border-radius: 16px; font-size: 15px; font-weight: 600; }
.alert .icon { width: 18px; height: 18px; }
.alert-error { background: var(--error-tint); color: var(--error); }
.alert-ok { background: var(--ok-tint); color: var(--ok); }
.copy-field { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* Message page */
.scene { position: relative; display: flex; align-items: center; justify-content: center; min-height: 560px; padding: clamp(56px, 9vw, 120px) var(--gutter); overflow: hidden; background: #cdbddd; }
.scene-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.scene-card { position: relative; width: 100%; max-width: 540px; }
.scene .lead { max-width: 26em; }

/* ---------- Admin ---------- */
.admin-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.admin-main { display: flex; flex: 1.5 1 520px; flex-direction: column; gap: 22px; min-width: 0; }
.admin-side { display: flex; flex: 1 1 320px; flex-direction: column; gap: 24px; min-width: 0; }
.admin-side .panel { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3.5vw, 30px); box-shadow: none; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.panel-title { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.panel-head .chip { margin-left: auto; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip-ok { background: var(--ok-tint); color: var(--ok); }
.chip-muted { background: var(--lilac); color: var(--body); }
.cost-form { display: flex; flex-direction: column; gap: 8px; }
.cost-row { display: flex; flex-wrap: wrap; gap: 10px; }
.input-cost { flex: 1 1 200px; width: auto; min-height: 56px; border-color: var(--rose); font-family: var(--serif); font-size: 24px; font-weight: 700; text-align: center; }
.cost-row .button { min-height: 56px; padding: 0 32px; border-radius: 16px; }
.role-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.role-info { display: flex; flex-direction: column; gap: 2px; }
.role-name { font-size: 16px; font-weight: 700; }
.role-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-connected { color: var(--ok); }
.status-failed { color: var(--error); }
.status-missing { color: var(--muted); }
.link-row { display: flex; align-items: flex-start; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.link-form .link-row { margin-bottom: 10px; }
.link-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-info a { font-weight: 600; }
.social-badge { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--lilac); }
.social-badge .icon { width: 20px; height: 20px; }
.social-badge.social-twitch { color: #7b3fe4; }
.social-badge.social-telegram { color: #1c87bd; }
.link-form .cost-row .input { flex: 1 1 160px; width: auto; min-width: 0; }
.link-form .cost-row .button { min-height: 50px; padding: 0 20px; border-radius: 14px; }
.big-count { margin: 0; color: var(--muted); font-size: 16px; }
.big-count strong { margin-right: 6px; color: var(--ink); font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; }
.arrow-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-size: 15px; font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.tabs a.active { background: var(--rose-tint); color: var(--rose-deep); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.description { margin: 16px 0; padding: 16px; border-radius: 14px; background: var(--ground); font: inherit; white-space: pre-wrap; }
.screenshot { max-width: 100%; border: 1px solid var(--line); border-radius: 14px; }
