/* Theme taken from runara.fr: charcoal, antique gold, Cinzel and Crimson Text. */
:root {
  color-scheme: dark; font-size: 16px;
  --gold: #c9933a; --gold-lt: #e8bb6e;
  --dark: #0b0907; --dark2: #110f0c; --panel: #1a1612; --border: #3a2e1e;
  --text: #d4c5a9; --muted: #b09e83;
  --heading: 'Cinzel', Georgia, serif; --body: 'Crimson Text', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--dark); color: var(--text); font-family: var(--body); font-size: 1.1875rem; line-height: 1.6; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--gold-lt); text-underline-offset: 4px; }
a:hover { color: #f6dba8; }
:where(button, a, input):focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--dark); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.3; color: var(--gold-lt); overflow-wrap: anywhere; }
h1 { font-weight: 900; font-size: clamp(1.85rem, 3.3vw, 2.8rem); letter-spacing: .015em; margin-bottom: 12px; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text); }
main { min-width: 0; }
.eyebrow, .small-label, .nav-heading, .shard-label { font-family: var(--heading); font-size: .875rem; letter-spacing: .12em; font-weight: 600; color: var(--gold); text-transform: uppercase; }
.eyebrow { display: block; margin-bottom: 16px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; width: fit-content; max-width: 100%; }
.brand img { display: block; width: 170px; height: auto; max-width: 100%; object-fit: contain; image-rendering: pixelated; }
.brand small { display: block; font: 400 .75rem/1.7 var(--heading); letter-spacing: .16em; color: var(--gold-lt); }

