/* ===== MU IDLE TEMPORADA — skin MuSangria/MuWorld (texturas do client em /static/img/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; --green:#7bd88f;
}
html { -webkit-text-size-adjust:100%; }
body {
  background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden;
  font-family:'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size:14px;
}
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-text { font-size:11px; margin-top:5px; line-height:1.35; }
a { color:var(--gold2); }
button { font-family:inherit; cursor:pointer; }
button:disabled { cursor:default; }
b.good, .good { color:var(--green); }
b.bad, .bad { color:#ff7a6b; }

/* ---- logo / boot ---- */
.logo { font-family:Georgia, serif; font-size:44px; letter-spacing:4px; color:#efe6d2; 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:21px; letter-spacing:2px; line-height:1; }
.boot { position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.boot-sub { letter-spacing:8px; color:var(--gold); font-weight:700; font-size:13px; }
.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); } }

/* ---- topo ---- */
#topbar {
  display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; padding:10px 16px;
  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:2;
}
.brand { display:flex; flex-direction:column; gap:3px; }
.season-tag { font-size:10px; letter-spacing:3px; color:var(--gold); font-weight:700; }
.season-tag b { color:var(--gold2); }
.season-chip {
  display:flex; align-items:center; gap:6px; padding:7px 12px; color:var(--gold2); font-weight:700; font-size:12px; background:none;
  border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 8px stretch;
}
.season-chip.ending { color:#ff9a8a; animation:pulse 1.6s infinite; }
@keyframes pulse { 50% { filter:brightness(1.5); } }
.topstats { display:flex; gap:8px; flex-wrap:wrap; margin-left:auto; }
.topstat {
  display:flex; gap:6px; align-items:center; font-weight:700; font-size:14px; padding:6px 12px; min-width:60px; color:var(--text); background:none;
  border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 8px stretch;
}
.topstat img { height:18px; width:auto; }
.topstat .ico { font-size:15px; }
.topstat.seal { color:var(--gold2); }
.topstat.seal:hover { filter:brightness(1.3); }
.topbuttons { display:flex; gap:6px; flex-wrap:wrap; }

/* ---- botões ---- */
.btn {
  position:relative; background:none; border:1px solid transparent; border-image:url('/static/img/ui/btn.png') 12 fill / 10px stretch;
  color:#f2d89a; font-weight:700; letter-spacing:.3px; text-shadow:0 1px 2px #000; font-size:13px; padding:10px 14px; transition:filter .12s;
}
.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:disabled { opacity:.45; filter:grayscale(.5); }
.btn.gold, .btn.reset.ready { border-image:url('/static/img/ui/cta.png') 12 fill / 10px stretch; color:#ffe9b8; }
.btn.gold:hover:not(:disabled), .btn.reset.ready:hover:not(:disabled) { border-image-source:url('/static/img/ui/cta_h.png'); color:#fff; }
.btn.gold:active:not(:disabled), .btn.reset.ready:active:not(:disabled) { border-image-source:url('/static/img/ui/cta_p.png'); }
.btn.small { width:100%; padding:9px 10px; font-size:12.5px; }
.btn.small-top { padding:8px 11px; min-height:36px; font-size:12.5px; }
.btn.reset { width:100%; margin-top:12px; padding:12px 14px; border-image:url('/static/img/ui/cta_p.png') 12 fill / 10px stretch; font-size:14px; }
.btn.reset.ready { animation:glow 1.4s infinite; }
@keyframes glow { 50% { filter:brightness(1.35) drop-shadow(0 0 8px #ff5a3c88); } }
.btn.jewel { display:flex; align-items:center; justify-content:center; gap:6px; }
.btn.jewel img { height:18px; }
.btn.link { border-image:none; border:0; color:var(--muted); text-decoration:underline; font-weight:400; padding:8px; }
.dot { position:absolute; top:-3px; right:-3px; width:10px; height:10px; border-radius:50%; background:#ff4b3a; box-shadow:0 0 0 2px #000; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:6px; }

/* ---- faixas ---- */
.feed-bar { display:flex; gap:8px; align-items:center; padding:7px 16px; background:#000000cc; border-bottom:1px solid var(--border); box-shadow:inset 3px 0 0 var(--red); font-size:12.5px; min-height:31px; overflow:hidden; white-space:nowrap; }
.feed-live { color:var(--red); font-size:10px; animation:pulse 1.6s infinite; }
#feed-text { overflow:hidden; text-overflow:ellipsis; }
#feed-text b { color:var(--gold2); }
.guest-bar { display:flex; gap:10px; align-items:center; justify-content:center; flex-wrap:wrap; padding:8px 16px; background:linear-gradient(90deg, #3a2a0c, #5a3d10, #3a2a0c); border-bottom:1px solid var(--gold); font-size:13px; color:#ffe9b8; }

/* ---- layout ---- */
#game { display:grid; grid-template-columns:290px 1fr 300px; gap:14px; padding:14px; max-width:1220px; margin:0 auto; align-items:start; }
.panel {
  background:#0b0b0b url('/static/img/ui/leather.jpg'); border:1px solid transparent;
  border-image:url('/static/img/ui/frame.png') 56 / 38px / 5px stretch; box-shadow:0 10px 30px #000c; padding:26px 22px 22px; min-width:0;
}
.panel-title {
  font-weight:700; font-size:13px; letter-spacing:2px; color:var(--gold2); text-shadow:0 1px 2px #000; text-transform:uppercase;
  background:url('/static/img/ui/header.png') left center / auto 100% no-repeat; padding:8px 8px 8px 36px; margin:16px -8px 10px; min-height:32px; line-height:16px;
}
#gear-panel > .panel-title:first-child { margin-top:0; }

/* ---- barras ---- */
.bar { height:16px; padding:3px 4px; overflow:hidden; margin:5px 0; border:1px solid transparent; border-image:url('/static/img/ui/bar.png') 5 fill / 5px stretch; }
.bar .fill { height:100%; width:0%; }
.bar.hp .fill { background:url('/static/img/ui/bar_hp.png') left center / 100% 100% no-repeat; }
.bar.xp .fill { background:url('/static/img/ui/bar_xp.png') left center / 100% 100% no-repeat; }

/* ---- personagem ---- */
.char-head { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.char-avatar { width:62px; height:62px; border-radius:50%; border:1px solid var(--gold); box-shadow:0 0 0 2px #000, 0 0 0 3px #6a4a1c, 0 3px 10px #000a; object-fit:cover; background:#000; }
.char-id { min-width:0; }
.char-nick { font-size:17px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nick-founder { color:var(--gold2); text-shadow:0 0 10px #ffcf8c88; }
.title-badge { display:inline-block; font-size:10px; font-weight:700; padding:2px 6px; margin-left:5px; vertical-align:middle; color:#1a1206; background:linear-gradient(180deg, #ffcf8c, #b08d4f); }
.level-row { display:flex; justify-content:space-between; align-items:baseline; font-size:14px; }
.level-row b { color:var(--gold2); font-size:17px; }
.derived { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; margin:14px 0 4px; text-align:center; font-size:13px; }
.derived div, .battle-stats div { border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 8px stretch; padding:8px 2px; }
.derived span, .battle-stats span { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); }
.derived b, .battle-stats b { color:var(--gold2); }
.points-row { display:flex; justify-content:space-between; align-items:center; margin:0 0 8px; font-size:13px; }
.points-row b { color:var(--gold2); }
.amount-toggle button { 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:5px 8px; font-size:11px; }
.amount-toggle button.on { border-image-source:url('/static/img/ui/btn_h.png'); color:var(--gold2); }
.stats { display:flex; flex-direction:column; gap:6px; }
.stat-row { display:grid; grid-template-columns:1fr auto 24px; gap:8px; align-items:center; font-size:13.5px; padding:8px 10px 8px 30px; border:1px solid transparent; border-image:url('/static/img/ui/stat.png') 8 10 8 28 fill / 8px 10px 8px 26px stretch; }
.stat-row b { color:var(--gold2); }
.stat-row button { width:24px; height:24px; border:0; font-size:0; background:url('/static/img/ui/plus.png') center / 100% 100% no-repeat; }
.stat-row button:hover:not(:disabled) { background-image:url('/static/img/ui/plus_h.png'); }
.stat-row button:disabled { opacity:.3; }
.auto-row { display:block; font-size:12px; color:var(--muted); margin:10px 0 0; cursor:pointer; }
.boons-box { display:flex; flex-wrap:wrap; gap:6px; font-size:12px; }
.boon-chip { padding:5px 8px; border:1px solid var(--border); background:#00000088; white-space:nowrap; }
.boon-chip b { color:var(--gold2); }

/* ---- batalha ---- */
#battle-panel {
  display:flex; flex-direction:column; align-items:center; min-height:440px;
  background:linear-gradient(180deg, #000000a8, #00000060 45%, #000000c8), url('/static/img/ui/bg.jpg') center 30% / cover no-repeat #0b0b0b;
}
.map-name { font-weight:700; color:var(--gold2); font-size:19px; letter-spacing:1.5px; text-shadow:0 2px 4px #000; margin-bottom:6px; }
#monster-area { position:relative; text-align:center; width:100%; flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; overflow:hidden; }
#monster-emoji { font-size:112px; line-height:1.2; filter:drop-shadow(0 8px 18px #000); user-select:none; transition:opacity .12s, transform .12s; }
#monster-emoji.dead { opacity:0; transform:scale(.6) translateY(20px); }
#monster-emoji.shake { animation:shake .16s; }
@keyframes shake { 30% { transform:translateX(-7px) rotate(-2deg); } 60% { transform:translateX(6px) rotate(2deg); } }
#monster-name { font-size:17px; font-weight:700; margin:8px 0 4px; text-shadow:0 2px 4px #000; color:#fff3d6; }
#monster-area .bar { max-width:360px; width:100%; height:18px; }
#hp-text { font-size:12px; text-shadow:0 1px 2px #000; }
.battle-stats { display:flex; gap:10px; margin-top:14px; text-align:center; flex-wrap:wrap; justify-content:center; }
.battle-stats div { min-width:104px; padding:8px 12px; }
.battle-stats b { font-size:16px; }
.mult-row { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin-top:10px; font-size:11.5px; }
.mult-row span { padding:4px 8px; background:#000000aa; border:1px solid var(--border); }
.mult-row span.on { border-color:var(--gold); color:var(--gold2); }
.float-dmg { position:absolute; top:28%; font-weight:800; font-size:20px; color:#ffe9b8; text-shadow:0 2px 0 #000, 0 0 10px #c6282899; pointer-events:none; animation:floatup .8s ease-out forwards; }
.float-dmg.crit { color:#ffcf8c; font-size:27px; text-shadow:0 2px 0 #000, 0 0 14px #ff5a3c; }
.float-dmg.drop { color:#8fd3ff; font-size:18px; top:50%; }
@keyframes floatup { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-70px); } }

/* ---- equipamento / mapas ---- */
.gear-box { text-align:center; }
.gear-name { font-size:15.5px; font-weight:700; color:var(--gold2); text-shadow:0 1px 2px #000; }
.gear-box .btn.small { margin-top:8px; }
.gear-box .row2 .btn.small { margin-top:0; }
.wing-img { max-height:92px; max-width:100%; display:block; margin:0 auto 6px; filter:drop-shadow(0 4px 10px #000); }
.seal-row { display:block; margin:14px 0 0; padding:9px 10px; font-size:12px; cursor:pointer; color:var(--gold2); border:1px dashed var(--gold); background:#b08d4f14; line-height:1.35; }
.seal-row.off { color:var(--muted); border-color:var(--border); }
.maps { display:flex; flex-direction:column; gap:5px; }
.map-item { display:flex; justify-content:space-between; gap:8px; align-items:center; text-align:left; padding:9px 30px; color:#cfc6b4; font-size:13px; font-weight:400; background:none; width:100%; border:1px solid transparent; border-image:url('/static/img/ui/row.png') 8 36 8 36 fill / 8px 30px stretch; }
.map-item:hover:not(.locked) { filter:brightness(1.35); }
.map-item.active { border-image-source:url('/static/img/ui/row_on.png'); color:var(--gold2); font-weight:700; }
.map-item.locked { opacity:.45; }
.map-item small { color:var(--muted); font-size:11px; white-space:nowrap; }
.map-item.best small { color:var(--green); font-weight:700; }

/* ---- janelas ---- */
.overlay { position:fixed; inset:0; background:#000000d9; display:flex; align-items:flex-start; justify-content:center; z-index:50; padding:4vh 12px; overflow-y:auto; }
.overlay-box {
  position:relative; width:100%; max-width:440px; text-align:center; margin:auto 0;
  background:#0b0b0b url('/static/img/ui/leather.jpg'); border:1px solid transparent;
  border-image:url('/static/img/ui/frame.png') 56 / 44px / 5px stretch; box-shadow:0 18px 60px #000; padding:44px 36px 34px;
}
.overlay-box.wide { max-width:720px; }
.overlay-box h2 { color:var(--gold2); letter-spacing:1px; text-shadow:0 2px 3px #000; font-size:21px; }
.overlay-box h2::after { content:''; display:block; height:12px; max-width:340px; margin:10px auto 0; background:url('/static/img/ui/divider.png') center / 100% 100% no-repeat; }
.overlay-sub { margin:10px 0 14px; color:#cfc6b4; line-height:1.45; }
.overlay-x { position:absolute; top:14px; right:16px; background:none; border:0; color:var(--muted); font-size:20px; padding:6px; z-index:2; }
.overlay-x:hover { color:var(--gold2); }
.overlay-actions { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.form { display:flex; flex-direction:column; gap:9px; margin-top:8px; }
.form input {
  width:100%; background:none; color:var(--text); font-family:inherit; font-size:15px; padding:12px 14px;
  border:1px solid transparent; border-image:url('/static/img/ui/input.png') 8 fill / 8px stretch; outline:none;
}
.form input:focus { filter:brightness(1.6); }
.form input::placeholder { color:#7d766a; }
.err { color:#ff7a6b; font-size:13px; min-height:18px; margin-top:4px; }
.tabs { display:flex; gap:6px; justify-content:center; margin:10px 0; flex-wrap:wrap; }
.tabs button { 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 12px; font-size:12px; }
.tabs button.on { border-image-source:url('/static/img/ui/btn_h.png'); color:var(--gold2); }
.inset { border:1px solid transparent; border-image:url('/static/img/ui/inset.png') 10 fill / 9px stretch; }

.class-grid, .boon-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:12px; }
.class-card, .boon-card { padding:14px 8px; cursor:pointer; color:var(--text); background:none; border:1px solid transparent; border-image:url('/static/img/ui/inset.png') 10 fill / 9px stretch; }
.class-card:hover, .boon-card:hover { filter:brightness(1.3); }
.class-card img { width:84px; height:84px; border-radius:50%; box-shadow:0 0 0 2px #000, 0 0 0 3px var(--gold), 0 6px 18px #000a; }
.class-card b, .boon-card b { display:block; margin:8px 0 3px; color:var(--gold2); font-size:14px; }
.class-card small, .boon-card small { color:var(--muted); font-size:11.5px; line-height:1.3; display:block; }
.boon-card .big { font-size:38px; line-height:1.1; }
.boon-card em { display:block; font-style:normal; font-size:11px; color:var(--green); margin-top:6px; }

.shop-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; text-align:left; }
.shop-item { position:relative; padding:14px 14px 12px; display:flex; flex-direction:column; gap:6px; border:1px solid transparent; border-image:url('/static/img/ui/inset.png') 10 fill / 9px stretch; }
.shop-item.hl { box-shadow:0 0 0 1px var(--gold), 0 0 16px #ffcf8c44; }
.shop-item h3 { font-size:15px; color:var(--gold2); }
.shop-item ul { list-style:none; font-size:12.5px; line-height:1.5; color:#cfc6b4; flex:1; }
.shop-item li::before { content:'◆ '; color:var(--gold); font-size:9px; }
.shop-price { font-size:19px; font-weight:700; color:var(--gold2); text-shadow:0 1px 2px #000; }
.shop-price small { font-size:11px; color:var(--muted); font-weight:400; }
.shop-btns { display:flex; gap:6px; flex-wrap:wrap; }
.shop-btns .btn { flex:1; padding:9px 8px; font-size:12.5px; white-space:nowrap; }
.badge { position:absolute; top:-8px; right:10px; font-size:10px; font-weight:700; padding:3px 8px; color:#1a1206; background:linear-gradient(180deg, #ffcf8c, #b08d4f); }
.owned { color:var(--green); font-weight:700; font-size:13px; }

.pix-qr { width:210px; height:210px; background:#fff; padding:8px; border:1px solid var(--gold); margin:8px auto; display:block; }
.copy-row { display:flex; gap:6px; }
.copy-row input { flex:1; min-width:0; background:none; color:var(--text); font-size:12px; padding:10px; border:1px solid transparent; border-image:url('/static/img/ui/input.png') 8 fill / 8px stretch; }
.copy-row .btn { white-space:nowrap; }
#pp-buttons { min-height:100px; margin-top:10px; background:#fff; padding:12px 12px 2px; }
#pp-buttons.loading { background:#ffffff18; }

table.rank { width:100%; border-collapse:collapse; font-size:13px; margin-top:8px; }
table.rank th { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); padding:6px 4px; text-align:left; border-bottom:1px solid var(--border); }
table.rank td { padding:7px 4px; text-align:left; border-bottom:1px solid #ffffff0d; }
table.rank tr.me td { background:#b08d4f22; color:var(--gold2); font-weight:700; }
table.rank td.pos { width:38px; font-weight:700; color:var(--gold2); }
.prize-line { font-size:12.5px; color:#cfc6b4; margin:8px 0; line-height:1.6; }
.prize-line b { color:var(--gold2); }

.daily-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; margin:12px 0; }
.daily-day { padding:10px 2px; font-size:11.5px; border:1px solid transparent; border-image:url('/static/img/ui/inset.png') 10 fill / 9px stretch; }
.daily-day b { display:block; color:var(--muted); font-size:10px; margin-bottom:4px; }
.daily-day.done { opacity:.4; }
.daily-day.today { box-shadow:0 0 0 1px var(--gold), 0 0 14px #ffcf8c55; }
.rew img { height:15px; vertical-align:-3px; }
.rew { white-space:nowrap; }

.pass-head { display:flex; gap:10px; align-items:center; margin:10px 0 4px; font-size:13px; }
.pass-head .bar { flex:1; margin:0; }
.pass-tiers { max-height:330px; overflow-y:auto; border:1px solid var(--border); background:#000000aa; margin-top:10px; text-align:left; }
.pass-row { display:grid; grid-template-columns:44px 1fr 1fr; gap:8px; align-items:center; padding:8px 10px; border-bottom:1px solid #ffffff0d; font-size:12.5px; }
.pass-row.head { position:sticky; top:0; background:#0b0b0b; font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); z-index:1; }
.pass-row.reached .tier { color:var(--gold2); }
.pass-row .tier { font-weight:700; color:var(--muted); }
.pass-row .got { opacity:.4; text-decoration:line-through; }
.pass-row .locked { opacity:.55; }
.pass-row .ready { color:var(--green); font-weight:700; }

.ach-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:10px; text-align:left; max-height:400px; overflow-y:auto; }
.ach-item { padding:9px 10px; font-size:12.5px; border:1px solid transparent; border-image:url('/static/img/ui/inset.png') 10 fill / 9px stretch; }
.ach-item.done { box-shadow:inset 0 0 0 1px var(--gold); }
.ach-item b { color:var(--gold2); display:block; }
.sum-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0; }
.sum-grid div { padding:10px; border:1px solid transparent; border-image:url('/static/img/ui/money.png') 10 fill / 8px stretch; }
.sum-grid span { display:block; font-size:10px; text-transform:uppercase; color:var(--muted); letter-spacing:.5px; }
.sum-grid b { color:var(--gold2); font-size:17px; }
.count { font-size:34px; font-weight:700; color:var(--gold2); letter-spacing:2px; margin:14px 0; text-shadow:0 2px 4px #000; }
.result-big { font-size:54px; line-height:1.2; margin:6px 0; }

#toast {
  position:fixed; left:50%; bottom:26px; transform:translateX(-50%); z-index:80; max-width:92vw; text-align:center;
  background:#0c0c0c url('/static/img/ui/leather.jpg'); border:1px solid var(--gold); box-shadow:0 0 0 1px #000, 0 8px 24px #000;
  color:var(--gold2); padding:12px 18px; font-weight:700; font-size:14px;
}
#toast.bad { border-color:#ff7a6b; color:#ffb4a8; }
#toast .btn { margin-left:10px; padding:6px 10px; font-size:12px; }
footer { text-align:center; color:var(--muted); font-size:12px; padding:14px 12px 26px; text-shadow:0 1px 2px #000; }
footer select { background:#0c0c0c; color:var(--text); border:1px solid var(--border); padding:4px 6px; font-family:inherit; font-size:12px; }
.dev-panel { position:fixed; left:8px; bottom:8px; z-index:70; background:#101820ee; border:1px solid #3d6a8a; padding:8px; font-size:11px; max-width:230px; color:#bfe3ff; }
.dev-panel b { display:block; margin-bottom:5px; cursor:pointer; }
.dev-panel button { background:#1b2c3a; color:#bfe3ff; border:1px solid #3d6a8a; padding:4px 6px; margin:2px 2px 0 0; font-size:11px; }
.dev-panel.min button { display:none; }

@media (min-width:901px) {
  #battle-panel { position:sticky; top:14px; height:clamp(440px, calc(100vh - 170px), 640px); }
}
@media (max-width:900px) {
  #game { grid-template-columns:1fr; padding:10px; gap:10px; }
  #battle-panel { order:-1; min-height:360px; }
  #monster-emoji { font-size:92px; }
  .topstats { margin-left:0; width:100%; order:3; }
  .topstat { flex:1; justify-content:center; padding:6px 8px; min-width:0; font-size:13px; }
  .topbuttons { order:4; width:100%; }
  .topbuttons .btn { flex:1; padding:8px 6px; }
  .season-chip { margin-left:auto; }
}
@media (max-width:560px) {
  .panel { padding:22px 16px 18px; border-image-width:32px; }
  .overlay-box { padding:38px 18px 26px; border-image-width:34px; }
  .shop-grid, .ach-grid { grid-template-columns:1fr; }
  .class-grid, .boon-grid { gap:6px; }
  .class-card img { width:62px; height:62px; }
  .daily-grid { grid-template-columns:repeat(4, 1fr); }
  .battle-stats div { min-width:90px; }
  .topbuttons .btn span { display:none; }
  .logo { font-size:36px; }
}
