@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c1420;
  --bg-deep: #080d16;
  --surface: #172332;
  --surface-2: #1e2c3b;
  --surface-3: #243548;
  --line: rgba(227, 184, 109, .18);
  --line-strong: rgba(227, 184, 109, .46);
  --gold: #e3b86d;
  --gold-bright: #f6d89b;
  --muted: #b9c0c9;
  --text: #f5f0e6;
  --purple: #9b7bea;
  --purple-bright: #bda8ff;
  --green: #5acb94;
  --blue: #5cb8e8;
  --red: #db6b65;
  --shadow: 0 16px 40px rgba(0, 0, 0, .28);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 78% -10%, rgba(83, 53, 124, .38), transparent 36rem), var(--bg); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 246px; min-height: 100vh; padding: 28px 18px 20px; background: linear-gradient(180deg, rgba(18, 30, 45, .98), rgba(8, 14, 23, .98)); border-right: 1px solid rgba(227, 184, 109, .15); position: fixed; left: 0; top: 0; z-index: 20; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 28px; }
.brand-mark { width: 38px; height: 42px; display: grid; place-items: center; color: var(--gold-bright); font-size: 22px; border: 1px solid var(--gold); clip-path: polygon(50% 0, 96% 24%, 96% 76%, 50% 100%, 4% 76%, 4% 24%); background: radial-gradient(circle, rgba(227,184,109,.22), rgba(227,184,109,.04)); }
.brand-name { font-family: Cinzel, Georgia, serif; font-size: 20px; color: var(--gold-bright); letter-spacing: .02em; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 1px; }
.nav-label { color: #718092; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; margin: 7px 12px 9px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 44px; border: 1px solid transparent; border-radius: 10px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: transparent; padding: 0 12px; text-align: left; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--gold-bright); background: linear-gradient(90deg, rgba(227,184,109,.14), transparent); border-color: rgba(227,184,109,.18); box-shadow: inset 3px 0 var(--gold); }
.nav-icon { width: 20px; text-align: center; font-size: 17px; }
.nav-badge { margin-left: auto; background: var(--purple); color: white; min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 20px; font-size: 11px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.08); color: #778596; font-size: 11px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; box-shadow: 0 0 0 4px rgba(90,203,148,.1); }

.main { width: calc(100% - 246px); margin-left: 246px; min-height: 100vh; }
.topbar { height: 76px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 42px; position: sticky; top: 0; z-index: 10; background: rgba(12,20,32,.84); backdrop-filter: blur(18px); }
.topbar-title { font-family: Cinzel, Georgia, serif; font-size: 18px; color: var(--gold-bright); }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.icon-button { width: 42px; height: 42px; border: 1px solid rgba(227,184,109,.25); color: var(--text); background: rgba(255,255,255,.04); border-radius: 11px; display: grid; place-items: center; position: relative; }
.icon-button .dot { width: 7px; height: 7px; background: var(--red); border: 2px solid var(--bg); position: absolute; top: 7px; right: 7px; border-radius: 50%; }
.notification-bell { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-badge { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--bg); border-radius: 12px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid rgba(227,184,109,.2); border-radius: 30px; background: rgba(255,255,255,.03); color: var(--text); }
.sidebar .brand[data-nav] { cursor: pointer; }
.character-logout { margin-top: 16px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--gold-bright); background: radial-gradient(circle at 40% 35%, #945e80, #392b5d 52%, #172332 53%); border: 1px solid var(--gold); font-size: 16px; }
.profile-chip small { color: var(--muted); display: block; font-size: 10px; }
.content { max-width: 1420px; margin: 0 auto; padding: 38px 42px 80px; }
.view { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; margin-bottom: 8px; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.subtle { color: #8794a4; font-size: 13px; }

.btn { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 13px; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { color: #1b1720; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: 0 8px 18px rgba(227,184,109,.14); }
.btn-purple { color: white; background: linear-gradient(135deg, #7657bd, #4f3991); border-color: rgba(189,168,255,.52); box-shadow: 0 8px 18px rgba(109, 78, 181, .22); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.btn-danger { color: #ffc2bf; background: rgba(219,107,101,.1); border-color: rgba(219,107,101,.35); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 12px; }

.card { background: linear-gradient(145deg, rgba(30,44,59,.96), rgba(19,30,43,.96)); border: 1px solid rgba(227,184,109,.14); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-inner { padding: 22px; }
.ornate { position: relative; }
.ornate::before { content: '✦'; position: absolute; top: 12px; left: 14px; color: rgba(227,184,109,.55); font-size: 11px; }
.ornate::after { content: '✦'; position: absolute; bottom: 10px; right: 14px; color: rgba(227,184,109,.45); font-size: 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 30px 0 16px; }
.section-heading h2 { margin: 0; }
.link-button { color: var(--gold-bright); background: none; border: 0; padding: 4px; font-size: 13px; }

.hero { min-height: 280px; padding: 32px; border-radius: 20px; overflow: hidden; position: relative; display: flex; align-items: center; border: 1px solid rgba(227,184,109,.28); background: radial-gradient(circle at 75% 20%, rgba(124,87,178,.45), transparent 28%), radial-gradient(circle at 82% 85%, rgba(62,122,99,.22), transparent 27%), linear-gradient(120deg, #172332, #111a2c 48%, #171229); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .6; background: linear-gradient(110deg, transparent 55%, rgba(227,184,109,.12) 55.5%, transparent 56%), linear-gradient(75deg, transparent 67%, rgba(92,184,232,.12) 67.5%, transparent 68%); }
.hero::after { content: '⌂'; position: absolute; right: 9%; bottom: -26px; color: rgba(246,216,155,.15); font-size: 230px; font-family: Georgia, serif; line-height: 1; transform: rotate(-3deg); }
.hero-copy { max-width: 590px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); color: var(--gold-bright); margin: 10px 0 12px; }
.hero p { color: #d3dae3; max-width: 500px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-rune { position: absolute; right: 20%; top: 33%; width: 130px; height: 130px; border: 1px solid rgba(227,184,109,.34); border-radius: 50%; transform: rotate(30deg); box-shadow: 0 0 0 16px rgba(227,184,109,.035), 0 0 0 34px rgba(227,184,109,.025); }
.hero-rune::before, .hero-rune::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(155,123,234,.48); transform: rotate(30deg); }
.hero-rune::after { inset: 36px; border-color: rgba(246,216,155,.7); transform: rotate(45deg); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.stat-card { padding: 18px; min-height: 124px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 100px; height: 100px; right: -26px; bottom: -36px; border-radius: 50%; border: 1px solid rgba(227,184,109,.18); box-shadow: 0 0 0 16px rgba(227,184,109,.025); }
.stat-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-icon { color: var(--gold); font-size: 17px; }
.stat-number { margin-top: 12px; font-family: Cinzel, Georgia, serif; color: var(--text); font-size: 27px; }
.stat-note { color: var(--green); font-size: 11px; margin-top: 2px; }

.two-col { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.85fr); gap: 18px; }
.dashboard-columns { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; }
.dashboard-columns > * { min-width: 0; }
.dashboard-columns > :first-child > .section-heading, .dashboard-columns > .side-stack > .section-heading { min-height: 30px; }
.dashboard-columns > :first-child { display: grid; grid-template-rows: auto minmax(0,1fr); }
.dashboard-columns > :first-child > .card { min-height: 0; }
.dashboard-columns > .side-stack { grid-template-rows: auto minmax(0,1fr) minmax(0,1fr); min-height: 0; }
.dashboard-columns > .side-stack > .card { min-height: 0; }
.quest-list { display: grid; gap: 10px; }
.quest-row { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(8,14,23,.22); transition: .18s ease; }
.quest-row:hover { border-color: rgba(227,184,109,.35); background: rgba(255,255,255,.035); }
.quest-glyph { width: 46px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; color: var(--gold-bright); font-size: 20px; background: linear-gradient(145deg, rgba(227,184,109,.18), rgba(227,184,109,.04)); border: 1px solid rgba(227,184,109,.42); clip-path: polygon(50% 0, 91% 14%, 100% 50%, 91% 86%, 50% 100%, 9% 86%, 0 50%, 9% 14%); }
.quest-content { flex: 1; min-width: 0; }
.quest-content h3 { margin: 0 0 3px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; }
.quest-content p { color: var(--muted); margin: 0 0 7px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quest-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 0 8px; border-radius: 6px; color: #d9e0ea; background: rgba(92,184,232,.1); border: 1px solid rgba(92,184,232,.2); font-size: 11px; }
.chip.gold { color: var(--gold-bright); background: rgba(227,184,109,.1); border-color: rgba(227,184,109,.25); }
.chip.purple { color: var(--purple-bright); background: rgba(155,123,234,.13); border-color: rgba(155,123,234,.28); }
.chip.green { color: #a3efcb; background: rgba(90,203,148,.1); border-color: rgba(90,203,148,.22); }
.quest-reward { text-align: right; white-space: nowrap; }
.xp { color: var(--gold-bright); font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 15px; }
.skill-xp { color: var(--muted); font-size: 10px; margin-top: 2px; }

.side-stack { display: grid; gap: 16px; }
.progress-card { padding: 20px; }
.progress-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.progress-top h3 { margin: 0 0 4px; }
.progress-value { color: var(--gold-bright); font-family: Cinzel, Georgia, serif; font-size: 23px; }
.progress-bar { height: 9px; background: rgba(255,255,255,.08); border-radius: 9px; overflow: hidden; margin: 18px 0 8px; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7755c5, var(--purple-bright)); box-shadow: 0 0 14px rgba(155,123,234,.45); }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.member-list { display: grid; gap: 12px; }
.custom-avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; position: relative; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle, var(--skin), #172331); color: #172331; border: 2px solid rgba(246,216,155,.8); overflow: visible; font-style: normal; box-shadow: 0 3px 12px rgba(0,0,0,.35); }.portrait-avatar { overflow: hidden; background: radial-gradient(circle at 50% 25%, #6d548e, #101a2a 70%); }.portrait-avatar img { width: 128%; height: 128%; object-fit: contain; object-position: center top; transform: translateY(8%); position: relative; z-index: 1; }.custom-avatar i { position: absolute; font-style: normal; line-height: 1; }.portrait-halo { inset: 0; z-index: 2; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hair), transparent 45%); border-radius: inherit; }.avatar-hat { z-index: 4; top: -10px; font-size: 17px; color: var(--hair); text-shadow: 0 1px 3px #000; }.avatar-accessory { z-index: 5; right: -3px; top: 5px; font-size: 12px; color: #f6d89b; text-shadow: 0 1px 3px #000; }.avatar-large { width: 150px; height: 150px; }.avatar-large img { width: 132%; height: 132%; }.avatar-large .avatar-hat { font-size: 30px; top: -14px; }.avatar-large .avatar-accessory { font-size: 20px; right: 3px; top: 17px; }
.avatar-editor, .choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 10px; }.avatar-settings, .guild-settings { padding: 22px; }.avatar-settings { grid-column: 1 / -1; }.avatar-settings form, .guild-settings form { display: grid; gap: 14px; }.choice-fieldset { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; }.choice-fieldset legend, .choice-title { color: var(--gold-bright); font-size: 12px; font-weight: 700; }.choice-grid label { font-size: 12px; color: var(--text); }.choice-grid input { accent-color: var(--purple); }
.portrait-edit-button, .title-edit-button, .close-inline { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(246,216,155,.5); border-radius: 50%; color: var(--gold-bright); background: rgba(12,20,32,.78); font: 600 17px/1 system-ui, sans-serif; cursor: pointer; }.portrait-edit-button { position: absolute; right: 0; bottom: 6px; z-index: 8; }.editable-title { display: flex; align-items: center; gap: 9px; }.title-edit-button { width: 27px; height: 27px; font-size: 15px; }.close-inline { flex: 0 0 auto; border-color: rgba(255,255,255,.22); color: var(--muted); }.portrait-edit-button:hover, .title-edit-button:hover, .close-inline:hover { background: rgba(155,123,234,.28); color: #fff4cf; }
.member { display: flex; align-items: center; gap: 10px; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 13px; font-weight: 600; }
.member-role { font-size: 10px; color: var(--muted); }
.member-score { color: var(--gold-bright); font-size: 12px; font-weight: 700; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search { min-height: 44px; flex: 1 1 240px; color: var(--text); background: var(--surface); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 0 14px 0 40px; outline: none; }
.search-wrap { position: relative; flex: 1 1 240px; }
.search-wrap::before { content: '⌕'; position: absolute; left: 14px; top: 8px; color: var(--muted); font-size: 21px; z-index: 1; }
select, .field-input, textarea { min-height: 44px; color: var(--text); background: var(--surface); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 0 12px; }
textarea { padding: 12px; min-height: 105px; resize: vertical; }
.tab-bar { display: inline-flex; gap: 3px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.tab { min-height: 36px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.tab.active { color: var(--gold-bright); background: var(--surface-3); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.quest-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.quest-card { padding: 18px; position: relative; transition: .18s ease; }
.quest-card:hover { transform: translateY(-2px); border-color: rgba(227,184,109,.35); }
.quest-card-head { display: flex; align-items: flex-start; gap: 12px; }
.quest-card-head .quest-glyph { width: 40px; height: 46px; font-size: 17px; }
.quest-card-head h3 { margin: 1px 0 3px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px; }
.quest-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.quest-card-reward { margin-left: auto; text-align: right; }
.quest-card-body { padding: 14px 0; color: #d3dbe6; font-size: 13px; min-height: 62px; }
.quest-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.quest-status { color: var(--green); font-size: 11px; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed rgba(227,184,109,.22); border-radius: 14px; grid-column: 1 / -1; }

.detail-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 18px; }
.detail-card { padding: 28px; background: linear-gradient(145deg, #2d2936, #171f2d 70%); }
.back-button { margin-bottom: 22px; color: var(--gold-bright); background: none; border: 0; padding: 0; font-size: 13px; }
.detail-hero { border-bottom: 1px solid rgba(227,184,109,.22); padding-bottom: 25px; margin-bottom: 22px; }
.detail-hero h1 { color: var(--gold-bright); font-size: clamp(27px, 4vw, 42px); margin: 12px 0 8px; }
.detail-hero p { color: #d3dbe4; max-width: 650px; margin-bottom: 18px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-reward-list { display: grid; gap: 12px; }
.skill-reward { display: grid; grid-template-columns: 145px 1fr 58px; align-items: center; gap: 12px; font-size: 12px; }
.skill-reward-name { display: flex; align-items: center; gap: 7px; }
.skill-dot { width: 9px; height: 9px; border-radius: 50%; }
.skill-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.skill-track > span { display: block; height: 100%; border-radius: inherit; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.quest-release-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid rgba(219,107,101,.6); border-radius: 50%; background: rgba(219,107,101,.1); color: #f09a94; font-size: 17px; cursor: pointer; }.quest-release-icon:hover { background: rgba(219,107,101,.24); color: #ffe1df; }.release-modal { text-align: center; }.release-modal .modal-head { text-align: left; }.release-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin: 8px auto 16px; border: 1px solid rgba(219,107,101,.65); border-radius: 50%; color: #f09a94; background: rgba(219,107,101,.12); font-size: 30px; }
.side-note { padding: 20px; }
.side-note h3 { margin-bottom: 10px; }
.fact-list { display: grid; gap: 10px; margin: 0; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.07); }
.fact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-row dt { color: var(--muted); }
.fact-row dd { margin: 0; color: var(--text); text-align: right; }

.character-grid { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 18px; }
.character-card { padding: 26px; text-align: center; overflow: hidden; position: relative; background: radial-gradient(circle at 50% 12%, rgba(118, 72, 147, .35), transparent 40%), linear-gradient(160deg,#1e2b3d,#121c2b); }
.account-settings-card { grid-column: 1 / -1; }
.account-page { max-width: 1160px; margin: 0 auto; padding: 0 clamp(8px, 3vw, 34px) 44px; }
.account-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.account-page .account-settings-card { grid-column: auto; padding: 42px 46px; }
.account-page-grid { gap: 24px; max-width: 1040px; }
.account-page > .account-danger { max-width: 1040px; padding: 42px 46px; }
.account-settings-button { color: var(--gold-bright); }
.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.settings-form { display: grid; gap: 20px; }
.settings-form .field { gap: 8px; }
.settings-form .btn { justify-self: start; margin-top: 3px; }
.settings-form h3, .account-danger h3 { color: var(--gold-bright); margin: 0 0 2px; }
.account-danger { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(219,107,101,.25); }
.account-danger p { max-width: 720px; }
.character-orb { width: 142px; height: 142px; margin: 8px auto 18px; border-radius: 50%; display: grid; place-items: center; position: relative; font-size: 62px; background: radial-gradient(circle at 34% 27%, #d68ca2, #5c3a6e 43%, #1a2740 69%, transparent 70%); border: 1px solid var(--gold); box-shadow: 0 0 0 10px rgba(227,184,109,.05), 0 0 40px rgba(155,123,234,.3); }
.level-medallion { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-top: 16px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-bright); background: radial-gradient(circle, rgba(227,184,109,.24), rgba(227,184,109,.06)); font-family: Cinzel, Georgia, serif; font-size: 21px; }
.character-card h2 { color: var(--gold-bright); margin: 12px 0 3px; }
.character-card .progress-bar { max-width: 260px; margin-left: auto; margin-right: auto; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-bright); border: 1px solid rgba(227,184,109,.35); background: rgba(227,184,109,.09); padding: 8px 12px; border-radius: 9px; font-size: 12px; margin-top: 12px; }
.radar-card { padding: 22px; }
.radar-wrap { min-height: 330px; display: grid; place-items: center; }
.radar-wrap svg { width: min(100%, 460px); height: auto; }
.radar-grid { fill: none; stroke: rgba(185,192,201,.26); stroke-width: 1; }
.radar-axis { stroke: rgba(185,192,201,.22); stroke-width: 1; }
.radar-shape { fill: rgba(155,123,234,.32); stroke: #b79cff; stroke-width: 3; }
.radar-label { fill: var(--muted); font: 11px 'DM Sans', sans-serif; }
.skills-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.skill-card { padding: 16px; }
.skill-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skill-card-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.skill-orb { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(155,123,234,.16); border: 1px solid currentColor; }
.skill-level { color: var(--gold-bright); font-family: Cinzel, Georgia, serif; }
.skill-card p { color: var(--muted); font-size: 11px; margin: 9px 0 12px; }
.skill-card .progress-bar { margin: 0 0 6px; height: 6px; }

.hall-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 18px; }
.hall-wide-layout { grid-template-columns: minmax(0,1fr); }
.hall-wide-layout > .card:first-child { width: 100%; max-width: none; margin: 0; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; min-height: 270px; padding: 28px 14px 0; }
.podium-item { display: grid; justify-items: center; gap: 7px; }
.podium-item.second { order: 1; }.podium-item.first { order: 2; }.podium-item.third { order: 3; }
.podium-avatar { width: 54px; height: 54px; font-size: 20px; }.first .podium-avatar { width: 68px; height: 68px; font-size: 26px; }
.podium-name { font-weight: 700; font-size: 12px; }.podium-xp { color: var(--gold-bright); font-size: 12px; }
.podium-step { width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center; font-family: Cinzel, Georgia, serif; color: #121a27; font-size: 24px; background: linear-gradient(180deg, var(--gold-bright), #99713b); }
.first .podium-step { height: 128px; }.second .podium-step { height: 94px; background: linear-gradient(180deg, #c2cbd3, #758393); }.third .podium-step { height: 69px; background: linear-gradient(180deg, #d99869, #98603b); }
.leaderboard { display: grid; gap: 8px; padding: 18px; }
.leader-row { display: grid; grid-template-columns: 26px 32px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.035); }
.leader-row.me { border: 1px solid rgba(227,184,109,.32); background: rgba(227,184,109,.08); }
.leader-rank { color: var(--muted); text-align: center; font-family: Cinzel, Georgia, serif; }.leader-row:first-child .leader-rank { color: var(--gold-bright); }
.leader-avatar { width: 31px; height: 31px; font-size: 13px; }.leader-info strong { display: block; font-size: 12px; }.leader-info small { color: var(--muted); font-size: 10px; }.leader-points { color: var(--gold-bright); font-weight: 700; font-size: 12px; }
.history-list { display: grid; gap: 8px; }.history-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }.history-row strong { color: var(--text); }

.council-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.council-banner { padding: 20px 22px; margin-bottom: 18px; border-radius: 14px; border: 1px solid rgba(155,123,234,.3); background: linear-gradient(100deg, rgba(89,68,142,.3), rgba(30,44,59,.72)); display: flex; align-items: center; gap: 16px; }
.council-emblem { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-size: 21px; color: var(--gold-bright); border: 1px solid var(--gold); background: rgba(227,184,109,.11); }
.council-banner h3 { margin: 0 0 3px; }.council-banner p { color: var(--muted); font-size: 12px; margin: 0; }
.proposal-grid { display: grid; gap: 14px; }
.proposal-card { padding: 20px; }
.proposal-top { display: flex; justify-content: space-between; gap: 14px; }
.proposal-top h3 { margin: 0 0 5px; font-family: Cinzel, Georgia, serif; color: var(--gold-bright); font-size: 19px; }.proposal-top p { margin: 0; color: var(--muted); font-size: 12px; }.proposal-xp { text-align: right; white-space: nowrap; }.proposal-xp strong { display: block; color: var(--gold-bright); font-family: Cinzel, Georgia, serif; font-size: 23px; }.proposal-xp span { color: var(--muted); font-size: 10px; }
.proposal-body { padding: 18px 0 16px; color: #d4dce5; font-size: 13px; }.proposal-body p { margin-bottom: 11px; }
.vote-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }.vote-track { height: 8px; flex: 1 1 130px; min-width: 110px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; display: flex; }.vote-yes { background: var(--green); }.vote-no { background: var(--red); }.vote-abstain { background: #718092; }
.proposal-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 15px; }.vote-btn { flex: 1 1 110px; }.vote-btn.selected { box-shadow: 0 0 0 2px var(--gold-bright); }
.proposal-footer { display: flex; justify-content: space-between; gap: 12px; color: #8995a4; font-size: 11px; margin-top: 14px; }.proposal-status { color: var(--gold-bright); }

.guild-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 18px; }.guild-banner { min-height: 210px; padding: 28px; position: relative; overflow: hidden; background: radial-gradient(circle at 78% 45%, rgba(73,106,82,.34), transparent 28%), linear-gradient(120deg, #253445, #171b2c); }.guild-banner::after { content: '⌂'; color: rgba(246,216,155,.12); position: absolute; right: 8%; bottom: -30px; font-size: 245px; }.guild-banner-content { position: relative; z-index: 1; }.guild-banner h2 { color: var(--gold-bright); font-size: 28px; margin: 8px 0 4px; }.guild-banner p { color: var(--muted); max-width: 440px; }.guild-level { display: flex; align-items: center; gap: 14px; }.guild-level strong { color: var(--gold-bright); font-family: Cinzel, Georgia, serif; font-size: 32px; }.guild-progress { margin-top: 22px; max-width: 500px; }.boss-card { padding: 22px; }.boss-card h2 { color: var(--gold-bright); margin-bottom: 6px; }.boss-card p { color: var(--muted); font-size: 13px; }.boss-bar { height: 18px; margin: 20px 0 8px; background: rgba(255,255,255,.08); border-radius: 18px; padding: 3px; }.boss-bar span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #db6b65, #f0a06c); }.boss-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }.boss-tasks { display: grid; gap: 10px; margin-top: 18px; }.boss-task { display: flex; align-items: center; gap: 10px; font-size: 12px; }.check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(90,203,148,.4); color: var(--green); background: rgba(90,203,148,.1); }.check.open { color: var(--muted); border-color: rgba(255,255,255,.2); background: transparent; }

.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.more-card { padding: 20px; min-height: 170px; }.more-card h3 { color: var(--gold-bright); margin-bottom: 9px; }.more-card p { color: var(--muted); font-size: 12px; }.achievement-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }.achievement { padding: 18px 12px; text-align: center; }.achievement-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-bright); font-size: 21px; background: rgba(227,184,109,.1); }.achievement.locked { opacity: .43; filter: grayscale(.45); }.achievement strong { display: block; font-size: 12px; }.achievement small { color: var(--muted); font-size: 10px; }

.auth-page { min-height: calc(100vh - 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); margin: 20px; border: 1px solid rgba(227,184,109,.22); border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, rgba(23,35,50,.98), rgba(10,16,27,.98)); box-shadow: var(--shadow); }.auth-art { padding: 34px 42px; display: flex; flex-direction: column; justify-content: space-between; min-height: 680px; background: radial-gradient(circle at 70% 25%, rgba(118,72,147,.36), transparent 28%), radial-gradient(circle at 20% 80%, rgba(63,128,103,.2), transparent 30%), linear-gradient(135deg, #1c2c40, #0f1927); position: relative; }.auth-art::after { content: '⌂'; position: absolute; right: 10%; bottom: -45px; font-size: 300px; line-height: 1; color: rgba(246,216,155,.08); }.auth-art .brand { padding: 0; position: relative; z-index: 1; }.auth-art-copy { max-width: 580px; position: relative; z-index: 1; }.auth-art-copy h1 { color: var(--gold-bright); font-size: clamp(34px, 5vw, 62px); margin: 12px 0; }.auth-art-copy p { color: #d5dce5; font-size: 17px; max-width: 470px; }.auth-runes { display: flex; gap: 12px; margin-top: 26px; }.auth-runes span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(227,184,109,.5); color: var(--gold-bright); border-radius: 50%; background: rgba(227,184,109,.1); }.auth-panel { padding: 56px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; background: rgba(13,22,35,.76); }.auth-panel h1 { color: var(--gold-bright); font-size: 34px; margin: 10px 0 8px; }.auth-form { display: grid; gap: 15px; margin-top: 22px; }.auth-submit { width: 100%; margin-top: 6px; min-height: 50px; }.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 15px; }.auth-switch { margin-top: 18px; padding-left: 0; }.auth-api-status { margin-top: 28px; color: #8e9aaa; font-size: 11px; }.auth-api-status.online { color: var(--green); }.auth-api-status.offline { color: var(--red); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4,8,14,.72); backdrop-filter: blur(7px); }.modal { width: min(100%, 590px); max-height: min(840px, 94vh); overflow: auto; padding: 24px; background: linear-gradient(145deg, #26384b, #141f2e); border: 1px solid rgba(227,184,109,.35); border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.55); }.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 19px; }.modal-head h2 { color: var(--gold-bright); margin: 0 0 4px; }.close-button { color: var(--muted); background: rgba(255,255,255,.05); border: 0; border-radius: 8px; width: 36px; height: 36px; font-size: 20px; }.form-grid { display: grid; gap: 14px; }.field { display: grid; gap: 6px; }.field label { color: var(--text); font-size: 12px; font-weight: 600; }.field-hint { color: #8995a4; font-size: 10px; }.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.preview-box { padding: 15px; border-radius: 10px; border: 1px solid rgba(155,123,234,.35); background: rgba(155,123,234,.11); }.preview-box strong { color: var(--gold-bright); font-family: Cinzel, Georgia, serif; font-size: 22px; }.preview-box span { color: var(--muted); font-size: 11px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.notification-modal { width: min(100%, 650px); }.notification-head-actions { display: flex; align-items: center; gap: 8px; }.notification-list { display: grid; gap: 8px; }.notification-row { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) 10px; align-items: center; gap: 12px; padding: 13px 12px; color: var(--text); text-align: left; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.025); }.notification-row:hover { border-color: rgba(227,184,109,.34); background: rgba(227,184,109,.07); }.notification-row.unread { border-color: rgba(155,123,234,.42); background: rgba(155,123,234,.12); }.notification-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(227,184,109,.34); border-radius: 50%; color: var(--gold-bright); background: rgba(227,184,109,.08); }.notification-copy { min-width: 0; display: grid; gap: 3px; }.notification-copy strong { font-size: 13px; }.notification-copy > span { color: var(--muted); font-size: 12px; line-height: 1.35; }.notification-copy small { color: #8290a0; font-size: 10px; }.notification-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); }.notification-empty { display: grid; justify-items: center; gap: 9px; padding: 42px 20px; color: var(--muted); text-align: center; }.notification-empty > span { width: 46px; height: 46px; display: grid; place-items: center; color: var(--gold-bright); border: 1px solid rgba(227,184,109,.35); border-radius: 50%; background: rgba(227,184,109,.08); font-size: 21px; }.notification-empty strong { color: var(--text); }.notification-empty p { max-width: 280px; margin: 0; font-size: 12px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 9px; width: min(360px, calc(100vw - 40px)); }.toast { padding: 14px 16px; border-radius: 11px; color: var(--text); background: #243548; border: 1px solid rgba(227,184,109,.38); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .24s ease; }.toast.success { border-color: rgba(90,203,148,.5); }.toast.info { border-color: rgba(92,184,232,.5); }.toast strong { color: var(--gold-bright); display: block; margin-bottom: 3px; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.bottom-nav { display: none; }
@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2,1fr); }.hero-rune { right: 12%; }.quest-grid { grid-template-columns: 1fr; }.skills-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 800px) { .sidebar { display: none; }.main { width: 100%; margin-left: 0; min-width: 0; }.topbar { padding: 0 18px; height: 68px; }.topbar-title { font-size: 16px; }.profile-chip { padding-right: 5px; max-width: 48px; }.profile-chip > div:last-child { display: none; }.content { padding: 26px 16px 104px; min-width: 0; overflow-x: hidden; }.two-col, .detail-layout, .character-grid, .hall-layout, .guild-layout { grid-template-columns: minmax(0, 1fr); min-width: 0; }.two-col > *, .side-stack, .quest-list, .quest-row, .section-heading { min-width: 0; max-width: 100%; }.quest-row { flex-wrap: wrap; }.quest-row .quest-content { flex: 1 1 170px; min-width: 0; }.quest-row .quest-reward { margin-left: auto; max-width: 100%; }.page-heading { display: block; }.page-heading .btn { margin-top: 14px; }.hero { padding: 25px 22px; min-height: 290px; }.hero-rune { right: 4%; top: 48%; width: 105px; height: 105px; }.hero::after { right: -5%; }.stats-grid { gap: 10px; }.stat-card { min-height: 112px; padding: 14px; }.stat-number { font-size: 22px; }.bottom-nav { display: grid; grid-template-columns: repeat(5,1fr); position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; padding: 8px 5px calc(8px + env(safe-area-inset-bottom)); background: rgba(12,20,32,.94); border-top: 1px solid rgba(227,184,109,.22); backdrop-filter: blur(15px); }.bottom-nav .nav-item { min-height: 52px; display: grid; justify-items: center; gap: 2px; padding: 4px 2px; font-size: 10px; }.bottom-nav .nav-icon { font-size: 16px; }.bottom-nav .nav-badge { position: absolute; top: 3px; margin-left: 24px; }.tab-bar { max-width: 100%; overflow-x: auto; }.toolbar select { flex: 1; }.proposal-top { display: block; }.proposal-xp { text-align: left; margin-top: 12px; }.proposal-actions .btn { flex-basis: 100%; }.form-two { grid-template-columns: 1fr; }.more-grid { grid-template-columns: 1fr 1fr; }.achievement-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 800px) { .app-version { display: none; } }
@media (max-width: 800px) { .auth-page { min-height: 100vh; margin: 0; border-radius: 0; border: 0; grid-template-columns: 1fr; }.auth-art { min-height: 245px; padding: 24px 20px; }.auth-art-copy h1 { font-size: 32px; }.auth-art-copy p { font-size: 13px; }.auth-panel { padding: 30px 20px 48px; } }
@media (max-width: 800px) { .account-settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .account-page { padding: 0 0 34px; }.account-page-grid { grid-template-columns: 1fr; gap: 16px; }.account-page .account-settings-card, .account-page > .account-danger { padding: 30px 26px; } }
@media (max-width: 430px) { h1 { font-size: 28px; }.hero h1 { font-size: 32px; }.quest-row { align-items: flex-start; }.quest-row .quest-reward { margin-left: auto; }.quest-row .btn { display: none; }.skill-reward { grid-template-columns: 116px 1fr 50px; gap: 7px; }.skill-reward-name { font-size: 11px; }.more-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.auth-remember { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 12px; cursor: pointer; }
.auth-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--gold); }
.auth-remember span { display: grid; gap: 3px; }
.auth-remember small { color: var(--muted); font-size: 10px; font-weight: 400; }
.app-version { position: fixed; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 100; padding: 5px 8px; border: 1px solid rgba(227,184,109,.25); border-radius: 7px; color: var(--muted); background: rgba(12,20,32,.82); backdrop-filter: blur(8px); font-size: 10px; letter-spacing: .04em; pointer-events: none; }
.hall-page-heading { align-items: flex-end; }
.hall-period-control { display: grid; gap: 6px; min-width: 190px; }
.hall-period-control label { color: var(--muted); font-size: 11px; font-weight: 700; }
.hall-summary-heading { margin-top: 22px; }
.hall-summary-heading h2 { margin: 0; color: var(--gold-bright); }
.session-duration-card { max-width: 1040px; margin-top: 22px; }
.session-duration-range { width: 100%; min-height: 32px; padding: 0; accent-color: var(--gold); background: transparent; border: 0; }
.session-duration-scale { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.session-duration-scale output { color: var(--gold-bright); font-weight: 700; }
.quest-log-section { margin-top: 30px; }
.quest-log-list { display: grid; gap: 8px; padding: 12px; }
.quest-log-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.035); }
.quest-log-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--green); border: 1px solid rgba(90,203,148,.4); background: rgba(90,203,148,.1); font-weight: 700; }
.quest-log-main strong, .quest-log-meta strong { display: block; color: var(--text); font-size: 12px; }
.quest-log-main span, .quest-log-meta small { display: block; color: var(--muted); font-size: 11px; }
.quest-log-meta { text-align: right; }
.quest-log-meta strong { color: var(--gold-bright); }
@media (max-width: 600px) { .quest-log-row { grid-template-columns: 30px minmax(0,1fr); }.quest-log-meta { grid-column: 2; text-align: left; } }
@media (max-width: 800px) { .dashboard-columns > :first-child { display: block; }.dashboard-columns > .side-stack { grid-template-rows: auto auto auto; } }