/* Sign-in keeps the form prominent and carries the site's warm hero light. */
.login-layout { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { padding: 40px clamp(28px, 5vw, 80px); display: flex; flex-direction: column; border-right: 1px solid var(--border); background: radial-gradient(ellipse at 45% 25%, #2d1a08 0, transparent 65%), var(--dark2); }
.login-brand .brand img { width: 205px; filter: drop-shadow(0 0 24px #c9933a30); }
.login-intro { margin: auto 0; padding: 52px 0; }
.login-intro h1 { font-size: clamp(2rem, 3.4vw, 3.6rem); font-weight: 900; line-height: 1.2; text-shadow: 0 0 45px #c9933a20; }
.login-intro p { max-width: 430px; font-size: 1.25rem; margin-top: 25px; }
.rune-divider { display: flex; align-items: center; gap: 16px; max-width: 250px; margin: 28px 0; }
.rune-divider::before, .rune-divider::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.rune-divider::after { transform: rotate(180deg); }
.rune-divider span { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.device-note { border-top: 1px solid var(--border); padding-top: 20px; max-width: 430px; margin-top: 28px; font-size: 1rem; color: var(--muted); }
.brand-foot { font-family: var(--heading); font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.login-form-wrap { display: grid; align-items: center; padding: 42px 8%; background: radial-gradient(ellipse at 100% 0, #21170d66, transparent 55%); }
.login-form { width: min(100%, 460px); margin: auto; }
.login-form h2 { font-size: clamp(1.7rem, 2.7vw, 2.25rem); font-weight: 900; margin-bottom: 14px; }
.login-form > .eyebrow { width: fit-content; padding: 4px 13px; border: 1px solid #c9933a59; border-radius: 20px; background: #c9933a12; }
.login-form label { display: block; margin: 18px 0 6px; color: var(--gold-lt); font-weight: 600; font-size: 1.0625rem; }
.login-form input { width: 100%; min-width: 0; border: 1px solid #705838; background: var(--dark2); border-radius: 6px; color: #f0e2c9; padding: 11px 14px; transition: border-color .2s; }
.login-form input::placeholder { color: var(--muted); opacity: 1; }
.login-form input:focus { border-color: var(--gold); }
.login-form input:autofill { -webkit-text-fill-color: #f0e2c9; box-shadow: 0 0 0 1000px var(--panel) inset; }
.password-input { position: relative; }
.login-form .password-input input { padding-right: 58px; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--gold-lt); }
.password-toggle:hover { background: #c9933a18; }
.password-toggle svg { width: 23px; height: 23px; }
.password-eye-slash { display: none; }
.password-toggle[aria-pressed='true'] .password-eye-slash { display: block; }
.password-input input::-ms-reveal { display: none; }
.field-help, .legal { font-size: 1rem; color: var(--muted); line-height: 1.5; }
.field-help { margin: 10px 0 20px; }
.password-match-status { color:#abebc9; font-size:1rem; line-height:1.5; margin:0 0 20px; }
.password-match-status:empty { margin:0; }
.button { border: 1px solid transparent; border-radius: 6px; padding: 13px 19px; font-family: var(--heading); font-size: .875rem; line-height: 1.5; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 16px; max-width: 100%; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.primary { background: linear-gradient(135deg, #b8821f, #e0aa50); color: var(--dark); box-shadow: 0 4px 20px #c9933a30; }
.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 26px #c9933a50; }
.secondary { background: transparent; border-color: #705838; color: var(--gold-lt); }
.secondary:hover:not(:disabled) { border-color: var(--gold); background: #c9933a0f; }
.login-form > .primary { width: 100%; margin: 5px 0; }
.text-button { background: none; border: 0; color: var(--gold-lt); padding: 8px 0; font-size: 1.0625rem; text-align: left; text-underline-offset: 4px; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; gap: 8px 15px; flex-wrap: wrap; }
.legal { margin-top: 28px; margin-bottom: 0; }
.message { font-size: 1.0625rem; color: #f0c68b; margin: 12px 0; }
.auth-alert { padding: 18px 20px; margin: 20px 0; border: 1px solid #e19b84; border-left-width: 4px; border-radius: 6px; background: #361e19; color: #ffcfba; }
.auth-alert strong { display: block; font: 600 1rem/1.5 var(--heading); }
.auth-alert p { margin: 8px 0 0; font-size: 1.0625rem; line-height: 1.5; color: #ffe2d4; }
.auth-alert:focus { outline: 2px solid #e19b84; outline-offset: 4px; }
.login-form input[aria-invalid='true'] { border: 2px solid #e19b84; background: #2c1b17; }

/* Account navigation and watch workspace. */
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--dark2); border-right: 1px solid var(--border); padding: 32px 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.sidebar .brand { margin-bottom: 28px; }
.nav-heading { font-size: .75rem; padding-left: 12px; margin-bottom: -8px; color: var(--muted); }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav button { text-align: left; padding: 13px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); font-family: var(--heading); font-size: .875rem; letter-spacing: .02em; }
.sidebar nav button[aria-current] { color: var(--gold-lt); border-color: #c9933a50; background: linear-gradient(90deg, #c9933a1f, #c9933a07); }
.sidebar nav button:hover { background-color: #c9933a0e; color: var(--gold-lt); }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; border-top: 1px solid var(--border); }
.sidebar-bottom strong { display: block; font-family: var(--heading); font-size: 2.5rem; font-weight: 900; line-height: 1.4; color: var(--gold-lt); }
.shard-balance { display: flex; align-items: center; gap: 8px; }
.shard-balance img { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; image-rendering: pixelated; }
.shard-balance strong { min-width: 0; overflow-wrap: anywhere; }
.sidebar-bottom p { font-size: 1rem; color: var(--muted); }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; padding: 14px 5%; border-bottom: 1px solid var(--border); background: var(--dark2); font-size: 1rem; color: var(--muted); gap: 12px 20px; }
.watch-presence { display: flex; align-items: center; gap: 14px; max-width: 100%; }
.watch-presence-icon { position: relative; width: 60px; height: 60px; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--muted); transition: color .25s, border-color .25s, box-shadow .25s; }
.watch-presence-icon svg { width: 34px; height: 42px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.watch-off-mark { stroke-width: 2.5; }
.watch-presence-check { display: none; position: absolute; right: -5px; bottom: -4px; width: 22px; height: 22px; border: 2px solid var(--dark2); border-radius: 50%; background: var(--gold); color: var(--dark); font: 700 14px/18px system-ui, sans-serif; text-align: center; }
.watch-presence-copy { display: flex; flex-direction: column; gap: 2px; }
.watch-presence-name { font: 600 .9375rem/1.5 var(--heading); color: var(--text); }
#connection-state { font-size: 1rem; line-height: 1.5; }
.watch-presence[data-state='connected'] .watch-presence-icon { color: var(--gold-lt); border-color: var(--gold); box-shadow: 0 0 20px #c9933a33; }
.watch-presence[data-state='connected'] .watch-presence-check { display: block; }
.watch-presence[data-state='connected'] #connection-state { color: var(--gold-lt); }
.watch-presence:not([data-state='disconnected']) .watch-off-mark { display: none; }
.watch-presence[data-state='connecting'] .watch-presence-icon { border-color: var(--gold); animation: watch-linking 1.3s ease-in-out infinite; }
.watch-presence[data-state='connecting'] #connection-state { color: var(--gold-lt); }
.watch-presence[data-state='updating'] .watch-presence-icon { color: var(--gold-lt); border-color: var(--gold); }
.watch-presence[data-state='updating'] #connection-state { color: var(--gold-lt); }
@keyframes watch-linking { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.account-email { overflow-wrap: anywhere; min-width: 0; }
.content { max-width: 1280px; padding: 40px 5% 0; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.page-heading p { margin: 0; }
.page-heading .eyebrow { margin-bottom: 10px; }
.status-pill { font-size: 1rem; border: 1px solid #705838; border-radius: 30px; padding: 6px 14px; color: var(--muted); flex-shrink: 0; }
.status-pill.connected { border-color: #708256; color: #c7d6a8; background: #82955a0f; }
.connect-card { background: radial-gradient(ellipse at 0 0, #35240f 0, transparent 70%), var(--panel); border: 1px solid #6c4d26; display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; padding: 32px; border-radius: 8px; }
.connect-card h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.connect-card p { max-width: 490px; }
.connect-card strong { color: var(--gold-lt); font-weight: 600; }
.connect-aside { border-left: 1px solid #6c4d26; padding-left: 32px; }
.connection-requirements { padding-left: 22px; margin: 18px 0 15px; font-size: 1.125rem; }
.connect-aside li { padding: 5px 0; }
.connect-aside li::marker { color: var(--gold-lt); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; margin: 22px 0 36px; background: var(--panel); }
.stats article { padding: 22px 28px; }
.stats article + article { border-left: 1px solid var(--border); }
.stats span { display: block; color: var(--muted); font-size: 1rem; }
.stats strong { font-family: var(--heading); font-weight: 900; color: var(--gold-lt); font-size: 2rem; display: block; margin-top: 6px; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.legacy-card { margin: 36px 0 0; padding: 28px; border: 1px solid #89602e; border-radius: 8px; background: linear-gradient(135deg,#30220f66,transparent),var(--panel); }
.legacy-card h2 { margin: 5px 0 0; font-size: 1.35rem; }
.legacy-card .eyebrow { font-size: .75rem; }
.series-choice { margin: 22px 0; padding: 0; border: 0; }
.series-choice legend { margin-bottom: 14px; font-weight: 600; color: var(--gold-lt); }
.series-options { display: flex; flex-wrap: wrap; gap: 12px; }
.series-options label { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.series-options label:has(input:checked) { border-color: var(--gold); background: var(--dark2); }
.series-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.legacy-guide { margin: 20px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--dark2); }
.legacy-guide summary { cursor: pointer; color: var(--gold-lt); font-weight: 600; }
.legacy-guide summary:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 4px; }
.legacy-guide p { margin-top: 16px; margin-bottom: 0; }
.legacy-guide-layout { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.6fr); align-items: center; gap: 24px; margin-top: 18px; }
.legacy-guide ol { margin: 0; padding-left: 24px; }
.legacy-guide li { padding: 7px 0; }
.legacy-guide li::marker { color: var(--gold-lt); }
.legacy-watch-diagram { display: flex; align-items: center; justify-content: center; gap: 6px; }
.legacy-watch-diagram svg { width: 110px; max-width: 40%; flex-shrink: 0; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legacy-watch-diagram .legacy-top-buttons { stroke: var(--gold-lt); stroke-width: 7; }
.legacy-button-label { color: var(--gold-lt); text-align: center; font-size: .8125rem; line-height: 1.5; }
.legacy-complete { margin-top: 24px; padding: 22px; border: 1px solid #9eb17e; border-radius: 8px; background: #9eb17e0d; }
.legacy-complete h3 { color: #d0dfa9; }
.legacy-complete p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .legacy-guide-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .legacy-card { padding: 20px; } .legacy-guide { padding: 14px; } }
.section-heading h2 { font-size: 1.25rem; margin: 0; }
.section-heading span { font-size: 1rem; color: var(--muted); }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.action-card { border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; transition: border-color .2s; min-width: 0; }
.action-card:hover { border-color: #705838; }
.action-card h3 { margin-bottom: 14px; }
.function-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.function-heading h3 { margin: 0; }
.function-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #c9933a45; border-radius: 8px; color: var(--gold-lt); background: #c9933a0d; }
.function-icon svg { width: 26px; height: 26px; }
.function-icon img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.action-card p { font-size: 1.125rem; flex: 1; }
.action-card .button { margin-top: 10px; }
.reward-balance { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1.0625rem; color: var(--gold-lt); }
.reward-balance img { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; image-rendering: pixelated; }
.reward-balance strong { font-family: var(--heading); }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding: 24px 0; margin-top: 48px; font-family: var(--heading); font-size: .875rem; letter-spacing: .12em; color: var(--gold); }
.footer span { font-family: var(--body); font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.notice { padding: 16px 20px; border: 1px solid #8b6632; background: #241b10; border-radius: 6px; color: #edd6ad; margin-bottom: 22px; font-size: 1.125rem; overflow-wrap: anywhere; }
.list { display: grid; gap: 16px; }
.list-item { padding: 25px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.list-item h2 { font-size: 1.2rem; margin-bottom: 6px; }
.list-item p { margin: 0; font-size: 1.0625rem; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button.danger { color: #ffb5ad; border-color: #88554e; }
.button.danger:hover { background: #432724; border-color: #cf8276; }
.adventure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.empty { border: 1px dashed #705838; padding: 36px; text-align: center; border-radius: 8px; color: var(--muted); }
.adventure-card { padding: 28px; border: 1px solid var(--border); background: var(--panel); border-radius: 8px; }
.adventure-card h2 { font-size: 1.6rem; }
.adventure-card .price { color: var(--gold-lt); font-family: var(--heading); font-size: 1rem; margin-bottom: 20px; }
.adventure-card button { margin-right: 10px; margin-top: 10px; }
#profile-email { overflow-wrap: anywhere; }
/* Adventure journal: account snapshots, readable on desktop and mobile. */
.journal-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 18px; margin: 24px 0; border-bottom: 1px solid var(--border); }
.journal-tabs button { padding: 12px 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--dark2); color: var(--muted); font: 600 .875rem/1.5 var(--heading); }
.journal-tabs button[aria-selected='true'] { color: var(--gold-lt); border-color: var(--gold); background: #c9933a18; }
.journal-pane { display: grid; gap: 24px; }
.journal-card { min-width: 0; padding: 28px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.journal-card h2 { font-size: 1.4rem; }
.journal-card h3 { font-size: 1.0625rem; }
.journal-hero { background: radial-gradient(ellipse at top left, #51371166, transparent 70%), var(--panel); border-color: #826030; }
.journal-hero h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.journal-hero progress { display: block; width: 100%; height: 12px; accent-color: var(--gold); margin: 20px 0 28px; }
.journal-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.journal-metrics > div { padding: 18px; border: 1px solid var(--border); background: var(--dark2); border-radius: 8px; min-width: 0; }
.journal-metrics dt { color: var(--muted); font-size: 1rem; }
.journal-metrics dd { margin: 8px 0 0; color: var(--gold-lt); font: 600 1.45rem/1.5 var(--heading); overflow-wrap: anywhere; }
.journal-list, .journal-chips, .journal-companions, .journal-timeline { list-style: none; padding: 0; margin: 0; }
.journal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 15px 0; color: var(--muted); }
.journal-row + .journal-row { border-top: 1px solid var(--border); }
.journal-row strong { font-weight: 600; }
.journal-row span { text-align: right; font-size: 1rem; }
.journal-row.is-discovered strong { color: var(--gold-lt); }
.journal-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.journal-chips li { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--dark2); }
.journal-chips li.is-discovered { border-color: #81602e; color: var(--gold-lt); background: #c9933a0e; }
.journal-companions { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.journal-companions li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--dark2); }
.journal-companions .is-discovered { background: #c9933a0b; }
.journal-companions .is-equipped { border-color: var(--gold); box-shadow: 0 0 16px #c9933a18; }
.journal-companions h3 { margin: 10px 0; font: 600 1.125rem/1.35 var(--body); }
.journal-companions p { margin: auto 0 0; font-size: .9375rem; color: var(--muted); }
.journal-sigil { font-size: 1.8rem; color: var(--muted); }
.is-discovered .journal-sigil { color: var(--gold-lt); }
.journal-timeline { border-left: 1px solid #81602e; margin-left: 8px; }
.journal-timeline li { position: relative; margin: 0 0 20px 24px; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.journal-timeline li::before { content: ''; position: absolute; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--dark2); left: -30px; top: 29px; transform: rotate(45deg); }
.journal-timeline h2 { font-size: 1.125rem; margin: 10px 0; }
.journal-timeline p { margin: 0; }
.journal-timeline time { font-size: .9375rem; color: var(--muted); }
@media (max-width: 600px) {
  .journal-card { padding: 20px; }
  .journal-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .journal-tabs button { padding: 12px 8px; }
  .journal-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .journal-row span { text-align: left; }
  .journal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-metrics > div { padding: 12px; }
  .journal-metrics dd { font-size: 1.15rem; }
  .journal-companions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
dialog { width: min(540px, calc(100% - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--gold); padding: 30px; border-radius: 8px; box-shadow: 0 20px 90px #0008; }
dialog::backdrop { background: #0b0907d9; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.transfer { position: fixed; bottom: 22px; right: 25px; width: min(420px, calc(100% - 32px)); padding: 20px; background: var(--panel); border: 1px solid var(--gold); border-radius: 8px; box-shadow: 0 15px 50px #0008; z-index: 10; }
.transfer > div { display: flex; justify-content: space-between; gap: 15px; }
.transfer strong { color: var(--gold-lt); }
.transfer progress { width: 100%; height: 10px; margin-top: 15px; accent-color: var(--gold); }
.operation-feedback { position: fixed; bottom: 24px; right: 24px; width: min(480px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; z-index: 30; padding: 24px; border: 1px solid var(--gold); border-radius: 12px; background: #1a1612; box-shadow: 0 18px 70px #000b, 0 0 24px #c9933a15; animation: feedback-enter .24s ease-out; }
.feedback-main { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 18px; padding-right: 18px; }
.feedback-main strong { display: block; font: 600 1.0625rem/1.5 var(--heading); color: var(--gold-lt); }
.feedback-main p { margin: 7px 0 0; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-symbol { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #c9933a12; color: var(--gold-lt); }
.feedback-spinner { width: 32px; height: 32px; border: 3px solid #c9933a35; border-top-color: var(--gold-lt); border-radius: 50%; animation: feedback-spin .9s linear infinite; }
.feedback-check, .feedback-info, .feedback-error { display: none; }
.feedback-check { width: 48px; height: 48px; }
.feedback-check path { stroke: #c7dfa4; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 0; }
.feedback-info, .feedback-error { font: 600 1.8rem/1 var(--heading); }
.operation-feedback:not([data-state='busy']) .feedback-spinner { display: none; }
.operation-feedback[data-state='success'] { border-color: #9eb17e; }
.operation-feedback[data-state='success'] .feedback-symbol { background: #9eb17e18; animation: feedback-confirm .6s ease-out; }
.operation-feedback[data-state='success'] .feedback-check { display: block; }
.operation-feedback[data-state='success'] .feedback-check path { animation: feedback-draw .55s ease-out both; }
.operation-feedback[data-state='info'] .feedback-info { display: block; }
.operation-feedback[data-state='error'] { border-color: #d18d71; }
.operation-feedback[data-state='error'] .feedback-symbol { color: #ffc1a4; background: #d18d7118; }
.operation-feedback[data-state='error'] .feedback-error { display: block; }
.feedback-dismiss { position: absolute; top: 5px; right: 7px; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 1.8rem; line-height: 1; }
.feedback-dismiss:hover { color: var(--gold-lt); background: #c9933a10; }
.operation-feedback .transfer { position: static; width: auto; padding: 16px 0 0; margin-top: 18px; background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.operation-feedback .transfer > div { font-size: .9375rem; }
.operation-feedback .transfer strong { color: var(--muted); font-family: var(--body); font-weight: 400; }
.operation-feedback .transfer progress { display: block; }
.button.is-running:disabled { opacity: 1; cursor: wait; }
.button.is-running::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: feedback-spin .9s linear infinite; }
.action-card.operation-active { border-color: var(--gold); }
.action-card.operation-succeeded { animation: card-confirm 1.4s ease-out; }
@keyframes feedback-spin { to { transform: rotate(360deg); } }
@keyframes feedback-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes feedback-confirm { 0% { transform: scale(.85); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes feedback-draw { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@keyframes card-confirm { 0%, 35% { border-color: #9eb17e; box-shadow: 0 0 24px #9eb17e28; } 100% { border-color: var(--border); box-shadow: none; } }
.skip { position: absolute; left: 20px; top: -100px; z-index: 20; padding: 10px 16px; background: var(--panel); border: 1px solid var(--gold); }
.skip:focus { top: 10px; }

@media (max-width: 1200px) {
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { padding: 28px 16px; }
  .action-grid { grid-template-columns: 1fr; }
  .connect-card { grid-template-columns: 1fr; gap: 22px; }
  .connect-aside { border-left: 0; border-top: 1px solid #6c4d26; padding: 24px 0 0; }
}
@media (max-width: 800px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { padding: 22px 24px; border-right: 0; border-bottom: 1px solid var(--border); }
  .login-brand .brand img { width: 170px; }
  .login-intro, .brand-foot { display: none; }
  .login-form-wrap { padding: 32px 24px 40px; }
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 20px; gap: 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar .brand { margin-bottom: 0; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sidebar nav button { font-size: .875rem; padding: 10px; }
  .nav-heading, .sidebar-bottom { display: none; }
  .topbar { min-height: 60px; padding: 14px 22px; flex-wrap: wrap; }
  .watch-presence-icon { width: 48px; height: 48px; }
  .watch-presence-icon svg { width: 28px; height: 36px; }
  .watch-presence { gap: 12px; }
  .topbar .account-email { flex-basis: 100%; order: 3; }
  .content { padding: 28px 22px 0; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .connect-card { padding: 24px; }
  .stats article { padding: 18px 12px; }
  .stats strong { font-size: 1.6rem; }
  .stats span { font-size: .9375rem; }
  .section-heading { display: block; }
  .section-heading span { display: block; margin-top: 8px; }
  .adventure-grid { grid-template-columns: 1fr; }
  .list-item { align-items: flex-start; flex-direction: column; }
  .footer { flex-direction: column; }
  .transfer { right: 16px; }
  .operation-feedback { right: 16px; bottom: 16px; padding: 22px 18px; }
  .feedback-main { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .feedback-symbol { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
  .content { padding-right: 16px; padding-left: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats article + article { border-left: 0; border-top: 1px solid var(--border); }
  .stats article { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .stats strong { margin: 0; }
  .connect-card, .action-card, .adventure-card, .list-item { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
