:root { --bg: #120c0e; --panel: #231819; --panel2: #2f2122; --line: #4d362e; --gold: #e2b23c; --gold2: #f7dc86; --ink: #f1e7d3; --dim: #ab9b89; --red: #d0473c; --green: #5fcf66; --parch: #e9dcc0; --cc: #e2b23c; --hw: 62px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: radial-gradient(ellipse at 50% 0%, #2c1b1a 0%, var(--bg) 62%); color: var(--ink); font: 500 16px/1.35 'Alegreya Sans', system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Cinzel, Georgia, serif; margin: 0; letter-spacing: .02em; }
h2 { font-size: 24px; font-weight: 800; color: var(--gold2); }
h4 { font-size: 14px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; display: flex; align-items: baseline; gap: 10px; }
h4 small { font: 500 13px 'Alegreya Sans'; color: var(--dim); text-transform: none; letter-spacing: 0; }
p { margin: 6px 0; } small { color: var(--dim); font-size: 13px; } a { color: var(--gold); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; filter: grayscale(.6); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #5a4036; border-radius: 6px; border: 2px solid #1c1314; } ::-webkit-scrollbar-track { background: #1c1314; }

.btn { border: 2px solid #1b1310; border-radius: 10px; padding: 9px 18px; font: 800 15px Cinzel, serif; letter-spacing: .04em; color: #2a1708; background: linear-gradient(#f7dc86, #d99a26); box-shadow: 0 3px 0 #7a4f10, 0 6px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .08s, filter .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); } .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #7a4f10; }
.btn.ghost { background: linear-gradient(#3b2a2a, #2a1c1d); color: var(--ink); box-shadow: 0 3px 0 #120b0c, 0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); border-color: #5a4036; }
.btn.big { padding: 13px 28px; font-size: 18px; border-radius: 12px; } .btn.small { padding: 5px 11px; font-size: 12px; border-radius: 8px; box-shadow: 0 2px 0 #120b0c; }
.btn.fight { background: linear-gradient(#ff8a6a, #c43a2a); color: #fff; box-shadow: 0 3px 0 #6a1810, 0 0 24px rgba(255,90,60,.45); text-shadow: 0 1px 0 #6a1810; }
.chip { border: 1.5px solid var(--line); background: #1c1314; color: var(--dim); border-radius: 999px; padding: 4px 13px; font-weight: 700; font-size: 14px; }
.chip:hover { color: var(--ink); border-color: var(--gold); } .chip.on { background: linear-gradient(#f7dc86, #d99a26); color: #2a1708; border-color: #1b1310; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; margin-top: 16px; } .row.center { justify-content: center; margin-top: 14px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold2); } .price i, .gold i, .loot i { font-style: normal; color: var(--gold); text-shadow: 0 0 8px rgba(226,178,60,.8); }
.hint { color: var(--dim); font-size: 13px; } .warn { color: #ff9a7a !important; } .ok { color: #8fe08f !important; } .dim { color: var(--dim); }
.kicker { font: 800 12px Cinzel; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.check { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0; color: var(--dim); cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--gold); }
.code { display: block; font: 700 17px ui-monospace, Consolas, monospace; background: #0d0809; border: 1.5px dashed var(--gold); color: var(--gold2); border-radius: 10px; padding: 14px; margin: 12px 0; word-break: break-all; user-select: all; text-align: center; }
.code-in { width: 100%; font: 600 16px ui-monospace, Consolas, monospace; background: #0d0809; color: var(--gold2); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; resize: none; }
.field { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--dim); font-size: 14px; } select { font: inherit; background: #140d0e; color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; } .stat { background: #170f10; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 12px; text-align: center; min-width: 68px; } .stat b { display: block; font: 800 19px Cinzel; color: var(--gold2); } .stat small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.todo { background: rgba(208,71,60,.14); border: 1.5px solid #8a3a30; color: #ffc0a8; border-radius: 10px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.loot { display: flex; gap: 14px; align-items: baseline; font: 800 18px Cinzel; color: var(--gold2); }

/* sprites */
.sprite { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.glow { filter: drop-shadow(0 0 4px currentColor); animation: pulse 1.6s ease-in-out infinite; }
.flick { transform-box: fill-box; transform-origin: 50% 100%; animation: flick .5s ease-in-out infinite alternate; }
.float { animation: bob 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; } } @keyframes flick { to { transform: scale(1.06, .93) skewX(3deg); } } @keyframes bob { 50% { transform: translateY(-5px); } }
.hero-token { position: relative; width: 74px; height: 86px; cursor: grab; transition: transform .12s; }
.hero-token:hover { transform: translateY(-3px) scale(1.05); z-index: 3; }
.hero-token .ht-sprite { position: absolute; inset: -6px -4px 12px; }
.hero-token::before { content: ''; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 16px; border-radius: 50%; background: radial-gradient(var(--cc), transparent 70%); opacity: .55; }
.hero-token.sel::before { opacity: 1; box-shadow: 0 0 0 2.5px var(--gold2), 0 0 16px var(--gold); }
.ht-lvl { position: absolute; top: 0; right: 0; min-width: 22px; height: 22px; border-radius: 11px; background: linear-gradient(#f7dc86, #d99a26); color: #2a1708; border: 2px solid #1b1310; font: 900 12px/18px Cinzel; text-align: center; }
.ht-name { position: absolute; left: -8px; right: -8px; bottom: -3px; text-align: center; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.ht-warn { position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 2px solid #1b1310; font: 900 13px/18px Cinzel; text-align: center; animation: pulse 1s infinite; }
.item { position: relative; width: 52px; height: 52px; border-radius: 10px; background: radial-gradient(#3a2a28, #1a1213); border: 2px solid #5a4036; cursor: pointer; padding: 4px; flex: none; }
.item svg { width: 100%; height: 100%; } .item em { position: absolute; right: 2px; bottom: 0; font: 900 12px Cinzel; color: #fff; text-shadow: 0 0 3px #000, 0 1px 0 #000; font-style: normal; }
.item.empty { border-style: dashed; cursor: default; opacity: .5; } .item.big { width: 78px; height: 78px; }
.item.common { border-color: #c9ccd4; } .item.uncommon { border-color: #5fd35f; box-shadow: 0 0 10px rgba(95,211,95,.35); } .item.rare { border-color: #5a9cff; box-shadow: 0 0 12px rgba(90,156,255,.45); } .item.veryrare { border-color: #c06bff; box-shadow: 0 0 14px rgba(192,107,255,.5); } .item.legendary { border-color: #ffa53b; box-shadow: 0 0 16px rgba(255,165,59,.6); }

/* shell */
#app { height: 100%; display: flex; flex-direction: column; }
#top { flex: none; height: 66px; display: flex; align-items: center; gap: 20px; padding: 0 18px; background: linear-gradient(#35211c, #1e1314); border-bottom: 3px solid #0d0809; box-shadow: 0 2px 0 #5a4036 inset, 0 6px 18px rgba(0,0,0,.5); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; } .brand b { font: 800 17px Cinzel; color: var(--gold2); white-space: nowrap; display: block; } .brand small { letter-spacing: .3em; font-size: 10px; }
.mini-banner { width: 34px; height: 50px; flex: none; } .mini-banner svg { width: 100%; height: 100%; overflow: visible; } .mini-banner.big { width: 70px; height: 104px; }
#top nav { display: flex; gap: 6px; margin: 0 auto; }
.tab { border: 2px solid transparent; background: none; border-radius: 12px 12px 0 0; padding: 10px 24px 12px; font: 800 16px Cinzel; color: var(--dim); display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.tab i { font-style: normal; filter: grayscale(.7); } .tab:hover { color: var(--ink); }
.tab.on { color: #2a1708; background: linear-gradient(#f7dc86, #d99a26); border-color: #0d0809; border-bottom-color: transparent; box-shadow: 0 -2px 14px rgba(226,178,60,.35); } .tab.on i { filter: none; }
#top .stats { display: flex; gap: 14px; align-items: center; } .lvl { min-width: 150px; } .lvl b { font: 800 13px Cinzel; color: var(--gold2); } .lvl small { font-size: 11px; display: block; }
.xpbar { height: 7px; background: #0d0809; border-radius: 4px; overflow: hidden; border: 1px solid #5a4036; margin: 2px 0; } .xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #6ad0ff, #c08aff); }
.gold { font: 800 19px Cinzel; color: var(--gold2); display: flex; gap: 6px; align-items: center; }
#view { flex: 1; min-height: 0; overflow: auto; }
#bench { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 18px 10px; background: linear-gradient(#2a1b19, #170f10); border-top: 3px solid #0d0809; box-shadow: 0 -2px 0 #5a4036 inset; }
.bench-label { width: 150px; flex: none; } .bench-label b { font: 800 15px Cinzel; color: var(--gold2); margin-right: 8px; } .bench-label .hint { display: block; font-size: 11.5px; line-height: 1.2; margin-top: 2px; }
.bench-slots { display: flex; gap: 6px; flex: 1; overflow-x: auto; padding: 4px 0; }
.slot { width: 82px; height: 92px; flex: none; border-radius: 12px; border: 2px dashed #4d362e; background: rgba(0,0,0,.25); display: grid; place-items: center; transition: .12s; }
.slot.over, .hex.over .hex-in { border-color: var(--gold2); background: rgba(226,178,60,.18); }
.sell-zone { width: 170px; flex: none; text-align: center; border: 2px dashed #6a2c26; border-radius: 12px; padding: 10px; color: #c98a80; opacity: .5; transition: .15s; } .sell-zone b { display: block; font: 800 14px Cinzel; } .sell-zone small { font-size: 11.5px; color: inherit; }
body.drag-bench .sell-zone { opacity: 1; background: rgba(208,71,60,.14); } .sell-zone.over { background: rgba(208,71,60,.4) !important; color: #fff; }

/* overlays */
#toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #2f2122; border: 2px solid var(--gold); border-radius: 10px; padding: 9px 18px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.6); animation: pop .25s; transition: .4s; max-width: 80vw; }
.toast.bad { border-color: var(--red); color: #ffd0c0; } .toast.good { border-color: var(--green); color: #d8ffd8; } .toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
#tip { position: fixed; z-index: 95; max-width: 320px; background: #170f10; border: 2px solid var(--gold); border-radius: 10px; padding: 10px 13px; box-shadow: 0 10px 30px rgba(0,0,0,.7); pointer-events: none; font-size: 14px; }
#tip b { font: 800 15px Cinzel; color: var(--gold2); display: block; } #tip small { display: block; } #tip p { margin: 6px 0 2px; } #tip .gp { margin-top: 6px; color: var(--gold); }
#modal { position: fixed; inset: 0; z-index: 80; background: rgba(8,5,6,.72); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.modal-box { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: linear-gradient(#33231f, #1f1415); border: 3px solid #0d0809; outline: 2px solid var(--gold); outline-offset: -7px; border-radius: 16px; padding: 22px 26px; box-shadow: 0 30px 80px #000; animation: pop .2s; }
.modal-box header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .modal-box .x { background: none; border: 0; font-size: 20px; color: var(--dim); }
.legal p { font-size: 14.5px; color: #d8cbb6; }
.result { text-align: center; } .result h1 { font-size: 44px; font-weight: 900; letter-spacing: .08em; margin: 4px 0 10px; }
.result.win h1 { background: linear-gradient(#fff3c0, #e2a22c); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5a3408) drop-shadow(0 0 24px rgba(255,200,80,.6)); } .result.lose h1 { color: #d0473c; text-shadow: 0 3px 0 #3a0c08; }
.result .loot { justify-content: center; font-size: 24px; } .levelup { margin: 12px 0; padding: 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(106,208,255,.15), rgba(192,138,255,.25)); border: 1.5px solid #8a7ad0; font-weight: 800; color: #e0d8ff; }
.rest { margin: 12px 0; padding: 10px; border-radius: 10px; background: rgba(255,140,40,.1); border: 1.5px solid #8a5a2a; } .rest b { display: block; color: #ffc27a; }

/* onboarding */
#onboard { position: fixed; inset: 0; overflow: auto; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 30%, #3a2019 0%, #120c0e 70%); }
.landing { display: grid; grid-template-columns: auto minmax(0, 620px); gap: 50px; align-items: center; max-width: 1050px; }
.land-banner { width: 300px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: sway 5s ease-in-out infinite; transform-origin: 50% 0; } .land-banner svg { width: 100%; height: auto; overflow: visible; }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg) skewX(.6deg); } 50% { transform: rotate(1.6deg) skewX(-.6deg); } }
.landing h1 { font-size: 58px; line-height: .98; font-weight: 900; margin: 10px 0 16px; } .landing h1 span { display: block; background: linear-gradient(#fff3c0, #e2a22c 70%, #a8680c); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #3a2008); }
.landing h1 .amp { font-size: 40px; background: linear-gradient(#ff9a7a, #c43a2a); -webkit-background-clip: text; } .land-text p { font-size: 19px; color: #d8cbb6; max-width: 520px; }
.land-text .row { margin-top: 22px; } .land-heroes { display: flex; margin-top: 26px; height: 120px; } .land-hero { width: 104px; margin-right: -14px; animation: bob 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.landing footer { grid-column: 1 / -1; text-align: center; font-size: 12.5px; color: #8a7a6a; }
.ob-card { width: min(760px, 100%); background: linear-gradient(#33231f, #1f1415); border: 3px solid #0d0809; outline: 2px solid var(--gold); outline-offset: -7px; border-radius: 18px; padding: 26px 30px; box-shadow: 0 30px 80px #000; }
.ob-card.narrow { width: min(540px, 100%); } .ob-card.wide { width: min(1120px, 100%); } .ob-card.center { text-align: center; } .ob-card header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; } .ob-card header p { color: var(--dim); max-width: 420px; text-align: right; }
.bn-builder { display: grid; grid-template-columns: 300px 1fr; gap: 26px; } .bn-left { display: flex; flex-direction: column; align-items: center; gap: 14px; position: sticky; top: 0; align-self: start; }
.bn-preview { width: 280px; padding: 18px 10px 26px; border-radius: 14px; background: radial-gradient(ellipse at 50% 20%, #5a3a2a, #1a1011); border: 2px solid #0d0809; box-shadow: inset 0 0 40px rgba(0,0,0,.6); }
.bn-big svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 14px rgba(0,0,0,.55)); } .bn-big.small { width: 170px; margin: 6px auto; } .wave { animation: sway 4.5s ease-in-out infinite; transform-origin: 50% 8%; }
.bn-controls { max-height: 62vh; overflow: auto; padding-right: 8px; } .bn-controls h4 { margin-top: 12px; }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, 50px); gap: 7px; } .bn-opt { width: 50px; height: 72px; padding: 3px; background: #170f10; border: 2px solid var(--line); border-radius: 8px; } .bn-opt svg { width: 100%; height: 100%; }
.bn-opt.ch { height: 50px; padding: 6px; } .bn-opt:hover { border-color: var(--gold); } .bn-opt.on { border-color: var(--gold2); background: #3a2a1a; box-shadow: 0 0 12px rgba(226,178,60,.5); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; } .sw { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #0d0809; box-shadow: inset 0 2px 3px rgba(255,255,255,.25); } .sw.on { outline: 2.5px solid var(--gold2); outline-offset: 2px; }
.name-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .name-col { height: 300px; overflow: auto; background: #140d0e; border: 2px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.name-col button { background: none; border: 0; text-align: left; padding: 5px 12px; border-radius: 7px; font-weight: 700; color: var(--dim); } .name-col button:hover { background: #2a1c1d; color: var(--ink); } .name-col button.on { background: linear-gradient(#f7dc86, #d99a26); color: #2a1708; } .name-col button.taken { text-decoration: line-through; opacity: .45; }
.name-out { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 12px 16px; background: #140d0e; border-radius: 12px; border: 2px solid var(--line); } .name-out h3 { font-size: 28px; font-weight: 900; color: var(--gold2); }

/* inn */
.inn { display: flex; flex-direction: column; min-height: 100%; } .inn .shop { flex: 1 0 auto; }
.inn-scene { position: relative; flex: none; height: min(34vw, calc(100vh - 414px)); min-height: 280px; overflow: hidden; border-bottom: 3px solid #0d0809; } .inn-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.firelight { animation: fire 1.3s ease-in-out infinite alternate; } @keyframes fire { from { opacity: .7; } to { opacity: 1; } }
.walker { animation: walk 26s linear infinite; } @keyframes walk { 0% { transform: translateX(520px); } 48% { transform: translateX(1180px); } 50% { transform: translateX(1180px); } 98% { transform: translateX(520px); } }
.our-banner { animation: none; }
.sign { position: absolute; transform: translate(-50%, -50%); background: linear-gradient(#8a5a2f, #5a3a1c); border: 3px solid #1b1310; border-radius: 10px; padding: 6px 16px; text-align: center; box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25); transition: .15s; }
.sign b { display: block; font: 900 16px Cinzel; color: #ffe9b0; text-shadow: 0 1px 0 #2a1708; } .sign small { color: #e0c8a0; font-size: 11.5px; } .sign:hover, .sign.on { transform: translate(-50%, -54%) scale(1.06); box-shadow: 0 0 22px rgba(255,200,90,.7); } .sign.on { background: linear-gradient(#c98a3a, #8a5a1c); }
.our-sign { position: absolute; transform: translate(-50%, -100%); font: 800 14px Cinzel; color: #ffe9b0; background: rgba(20,10,8,.75); border: 1.5px solid var(--gold); padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.cta { position: absolute; left: 50%; top: 78%; transform: translate(-50%, -50%); font: 800 17px Cinzel; background: linear-gradient(#f7dc86, #d99a26); color: #2a1708; border: 3px solid #1b1310; border-radius: 12px; padding: 12px 22px; box-shadow: 0 0 30px rgba(255,200,90,.7); animation: pulse 1.6s infinite; }
.bubble { position: absolute; transform: translate(-50%, -100%); background: var(--parch); color: #2a1c14; font-weight: 700; font-size: 13.5px; padding: 5px 11px; border-radius: 12px; border: 2px solid #1b1310; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.5); animation: bubble 3.6s ease forwards; pointer-events: none; z-index: 2; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: #1b1310; border-bottom: 0; }
@keyframes bubble { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.6); } 8%, 82% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -130%) scale(.9); } }
.shop { flex: none; padding: 10px 18px 12px; background: linear-gradient(#2a1b19, #1c1213); } .shop-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; } .shop-tabs .hint { margin-left: 10px; }
.shop-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; }
.r-card { position: relative; width: 142px; flex: none; height: 164px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; padding: 8px; border-radius: 14px; border: 2.5px solid #0d0809; background: linear-gradient(170deg, color-mix(in srgb, var(--cc) 38%, #2a1c1d), #1a1112 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 70%, #000), 0 6px 14px rgba(0,0,0,.5); transition: .12s; }
.r-card:hover:not(.empty) { transform: translateY(-5px); box-shadow: inset 0 0 0 2px var(--cc), 0 0 22px color-mix(in srgb, var(--cc) 60%, transparent); } .r-card.poor { filter: saturate(.5) brightness(.75); }
.r-card b { font: 800 14px Cinzel; text-align: center; line-height: 1.1; position: relative; text-shadow: 0 1px 3px #000; } .r-card.empty { border-style: dashed; border-color: var(--line); background: rgba(0,0,0,.2); box-shadow: none; justify-content: center; color: var(--dim); font: 800 14px Cinzel; }
.r-sprite { position: absolute; inset: 8px 22px 62px; } .r-lvl { position: absolute; top: 7px; left: 9px; font: 900 12px Cinzel; color: #fff; text-shadow: 0 1px 2px #000; z-index: 1; }
.r-have { position: absolute; top: 6px; right: 7px; font: 900 10.5px Cinzel; background: #1b1310; color: var(--gold2); border: 1.5px solid var(--gold); border-radius: 999px; padding: 1px 7px; z-index: 1; } .r-card.merge { animation: mergeglow 1s infinite alternate; } .r-card.merge .r-have { background: var(--gold); color: #2a1708; }
@keyframes mergeglow { to { box-shadow: inset 0 0 0 2px var(--gold2), 0 0 28px var(--gold); } }
.r-card.curio .item { margin-bottom: 8px; cursor: inherit; } .r-card.curio b { font-size: 13px; min-height: 30px; display: grid; place-items: center; }
.reroll { width: 132px; flex: none; border-radius: 14px; border: 2.5px dashed var(--gold); background: rgba(226,178,60,.08); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; } .reroll:hover { background: rgba(226,178,60,.2); } .reroll b { font: 800 15px Cinzel; color: var(--gold2); }
.gear-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .g-col h4 { margin: 0 0 6px; } .g-list { height: 170px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
.g-row { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 10px; align-items: center; background: #1a1112; border: 1.5px solid var(--line); border-radius: 9px; padding: 3px 10px 3px 4px; text-align: left; } .g-row:hover { border-color: var(--gold); } .g-row .item { width: 36px; height: 36px; padding: 2px; border-width: 1.5px; } .g-row b { font-weight: 800; } .g-row.poor { opacity: .55; }

/* party */
.picker { display: grid; grid-template-columns: 340px 1fr; gap: 26px; padding: 20px 24px; height: 100%; } .picker-left { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; overflow: auto; } .picker-left p { color: var(--dim); font-size: 15px; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; overflow: auto; align-content: start; padding: 2px 6px 20px 2px; }
.class-card { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; padding: 8px 12px 8px 6px; border-radius: 14px; cursor: grab; border: 2.5px solid #0d0809; background: linear-gradient(120deg, color-mix(in srgb, var(--cc) 34%, #2a1c1d), #1a1112 62%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 60%, #000); transition: .12s; }
.class-card:hover, .class-card.on { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--cc), 0 0 20px color-mix(in srgb, var(--cc) 55%, transparent); } .class-card.on { outline: 3px solid var(--gold2); }
.cc-sprite { width: 84px; height: 96px; } .class-card b { font: 800 18px Cinzel; color: #fff; display: block; } .class-card p { font-size: 13.5px; color: #d8cbb6; margin: 3px 0 0; line-height: 1.25; }
.board-wrap { flex: none; } .board-cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; width: calc(var(--hw) * 4.5); } .board-cap b { font: 800 14px Cinzel; color: var(--gold); } .board-wrap .hint { display: block; width: calc(var(--hw) * 4.5); margin-top: 6px; }
.board { position: relative; width: calc(var(--hw) * 4.5); height: calc(var(--hw) * 8.09); }
.hex { position: absolute; width: var(--hw); height: calc(var(--hw) * 1.1547); display: grid; place-items: center; } .hex-in { position: absolute; inset: 2px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(#5a4e50, #3a3036); transition: .12s; }
.hex:hover .hex-in { background: linear-gradient(#77686a, #4a3e44); } .hex.over .hex-in { background: linear-gradient(#e2b23c, #8a6a1c); } .hex .hero-token { z-index: 2; width: 62px; height: 74px; margin-top: -22px; } .hex .hero-token .ht-name { font-size: 10.5px; bottom: -8px; }
.hero-token.placed { cursor: pointer; }
.party { display: grid; grid-template-columns: 320px 1fr; gap: 22px; padding: 18px 22px; height: 100%; } .party-left { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; overflow: auto; }
.hero-panel { min-width: 0; display: flex; flex-direction: column; background: linear-gradient(#2c1e1d, #1c1213); border: 3px solid #0d0809; border-radius: 16px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 55%, #000); overflow: hidden; }
.hero-panel > header { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px 18px; background: linear-gradient(100deg, color-mix(in srgb, var(--cc) 30%, #2a1c1d), transparent 70%); border-bottom: 2px solid #0d0809; }
.hp-sprite { width: 96px; height: 100px; } .hero-panel header p { color: #d8cbb6; font-size: 14px; margin: 3px 0 0; } .hero-body { flex: 1; overflow: auto; padding: 4px 20px 20px; }
.build-head { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-top: 10px; } .build-head p { color: var(--dim); }
.sp-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; } .sp-opt { background: #170f10; border: 2px solid var(--line); border-radius: 10px; padding: 2px 2px 5px; } .sp-opt b { font-size: 12.5px; display: block; } .sp-sprite { height: 76px; } .sp-opt:hover { border-color: var(--gold); } .sp-opt.on { border-color: var(--gold2); background: #3a2a1a; box-shadow: 0 0 12px rgba(226,178,60,.45); }
.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .bg-opt { text-align: left; background: #170f10; border: 2px solid var(--line); border-radius: 10px; padding: 8px 11px; display: flex; flex-direction: column; gap: 2px; } .bg-opt b { font: 800 15px Cinzel; color: var(--gold2); } .bg-opt span { font-weight: 700; font-size: 13.5px; } .bg-opt:hover { border-color: var(--gold); } .bg-opt.on { border-color: var(--gold2); background: #3a2a1a; }
.ba-row { display: flex; gap: 18px; align-items: center; margin-top: 10px; flex-wrap: wrap; } .ba-pick { display: flex; gap: 14px; } .ba-pick div { display: flex; gap: 4px; align-items: center; } .ba-pick .chip { padding: 2px 9px; }
.pb { display: grid; gap: 4px; max-width: 640px; } .pb-row { display: grid; grid-template-columns: 130px 28px 34px 28px 60px 96px 46px 40px; gap: 6px; align-items: center; padding: 3px 10px; background: #170f10; border-radius: 8px; border: 1.5px solid transparent; }
.pb-row.head { background: none; padding-bottom: 0; } .pb-row.prim { border-color: var(--gold); } .pb-row.save b::after { content: ' ◆'; color: var(--gold); font-size: 10px; } .pb-row b { font-weight: 800; }
.pm { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--line); background: #2a1c1d; font-weight: 900; line-height: 1; } .pm:hover:not(:disabled) { border-color: var(--gold); } .pb-v { text-align: center; font: 800 17px Cinzel; } .pb-t { text-align: center; font: 900 19px Cinzel; color: var(--gold2); } .pb-m { text-align: center; font-weight: 800; color: #9ad8ff; }
.asi { display: flex; gap: 4px; align-items: center; justify-content: center; }
.build-foot { position: sticky; bottom: -20px; margin: 18px -20px -20px; padding: 12px 20px; display: flex; gap: 14px; align-items: center; justify-content: flex-end; background: linear-gradient(#2c1e1d, #1c1213); border-top: 2px solid #0d0809; } .prev { display: flex; gap: 6px; margin-right: auto; } .prev .stat { min-width: 56px; padding: 3px 9px; } .prev .stat b { font-size: 16px; }
.sheet .stat-row { margin-top: 14px; } .abil-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; max-width: 640px; }
.abil { text-align: center; background: #170f10; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 4px; } .abil.prof { border-color: var(--gold); } .abil b { display: block; font: 900 22px Cinzel; color: var(--gold2); } .abil span { display: inline-block; background: #2a1c1d; border-radius: 999px; padding: 0 9px; font-weight: 800; font-size: 13px; } .abil .sv { display: block; margin-top: 2px; font-size: 11.5px; }
.atk-list { display: grid; gap: 4px; } .atk { display: grid; grid-template-columns: 200px 100px 1fr auto; gap: 10px; align-items: center; background: #170f10; border-radius: 8px; padding: 6px 12px; } .atk b { font-weight: 800; } .atk em { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border: 1.5px solid var(--gold); color: var(--gold2); border-radius: 999px; padding: 0 9px; }
.slots { display: flex; gap: 12px; flex-wrap: wrap; color: #9ad8ff; letter-spacing: 2px; } .slot-pip small { letter-spacing: 0; margin-right: 4px; }
.spell-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .spell { border-radius: 999px; padding: 2px 11px; font-size: 13.5px; font-weight: 700; background: #1d2a3a; border: 1.5px solid #3a5a7a; cursor: help; } .spell.l0 { background: #2a2a2a; border-color: #5a5a5a; } .spell.l3, .spell.l4 { background: #2a1d3a; border-color: #6a4a9a; } .spell.l5, .spell.l6 { background: #3a1d2a; border-color: #9a4a6a; } .spell.l7, .spell.l8, .spell.l9 { background: #3a2a14; border-color: #c98a2a; }
.res-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .res-list span { background: #170f10; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px 10px; font-size: 13.5px; } .res-list b { margin-left: 7px; color: var(--gold2); }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; } .feat-list li { display: grid; grid-template-columns: 62px 190px 1fr; gap: 8px; align-items: baseline; padding: 4px 10px; background: #170f10; border-radius: 7px; font-size: 14px; } .feat-list li b { font-weight: 800; color: #ffe9b0; } .feat-list li span { color: #cfc2ad; } .feat-list li.locked { opacity: .38; }
.gslots { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; } .gslot { text-align: center; } .gslot small { display: block; margin-bottom: 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; } .gslot .item { width: 66px; height: 66px; }
.gear > .hint { display: block; margin-top: 10px; } .stash { display: flex; flex-wrap: wrap; gap: 8px; } .stash-it { position: relative; } .stash-it.bad .item { opacity: .4; }
.sell-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #0d0809; background: var(--red); color: #fff; font-size: 11px; line-height: 1; padding: 0; opacity: 0; transition: .12s; } .stash-it:hover .sell-x { opacity: 1; }

/* dungeon */
.dungeon, .run { padding: 18px 26px 26px; max-width: 1200px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.dg-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; } .dg-head p { color: var(--dim); max-width: 620px; }
.dl-list { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; padding-right: 6px; }
.dl-card { display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; align-items: center; padding: 10px 18px 10px 10px; background: linear-gradient(100deg, #33211f, #1c1213 70%); border: 2.5px solid #0d0809; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #4d362e; }
.dl-card.new { box-shadow: inset 0 0 0 2px var(--gold), 0 0 22px rgba(226,178,60,.25); background: linear-gradient(100deg, #4a2a1c, #1c1213 70%); }
.dl-num { text-align: center; background: radial-gradient(#3a2422, #120b0c); border-radius: 12px; border: 2px solid #0d0809; padding: 8px 0; } .dl-num b { display: block; font: 900 34px/1 Cinzel; color: var(--gold2); } .dl-num small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.dl-info h3 { font-size: 19px; font-weight: 800; display: flex; gap: 12px; align-items: baseline; } .dl-info em { font: 800 11px 'Alegreya Sans'; text-transform: uppercase; letter-spacing: .1em; color: #2a1708; background: var(--gold); border-radius: 999px; padding: 1px 9px; } .dl-info em.done { background: none; border: 1.5px solid #5a7a5a; color: #8fd08f; }
.dl-mons, .enc-mons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .mon { text-align: center; width: 84px; } .mon b { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.1; color: #d8cbb6; } .mon-sprite { height: 62px; transform: scaleX(-1); }
.enc-mons { justify-content: center; gap: 16px; margin: 14px 0; } .enc-mons .mon { width: 130px; } .enc-mons .mon-sprite { height: 110px; } .enc-mons .mon b { font-size: 14px; } .enc-mons .mon-sprite.szH, .enc-mons .mon-sprite.szG { height: 150px; } .enc-mons .mon-sprite.szS { height: 86px; }
.path { display: flex; align-items: center; padding: 6px 30px; } .node { width: 74px; text-align: center; flex: none; } .node b { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 3px; border-radius: 50%; font-size: 22px; background: #2a1c1d; border: 3px solid #4d362e; color: var(--dim); }
.node.done b { background: #2a4a2a; border-color: #5fcf66; color: #c8ffc8; } .node.cur b { background: linear-gradient(#f7dc86, #d99a26); border-color: #fff3c0; color: #2a1708; box-shadow: 0 0 22px var(--gold); animation: pulse 1.2s infinite; } .node.boss b { border-color: #8a3a30; } .node.boss.cur b { background: linear-gradient(#ff8a6a, #c43a2a); color: #fff; box-shadow: 0 0 22px #ff5a3a; }
.link { flex: 1; height: 6px; background: repeating-linear-gradient(90deg, #4d362e 0 10px, transparent 10px 18px); position: relative; margin-bottom: 20px; } .link.done { background: #5fcf66; } .link span { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-size: 22px; filter: drop-shadow(0 0 8px #ff8a2a); }
.run-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 360px; gap: 18px; } .run-body section { background: linear-gradient(#2c1e1d, #1c1213); border: 2.5px solid #0d0809; border-radius: 14px; padding: 6px 18px 16px; box-shadow: inset 0 0 0 1.5px #4d362e; overflow: auto; }
.enc { display: flex; flex-direction: column; } .enc .row { margin-top: auto; }
.pc { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: linear-gradient(100deg, color-mix(in srgb, var(--cc) 22%, #1c1213), #170f10 60%); margin-bottom: 6px; } .pc.dead { filter: grayscale(1); opacity: .6; } .pc-sprite { width: 62px; height: 64px; } .pc b { font-weight: 800; margin-right: 8px; }
.hp { position: relative; height: 16px; background: #0d0809; border-radius: 8px; overflow: hidden; border: 1.5px solid #4d362e; margin: 3px 0; } .hp i { display: block; height: 100%; background: linear-gradient(#7ae07a, #3a9a3a); transition: width .3s; } .hp span { position: absolute; inset: 0; text-align: center; font: 800 11.5px/13px 'Alegreya Sans'; text-shadow: 0 1px 2px #000; }
.pips { display: flex; gap: 8px; flex-wrap: wrap; } .pips span { display: flex; gap: 2px; align-items: center; } .pips small { font-size: 10px; margin-right: 1px; } .pips i { width: 7px; height: 7px; border-radius: 50%; background: #2a2a3a; border: 1px solid #4a5a7a; } .pips i.on { background: #6ad0ff; box-shadow: 0 0 5px #6ad0ff; }

/* battle */
#battle { position: fixed; inset: 0; z-index: 60; background: #0b0709; display: flex; flex-direction: column; }
.b-top { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 18px; background: linear-gradient(#35211c, #1e1314); border-bottom: 3px solid #0d0809; } .b-top h2 { font-size: 19px; } .b-round b { font: 900 20px Cinzel; color: #fff; letter-spacing: .1em; } .b-ctl { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.b-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 330px; } .b-stage { position: relative; min-width: 0; overflow: hidden; } .b-canvas { display: block; }
.b-side { display: flex; flex-direction: column; min-height: 0; background: #170f10; border-left: 3px solid #0d0809; } .b-cards { flex: none; padding: 8px; display: grid; gap: 5px; border-bottom: 2px solid #0d0809; }
.b-card { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; } .b-face { width: 44px; height: 46px; } .b-info b { font-size: 13.5px; font-weight: 800; } .b-info small { display: block; font-size: 11px; min-height: 13px; color: #ffc27a; } .b-info .hp { height: 13px; margin: 1px 0; } .b-info .hp span { font-size: 10.5px; line-height: 10px; }
.b-log { flex: 1; overflow: auto; padding: 8px 10px; font-size: 13px; line-height: 1.3; } .b-log p { margin: 2px 0; } .b-log .dim { color: #8a7a6a; } .b-log .sub { color: #c8baa6; } .b-log .round { font: 900 13px Cinzel; color: var(--gold); margin-top: 8px; border-top: 1px solid #4d362e; padding-top: 4px; } .b-log .cast { color: #d8c8ff; } .b-log .bad { color: #ff9a8a; font-weight: 800; } .b-log .good { color: #9ae09a; font-weight: 800; }
.b-log .s0 { color: #8ac8ff; } .b-log .s1 { color: #ff9a8a; } .b-log .an { color: #ffe9b0; } .b-log .sp { color: #e0a8ff; font-weight: 800; } .b-log .crit { color: #ffd23a; } .b-log .hit { color: #9ae09a; } .b-log .miss { color: #8a7a6a; } .b-log .dm { color: #ff8a7a; } .b-log .hl { color: #7dffb0; }

@media (max-width: 1100px) { :root { --hw: 52px; } .landing { grid-template-columns: 1fr; text-align: center; } .land-banner { width: 190px; margin: 0 auto; } .land-heroes, .land-text .row { justify-content: center; } .landing h1 { font-size: 40px; }
  .bn-builder, .picker, .party, .run-body { grid-template-columns: 1fr; height: auto; } .b-main { grid-template-columns: 1fr; grid-template-rows: 1fr 200px; } .sp-grid { grid-template-columns: repeat(5, 1fr); } .bg-grid { grid-template-columns: 1fr 1fr; } .gear-shop { grid-template-columns: 1fr; } .lvl { display: none; } .tab { padding: 8px 12px 10px; } }
