/* games/lootloop/style.css — donker, rustig, één accent (messing). Weinig randen, veel lucht;
   kleur zegt iets: zeldzaamheid, geld, gevaar. Eén kolom van maximaal 520px. */
:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --ink: #0f1017;
  --panel: rgba(24, 26, 36, .92);
  --panel-2: #22252f;
  --panel-3: #2a2e3a;
  --line: rgba(255,255,255,.07);
  --text: #f2efe8;
  --muted: #9096a8;
  --gold: #ffc247;
  --scrap: #8fd0ff;
  --xp: #7be495;
  --danger: #ff6b6b;
  --c-common: #a6adb8; --c-uncommon: #58c97a; --c-rare: #4a96ff; --c-epic: #bf6fff; --c-legendary: #ffb433;
  --tabs-h: 62px;
  --font: "Avenir Next", "Segoe UI", "Noto Sans Thai", "Thonburi", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--font); overflow: hidden; }
body { font-size: 15px; line-height: 1.35; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; }
svg.i { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }
#c, #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#fx { pointer-events: none; }

/* ── overlay ────────────────────────────────────────────────────────────── */
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
.panel { position: absolute; inset: 0; bottom: calc(var(--tabs-h) + var(--safe-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--safe-top) + 66px) 16px 28px; display: none; }
.panel.on { display: block; }
.wrap { max-width: 520px; margin: 0 auto; }
[hidden] { display: none !important; }

