:root {
  color-scheme: dark;
  --background: #151313;
  --surface: #1d1919;
  --text: #eee5d7;
  --muted: #b6aaa0;
  --subtle: #9c9087;
  --border: #3c3030;
  --crimson: #9f383e;
  --crimson-bright: #d38b88;
  --gold: #c5a879;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--background); color: var(--text); }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 1050px; background: radial-gradient(ellipse at 72% 27%, #49222535, transparent 48%); pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .7; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.7; }
.site-shell { width: min(1160px, 100% - 96px); margin: auto; padding-top: env(safe-area-inset-top); }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 20; padding: 12px 18px; background: var(--text); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 24px; }
.brand { display: flex; align-items: center; gap: 15px; font: 21px var(--serif); letter-spacing: .16em; }
.brand img { border-radius: 10px; }
.brand-subtitle { display: block; margin-top: 5px; color: var(--muted); font: 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 35px; font-size: 12px; }
.site-header nav a { min-height: 44px; display: flex; align-items: center; gap: 15px; }
.nav-lore { color: var(--muted); }
.nav-install { color: var(--text); }
.site-header nav a:hover, .text-link:hover, .footer-links a:hover { color: var(--crimson-bright); }
.hero { min-height: 560px; display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 24px; padding: 65px 0 55px; }
.eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .16em; font-weight: 600; text-transform: uppercase; color: var(--gold); }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; }
.small-line { width: 25px; height: 1px; background: var(--crimson); }
h1 { font: 400 clamp(52px, 5.8vw, 79px)/1.07 var(--serif); letter-spacing: -.038em; }
h1 em { color: var(--crimson-bright); font-weight: 400; }
.hero-description { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; font-size: 12px; font-weight: 600; border-radius: 3px; transition: background .2s ease, border-color .2s ease; }
.button-primary { background: #862e34; color: #fff4e9; border-color: #aa4b51; }
.button-primary:hover { background: #a43a42; border-color: #bc6268; }
.text-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; font-size: 12px; }
.hero-art { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, #812c3255, #46232225 50%, transparent 72%); filter: blur(20px); }
.orbital { position: absolute; border: 1px solid #85534945; border-radius: 50%; }
.orbital-outer { inset: 1%; }
.orbital-outer::before, .orbital-outer::after { content: ""; position: absolute; top: 49.5%; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.orbital-outer::before { left: -3px; }
.orbital-outer::after { right: -3px; }
.orbital-inner { inset: 7%; border-color: #85534930; }
.art-axis { position: absolute; background: #85534925; }
.axis-horizontal { width: 108%; height: 1px; }
.axis-vertical { height: 110%; width: 1px; }
.emblem-frame { position: relative; width: 68%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid #ad705047; box-shadow: 0 0 65px #0009; }
.hero-emblem { width: 100%; height: 100%; object-fit: cover; }
.art-star { position: absolute; color: var(--gold); font-size: 18px; background: var(--background); line-height: 1; padding: 9px; }
.star-top { top: -12px; }
.star-bottom { bottom: -10px; }
.art-caption { position: absolute; bottom: 10.5%; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 8px; background: var(--background); padding: 6px 8px; }
.preview-note { display: flex; align-items: center; gap: 22px; padding: 27px 30px; background: linear-gradient(105deg, #351e2180, #231b1b70 63%); border: 1px solid #593033; border-radius: 4px; }
.preview-mark { font-size: 31px; color: var(--crimson-bright); }
.preview-copy { flex: 1; }
.preview-copy .eyebrow { color: var(--crimson-bright); margin-bottom: 7px; font-size: 9px; }
.preview-copy h2 { font: 400 22px/1.3 var(--serif); }
.preview-copy > p:last-child { color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 660px; }
.build-label { align-self: flex-start; margin-top: 4px; border: 1px solid #65484b; color: #c6aba9; font-size: 9px; white-space: nowrap; text-transform: uppercase; letter-spacing: .09em; padding: 6px 9px; }
.worlds { margin-top: 75px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 29px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .install-section h2 { font: 400 34px/1.2 var(--serif); letter-spacing: -.02em; }
.section-caption { color: var(--subtle); font-size: 11px; margin-bottom: 5px; white-space: nowrap; }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.world-card { position: relative; display: flex; min-height: 340px; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); overflow: hidden; background: #1c1717; padding: 28px 30px; transition: border-color .2s ease, background-color .2s ease; }
.world-card::after { content: ""; width: 180px; height: 300px; position: absolute; right: -40px; top: 15px; border: 1px solid #b1845330; border-radius: 50% 50% 0 0; transform: rotate(19deg); pointer-events: none; }
.demon-card { background: radial-gradient(ellipse at 100% 0%, #4a35264d, transparent 65%), #1c1816; }
.vampire-card { background: radial-gradient(ellipse at 100% 0%, #60263145, transparent 65%), #1c1719; }
.vampire-card::after { border-color: #b95b6529; transform: rotate(-19deg); }
.world-card:hover { border-color: #9a7160; background-color: #251e1d; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; position: relative; z-index: 1; }
.world-number { font: italic 22px var(--serif); color: var(--gold); }
.world-category { color: var(--subtle); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.world-symbol { position: absolute; right: 29px; top: 48px; color: #ceaa7540; font: 160px/1 var(--serif); transform: rotate(9deg); pointer-events: none; }
.vampire-symbol { color: #d0818c35; right: 35px; transform: none; }
.world-content { position: relative; z-index: 1; max-width: 345px; margin-top: 46px; }
.world-content .eyebrow { font-size: 9px; }
.vampire-card .eyebrow, .vampire-card .world-number { color: var(--crimson-bright); }
.world-content h3 { font: 400 37px/1.25 var(--serif); letter-spacing: -.025em; margin: 6px 0 12px; }
.world-content > p:not(.eyebrow) { font-size: 12px; color: var(--muted); max-width: 290px; line-height: 1.8; }
.card-link { display: flex; align-items: center; gap: 22px; font-size: 11px; margin-top: 23px; }
.card-link span { color: var(--gold); }
.lore-caption { color: var(--subtle); font-size: 10px; margin-top: 15px; }
.roadmap { margin-top: 76px; }
.roadmap-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.roadmap-list li { display: flex; align-items: flex-start; gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--border); }
.step-index { font: italic 20px var(--serif); color: var(--gold); padding-top: 2px; min-width: 30px; }
.roadmap-list li > div { flex: 1; }
.roadmap-list h3 { font: 400 23px/1.3 var(--serif); }
.roadmap-list p { color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 740px; }
.step-label { font-size: 9px; color: var(--subtle); text-transform: uppercase; letter-spacing: .13em; padding-top: 8px; }
.install-section { margin-top: 74px; padding: 35px; background: #1c1918; border: 1px solid var(--border); border-radius: 4px; }
.install-intro { display: flex; align-items: flex-start; gap: 24px; }
.install-icon { border-radius: 16px; flex: 0 0 64px; }
.install-intro .eyebrow { margin-bottom: 10px; }
.install-section h2 { font-size: 30px; }
.install-intro p:last-child { color: var(--muted); font-size: 12px; max-width: 690px; margin-top: 12px; }
.install-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin: 25px 0 20px 88px; }
.install-status { font-size: 11px; color: var(--muted); }
.install-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.install-guides details { border-top: 1px solid #453a33; }
summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; gap: 20px; padding: 18px 0 10px; font-size: 12px; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 16px; color: var(--gold); font-weight: 300; }
details[open] summary span { transform: rotate(45deg); }
.install-guides details p { font-size: 12px; color: var(--muted); margin: 6px 0 4px; }
.install-guides strong { color: var(--text); font-weight: 500; }
.update-notice { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--crimson-bright); padding: 4px 0; min-height: 32px; }
.noscript-note { margin-top: 20px; font-size: 12px; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; margin-top: 62px; padding: 28px 0 max(30px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer-brand { font: 15px var(--serif); letter-spacing: .14em; }
.footer-brand span { font: 10px var(--sans); letter-spacing: 0; color: var(--subtle); margin-left: 18px; }
.footer-links { display: flex; align-items: center; gap: 23px; font-size: 10px; }
.connection-status { color: var(--subtle); }
.connection-status.is-offline { color: var(--crimson-bright); }
.footer-note { flex-basis: 100%; font-size: 10px; color: var(--subtle); }
@media (min-width: 1450px) { .site-shell { width: min(1230px, 100% - 140px); } .hero { min-height: 600px; } .hero-art { max-width: 455px; } }
@media (max-width: 980px) {
  .site-shell { width: calc(100% - 64px); }
  .hero { min-height: 500px; gap: 8px; }
  h1 { font-size: clamp(48px, 6.7vw, 65px); }
  .hero-art { max-width: 335px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .hero-actions { gap: 16px; }
  .hero-description { font-size: 13px; }
  .desktop-break { display: none; }
  .build-label { display: none; }
  .world-card { padding: 24px; }
  .world-content h3 { font-size: 32px; }
  .world-category { font-size: 8px; }
  .step-label { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 18px; }
  .site-shell { width: auto; margin: 0 max(23px, env(safe-area-inset-right)) 0 max(23px, env(safe-area-inset-left)); }
  .site-header { min-height: 88px; gap: 12px; }
  .brand { font-size: 18px; gap: 10px; letter-spacing: .12em; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand-subtitle { font-size: 8px; letter-spacing: .06em; }
  .site-header nav { gap: 0; font-size: 10px; }
  .site-header nav a { gap: 10px; }
  .site-header .nav-lore { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 44px 0 31px; gap: 37px; }
  .hero-copy > .eyebrow { font-size: 8px; margin-bottom: 22px; }
  h1 { font-size: clamp(44px, 11.8vw, 73px); line-height: 1.05; }
  .hero-description { font-size: 13px; margin-top: 20px; max-width: 380px; }
  .hero-actions { margin-top: 25px; gap: 22px; }
  .button { font-size: 11px; min-height: 47px; padding: 13px 18px; gap: 20px; }
  .text-link { font-size: 11px; gap: 12px; }
  .hero-art { max-width: 270px; margin: 0 auto 10px; }
  .art-caption { font-size: 6px; }
  .art-star { font-size: 14px; padding: 7px; }
  .star-top { top: -10px; }
  .preview-note { padding: 23px 22px; gap: 0; }
  .preview-mark { display: none; }
  .preview-copy h2 { font-size: 22px; }
  .preview-copy > p:last-child { font-size: 12px; }
  .worlds, .roadmap { margin-top: 49px; }
  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading h2 { font-size: 30px; }
  .section-caption { display: block; margin-top: 12px; font-size: 10px; }
  .world-grid { grid-template-columns: 1fr; gap: 16px; }
  .world-card { padding: 24px; min-height: 320px; }
  .world-content h3 { font-size: 36px; }
  .world-category { font-size: 9px; }
  .world-content { margin-top: 42px; }
  .lore-caption { font-size: 10px; line-height: 1.8; }
  .roadmap-list li { padding: 25px 0; gap: 18px; }
  .roadmap-list h3 { font-size: 22px; }
  .roadmap-list p { font-size: 12px; }
  .step-index { min-width: 22px; font-size: 18px; }
  .install-section { padding: 24px 21px; margin-top: 48px; }
  .install-intro { flex-direction: column; gap: 20px; }
  .install-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 14px; }
  .install-section h2 { font-size: 28px; }
  .install-actions { margin-left: 0; }
  .install-guides { grid-template-columns: 1fr; gap: 12px; }
  .install-guides details p { padding-bottom: 10px; }
  .site-footer { margin-top: 40px; gap: 18px; }
  .footer-brand { width: 100%; }
  .footer-brand span { display: block; margin: 8px 0 0; }
  .footer-links { width: 100%; justify-content: space-between; }
  .footer-note { font-size: 9px; line-height: 1.8; }
}
@media (max-width: 360px) {
  .site-shell { margin-left: 17px; margin-right: 17px; }
  .brand img { display: none; }
  .hero-actions { gap: 12px; }
  .hero-copy > .eyebrow { font-size: 7px; }
  .hero-art { max-width: 230px; }
  .section-heading h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Account-vault screens. All private state lives outside the page markup. */
.brand-button, .nav-button, .back-button { border: 0; background: transparent; color: inherit; }
.brand-button { min-width: 44px; min-height: 44px; padding: 0; text-align: left; cursor: pointer; }
.nav-button { min-width: 44px; min-height: 44px; font-size: 12px; padding: 8px 0; }
.site-header nav { gap: 27px; }
.nav-button:hover, .back-button:hover { color: var(--crimson-bright); }
.lock-control { color: var(--crimson-bright); }
.hero-fineprint { color: var(--subtle); font-size: 11px; margin-top: 22px; }
.hero-actions .text-button { min-height: 44px; font-size: 12px; }
.message-area { margin-top: 18px; }
.app-message { padding: 13px 17px; border: 1px solid var(--border); font-size: 13px; margin-bottom: 10px; overflow-wrap: anywhere; }
.app-error { border-color: #a24c53; color: #f0b2ae; background: #462025; }
.app-status { color: #d3c3a5; background: #25221d; }
.account-panel { max-width: 510px; margin: 58px auto 76px; }
.account-panel h1, .spheres-page h1, .install-section h1 { font: 400 42px/1.13 var(--serif); letter-spacing: -.028em; }
.account-panel > .eyebrow { margin: 25px 0 13px; }
.panel-intro { font-size: 14px; color: var(--muted); margin: 19px 0 27px; }
.panel-icon { border-radius: 14px; margin-bottom: 24px; }
.back-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; padding: 5px 0; color: var(--muted); }
.account-panel label:not(.checkbox-label), .plain-label { display: block; font-size: 12px; color: var(--text); margin: 23px 0 10px; }
.account-panel input:not([type=checkbox]) { width: 100%; min-height: 48px; border: 1px solid #62504c; border-radius: 3px; background: #1c1919; color: var(--text); padding: 12px 14px; font: 16px var(--sans); outline: none; }
.account-panel input:not([type=checkbox]):focus { border-color: var(--gold); box-shadow: 0 0 0 2px #c5a87925; }
.account-panel input:invalid:not(:placeholder-shown):focus { border-color: var(--crimson-bright); }
.account-panel input[type=file] { font-size: 12px; padding: 10px; line-height: 1.7; overflow: hidden; }
.account-panel input[type=file]::file-selector-button { background: #382a29; color: var(--text); border: 1px solid #766052; padding: 8px 12px; border-radius: 2px; font: 12px var(--sans); margin-right: 10px; cursor: pointer; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 13px; color: var(--subtle); pointer-events: none; }
.account-panel .input-prefix input { padding-left: 35px; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 9px 0 0; }
.form-note { font-size: 12px; line-height: 1.8; color: var(--muted); padding: 17px 19px; background: #241d1d; border-left: 2px solid #86524c; margin: 26px 0; }
.form-submit { width: 100%; margin-top: 25px; }
.button-secondary { background: #29201f; border-color: #795b52; color: var(--text); }
.button-secondary:hover { background: #382927; border-color: var(--gold); }
.account-ticket { margin: 25px 0; padding: 19px 21px; border: 1px solid var(--border); background: #1c1818; display: grid; gap: 8px; }
.account-ticket > span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.account-ticket strong { font: 24px var(--serif); color: var(--text); overflow-wrap: anywhere; }
code { font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--subtle); overflow-wrap: anywhere; }
.restore-link { margin-top: 21px; min-height: 44px; font-size: 12px; }
.wide-panel { max-width: 660px; }
.backup-steps { border-top: 1px solid var(--border); }
.backup-step { display: flex; align-items: flex-start; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--border); }
.backup-step > div { flex: 1; min-width: 0; }
.backup-step h2, .replace-warning h2 { font: 25px/1.2 var(--serif); }
.backup-step p { font-size: 13px; color: var(--muted); margin: 13px 0 20px; }
.backup-step form label:first-child { margin-top: 17px; }
.backup-step form .button { margin-top: 20px; }
.activation-panel { margin-top: 24px; }
.activation-panel p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
#backup-done { margin-top: 25px; }
#choose-another-handle { display: block; margin-top: 15px; min-height: 44px; font-size: 12px; }
.replace-warning { padding: 20px; background: #332122; border: 1px solid #86524c; margin-top: 25px; }
.replace-warning p { font-size: 13px; margin: 12px 0; color: var(--muted); }
.replace-warning .button { margin-top: 12px; }
.replace-warning .text-button { margin: 15px 0 0; display: block; min-height: 44px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.6; margin-top: 16px; }
input[type=checkbox] { accent-color: var(--crimson); width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 59px 0 33px; }
.dashboard-heading .eyebrow { margin-bottom: 14px; }
.dashboard-heading h1 { font-size: clamp(38px, 4.4vw, 56px); }
.session-badge, .planned-badge { display: inline-block; font-size: 10px; color: var(--gold); border: 1px solid #5c503b; padding: 7px 10px; line-height: 1.5; }
.session-badge { flex-shrink: 0; margin-bottom: 6px; }
.session-badge[data-state=authenticated] { color: #becbb4; border-color: #5c7152; background: #22291f; }
.session-badge[data-state=offline] { color: var(--crimson-bright); border-color: #795052; }
.dashboard-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.vault-card, .characters-card { padding: 30px; border: 1px solid var(--border); background: #1c1818; min-width: 0; }
.vault-card h2 { font: 34px var(--serif); margin: 15px 0 10px; overflow-wrap: anywhere; }
.vault-card code { display: block; }
.vault-card .plain-label { margin-top: 27px; }
.vault-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; border-top: 1px solid var(--border); margin-top: 28px; padding-top: 23px; }
.vault-actions .text-button { min-height: 44px; font-size: 12px; }
#dashboard-backup-state { margin-top: 15px; }
.characters-card { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 85% 10%, #47262c35, transparent 70%), #1b1818; }
.empty-symbol { font: 44px var(--serif); color: var(--gold); margin-bottom: 20px; }
.characters-card h2 { font: 30px/1.25 var(--serif); margin: 12px 0 18px; }
.characters-card p:not(.eyebrow) { font-size: 13px; color: var(--muted); }
.characters-card .planned-badge { margin-top: 22px; }
.characters-card .text-button { font-size: 12px; margin-top: 17px; min-height: 44px; }
.dashboard-footnote { color: var(--muted); font-size: 12px; margin: 22px 0 0; }
.spheres-page { margin: 42px 0 70px; }
.spheres-page .section-heading { margin-top: 24px; }
.spheres-page .world-card { min-height: 355px; }
.world-content h2 { font: 37px/1.25 var(--serif); margin: 7px 0 15px; }
.world-content .planned-badge { margin-top: 24px; }
.sphere-note { max-width: 820px; }
.install-section { margin-top: 42px; }
.install-section .back-button { margin-bottom: 26px; }
.install-section h1 { font-size: 34px; }
.boot-panel p:last-child { color: var(--muted); margin-top: 20px; }
#main:focus { outline: none; }
@media (max-width: 700px) {
  .site-header nav { gap: 17px; }
  .nav-button { font-size: 10px; }
  .site-header:has(.lock-control:not([hidden])) .brand-subtitle { display: none; }
  .site-header:has(.lock-control:not([hidden])) .brand { font-size: 15px; }
  .site-header:has(.lock-control:not([hidden])) .brand img { width: 30px; height: 30px; }
  .account-panel { margin-top: 30px; margin-bottom: 48px; }
  .account-panel h1 { font-size: 35px; }
  .panel-intro { font-size: 14px; }
  .message-area { margin-top: 12px; }
  .app-message { font-size: 12px; padding: 12px 14px; }
  .dashboard-heading { display: block; margin: 36px 0 27px; }
  .dashboard-heading h1 { font-size: 39px; }
  .session-badge { margin: 20px 0 0; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 19px; }
  .vault-card, .characters-card { padding: 25px 22px; }
  .characters-card h2 { font-size: 28px; }
  .backup-step { gap: 15px; }
  .backup-step h2 { font-size: 23px; }
  .backup-step .step-index { min-width: 16px; }
  .backup-step .button { max-width: 100%; gap: 12px; }
  .spheres-page h1 { font-size: 36px; }
  .spheres-page .world-card { min-height: 360px; }
  .install-section h1 { font-size: 30px; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 13px; }
  .brand-subtitle { font-size: 7px; }
  .nav-button { font-size: 9px; }
  .account-panel h1 { font-size: 32px; }
  .account-panel input[type=file]::file-selector-button { padding: 7px; margin-right: 5px; }
}
.rank-line { color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rank-line span { color: var(--gold); }
#privileged-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 23px; padding-top: 23px; border-top: 1px solid var(--border); }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.overview-grid > div { background: #211a1a; border: 1px solid var(--border); padding: 20px; }
.overview-grid dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.overview-grid dd { font: 27px/1.4 var(--serif); color: var(--text); margin: 12px 0 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .vault-card h2 { font-size: clamp(22px, 6.4vw, 28px); } .overview-grid { grid-template-columns: 1fr; } }
