:root {
  --bg: #0b0806;
  --wood1: #2c1d12;
  --wood2: #160e08;
  --gold: #e8b54a;
  --gold2: #ffe39a;
  --gold3: #8a5f1c;
  --txt: #f3e6c8;
  --dim: #b9a37c;
  --ok: #7de08a;
  --bad: #ff5a5a;
  --royal: #a3201e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--txt); font-family: 'Rubik', sans-serif; user-select: none; }
button { font-family: 'Rubik', sans-serif; cursor: pointer; border: 0; color: #fff; }
canvas#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
canvas#cvgl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; image-rendering: pixelated; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%); }
.hidden { display: none !important; }

.gold { color: var(--gold2); }
.crest { display: inline-block; width: 30px; height: 36px; background: linear-gradient(160deg, var(--gold2), var(--gold) 45%, var(--gold3)); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); position: relative; filter: drop-shadow(0 0 6px rgba(255,200,80,0.6)); }
.crest::after { content: ''; position: absolute; inset: 22% 26% 30%; background: linear-gradient(180deg, #2d5fb8, #13306a); clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
.crest.big { width: 70px; height: 84px; }

.frame { background: linear-gradient(180deg, var(--wood1), var(--wood2)); border: 2px solid var(--gold3); box-shadow: inset 0 0 0 1px rgba(255,220,140,0.15), inset 0 0 30px rgba(0,0,0,0.6), 0 8px 30px rgba(0,0,0,0.6); }

#top { position: fixed; top: 0; left: 0; right: 0; height: 66px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: linear-gradient(180deg, #2a1a0e, #140c06); border-bottom: 2px solid var(--gold3); box-shadow: 0 2px 0 rgba(255,220,140,0.12), 0 6px 20px rgba(0,0,0,0.6); z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo b { display: block; font-family: 'Rubik'; font-weight: 900; font-size: 20px; line-height: 1; background: linear-gradient(180deg, var(--gold2), var(--gold) 60%, var(--gold3)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 2px; }
.logo i { display: block; font-style: normal; font-family: 'Rubik'; font-weight: 700; font-size: 11px; letter-spacing: 8px; color: var(--dim); }
.chips { display: flex; gap: 10px; flex: 1; justify-content: center; }
.chip { display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25)); border: 1px solid rgba(232,181,74,0.35); border-radius: 0; padding: 6px 12px; min-width: 120px; }
.chip small { display: block; font-family: 'Rubik'; font-size: 9px; letter-spacing: 1.5px; color: var(--dim); font-weight: 700; }
.chip b { font-family: 'Rubik'; font-weight: 900; font-size: 16px; color: var(--gold2); }
.chip em { font-style: normal; font-size: 11px; color: var(--ok); margin-left: 4px; font-weight: 800; }
.chip .ic { width: 22px; height: 22px; border-radius: 0; flex: none; }
.chip.coin .ic { background: radial-gradient(circle at 35% 30%, #fff6c0, #ffc030 50%, #8a5a00); box-shadow: 0 0 8px #ffb40088, inset 0 0 0 2px #b07a10; }
.chip.pend .ic { background: radial-gradient(circle at 35% 30%, #fff, #c8c8d0 50%, #6a6a78); clip-path: polygon(50% 0, 100% 30%, 85% 100%, 15% 100%, 0 30%); }
.chip.pow .ic { background: linear-gradient(135deg, #e0e4ea, #7a8494); clip-path: polygon(45% 0, 55% 0, 55% 60%, 80% 60%, 80% 70%, 55% 70%, 55% 100%, 45% 100%, 45% 70%, 20% 70%, 20% 60%, 45% 60%); }
.chip.day .ic { background: linear-gradient(135deg, #ff8a3d, #ffd24a); clip-path: polygon(0 100%, 30% 45%, 55% 70%, 100% 0, 100% 100%); }
#b-claim, .btn-gold { background: linear-gradient(180deg, #ffe9a8, #e8b54a 45%, #9a6a1c); color: #2a1604; font-weight: 900; border: 1px solid #5a3a0a; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.5); text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
#b-claim { margin-left: 6px; padding: 7px 12px; border-radius: 0; font-size: 11px; }
#b-claim:hover, .buy-row button:hover, #l-go:hover, #l-nickgo:hover, #l-devgo:hover, #box-ok:hover { filter: brightness(1.12); }
.right { display: flex; align-items: center; gap: 12px; }
.wave { text-align: center; }
.wave small { display: block; font-family: 'Rubik'; font-size: 9px; letter-spacing: 2px; color: var(--dim); font-weight: 700; }
.wave b { font-family: 'Rubik'; font-size: 22px; color: #ff9a5a; text-shadow: 0 0 10px rgba(255,120,40,0.6); }
.who { font-family: 'Rubik'; font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 0; background: rgba(0,0,0,0.35); border: 1px solid rgba(232,181,74,0.3); color: var(--gold2); }
.ghost { background: linear-gradient(180deg, #3a2616, #1e130a); border: 1px solid var(--gold3); border-radius: 0; padding: 8px 14px; font-size: 11px; font-weight: 700; color: var(--gold2); }
.ghost:hover { border-color: var(--gold); }

.panel { position: fixed; top: 78px; bottom: 12px; width: 300px; border-radius: 0; padding: 14px; overflow-y: auto; z-index: 4; scrollbar-width: thin; scrollbar-color: #6a4a20 transparent; background: linear-gradient(180deg, rgba(44,29,18,0.94), rgba(22,14,8,0.95)); border: 2px solid var(--gold3); box-shadow: inset 0 0 0 1px rgba(255,220,140,0.12), inset 0 0 40px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.6); }
#left { left: 12px; }
#right { right: 12px; width: 330px; }
.panel h3 { font-family: 'Rubik'; font-weight: 900; font-size: 13px; letter-spacing: 3px; color: var(--gold); margin: 6px 0 10px; display: flex; justify-content: space-between; align-items: center; text-shadow: 0 2px 4px #000; }
.panel h3::before, .panel h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold3)); margin: 0 8px; }
.panel h3::before { margin-left: 0; }
.panel h3::after { background: linear-gradient(90deg, var(--gold3), transparent); }

.map { position: relative; border-radius: 0; padding: 12px; margin-bottom: 10px; border: 2px solid #4a3418; cursor: pointer; overflow: hidden; transition: transform .15s, border-color .15s; min-height: 150px; }
.map:hover { transform: translateY(-2px); border-color: var(--gold3); }
.map.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold2) inset, 0 0 22px rgba(232,181,74,0.35); }
.map.locked { cursor: not-allowed; }
.map.locked .bgart { filter: grayscale(0.85) brightness(0.55); }
.map .bgart { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.map::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,2,0.15), rgba(10,6,2,0.88) 62%); z-index: 0; }
.map > *:not(.bgart) { position: relative; z-index: 1; }
.map .tier { display: inline-block; font-family: 'Rubik'; font-size: 9px; font-weight: 900; letter-spacing: 2px; padding: 3px 8px; border-radius: 0; margin-bottom: 4px; border: 1px solid rgba(255,255,255,0.25); }
.tier.t0 { background: #2f6b2a; color: #d8ffcc; }
.tier.t1 { background: #9a3a12; color: #ffe0c0; }
.tier.t2 { background: #4a1f8a; color: #ead8ff; }
.map h4 { font-family: 'Rubik'; font-weight: 900; font-size: 16px; margin: 30px 0 2px; color: #fff4d8; text-shadow: 0 2px 6px #000; }
.map p { font-size: 13px; color: #e6d6b4; line-height: 1.2; margin-bottom: 8px; text-shadow: 0 1px 3px #000; }
.map .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.map .stats div { background: rgba(0,0,0,0.55); border: 1px solid rgba(232,181,74,0.25); border-radius: 0; padding: 4px 6px; }
.map .stats small { display: block; font-family: 'Rubik'; font-size: 8px; letter-spacing: 1px; color: var(--dim); font-weight: 700; }
.map .stats b { font-family: 'Rubik'; font-weight: 900; font-size: 11px; color: var(--gold2); }
.map .lock { position: absolute; right: 10px; top: 10px; font-family: 'Rubik'; font-weight: 900; font-size: 10px; color: #ffb0a0; background: rgba(80,0,0,0.7); padding: 3px 7px; border-radius: 0; z-index: 2; }

#codex { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mob { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.35); border: 1px solid rgba(232,181,74,0.15); border-radius: 0; padding: 3px 6px; font-size: 12px; font-weight: 800; line-height: 1.1; }
.mob img { width: 42px; height: 42px; flex: none; }
.mob small { display: block; font-size: 9px; color: var(--dim); font-weight: 700; margin-top: 2px; }
.mob .air { color: #9fd8ff; }

.shop { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 0; background: radial-gradient(circle at 25% 50%, rgba(255,200,80,0.22), transparent 60%), rgba(0,0,0,0.35); border: 1px solid var(--gold3); }
#shop-chest { width: 92px; flex: none; filter: drop-shadow(0 0 10px rgba(255,200,80,0.45)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
.shop-info b { font-family: 'Rubik'; font-weight: 900; font-size: 15px; display: block; color: var(--gold2); }
.shop-info span { font-size: 12px; color: var(--dim); }
.buy-row { display: flex; gap: 6px; margin-top: 8px; }
.buy-row button { flex: 1; padding: 7px 6px; border-radius: 0; font-size: 11px; font-weight: 900; background: linear-gradient(180deg, #d63a30, #8a1410); border: 1px solid #4a0806; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,0,0.5); }
.buy-row button:not(:first-child) { background: linear-gradient(180deg, #ffe9a8, #e8b54a 45%, #9a6a1c); color: #2a1604; border-color: #5a3a0a; }
.buy-row em { display: block; font-style: normal; font-size: 10px; font-family: 'Rubik'; font-weight: 800; opacity: 0.9; }
#rates { display: flex; gap: 3px; margin: 10px 0 4px; }
#rates div { flex: 1; text-align: center; border-radius: 0; padding: 4px 0; font-family: 'Rubik'; font-size: 9px; font-weight: 700; background: rgba(0,0,0,0.4); border-bottom: 2px solid; }
#rates b { display: block; font-size: 11px; font-weight: 900; }

.tw-head { margin-top: 12px; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tabs button { flex: 1; padding: 6px; font-size: 10px; font-weight: 700; border-radius: 0; background: rgba(0,0,0,0.35); border: 1px solid rgba(232,181,74,0.2); color: var(--dim); }
.tabs button.on { border-color: var(--gold); color: var(--gold2); background: rgba(232,181,74,0.12); }
#placed-n { color: var(--gold2); margin-left: 6px; }
.tw { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 0; margin-bottom: 5px; background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2)); border: 1px solid rgba(232,181,74,0.12); cursor: pointer; position: relative; border-left: 3px solid #777; }
.tw.r0 { border-left-color: #a9b8c9; } .tw.r1 { border-left-color: #38a3ff; } .tw.r2 { border-left-color: #b45cff; }
.tw.r3 { border-left-color: #ffb020; background: linear-gradient(90deg, rgba(255,176,32,0.14), rgba(0,0,0,0.2)); }
.tw.r4 { border-left-color: #ff3d7f; background: linear-gradient(90deg, rgba(255,61,127,0.18), rgba(0,0,0,0.2)); }
.tw:hover { background: rgba(255,220,140,0.08); }
.tw.sel { border-color: var(--gold); box-shadow: 0 0 12px rgba(232,181,74,0.3); }
.tw.mergeable { border-color: #ffb020; border-style: dashed; }
.tw img { width: 50px; height: 50px; flex: none; }
.tw .nm { flex: 1; min-width: 0; }
.tw .nm b { font-family: 'Rubik'; font-weight: 900; font-size: 13px; display: block; }
.tw .nm small { font-family: 'Rubik'; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.tw .pw { text-align: right; font-family: 'Rubik'; font-weight: 900; font-size: 15px; color: var(--gold2); }
.tw .pw small { display: block; font-size: 8px; color: var(--dim); letter-spacing: 1px; }
.tw .tag { position: absolute; right: 6px; top: 3px; font-family: 'Rubik'; font-size: 7px; font-weight: 900; background: #2f6b2a; color: #d8ffcc; padding: 1px 4px; border-radius: 0; }
.stars { color: #ffd24a; letter-spacing: -1px; font-size: 11px; text-shadow: 0 0 4px #ff9a00; }
.empty { color: var(--dim); text-align: center; padding: 20px 0; font-size: 15px; }

#selbar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; border-radius: 0; padding: 8px 14px; max-width: calc(100vw - 32px); background: linear-gradient(180deg, rgba(44,29,18,0.97), rgba(22,14,8,0.97)); border: 2px solid var(--gold3); box-shadow: inset 0 0 0 1px rgba(255,220,140,0.12), 0 10px 30px rgba(0,0,0,0.7); }
#selbar img { width: 64px; height: 64px; }
#selbar .info b { font-family: 'Rubik'; font-weight: 900; font-size: 15px; }
#selbar .info p { font-size: 13px; color: var(--dim); max-width: 260px; }
#selbar .info .st { font-size: 13px; margin-top: 2px; }
#selbar .acts { display: flex; gap: 6px; }
#selbar .acts button { padding: 9px 12px; border-radius: 0; font-size: 11px; font-weight: 900; background: linear-gradient(180deg, #3a2616, #1e130a); border: 1px solid var(--gold3); color: var(--gold2); }
#selbar .acts button.pri { background: linear-gradient(180deg, #ffe9a8, #e8b54a 45%, #9a6a1c); color: #2a1604; border-color: #5a3a0a; }
#selbar .acts button.warn { background: linear-gradient(180deg, #d63a30, #8a1410); color: #fff; border-color: #4a0806; }
#hint { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(20,12,4,0.9); border: 1px solid var(--gold); color: var(--gold2); padding: 8px 16px; border-radius: 0; font-weight: 800; font-size: 14px; }

#toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all .25s; z-index: 30; background: linear-gradient(180deg, #2c1d12, #160e08); border: 2px solid var(--gold); color: var(--gold2); padding: 10px 18px; border-radius: 0; font-weight: 800; font-size: 15px; pointer-events: none; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { border-color: var(--bad); color: #ffcaca; }

.overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(30,15,5,0.35), rgba(5,2,0,0.85)); padding: 16px; }
#login { background: radial-gradient(circle at center, rgba(10,5,0,0.1), rgba(5,2,0,0.75)); }
.login-card { width: 460px; max-width: 100%; text-align: center; padding: 30px 28px; border-radius: 0; background: linear-gradient(180deg, rgba(44,29,18,0.93), rgba(18,11,6,0.95)); border: 2px solid var(--gold3); box-shadow: inset 0 0 0 1px rgba(255,220,140,0.15), 0 0 80px rgba(0,0,0,0.8), 0 0 40px rgba(232,181,74,0.15); }
.big-logo { display: flex; align-items: center; justify-content: center; gap: 14px; }
.big-logo b { display: block; font-family: 'Rubik'; font-size: 46px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff6d0, var(--gold) 55%, var(--gold3)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #2a1604); }
.big-logo i { display: block; font-style: normal; font-family: 'Rubik'; font-weight: 900; font-size: 20px; color: var(--txt); text-align: left; letter-spacing: 15px; margin-top: 4px; }
.tag { color: var(--dim); margin: 14px 0 18px; font-size: 17px; font-weight: 700; font-style: italic; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
.feat div { background: rgba(0,0,0,0.4); border: 1px solid rgba(232,181,74,0.25); border-radius: 0; padding: 8px 2px; }
.feat b { font-family: 'Rubik'; font-weight: 900; font-size: 20px; color: var(--gold2); display: block; }
.feat span { font-family: 'Rubik'; font-size: 8px; letter-spacing: 1px; color: var(--dim); font-weight: 700; }
#l-name, #l-nick { width: 100%; padding: 14px; border-radius: 0; border: 1px solid var(--gold3); background: rgba(0,0,0,0.5); color: var(--gold2); font-size: 19px; font-family: 'Rubik'; font-weight: 700; text-align: center; outline: none; }
#l-name:focus, #l-nick:focus { border-color: var(--gold); box-shadow: 0 0 12px rgba(232,181,74,0.3); }
#l-go, #l-nickgo, #l-devgo { width: 100%; margin-top: 10px; padding: 15px; border-radius: 0; font-size: 16px; font-weight: 900; letter-spacing: 2px; background: linear-gradient(180deg, #e04a3a, #8a1410); border: 1px solid #4a0806; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 20px rgba(160,20,10,0.5); }
.err { display: block; color: var(--bad); margin-top: 8px; min-height: 16px; font-size: 14px; }

.box-stage { text-align: center; width: 100%; max-width: 920px; }
.chest.big { position: relative; width: 300px; height: 250px; margin: 0 auto; }
.chest.big img { width: 100%; filter: drop-shadow(0 0 30px rgba(255,200,80,0.5)); }
.chest .burst { position: absolute; inset: -60px; border-radius: 0; background: radial-gradient(circle, var(--c), transparent 60%); opacity: 0.35; animation: pulse 0.5s ease-in-out infinite alternate; z-index: -1; }
@keyframes pulse { to { opacity: 0.7; transform: scale(1.15); } }
.chest.shake img { animation: shake 0.11s linear infinite; }
@keyframes shake { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-5px,2px) rotate(-3deg); } 50% { transform: translate(4px,-3px) rotate(2deg); } 75% { transform: translate(-2px,-3px) rotate(-1deg); } }
.chest.boom { animation: boom 0.38s ease-in forwards; }
@keyframes boom { to { transform: scale(2.2); opacity: 0; filter: brightness(5); } }
#reveal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.card { width: 160px; padding: 12px 10px; border-radius: 0; background: linear-gradient(180deg, #2c1d12, #120a05); border: 2px solid var(--c); animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; position: relative; overflow: hidden; box-shadow: 0 0 18px var(--c); }
.card::before { content: ''; position: absolute; inset: -50%; background: conic-gradient(transparent, var(--c), transparent 30%); animation: rot 3s linear infinite; opacity: 0.3; }
.card.r3, .card.r4 { box-shadow: 0 0 40px var(--c); }
.card > * { position: relative; }
.card img { width: 120px; height: 120px; }
.card b { display: block; font-family: 'Rubik'; font-weight: 900; font-size: 14px; }
.card .r { font-family: 'Rubik'; font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.card .p { font-family: 'Rubik'; font-weight: 900; font-size: 20px; margin-top: 4px; color: var(--gold2); }
.card .p small { font-size: 10px; }
@keyframes pop { from { transform: scale(0.2) rotate(-12deg); opacity: 0; } }
@keyframes rot { to { transform: rotate(360deg); } }
#box-ok { margin-top: 22px; padding: 14px 40px; border-radius: 0; font-weight: 900; letter-spacing: 2px; background: linear-gradient(180deg, #ffe9a8, #e8b54a 45%, #9a6a1c); color: #2a1604; border: 1px solid #5a3a0a; }

.modal { width: 460px; max-width: 100%; max-height: 80vh; overflow: auto; background: linear-gradient(180deg, #2c1d12, #120a05); border: 2px solid var(--gold3); border-radius: 0; padding: 22px; }
.modal h2 { font-family: 'Rubik'; font-size: 22px; margin-bottom: 14px; color: var(--gold2); text-align: center; }
.trow { display: flex; gap: 10px; padding: 8px 10px; border-radius: 0; background: rgba(0,0,0,0.35); margin-bottom: 4px; font-weight: 800; }
.trow .n { width: 26px; color: var(--gold); font-family: 'Rubik'; }
.trow .nm { flex: 1; }
.trow .v { font-family: 'Rubik'; font-size: 13px; color: var(--gold2); }
.modal .ghost { margin-top: 12px; width: 100%; }

#mtabs { display: none; }
@media (max-width: 1100px) {
  .chip { min-width: 0; padding: 5px 8px; }
  .chip.day { display: none; }
  #b-top { display: none; }
  #left { width: 260px; }
  #right { width: 290px; }
}
@media (max-width: 860px) {
  #top { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .logo b { font-size: 16px; }
  .chips { order: 3; flex: 0 0 100%; width: 100%; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 6px; }
  .chip { gap: 5px; min-width: 0; overflow: hidden; }
  .chip > div { min-width: 0; }
  .chip .ic { display: none; }
  .chip b { font-size: 13px; }
  .chip.day { display: none; }
  #b-claim { padding: 6px 8px; font-size: 10px; }
  .who { display: none; }
  #b-top { display: inline-block; padding: 6px 8px; font-size: 9px; }
  .panel { top: auto; bottom: 64px; left: 8px !important; right: 8px !important; width: auto !important; max-height: 58vh; display: none; }
  .panel.mopen { display: block; }
  #mtabs:not(.hidden) { display: flex; position: fixed; bottom: 8px; left: 8px; right: 8px; z-index: 7; gap: 6px; }
  #mtabs button { flex: 1; padding: 12px; border-radius: 0; font-size: 12px; font-weight: 900; background: linear-gradient(180deg, #3a2616, #1e130a); border: 1px solid var(--gold3); color: var(--gold2); }
  #mtabs button.on { border-color: var(--gold); background: linear-gradient(180deg, #5a3a1a, #2a1a0a); }
  #selbar { bottom: 66px; flex-wrap: wrap; justify-content: center; }
  #hint { top: 112px; font-size: 12px; }
  .feat b { font-size: 15px; }
  .big-logo b { font-size: 32px; }
  .big-logo i { letter-spacing: 9px; font-size: 15px; }
  .card { width: 130px; }
  .card img { width: 96px; height: 96px; }
}

img, .map .bgart, #shop-chest { image-rendering: pixelated; }
.chip small, .wave small, .map .stats small, .feat span, .tw .pw small, #rates div, .tw .nm small, .tw .tag, .map .tier { font-family: 'Rubik', sans-serif; letter-spacing: 0; }
.panel, #top, #selbar, .login-card, .modal, #toast, .chip, .map, .tw, .shop, .ghost, .buy-row button, #b-claim, #l-go, #box-ok, #selbar .acts button, .tabs button, #mtabs button, .card {
  box-shadow: 0 0 0 2px #1a0e06, 4px 4px 0 rgba(0,0,0,0.45);
}
.panel, .login-card, .modal, #selbar { border-width: 3px; border-style: solid; border-color: #c08a2c #5a3a10 #5a3a10 #c08a2c; }
.chip b, .tw .pw, .map .stats b, .wave b, .feat b { letter-spacing: 0; }
.big-logo b { font-size: 54px; filter: drop-shadow(3px 3px 0 #2a1604); }
.logo b { font-size: 22px; }
.chest.big img { image-rendering: pixelated; }
.card img { image-rendering: pixelated; }

#b-snd.off { opacity: 0.55; }
.chip.pend .ic { transition: transform 0.08s; }
#h-pend { transition: color 0.1s; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { #b-snd { padding: 4px 6px; font-size: 10px; } }

.chip.vault .ic { background: radial-gradient(circle at 35% 30%, #fff6c0, #6ad06a 50%, #1a5a1a); clip-path: polygon(10% 30%, 50% 0, 90% 30%, 90% 100%, 10% 100%); }
.chip.wear .ic { background: linear-gradient(135deg, #e0e4ea, #6a7484); clip-path: polygon(50% 0, 100% 18%, 92% 70%, 50% 100%, 8% 70%, 0 18%); }
.chip em#h-locked { display: block; margin: 0; font-size: 9px; color: #b9a6ff; }
.chip .mini { margin-left: 6px; padding: 6px 8px; font-size: 10px; font-weight: 900; background: rgba(0,0,0,0.45); color: var(--gold2); border: 1px solid var(--gold3); cursor: pointer; }
.chip .mini:hover { filter: brightness(1.25); }
.chip.wear.low b { color: #ff7a5a; }
.chip.wear.low .mini { background: linear-gradient(180deg, #d63a30, #8a1410); color: #fff; animation: blink 0.8s steps(2) infinite; }
.chip .bag { display: block; height: 3px; background: rgba(255,255,255,0.12); margin-top: 2px; position: relative; overflow: hidden; }
.chip .bag i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold2); }
.chip.pend.full .bag i { background: #ff5a3a; }
.chip.pend.full small { color: #ff7a5a; animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.45; } }
.pay { display: flex; gap: 3px; margin-top: 6px; }
.pay button { flex: 1; padding: 4px 2px; font-size: 9px; font-family: 'Rubik', sans-serif; background: rgba(0,0,0,0.4); color: var(--dim); border: 1px solid rgba(232,181,74,0.2); cursor: pointer; line-height: 1.1; }
.pay button small { display: block; font-size: 8px; opacity: 0.8; }
.pay button.on { color: var(--gold2); border-color: var(--gold2); background: rgba(232,181,74,0.12); }
#pity { font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); text-align: center; margin-bottom: 6px; }
#pity b { color: var(--gold2); }
.tw .bars { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
.tw .bars i { display: block; height: 3px; background: rgba(255,255,255,0.1); position: relative; }
.tw .bars i u { position: absolute; left: 0; top: 0; bottom: 0; }
.tw .bars .am u { background: #ffc72a; }
.tw .bars .du u { background: #6ad0ff; }
.tw .bars .du.low u { background: #ff5a3a; }
.tw .tag.st { left: auto; right: 6px; top: auto; bottom: 3px; }
.tw .tag.building { background: #8a6a1a; color: #ffe9a8; }
.tw .tag.broken { background: #8a1a14; color: #ffd0c8; }
.tw .tag.empty { background: #3a3a44; color: #aab; }
.tw .tag.free { background: #4a3a8a; color: #e0d8ff; }
.tw.dead { opacity: 0.55; }
@media (max-width: 1100px) { .chip.wear small, .chip.vault small { font-size: 8px; } .chip .mini { padding: 5px 5px; font-size: 9px; } }
@media (max-width: 860px) { .chip.vault .mini { display: none; } }

#wl { margin-bottom: 10px; padding: 8px 10px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,90,58,0.35); }
#wl .wn { font-family: 'Rubik'; font-weight: 900; font-size: 13px; color: #ff9a7a; display: flex; justify-content: space-between; }
#wl .wn small { font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); }
#wl .hp { height: 8px; background: #3a0e0a; margin: 6px 0; border: 1px solid #1a0604; position: relative; }
#wl .hp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #ff6a4a, #b0201a); }
#wl .row { display: flex; align-items: center; justify-content: space-between; font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); }
#wl .row b { color: var(--gold2); }
#wl button { padding: 5px 9px; font-size: 10px; font-weight: 900; }
#wl button:disabled { opacity: 0.4; filter: grayscale(1); }
.modal.wide { width: 640px; }
#rel-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
#rel-tabs button { flex: 1; }
#rel-body { min-height: 200px; }
.rl-note { font-family: 'Rubik', sans-serif; font-size: 10px; color: var(--dim); margin-bottom: 8px; text-align: center; }
.rl-note b { color: var(--gold2); }
.rl-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 4px; background: rgba(0,0,0,0.35); border-left: 3px solid var(--c, #888); }
.rl-row .nm { flex: 1; min-width: 0; font-family: 'Rubik'; font-weight: 800; font-size: 13px; }
.rl-row .nm small { display: block; font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); font-weight: 400; }
.rl-row .ct { font-family: 'Rubik'; font-weight: 900; color: var(--gold2); min-width: 30px; text-align: right; }
.rl-row button { padding: 5px 8px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.rl-row button:disabled { opacity: 0.35; }
.gem { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; font-family: 'Rubik'; font-weight: 900; font-size: 11px; color: #1a0a04; background: var(--c); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.cc { background: rgba(0,0,0,0.35); padding: 6px; text-align: center; border: 1px solid rgba(232,181,74,0.15); position: relative; }
.cc.none { opacity: 0.4; filter: grayscale(1); }
.cc img { width: 45px; height: 45px; image-rendering: pixelated; }
.cc b { display: block; font-family: 'Rubik'; font-size: 11px; }
.cc small { display: block; font-family: 'Rubik', sans-serif; font-size: 8px; color: var(--dim); }
.cc .lv { position: absolute; top: 3px; right: 4px; font-family: 'Rubik'; font-weight: 900; font-size: 11px; color: var(--gold2); }
.cc .pg { height: 3px; background: rgba(255,255,255,0.1); margin-top: 3px; } .cc .pg i { display: block; height: 100%; background: var(--gold2); }
.rl-h { font-family: 'Rubik'; font-weight: 900; color: var(--gold2); margin: 10px 0 6px; font-size: 13px; letter-spacing: 1px; }
.slots { display: flex; gap: 4px; margin-top: 4px; }
.slots button { padding: 3px 6px; font-size: 9px; font-family: 'Rubik', sans-serif; background: rgba(0,0,0,0.45); color: var(--dim); border: 1px dashed rgba(232,181,74,0.3); cursor: pointer; }
.slots button.eq { color: #1a0a04; background: var(--c); border: 1px solid #1a0a04; font-weight: 700; }
.card .gem { margin: 18px auto 8px; width: 48px; height: 48px; font-size: 16px; }
.rl-row button:not(.btn-gold):not(.warn) { background: rgba(0,0,0,0.5); color: var(--gold2); border: 1px solid var(--gold3); cursor: pointer; }
.rl-row button.warn { background: linear-gradient(180deg, #d63a30, #8a1410); color: #fff; border: 1px solid #4a0806; cursor: pointer; }
.rl-row button.btn-gold { cursor: pointer; }

.tw .tag.sworn { background: linear-gradient(90deg, #8a5a10, #5a2a8a); color: #ffe9a8; }
.oath-ev { text-align: center; padding: 8px; margin-bottom: 8px; font-family: 'Rubik'; font-weight: 900; color: #ffe58a; background: linear-gradient(90deg, rgba(138,90,16,0.5), rgba(90,42,138,0.5)); border: 1px solid #ffb020; animation: blink 1.2s steps(2) infinite; }
.pbar { height: 8px; background: rgba(255,255,255,0.08); margin: 4px 0; position: relative; } .pbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8a5a10, #ffd24a); }
.odds { display: flex; gap: 3px; margin: 4px 0 8px; } .odds div { flex: 1; text-align: center; font-family: 'Rubik', sans-serif; font-size: 8px; padding: 3px 0; background: rgba(0,0,0,0.4); border-bottom: 2px solid; }
.odds b { display: block; font-size: 10px; }
.map .lock small { display: block; }

/* ===== readability pass ===== */
:root { --lw: clamp(290px, 20vw, 370px); --rw: clamp(320px, 22vw, 410px); --th: 78px; }
.chip small, .wave small, .map .stats small, .feat span, .tw .pw small, #rates div, .tw .nm small, .tw .tag, .map .tier,
.pay button, #pity, #wl .row, #wl .wn small, .rl-note, .rl-row .nm small, .cc small, .odds div, .slots button, .chip em#h-locked {
  font-family: 'Rubik', sans-serif; font-weight: 600; letter-spacing: 0.3px;
}
#top { height: var(--th); gap: 14px; padding: 0 14px; }
.logo b { font-size: 24px; } .logo i { font-size: 12px; }
.chips { gap: 8px; }
.chip { padding: 7px 12px; gap: 9px; min-width: 0; }
.chip small { font-size: 12px; letter-spacing: 0.5px; color: #d8c49a; }
.chip b { font-size: 20px; }
.chip em { font-size: 13px; }
.chip em#h-locked { font-size: 11px; }
.chip .ic { width: 26px; height: 26px; }
#b-claim { padding: 9px 14px; font-size: 14px; }
.chip .mini { padding: 8px 10px; font-size: 12px; }
.chip .bag { height: 4px; }
.wave small { font-size: 12px; } .wave b { font-size: 26px; }
.ghost { padding: 10px 14px; font-size: 13px; }
.who { font-size: 14px; padding: 9px 12px; }

.panel { top: calc(var(--th) + 10px); padding: 16px; }
#left { width: var(--lw); }
#right { width: var(--rw); }
.panel h3 { font-size: 15px; letter-spacing: 2px; margin: 8px 0 12px; }

#wl { padding: 10px 12px; }
#wl .wn { font-size: 16px; } #wl .wn small { font-size: 12px; }
#wl .hp { height: 12px; }
#wl .row { font-size: 12px; } #wl button { padding: 7px 12px; font-size: 13px; }

.map { min-height: 170px; padding: 14px; }
.map .tier { font-size: 12px; padding: 4px 9px; }
.map h4 { font-size: 19px; margin-top: 34px; }
.map p { font-size: 14px; line-height: 1.3; }
.map .stats { gap: 6px; }
.map .stats div { padding: 6px 8px; }
.map .stats small { font-size: 11px; }
.map .stats b { font-size: 15px; }
.map .lock { font-size: 13px; padding: 5px 9px; }
.map .lock small { font-size: 11px; }

#codex { grid-template-columns: 1fr; }
.mob { font-size: 14px; padding: 5px 8px; gap: 10px; }
.mob img { width: 48px; height: 48px; }
.mob small { font-size: 12px; }

.shop { padding: 12px; gap: 12px; }
#shop-chest { width: 100px; }
.shop-info b { font-size: 18px; }
.shop-info span { font-size: 14px; }
.pay button { font-size: 12px; padding: 7px 4px; }
.pay button small { font-size: 11px; }
.buy-row button { font-size: 14px; padding: 9px 6px; }
.buy-row em { font-size: 13px; }
#rates { gap: 4px; }
#rates div { font-size: 11px; padding: 6px 0; }
#rates b { font-size: 15px; }
#pity { font-size: 12px; line-height: 1.5; margin: 6px 0 10px; }

.tabs button { font-size: 13px; padding: 8px 6px; }
#placed-n { font-size: 15px; }
.tw { padding: 7px 10px; gap: 12px; margin-bottom: 6px; }
.tw img { width: 58px; height: 58px; }
.tw .nm b { font-size: 16px; }
.tw .nm small { font-size: 13px; letter-spacing: 0.5px; }
.stars { font-size: 14px; }
.tw .pw { font-size: 20px; }
.tw .pw small { font-size: 11px; }
.tw .tag { font-size: 10px; padding: 2px 6px; top: 4px; }
.tw .tag.st { bottom: 4px; }
.tw .bars { gap: 3px; margin-top: 5px; }
.tw .bars i { height: 5px; }

#selbar { padding: 10px 16px; gap: 14px; bottom: 20px; }
#selbar img { width: 72px; height: 72px; }
#selbar .info b { font-size: 18px; }
#selbar .info p { font-size: 14px; max-width: 340px; }
#selbar .info .st { font-size: 14px; line-height: 1.4; }
#selbar .acts button { font-size: 13px; padding: 11px 14px; }
.slots button { font-size: 12px; padding: 5px 8px; }
#hint { top: calc(var(--th) + 14px); font-size: 16px; padding: 10px 18px; }
#toast { font-size: 17px; padding: 12px 20px; bottom: 130px; }

.modal { padding: 26px; }
.modal h2 { font-size: 26px; }
.modal.wide { width: 760px; }
#rel-tabs button { font-size: 14px; padding: 10px; }
.rl-note { font-size: 13px; line-height: 1.5; }
.rl-h { font-size: 16px; }
.rl-row { padding: 9px 12px; gap: 12px; }
.rl-row .nm { font-size: 16px; }
.rl-row .nm small { font-size: 12px; margin-top: 2px; }
.rl-row .ct { font-size: 18px; }
.rl-row button { font-size: 13px; padding: 8px 12px; }
.gem { width: 34px; height: 34px; font-size: 13px; }
.cgrid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.cc { padding: 8px; }
.cc img { width: 56px; height: 56px; }
.cc b { font-size: 14px; } .cc small { font-size: 11px; line-height: 1.35; } .cc .lv { font-size: 13px; }
.cc .pg { height: 4px; }
.odds div { font-size: 11px; padding: 5px 0; } .odds b { font-size: 14px; }
.oath-ev { font-size: 16px; padding: 10px; }
.pbar { height: 10px; }
.trow { font-size: 15px; } .trow .v { font-size: 15px; }
.card { width: 180px; } .card b { font-size: 16px; } .card .r { font-size: 13px; letter-spacing: 1px; }

@media (max-width: 1720px) {
  .right .who { display: none; }
  .chip .ic { width: 20px; height: 20px; }
}
@media (max-width: 1500px) {
  .chip .ic { display: none; }
  .chip { padding: 6px 9px; }
  .chip b { font-size: 17px; }
  .chip small { font-size: 11px; }
  #b-top { display: none; }
}
@media (max-width: 1250px) {
  :root { --lw: 270px; --rw: 300px; --th: 70px; }
  .logo div { display: none; }
  .chip.day { display: none; }
  .chip b { font-size: 15px; }
  .chip .mini, #b-claim { padding: 7px 8px; font-size: 11px; }
  .tw img { width: 48px; height: 48px; } .tw .nm b { font-size: 14px; }
}
@media (max-width: 860px) {
  :root { --th: auto; }
  #top { height: auto; }
  .chips { grid-template-columns: 1fr 1fr 1fr; }
  .chip.wear, .chip.vault { display: flex; }
  .chip small { font-size: 10px; } .chip b { font-size: 14px; }
  .panel { top: auto; }
  #codex { grid-template-columns: 1fr 1fr; }
  .modal.wide { width: 100%; }
  #selbar .info p { display: none; }
}
.right { gap: 8px; }
.right .ghost, .right .who { white-space: nowrap; }
.chip > div { white-space: nowrap; }
#selbar { left: calc(var(--lw) + 12px + (100vw - var(--lw) - var(--rw) - 24px) / 2); width: min(820px, calc(100vw - var(--lw) - var(--rw) - 48px)); max-width: none; }
#selbar .info { flex: 1; min-width: 0; }
#selbar .info p { max-width: none; }
#selbar .acts { flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.slots { flex-wrap: wrap; }
.slots button { white-space: nowrap; }
@media (max-width: 860px) { #selbar { left: 50%; width: calc(100vw - 16px); } #selbar .acts { max-width: none; } }
@media (max-width: 860px) { .chips { grid-auto-flow: dense; } .chip.pend { grid-column: span 2; } }
#reveal.many { gap: 8px; max-width: 760px; margin: 0 auto; }
#reveal.many .card { width: 132px; padding: 8px 6px; }
#reveal.many .card img { width: 64px; height: 64px; }
#reveal.many .card b { font-size: 13px; }
#reveal.many .card .r { font-size: 11px; letter-spacing: 1px; }
#reveal.many .card .p { font-size: 15px; margin-top: 2px; }
#reveal.many + #box-ok { margin-top: 14px; }
.rsvg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ic { position: relative; flex: none; display: inline-block; line-height: 0; }
.ic .rb { position: absolute; left: -4px; bottom: -3px; width: 22px; height: 22px; padding: 2px; background: #140c06; border: 2px solid var(--rc); box-shadow: 0 0 8px var(--rc); }
#selbar .ic .rb { width: 28px; height: 28px; }
.role { display: inline-flex; align-items: center; gap: 3px; margin: 1px 6px 1px 0; padding: 1px 5px 1px 2px; background: color-mix(in srgb, var(--rc) 22%, #140c06); border: 1px solid var(--rc); color: var(--rc); vertical-align: middle; line-height: 1; }
.role .rsvg { width: 13px; height: 13px; }
.role i { font-style: normal; font-family: 'Rubik'; font-weight: 900; font-size: 10px; letter-spacing: 1px; }
.card .role { margin: 4px auto 2px; }
#selbar .info .role { margin-bottom: 3px; }
.tw .pw { padding-top: 22px; min-width: 52px; }
.tw .tag { top: 2px; }

/* ===== clean layout v2 ===== */
:root { --th: 64px; }
#top { height: var(--th); gap: 12px; }
.chips { gap: 6px; }
.chip { padding: 5px 10px; gap: 8px; border-color: rgba(232,181,74,0.22); background: rgba(0,0,0,0.32); }
.chip small { font-size: 10px; color: #b9a37c; letter-spacing: 0.8px; }
.chip b { font-size: 17px; line-height: 1.05; }
.chip .ic { width: 18px; height: 18px; }
.chip .mini, #b-claim { padding: 6px 9px; font-size: 11px; }
.chip.pend { border-color: rgba(255,226,140,0.55); background: rgba(80,56,10,0.35); }
.right .ghost { padding: 7px 10px; font-size: 11px; }
.wave b { font-size: 22px; } .wave small { font-size: 10px; }

.panel { padding: 12px; }
.panel h3 { font-size: 13px; margin: 4px 0 8px; }

.map { min-height: 0; padding: 9px 11px; margin-bottom: 7px; border-width: 1px; border-color: #4a3418; }
.map::after { background: linear-gradient(90deg, rgba(10,6,2,0.92), rgba(10,6,2,0.72)); }
.map .bgart { opacity: 0.55; }
.map.on { border-color: var(--gold); }
.map.on::after { background: linear-gradient(180deg, rgba(10,6,2,0.55), rgba(10,6,2,0.9)); }
.map.on .bgart { opacity: 1; }
.map:hover { transform: none; border-color: var(--gold3); }
.map .mrow { display: flex; align-items: center; gap: 8px; }
.map .tier { margin: 0; font-size: 10px; padding: 2px 6px; flex: none; }
.map h4 { margin: 0; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map .lock { position: static; font-size: 11px; padding: 2px 6px; flex: none; }
.map .here { font-family: 'Rubik'; font-weight: 900; font-size: 10px; color: #1a1004; background: var(--gold2); padding: 2px 6px; flex: none; }
.map p { font-size: 12.5px; margin: 7px 0 0; line-height: 1.3; }
.map .mstats { display: flex; gap: 12px; margin-top: 6px; font-family: 'Rubik'; font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.map .mstats b { color: var(--gold2); font-weight: 900; }

.fold { margin: 8px 0 4px; }
.fold summary { cursor: pointer; list-style: none; font-family: 'Rubik'; font-weight: 900; font-size: 12px; letter-spacing: 2px; color: var(--gold); padding: 6px 8px; background: rgba(0,0,0,0.28); border: 1px solid rgba(232,181,74,0.18); display: flex; justify-content: space-between; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; color: var(--gold2); }
.fold[open] summary::after { content: '−'; }
.fold[open] summary { margin-bottom: 8px; }
.odds-fold #rates { margin: 0 0 6px; }

.shop { padding: 10px; gap: 10px; }
#shop-chest { width: 72px; }
.shop-info b { font-size: 16px; }
.shop-info span { font-size: 12px; }
.pay button { font-size: 11px; padding: 5px 3px; }
.pay button small { font-size: 10px; }
.buy-row button { font-size: 12px; padding: 7px 4px; }
.buy-row em { font-size: 11px; }

.tw-head { margin-top: 10px; }
.tw { padding: 6px 8px; gap: 10px; margin-bottom: 5px; }
.tw img { width: 46px; height: 46px; }
.tw .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw .nm small { font-size: 11px; margin-left: 2px; }
.tw .nm .role { margin: 2px 4px 0 0; }
.tw .stars { font-size: 11px; }
.tw .pw { font-size: 17px; padding-top: 16px; min-width: 44px; }
.tw .pw small { font-size: 9px; }
.tw .tag { font-size: 8px; padding: 1px 5px; }
.tw .bars i { height: 3px; }

#selbar { padding: 8px 12px; gap: 12px; }
#selbar img { width: 58px; height: 58px; }
#selbar .info b { font-size: 16px; }
#selbar .info p { font-size: 12.5px; color: #c8b48c; }
#selbar .info .st { font-size: 12.5px; }
#selbar .acts button { font-size: 12px; padding: 9px 12px; }

@media (max-width: 1500px) { .chip.day { display: none; } }
@media (max-width: 860px) {
  #top { padding: 6px 8px; gap: 6px; }
  .logo { display: none; }
  .right { margin-left: auto; }
  .chips { grid-template-columns: 1fr 1fr; gap: 4px; }
  .chip.pend { grid-column: auto; }
  .chip.pow, .chip.day { display: none; }
  .chip { padding: 4px 7px; }
  .chip small { font-size: 9px; } .chip b { font-size: 13px; }
  .chip .bag { display: none; }
  .chip .mini, #b-claim { padding: 5px 7px; font-size: 10px; margin-left: auto; }
  .chip.vault .mini { display: inline-block; }
  .wave { display: flex; align-items: baseline; gap: 4px; }
  .wave b { font-size: 18px; }
  .right .ghost { padding: 6px 8px; font-size: 10px; }
  #hint { top: 104px; }
}

/* ===== readable numbers ===== */
.chip b, .wave b, .tw .pw, .map .mstats b, .map .stats b, .card .p, .buy-row em, #placed-n,
#selbar .info .st b, #wl .row b, .rl-row .ct, .trow .v, .cc .lv, #rates b, #pity b, .feat b, .odds b, .chip em, #h-locked {
  font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.chip b { font-size: 18px; }
.chip em { font-size: 12px; font-weight: 600; }
.chip small { font-family: 'Rubik', system-ui, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #c2ab82; }
.tw .pw { font-size: 18px; }
.tw .pw small { font-family: 'Rubik', system-ui, sans-serif; font-weight: 600; }
.wave b { font-size: 22px; }
#selbar .info .st { font-family: 'Rubik', system-ui, sans-serif; font-weight: 500; }
@media (max-width: 860px) { :root { --th: auto; } #top { height: auto; } }

/* withdraw modal */
.modal.wdm { width: 440px; }
.wd-bal { text-align: center; padding: 12px; margin-bottom: 14px; background: rgba(0,0,0,.35); border: 2px solid #5a3a10; }
.wd-bal small, .wd-side small, .wd-lb { display: block; font-family: 'Rubik', sans-serif; font-size: 11px; letter-spacing: 1.5px; color: #c9a46a; font-weight: 600; }
.wd-bal b { display: block; font-family: 'Rubik', sans-serif; font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 700; color: var(--gold2); margin-top: 2px; }
.wd-bal em { display: block; font-style: normal; font-family: 'Rubik', sans-serif; font-size: 12px; color: #8fd8ff; margin-top: 2px; }
.wd-lb { margin-bottom: 6px; }
.wd-lb span { color: #7d6a50; }
.wd-in { display: flex; gap: 6px; }
.wd-in input { flex: 1; min-width: 0; background: #0b0604; border: 2px solid #6b4a1a; color: #ffe9b0; font-family: 'Rubik', sans-serif; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; padding: 8px 10px; outline: none; }
.wd-in input:focus { border-color: var(--gold2); }
.wd-in button { padding: 0 14px; }
#wd-rng { width: 100%; margin: 12px 0 4px; accent-color: #e0a630; }
.wd-conv { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.wd-side { flex: 1; text-align: center; padding: 10px 6px; background: rgba(255,200,80,.07); border: 2px solid #6b4a1a; min-width: 0; }
.wd-side b { display: block; font-family: 'Rubik', sans-serif; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; color: var(--gold2); margin: 3px 0 1px; overflow: hidden; text-overflow: ellipsis; }
.wd-side em { font-style: normal; font-family: 'Rubik', sans-serif; font-size: 10px; letter-spacing: 1px; color: #9c8460; }
.wd-side.tok { background: rgba(90,200,255,.08); border-color: #2d6a8a; }
.wd-side.tok b { color: #8fe0ff; }
.wd-arrow { display: flex; flex-direction: column; align-items: center; color: #ffd24a; }
.wd-arrow span { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px; }
.wd-arrow u { display: block; width: 34px; height: 3px; background: #ffd24a; position: relative; margin-top: 4px; animation: wdpulse 1.2s ease-in-out infinite; }
.wd-arrow u::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid #ffd24a; border-right: 0; }
@keyframes wdpulse { 50% { transform: translateX(4px); } }
.wd-rows { background: rgba(0,0,0,.3); border: 2px solid #3d2a12; padding: 8px 12px; }
.wd-rows div { display: flex; justify-content: space-between; padding: 4px 0; font-family: 'Rubik', sans-serif; font-size: 13px; color: #c9b38a; }
.wd-rows b { font-variant-numeric: tabular-nums; color: #ffe9b0; font-weight: 600; }
.wd-rows i { font-style: normal; color: #7d6a50; }
.wd-rows .neg { color: #ff8a6a; }
.wd-rows .tot { border-top: 1px dashed #5a3a10; margin-top: 4px; padding-top: 8px; font-size: 15px; }
.wd-rows .tot b { color: #8fe0ff; font-size: 17px; font-weight: 700; }
#wd-note { min-height: 18px; margin: 10px 0 6px; text-align: center; font-family: 'Rubik', sans-serif; font-size: 12px; color: #c9a46a; }
#wd-note.bad { color: #ff7a5a; }
#wd-go { width: 100%; padding: 12px; font-size: 16px; }
#wd-go:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
#wd-done { text-align: center; padding: 10px 0; }
.wd-ok { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 36px; color: #1a0e04; background: #8fe0ff; border: 3px solid #e6f8ff; animation: wdpop .4s ease-out; }
@keyframes wdpop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } }
#wd-dtxt { font-family: 'Rubik', sans-serif; font-size: 14px; line-height: 1.6; color: #e8d6b0; }
#wd-dtxt b { color: #8fe0ff; }
.modal.wdm { max-height: 94vh; padding: 18px 22px; }
.modal.wdm h2 { margin-bottom: 10px; }
.wd-bal { padding: 8px; margin-bottom: 10px; }
.wd-bal b { font-size: 26px; }
.wd-in button { background: linear-gradient(180deg, #ffe9a8, #e8b54a 45%, #9a6a1c); color: #2a1604; border: 1px solid #5a3a0a; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; }
.wd-conv { margin: 8px 0; }
.wd-side { padding: 8px 4px; }
.wd-rows div { padding: 3px 0; }
#wd-note { margin: 8px 0 6px; }
.modal.wdm .ghost { margin-top: 8px; }

#h-risk { display: block; font-style: normal; font-family: 'Rubik', sans-serif; font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 600; color: #ffb35a; letter-spacing: .3px; white-space: nowrap; }
#h-risk.safe { color: #7dff9a; }
#h-risk.lost { color: #ff6a5a; }

.chip.pend { display: none !important; }
#toast { bottom: auto; top: 21%; }
[data-cls] { cursor: help; }
#rtip { position: fixed; z-index: 9999; max-width: 270px; padding: 9px 11px; background: #140c06f2; border: 2px solid var(--rc, #ffa424); box-shadow: 0 0 14px color-mix(in srgb, var(--rc, #ffa424) 45%, transparent), 0 6px 18px #000a; color: #f4e6cc; font-size: 12px; line-height: 1.35; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; left: -999px; top: -999px; }
#rtip.on { opacity: 1; transform: none; }
#rtip b { font-family: 'Rubik'; font-weight: 900; letter-spacing: 1px; font-size: 13px; margin-right: 6px; }
#rtip .cn { color: #cbb894; font-size: 11px; }
#rtip p { margin: 5px 0 4px; }
#rtip table { width: 100%; border-collapse: collapse; margin: 4px 0; font-size: 11px; }
#rtip th { color: #cbb894; font-weight: 700; text-align: right; padding: 1px 4px; }
#rtip td { padding: 1px 4px; text-align: right; }
#rtip td:first-child { text-align: left; font-weight: 700; }
#rtip tr.on td { background: color-mix(in srgb, var(--rc) 25%, transparent); }
#rtip small { display: block; color: #a8977a; font-size: 10px; }
#fieldbar { position: fixed; top: 84px; right: 356px; z-index: 4; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
#right.hidden ~ #fieldbar, #fieldbar.hidden { display: none; }
#fieldbar button { font-family: 'Rubik'; font-weight: 700; font-size: 13px; letter-spacing: 1px; padding: 8px 12px; color: #fff4d8; cursor: pointer; border: 3px solid; border-color: #c08a2c #5a3a10 #5a3a10 #c08a2c; background: linear-gradient(180deg, #4a3018, #24160a); box-shadow: 0 4px 12px #0009; text-shadow: 0 2px 0 #000; }
#fieldbar #fb-add { background: linear-gradient(180deg, #3f8a2a, #1d4a10); border-color: #8ee060 #1a3a0a #1a3a0a #8ee060; }
#fieldbar #fb-add em { font-style: normal; margin-left: 6px; padding: 1px 5px; background: #0006; font-size: 12px; }
#fieldbar #fb-rem { background: linear-gradient(180deg, #8a2a1e, #4a100a); border-color: #ff8a70 #3a0a04 #3a0a04 #ff8a70; font-size: 11px; }
#fieldbar button:hover { filter: brightness(1.15); }
.addm { width: 480px; }
.addm-sub { text-align: center; color: #cbb894; font-size: 12px; margin: -6px 0 12px; }
#addm-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.ad-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #1c120a; border: 2px solid color-mix(in srgb, var(--c) 55%, #3a2410); cursor: pointer; }
.ad-row:hover { background: color-mix(in srgb, var(--c) 18%, #1c120a); border-color: var(--c); }
.ad-row img { width: 40px; height: 40px; image-rendering: pixelated; }
.ad-nm { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.ad-nm b { width: 100%; color: #fff4d8; font-size: 13px; }
.ad-nm small { font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.ad-p { font-family: 'Rubik'; font-weight: 900; font-size: 20px; color: var(--c); text-align: right; line-height: 1; }
.ad-p small { display: block; font-size: 9px; color: #cbb894; }
.ad-empty { text-align: center; color: #a8977a; padding: 20px; }
@media (max-width: 860px) { #fieldbar { top: auto; bottom: 74px; right: 10px; } }

.logo .logo-img { display: block; height: 58px; width: auto; margin: -6px 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.big-logo .big-logo-img { display: block; width: min(260px, 60vw); height: auto; margin: -10px auto -4px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
@media (max-width: 860px) { .logo { display: flex !important; } .logo .logo-img { height: 42px; } }
.logo .logo-txt { display: block !important; }
.logo .logo-txt i { letter-spacing: 7px; margin-top: 3px; }
@media (max-width: 860px) { .logo .logo-txt { display: none !important; } }
.chip .ic { background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; clip-path: none !important; box-shadow: none !important; border-radius: 0 !important; width: 34px !important; height: 34px !important; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.chip.coin .ic { background: url(../img/gold-96.png); }
.chip.vault .ic { background: url(../img/vault-96.png); }
.chip.wear .ic { background: url(../img/armor-96.png); }
.chip.pow .ic { background: url(../img/power-96.png); }
@media (max-width: 1250px) { .chip.coin .ic, .chip.vault .ic, .chip.wear .ic, .chip.pow .ic { display: block !important; width: 26px !important; height: 26px !important; } }
.wd-flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 14px; }
.wd-coin { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 140px; }
.wd-coin img { width: 108px; height: 108px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.wd-coin:first-child img { filter: drop-shadow(0 0 12px rgba(80,230,80,.45)); }
.wd-coin:last-child img { filter: drop-shadow(0 0 14px rgba(255,200,60,.55)); animation: wdglow 1.6s ease-in-out infinite; }
.wd-coin b { font-family: 'Rubik', sans-serif; font-size: 12px; letter-spacing: 1px; font-weight: 800; color: var(--gold2); text-align: center; }
.wd-coin:first-child b { color: #8ef08e; }
.wd-ratio { display: flex; flex-direction: column; align-items: center; }
.wd-ratio b { font-family: 'Rubik'; font-size: 34px; font-weight: 900; color: #ffd24a; text-shadow: 0 3px 0 #3a2000, 0 0 12px rgba(255,200,60,.5); }
.wd-ratio u { display: block; width: 60px; height: 4px; background: #ffd24a; position: relative; margin-top: 6px; animation: wdpulse 1.2s ease-in-out infinite; }
.wd-ratio u::after { content: ''; position: absolute; right: -8px; top: -6px; border: 8px solid transparent; border-left-color: #ffd24a; border-right: 0; }
@keyframes wdglow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.wd-side img { display: block; width: 40px; height: 40px; margin: 0 auto 4px; }
.wd-arrow span { font-size: 18px; }
@media (max-width: 500px) { .wd-coin { width: 100px; } .wd-coin img { width: 76px; height: 76px; } .wd-ratio b { font-size: 26px; } }
.wd-ratio b { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 36px; letter-spacing: 2px; line-height: 1; }
.modal.wdm { width: 600px; }
.wd-flow { gap: 14px; margin: 2px 0 16px; }
.wd-coin { width: 210px; }
.wd-coin img { width: 170px; height: 170px; }
.wd-coin b { font-size: 14px; }
.wd-ratio b { font-size: 44px; }
.wd-ratio u { width: 74px; }
.wd-side img { width: 60px; height: 60px; }
.wd-side b { font-size: 24px; }
@media (max-width: 640px) { .wd-coin { width: 130px; } .wd-coin img { width: 110px; height: 110px; } .wd-ratio b { font-size: 30px; } .wd-ratio u { width: 44px; } }
.modal.wdm .wd-bal { padding: 8px; margin-bottom: 10px; }
.modal.wdm .wd-conv { margin: 8px 0; }
.modal.wdm h2 { margin-bottom: 6px; }
.modal.wdm { max-height: 97vh; }
.wd-coin img { width: 160px; height: 160px; }
.box-stage { display: grid; justify-items: center; align-items: center; }
.box-stage > #cap, .box-stage > #reveal { grid-area: 1 / 1; }
.box-stage > #box-ok { grid-area: 2 / 1; }
#reveal { position: relative; z-index: 2; }
#cap.chest.big { width: 330px; height: 276px; z-index: 1; }
#cap .ch-base, #cap .ch-lid { position: absolute; left: 0; top: 0; width: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 24px rgba(0,0,0,.6)); }
#cap .ch-lid { transform-origin: 50% 46%; z-index: 3; }
#cap .ch-base { z-index: 2; }
#cap .ch-rays { position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: repeating-conic-gradient(from 0deg, var(--c) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 8%, transparent 62%); mask: radial-gradient(circle, #000 8%, transparent 62%); opacity: 0; transform: scale(.3); z-index: 0; pointer-events: none; }
#cap .ch-leak { position: absolute; left: 20%; right: 20%; top: 38%; height: 14%; background: radial-gradient(ellipse, #fff 0%, var(--c) 35%, transparent 70%); opacity: 0; z-index: 4; filter: blur(4px); pointer-events: none; }
#cap .ch-beam { position: absolute; left: 50%; bottom: 52%; width: 62%; height: 520px; transform: translateX(-50%) scaleY(0); transform-origin: 50% 100%; background: linear-gradient(0deg, #fff 0%, var(--c) 18%, transparent 100%); -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); opacity: 0; z-index: 1; pointer-events: none; }
#cap .ch-sparks { position: absolute; left: 50%; top: 42%; z-index: 5; pointer-events: none; }
#cap .ch-sparks i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); box-shadow: 0 0 8px currentColor; opacity: 0; }
#cap.ch-drop { animation: chdrop .45s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes chdrop { 0% { transform: translateY(-260px) scale(.7); opacity: 0; } 60% { transform: translateY(0) scale(1.06, .92); opacity: 1; } 100% { transform: none; } }
#cap.ch-shake .ch-base, #cap.ch-shake .ch-lid { animation: chshake .12s linear infinite; }
#cap.ch-shake .ch-lid { animation: chshake .12s linear infinite, lidbump .3s ease-in-out infinite; }
#cap.ch-shake .ch-leak { animation: leak .9s ease-in forwards; }
#cap.ch-shake2 .ch-base, #cap.ch-shake2 .ch-lid { animation-duration: .07s; }
#cap.ch-shake2 { animation: chgrow .5s ease-in forwards; }
@keyframes chshake { 0% { translate: 0 0; rotate: 0deg; } 25% { translate: -6px 2px; rotate: -3deg; } 50% { translate: 5px -3px; rotate: 2deg; } 75% { translate: -3px -2px; rotate: -1deg; } }
@keyframes lidbump { 0%,100% { transform: none; } 50% { transform: translateY(-7px) rotate(-2deg); } }
@keyframes leak { to { opacity: 1; } }
@keyframes chgrow { to { transform: scale(1.08); filter: brightness(1.25); } }
#cap.ch-open .ch-lid { animation: lidfly .8s cubic-bezier(.2,.8,.4,1) forwards; }
#cap.ch-open .ch-base { animation: basehop .4s ease-out; }
#cap.ch-open .ch-leak { opacity: 1; animation: leakpop .6s ease-out forwards; }
#cap.ch-open .ch-beam { animation: beam .9s ease-out forwards; }
#cap.ch-open .ch-rays { animation: rays 1.2s ease-out forwards, rayspin 8s linear infinite; }
#cap.ch-open .ch-sparks i { animation: spk .95s cubic-bezier(.15,.7,.4,1) forwards; }
@keyframes lidfly { 0% { transform: none; } 25% { transform: translateY(-70px) rotate(-10deg); } 100% { transform: translate(-150px, -260px) rotate(-60deg) scale(.8); opacity: 0; } }
@keyframes basehop { 30% { transform: translateY(6px) scale(1.05, .94); } }
@keyframes leakpop { 0% { transform: scale(1); } 40% { transform: scale(2.2, 3); opacity: 1; } 100% { transform: scale(1.4, 1.8); opacity: .6; } }
@keyframes beam { 0% { opacity: 0; transform: translateX(-50%) scaleY(0); } 25% { opacity: 1; transform: translateX(-50%) scaleY(1); } 100% { opacity: .55; transform: translateX(-50%) scaleY(1) scaleX(.7); } }
@keyframes rays { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: .38; transform: scale(1); } }
@keyframes rayspin { to { rotate: 360deg; } }
@keyframes spk { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 120px)) scale(.3); } }
#cap.ch-gone .ch-base, #cap.ch-gone .ch-leak, #cap.ch-gone .ch-beam { transition: opacity .5s, transform .5s; opacity: 0 !important; transform: scale(.85) translateY(30px); }
#cap.ch-gone .ch-rays { transition: opacity 1.2s; opacity: .22; }
.box-stage.legend #cap .ch-rays { background: repeating-conic-gradient(from 0deg, var(--c) 0 5deg, #fff6c0 5deg 7deg, transparent 7deg 15deg); }
.ch-flash { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: radial-gradient(circle at 50% 45%, #fff 0%, rgba(255,255,255,.7) 35%, transparent 75%); animation: chflash .6s ease-out forwards; }
@keyframes chflash { from { opacity: 1; } to { opacity: 0; } }
#reveal .card.pre { visibility: hidden; animation: none; }
#reveal .card.cfx { animation: cardfly .65s cubic-bezier(.2,.9,.3,1.15) var(--d) both, cardflip .5s ease-in-out calc(var(--d) + .6s) forwards; }
#reveal .card.cfx.fast { animation: pop .3s ease-out both; }
#reveal .card .cb { position: absolute; inset: 0; z-index: 5; background: radial-gradient(circle at 50% 40%, var(--c), #1a0f06 75%); border: 2px solid var(--c); display: block; }
#reveal .card .cb::after { content: '?'; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 54px; color: #fff6d0; text-shadow: 0 0 16px var(--c), 0 3px 0 #2a1604; }
#reveal .card.cfx .cb { animation: cbhide .5s linear calc(var(--d) + .6s) forwards; }
#reveal .card.cfx.fast .cb { display: none; }
@keyframes cardfly { 0% { transform: translate(var(--fx), var(--fy)) scale(.12) rotate(var(--fr)); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(0, -14px) scale(1.06) rotate(0deg); } 100% { transform: none; opacity: 1; } }
@keyframes cardflip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0) scaleY(1.05); } 100% { transform: scaleX(1); } }
@keyframes cbhide { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; visibility: hidden; } }
#reveal .card.cfx.r3, #reveal .card.cfx.r4 { animation: cardfly .65s cubic-bezier(.2,.9,.3,1.15) var(--d) both, cardflip .5s ease-in-out calc(var(--d) + .6s) forwards, higlow 1.2s ease-in-out calc(var(--d) + 1.1s) infinite alternate; }
@keyframes higlow { from { box-shadow: 0 0 24px var(--c); } to { box-shadow: 0 0 60px var(--c), 0 0 20px #fff6c0; } }
#reveal .card.cfx.r3::after, #reveal .card.cfx.r4::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border: 4px solid var(--c); border-radius: 50%; opacity: 0; animation: ring .7s ease-out calc(var(--d) + .85s) forwards; z-index: 6; pointer-events: none; }
@keyframes ring { 0% { opacity: 1; transform: scale(.5); } 100% { opacity: 0; transform: scale(7); } }
#box-ok:not(.hidden) { animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
@media (max-width: 640px) { #cap.chest.big { width: 240px; height: 200px; } }
#boxm { overflow-x: hidden; overflow-y: auto; align-items: safe center; }
#reveal.many { max-width: 720px; }
.shop-info { flex: 1; min-width: 0; }
.pay { display: flex; gap: 0 !important; margin-top: 8px !important; padding: 3px; background: rgba(0,0,0,.55); border: 1px solid #5a3a10; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.pay button { flex: 1; display: flex !important; align-items: center; gap: 5px; padding: 5px 6px !important; background: transparent !important; border: 1px solid transparent !important; color: #8a7458 !important; font-family: 'Rubik', sans-serif !important; font-weight: 800; font-size: 11px !important; letter-spacing: .5px; text-align: left; transition: background .15s, color .15s; line-height: 1.1; }
.pay button img { width: 24px; height: 24px; flex: none; filter: grayscale(.8) brightness(.6); transition: filter .15s, transform .15s; }
.pay button span { display: block; min-width: 0; }
.pay button small { display: block; font-size: 9px !important; font-weight: 600; letter-spacing: .3px; opacity: .75; }
.pay button:hover { color: #d8c09a !important; }
.pay button:hover img { filter: grayscale(.3) brightness(.9); }
.pay button.on { color: #2a1604 !important; background: linear-gradient(180deg, #ffe9a8, #e8b54a 55%, #b07a20) !important; border-color: #fff1c0 !important; box-shadow: 0 0 10px rgba(255,200,80,.45), inset 0 1px 0 rgba(255,255,255,.7); }
.pay button[data-s=farm].on { background: linear-gradient(180deg, #b8f5a0, #4cc44c 55%, #1f7a28) !important; border-color: #d8ffc8 !important; box-shadow: 0 0 10px rgba(90,230,90,.45), inset 0 1px 0 rgba(255,255,255,.7); color: #0b2a0b !important; }
.pay button.on img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); transform: scale(1.12); }
.buy-row { gap: 6px !important; margin-top: 10px !important; }
.buy-row .bx { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 2px 7px !important; border: 2px solid #1a0d04 !important; border-radius: 0; cursor: pointer; overflow: hidden; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.3), 0 3px 0 #1a0d04, 0 5px 10px rgba(0,0,0,.5) !important; transition: transform .08s, filter .15s, box-shadow .08s; }
.buy-row .bx::before { content: ''; position: absolute; top: 0; left: -70%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .5s; }
.buy-row .bx:hover::before { left: 130%; }
.buy-row .bx:hover { filter: brightness(1.12); transform: translateY(-1px); }
.buy-row .bx:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.3), 0 0 0 #1a0d04, 0 2px 4px rgba(0,0,0,.5) !important; }
.buy-row .bx small { font-family: 'Rubik', sans-serif; font-size: 9px; font-weight: 800; letter-spacing: 2px; opacity: .9; }
.buy-row .bx strong { font-family: 'Rubik', sans-serif; font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: .5px; }
.buy-row .bx em { display: flex !important; align-items: center; gap: 3px; margin-top: 3px; padding: 2px 6px 2px 3px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); font-family: 'Rubik', sans-serif !important; font-size: 11px !important; font-weight: 800 !important; color: #ffe9a8; text-shadow: none; opacity: 1 !important; white-space: nowrap; }
.buy-row .bx em::before { content: ''; width: 14px; height: 14px; flex: none; background: url(../img/gold-96.png) center / contain no-repeat; }
#right.pay-farm .buy-row .bx em { color: #b8f5a0; }
#right.pay-farm .buy-row .bx em::before { background-image: url(../img/vault-96.png); }
.buy-row .b1 { background: linear-gradient(180deg, #7ab8ff, #2d6fd0 50%, #173f8a) !important; }
.buy-row .b10 { background: linear-gradient(180deg, #ffe9a8, #e8b54a 45%, #9a6a1c) !important; color: #2a1604 !important; text-shadow: 0 1px 0 rgba(255,255,255,.5) !important; }
.buy-row .b15 { background: linear-gradient(180deg, #e0a0ff, #9a3ae0 50%, #55158a) !important; }
.buy-row .b15::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 12px rgba(255,200,255,.5); animation: b15glow 1.6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes b15glow { from { opacity: .2; } to { opacity: 1; } }
.shop-info .pay button span { color: inherit !important; font-size: inherit !important; }
.shop-info .pay button small { color: inherit; }
.shop { display: grid !important; grid-template-columns: 84px 1fr; column-gap: 12px; row-gap: 0; align-items: center; padding: 12px !important; }
.shop-info { display: contents; }
#shop-chest { grid-column: 1; grid-row: 1 / 3; width: 84px !important; }
.shop-info > b { grid-column: 2; grid-row: 1; align-self: end; font-size: 20px !important; letter-spacing: 1px; }
.shop-info > span { grid-column: 2; grid-row: 2; align-self: start; font-size: 13px !important; }
.shop-info .pay { grid-column: 1 / -1; margin-top: 12px !important; }
.shop-info .buy-row { grid-column: 1 / -1; margin-top: 10px !important; gap: 8px !important; }
.pay button { padding: 8px 10px !important; font-size: 13px !important; gap: 8px; }
.pay button img { width: 30px; height: 30px; }
.pay button small { font-size: 10px !important; }
.pay button[data-s=farm].on { background: linear-gradient(180deg, #ffe9a8, #e8b54a 55%, #b07a20) !important; border-color: #fff1c0 !important; box-shadow: 0 0 10px rgba(255,200,80,.45), inset 0 1px 0 rgba(255,255,255,.7); color: #2a1604 !important; }
.buy-row .bx, .buy-row .b1, .buy-row .b10, .buy-row .b15 { background: linear-gradient(180deg, #fbe7a6 0%, #e2b452 38%, #b8842c 70%, #8a5e1a 100%) !important; color: #2a1604 !important; text-shadow: 0 1px 0 rgba(255,240,200,.55) !important; border: 2px solid #3a2208 !important; padding: 10px 4px 10px !important; box-shadow: inset 0 0 0 1px rgba(255,236,180,.55), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(90,55,10,.45), 0 3px 0 #2a1604, 0 6px 12px rgba(0,0,0,.55) !important; }
.buy-row .b15::after { display: none; }
.buy-row .bx small { font-size: 10px; letter-spacing: 3px; color: #5a3a10; }
.buy-row .bx strong { font-size: 28px; color: #2a1604; }
.buy-row .bx em, .buy-row .b10 em { margin-top: 6px; padding: 3px 8px 3px 4px; font-size: 12px !important; background: rgba(42,22,4,.82) !important; border: 1px solid #3a2208; color: #ffe9a8 !important; }
.buy-row .bx em::before { width: 16px; height: 16px; }
#right.pay-farm .buy-row .bx em { color: #b8f5a0 !important; }
#right:not(.hidden) { display: flex; flex-direction: column; overflow: hidden; }
#right > .shop, #right > .odds-fold, #right > .tw-head { flex: none; }
#right > #towers { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overflow-x: hidden; margin-right: -8px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #8a6a2a rgba(0,0,0,.35); overscroll-behavior: contain; }
#right > #towers::-webkit-scrollbar { width: 8px; }
#right > #towers::-webkit-scrollbar-track { background: rgba(0,0,0,.35); }
#right > #towers::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e8b54a, #8a5e1a); border: 1px solid #2a1604; }
#right > .odds-fold[open] #rates { max-height: 34vh; overflow-y: auto; }
.shop { position: relative; }
.help-q { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; font-family: 'Rubik', sans-serif; font-weight: 900; font-size: 15px; color: #2a1604; background: radial-gradient(circle at 35% 30%, #fff3c4, #e8b54a 55%, #8a5e1a); border: 2px solid #3a2208; box-shadow: 0 0 10px rgba(255,200,80,.5), inset 0 1px 0 rgba(255,255,255,.6); cursor: help; z-index: 2; animation: helpq 2.2s ease-in-out infinite; }
.help-q:hover { filter: brightness(1.15); transform: scale(1.1); }
@keyframes helpq { 0%,100% { box-shadow: 0 0 6px rgba(255,200,80,.4), inset 0 1px 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 16px rgba(255,200,80,.9), inset 0 1px 0 rgba(255,255,255,.6); } }
#shop-tip { position: fixed; z-index: 60; padding: 14px 16px; background: linear-gradient(180deg, #2c1d12, #120a05); border: 2px solid var(--gold3); box-shadow: 0 0 0 1px rgba(255,220,140,.15) inset, 0 12px 30px rgba(0,0,0,.75); font-family: 'Rubik', sans-serif; color: #e8d8b8; pointer-events: auto; }
#shop-tip h4 { margin: 0 0 8px; font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold2); display: flex; align-items: center; gap: 8px; }
#shop-tip h4 + * { margin-top: 0; }
#shop-tip .st-rates { display: grid; gap: 4px; margin-bottom: 14px; }
#shop-tip .st-r { display: grid; grid-template-columns: 10px 1fr auto 52px; align-items: center; gap: 8px; padding: 5px 8px; background: rgba(0,0,0,.35); border-left: 3px solid var(--c); }
#shop-tip .st-r i { width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 6px var(--c); }
#shop-tip .st-r span { font-weight: 700; font-size: 13px; color: var(--c); }
#shop-tip .st-r em { font-style: normal; font-size: 11px; color: #9c8460; }
#shop-tip .st-r b { text-align: right; font-size: 15px; font-weight: 800; color: #fff3d0; font-variant-numeric: tabular-nums; }
#shop-tip .st-on { padding: 1px 6px; font-size: 10px; letter-spacing: 1px; color: #0b2a0b; background: #6ad06a; }
#shop-tip p { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: #d8c8a8; }
#shop-tip p b { color: var(--gold2); }
#shop-tip .st-pity { display: grid; gap: 8px; margin-bottom: 10px; }
#shop-tip .st-pt { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
#shop-tip .st-pt span { font-weight: 800; color: var(--c); }
#shop-tip .st-pt small { font-size: 11px; color: #9c8460; }
#shop-tip .st-pt b { margin-left: auto; font-weight: 800; color: #fff3d0; font-variant-numeric: tabular-nums; }
#shop-tip .st-bar { height: 6px; margin-top: 3px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
#shop-tip .st-bar i { display: block; height: 100%; background: var(--c); box-shadow: 0 0 6px var(--c); }
#shop-tip .st-note { margin: 0; font-size: 11px; color: #9c8460; }
.modal.rpm { width: 520px; max-height: 94vh; padding: 18px 22px; font-family: 'Rubik', sans-serif; }
.rp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.rp-head img { width: 64px; height: 64px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); }
.rp-head h2 { margin: 0; }
.rp-head small { font-size: 12px; color: #9c8460; letter-spacing: 1px; }
.rp-what { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #d8c8a8; }
.rp-what b { color: var(--gold2); }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.rp-stats div { text-align: center; padding: 8px 4px; background: rgba(0,0,0,.35); border: 1px solid #5a3a10; }
.rp-stats small { display: block; font-size: 10px; letter-spacing: 1px; color: #c9a46a; font-weight: 600; }
.rp-stats b { display: block; font-size: 20px; font-weight: 800; color: #fff3d0; margin-top: 2px; }
.rp-stats b.ok { color: #9fe8a0; }
#rp-list { max-height: 150px; overflow-y: auto; margin-bottom: 12px; border: 1px solid #3a2810; background: rgba(0,0,0,.25); scrollbar-width: thin; scrollbar-color: #8a6a2a transparent; }
.rp-row { display: grid; grid-template-columns: 26px 1fr 80px 38px 64px; align-items: center; gap: 8px; padding: 4px 8px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.04); }
.rp-row img { width: 26px; height: 26px; image-rendering: pixelated; }
.rp-row span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-row i { display: block; height: 6px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.rp-row i u { display: block; height: 100%; }
.rp-row em { font-style: normal; color: #c8b090; text-align: right; font-variant-numeric: tabular-nums; }
.rp-row b { text-align: right; color: var(--gold2); font-variant-numeric: tabular-nums; }
.rp-cost { text-align: center; padding: 10px; margin-bottom: 10px; background: rgba(255,200,80,.07); border: 2px solid #6b4a1a; }
.rp-cost small { display: block; font-size: 11px; letter-spacing: 1.5px; color: #c9a46a; font-weight: 600; }
.rp-cost div { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.rp-cost img { width: 34px; height: 34px; }
.rp-cost b { font-size: 30px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }
.rp-cost em { font-style: normal; font-size: 11px; letter-spacing: 1px; color: #9c8460; font-weight: 700; }
.rp-cost span { display: block; margin-top: 4px; font-size: 11px; color: #9fe8a0; }
.rp-ph { font-size: 11px; letter-spacing: 1.5px; color: #c9a46a; font-weight: 600; margin-bottom: 5px; }
.rp-ph span { color: #7d6a50; letter-spacing: 0; }
#rp-pay { display: grid; gap: 4px; }
.rp-pr { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; background: rgba(0,0,0,.3); border: 1px solid #3a2810; opacity: .5; }
.rp-pr.use { opacity: 1; border-color: #6b4a1a; }
.rp-pr img { width: 26px; height: 26px; }
.rp-pr span { font-size: 13px; font-weight: 700; color: #e8d8b8; }
.rp-pr small { display: block; font-size: 10px; font-weight: 500; color: #9c8460; }
.rp-pr b { font-size: 14px; font-weight: 800; color: #ff9a7a; font-variant-numeric: tabular-nums; }
#rp-note { margin: 10px 0 0; font-size: 11px; color: #9c8460; text-align: center; }
#rp-note.bad { color: #ff7a5a; font-weight: 700; font-size: 13px; }
.rp-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 14px; }
.rp-btns button { margin: 0 !important; padding: 12px; }
#rp-go:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.chip.day .ic { background: url(../img/vault-96.png) center / contain no-repeat !important; clip-path: none !important; width: 34px !important; height: 34px !important; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.chip.day b { color: #b8f5a0; }


.map { padding: 10px 11px 11px; margin-bottom: 8px; border: 1px solid #4a3418; background: #120b05; }
.map::after { background: linear-gradient(180deg, rgba(14,8,3,0.35) 0%, rgba(14,8,3,0.82) 45%, rgba(14,8,3,0.95) 100%); }
.map .bgart { opacity: 0.7; }
.map.on { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,210,120,.35) inset, 0 0 18px rgba(232,181,74,.25); }
.map:not(.locked):not(.on):hover { border-color: var(--gold3); }
.map.locked { border-color: #3a2a18; }
.map .mrow { gap: 8px; }
.map h4 { font-size: 15px; }
.tier.t3 { background: #1d5a7a; color: #d8f4ff; }
.tier.t4 { background: #7a1a14; color: #ffd8cc; }
.map .lock { background: rgba(60,10,8,.85); color: #ff9a88; border: 1px solid #8a2a20; font-family: 'Rubik'; font-size: 10px; letter-spacing: 1px; padding: 2px 6px; }
.map .go { font-family: 'Rubik'; font-weight: 900; font-size: 10px; color: var(--gold2); border: 1px solid rgba(232,181,74,.45); padding: 2px 6px; flex: none; opacity: .75; }
.map:hover .go { opacity: 1; background: rgba(232,181,74,.15); }
.map .mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.map .mstats > div { background: rgba(0,0,0,.5); border: 1px solid rgba(232,181,74,.18); padding: 4px 6px; text-align: center; min-width: 0; }
.map .mstats small { display: block; font-family: 'Rubik', sans-serif; font-size: 8px; color: var(--dim); letter-spacing: 0; white-space: nowrap; }
.map .mstats b { display: block; font-family: 'Rubik'; font-size: 13px; color: var(--gold2); font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map .mreq { margin-top: 8px; padding: 8px 9px 9px; background: rgba(0,0,0,.55); border: 1px solid rgba(232,181,74,.22); }
.map .mreq-h { font-family: 'Rubik'; font-weight: 900; font-size: 10px; letter-spacing: 2px; color: #ffcf6a; margin-bottom: 4px; }
.map .rq { margin-top: 6px; }
.map .rq-t { display: flex; align-items: center; gap: 6px; font-family: 'Rubik'; font-size: 11px; color: #ffe7b0; }
.map .rq-t i { width: 14px; height: 14px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 10px; background: #5a1414; color: #ff8a7a; border: 1px solid #a83030; flex: none; }
.map .rq.ok .rq-t i { background: #134a22; color: #8dffa8; border-color: #2e9a4a; }
.map .rq-t span { flex: 1; letter-spacing: 1px; }
.map .rq-t em { font-style: normal; font-weight: 900; color: #ff9a88; }
.map .rq-t em small { color: var(--dim); font-weight: 700; }
.map .rq.ok .rq-t em { color: #8dffa8; }
.map .rq-b { height: 5px; margin-top: 3px; background: rgba(255,255,255,.08); border: 1px solid rgba(0,0,0,.6); }
.map .rq-b s { display: block; height: 100%; background: linear-gradient(90deg, #a8401e, #ff8a4a); text-decoration: none; }
.map .rq.ok .rq-b s { background: linear-gradient(90deg, #2e8a44, #7dff9a); }
.map .mreq-n { margin-top: 7px; font-size: 10.5px; line-height: 1.35; color: var(--dim); }
.map .mreq-go { margin-top: 7px; width: 100%; padding: 6px 8px; font-family: 'Rubik'; font-weight: 900; font-size: 11px; letter-spacing: 1px; color: #2a1a04; background: linear-gradient(#ffe08a, #d9a33a); border: 1px solid #8a6418; cursor: pointer; }
.map .mreq-go:hover { filter: brightness(1.1); }
.map h4 { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
.map .mstats { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); }
.map .mstats b { overflow: visible; text-overflow: clip; }
.map .go { display: none; }
.map:not(.locked):not(.on):hover .go { display: inline-block; }
.map { container-type: inline-size; }
.map .mstats { grid-template-columns: 1fr 1fr; }
@container (min-width: 215px) { .map .mstats { grid-template-columns: repeat(4, 1fr); } }

#selbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: stretch; gap: 12px; padding: 10px 12px; width: min(1040px, calc(100vw - var(--lw) - var(--rw) - 32px)); }
#selbar .sb-port { position: relative; width: 84px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--rc) 40%, transparent), rgba(0,0,0,.55) 70%); border: 2px solid var(--rc); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 45%, transparent), inset 0 0 10px rgba(0,0,0,.6); padding: 6px 4px 18px; }
#selbar .sb-port img { width: 64px; height: 64px; }
#selbar .sb-rar { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: 'Rubik'; font-weight: 900; font-size: 9px; letter-spacing: 1px; color: #140a04; background: var(--rc); padding: 2px 0; }
#selbar .sb-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#selbar .sb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#selbar .sb-head > b { font-family: 'Rubik'; font-weight: 900; font-size: 18px; text-shadow: 0 2px 0 #000; }
#selbar .sb-head .stars { color: #ffd24a; font-size: 13px; letter-spacing: 1px; }
#selbar .sb-head .stars em { font-style: normal; color: rgba(255,210,74,.2); }
#selbar .sb-tag { font-family: 'Rubik'; font-weight: 900; font-size: 10px; color: var(--c); border: 1px solid var(--c); padding: 1px 6px; }
#selbar .sb-cls { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 30%, #140c06), rgba(20,12,6,.2)); border-left: 3px solid var(--rc); cursor: help; }
#selbar .sb-ci { width: 30px; height: 30px; display: grid; place-items: center; background: #140c06; border: 1px solid var(--rc); flex: none; }
#selbar .sb-ci .rsvg { width: 22px; height: 22px; }
#selbar .sb-cls b { display: block; font-family: 'Rubik'; font-weight: 900; font-size: 13px; letter-spacing: 2px; color: var(--rc); }
#selbar .sb-cls small { display: block; font-size: 11px; color: #d8c49c; }
#selbar .sb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
#selbar .tl { background: rgba(0,0,0,.45); border: 1px solid rgba(232,181,74,.2); padding: 3px 6px; min-width: 0; }
#selbar .tl small { display: block; font-family: 'Rubik', sans-serif; font-size: 8px; color: var(--dim); white-space: nowrap; }
#selbar .tl b { display: block; font-family: 'Rubik'; font-weight: 900; font-size: 14px; color: #fff0cc; white-space: nowrap; }
#selbar .tl i { display: block; height: 3px; margin-top: 2px; background: rgba(255,255,255,.1); }
#selbar .tl i s { display: block; height: 100%; text-decoration: none; }
#selbar .sb-runes { display: grid; grid-template-columns: repeat(3, 92px); grid-template-rows: auto 1fr; gap: 6px; padding: 6px; background: rgba(0,0,0,.35); border: 1px solid rgba(232,181,74,.22); }
#selbar .sb-rh { grid-column: 1 / -1; font-family: 'Rubik'; font-weight: 900; font-size: 10px; letter-spacing: 2px; color: #ffcf6a; text-align: center; }
#selbar .sk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; cursor: pointer; background: rgba(0,0,0,.45); border: 2px dashed color-mix(in srgb, var(--c) 45%, transparent); color: var(--dim); font: inherit; transition: transform .12s, background .12s; }
#selbar .sk:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 14%, rgba(0,0,0,.5)); }
#selbar .sk-g { width: 34px; height: 34px; display: grid; place-items: center; font-family: 'Rubik'; font-weight: 900; font-size: 16px; color: color-mix(in srgb, var(--c) 70%, #fff); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
#selbar .sk-t { text-align: center; line-height: 1.1; }
#selbar .sk-t small { display: block; font-family: 'Rubik', sans-serif; font-size: 8px; color: var(--c); }
#selbar .sk-t b { display: block; font-family: 'Rubik'; font-size: 10px; font-weight: 700; color: var(--dim); margin-top: 2px; }
#selbar .sk.on { border: 2px solid var(--c); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 35%, transparent), rgba(0,0,0,.55) 75%); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent); }
#selbar .sk.on .sk-g { color: #1a0a04; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); animation: skp 2.2s ease-in-out infinite; }
#selbar .sk.on .sk-t b { color: #fff0cc; }
@keyframes skp { 50% { filter: brightness(1.35); } }
#selbar .acts { display: grid; grid-auto-rows: min-content; grid-template-columns: 1fr 1fr; align-content: center; gap: 5px; max-width: none; }
#selbar .acts button { padding: 8px 10px; font-size: 11px; white-space: nowrap; }
#selbar .acts button[data-a="close"] { position: absolute; top: -12px; right: -12px; width: 26px; height: 26px; padding: 0; background: #1e130a; border: 2px solid var(--gold3); }
#selbar .acts button:only-of-type, #selbar .acts button[data-a="cancel"] { grid-column: 1 / -1; }
@media (max-width: 1250px) { #selbar { grid-template-columns: auto minmax(0, 1fr) auto; } #selbar .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; } #selbar .sb-runes { grid-template-columns: repeat(3, 78px); } }
@media (max-width: 860px) { #selbar { grid-template-columns: auto minmax(0, 1fr); } #selbar .sb-runes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); } #selbar .sb-stats { grid-template-columns: repeat(3, 1fr); } #selbar .sb-cls small { display: none; } }
#selbar .sb-stats { grid-template-columns: 1fr .8fr 1.2fr 1.2fr 1fr; }
#selbar .tl small, #selbar .tl b { overflow: hidden; text-overflow: ellipsis; }
#selbar .sb-runes { grid-template-columns: repeat(3, 86px); }
@media (max-width: 860px) {
  #selbar { left: 50%; width: calc(100vw - 16px); grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 8px; }
  #selbar .sb-port { width: 64px; }
  #selbar .sb-port img { width: 48px; height: 48px; }
  #selbar .sb-head > b { font-size: 15px; }
  #selbar .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; }
  #selbar .acts button { flex: 1 1 auto; }
  #selbar .acts button[data-a="close"] { flex: none; }
}
@media (max-width: 860px) {
  #selbar { bottom: 66px; max-height: calc(100vh - 140px); overflow-y: auto; }
  #selbar .sb-stats { gap: 3px; }
  #selbar .tl { padding: 3px 4px; }
  #selbar .tl small { font-size: 7px; }
  #selbar .tl b { font-size: 12px; }
}
@media (max-width: 860px) { #selbar .acts button[data-a="close"] { top: 4px; right: 4px; } }
.login-card { width: 520px; }
.l-launch { margin: 4px 0 14px; padding: 12px 10px 14px; background: linear-gradient(180deg, rgba(255,190,80,.12), rgba(0,0,0,.45)); border: 1px solid rgba(255,200,100,.45); box-shadow: inset 0 0 20px rgba(255,170,60,.12); }
.l-lh { font-family: 'Rubik'; font-weight: 900; font-size: 12px; letter-spacing: 4px; color: #ffcf6a; }
.l-date { font-family: 'Rubik', sans-serif; font-size: 12px; color: #fff0cc; margin: 4px 0 10px; }
.l-cd { display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.l-cd > div { min-width: 74px; background: #120b05; border: 2px solid #8a6418; box-shadow: inset 0 -6px 0 rgba(0,0,0,.4); padding: 6px 4px 5px; }
.l-cd b { display: block; font-family: 'Rubik'; font-weight: 900; font-size: 38px; line-height: 1; color: #ffd24a; text-shadow: 0 0 14px rgba(255,190,60,.55), 0 3px 0 #5a3a0a; }
.l-cd span { display: block; font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); margin-top: 4px; }
.l-cd > i { font-style: normal; font-family: 'Rubik'; font-weight: 900; font-size: 30px; color: #8a6418; margin-top: 6px; }
.l-live { margin: 4px 0 14px; padding: 10px; font-family: 'Rubik'; font-weight: 900; font-size: 20px; letter-spacing: 3px; color: #7dff9a; background: rgba(20,60,30,.45); border: 1px solid #2e9a4a; text-shadow: 0 0 12px rgba(120,255,150,.5); }
.l-steps { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }
.l-st { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: rgba(0,0,0,.4); border: 1px solid rgba(232,181,74,.22); }
.l-st > i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-style: normal; font-family: 'Rubik'; font-weight: 900; font-size: 16px; color: #2a1604; background: linear-gradient(#ffe08a, #d9a33a); border: 1px solid #8a6418; }
.l-st b { display: block; font-family: 'Rubik'; font-weight: 900; font-size: 13px; letter-spacing: 1px; color: #ffe7b0; }
.l-st span { display: block; font-size: 12px; color: var(--dim); line-height: 1.3; }
.l-st span b { display: inline; font-size: 12px; color: #ffd24a; letter-spacing: 0; }
.l-ref { margin: -6px 0 10px; font-size: 12px; color: #9df0b0; }
.l-devlink { display: block; margin-top: 8px; font-size: 11px; color: var(--dim); cursor: pointer; text-decoration: underline; }
.l-h { font-family: 'Rubik'; font-weight: 900; font-size: 15px; letter-spacing: 2px; color: #ffcf6a; margin-bottom: 10px; }
#l-wallets { display: grid; gap: 6px; margin-bottom: 8px; }
.wopt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(232,181,74,.35); color: #fff0cc; cursor: pointer; text-decoration: none; font: inherit; }
.wopt:hover { background: rgba(232,181,74,.12); border-color: var(--gold2); }
.wopt img, .wopt .wmono { width: 28px; height: 28px; flex: none; }
.wopt .wmono { display: grid; place-items: center; font-family: 'Rubik'; font-weight: 900; color: #2a1604; background: linear-gradient(135deg, #ffe08a, #b07a20); }
.wopt b { flex: 1; text-align: left; font-family: 'Rubik'; font-size: 15px; }
.wopt em { font-style: normal; font-family: 'Rubik', sans-serif; font-size: 9px; color: #7dff9a; }
.wopt.off { opacity: .6; } .wopt.off em { color: var(--dim); }
.l-fine { font-size: 11px; color: var(--dim); margin: 6px 0 10px; }
#l-step3 input, #l-dev input { width: 100%; margin-bottom: 6px; }
.l-nickok { display: block; font-size: 11px; color: var(--dim); margin-bottom: 10px; } .l-nickok.good { color: #7dff9a; } .l-nickok.bad { color: #ff8a7a; }
#l-step3 button, #l-dev button, #l-go { width: 100%; }
#l-dev { margin-top: 10px; }
.pt-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 10px; background: linear-gradient(180deg, #3a2a8a, #1e1450); border: 1px solid #8a7aff; box-shadow: 0 0 10px rgba(140,120,255,.35); }
.pt-badge b { font-family: 'Rubik'; font-weight: 900; font-size: 12px; letter-spacing: 2px; color: #d8d0ff; }
.pt-badge small { font-family: 'Rubik', sans-serif; font-size: 8px; color: #b9a6ff; white-space: nowrap; }
.ref-btn { color: #7dff9a !important; border-color: #2e9a4a !important; }
.refm, .depm { width: 520px; max-width: calc(100vw - 20px); }
.rf-sub { font-size: 13px; color: #e6d6b4; margin-bottom: 12px; line-height: 1.4; } .rf-sub b { color: #ffd24a; }
.rf-link { display: flex; gap: 6px; } .rf-link input { flex: 1; font-size: 13px; }
.rf-code { margin: 8px 0 12px; font-size: 12px; color: var(--dim); } .rf-code b { font-family: 'Rubik'; font-size: 16px; color: #ffd24a; letter-spacing: 2px; margin-left: 6px; }
.rf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.rf-stats div { background: rgba(0,0,0,.45); border: 1px solid rgba(232,181,74,.22); padding: 6px; text-align: center; }
.rf-stats small { display: block; font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); }
.rf-stats b { font-family: 'Rubik'; font-weight: 900; font-size: 20px; color: #ffd24a; }
#rf-list { max-height: 180px; overflow-y: auto; margin-bottom: 8px; }
.rf-lh, .rf-row { display: flex; justify-content: space-between; padding: 5px 8px; font-size: 12px; }
.rf-lh { font-family: 'Rubik', sans-serif; font-size: 9px; color: var(--dim); }
.rf-row { background: rgba(0,0,0,.3); margin-bottom: 3px; } .rf-row b { color: #ffd24a; }
.rf-empty { text-align: center; color: var(--dim); font-size: 12px; padding: 10px; }
.rf-note { font-size: 11px; color: var(--dim); margin-bottom: 10px; }
.wd-coin small { display: block; font-size: 10px; color: var(--dim); }
.dp-off { margin: 10px 0; padding: 10px; font-size: 12.5px; line-height: 1.4; color: #e6d6b4; background: rgba(60,40,140,.25); border: 1px solid #6a5ad8; }
.dp-off b:first-child { display: block; font-family: 'Rubik'; font-weight: 900; letter-spacing: 2px; color: #d8d0ff; margin-bottom: 2px; }
.dp-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0; }
.dp-packs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; background: rgba(0,0,0,.45); border: 1px solid rgba(232,181,74,.35); color: #ffd24a; cursor: pointer; }
.dp-packs button:hover { border-color: var(--gold2); background: rgba(232,181,74,.12); }
.dp-packs img { width: 26px; height: 26px; } .dp-packs b { font-family: 'Rubik'; font-size: 13px; }
.dp-wallet { font-size: 11px; color: var(--dim); margin: 6px 0 10px; } .dp-wallet b { color: #fff0cc; }
#dp-go { width: 100%; } #dp-go:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
#dp-msg { min-height: 16px; margin: 8px 0; font-size: 12px; color: #9df0b0; }
@media (max-width: 560px) { .l-cd > div { min-width: 56px; } .l-cd b { font-size: 28px; } .l-cd > i { font-size: 22px; } .dp-packs { grid-template-columns: repeat(2, 1fr); } }
.login-card .tag { font-family: 'Rubik', sans-serif; font-style: italic; font-weight: 600; font-size: 15px; color: #e8d6ae; letter-spacing: .2px; }
.l-lh { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 4px; }
.l-date { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.l-cd span { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 1.5px; color: #c9b48a; }
.l-st { padding: 10px 12px; }
.l-st > i { font-family: 'Rubik', sans-serif; font-weight: 800; }
.l-st b { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .6px; color: #ffe7b0; }
.l-st span { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 13.5px; line-height: 1.4; color: #d8c8a6; margin-top: 2px; }
.l-st span b { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 13.5px; }
.l-ref, .l-fine, .l-nickok, .l-devlink { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 13px; }
.l-h { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: 2px; }
#l-go, #l-nickgo, #l-devgo { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 2px; }
.wopt b { font-family: 'Rubik', sans-serif; font-weight: 700; }
.wopt em { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 11px; }
.snd-grp { display: flex; align-items: center; gap: 0; background: linear-gradient(180deg, #3a2616, #1e130a); border: 1px solid var(--gold3); }
.snd-grp #b-snd { border: 0; background: none; padding: 6px 8px; display: grid; place-items: center; color: var(--gold2); line-height: 0; }
.snd-grp #b-snd.off { opacity: 1; color: var(--dim); }
#snd-vol { -webkit-appearance: none; appearance: none; width: 70px; height: 6px; margin: 0 10px 0 2px; background: #120b05; border: 1px solid #5a3a10; cursor: pointer; outline: none; }
#snd-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 14px; background: linear-gradient(#ffe08a, #c9952a); border: 1px solid #5a3a10; cursor: pointer; }
#snd-vol::-moz-range-thumb { width: 10px; height: 14px; background: linear-gradient(#ffe08a, #c9952a); border: 1px solid #5a3a10; border-radius: 0; cursor: pointer; }
@media (max-width: 860px) { #snd-vol { display: none; } .snd-grp #b-snd { padding: 4px 6px; } }
#social { position: fixed; top: 14px; right: 14px; z-index: 30; display: flex; gap: 8px; }
#social .soc { display: flex; align-items: center; gap: 7px; padding: 8px 13px; color: #fff; text-decoration: none; font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 1px; border: 2px solid rgba(0,0,0,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 10px rgba(0,0,0,.5); transition: transform .12s, filter .12s; }
#social .soc:hover { transform: translateY(-2px); filter: brightness(1.12); }
#social .dc { background: linear-gradient(180deg, #7984f5, #4752c4); }
#social .tg { background: linear-gradient(180deg, #45b8ee, #1c8ac7); }
#top:not(.hidden) ~ #social { top: calc(var(--th) + 12px); right: auto; left: calc(var(--lw) + 24px); z-index: 5; }
#top:not(.hidden) ~ #social .soc { padding: 6px 10px; font-size: 11px; }
@media (max-width: 860px) {
  #social { top: 10px; right: 10px; }
  #social .soc span { display: none; }
  #social .soc { padding: 8px; }
  #top:not(.hidden) ~ #social { top: 8px; bottom: auto; left: auto; right: 10px; z-index: 30; }
  #top:not(.hidden) ~ #social .soc { padding: 6px; }
}