/* topbalk */
#top { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--safe-top) + 8px) 16px 10px; background: linear-gradient(to bottom, rgba(15,16,23,.96) 55%, transparent); display: none; z-index: 3; }
#top.on { display: block; }
#top .wrap { display: flex; align-items: center; gap: 10px; }
.hero-badge { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.hero-badge .lvl { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(160deg, #3b3f56, #23263a); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.xp { height: 5px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; margin-top: 5px; }
.xp i { display: block; height: 100%; width: 0; background: var(--xp); border-radius: 4px; transition: width .3s; }
.hero-badge .name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-badge .power { color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 3px; }
.wallet { display: flex; gap: 6px; }
.coin { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 11px; background: rgba(255,255,255,.06); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.coin.gold { color: var(--gold); } .coin.scrap { color: var(--scrap); }
.coin svg { width: 14px; height: 14px; }

/* ── knoppen ───────────────────────────────────────────────────────────── */
.btn { appearance: none; border: 0; background: var(--panel-3); color: var(--text); border-radius: 13px; padding: 11px 16px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; transition: transform .08s, filter .15s; }
.btn:active { transform: scale(.97); filter: brightness(1.15); }
.btn.primary { background: linear-gradient(180deg, #ffd166, #e9a51c); color: #2a1c02; }
.btn.blue { background: linear-gradient(180deg, #4a9dff, #2f74dc); color: #fff; }
.btn.green { background: linear-gradient(180deg, #5ad07c, #2f9c52); color: #08210f; }
.btn.danger { background: linear-gradient(180deg, #ff6b6b, #c93f3f); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.grow { flex: 1; }
.spacer { height: 12px; }

/* ── hub / wereldkaart ─────────────────────────────────────────────────── */
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 8px 0 4px; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.worlds { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.worlds::-webkit-scrollbar { display: none; }
.wtab { flex: none; padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.06); font-weight: 700; font-size: 13px; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; color: var(--muted); }
.wtab i { width: 9px; height: 9px; border-radius: 50%; background: var(--w, #888); }
.wtab.on { background: color-mix(in srgb, var(--w, #fff) 26%, var(--panel-2)); color: var(--text); }
.wtab.locked { opacity: .5; }
.wtab svg.i { font-size: 12px; }
.world-card { border-radius: 18px; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--w, #888) 28%, var(--panel-2)), var(--panel-2) 80%); margin-bottom: 12px; }
.world-card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.world-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lvl-tile { position: relative; border: 0; border-radius: 16px; padding: 12px 8px 10px; background: var(--panel-2); color: var(--text); text-align: center; cursor: pointer; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }
.lvl-tile:active { transform: scale(.97); }
.lvl-tile .n { font-weight: 800; font-size: 17px; }
.lvl-tile .tier { font-size: 10px; color: var(--muted); font-weight: 700; }
.lvl-tile .stars { font-size: 12px; letter-spacing: 1px; color: var(--gold); min-height: 14px; }
.lvl-tile .stars.none { color: #3b4052; }
.lvl-tile.locked { opacity: .38; }
.lvl-tile.next { box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(255,194,71,.16); }
.lvl-tile.boss { background: linear-gradient(160deg, #3d2030, var(--panel-2)); }
.lvl-tile .badge { position: absolute; top: 8px; right: 8px; color: var(--gold); font-size: 14px; line-height: 0; }
.lvl-tile .badge svg { width: 16px; height: 16px; fill: currentColor; }
.chance { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.chance.hi { background: rgba(88,201,122,.18); color: #8ee6a1; }
.chance.mid { background: rgba(255,194,71,.18); color: #ffd97a; }
.chance.lo { background: rgba(255,94,108,.18); color: #ff9aa4; }
.nightmare-toggle { margin: 4px 0 14px; }
.tip { background: rgba(255,194,71,.1); padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #efe3c2; margin-bottom: 14px; }

/* ── uitrusting ────────────────────────────────────────────────────────── */
.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.slot { position: relative; aspect-ratio: 1; border: 0; border-radius: 16px; background: var(--panel-2); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--text); padding: 0; box-shadow: inset 0 0 0 2px var(--rc, transparent); }
.slot .ico { line-height: 0; color: #d9dee8; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.slot .ico svg { width: 30px; height: 30px; fill: currentColor; }
.slot.empty .ico { opacity: .2; }
.slot .lv { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 800; padding: 3px 0; text-align: center; background: rgba(0,0,0,.45); }
.slot .plus { position: absolute; top: 4px; right: 6px; font-size: 10px; font-weight: 800; color: #fff; }
.slot .slotname { position: absolute; top: 4px; left: 6px; font-size: 9px; font-weight: 700; color: var(--muted); }
.slot.r0 { --rc: rgba(166,173,184,.35); }
.slot.r1 { --rc: var(--c-uncommon); } .slot.r1 .ico { color: #9af0b0; }
.slot.r2 { --rc: var(--c-rare); } .slot.r2 .ico { color: #a9d0ff; }
.slot.r3 { --rc: var(--c-epic); box-shadow: inset 0 0 0 2px var(--rc), inset 0 0 18px rgba(191,111,255,.25); } .slot.r3 .ico { color: #dcb2ff; }
.slot.r4 { --rc: var(--c-legendary); box-shadow: inset 0 0 0 2px var(--rc), inset 0 0 18px rgba(255,180,51,.35), 0 0 12px rgba(255,180,51,.25); } .slot.r4 .ico { color: #ffe08a; }
.slot.picked { box-shadow: inset 0 0 0 3px #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: var(--panel-2); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; }
.stats div { display: flex; justify-content: space-between; }
.stats span { color: var(--muted); }
.stats b { font-variant-numeric: tabular-nums; }
.stats .full { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.sets { font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.sets b { color: var(--text); }
.bag-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.bag-head h3 { margin: 0; font-size: 15px; }
.bag { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bag .slot { border-radius: 13px; }
.bag .slot .ico svg { width: 24px; height: 24px; }
.bag .slot.better::after { content: '▲'; position: absolute; top: 3px; left: 5px; font-size: 10px; color: #8ee6a1; font-weight: 900; }
.empty-note { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0; }

/* ── sheet (voorwerpdetail) ────────────────────────────────────────────── */
#sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; background: #1b1d27; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.6); padding: 12px 18px calc(var(--safe-bottom) + 18px); transform: translateY(105%); transition: transform .22s ease-out; max-height: 80vh; overflow-y: auto; }
#sheet.on { transform: none; }
#sheet .wrap { max-width: 520px; margin: 0 auto; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #363a4a; margin: 0 auto 12px; }
.item-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.item-head .slot { width: 64px; flex: none; }
.item-head .slot .ico svg { width: 34px; height: 34px; }
.item-title { font-weight: 800; font-size: 16px; }
.item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rar-0 { color: var(--c-common); } .rar-1 { color: var(--c-uncommon); } .rar-2 { color: var(--c-rare); } .rar-3 { color: var(--c-epic); } .rar-4 { color: var(--c-legendary); }
.item-stats { display: grid; gap: 4px; margin-bottom: 12px; font-size: 14px; }
.item-stats div { display: flex; justify-content: space-between; padding: 7px 10px; background: var(--panel-2); border-radius: 9px; }
.item-stats .d { font-weight: 800; font-variant-numeric: tabular-nums; }
.item-stats .up { color: #8ee6a1; } .item-stats .down { color: #ff9aa4; } .item-stats .same { color: var(--muted); }
.item-stats .affix { color: #d8c7ff; }
.item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item-actions .btn.block { grid-column: 1 / -1; }
.cost { font-size: 12px; font-weight: 700; opacity: .9; display: inline-flex; align-items: center; gap: 3px; }
.cost svg { width: 12px; height: 12px; }
.cost.gold { color: var(--gold); } .cost.scrap { color: var(--scrap); }
.cost.no { color: var(--danger); }

/* ── smederij ─────────────────────────────────────────────────────────── */
.merge-box { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.merge-box .slot.empty { box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.merge-arrow { text-align: center; color: var(--muted); font-size: 20px; margin: -4px 0 8px; }
.slot-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.slot-pick .btn { gap: 8px; }
.slot-pick .btn svg { width: 16px; height: 16px; fill: currentColor; }
.slot-pick .btn.on { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); }
.help { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 10px 0 6px; }

/* ── instellingen ─────────────────────────────────────────────────────── */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting .lab { font-weight: 700; }
.setting .lab small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.seg { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 11px; padding: 3px; }
.seg .btn { border-radius: 9px; min-height: 34px; padding: 6px 14px; background: transparent; color: var(--muted); }
.seg .btn.on { background: var(--gold); color: #2a1c02; }

/* ── tabs ─────────────────────────────────────────────────────────────── */
#tabs { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tabs-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: rgba(15,16,23,.97); display: none; z-index: 5; }
#tabs.on { display: flex; }
#tabs .wrap { display: flex; width: 100%; max-width: 520px; margin: 0 auto; }
.tab { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: #6d7388; cursor: pointer; position: relative; }
.tab svg { width: 22px; height: 22px; fill: currentColor; }
.tab.on { color: var(--gold); }
.tab .dot { position: absolute; top: 9px; right: 24%; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* ── gevechts-HUD: één balk boven, levens + salvo onder ─────────────────── */
#hud { position: absolute; inset: 0; display: none; pointer-events: none; }
#hud.on { display: block; }
#hud > * { pointer-events: auto; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--safe-top) + 10px) 12px 0; }
.hud-top .wrap { display: flex; align-items: center; gap: 8px; }
.hbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(15,16,23,.78); color: #dfe3ee; display: grid; place-items: center; cursor: pointer; font-weight: 800; font-size: 12px; flex: none; backdrop-filter: blur(6px); }
.hbtn svg { width: 18px; height: 18px; fill: currentColor; }
.hbtn.on { background: var(--gold); color: #2a1c02; }
.hud-mid { flex: 1; height: 40px; border-radius: 12px; background: rgba(15,16,23,.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; }
.hud-level { font-weight: 800; font-size: 14px; }
.wave-dots { display: flex; gap: 6px; }
.wave-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.wave-dots i.done { background: var(--gold); }
.wave-dots i.cur { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.wave-dots i.elite { box-shadow: inset 0 0 0 2px rgba(255,107,107,.7); }
.wave-dots i.elite.done { background: #ff6b6b; }
.boss-bar { position: absolute; left: 12px; right: 12px; top: calc(var(--safe-top) + 58px); max-width: 420px; margin: 0 auto; background: rgba(15,16,23,.78); border-radius: 12px; padding: 7px 12px 9px; backdrop-filter: blur(6px); }
.boss-bar .hp-lbl { font-size: 11px; }
.boss-bar .hp { height: 7px; }
.boss-bar .hp i { background: linear-gradient(90deg, #bf6fff, #ff5e6c); }
.banner { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); text-align: center; font-weight: 900; font-size: 22px; letter-spacing: .01em; color: #fff; background: rgba(15,16,23,.8); border-radius: 999px; padding: 10px 22px; pointer-events: none; opacity: 0; white-space: nowrap; backdrop-filter: blur(6px); }
.banner small { margin-top: 2px; }
.banner.show { animation: banner 1.1s ease-out forwards; }
.banner small { display: block; font-size: 13px; font-weight: 700; color: #e6e8f0; }
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) translateY(8px); } 15% { opacity: 1; transform: translateX(-50%); } 75% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px calc(var(--safe-bottom) + 16px); }
.hud-bottom .wrap { display: flex; align-items: flex-end; gap: 12px; }
.hp-wrap { flex: 1; background: rgba(15,16,23,.78); border-radius: 14px; padding: 8px 12px 10px; backdrop-filter: blur(6px); }
.hp-lbl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.hp-lbl span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.hp { height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4d5f, #ff8a94); transition: width .12s; border-radius: 6px; }
.skill { width: 66px; height: 66px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ffe08a, #e9a51c 60%, #a8700a); color: #2a1c02; font-weight: 900; font-size: 10px; position: relative; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); flex: none; --cd: 0; }
.skill::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(10,10,16,.72) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; }
.skill .k { position: relative; z-index: 1; display: grid; place-items: center; gap: 1px; }
.skill .k svg { width: 24px; height: 24px; fill: currentColor; }
.skill.ready { box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 3px rgba(255,224,138,.5), 0 0 26px rgba(255,194,71,.7); }
.skill:active { transform: scale(.95); }

/* ── modals: kist, uitslag, bevestiging ───────────────────────────────── */
#modal { position: absolute; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,9,14,.7); backdrop-filter: blur(6px); }
#modal.on { display: flex; }
.card { width: 100%; max-width: 420px; background: #1b1d27; border-radius: 24px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: pop .25s ease-out; max-height: 88vh; overflow-y: auto; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; text-align: center; }
.card .sub { text-align: center; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.result-grid div { background: var(--panel-2); border-radius: 13px; padding: 10px 6px; text-align: center; }
.result-grid b { display: block; font-size: 18px; }
.result-grid small { color: var(--muted); font-size: 11px; font-weight: 700; }
.result-grid .g b { color: var(--gold); } .result-grid .s b { color: var(--scrap); } .result-grid .x b { color: var(--xp); }
.big-stars { text-align: center; font-size: 30px; letter-spacing: 4px; color: var(--gold); margin: 4px 0 6px; }
.big-stars .off { color: #363a4a; }
.chest-scene { height: 170px; display: grid; place-items: center; position: relative; margin-bottom: 6px; }
.chest-scene canvas { width: 100%; height: 100%; }
.drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.drop { border-radius: 16px; background: var(--panel-2); color: var(--text); padding: 10px 6px 8px; text-align: center; transform: scale(.6); opacity: 0; animation: reveal .5s cubic-bezier(.2,1.4,.4,1) forwards; box-shadow: inset 0 0 0 2px var(--rc, transparent); display: flex; flex-direction: column; gap: 6px; }
.drop .drop-open { border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; text-align: center; flex: 1; }
.drop .af { font-size: 10px; color: #d8c7ff; font-weight: 700; margin-top: 3px; }
.drop.better .nm::before { content: '▲ '; color: #8ee6a1; }
.drop .btn.sm { min-height: 32px; padding: 5px 6px; font-size: 12px; }
.drop-tag { font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 0; }
.drop-tag.on { color: #8ee6a1; }
.drops.one { grid-template-columns: 1fr; max-width: 200px; margin: 6px auto 14px; }
.drop .ico { line-height: 0; color: #d9dee8; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.drop .ico svg { width: 38px; height: 38px; fill: currentColor; }
.drop .nm { font-size: 11px; font-weight: 800; margin-top: 6px; line-height: 1.15; }
.drop .lv { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.drop.r1 { --rc: var(--c-uncommon); } .drop.r1 .ico { color: #9af0b0; }
.drop.r2 { --rc: var(--c-rare); box-shadow: inset 0 0 0 2px var(--rc), 0 0 16px rgba(74,150,255,.3); } .drop.r2 .ico { color: #a9d0ff; }
.drop.r3 { --rc: var(--c-epic); box-shadow: inset 0 0 0 2px var(--rc), 0 0 22px rgba(191,111,255,.45); } .drop.r3 .ico { color: #dcb2ff; }
.drop.r4 { --rc: var(--c-legendary); box-shadow: inset 0 0 0 2px var(--rc), 0 0 28px rgba(255,180,51,.65); animation: reveal .5s cubic-bezier(.2,1.4,.4,1) forwards, legend 1.2s .5s infinite alternate; } .drop.r4 .ico { color: #ffe08a; }
@keyframes reveal { to { transform: none; opacity: 1; } }
@keyframes legend { from { box-shadow: inset 0 0 0 2px var(--rc), 0 0 18px rgba(255,180,51,.5); } to { box-shadow: inset 0 0 0 2px var(--rc), 0 0 34px rgba(255,180,51,.95); } }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.waves-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wave-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 4px 8px 4px 6px; font-size: 12px; font-weight: 800; }
.wave-chip .por { width: 22px; height: 22px; }
.wave-chip.elite { box-shadow: inset 0 0 0 1.5px rgba(255,107,107,.6); }
.wave-chip.boss { box-shadow: inset 0 0 0 1.5px rgba(255,194,71,.7); }

/* ── titel ─────────────────────────────────────────────────────────────── */
#title { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; padding: 0 20px calc(var(--safe-bottom) + 56px); background: linear-gradient(to top, rgba(15,16,23,.96) 30%, transparent 70%); z-index: 4; }
#title.on { display: flex; }
#title .wrap { text-align: center; }
.logo { font-size: 48px; font-weight: 900; letter-spacing: -.02em; line-height: 1; text-shadow: 0 4px 0 #6b4a00, 0 0 40px rgba(255,194,71,.45); color: var(--gold); }
.logo span { color: var(--text); text-shadow: 0 4px 0 #222; }
.tagline { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.toast { position: absolute; left: 50%; top: calc(var(--safe-top) + 70px); transform: translateX(-50%) translateY(-10px); background: #1b1d27; color: var(--text); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 20; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) { .drop, .card, .banner.show { animation: none !important; opacity: 1; transform: none; } }
@media (min-width: 720px) { body { font-size: 16px; } .bag { grid-template-columns: repeat(6, 1fr); } }
