:root {
  color-scheme: dark;
  --page: #07111a;
  --panel: #0d1b26;
  --panel-raised: #122431;
  --line: #203744;
  --line-bright: #2f5866;
  --text: #e8f3f4;
  --muted: #89a1aa;
  --cyan: #69e5e4;
  --cyan-dim: #174e59;
  --gold: #f0c879;
  --green: #92dda9;
  --red: #ff9b9b;
  --mono: 'Cascadia Code', Consolas, monospace;
  --sans: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--page);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(35, 117, 133, .14), transparent 31rem),
    radial-gradient(ellipse at 4% 60%, rgba(22, 78, 89, .08), transparent 34rem),
    var(--page);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { outline-color: var(--cyan); }
.topbar {
  min-height: 72px; display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid rgba(87, 141, 151, .18);
  background: rgba(7, 17, 26, .88); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 205px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--cyan); border-radius: 9px; color: var(--cyan); font: 500 12px var(--mono); box-shadow: 0 0 18px #69e5e41c; }
.brand strong { display: block; letter-spacing: .04em; font-size: 14px; }
.brand small { display: block; margin-top: 3px; color: #65818c; font: 8px var(--mono); letter-spacing: .13em; }
.main-nav { display: flex; align-items: center; flex: 1; gap: clamp(12px, 2.2vw, 30px); }
.main-nav a { color: #91a8af; font-size: 12px; transition: color .2s ease; }
.main-nav a:hover, .text-link:hover { color: var(--cyan); }
.account-menu { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.account-name { color: #c6d9dc; }
.account-menu form { margin: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid var(--line-bright); border-radius: 8px; padding: 11px 16px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); border-color: var(--cyan); }
.button-primary { color: #062027; border-color: var(--cyan); background: linear-gradient(110deg, #69e5e4, #9af1dd); box-shadow: 0 6px 22px #39c7ce24; }
.button-outline { background: rgba(15, 34, 45, .55); color: #c2d8dc; }
.button-quiet { padding: 8px 10px; border-color: transparent; background: transparent; color: var(--muted); }
.button-wide { width: 100%; margin-top: 12px; padding: 14px; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: 40px auto 72px; }
.narrow-shell { width: min(940px, calc(100% - 48px)); }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.045em; font-weight: 700; }
h2 { letter-spacing: -.035em; }
.welcome-row h1 { margin-top: 9px; }
.muted { color: var(--muted); }
.eyebrow, .metric-label, .companion-kicker, .unlock-caption, .reward-state, .reward-threshold span, .milestone-count span, .xp-mini span { color: #7796a1; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.status-light { display: inline-block; width: 6px; height: 6px; margin-left: 5px; vertical-align: 1px; border-radius: 50%; background: #8cecb8; box-shadow: 0 0 9px #8cecb8; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg, rgba(15, 31, 42, .97), rgba(10, 24, 34, .97)); box-shadow: 0 15px 46px rgba(0,0,0,.14); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 18px; }
.character-card { position: relative; overflow: hidden; padding: 25px 28px 23px; }
.character-card::before { content: ''; position: absolute; top: -100px; right: -100px; width: 340px; height: 340px; border: 1px solid #368a9321; border-radius: 50%; box-shadow: 0 0 0 35px #368a9308, 0 0 0 75px #368a9307; pointer-events: none; }
.character-topline, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #285566; border-radius: 5px; color: var(--cyan); background: #15313b; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.character-main { position: relative; display: flex; align-items: center; gap: 23px; margin: 28px 0 26px; }
.avatar-frame { position: relative; display: grid; place-items: center; width: 92px; height: 92px; flex: 0 0 92px; border: 1px solid #3e8c95; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #1c5059, #0b1e28 68%); box-shadow: inset 0 0 22px #67e6db24, 0 0 22px #69e5e413; }
.avatar-frame::before { content: ''; position: absolute; inset: 7px; border: 1px dashed #49828a; border-radius: 50%; }
.avatar-frame i, .avatar-frame b { position: absolute; width: 7px; height: 7px; border: 1px solid var(--cyan); border-radius: 50%; background: #07131c; }
.avatar-frame i { top: 8px; right: 14px; }.avatar-frame b { bottom: 14px; left: 6px; }
.avatar-core { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #37616b; clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%); background: linear-gradient(145deg, #234552, #112734); }
.avatar-core span { color: #a8f3eb; font-size: 26px; font-weight: 700; text-shadow: 0 0 18px #69e5e4; }
.character-copy h2 { margin: 0 0 3px; font-size: 24px; }
.character-copy p { margin: 0; color: #9bb0b6; font-size: 12px; }
.separator { margin: 0 8px; color: #405d68; }
.level-pill { color: var(--gold); font: 10px var(--mono); letter-spacing: .08em; }
.affiliations { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.affiliation { padding: 5px 8px; border: 1px solid #27414b; border-radius: 4px; color: #aac1c5; background: #10232d; font-size: 10px; }
.house-mark { color: #e8cc8e; }
.xp-summary { position: relative; padding-top: 18px; border-top: 1px solid #1d3540; }
.metric-label { display: flex; justify-content: space-between; gap: 10px; }
.metric-label span { color: #4e717b; font-size: 9px; }
.xp-value { margin: 5px 0 13px; color: #f0fbfb; font-size: clamp(30px, 4vw, 43px); font-weight: 700; letter-spacing: -.05em; }
.xp-value small { color: var(--cyan); font: 13px var(--mono); letter-spacing: .02em; }
.progress-track { overflow: hidden; height: 7px; border: 1px solid #213e48; border-radius: 8px; background: #07141c; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2fabb9, #75efdb); box-shadow: 0 0 14px #69e5e46a; }
.progress-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #7895a0; font: 9px var(--mono); }
.remaining-note { margin: 13px 0 0; color: #88a1a8; font-size: 11px; }.remaining-note strong { color: var(--cyan); }
.companion-card { position: relative; min-height: 345px; overflow: hidden; padding: 25px; background: radial-gradient(ellipse at 50% 54%, #16465265, transparent 48%), linear-gradient(145deg, #102531, #091721); }
.companion-card > .eyebrow { position: relative; z-index: 2; display: flex; justify-content: space-between; }
.unlocked { color: var(--green); }
.dragon-art { position: absolute; top: 43px; right: 50%; width: 190px; height: 180px; transform: translateX(50%); filter: drop-shadow(0 0 17px #69e5e435); }
.dragon-halo { position: absolute; top: 16px; left: 23px; width: 144px; height: 144px; border: 1px solid #61dce222; border-radius: 50%; box-shadow: 0 0 0 20px #61dce208, inset 0 0 32px #61dce20b; }
.dragon-wing { position: absolute; top: 38px; left: 35px; width: 124px; height: 86px; border: 1px solid #4caab5; border-radius: 82% 15% 68% 10%; transform: rotate(-28deg) skewY(-10deg); background: linear-gradient(135deg, #356773, #132e3d 70%); clip-path: polygon(0 100%, 8% 10%, 49% 47%, 83% 0, 75% 61%, 100% 24%, 84% 86%, 53% 70%); }
.dragon-body { position: absolute; top: 93px; left: 66px; width: 86px; height: 45px; border: 1px solid #62d1ce; border-radius: 50% 45% 42% 52%; transform: rotate(-14deg); background: linear-gradient(120deg, #263e4a, #132c39 70%); }
.dragon-head { position: absolute; top: 65px; left: 117px; width: 49px; height: 39px; border: 1px solid #8adbd0; border-radius: 55% 45% 40% 45%; transform: rotate(17deg); background: linear-gradient(145deg, #42545c, #1b333f); }
.dragon-head::before, .dragon-head::after { content: ''; position: absolute; top: -15px; width: 9px; height: 23px; border: 1px solid #6fc5c4; border-radius: 90% 0 60% 20%; background: #34515c; }
.dragon-head::before { left: 8px; transform: rotate(-22deg); }.dragon-head::after { right: 9px; transform: rotate(28deg) scaleX(-1); }
.dragon-eye { position: absolute; top: 80px; left: 149px; width: 5px; height: 5px; border-radius: 50%; background: #95fff4; box-shadow: 0 0 7px #64fff0; }
.dragon-tail { position: absolute; top: 124px; left: 26px; width: 60px; height: 30px; border: 4px solid #334f5a; border-right: 0; border-top: 0; border-radius: 0 0 0 100%; transform: rotate(-16deg); }
.companion-copy { position: absolute; right: 0; bottom: 23px; left: 0; text-align: center; }
.companion-copy h2 { margin: 4px 0 3px; font-size: 22px; }.companion-copy p { margin: 0 0 8px; color: #98b2b8; font-size: 11px; }
.companion-kicker { color: #69d6d0; font-size: 9px; }.unlock-caption { color: #5c8490; font-size: 8px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 18px; margin-top: 18px; }
.section-card { padding: 23px 25px; }
.section-heading { margin-bottom: 17px; }.section-heading h2 { margin: 5px 0 0; font-size: 19px; }
.text-link { color: #83b9c1; font-size: 11px; transition: color .2s ease; }.text-link span { color: var(--cyan); }
.quest-list, .completion-list { display: grid; }
.quest-row, .completion-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #1a303b; }
.quest-icon, .check-mark { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border: 1px solid #31535d; border-radius: 8px; color: var(--cyan); background: #112a34; }
.check-mark { color: var(--green); border-color: #2b5949; background: #112a26; }
.quest-copy { min-width: 0; flex: 1; }.quest-copy h3 { overflow: hidden; margin: 0 0 3px; color: #d5e5e7; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.quest-copy p { overflow: hidden; margin: 0; color: #78939d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.xp-reward { flex: 0 0 auto; color: #9de3d8; font: 10px var(--mono); }.empty-state { display: grid; justify-items: center; padding: 33px 12px 28px; text-align: center; }.empty-state h3, .empty-state h2 { margin: 7px 0; font-size: 14px; }.empty-state p { margin: 0; color: #7d969e; font-size: 11px; }.empty-glyph { color: #65cfd0; font-size: 22px; }.empty-state.compact { padding: 20px 10px; }
.milestone-card { position: relative; overflow: hidden; background: radial-gradient(ellipse at 100% 0%, #a2793720, transparent 60%), linear-gradient(145deg, #192830, #101d26); }
.milestone-card h2 { margin: 9px 0 7px; font-size: 18px; }.milestone-card > p { max-width: 290px; color: #8ea6aa; font-size: 11px; line-height: 1.6; }
.reward-icon { display: grid; place-items: center; width: 43px; height: 43px; margin: 16px 0 13px; border: 1px solid #8c753e; border-radius: 12px; color: var(--gold); background: #3b3423; font-size: 22px; box-shadow: 0 0 20px #edc66b12; }
.milestone-count { display: flex; align-items: baseline; gap: 9px; margin: 16px 0; }.milestone-count strong { color: var(--gold); font-size: 27px; letter-spacing: -.04em; }.milestone-count span { font-size: 8px; }
.recent-card { margin-top: 18px; }.recent-card .section-heading { margin-bottom: 5px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid #1b3039; color: #607a83; font-size: 9px; }.footer-dot { padding: 0 5px; color: #43adb1; }
.auth-shell { display: grid; grid-template-columns: minmax(340px, 460px) minmax(400px, 1fr); align-items: center; gap: clamp(32px, 9vw, 140px); width: min(1060px, calc(100% - 48px)); min-height: calc(100vh - 126px); margin: 0 auto; padding: 42px 0; }
.auth-card { padding: clamp(28px, 4vw, 43px); }.auth-card h1 { margin: 13px 0 12px; font-size: 34px; line-height: 1.13; }.auth-card h1 span, .auth-aside h2 span { color: var(--cyan); }.auth-card > p { font-size: 12px; }
.stack-form { display: grid; gap: 10px; margin-top: 25px; }.stack-form label { margin-top: 4px; color: #b1c5c9; font-size: 11px; }.stack-form input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #29414b; border-radius: 7px; color: var(--text); background: #091721; }.stack-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px #69e5e41a; }
.fine-print { margin: 9px 0 0; color: #6f8991; font-size: 10px; line-height: 1.6; }.alert { margin-top: 17px; padding: 11px 13px; border: 1px solid #713d42; border-radius: 7px; color: #ffb5b1; background: #321c25; font-size: 11px; }
.auth-aside { position: relative; overflow: hidden; min-height: 370px; display: flex; flex-direction: column; justify-content: center; padding: 38px 28px; }.auth-aside h2 { position: relative; z-index: 1; margin: 17px 0 11px; font-size: clamp(34px, 4vw, 51px); line-height: 1.16; letter-spacing: -.06em; }.auth-aside > p:last-child { max-width: 340px; color: #90a9ae; font-size: 13px; line-height: 1.7; }.signal-mark { position: absolute; top: 37px; right: 70px; color: #78e8da; font-size: 82px; opacity: .7; text-shadow: 0 0 35px #69e5e49a; }.orbit { position: absolute; right: 8%; top: 5%; width: 300px; height: 300px; border: 1px solid #50b3b622; border-radius: 50%; }.orbit-two { right: -4%; top: 16%; width: 410px; height: 410px; border-style: dashed; opacity: .55; }.single-auth { grid-template-columns: minmax(320px, 500px); justify-content: center; }
.reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }.reward-card { padding: 20px 22px; }.reward-card .reward-icon { width: 37px; height: 37px; margin: 0; font-size: 17px; }.reward-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.reward-state { color: #718a91; font-size: 8px; }.reward-card.unlocked { border-color: #376957; background: linear-gradient(140deg, #102820, #0d1d25); }.reward-card.unlocked .reward-state { color: var(--green); }.reward-card.claimed .reward-state { color: var(--gold); }.reward-card h2 { margin: 8px 0; font-size: 17px; }.reward-card > p { min-height: 34px; margin-bottom: 15px; color: #8ba1a7; font-size: 11px; line-height: 1.6; }.reward-threshold { display: flex; align-items: baseline; gap: 8px; padding-top: 13px; border-top: 1px solid #203843; }.reward-threshold strong { color: var(--cyan); font: 17px var(--mono); }.reward-threshold span { font-size: 8px; }.reward-card.locked .reward-threshold strong { color: #9bb0b2; }.reward-card .small-copy { min-height: 0; margin: 8px 0 0; font-size: 9px; }.xp-mini { display: grid; justify-items: end; gap: 5px; }.xp-mini strong { color: var(--cyan); font-size: 24px; }
.public-character { display: flex; align-items: center; gap: 23px; padding: 30px; }.public-character h2 { margin: 7px 0; }.public-character .xp-value { margin: 8px 0; font-size: 25px; }.public-character .xp-value small { color: var(--muted); font-size: 10px; }.public-note { margin: 15px 0; font-size: 10px; }
.invite-card { max-width: 580px; }.invite-card .stack-form { max-width: 460px; margin-top: 0; }.invite-result { margin-top: 22px; padding: 15px; border: 1px solid #426e65; border-radius: 8px; background: #112720; }.invite-result p { overflow-wrap: anywhere; margin: 9px 0; color: #b5e9d4; font: 11px var(--mono); }.invite-result .small-copy { color: #849c91; font-family: var(--sans); }
.error-card { max-width: 620px; margin: 100px auto; padding: 34px; }.error-card h1 { margin: 12px 0; }.error-card > p { margin-bottom: 22px; font-size: 12px; }

@media (max-width: 850px) {
  .topbar { flex-wrap: wrap; gap: 12px 22px; padding-top: 12px; padding-bottom: 12px; }
  .brand { flex: 1; }.main-nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 20px; padding: 4px 0; }.main-nav a { flex: 0 0 auto; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }.companion-card { min-height: 270px; }.dragon-art { top: 32px; transform: translateX(50%) scale(.86); }.companion-copy { bottom: 18px; }.auth-shell { grid-template-columns: minmax(300px, 1fr); max-width: 500px; }.auth-aside { display: none; }
}
@media (max-width: 560px) {
  .topbar { min-height: 63px; padding-right: 17px; padding-left: 17px; }.account-name { display: none; }.account-menu { gap: 3px; }.account-menu .button { font-size: 10px; }
  .page-shell, .narrow-shell { width: calc(100% - 30px); margin-top: 27px; }.welcome-row { align-items: flex-start; flex-direction: column; }.welcome-row > .button { align-self: flex-start; }.welcome-row h1 { font-size: 27px; }
  .character-card, .section-card { padding: 19px 17px; }.character-main { gap: 14px; margin: 23px 0; }.avatar-frame { width: 72px; height: 72px; flex-basis: 72px; }.avatar-frame::before { inset: 5px; }.avatar-core { width: 48px; height: 48px; }.character-copy h2 { font-size: 19px; }.character-copy p { font-size: 10px; }.affiliations { gap: 5px; }.affiliation { font-size: 9px; }.metric-label { font-size: 9px; }.metric-label span { font-size: 8px; }.progress-caption { font-size: 8px; }.companion-card { min-height: 258px; }
  .section-heading { align-items: flex-start; }.section-heading .text-link { padding-top: 6px; white-space: nowrap; }.quest-copy h3 { max-width: 220px; }.site-footer { width: calc(100% - 30px); flex-direction: column; gap: 7px; font-size: 8px; }.auth-shell { width: calc(100% - 30px); min-height: calc(100vh - 100px); padding: 25px 0; }.auth-card { padding: 25px 20px; }.auth-card h1 { font-size: 29px; }.reward-grid { grid-template-columns: 1fr; }.reward-card { padding: 17px; }.public-character { align-items: flex-start; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
