@font-face { font-family: Cormorant; src: url('assets/fonts/CormorantGaramond.ttf'); font-weight: 300 700; }
@font-face { font-family: Kaushan; src: url('assets/fonts/KaushanScript.ttf'); }
:root {
  --lacquer: #1c090d; --panel: #2a1015; --panel-2: #36151b; --line: rgba(226, 184, 102, .22);
  --gold: #e2b866; --gold-soft: #f3d797; --paper: #f7ecd6; --muted: #c4ab8a; --dim: #8f7660;
  --crimson: #b1303f; --crimson-deep: #7d1b28; --jade: #5fa38a;
  --serif: Cormorant, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: radial-gradient(1200px 700px at 70% -10%, #3a1219 0, transparent 60%), var(--lacquer); color: var(--paper);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .5; cursor: progress; }

/* Sidebar */
aside { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 26px 18px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #250c11, #170609); border-right: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 6px; }
.brand img { width: 50px; height: 50px; margin: -4px; }
.brand strong { display: block; font: 600 30px/1 var(--serif); letter-spacing: 4px; color: var(--gold-soft); }
nav { margin-top: 44px; display: grid; gap: 4px; }
.nav { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 15px; text-align: left; transition: background .2s, color .2s; }
.nav i { font: normal 15px var(--serif); width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.nav:hover { background: rgba(226, 184, 102, .06); color: var(--paper); }
.nav.active { background: linear-gradient(90deg, rgba(177, 48, 63, .45), rgba(177, 48, 63, .08)); color: var(--gold-soft); }
.nav.active i { background: var(--crimson); border-color: var(--gold); color: var(--gold-soft); }

/* Language */
.lang-pick { margin-top: auto; padding: 0 6px; }
.lang-pick label { margin: 0 0 6px; font-size: 12px; }
.lang-pick select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); font-size: 14px; }
.lang-pick select:focus { outline: 2px solid rgba(226, 184, 102, .5); }

/* Fanpage */
.hn-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f6dfe2; color: #b3394d; font: 600 22px var(--serif); }
.hn-logo.big { width: 92px; height: 92px; font-size: 48px; box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(0, 0, 0, .4); }
.fp-hero { display: flex; gap: 24px; align-items: center; }
.fp-hero h1 { margin-bottom: 6px; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fp-card { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.fp-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: 50% 15%; }
.fp-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.fp-body small { color: var(--gold); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.fp-body strong { font: 600 26px/1.1 var(--serif); color: var(--gold-soft); }
.fp-body span { color: var(--muted); font-size: 13px; }
.fp-actions { margin-top: auto; padding-top: 12px; display: flex; gap: 16px; align-items: center; }
.fp-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-page { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); transition: border-color .2s, transform .2s; }
.fp-page:hover { border-color: var(--gold); transform: translateY(-2px); }
.fp-page strong { display: block; font-size: 15px; }
.fp-page small { color: var(--muted); font-size: 12px; }
.fp-page > span:nth-child(2) { flex: 1; }
.fp-page em { font-style: normal; color: var(--gold); font-size: 18px; }

/* Layout */
main { margin-left: 236px; padding: 28px 36px 48px; max-width: 1280px; }
.view { display: none; animation: rise .35s ease; }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
h1 { font: 600 46px/1.05 var(--serif); margin: 8px 0 12px; color: var(--paper); }
h2.section { font: 600 26px var(--serif); color: var(--gold-soft); margin: 34px 0 14px; }
h2.section.small { font-size: 22px; margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 640px; margin: 0; font-size: 15px; }
.lead b { color: var(--gold-soft); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }

/* Buttons */
.primary { border: 1px solid var(--gold); background: linear-gradient(180deg, #c23a4a, var(--crimson-deep)); color: #fff4dc; padding: 11px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 20px rgba(125, 27, 40, .45); transition: filter .2s, transform .2s; }
.primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.primary.big { padding: 14px 30px; font-size: 16px; }
.primary.wide { width: 100%; margin-top: 22px; padding: 14px; font-size: 16px; }
.secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--paper); padding: 10px 18px; border-radius: 999px; }
.secondary:hover { border-color: var(--gold); }
.text { border: 0; background: none; padding: 4px 0; color: var(--gold); font-size: 13px; }
.text:hover { color: var(--gold-soft); text-decoration: underline; }
.text.danger { color: #f08a96; }

/* Live */
.now-play { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.now { margin-top: 14px; }
.now-play .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.now-play.recording .pulse { background: var(--jade); animation: pulse 1.6s infinite; }
.now-play .info { min-width: 0; }
.now-play strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-play small { color: var(--muted); font-size: 12px; }
.now-play.recording small { color: var(--jade); }
.now-play em { font-style: normal; color: var(--gold-soft); font-variant-numeric: tabular-nums; font-size: 13px; }
.now-play .resume-bar { grid-column: 1 / -1; }
.live { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.live .pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.live.recording .pulse { background: var(--jade); box-shadow: 0 0 0 0 rgba(95, 163, 138, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 163, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 163, 138, 0); } }
.live .info { flex: 1; min-width: 0; }
.live strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live small { color: var(--muted); }
.live .time { font-variant-numeric: tabular-nums; color: var(--gold-soft); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.tile strong { font-variant-numeric: lining-nums; display: block; font: 600 40px/1 var(--serif); color: var(--gold-soft); }
.tile span { color: var(--muted); font-size: 13px; }
.tile.flat { background: rgba(0, 0, 0, .15); margin-top: 12px; }

/* Bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar div { width: 100%; max-width: 26px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold), var(--crimson)); }
.bar.zero div { background: rgba(255, 255, 255, .08); }
.bar span { font-size: 10px; color: var(--dim); }
.bar:hover div { filter: brightness(1.2); }

/* Profiles */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.profile { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.profile.running { border-color: rgba(95, 163, 138, .6); }
.profile-row { display: flex; align-items: center; gap: 14px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--crimson), var(--crimson-deep)); border: 1px solid var(--gold); font: 600 22px var(--serif); color: var(--gold-soft); }
.profile-info { flex: 1; min-width: 0; }
.profile-info strong { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-info small { color: var(--muted); }
.profile-info small.on { color: var(--jade); }
.resume { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.resume span { grid-column: 1 / -1; font-size: 11px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.resume strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume em { font-style: normal; color: var(--gold-soft); font-variant-numeric: tabular-nums; font-size: 13px; }
.resume-bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.resume-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.profile-actions { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.banner { padding: 14px 18px; border-radius: 12px; background: rgba(177, 48, 63, .25); border: 1px solid var(--crimson); margin-bottom: 16px; }
.empty { color: var(--muted); font: 20px var(--serif); padding: 20px 0; }

/* Cheer */
.cheer-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
label { display: block; font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.panel > label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); padding: 7px 14px; border-radius: 99px; font-size: 13px; color: var(--paper); }
.chip:hover { border-color: var(--gold); }
.chip small { opacity: .7; font-size: 11px; }
.chip .official { color: #1c090d; background: var(--gold); opacity: 1; padding: 1px 6px; border-radius: 99px; margin-left: 4px; font-weight: 600; }
.tips { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.tips li { margin-bottom: 6px; }
.tips b { color: var(--gold-soft); }
.chip.on { background: rgba(226, 184, 102, .18); border-color: var(--gold); color: var(--gold-soft); }
textarea, input:not([type=checkbox]) { width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--paper); resize: vertical; }
textarea { font-size: 15px; line-height: 1.55; }
textarea:focus, input:focus { outline: 2px solid rgba(226, 184, 102, .5); outline-offset: 1px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.composer-foot .actions { display: flex; gap: 10px; }
#char-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
#char-count.over { color: #f08a96; font-weight: 600; }
.x-status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.x-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.x-status.on .dot { background: var(--jade); }
.x-status small { display: block; font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 16px 0 8px; }
.hint b { color: var(--gold-soft); }
.campaign { display: flex; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 16px; margin-bottom: 16px; background: linear-gradient(90deg, rgba(177, 48, 63, .4), rgba(226, 184, 102, .12)); border: 1px solid var(--gold); }
.campaign .badge { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: #2a0d12; }
.campaign strong { display: block; color: var(--gold-soft); }
.campaign span { color: #e7d3b5; font-size: 13px; }

/* Card */
.card-layout { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr); gap: 24px; align-items: start; }
.segmented { display: flex; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.segmented button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 99px; color: var(--muted); }
.segmented button.on { background: var(--crimson); color: #fff4dc; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--paper); font-size: 14px; margin: 8px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--crimson); }
.preview { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #140507; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.preview img { width: 100%; height: 100%; display: block; }
.preview-loading { position: absolute; right: 14px; top: 14px; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: var(--muted); opacity: 0; transition: opacity .2s; }
.preview.busy .preview-loading { opacity: 1; }

/* Toast + dialog */
#toast { position: fixed; z-index: 30; left: calc(236px + 36px); right: 36px; bottom: 24px; max-width: 640px; margin: 0 auto; padding: 14px 20px; border-radius: 14px; background: #f7ecd6; color: #2a0d12; font-weight: 500; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); animation: rise .25s ease; }
dialog { border: 1px solid var(--gold); border-radius: 18px; width: 440px; background: var(--panel-2); color: var(--paper); padding: 26px; }
dialog::backdrop { background: rgba(10, 2, 4, .7); }
dialog h2 { font: 600 28px var(--serif); margin: 0 0 6px; color: var(--gold-soft); }
dialog p { color: var(--muted); margin: 0 0 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
dialog .primary.danger { background: linear-gradient(180deg, #c23a4a, #8d1d2b); }

/* Journey map */
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.map-head h1 { margin: 4px 0 0; font-size: 40px; }
.stat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill b { font: 600 20px var(--serif); color: var(--gold-soft); font-variant-numeric: lining-nums; }
.pill.big { padding: 10px 16px; border-radius: 14px; }
.pill.big b { font-size: 26px; }
.map { position: relative; aspect-ratio: 988 / 724; width: min(100%, calc((100vh - 190px) * 988 / 724)); margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid rgba(226, 184, 102, .3);
  background: radial-gradient(60% 60% at 20% 90%, rgba(177, 48, 63, .28), transparent 60%), radial-gradient(50% 50% at 85% 10%, rgba(226, 184, 102, .12), transparent 60%), linear-gradient(180deg, #2a0f15, #1a070b); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art .road { fill: none; stroke: rgba(243, 215, 151, .28); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.map-art .road-done { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.node { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; color: var(--paper); display: grid; justify-items: center; }
.node .medal { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); background: #24090e; transition: transform .2s; }
.node .medal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.node .medal svg { width: 24px; height: 24px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.node:not(:disabled):hover .medal { transform: scale(1.06); }
.node.current .ticket { right: calc(50% - 62px); }
.node.current .medal { width: 116px; height: 116px; border: 4px solid var(--gold-soft); box-shadow: 0 0 0 10px rgba(226, 184, 102, .16), 0 0 0 22px rgba(226, 184, 102, .07), 0 10px 30px rgba(177, 48, 63, .6); }
.node.locked .medal { width: 70px; height: 70px; border: 2px dashed rgba(226, 184, 102, .4); box-shadow: none; }
.node.locked.goal .medal { width: 84px; height: 84px; border: 2px solid rgba(226, 184, 102, .55); box-shadow: 0 0 30px rgba(226, 184, 102, .18); }
.node.locked.goal .medal svg { stroke: var(--gold); width: 30px; height: 30px; }
.node .label { position: absolute; top: 100%; margin-top: 6px; width: 150px; text-align: center; pointer-events: none; }
.node .label small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.node.locked .label small { color: var(--dim); }
.node .label strong { display: block; font: 600 17px/1.15 var(--serif); }
.node.locked .label strong { color: var(--muted); }
.node.current .label strong { font-size: 20px; color: var(--gold-soft); }
.node .here { position: absolute; bottom: 100%; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #2a0d12; font-size: 12px; font-weight: 600; white-space: nowrap; }
.node .here.soft { background: rgba(226, 184, 102, .2); color: var(--gold-soft); border: 1px solid var(--gold); }
.node .ticket, .chip .ticket { position: absolute; right: calc(50% - 50px); top: -4px; z-index: 1; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--crimson); border: 2px solid var(--gold-soft); color: #fff4dc; font-size: 12px; font-weight: 700; }
.chip .ticket { position: static; display: inline-grid; height: 18px; min-width: 18px; font-size: 11px; border-width: 1px; }
.chapter-panel { position: absolute; right: 2.2%; top: 33%; width: min(300px, 31%); box-sizing: border-box; padding: 18px; border-radius: 18px; background: rgba(28, 9, 13, .9); border: 1px solid rgba(226, 184, 102, .4); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: grid; gap: 10px; }
.cp-head { display: flex; gap: 12px; align-items: center; }
.cp-head img, .cp-lock { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; flex: none; }
.cp-lock { display: grid; place-items: center; border: 2px dashed rgba(226, 184, 102, .4); }
.cp-lock svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; }
.cp-head small { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.cp-head strong { display: block; font: 700 23px/1.1 var(--serif); color: var(--gold-soft); }
.chapter-panel p { margin: 0; font: 16px/1.4 var(--serif); color: #e7d3b5; }
.chapter-panel .progress { margin: 0; }
.chapter-panel .progress-note { margin: 0; font-size: 12px; }
.secondary.wide { width: 100%; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--gold); color: #1c090d; font-size: 12px; text-align: center; }

/* Watch: schedule and watch time */
.sched-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sched-day { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(0, 0, 0, .18); display: grid; gap: 6px; }
.sched-day small { display: inline-block; width: 48px; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.sched-day div { font-size: 13px; white-space: nowrap; }
.sched-date { font-size: 14px !important; color: var(--gold-soft); margin-bottom: 4px; }
.sched-date span { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: #1c090d; font-weight: 600; }
.sched-day.today { border-color: var(--gold); background: linear-gradient(180deg, rgba(177, 48, 63, .35), rgba(177, 48, 63, .1)); }
.sched-day.past { opacity: .45; }
#schedule .hint { margin: 14px 0 0; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.col-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.col-head h2.section.small { margin: 0; }
.segmented.small { padding: 3px; }
.segmented.small button { padding: 5px 12px; font-size: 12px; }
.time-stats { display: flex; gap: 22px; margin-bottom: 10px; }
.time-stats b { display: block; font: 600 34px/1 var(--serif); color: var(--gold-soft); font-variant-numeric: lining-nums; }
.time-stats span { font-size: 12px; color: var(--muted); }
.time-panel .bars { height: 190px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.bar em { font-style: normal; font-size: 10px; color: var(--muted); }
.bar.today div { background: linear-gradient(180deg, var(--gold-soft), #c23a4a); box-shadow: 0 0 0 2px rgba(243, 215, 151, .35); }
.bar.today span { color: var(--gold-soft); }

/* Collection */
.col-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
#col-tabs .chip b { color: var(--gold); margin-left: 4px; }
#col-tabs .chip:disabled { opacity: .5; border-style: dashed; cursor: not-allowed; }
.card-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.slot { margin: 0; display: grid; gap: 8px; }
.slot .art { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.slot.owned .art { border: 3px solid #b9b2a6; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.slot.owned.rare .art { border-color: var(--gold); }
.slot.owned.special .art { border-color: #f3d797; box-shadow: 0 0 0 2px rgba(240, 138, 150, .5), 0 0 24px rgba(226, 184, 102, .4); }
.slot .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.slot .rarity { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: #e9e4da; color: #1c090d; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.slot.rare .rarity { background: var(--gold); }
.slot.special .rarity { background: linear-gradient(90deg, #f08a96, var(--gold-soft)); }
.slot .count { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: var(--gold-soft); font-size: 11px; }
.slot.unknown .art, .slot.soon .art { border: 2px dashed rgba(226, 184, 102, .35); background: repeating-linear-gradient(45deg, rgba(226, 184, 102, .04) 0 10px, transparent 10px 20px); }
.slot.unknown.special .art { border-color: rgba(240, 138, 150, .55); }
.slot .art .q { font: 44px var(--serif); color: rgba(226, 184, 102, .45); }
.slot figcaption { font: 600 15px/1.2 var(--serif); text-align: center; }
.slot.unknown figcaption, .slot.soon figcaption { font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--dim); }
.draw-bar { margin-top: 18px; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; background: radial-gradient(60% 100% at 20% 50%, rgba(226, 184, 102, .14), transparent 70%), rgba(0, 0, 0, .22); border: 1px solid rgba(226, 184, 102, .35); }
.draw-bar .hint { margin: 0; }
.deck { width: 60px; height: 80px; flex: none; border-radius: 10px; border: 2px solid var(--gold); background: linear-gradient(135deg, var(--crimson-deep), #3a0911); display: grid; place-items: center; box-shadow: 6px 6px 0 -1px var(--panel), 6px 6px 0 0 rgba(226, 184, 102, .5); }
.deck span { font: 28px var(--serif); color: var(--gold-soft); }
.draw-text { flex: 1; }
.draw-text strong { display: block; font: 700 22px var(--serif); color: var(--gold-soft); }
.draw-text small { color: var(--muted); font-size: 12px; }
.quests { display: grid; gap: 8px; }
.q-group { margin: 10px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; gap: 8px; }
.q-group:first-child { margin-top: 0; }
.q-group small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--dim); }
.quest { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid transparent; }
.quest.ready { background: rgba(226, 184, 102, .1); border-color: rgba(226, 184, 102, .45); }
.q-icon { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(226, 184, 102, .4); color: var(--muted); font-size: 12px; font-weight: 700; }
.quest.ready .q-icon { border-color: var(--gold); color: var(--gold); }
.quest.claimed .q-icon { background: var(--jade); border-color: var(--jade); color: #14301f; }
.q-body { flex: 1; min-width: 0; }
.q-body strong { display: block; font-weight: 500; }
.q-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.q-meta small { color: var(--dim); font-size: 12px; }
.meter { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter div { height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.claim { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #1c090d; font-weight: 600; font-size: 13px; }
.secondary.small { padding: 7px 14px; font-size: 13px; }
.q-done { font-size: 12px; color: var(--jade); }
.q-wait { font-size: 12px; color: var(--dim); white-space: nowrap; }
.quest.locked { opacity: .55; }

/* Card reveal */
.draw-dialog { width: 560px; max-width: 92vw; padding: 0; border: 0; background: transparent; overflow: visible; }
.draw-dialog::backdrop { background: radial-gradient(40% 50% at 50% 45%, rgba(226, 184, 102, .25), transparent 70%), rgba(10, 2, 4, .88); }
.draw-stage { display: grid; justify-items: center; gap: 14px; text-align: center; }
.draw-stage h2 { margin: 0; font: 700 40px var(--serif); color: var(--gold-soft); }
.draw-card { position: relative; width: 300px; aspect-ratio: 3 / 4; border-radius: 18px; padding: 8px; box-sizing: border-box; background: linear-gradient(145deg, #e9e4da, #9c958a); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.draw-card.rare { background: linear-gradient(145deg, #fff1c2, var(--gold) 30%, #a8762c 60%, var(--gold-soft)); box-shadow: 0 0 50px rgba(226, 184, 102, .5), 0 30px 60px rgba(0, 0, 0, .6); }
.draw-card.special { background: linear-gradient(145deg, #ffd6dc, #f08a96 25%, var(--gold) 55%, #fff1c2); box-shadow: 0 0 70px rgba(240, 138, 150, .55), 0 30px 60px rgba(0, 0, 0, .6); }
.draw-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 12px; display: block; }
.draw-card .rarity { position: absolute; left: 18px; top: 18px; padding: 4px 12px; border-radius: 99px; background: #e9e4da; color: #1c090d; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.draw-card.rare .rarity { background: var(--gold); }
.draw-card.special .rarity { background: linear-gradient(90deg, #f08a96, var(--gold-soft)); }
.draw-name { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 50px 16px 14px; border-radius: 0 0 12px 12px; background: linear-gradient(0deg, rgba(20, 5, 8, .95), transparent); text-align: left; }
.draw-name small { display: block; font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.draw-name strong { font: 700 26px/1.1 var(--serif); color: #fff1d6; }
.draw-card.reveal { animation: flip .7s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes flip { from { transform: perspective(900px) rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.draw-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Keepsake */
.keepsake-empty { display: flex; gap: 22px; align-items: center; max-width: 720px; }
.keepsake-empty .hint { margin: 6px 0 16px; }
#card-mode { margin-bottom: 4px; }

/* Keepsake background picker */
.bg-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bg-pick { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: #000; }
.bg-pick img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.bg-pick.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(226, 184, 102, .3); }

/* Numbers: the font shorthand resets numeric variants, so lining figures are set last. */
.tile strong { font-variant-numeric: lining-nums tabular-nums; }

@media (max-width: 1180px) {
  .watch-grid, .col-grid { grid-template-columns: 1fr; }
}
