/* ===== MU IDLE KUNDUN — skin do client (texturas em /static/img/ui e /static/ui) ===== */
@font-face { font-family:'Roboto'; font-weight:400; font-display:swap; src:url('/static/fonts/Roboto-Regular.woff2') format('woff2'); }
@font-face { font-family:'Roboto'; font-weight:700; font-display:swap; src:url('/static/fonts/Roboto-Bold.woff2') format('woff2'); }
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#060606; --panel:#0c0c0c; --border:#3b301d; --gold:#b08d4f; --gold2:#ffcf8c; --red:#c62828; --text:#e8e0d0; --muted:#9e9689;
  --exc:#19ff7f; --anc-bg:#0a1e8c; --opt:#8fa8ff; --plus:#ffcc19; --bad:#ff5a4a; --hud:118px;
}
html { -webkit-text-size-adjust:100%; }
body {
  background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; padding-bottom:calc(var(--hud) + env(safe-area-inset-bottom));
  font-family:'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size:14px; line-height:1.4;
}
body::before { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg, #000000b0 0%, #00000080 35%, #000000d8 100%), url('/static/img/ui/bg.jpg') center top / cover no-repeat; }
.hidden { display:none !important; }
.muted { color:var(--muted); } .center { text-align:center; } .tiny { font-size:11.5px; }
button { font-family:inherit; cursor:pointer; color:inherit; } button:disabled { cursor:default; opacity:.45; }
a { color:var(--gold2); }
img { image-rendering:auto; }

.logo { font-family:Georgia, serif; font-size:44px; letter-spacing:4px; color:#efe6d2; text-align:center; filter:drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px #b08d4f44); }
.logo span { background:linear-gradient(180deg, #fff0c2, #ffcf8c 45%, #b08d4f 75%, #6a4a1c); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.logo.small { font-size:20px; letter-spacing:2px; line-height:1; text-align:left; }
.boot { position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.boot-sub { letter-spacing:7px; color:var(--gold); font-weight:700; font-size:12px; text-align:center; }
.boot-spin { margin-top:22px; width:34px; height:34px; border:3px solid #3b301d; border-top-color:var(--gold2); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ---- botões ---- */
.btn { background:none; border:1px solid transparent; border-image:url('/static/img/ui/btn.png') 12 fill / 10px stretch; color:#e3d9c4; font-weight:700; font-size:13px; padding:10px 14px; text-align:center; }
.btn:hover:not(:disabled) { border-image-source:url('/static/img/ui/btn_h.png'); color:#fff0c2; }
.btn:active:not(:disabled) { border-image-source:url('/static/img/ui/btn_p.png'); }
.btn.gold { border-image:url('/static/img/ui/cta.png') 12 fill / 10px stretch; color:#ffe9b8; }
.btn.gold:hover:not(:disabled) { border-image-source:url('/static/img/ui/cta_h.png'); color:#fff; }
.btn.sm { padding:7px 10px; font-size:12px; } .btn.wide { width:100%; }
.btn.link { border-image:none; border:0; color:var(--muted); text-decoration:underline; font-weight:400; padding:6px; }
input, select { width:100%; background:none; color:var(--text); font:inherit; padding:10px 12px; border:1px solid transparent; border-image:url('/static/img/ui/input.png') 8 fill / 8px stretch; outline:none; }
select option { background:#111; }

/* ---- escolha de classe ---- */
.pick { max-width:760px; margin:0 auto; padding:34px 16px 40px; }
.pitch { text-align:center; margin:16px auto 0; color:#d8cfbd; max-width:520px; } .pitch.small { font-size:12.5px; color:var(--gold2); }
.classes { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin:24px 0 14px; }
.cls { background:#0c0c0c url('/static/img/ui/leather.jpg'); border:5px solid transparent; border-image:url('/static/img/ui/frame.png') 56 / 26px / 4px stretch; padding:18px 8px 14px; display:flex; flex-direction:column; align-items:center; gap:6px; transition:transform .15s, filter .15s; }
.cls:hover { transform:translateY(-3px); filter:brightness(1.25); }
.cls img { width:96px; height:96px; border-radius:50%; border:2px solid var(--gold); box-shadow:0 0 18px #000; object-fit:cover; }
.cls b { color:var(--gold2); font-size:15px; } .cls span { color:var(--muted); font-size:11.5px; text-align:center; }

/* ---- topo ---- */
#topbar { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; padding:9px 14px; background:#0b0b0b url('/static/img/ui/leather.jpg'); border-bottom:1px solid var(--gold); box-shadow:0 1px 0 #000, 0 2px 0 #6a4a1c, 0 8px 20px #000a; position:relative; z-index:3; }
.brand { display:flex; flex-direction:column; gap:3px; }
.season-tag { font-size:10px; letter-spacing:2.5px; color:var(--gold); font-weight:700; } .season-tag b { color:var(--gold2); letter-spacing:.5px; }
.season-tag b.founder { text-shadow:0 0 8px #ffcf8c; }
.wallet { display:flex; gap:6px; margin-left:auto; flex-wrap:wrap; justify-content:flex-end; }
.coin { display:flex; gap:5px; align-items:center; font-weight:700; font-size:13px; padding:5px 10px; border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 8px stretch; font-variant-numeric:tabular-nums; min-width:54px; }
.coin img { width:18px; height:18px; object-fit:contain; } .coin small { font-weight:400; font-size:10.5px; color:var(--muted); } .coin.zen { color:var(--gold2); } .coin.zen::before { content:'Zen'; font-weight:400; font-size:10.5px; color:var(--muted); }
.coin.pop { animation:pop .5s; } @keyframes pop { 30% { transform:scale(1.18); filter:brightness(1.8); } }
.feed-bar { display:flex; gap:8px; align-items:center; padding:6px 14px; background:#000000cc; border-bottom:1px solid var(--border); box-shadow:inset 3px 0 0 var(--red); font-size:12.5px; min-height:30px; white-space:nowrap; overflow:hidden; }
.feed-live { color:var(--red); font-size:9px; animation:blink 1.4s infinite; } @keyframes blink { 50% { opacity:.25; } }
#feed-text b { color:var(--gold2); } #feed-text .exc { color:var(--exc); } #feed-text .ancient { color:var(--exc); background:var(--anc-bg); padding:0 4px; } #feed-text .wings { color:var(--plus); }
.devbar { display:flex; gap:6px; align-items:center; padding:5px 14px; background:#1a1206; border-bottom:1px dashed #6a4a1c; font-size:11px; overflow-x:auto; }
.devbar span { color:var(--gold); font-weight:700; letter-spacing:2px; } .devbar button { background:#2a1e0c; border:1px solid #6a4a1c; color:var(--gold2); padding:4px 8px; font-size:11px; white-space:nowrap; }

/* ---- janelas ---- */
#game { display:grid; grid-template-columns:340px minmax(0, 1fr) 404px; gap:14px; padding:14px; max-width:1500px; margin:0 auto; align-items:start; }
.win { position:relative; background:var(--panel) url('/static/img/ui/leather.jpg'); border:5px solid transparent; border-image:url('/static/img/ui/frame.png') 56 / 30px / 4px stretch; box-shadow:0 10px 30px #000c; padding:14px 14px 16px; min-width:0; }
.win-title { display:flex; align-items:center; gap:8px; background:url('/static/img/ui/header.png') left center / auto 100% no-repeat; padding:8px 8px 8px 34px; margin:0 -6px 10px; min-height:32px; font-size:12px; letter-spacing:2.5px; text-transform:uppercase; color:var(--gold2); font-weight:700; }
.win-title.sub { margin-top:14px; }
.win-title kbd { font:700 10px/1 monospace; color:#000; background:var(--gold); padding:3px 5px; border-radius:2px; letter-spacing:0; }
.win-title em { margin-left:auto; font-style:normal; letter-spacing:0; text-transform:none; color:var(--text); font-size:12.5px; font-variant-numeric:tabular-nums; }
.win-title em.full { color:var(--bad); animation:blink 1s infinite; }

/* ---- boneco ---- */
.doll { position:relative; display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:12px; background:#000000aa; border:1px solid var(--border); overflow:hidden; }
.doll::before { content:''; position:absolute; inset:0; background:var(--avatar) center 30% / 72% no-repeat; opacity:.16; filter:grayscale(.3); }
.slot { position:relative; aspect-ratio:1; background:#0a0a0a url('/static/img/ui/slot.png') center / 100% 100%; border:1px solid #2a2216; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.slot.tall { aspect-ratio:1 / 1.25; }
.slot img.it { max-width:86%; max-height:86%; object-fit:contain; filter:drop-shadow(0 2px 2px #000); pointer-events:none; }
.slot .ph { font-size:10px; color:#5c5345; letter-spacing:1px; text-transform:uppercase; }
.slot.blank { visibility:hidden; }
.slot .plus { position:absolute; right:3px; bottom:1px; font-size:11px; font-weight:700; color:#fff; text-shadow:0 0 3px #000, 0 1px 0 #000; }
.slot .lk { position:absolute; left:3px; top:3px; width:6px; height:6px; border-radius:50%; background:var(--opt); box-shadow:0 0 4px var(--opt); }
.slot .up { position:absolute; right:2px; top:0; font-size:11px; color:var(--exc); text-shadow:0 0 3px #000; }
.slot .lock { position:absolute; left:2px; bottom:1px; font-size:9px; color:var(--bad); font-weight:700; }
.slot.exc { box-shadow:inset 0 0 0 1px #19ff7f88, inset 0 0 12px #19ff7f44; }
.slot.ancient { box-shadow:inset 0 0 0 1px #19ff7fcc, inset 0 0 14px #2a52ffaa; background-color:#060f3a; background-blend-mode:screen; }
.slot.p7 .plus { color:var(--plus); } .slot.p7 img.it { animation:glow 2.2s infinite; }
@keyframes glow { 50% { filter:drop-shadow(0 0 5px #ffcc19) drop-shadow(0 2px 2px #000); } }
.slot.other img.it { opacity:.45; }
.slot:hover { filter:brightness(1.35); } .slot.sel { outline:2px solid var(--gold2); outline-offset:-2px; }
.slot.new { animation:newitem 1.2s; } @keyframes newitem { 0% { transform:scale(.3); filter:brightness(3); } 60% { transform:scale(1.12); } }
.char-line { display:flex; justify-content:space-between; align-items:baseline; margin:10px 2px 6px; } .char-line b { color:var(--gold2); font-size:15px; } .char-line span { color:var(--muted); font-size:12px; }
.statbox { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.stat { display:flex; justify-content:space-between; gap:6px; font-size:12.5px; padding:6px 9px; border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 7px stretch; }
.stat span { color:var(--muted); } .stat b { font-variant-numeric:tabular-nums; } .stat.wide { grid-column:1 / -1; }
.setline { font-size:12px; color:var(--plus); margin-top:8px; padding:6px 9px; background:#00000088; border-left:3px solid var(--plus); }
.setline small { color:#b9b3a6; display:block; }

/* ---- cena ---- */
.scene { position:relative; height:330px; overflow:hidden; border:1px solid var(--border); background:#050505; }
.scene::before { content:''; position:absolute; inset:-14px; background:var(--mapbg, url('/static/img/ui/bg.jpg')) center / cover no-repeat; filter:blur(1.6px) brightness(var(--bri, .95)) saturate(1.25) hue-rotate(var(--hue, 0deg)); }
.scene::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 58%, transparent 0, #0009 85%), linear-gradient(180deg, #000a, transparent 28%, transparent 60%, #000d); pointer-events:none; }
.scene > * { position:relative; z-index:1; }
.map-title { position:absolute; top:10px; left:0; right:0; text-align:center; font-family:Georgia, serif; font-size:24px; letter-spacing:5px; color:#f4ead2; text-shadow:0 2px 0 #000, 0 0 14px #b08d4f; }
.map-title small { display:block; font:400 11px/1.6 'Roboto', sans-serif; letter-spacing:1.5px; color:var(--muted); text-shadow:0 1px 0 #000; }
.boss-chip { position:absolute; top:10px; right:10px; font-size:11.5px; color:var(--gold2); background:#000a; border:1px solid var(--border); padding:4px 8px; cursor:pointer; font-variant-numeric:tabular-nums; }
.boss-chip.soon { color:#ff9a8a; border-color:var(--red); animation:blink 1.2s infinite; }
.mob { position:absolute; right:0; width:50%; top:84px; display:flex; justify-content:center; }
.mob::after { content:''; position:absolute; left:50%; top:86px; width:120px; height:22px; margin-left:-60px; background:radial-gradient(ellipse, #000c, #0000 70%); z-index:-1; }
.hero { position:absolute; left:0; width:50%; top:92px; display:flex; justify-content:center; }
.hero .ring { position:relative; width:96px; height:96px; border-radius:50%; border:2px solid var(--gold); box-shadow:0 0 0 2px #000, 0 0 18px #000, 0 10px 14px #000a; background:#111 var(--avatar) center / cover; }
.hero .ring.atk { animation:lunge .22s; } @keyframes lunge { 50% { transform:translateX(16px) rotate(4deg); } }
.hero .wp { position:absolute; right:-22px; bottom:-10px; height:74px; transform:rotate(28deg); filter:drop-shadow(0 3px 3px #000); }
.hero .lv { position:absolute; left:50%; bottom:-22px; transform:translateX(-50%); white-space:nowrap; font-size:11.5px; font-weight:700; color:var(--gold2); text-shadow:0 1px 0 #000; }
.slash { position:absolute; left:58%; top:98px; width:84px; height:84px; border-radius:50%; border-top:3px solid #fff; border-right:3px solid #fff0; transform:rotate(-30deg); opacity:0; pointer-events:none; filter:drop-shadow(0 0 6px #ffd24a); }
.slash.go { animation:slash .22s ease-out; } @keyframes slash { 0% { opacity:.95; transform:rotate(-70deg) scale(.6); } 100% { opacity:0; transform:rotate(40deg) scale(1.15); } }
.mob-emoji { font-size:92px; line-height:1; filter:drop-shadow(0 10px 8px #000); animation:idle 2.4s ease-in-out infinite; user-select:none; }
.mob-emoji.hit { animation:hit .18s; } .mob-emoji.die { animation:die .32s forwards; } .mob-emoji.boss { font-size:118px; filter:hue-rotate(95deg) saturate(1.5) drop-shadow(0 0 26px #c62828) drop-shadow(0 10px 8px #000); }
@keyframes idle { 50% { transform:translateY(-6px); } } @keyframes hit { 50% { transform:translateX(5px) scale(.96); filter:brightness(2.2); } }
@keyframes die { to { transform:translateY(22px) scale(.55) rotate(18deg); opacity:0; } }
.mob-info { position:absolute; right:5%; top:206px; width:40%; text-align:center; }
.mob-name { font-size:13px; font-weight:700; color:#ffe9b8; text-shadow:0 1px 0 #000; margin-bottom:4px; }
.hpbar { height:9px; background:#000; border:1px solid #5a0f0f; } .hpbar i { display:block; height:100%; width:100%; background:linear-gradient(180deg, #ff5a4a, #9c1414); }
.dmg { position:absolute; left:74%; top:112px; font-weight:700; font-size:15px; color:#ffd24a; text-shadow:0 1px 0 #000, 0 0 4px #000; pointer-events:none; animation:dmg .8s ease-out forwards; z-index:2; }
.dmg.crit { color:#7fd1ff; font-size:18px; } @keyframes dmg { to { transform:translate(var(--dx), -58px); opacity:0; } }
.ground { position:absolute; left:0; right:0; bottom:8px; display:flex; flex-wrap:wrap; gap:4px 10px; justify-content:center; padding:0 10px; max-height:86px; overflow:hidden; align-content:flex-end; }
.drop { font-size:12px; font-weight:700; padding:1px 6px; background:#000b; color:#e0e0e0; white-space:nowrap; animation:fall .45s ease-in, fade 1s 7s forwards; cursor:pointer; }
.drop.luck { color:var(--opt); } .drop.exc { color:var(--exc); } .drop.ancient { color:var(--exc); background:var(--anc-bg); } .drop.jewel, .drop.wings { color:var(--plus); } .drop.zen { color:#ffe9b8; font-weight:400; }
@keyframes fall { from { transform:translateY(-120px); opacity:0; } } @keyframes fade { to { opacity:0; } }
.boss-panel { position:absolute; left:10px; top:auto; bottom:10px; z-index:3; font-size:11.5px; background:#000b; border:1px solid var(--red); padding:6px 9px; min-width:150px; }
.boss-panel b { color:var(--gold2); } .boss-panel div { display:flex; justify-content:space-between; gap:10px; font-variant-numeric:tabular-nums; }
.scene.boss::before { filter:blur(3px) brightness(.35) saturate(1.6) hue-rotate(-28deg); }
.rates { display:grid; grid-template-columns:repeat(4, 1fr); gap:5px; margin-top:8px; text-align:center; }
.rates div { border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 7px stretch; padding:6px 2px; }
.rates span { display:block; font-size:10px; letter-spacing:.8px; text-transform:uppercase; color:var(--muted); } .rates b { font-size:14px; font-variant-numeric:tabular-nums; } .rates b.low { color:var(--bad); }
.maps { display:grid; grid-template-columns:repeat(3, 1fr); gap:5px; }
.map { text-align:left; padding:8px 10px 8px 26px; font-size:12.5px; color:#cfc6b4; background:none; border:1px solid transparent; border-image:url('/static/img/ui/row.png') 10 fill / 8px stretch; display:flex; justify-content:space-between; gap:6px; }
.map.on { border-image-source:url('/static/img/ui/row_on.png'); color:var(--gold2); font-weight:700; } .map small { color:var(--muted); font-weight:400; } .map.locked { opacity:.5; } .map.hard small { color:var(--bad); }
.mobs { display:flex; gap:5px; flex-wrap:wrap; margin-top:8px; }
.mobbtn { background:#000a; border:1px solid var(--border); padding:5px 9px; font-size:12px; color:#cfc6b4; } .mobbtn.on { border-color:var(--gold); color:var(--gold2); font-weight:700; }
.filters { display:flex; gap:5px; flex-wrap:wrap; } .filters .mobbtn { flex:1; }

/* ---- baú ---- */
.grid { display:grid; grid-template-columns:repeat(8, 1fr); gap:3px; background:#000; padding:5px; border:1px solid var(--border); }
.boxes { display:flex; align-items:center; gap:10px; padding:8px 10px; margin-bottom:8px; background:#1a0606; border:1px solid var(--red); }
.boxes img { width:30px; height:30px; } .boxes b { color:var(--gold2); flex:1; }
.vault-foot { display:flex; gap:6px; margin-top:8px; } .vault-foot .btn { flex:1; }
#vault-note { margin-top:8px; } #vault-note b { color:var(--bad); }

/* ---- janela do item (igual ao client) ---- */
.tip { position:fixed; z-index:60; pointer-events:none; max-width:270px; }
.tipbox { background:#000000e6; border:1px solid #4a4a4a; padding:8px 12px; text-align:center; font-size:12px; line-height:1.55; box-shadow:0 6px 20px #000; }
.tipbox div { white-space:nowrap; }
.tipbox .name { font-size:13.5px; font-weight:700; margin-bottom:4px; }
.tipbox .white { color:#fff; } .tipbox .gold { color:var(--plus); } .tipbox .exc { color:var(--exc); } .tipbox .anc { color:var(--exc); background:var(--anc-bg); padding:0 6px; }
.tipbox .blue { color:var(--opt); } .tipbox .red { color:#ff3b3b; } .tipbox .setname { color:var(--plus); margin-top:4px; } .tipbox .setopt { color:#a9a9a9; } .tipbox .setopt.on { color:var(--plus); }
.itemwin { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:start; }
.itemwin .pic { width:84px; height:104px; background:#0a0a0a url('/static/img/ui/slot.png') center / 100% 100%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; }
.itemwin .pic img { max-width:80%; max-height:86%; }
.itemwin .tipbox { box-shadow:none; }
.acts { display:flex; flex-direction:column; gap:7px; margin-top:12px; } .acts.row { flex-direction:row; flex-wrap:wrap; } .acts.row .btn { flex:1; min-width:120px; }
.jbtn { display:flex; align-items:center; justify-content:center; gap:6px; } .jbtn img { width:18px; height:18px; }
.cmp { font-size:12px; padding:6px 9px; margin-top:8px; background:#00000088; border-left:3px solid var(--gold); } .cmp.up { border-left-color:var(--exc); color:var(--exc); } .cmp.down { border-left-color:var(--bad); color:#ffb3aa; }

/* ---- modais ---- */
.overlay { position:fixed; inset:0; z-index:40; background:#000c; display:flex; align-items:center; justify-content:center; padding:12px; }
.modal { width:100%; max-width:520px; max-height:calc(100vh - 24px); overflow-y:auto; background:#0c0c0c url('/static/img/ui/leather.jpg'); border:5px solid transparent; border-image:url('/static/img/ui/frame.png') 56 / 34px / 4px stretch; padding:26px 20px 20px; box-shadow:0 18px 60px #000; position:relative; }
.modal.wide { max-width:760px; }
.modal h2 { font-family:Georgia, serif; font-size:21px; letter-spacing:1.5px; color:var(--gold2); text-align:center; }
.modal h2::after { content:''; display:block; height:10px; max-width:280px; margin:8px auto 12px; background:url('/static/img/ui/divider.png') center / 100% 100% no-repeat; }
.modal .x { position:absolute; right:14px; top:14px; width:34px; height:34px; background:url('/static/ui/ic-close.png') center / contain no-repeat; border:0; } .modal .x:hover { background-image:url('/static/ui/ic-close-h.png'); }
.modal p { margin:6px 0; }
.line { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #2a2216; } .line:last-child { border-bottom:0; }
.line .sub { font-size:11.5px; color:var(--muted); } .line > div:first-child { min-width:0; }
.note { border-left:3px solid var(--gold); background:#00000066; padding:9px 11px; font-size:12.5px; margin:10px 0; } .note.red { border-left-color:var(--red); } .note b { color:var(--gold2); }
.tabs { display:flex; gap:5px; margin-bottom:10px; flex-wrap:wrap; } .tabs button { flex:1; background:none; border:1px solid transparent; border-image:url('/static/img/ui/btn.png') 12 fill / 7px stretch; color:var(--muted); font-weight:700; padding:7px 8px; font-size:12px; white-space:nowrap; } .tabs button.on { border-image-source:url('/static/img/ui/btn_h.png'); color:var(--gold2); }
.offer { display:grid; grid-template-columns:52px 1fr auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #2a2216; } .offer:last-child { border-bottom:0; }
.offer .slot { width:52px; } .offer .nm { font-weight:700; font-size:13px; } .offer .nm.exc { color:var(--exc); } .offer .nm.ancient { color:var(--exc); background:var(--anc-bg); padding:0 5px; }
.offer .sub { font-size:11.5px; color:var(--muted); } .price { display:flex; align-items:center; gap:4px; font-weight:700; font-variant-numeric:tabular-nums; } .price img { width:16px; height:16px; }
.rank { width:100%; border-collapse:collapse; font-size:12.5px; } .rank th { text-align:left; color:var(--muted); font-weight:400; font-size:11px; letter-spacing:1px; text-transform:uppercase; padding:5px 6px; border-bottom:1px solid var(--border); }
.rank td { padding:7px 6px; border-bottom:1px solid #2a2216; font-variant-numeric:tabular-nums; } .rank tr.me td { color:var(--gold2); font-weight:700; } .rank .f { color:var(--gold2); text-shadow:0 0 8px #ffcf8c88; }
.sum { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; text-align:center; margin:10px 0; } .sum div { border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 8px stretch; padding:9px 2px; } .sum b { display:block; font-size:18px; color:var(--gold2); font-variant-numeric:tabular-nums; } .sum span { font-size:10.5px; color:var(--muted); letter-spacing:1px; text-transform:uppercase; }
.found { display:grid; grid-template-columns:repeat(6, 1fr); gap:4px; margin:8px 0; }
.reveal { display:flex; flex-direction:column; align-items:center; gap:10px; margin:6px 0; } .reveal .slot { width:96px; animation:newitem 1.1s; }
.pix-qr { width:210px; height:210px; background:#fff; padding:8px; border:1px solid var(--gold); margin:10px auto; display:block; }
.copy-row { display:flex; gap:6px; align-items:center; } .copy-row input { font-size:12px; } .copy-row .btn { flex:0 0 auto; }
#pp-buttons { min-height:100px; margin-top:10px; background:#fff; padding:12px 12px 2px; } #pp-buttons.loading { background:#ffffff18; }
#pay-email { margin:6px 0; }
a.btn.hidden { display:none !important; }
.toast { position:fixed; left:50%; bottom:calc(var(--hud) + 14px); transform:translateX(-50%); z-index:70; max-width:92vw; background:#150d06; border:1px solid var(--gold); color:#ffe9b8; padding:9px 14px; font-size:13px; box-shadow:0 8px 24px #000; text-align:center; }
.toast.err { border-color:var(--red); color:#ffc9c2; } .toast.good { border-color:var(--exc); color:var(--exc); }

/* ---- barra inferior do client: orbe vermelho · exp + atalhos · orbe azul ---- */
#hud { position:fixed; left:0; right:0; bottom:0; z-index:30; height:calc(var(--hud) + env(safe-area-inset-bottom)); padding:8px 14px env(safe-area-inset-bottom); display:flex; align-items:center; justify-content:center; gap:14px;
  background:linear-gradient(180deg, #0000, #000 22%), url('/static/img/ui/leather.jpg'); border-top:1px solid var(--gold); box-shadow:0 -1px 0 #000, 0 -2px 0 #6a4a1c, 0 -10px 26px #000c; }
.orb { position:relative; width:86px; height:86px; flex:0 0 auto; border-radius:50%; background:#050505; overflow:hidden; border:3px solid #2a2216; box-shadow:0 0 0 2px var(--gold), 0 0 0 4px #000, inset 0 0 18px #000, 0 4px 14px #000; }
.orb i { position:absolute; left:0; right:0; bottom:0; height:var(--fill, 100%); transition:height .6s; }
.orb.red i { background:radial-gradient(circle at 35% 30%, #ff8a7a, #d11a1a 45%, #5a0707); } .orb.blue i { background:radial-gradient(circle at 35% 30%, #8ec9ff, #1c5fd6 45%, #071f5a); }
.orb::after { content:''; position:absolute; inset:0; border-radius:50%; background:radial-gradient(circle at 32% 26%, #ffffff66 0, #fff0 26%), radial-gradient(circle at 50% 120%, #0009, #0000 60%); }
.orb b { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:1; font-size:13px; text-shadow:0 1px 2px #000, 0 0 4px #000; font-variant-numeric:tabular-nums; }
.orb.warn i { animation:blink 1s infinite; }
.hud-mid { flex:1; max-width:760px; min-width:0; display:flex; flex-direction:column; gap:7px; }
.xp { position:relative; height:16px; background:#000; border:1px solid #6a4a1c; overflow:hidden; } .xp i { display:block; height:100%; width:0; background:url('/static/ui/progress.png') left center / auto 100%; transition:width .5s; }
.xp span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; letter-spacing:.5px; text-shadow:0 1px 2px #000, 0 0 3px #000; }
.hud-btns { display:flex; gap:6px; justify-content:center; }
.hud-btns button { position:relative; background:none; border:0; display:flex; flex-direction:column; align-items:center; gap:1px; color:var(--muted); font-size:10px; padding:0 4px; min-width:50px; }
.hud-btns img { width:40px; height:40px; object-fit:contain; transition:transform .12s, filter .12s; } .hud-btns button:hover img, .hud-btns button.on img { transform:translateY(-2px); filter:brightness(1.4) drop-shadow(0 0 5px #b08d4f); }
.hud-btns button.on { color:var(--gold2); } .hud-btns .tabonly { display:none; }
.dot { position:absolute; top:0; right:6px; width:9px; height:9px; border-radius:50%; background:var(--red); box-shadow:0 0 6px var(--red); }

@media (max-width:1180px) { #game { grid-template-columns:300px minmax(0, 1fr) 340px; gap:10px; padding:10px; } .maps { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:940px) {
  :root { --hud:104px; }
  #game { display:block; padding:8px; }
  .win { display:none; margin-bottom:10px; } .win.show { display:block; }
  .hud-btns .tabonly { display:flex; } .hud-btns { justify-content:space-between; gap:0; } .hud-btns button { min-width:0; flex:1; padding:0; } .hud-btns img { width:32px; height:32px; }
  .hud-btns span { font-size:9px; } #hud { gap:8px; padding:6px 8px env(safe-area-inset-bottom); } .orb { width:54px; height:54px; border-width:2px; } .orb b { font-size:10.5px; }
  .scene { height:300px; } .mob { top:74px; } .mob-info { top:186px; width:44%; right:3%; } .hero { top:84px; } .hero .ring { width:76px; height:76px; } .hero .wp { height:58px; right:-16px; } .mob-emoji { font-size:76px; } .mob-emoji.boss { font-size:92px; } .slash { top:84px; } .coin small { display:none; } .classes { grid-template-columns:1fr; } .cls { flex-direction:row; text-align:left; padding:12px; gap:12px; } .cls img { width:64px; height:64px; } .cls span { text-align:left; }
  .boss-chip { top:60px; right:50%; transform:translateX(50%); font-size:11px; padding:2px 8px; white-space:nowrap; }
  .doll { max-width:340px; margin:0 auto; } .logo { font-size:36px; } .wallet .coin { padding:4px 7px; font-size:12px; min-width:0; } .coin.zen::before { display:none; }
  .maps { grid-template-columns:repeat(3, 1fr); } .map { padding:8px 6px 8px 20px; font-size:12px; flex-direction:column; gap:0; }
}
@media (max-width:420px) { .grid { grid-template-columns:repeat(6, 1fr); } .hud-btns span { display:none; } :root { --hud:92px; } .rates span { font-size:9px; } }
