:root { --bg: #0c0a15; --panel: #221f33; --line: #3a3654; --text: #ece9f5; --dim: #a39fbd; --pink: #ff5c8a; --red: #e03131; --blue: #74c0fc; --gold: #ffd43b; --ink: #1a0d20; --blood: #a5121f; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }
.ico { display: inline-block; vertical-align: middle; pointer-events: none; }
.ico-s { width: 22px; height: 22px; margin: -3px 3px -1px -2px; }
.ico-m { width: 34px; height: 34px; }
.ico-l { width: 96px; height: 96px; }
#vignette, #hurt, #flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; }
#vignette { box-shadow: inset 0 0 140px 40px rgba(224, 49, 49, 0.75); }
body.lowhp #vignette { animation: pulse 0.9s ease-in-out infinite; }
#hurt { background: radial-gradient(ellipse at center, rgba(224, 49, 49, 0) 52%, rgba(224, 49, 49, 0.45) 100%); }
#hurt.on { animation: fadeout 0.35s ease-out; }
#flash.on { animation: fadeout var(--flash-time, 0.3s) ease-out; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.75; } }
@keyframes fadeout { 0% { opacity: var(--from, 1); } 100% { opacity: 0; } }
#hud { position: fixed; inset: 0; pointer-events: none; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
#hud .tl { position: absolute; left: 16px; top: 14px; width: min(320px, 38vw); }
#hud .tc { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); text-align: center; }
#hud .tr { position: absolute; right: 18px; top: 14px; text-align: right; }
#hud .bc { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar { position: relative; height: 22px; margin-bottom: 6px; background: rgba(0, 0, 0, 0.6); border: 3px solid var(--ink); border-radius: 9px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left center; }
.bar span { position: absolute; inset: 0; font-size: 12px; line-height: 16px; text-align: center; }
.bar.hp i { background: linear-gradient(#ff6b6b, #c92a2a); }
.bar.xp { height: 15px; } .bar.xp i { background: linear-gradient(#a5d8ff, #4dabf7); } .bar.xp span { line-height: 9px; font-size: 11px; }
#night { position: relative; width: min(460px, 44vw); height: 18px; background: #0a0816; border: 3px solid var(--ink); border-radius: 10px; }
#night i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left center; border-radius: 7px;
background: linear-gradient(90deg, #3b2f73 0%, #7048b6 45%, #e8590c 85%, #ffd43b 100%); }
#night.pulse { animation: nightpulse 0.4s ease-out; }
@keyframes nightpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.9); transform: scaleY(1.5); } 100% { box-shadow: 0 0 18px 8px rgba(255, 212, 59, 0); transform: scaleY(1); } }
#night .mark { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; background: #fff; border-radius: 2px; opacity: 0.75; }
#night .moon, #night .sun { position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 3px solid var(--ink); }
#night .moon { left: -14px; background: #dee2ff; box-shadow: inset -7px -3px 0 #8f96c9; }
#night .sun { right: -14px; background: #ffd43b; box-shadow: 0 0 10px 2px rgba(255, 212, 59, 0.7); }
#bossBar, .bossBar { position: relative; width: min(560px, 60vw); height: 22px; margin: 10px auto 0; background: rgba(0, 0, 0, 0.6); border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
#bossBar i, .bossBar i { position: absolute; inset: 0; transform-origin: left center; }
#bossBar i:nth-of-type(1), .bossBar i:nth-of-type(1) { background: rgba(255, 255, 255, 0.75); }
#bossBar i:nth-of-type(2), .bossBar i:nth-of-type(2) { background: linear-gradient(#f0b429, #b3701f); }
.bossBar { margin-top: 4px; }
#bossBar .notch, .bossBar .notch { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(0, 0, 0, 0.55); }
#bossBar span, .bossBar span { position: absolute; inset: 0; font-size: 12px; line-height: 16px; } #bossBar small, .bossBar small { font-weight: 400; opacity: 0.85; }
#banner { margin-top: 10px; font-size: 30px; font-weight: 900; color: #ff8787; opacity: 0; }
#banner.on { animation: banner 2.4s ease-out; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.6); } 12% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.tally { border-collapse: collapse; font-size: 15px; margin-left: auto; }
.tally td { padding: 0 0 0 10px; } .tally td:first-child { color: var(--dim); font-size: 12px; } .tally td:last-child { text-align: right; min-width: 60px; }
#mult { font-size: 20px; font-weight: 900; color: var(--blue); margin-top: 2px; transform-origin: right center; }
#mult.hot { color: var(--gold); text-shadow: 0 0 10px rgba(255, 212, 59, 0.7), 0 2px 0 rgba(0, 0, 0, 0.6); }
#mult.break { animation: multbreak 0.5s ease-out; }
@keyframes multbreak { 0% { color: var(--red); transform: scale(1.5) rotate(-6deg); } 100% { transform: scale(1); } }
#combo { font-size: 26px; font-weight: 900; color: var(--gold); height: 34px; transform-origin: right center; }
#combo.on { animation: combo 0.18s ease-out; }
@keyframes combo { 0% { transform: scale(1.5) rotate(-4deg); } 100% { transform: scale(1); } }
#toast { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 26px; font-weight: 900; color: var(--gold); opacity: 0; white-space: nowrap; }
#toast.on { animation: toast 1.8s ease-out; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px) scale(0.7); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -24px); } }
#hud .lc { position: absolute; left: 16px; top: 84px; bottom: 16px; }
#skills { display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 3px 6px; height: 100%; }
#skills .chip { font-size: 12px; padding: 1px 7px 1px 4px; border-width: 2px; border-radius: 8px; background: rgba(20, 18, 32, 0.72); }
#skills .chip .ico-s { width: 16px; height: 16px; }
.clsh { font-size: 10px; font-weight: 800; color: var(--k); margin-top: 4px; padding-left: 2px; opacity: 0.9; } .clsh.fullslot { color: var(--gold); }
.chip { background: rgba(20, 18, 32, 0.85); border: 3px solid var(--c, var(--line)); border-radius: 10px; padding: 3px 9px 3px 6px; font-size: 13px; white-space: nowrap; }
.chip.max { box-shadow: 0 0 10px var(--c, var(--gold)); }
.chip.fusion { border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 92, 138, 0.8); }
.chip .dots { color: var(--c, var(--pink)); letter-spacing: 1px; margin-left: 4px; font-size: 10px; }
.lb { color: var(--gold); font-weight: 900; letter-spacing: -1px; margin-left: 2px; }
.actives { display: flex; gap: 8px; align-items: center; }
.bag { position: relative; display: flex; align-items: center; gap: 3px; height: 30px; padding: 0 6px 0 3px; background: rgba(0, 0, 0, 0.6); border: 3px solid var(--ink); border-radius: 8px; font-size: 13px; font-weight: 900; }
.bag i { font-style: normal; min-width: 10px; text-align: center; } .bag b { font-size: 10px; background: var(--ink); border-radius: 5px; padding: 0 5px; color: #fff; }
.bag .ico { width: 22px; height: 22px; } .bag.empty { opacity: 0.38; } .bag.ping { animation: ping 0.5s ease-out; }
.bag.blink { animation: bagblink 0.5s steps(2) infinite; border-color: #51cf66; box-shadow: 0 0 12px rgba(81, 207, 102, 0.9); }
@keyframes bagblink { 0% { background: rgba(0, 0, 0, 0.6); } 100% { background: rgba(81, 207, 102, 0.55); } }
#dodge, #moveBar { position: relative; width: 170px; height: 18px; background: rgba(0, 0, 0, 0.6); border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
#dodge i, #moveBar i { position: absolute; inset: 0; background: var(--blue); transform-origin: left center; }
#moveBar i { background: var(--gold); }
#dodge span, #moveBar span { position: absolute; inset: 0; font-size: 11px; line-height: 12px; text-align: center; }
#moveBar.ready { box-shadow: 0 0 10px rgba(255, 212, 59, 0.8); }
#moveBar.ping { animation: ping 0.5s ease-out; }
@keyframes ping { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
#minimap { position: absolute; right: 14px; bottom: 14px; width: 170px; height: 170px; opacity: 0.62; border: 3px solid rgba(255, 255, 255, 0.35); border-radius: 8px; background: rgba(10, 9, 16, 0.55); }
#fps { position: fixed; left: 8px; bottom: 6px; font: 12px monospace; color: #9f9; background: rgba(0, 0, 0, 0.5); padding: 2px 6px; pointer-events: none; }
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 9, 16, 0.72); padding: 16px; }
.panel { background: var(--panel); border: 4px solid var(--ink); outline: 2px solid var(--line); border-radius: 18px; padding: 24px 28px; width: min(560px, 94vw); text-align: center; max-height: 94vh; overflow: auto; }
.panel.wide { width: min(1040px, 96vw); }
h1 { margin: 0 0 12px; font-size: 34px; } h2 { margin: 0 0 16px; font-size: 26px; } h2 small { font-size: 14px; color: var(--dim); font-weight: 400; }
h3 { margin: 18px 0 8px; font-size: 16px; color: var(--dim); text-align: left; } h3 small { font-weight: 400; font-size: 12px; }
.story { color: var(--dim); line-height: 1.7; margin: 0 0 14px; }
.hint { color: var(--dim); font-size: 13px; margin: 4px 0 12px; min-height: 18px; }
.hint.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0; } .hint.rec { font-size: 12px; min-height: 16px; margin-bottom: 10px; }
.row { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 8px 0; }
button, select { font: inherit; color: var(--text); background: #2e2a45; border: 3px solid var(--ink); border-radius: 12px; padding: 9px 18px; cursor: pointer; margin: 4px; }
button:hover, button:focus-visible { border-color: var(--blood); outline: none; }
button:disabled { opacity: 0.4; cursor: default; }
button.big { font-size: 20px; font-weight: 800; background: linear-gradient(180deg, #a5121f, #7a0c16); color: #f3e6d0; padding: 12px 34px; border-color: #2a0509; }
button.sel { border-color: var(--gold); background: #453c1e; }
button small { font-weight: 400; opacity: 0.75; }
.keys { margin: 14px auto 0; border-collapse: collapse; font-size: 14px; text-align: left; }
.keys td { padding: 3px 10px; } .keys td:first-child { color: var(--dim); white-space: nowrap; }
.keys td.calc { font-size: 12px; color: var(--dim); } .keys td.calc b { color: var(--text); font-size: 14px; } .keys td.calc summary { cursor: pointer; color: var(--blue); }
.result { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 10px; }
.gClear { color: #8ce99a; } .grade.word { font-size: 22px; width: auto; min-width: 84px; padding: 0 14px; border-radius: 42px; }
.grade { font-size: 64px; font-weight: 900; line-height: 1; width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; background: #2e2a45; }
.gS { color: #ffd43b; text-shadow: 0 0 14px rgba(255, 212, 59, 0.8); } .gA { color: #ff5c8a; } .gB { color: #74c0fc; } .gC { color: #b2f2bb; } .gD { color: var(--dim); }
.score { text-align: left; } .score b { font-size: 30px; } .score small { display: block; color: var(--dim); font-size: 13px; }
#cards { display: flex; gap: 16px; justify-content: center; flex-wrap: nowrap; align-items: flex-start; }
.card { position: relative; width: 218px; min-height: 360px; text-align: center; padding: 0 0 14px; margin: 0; overflow: hidden;
background: #262238; border: 4px solid var(--ink); outline: 3px solid var(--c, var(--line)); outline-offset: -7px; border-radius: 18px;
display: flex; flex-direction: column; align-items: center; gap: 6px; animation: flipin 0.12s ease-out backwards; }
.card:nth-child(2) { animation-delay: 0.03s; } .card:nth-child(3) { animation-delay: 0.06s; } .card:nth-child(4) { animation-delay: 0.09s; }
#cards.again .card { animation: none; }
@keyframes flipin { 0% { transform: scaleX(0.05) translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.card:hover, .card:focus-visible { border-color: var(--ink); outline-color: #fff; transform: translateY(-6px); }
.card .art { width: 100%; height: 170px; flex: 0 0 auto; background: var(--cbg, #1b182a) center / cover no-repeat; border-bottom: 4px solid var(--ink); position: relative; display: flex; align-items: center; justify-content: center; }
.card .art .corner { position: absolute; left: 8px; bottom: 8px; width: 52px; height: 52px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)); }
.card .key { position: absolute; left: 10px; top: 8px; font-size: 13px; color: #fff; background: var(--ink); border-radius: 8px; padding: 1px 8px; z-index: 1; }
.card .name { font-size: 19px; font-weight: 900; margin-top: 6px; }
.card .kind { font-size: 12px; color: var(--dim); }
.card .dots { color: var(--c, var(--pink)); letter-spacing: 3px; font-size: 16px; }
.card .lvl { font-size: 13px; color: var(--blue); }
.card .desc { font-size: 14px; line-height: 1.5; padding: 0 14px; }
.card .badge { position: absolute; top: 8px; right: 8px; background: var(--gold); color: #2a1a00; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 8px; border: 2px solid var(--ink); z-index: 1; }
.card.new .lvl { color: var(--gold); }
.card.maxing { outline-color: var(--gold); box-shadow: 0 0 22px rgba(255, 212, 59, 0.5); }
.card.limit { outline-color: var(--gold); box-shadow: 0 0 26px rgba(255, 212, 59, 0.7); } .card.limit .name { color: var(--gold); }
.card.fusion { outline-width: 4px; box-shadow: 0 0 26px rgba(255, 212, 59, 0.75); animation: flipin 0.28s ease-out backwards; }
.card.fusion .art { box-shadow: inset 9px 0 0 var(--ka, transparent), inset -9px 0 0 var(--kb, transparent); }
#pauseSkills { text-align: left; font-size: 14px; line-height: 2; margin-bottom: 10px; }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; text-align: left; font-size: 14px; margin: 10px 0 14px; }
.settings label { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.settings label:has(input[type=checkbox]) { justify-content: flex-start; }
.settings input[type=range] { width: 110px; } .settings select { padding: 3px 6px; margin: 0; border-width: 2px; }
#overNew { text-align: left; font-size: 14px; line-height: 1.8; color: var(--gold); margin: 10px 0; }
#codexBody { text-align: left; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cell { background: #2a2640; border: 3px solid var(--ink); outline: 2px solid var(--c, var(--line)); outline-offset: -5px; border-radius: 12px; padding: 8px 10px; font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 8px; }
details.cell { display: block; } details.cell summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; } details.cell summary::-webkit-details-marker { display: none; }
details.cell[open] { grid-column: 1 / -1; }
.levels { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); } .levels .locked { color: #6b6787; }
.cell.unknown { color: #6b6787; outline-color: var(--line); } .cell.done { box-shadow: 0 0 10px var(--c, var(--gold)); }
.cell b { font-size: 14px; } .cell .dots { color: var(--c, var(--pink)); letter-spacing: 2px; font-size: 11px; } .cell small { color: var(--dim); font-size: 11px; }
#errorText { text-align: left; white-space: pre-wrap; font-size: 12px; color: #ffb3b3; }
#classes, .classline { display: flex; gap: 6px; justify-content: center; font-size: 12px; }
.classline { margin: -6px 0 12px; font-size: 14px; }
.cls { border-radius: 8px; padding: 1px 9px; background: rgba(20, 18, 32, 0.85); border: 2px solid var(--k, var(--line)); color: var(--k, var(--text)); font-weight: 800; white-space: nowrap; }
.cls.zero { opacity: 0.45; }
.chip { border-bottom-width: 5px; }
.lvwrap { display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.lvwrap #cards { flex: 1 1 auto; }
.fusions { flex: 0 0 210px; text-align: left; font-size: 12px; line-height: 1.5; background: #1b182a; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px; max-height: 60vh; overflow: auto; }
.fusions h4 { margin: 0 0 4px; font-size: 13px; color: var(--gold); } .fusions .rule { color: var(--dim); font-size: 11px; margin-bottom: 6px; }
.fz { padding: 4px 0; border-top: 1px solid var(--line); } .fz b { font-size: 13px; }
.fz .mat { color: var(--dim); } .fz .mat i { font-style: normal; color: var(--text); } .fz .mat i.full { color: var(--gold); } .fz .mat i.none { color: #6b6787; }
.fz.ready { color: var(--gold); text-shadow: 0 0 8px rgba(255, 212, 59, 0.6); } .fz.ready .mat { color: var(--gold); }
.fz.done { opacity: 0.6; } .fz.blocked { opacity: 0.45; text-decoration: line-through; }
.fusions .empty { color: var(--dim); }
.panel.wide { width: min(1240px, 97vw); }
.card .art { height: 140px; } .card { --more-top: 140px; }
.card .what { font-size: 13px; line-height: 1.4; padding: 0 12px; color: var(--text); }
.card .diff { font-size: 13px; color: var(--blue); padding: 0 10px; line-height: 1.45; } .card .diff .bad { color: #ff8787; }
.card .desc { font-size: 13px; color: var(--gold); padding: 0 12px; line-height: 1.4; } .card .desc .bad { color: #ff8787; display: block; }
.card .note { font-size: 11px; color: var(--dim); margin-top: auto; padding: 2px 8px 0; }
.pausewrap { display: flex; gap: 14px; align-items: flex-start; text-align: left; margin-bottom: 10px; }
.pausewrap section { flex: 0 0 230px; } .pausewrap section.grow { flex: 1 1 auto; min-width: 0; } .pausewrap h3 { margin-top: 0; }
#pauseStats table { border-collapse: collapse; font-size: 13px; width: 100%; } #pauseStats td { padding: 2px 4px; } #pauseStats td:first-child { color: var(--dim); } #pauseStats td:last-child { text-align: right; font-weight: 700; }
#pauseStats .up { color: #8ce99a; } #pauseStats .down { color: #ff8787; }
#pauseSkills { line-height: 1.5; max-height: 56vh; overflow: auto; font-size: 13px; }
.srow { border-top: 1px solid var(--line); padding: 4px 2px; } .srow summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; } .srow summary::-webkit-details-marker { display: none; }
.srow .nm { font-weight: 800; min-width: 96px; } .srow .st { color: var(--dim); } .srow .st b { color: var(--text); } .srow .share { margin-left: auto; color: var(--gold); font-weight: 800; }
.lvtable { border-collapse: collapse; font-size: 12px; margin: 6px 0 4px; } .lvtable td, .lvtable th { padding: 1px 8px; text-align: right; border-bottom: 1px solid var(--line); } .lvtable td:first-child, .lvtable th:first-child { text-align: left; color: var(--dim); }
.lvtable .now { color: var(--gold); font-weight: 800; } .lvtable .locked { color: #6b6787; }
.levels .what { margin-bottom: 4px; } .levels .tr { color: #ff8787; } .levels .ct { color: #8ce99a; }
@media (max-width: 1100px) { .lvwrap, .pausewrap { flex-direction: column; } .fusions { flex: 0 0 auto; width: 100%; max-height: 22vh; } .pausewrap section { flex: 0 0 auto; width: 100%; } }
.card { flex: 0 0 214px; width: 214px; height: 470px; min-height: 0; gap: 5px; background: linear-gradient(#262238, #1d1a2c); }
.card .name, .card .pill, .card .dots, .card .lvl, .card .what, .card .diff, .card .desc, .card .note, .card .link { flex: 0 0 auto; }
.card.dense .what, .card.dense .diff, .card.dense .desc { font-size: 12px; line-height: 1.3; } .card.dense .name { font-size: 17px; margin-top: 2px; } .card.dense { gap: 3px; }
.card .art { flex: none; }
.card .short { flex: 0 0 auto; font-size: 13.5px; line-height: 1.4; padding: 0 12px; color: var(--text); word-break: keep-all; }
.card .keys { flex: 0 0 auto; font-size: 13px; line-height: 1.4; color: var(--blue); padding: 0 10px; word-break: keep-all; } .card .keys.bad { color: #ff8787; }
.card .morebtn { flex: 0 0 auto; margin: auto auto 0; font-size: 12px; color: var(--gold); border: 2px solid #4a4266; border-radius: 9px; padding: 2px 10px; background: #2a2540; cursor: pointer; }
.card .morebtn:hover { border-color: var(--gold); }
.card .more { display: none; position: absolute; left: 0; right: 0; bottom: 0; top: var(--more-top, 150px); background: #18152a; border-top: 3px solid var(--c, var(--line)); padding: 8px 4px 10px; overflow-y: auto; text-align: center; flex-direction: column; gap: 6px; z-index: 2; cursor: default; }
.card.open .more { display: flex; }
.card .more .morebtn.close { margin: 6px auto 0; }
.card .link { margin-top: auto; display: flex; gap: 4px; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--gold); padding: 3px 8px 0; line-height: 1.25; text-align: left; }
.card .link small { color: var(--dim); font-weight: 600; } .card .link .ico { flex: 0 0 auto; }
.card .link.weak { color: #d8c27a; font-weight: 700; }
.card.link-weak { box-shadow: 0 0 0 2px rgba(255, 212, 59, 0.45); }
.card.link-strong { box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.9), 0 0 22px rgba(255, 212, 59, 0.55); }
.card.link-next { box-shadow: 0 0 0 4px #ffd43b, 0 0 34px rgba(255, 212, 59, 0.9); } .card.link-next .link { font-size: 13px; }
@keyframes linkglow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.card.link-strong::after, .card.link-next::after { content: ''; position: absolute; inset: 0; border-radius: 13px; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(255, 236, 153, 0.9), inset 0 0 18px rgba(255, 212, 59, 0.55); opacity: 0; animation: linkglow 1.6s ease-in-out infinite; }
.card.link-next::after { animation-duration: 0.8s; }
.pill { border-radius: 9px; padding: 1px 12px; border: 2px solid var(--k, var(--line)); color: var(--k, var(--text)); background: rgba(20, 18, 32, 0.85); font-size: 13px; font-weight: 800; }
.br { padding-left: 6px; color: #6b6787; } .br b { color: #8a86a6; } .br i { font-style: normal; } .br i.full { color: var(--gold); } .br i.none { color: #6b6787; } .br i.has { color: #fff; font-weight: 700; }
.fz b.has { color: #fff; } .fz > i.has { color: #fff; } .fusions .rule .has { color: #fff; } .fusions .rule .full { color: var(--gold); }
.br.ready, .br.ready b { color: var(--gold); text-shadow: 0 0 8px rgba(255, 212, 59, 0.6); } .br.done b { color: var(--gold); }
.fz > i { font-style: normal; color: var(--dim); } .fz > i.full { color: var(--gold); }
.cls.fullslot { border-color: var(--gold); color: var(--gold); }
#say { position: absolute; left: 0; top: 0; background: #fff6fb; color: #3a1a4a; border: 3px solid var(--ink); border-radius: 14px; padding: 3px 12px; font-size: 17px; font-weight: 900; white-space: nowrap; text-shadow: none; opacity: 0; }
#say::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
#say.on { animation: sayfade 1.2s ease-out; }
@keyframes sayfade { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) { #cards { flex-wrap: wrap; } .card { flex: 1 1 100%; width: 100%; height: auto; min-height: 0; --more-top: 120px; } .card .art { height: 120px; } #minimap { width: 120px; height: 120px; } .settings { grid-template-columns: 1fr; } }
#diffRow { flex-wrap: nowrap; } #diffRow button { flex: 1 1 0; min-width: 0; white-space: nowrap; padding-left: 6px; padding-right: 6px; position: relative; }
#diffRow .gbadge { position: absolute; top: -7px; right: -5px; min-width: 1.5em; padding: 0 4px; border-radius: 9px; background: #15151f; border: 1px solid currentColor; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.45; text-align: center; }
#charRow { flex-wrap: nowrap; margin-bottom: 2px; } #charRow button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; white-space: normal; border-color: var(--k, transparent); }
#charRow button small { font-size: 0.74em; opacity: 0.8; font-weight: 400; line-height: 1.35; text-align: center; max-width: 100%; }
#charRow button small.trait { opacity: 0.6; }
#charRow button.sel { background: #262a38; border-color: var(--k, #ff6b6b); box-shadow: 0 0 0 2px var(--k, #ff6b6b) inset; }
#codexChars button, #boardTabs button[data-c] { border-color: var(--k, transparent); } #codexChars { margin: 0 0 8px; }
#maker { position: absolute; left: 10px; bottom: 6px; font-size: 10px; color: #6b6787; pointer-events: none; }
#build { position: absolute; right: 10px; bottom: 6px; font-size: 10px; color: #6b6787; pointer-events: none; }
#menu .panel { position: relative; }
.loadbar { height: 16px; margin: 18px 8px 6px; background: rgba(0, 0, 0, 0.55); border: 3px solid var(--ink); border-radius: 9px; overflow: hidden; }
.loadbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); transform-origin: left center; transform: scaleX(0.02); transition: transform 0.15s linear; }
#loadNote { color: var(--gold); }
.bar.hp.ow { animation: ow 0.3s ease-out; }
@keyframes ow { 0% { transform: translateX(-7px) scale(1.06); filter: brightness(2.2); } 30% { transform: translateX(6px) scale(1.04); } 60% { transform: translateX(-3px); } 100% { transform: none; filter: none; } }
#menu { background: linear-gradient(90deg, rgba(10, 9, 16, 0.82) 0%, rgba(10, 9, 16, 0.5) 45%, rgba(10, 9, 16, 0) 70%); justify-content: flex-start; padding-left: 5vw; }
#menu .panel { width: min(520px, 46vw); }
h1.bounce { animation: bounce 1s ease-in-out infinite; display: inline-block; }
#lbEntry { margin: 4px 0 12px; } #lbEntry .t { color: var(--dim); font-size: 14px; margin-bottom: 6px; }
.slots { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.slot { display: flex; flex-direction: column; align-items: center; } .slot button { margin: 0; padding: 0 14px; font-size: 12px; line-height: 18px; border-width: 2px; border-radius: 8px; }
.slot b { font: 800 40px/1.1 ui-monospace, Consolas, monospace; width: 46px; padding: 4px 0; border-bottom: 4px solid var(--line); cursor: pointer; }
.slot.on b { color: var(--gold); border-color: var(--gold); }
#lbEntry .msg { font-weight: 800; color: var(--gold); margin: 6px 0; } #lbEntry .msg.bad { color: var(--dim); font-weight: 400; }
#boardTabs button.sel { border-color: var(--gold); background: #453c1e; }
#boardBody { text-align: left; min-height: 120px; } #boardBody .none { text-align: center; color: var(--dim); padding: 30px 0; }
.lbrow { background: #2a2640; border: 3px solid var(--ink); border-radius: 12px; margin: 6px 0; }
.lbrow summary { display: flex; align-items: center; gap: 12px; padding: 6px 12px; cursor: pointer; list-style: none; } .lbrow summary::-webkit-details-marker { display: none; }
.lbrow .rk { width: 30px; text-align: right; font-weight: 800; color: var(--dim); } .lbrow.top .rk { color: var(--gold); }
.lbrow .nm { font: 800 20px ui-monospace, Consolas, monospace; letter-spacing: 2px; width: 60px; }
.lbrow .sc { width: 96px; text-align: right; font-weight: 800; } .lbrow .gr { width: 18px; font-weight: 800; }
.lbrow .bd { flex: 1; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.lbrow .more { padding: 4px 16px 10px 56px; font-size: 13px; line-height: 1.7; color: var(--dim); } .lbrow .more b { color: var(--text); }
.lbrow.mine { outline: 2px solid var(--gold); outline-offset: -5px; }
.subtitle { margin: -6px 0 14px; font-size: 16px; color: var(--dim); letter-spacing: 0.08em; }
a.station { display: inline-block; margin: -4px 0 12px; padding: 6px 16px; font-size: 14px; color: var(--text); text-decoration: none;
background: #2e2a45; border: 3px solid var(--ink); border-radius: 12px; }
a.station:hover, a.station:focus-visible { border-color: var(--blood); outline: none; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
@media (max-width: 900px) { #menu { justify-content: center; padding-left: 16px; } #menu .panel { width: min(560px, 94vw); } }
.settings h3 { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 2px; text-align: left; }
.settings h3:first-child { margin-top: 0; }
.settings label.wide { grid-column: 1 / -1; }
#settings .panel { max-height: 94vh; overflow-y: auto; }
#tut { position: relative; margin: 8px auto 0; width: 640px; max-width: calc(100vw - 380px); min-width: 420px; box-sizing: border-box; padding: 7px 14px 6px; background: rgba(16,10,24,0.72); border: 1px solid rgba(255,140,190,0.55); border-radius: 10px; color: #fff; text-align: center; text-shadow: 0 1px 2px #000; pointer-events: none; }
#tut .r1 { display: flex; align-items: center; justify-content: center; gap: 10px; }
#tutN { font-size: 11px; color: #ff9cc8; white-space: nowrap; } #tut .r1 .k { font-size: 10px; color: #999; white-space: nowrap; }
#tutT { font-size: 19px; white-space: nowrap; } #tut.done { border-color: #ffd060; } #tut.done #tutT { color: #ffd060; }
#tutK { display: flex; align-items: center; gap: 6px; }
#tutK .kc { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 7px; box-sizing: border-box; border: 2px solid #8a8aa0; border-bottom-width: 4px; border-radius: 6px; background: rgba(30,28,44,0.9); font-size: 15px; font-weight: bold; color: #eee; transition: transform 0.06s, background 0.1s; }
#tutK .kc.wide { min-width: 62px; font-size: 13px; } #tutK .kc small { font-size: 8px; font-weight: normal; color: #bbb; line-height: 1; }
#tutK .kc.used { border-color: #ff9cc8; } #tutK .kc.on { background: #ff9cc8; color: #2a1020; border-bottom-width: 2px; transform: translateY(2px); } #tutK .kc.on small { color: #423; }
#tutD { font-size: 13px; line-height: 1.45; color: #e6e4ee; margin-top: 4px; }
#tut .bar { height: 3px; background: rgba(0,0,0,0.5); margin-top: 5px; border-radius: 2px; } #tut .bar i { display: block; height: 100%; width: 0; background: #ff9cc8; border-radius: 2px; transition: width 0.2s; }
#tutS { font-size: 12px; color: #ffd8ea; margin-top: 3px; }
body.tutorial .tr .tally, body.tutorial #mult { visibility: hidden; }
.flowtext { white-space: pre-line; line-height: 1.75; font-size: 15px; color: #e8e6f0; }
body.tutMap #minimap { animation: mmGlow 0.9s ease-in-out infinite; }
@keyframes mmGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,156,200,0.9), 0 0 18px 6px rgba(255,156,200,0.5); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0.95), 0 0 30px 12px rgba(255,156,200,0.75); } }
#achBody { text-align: left; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
#achBody h3 small { color: var(--dim); font-weight: 400; }
#wardBody { text-align: left; max-height: 54vh; overflow-y: auto; padding-right: 4px; }
#wardBody h3 small { color: var(--dim); font-weight: 400; }
#achTabs button.sel, #lookChars button.sel, .looks button.sel { border-color: var(--gold); background: #453c1e; }
#lookChars button { border-color: var(--k, transparent); }
.achlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ach { background: #2a2640; border: 3px solid var(--ink); outline: 2px solid var(--line); outline-offset: -5px; border-radius: 12px; padding: 8px 10px; font-size: 13px; line-height: 1.45; color: #8f8aad; }
.ach .an { display: flex; flex-direction: column; } .ach small { font-size: 12px; }
.ach.got { color: var(--text); outline-color: var(--gold); box-shadow: 0 0 8px rgba(255, 212, 59, 0.35); } .ach.got b { color: var(--gold); }
.abar { position: relative; height: 14px; margin-top: 5px; background: #15121f; border-radius: 7px; overflow: hidden; }
.abar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff5c8a, #ffd43b); }
.abar span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 14px; color: #fff; text-shadow: 0 1px 2px #000; }
.arw { margin-top: 4px; font-size: 12px; color: #ffcf6b; }
.looks { display: flex; flex-wrap: wrap; gap: 6px; }
#wardChars button.sel, #wardParts button.sel { border-color: var(--gold); background: #453c1e; }
#wardChars .undress { margin-left: auto; }
#wardChars .whave { align-self: center; font-size: 12px; color: var(--dim); }
#wardParts button small { color: var(--gold); font-size: 11px; }
#wardMsg { text-align: center; color: var(--gold); font-size: 13px; margin: 2px 0 6px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.witem { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; margin: 0; border: 2px solid #3a3550; }
.witem img { width: 56px; height: 56px; image-rendering: auto; }
.witem b { font-size: 13px; }
.witem small { font-size: 10.5px; color: var(--dim); text-align: center; line-height: 1.3; }
.witem.on { border-color: var(--gold); background: #453c1e; box-shadow: 0 0 0 2px rgba(255,212,59,0.25) inset; }
.witem.on small { color: var(--gold); }
.witem.locked { cursor: not-allowed; background: #16141f; }
.witem.locked b { color: #777; }
.witem.shake { animation: wshake 0.3s; }
@keyframes wshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.witem { position: relative; }
.witem.t-rare { border-color: #4dabf7; }
.witem.t-legend { border-color: #fcc419; box-shadow: 0 0 10px rgba(252,196,25,0.25); }
.witem .wtier { position: absolute; top: 4px; left: 6px; font-size: 9.5px; font-style: normal; color: #868e96; }
.witem.t-rare .wtier { color: #74c0fc; }
.witem.t-legend .wtier { color: #ffd43b; }
.witem .wnew { position: absolute; top: 4px; right: 6px; font-size: 10px; font-style: normal; font-weight: 900; color: #fff; background: #e03131; border-radius: 6px; padding: 0 5px; }
.wardrow { display: flex; gap: 12px; align-items: flex-start; }
.wardrow #wardBody { flex: 1; }
#wardPrev { width: 200px; flex: none; text-align: center; }
.wpbox { position: relative; width: 200px; height: 250px; border-radius: 12px; overflow: hidden; background: #221e33; border: 2px solid #3a3550; }
.wpbox .wpview { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.wpbox .wpview:active { cursor: grabbing; }
.wpbox .wpnone { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }
.wpturn { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.wpturn button { padding: 3px 7px; margin: 0; font-size: 12px; white-space: nowrap; border-width: 2px; border-radius: 9px; }
.wpturn button.sel { border-color: var(--gold); background: #453c1e; }
.wphint { color: var(--dim); font-size: 10.5px; margin-top: 3px; }
.savebox { text-align: left; margin: 10px 0 6px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #221e33; }
.savebox h3 { margin: 0 0 4px; }
.savebox .savenote { font-size: 12px; color: var(--dim); margin: 0 0 8px; line-height: 1.5; word-break: keep-all; }
.saverow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.saverow code { font-size: 15px; letter-spacing: 1px; color: var(--gold); background: #17142a; padding: 4px 8px; border-radius: 8px; user-select: all; }
.saverow input { flex: 1 1 180px; min-width: 0; font: inherit; color: var(--text); background: #17142a; border: 2px solid var(--line); border-radius: 9px; padding: 6px 8px; }
.saverow button { margin: 0; padding: 6px 12px; font-size: 13px; }
.savestate { font-size: 12px; color: var(--dim); margin-top: 4px; } .savestate.bad { color: #ff8787; } .savestate.good { color: #8ce99a; }
.wpzoom { margin-top: 4px; }
.wpzoom button[data-z="+"], .wpzoom button[data-z="-"] { min-width: 30px; font-weight: 800; }
@media (max-width: 620px) { .wardrow { flex-direction: column; align-items: center; } .wardrow #wardBody { width: 100%; } }
@keyframes wfloat { 50% { transform: translateY(-6px); } }
.wptitle { margin-top: 6px; color: var(--gold); font-size: 13px; }
.wptrail { color: var(--dim); font-size: 11px; }
#wardBtn.dot { position: relative; }
#wardBtn.dot::after { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #e03131; }
.arwpic { width: 22px; height: 22px; vertical-align: middle; margin-left: 4px; }
.wearnow { font-size: 11px; padding: 2px 8px; margin: 0 0 0 6px; vertical-align: middle; }
.arwi { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; }
.arwi img { width: 22px; height: 22px; }
.arwi.locked { color: #888; }
.looks button { font-size: 13px; padding: 6px 12px; margin: 0; }
.looks button.locked { opacity: 0.5; display: flex; flex-direction: column; align-items: flex-start; cursor: default; }
.looks button.locked small { font-size: 10px; color: var(--dim); }
.ctitle { color: var(--gold); font-weight: 700; }
.achnew { color: #ffe066; font-weight: 800; }
.lvguide { margin: 8px auto 4px; max-width: 900px; text-align: left; font-size: 13px; color: var(--dim); background: rgba(20, 18, 32, 0.7); border: 2px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.lvguide summary { cursor: pointer; color: var(--text); font-weight: 700; }
.lvguide-body p { margin: 4px 0; line-height: 1.5; } .lvguide b { color: var(--text); } .lvguide .g-glow { color: #ffd43b; }
#menu.title { background: radial-gradient(ellipse at 18% 40%, rgba(16, 20, 44, 0.92) 0%, rgba(10, 10, 24, 0.78) 38%, rgba(10, 9, 16, 0.15) 68%, rgba(10, 9, 16, 0) 80%); }
#menu.title .panel { width: min(540px, 46vw); border-radius: 6px; padding: 14px 22px 12px; text-align: center;
background: linear-gradient(180deg, #2b2233 0%, #231b2a 55%, #1d1724 100%); border: 3px solid #0d0a12;
box-shadow: 0 0 0 2px #4a3a52 inset, 0 0 0 6px #17121d, 0 14px 0 -4px #0b0810, 0 26px 50px rgba(0, 0, 0, 0.55);
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08)), repeating-linear-gradient(180deg, transparent 0 38px, rgba(0, 0, 0, 0.18) 38px 40px); }
#menu.title a.station { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; padding: 10px 14px; font-size: 16px; font-weight: 800;
color: #fff; background: linear-gradient(90deg, #ff4f86, #ff7aa8); border: 3px solid #0d0a12; border-radius: 4px; box-shadow: 0 4px 0 #8f1f47; text-decoration: none; }
#menu.title a.station:hover, #menu.title a.station:focus-visible { transform: translateY(-1px); box-shadow: 0 5px 0 #8f1f47, 0 0 16px rgba(255, 92, 138, 0.6); outline: none; }
#menu.title a.station small { font-weight: 600; opacity: 0.85; }
#menu.title .live { background: #fff; color: #e0245e; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 3px; letter-spacing: 0.06em; }
#menu.title .logo { margin: 2px 0 2px; }
#menu.title .logo h1 { margin: 0; font-size: 58px; font-weight: 900; letter-spacing: 0.02em; color: #f7f0d8; transform: rotate(-2.5deg); display: inline-block;
text-shadow: 0 3px 0 #3a2c46, 0 6px 0 #0d0a12, 0 0 24px rgba(200, 220, 255, 0.35); }
#menu.title .subtitle { margin: 0 0 6px; font-size: 14px; color: #b9b2cc; letter-spacing: 0.3em; }
#menu.title .story { margin: 0 0 10px; font-size: 13px; }
#menu.title .label { text-align: left; font-size: 11px; font-weight: 800; color: #8f86a8; letter-spacing: 0.2em; margin: 6px 2px 4px; }
#menu.title #charRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#menu.title #charRow button { margin: 0; height: 132px; justify-content: flex-start; padding: 8px 8px; border-radius: 4px; background: #1a1520; border: 3px solid #0d0a12;
box-shadow: 0 0 0 2px #3a2f44 inset, 0 4px 0 #0b0810; overflow: hidden; transition: transform 0.12s; }
#menu.title #charRow button b { font-size: 17px; }
#menu.title #charRow button small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#menu.title #charRow button small.trait { -webkit-line-clamp: 2; margin-top: auto; }
#menu.title #charRow button small.ctitle { -webkit-line-clamp: 1; opacity: 1; }
#menu.title #charRow button.sel { background: #241d2c; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--k, #ff6b6b) inset, 0 7px 0 #0b0810, 0 0 18px color-mix(in srgb, var(--k, #ff6b6b) 45%, transparent); }
#menu.title #diffRow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
#menu.title #diffRow button { margin: 0; padding: 8px 2px; border-radius: 4px; font-size: 14px; box-shadow: 0 3px 0 #0b0810; }
#menu.title #startBtn { display: block; width: 100%; margin: 10px 0 10px; padding: 14px 0; font-size: 24px; border-radius: 6px 6px 4px 4px;
box-shadow: 0 5px 0 #8f1f47, 0 0 0 2px rgba(255, 255, 255, 0.15) inset; }
#menu.title .menubar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
#menu.title .menubar button { margin: 0; padding: 9px 2px; font-size: 14px; border-radius: 4px; box-shadow: 0 3px 0 #0b0810; white-space: nowrap; }
#menu.title #keyHint { margin: 10px 0 4px; font-size: 12px; }
#menu.title .foot { display: flex; justify-content: space-between; font-size: 11px; color: #6f6788; }
#menu.title #maker, #menu.title #build { position: static; }
@media (max-width: 900px) { #menu.title .panel { width: min(560px, 94vw); } #menu.title .logo h1 { font-size: 44px; } #menu.title #charRow button { height: 120px; } }
#menu.title a.station { background: linear-gradient(90deg, #3a0d12, #5c1018); color: #f3e6d0; border: 3px solid #8a0f1a; box-shadow: 0 4px 0 #1a0407; }
#menu.title a.station:hover, #menu.title a.station:focus-visible { border-color: #b3121f; box-shadow: 0 5px 0 #1a0407, 0 0 14px rgba(165, 18, 31, 0.55); }
#menu.title .live { background: none; color: #ff4a4a; display: inline-flex; align-items: center; gap: 5px; padding: 0; }
#menu.title .live i { width: 8px; height: 8px; border-radius: 50%; background: #e01b2a; box-shadow: 0 0 6px #e01b2a; animation: livedot 1.4s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: 0.35; } }
#menu.title .logo h1 { color: #f3e6d0; text-shadow: 0 3px 0 #4a0b12, 0 6px 0 #12060a, 0 0 22px rgba(165, 18, 31, 0.35); }
#menu.title #charRow button, #menu.title #diffRow button, #menu.title .menubar button { background: #1b1820; border-color: #0d0a12; box-shadow: 0 0 0 2px #2c2733 inset, 0 3px 0 #0b0810; color: #e6ddd0; }
#menu.title #diffRow button.sel { background: #2a1216; box-shadow: 0 0 0 2px #a5121f inset, 0 3px 0 #0b0810, 0 0 12px rgba(165, 18, 31, 0.35); }
#menu.title #diffRow button:hover, #menu.title .menubar button:hover { box-shadow: 0 0 0 2px #7a0c16 inset, 0 3px 0 #0b0810; }
#menu.title #startBtn { background: linear-gradient(180deg, #a5121f, #7a0c16); color: #f3e6d0; border-color: #2a0509; box-shadow: 0 5px 0 #3a0509, 0 0 0 2px rgba(255, 255, 255, 0.08) inset; }
#menu.title #startBtn:hover { background: linear-gradient(180deg, #b8172a, #8a0f1a); }
#menu.title .tutinvite { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 10px; text-align: left; font-size: 13px; color: #e6ddd0;
background: #1f1216; border: 2px solid #7a0c16; border-radius: 4px; animation: invite 0.9s ease-out 1; }
#menu.title .tutinvite[hidden] { display: none; }
#menu.title .tutinvite span { flex: 1; } #menu.title .tutinvite b { color: #ff6b6b; }
#menu.title .tutinvite button { margin: 0; padding: 6px 10px; font-size: 13px; border-radius: 4px; white-space: nowrap; }
#menu.title .tutinvite #tutAskYes { background: #7a0c16; color: #f3e6d0; border-color: #2a0509; }
@keyframes invite { 0% { box-shadow: 0 0 0 0 rgba(165, 18, 31, 0.8); } 100% { box-shadow: 0 0 0 10px rgba(165, 18, 31, 0); } }
#menu.title #diffRow.pickme { animation: pickme 1.2s ease-out 1; border-radius: 6px; }
@keyframes pickme { 0%, 60% { box-shadow: 0 0 0 3px rgba(165, 18, 31, 0.9), 0 0 18px rgba(165, 18, 31, 0.6); } 100% { box-shadow: 0 0 0 0 rgba(165, 18, 31, 0); } }
#menu.title .panel { border-radius: 6px; border: 2px solid #2c2733; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); padding: 16px 22px 14px; }
#menu.title a.station { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); border-width: 2px; border-radius: 5px; }
#menu.title a.station:hover, #menu.title a.station:focus-visible { box-shadow: 0 2px 12px rgba(165, 18, 31, 0.45); transform: none; }
#menu.title #charRow button, #menu.title #diffRow button, #menu.title .menubar button {
border: 1px solid #2c2733; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.35); transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s; }
#menu.title #charRow button:active, #menu.title #diffRow button:active, #menu.title .menubar button:active, #menu.title #startBtn:active { transform: translateY(1px); }
#menu.title #charRow button.sel { transform: none; box-shadow: inset 0 0 0 2px var(--k, #a5121f), 0 0 16px color-mix(in srgb, var(--k, #a5121f) 40%, transparent); }
#menu.title #diffRow button.sel { background: color-mix(in srgb, var(--k, #a5121f) 16%, #1b1820); border-color: var(--k, #a5121f);
box-shadow: inset 0 0 0 1px var(--k, #a5121f), 0 0 12px color-mix(in srgb, var(--k, #a5121f) 45%, transparent); }
#menu.title #diffRow button:hover, #menu.title .menubar button:hover { border-color: #5a4f66; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.4); }
#menu.title #startBtn { border: 1px solid #c9a46a; border-radius: 6px; margin: 12px 0 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(122, 12, 22, 0.45); }
#menu.title .menubar { margin-bottom: 14px; }
#menu.title .foot { padding-top: 8px; border-top: 1px solid #2c2733; }
#menu.title .tutinvite { border-width: 1px; border-radius: 5px; margin-top: 12px; }
#levelup .panel { max-height: calc(100vh - 24px); display: flex; flex-direction: column; overflow: hidden; }
#levelup .lvwrap { flex: 0 0 auto; }
#levelup .fusions { max-height: 52vh; }
#levelup .lvguide { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
#levelup .lvguide[open] .lvguide-body { max-height: 20vh; overflow-y: auto; }
@media (max-height: 820px) { #levelup .panel { padding-top: 10px; padding-bottom: 10px; } #levelup h2 { margin: 2px 0 4px; font-size: 22px; } #levelup .lvguide { margin: 4px auto 2px; } }
#charRow, .tutinvite, .card, #ward { word-break: keep-all; overflow-wrap: anywhere; }