/* ============================================================
   LOOT SPIN — Styles
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0b0a14; --bg2: #14111f;
  --panel: rgba(26, 22, 40, 0.72); --panel-solid: #1a1628;
  --border: rgba(255, 255, 255, 0.08); --border-lit: rgba(192, 132, 252, 0.4);
  --text: #f3f0fa; --muted: #9a93b3;
  --gold: #fbbf24; --purple: #c084fc; --cyan: #4cc9f0; --gem: #22d3ee;
  --radius: 16px; --shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}
/* COLOR THEMES (Feature 9) — override accent vars via a class on <html> */
html.theme-emerald {
  --purple: #34d399; --gold: #fcd34d; --cyan: #2dd4bf; --gem: #34d399;
  --border-lit: rgba(52, 211, 153, 0.42);
}
html.theme-crimson {
  --purple: #fb7185; --gold: #fbbf24; --cyan: #f472b6; --gem: #fb7185;
  --border-lit: rgba(251, 113, 133, 0.42);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--text); min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 10% -8%, rgba(192,132,252,.16), transparent 60%),
    radial-gradient(1000px 650px at 92% 4%, rgba(251,191,36,.12), transparent 60%),
    radial-gradient(900px 800px at 50% 120%, rgba(76,201,240,.13), transparent 60%),
    var(--bg);
}
h1, h2, h3, button, .tab, .stat-num, .lc-name, .section-title, .bt-name, .pb-label { font-family: 'Oxanium', sans-serif; }
.wrap { max-width: 920px; margin: 0 auto; padding: 20px 16px 80px;
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
button, .tab, .icon-btn, .coll-cell, .banner-tab, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* HEADER */
header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, var(--gold), var(--purple)); box-shadow: 0 0 22px rgba(192,132,252,.5); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.brand h1 { font-size: clamp(22px,5vw,30px); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; line-height: 1;
  background: linear-gradient(90deg,#fff,var(--gold) 70%,var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .sub { color: var(--muted); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 4px; }
.wallet { display: flex; align-items: center; gap: 8px; }
.gems { display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 9px 15px; font-family: 'Oxanium'; font-weight: 800; font-size: 18px; color: var(--gem); backdrop-filter: blur(8px); }
.gem-ico { filter: drop-shadow(0 0 5px rgba(34,211,238,.6)); }
.claim { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 12px; padding: 9px 12px;
  font-family: 'Oxanium'; font-weight: 700; font-size: 14px; cursor: pointer; transition: .18s; white-space: nowrap; }
.claim.ready { background: linear-gradient(135deg, var(--gold), #f59e0b); color: #1a1100; border-color: transparent; box-shadow: 0 0 16px rgba(251,191,36,.5); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.claim:disabled { cursor: default; opacity: .85; }

/* TABS */
.tabs { display: flex; gap: 7px; margin-bottom: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 7px; backdrop-filter: blur(10px); position: sticky; top: 8px; z-index: 30; }
.tab { flex: 1; border: none; cursor: pointer; color: var(--muted); background: transparent; padding: 11px; border-radius: 11px; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; transition: .18s; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--purple), var(--gold)); box-shadow: 0 0 18px rgba(192,132,252,.4); }
.tab .ti { font-size: 16px; }

.panel { display: none; animation: fade .3s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.section-title { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row.center { justify-content: center; }

/* BUTTONS */
.btn { font-family: 'Oxanium'; cursor: pointer; border: none; border-radius: 12px; padding: 14px 22px; font-size: 16px; font-weight: 800; letter-spacing: .5px; color: #fff; transition: .18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), #8b5cf6); box-shadow: 0 10px 26px rgba(139,92,246,.32); }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #f59e0b); color: #1a1100; box-shadow: 0 10px 26px rgba(251,191,36,.32); }
.btn.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--border); box-shadow: none; }
.btn.sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }

.icon-btn { border: 1px solid var(--border); background: var(--panel-solid); color: var(--text); border-radius: 10px; min-width: 40px; height: 40px; padding: 0 10px; cursor: pointer; font-size: 16px; font-family: 'Oxanium'; font-weight: 700; transition: .15s; }
.icon-btn:hover { border-color: var(--border-lit); }
.icon-btn.wide { font-size: 13px; }
.icon-btn.off { opacity: .55; } .icon-btn.on { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(251,191,36,.3); }

/* BANNER */
.banner-tabs { display: flex; gap: 10px; margin-bottom: 12px; }
.banner-tab { flex: 1; cursor: pointer; border: 1px solid var(--border); background: var(--panel-solid); color: var(--muted); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: .18s; }
.banner-tab .bt-icon { font-size: 24px; } .banner-tab .bt-name { font-weight: 700; font-size: 13px; }
.banner-tab.active { color: #fff; border-color: var(--gold); background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(192,132,252,.12)); box-shadow: 0 0 16px rgba(251,191,36,.25); }
.banner-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.banner-desc { color: var(--muted); font-size: 13px; flex: 1; min-width: 180px; line-height: 1.45; }
.banner-tools { display: flex; gap: 7px; }

/* REEL (case opener) */
.reel-wrap { display: none; margin-bottom: 16px; }
.reel { position: relative; height: 124px; border-radius: 14px; overflow: hidden; background: #0d0b16; border: 1px solid var(--border); box-shadow: inset 0 0 30px rgba(0,0,0,.6); cursor: pointer; }
.reel-strip { display: flex; gap: 10px; height: 100%; align-items: center; padding-left: 7px; will-change: transform; }
.reel-tile { flex: none; width: 100px; height: 100px; border-radius: 12px; display: grid; place-items: center; font-size: 46px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 22%, #15121f), #15121f 70%); border: 2px solid var(--rc); box-shadow: 0 0 14px var(--rg); }
.reel-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--gold); z-index: 5; box-shadow: 0 0 12px var(--gold); }
.reel-marker::before, .reel-marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; }
.reel-marker::before { top: 0; border-top: 10px solid var(--gold); } .reel-marker::after { bottom: 0; border-bottom: 10px solid var(--gold); }
.reel-fade { position: absolute; top: 0; bottom: 0; width: 70px; z-index: 4; pointer-events: none; }
.reel-fade.left { left: 0; background: linear-gradient(90deg, #0d0b16, transparent); }
.reel-fade.right { right: 0; background: linear-gradient(270deg, #0d0b16, transparent); }
.reel-hint { text-align: center; color: var(--muted); font-size: 11px; margin-top: 6px; letter-spacing: 1px; text-transform: uppercase; }

/* LOOT CARD */
.result { min-height: 4px; }
.loot-card { position: relative; border-radius: 16px; padding: 18px; text-align: center; border: 2px solid var(--rc);
  background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--rc) 16%, var(--panel-solid)), var(--panel-solid) 72%); box-shadow: 0 0 26px var(--rg); }
.loot-card.big { max-width: 280px; margin: 8px auto 0; padding: 26px 22px; animation: revealIn .55s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes revealIn { 0% { transform: scale(.55) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.lc-rarity { font-family: 'Oxanium'; font-weight: 800; font-size: 13px; letter-spacing: 1px; color: var(--rc); text-transform: uppercase; }
.lc-icon { font-size: 64px; line-height: 1; margin: 10px 0; filter: drop-shadow(0 4px 10px var(--rg)); }
.loot-card.big .lc-icon { font-size: 88px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.lc-name { font-size: 19px; font-weight: 700; }
.loot-card:not(.big) .lc-name { font-size: 13px; }
.lc-flav { color: var(--muted); font-size: 12.5px; font-style: italic; margin-top: 8px; line-height: 1.4; }
.new-badge, .dup-badge { position: absolute; top: 9px; right: 9px; font-family: 'Oxanium'; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 999px; letter-spacing: 1px; }
.new-badge { background: var(--cyan); color: #04121a; box-shadow: 0 0 12px rgba(76,201,240,.6); }
.dup-badge { background: rgba(255,255,255,.1); color: var(--gem); border: 1px solid var(--border); }

.multi-summary { display: flex; justify-content: center; gap: 10px; color: var(--muted); font-family: 'Oxanium'; font-size: 13px; margin: 6px 0 14px; }
.multi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.multi-grid .loot-card { opacity: 0; }
.multi-grid .loot-card.pop { animation: popIn .42s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes popIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* PITY + PULL CONTROLS */
.pity { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0; }
.pull-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pull-btn { flex-direction: column; gap: 3px; padding: 16px; }
.pb-label { font-size: 17px; font-weight: 800; } .pb-cost { font-size: 13px; font-weight: 600; opacity: .9; }

/* COLLECTION */
.coll-bar-top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.coll-bar { height: 12px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--border); overflow: hidden; margin-bottom: 18px; }
.coll-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--gold)); transition: width .5s ease; }
.coll-group { margin-bottom: 18px; }
.coll-group-head { font-family: 'Oxanium'; font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.coll-cell { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; position: relative; cursor: pointer; transition: .15s; border: 1px solid var(--border); }
.coll-cell .cc-icon { font-size: 30px; }
.coll-cell.owned { border: 2px solid var(--rc); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 18%, var(--panel-solid)), var(--panel-solid) 75%); box-shadow: 0 0 12px var(--rg); }
.coll-cell.locked { background: var(--panel-solid); } .coll-cell.locked .cc-icon { opacity: .25; filter: grayscale(1); }
.coll-cell:hover { transform: translateY(-2px); }
.cc-count { position: absolute; bottom: 3px; right: 5px; font-family: 'Oxanium'; font-weight: 800; font-size: 11px; color: var(--gem); }

/* STATS */
.stats { display: flex; gap: 10px; } .stats .stat { flex: 1; }
.stat { background: var(--panel-solid); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--cyan); } .stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-lbl { font-family: 'Oxanium'; font-weight: 700; font-size: 12px; width: 78px; flex: none; }
.bar-track { flex: 1; height: 14px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .5s ease; min-width: 2px; }
.bar-val { font-family: 'Oxanium'; font-weight: 700; font-size: 13px; width: 44px; text-align: right; flex: none; }

/* MODAL */
#modal-wrap { position: fixed; inset: 0; background: rgba(5,4,10,.7); backdrop-filter: blur(4px); z-index: 80; display: none; align-items: center; justify-content: center; padding: 18px; }
#modal-wrap.show { display: flex; animation: fade .2s ease; }
#modal { --accent: var(--gold); background: var(--bg2); border: 1px solid var(--accent); border-radius: 18px; max-width: 420px; width: 100%; max-height: 84vh; overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg2);
  font-family: 'Oxanium'; font-weight: 800; font-size: 16px; color: var(--accent); }
#modal-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
#modal-body { padding: 18px; }
.rate-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-family: 'Oxanium'; font-weight: 700; font-size: 14px; }
.rate-row .rr-count { color: var(--muted); font-weight: 500; font-size: 12px; }
.modal-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 14px; }
.item-detail { text-align: center; } .id-icon { font-size: 80px; filter: drop-shadow(0 4px 12px var(--rg)); } .id-name { font-family: 'Oxanium'; font-weight: 800; font-size: 22px; color: var(--rc); margin-top: 8px; }
.id-flav { color: var(--muted); font-style: italic; margin-top: 8px; } .id-meta { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* CRAFT */
.dust-bal { text-align: center; font-family: 'Oxanium'; font-size: 20px; color: var(--purple); background: var(--panel-solid); border: 1px solid var(--border-lit); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.dust-bal .dust-ico { filter: drop-shadow(0 0 6px rgba(192,132,252,.6)); }
.craft-list { display: flex; flex-direction: column; gap: 9px; }
.craft-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--border); border-left: 4px solid var(--rc); }
.cr-info { flex: 1; min-width: 0; }
.cr-rarity { font-family: 'Oxanium'; font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.cr-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cr-btn { flex: none; min-width: 92px; }

/* PULL HISTORY */
.hist-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-chip { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; border: 2px solid var(--rc); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 16%, var(--panel-solid)), var(--panel-solid) 75%); box-shadow: 0 0 8px var(--rg); }

/* ACHIEVEMENTS */
.ach-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--border); margin-bottom: 8px; opacity: .55; transition: .15s; }
.ach-row.got { opacity: 1; border-color: var(--border-lit); }
.ach-ico { font-size: 24px; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.04); }
.ach-text { flex: 1; min-width: 0; }
.ach-name { font-family: 'Oxanium'; font-weight: 700; font-size: 14px; }
.ach-desc { color: var(--muted); font-size: 12px; margin-top: 1px; }
.ach-check { color: var(--gold); font-size: 18px; font-weight: 800; }

/* DAILY BONUS */
.daily-bonus { text-align: center; padding: 8px 0; }
.db-streak { font-family: 'Oxanium'; font-weight: 800; font-size: 16px; color: var(--gold); letter-spacing: 1px; }
.db-amount { font-family: 'Oxanium'; font-weight: 800; font-size: 44px; color: var(--gem); margin: 8px 0; text-shadow: 0 0 24px rgba(34,211,238,.5); }

/* BATTLE */
.bt-stamina-row { text-align: center; font-family: 'Oxanium'; font-size: 16px; color: var(--gold); margin-bottom: 14px; }
.bt-stamina-row .bt-regen { font-size: 12px; color: var(--muted); font-family: 'Inter'; }
.bt-section-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.bt-section-label span { color: var(--purple); text-transform: none; letter-spacing: 0; }
.bt-squad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.bt-slot { aspect-ratio: 1; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: .15s; position: relative; }
.bt-slot.empty { border: 2px dashed var(--border); background: var(--panel-solid); color: var(--muted); font-size: 26px; }
.bt-slot.empty:hover { border-color: var(--purple); color: var(--purple); }
.bt-slot.filled { border: 2px solid var(--rc); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 18%, var(--panel-solid)), var(--panel-solid) 75%); box-shadow: 0 0 12px var(--rg); }
.bt-slot .bt-ti { font-size: 28px; line-height: 1; } .bt-slot .bt-lv { font-family: 'Oxanium'; font-size: 9px; color: var(--muted); } .bt-slot .bt-pw { font-family: 'Oxanium'; font-size: 10px; font-weight: 700; color: var(--rc); }
.bt-power { text-align: center; font-family: 'Oxanium'; color: var(--text); margin-bottom: 16px; font-size: 14px; }
.bt-power b { color: var(--cyan); }
.bt-stage { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bt-step { width: 44px; height: 44px; flex: none; border-radius: 11px; border: 1px solid var(--border); background: var(--panel-solid); color: var(--text); font-size: 16px; cursor: pointer; }
.bt-step:disabled { opacity: .35; cursor: default; }
.bt-stage-mid { flex: 1; text-align: center; font-family: 'Oxanium'; font-weight: 700; font-size: 16px; }
.bt-best { font-family: 'Inter'; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 2px; }
.bt-enemy { margin-bottom: 14px; }
.bt-foe { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--border); }
.bt-foe.boss { border-color: var(--gold); box-shadow: 0 0 16px rgba(251,191,36,.25); background: linear-gradient(135deg, rgba(251,191,36,.1), var(--panel-solid)); }
.bt-foe-ico { font-size: 40px; } .bt-foe-name { font-family: 'Oxanium'; font-weight: 700; font-size: 16px; } .bt-foe-pow { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bt-fight { width: 100%; font-size: 18px; padding: 16px; }
/* arena */
.bt-arena { background: #0d0b16; border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; cursor: pointer; }
.bt-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.bt-side { text-align: center; }
.bt-avatars { font-size: 26px; min-height: 34px; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; } .bt-avatars.big { font-size: 48px; }
.bt-hp { height: 12px; border-radius: 999px; background: #1c1830; border: 1px solid var(--border); overflow: hidden; margin: 8px 0 4px; }
.bt-hp-fill { height: 100%; width: 100%; border-radius: 999px; transition: width .12s linear; }
.bt-hp-fill.me { background: linear-gradient(90deg, #2ec4b6, #4cc9f0); } .bt-hp-fill.foe { background: linear-gradient(90deg, #fb7185, #f59e0b); }
.bt-hp-lbl { font-family: 'Oxanium'; font-size: 12px; color: var(--muted); }
.bt-vs-x { font-family: 'Oxanium'; font-weight: 800; color: var(--muted); font-size: 14px; }
.bt-log { max-height: 92px; overflow: hidden; font-size: 12px; color: #b9b4cc; line-height: 1.7; text-align: center; }
.bt-log .crit { color: var(--gold); font-weight: 800; }
.bt-skip { text-align: center; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
/* result */
.bt-res { text-align: center; padding: 18px; border-radius: 14px; margin-bottom: 14px; animation: revealIn .4s cubic-bezier(.2,.9,.3,1.2) both; }
.bt-res.win { background: linear-gradient(135deg, rgba(46,196,182,.16), rgba(76,201,240,.1)); border: 1px solid var(--cyan); }
.bt-res.lose { background: rgba(251,113,133,.1); border: 1px solid #fb7185; }
.bt-res-title { font-family: 'Oxanium'; font-weight: 800; font-size: 26px; }
.bt-res.win .bt-res-title { color: var(--cyan); } .bt-res.lose .bt-res-title { color: #fb7185; }
.bt-res-sub { color: #d4d4e4; font-size: 13.5px; margin-top: 6px; }
.bt-res-rw { font-family: 'Oxanium'; font-weight: 800; font-size: 20px; color: var(--gold); margin-top: 10px; }
/* squad picker (in modal) */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.pick { border: 2px solid var(--border); border-radius: 12px; padding: 10px 6px; text-align: center; cursor: pointer; transition: .15s; background: var(--panel-solid); }
.pick.in { border-color: var(--rc); box-shadow: 0 0 12px var(--rg); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 18%, var(--panel-solid)), var(--panel-solid) 75%); }
.pick .pk-ico { font-size: 30px; } .pick .pk-nm { font-size: 11px; font-weight: 600; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pick .pk-st { font-family: 'Oxanium'; font-size: 10px; color: var(--muted); margin-top: 2px; }
.pick.in .pk-st { color: var(--rc); }

/* DAILY GEM WHEEL + CODES */
.btn.ready { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.gw-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gw-stage { position: relative; width: 300px; height: 300px; max-width: 78vw; max-height: 78vw; }
#gw-canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.05), var(--shadow); }
.gw-ptr { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 22px solid var(--gold); z-index: 5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.gw-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--bg2); border: 3px solid var(--gold); display: grid; place-items: center; font-size: 22px; z-index: 4; box-shadow: 0 0 16px rgba(251,191,36,.5); }
.gw-result { font-family: 'Oxanium'; font-size: 20px; font-weight: 800; color: var(--gem); text-align: center; min-height: 26px; }
.gw-done { font-family: 'Oxanium'; font-weight: 700; color: #4ade80; }
.daily-next { text-align: center; color: var(--muted); font-size: 13px; } .daily-next b { color: var(--gem); font-family: 'Oxanium'; }
.code-row { display: flex; gap: 8px; }
.gem-input { flex: 1; background: var(--panel-solid); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: 'Oxanium', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.gem-input:focus { outline: none; border-color: var(--gold); }

/* SETTINGS */
.settings-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.btn.danger { color: #ff7a90; }
.btn.danger:hover { background: rgba(255,77,109,.14); }

/* LEVEL BADGE (header) */
.lvl-badge { align-self: center; margin-left: 4px; font-family: 'Oxanium'; font-weight: 800; font-size: 12px; letter-spacing: .5px; color: var(--purple); background: var(--panel-solid); border: 1px solid var(--border-lit); border-radius: 999px; padding: 4px 10px; white-space: nowrap; box-shadow: 0 0 12px rgba(192,132,252,.2); }

/* STATS — level box */
.lvl-box { background: var(--panel-solid); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.lvl-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.lvl-big { font-family: 'Oxanium'; font-weight: 800; font-size: 22px; color: var(--purple); }
.lvl-xp { font-family: 'Oxanium'; font-weight: 700; font-size: 13px; color: var(--muted); }
.lvl-note { color: var(--muted); font-size: 11.5px; margin-top: 8px; line-height: 1.5; }

/* QUESTS */
.quest-reset { text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.quest-reset b { color: var(--gem); font-family: 'Oxanium'; }
.quest-list { display: flex; flex-direction: column; gap: 10px; }
.quest-card { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--border); transition: .18s; }
.quest-card.ready { border-color: var(--gold); box-shadow: 0 0 16px rgba(251,191,36,.22); }
.quest-card.claimed { opacity: .6; }
.qc-ico { font-size: 28px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.04); }
.qc-main { flex: 1; min-width: 0; }
.qc-name { font-family: 'Oxanium'; font-weight: 700; font-size: 15px; }
.qc-desc { color: var(--muted); font-size: 12px; margin-top: 1px; }
.qc-bar { height: 9px; border-radius: 999px; background: #1c1830; border: 1px solid var(--border); overflow: hidden; margin: 8px 0 5px; }
.qc-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--gold)); transition: width .4s ease; min-width: 2px; }
.qc-meta { display: flex; justify-content: space-between; font-family: 'Oxanium'; font-size: 11.5px; color: var(--muted); }
.qc-meta .qc-rw { color: var(--gold); font-weight: 700; }
.qc-claim { flex: none; min-width: 84px; }

/* HOW TO EARN list + WELCOME */
.earn-list { display: flex; flex-direction: column; gap: 10px; }
.earn-row { display: flex; align-items: flex-start; gap: 12px; }
.earn-ico { font-size: 22px; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.04); }
.earn-t { font-family: 'Oxanium'; font-weight: 700; font-size: 14px; }
.earn-d { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.welcome p { color: var(--text); font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.welcome-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.welcome-row span { font-size: 24px; flex: none; } .welcome-row b { color: var(--text); }

/* COLLECTION controls */
.coll-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.coll-search { width: 100%; }
.coll-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.coll-chip { cursor: pointer; border: 1px solid var(--border); background: var(--panel-solid); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-family: 'Oxanium'; font-weight: 700; font-size: 12px; transition: .15s; }
.coll-chip:hover { border-color: var(--cc); color: var(--text); }
.coll-chip.on { color: #0b0a14; background: var(--cc); border-color: var(--cc); }
.coll-sort { align-self: flex-start; }

/* BATTLE — actions row + sweep */
.bt-actions { display: flex; gap: 10px; align-items: stretch; }
.bt-actions .bt-fight { flex: 1; }
.bt-sweep { flex: none; min-width: 120px; }

/* TOAST + CONFETTI */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--panel-solid); border: 1px solid var(--border-lit); color: #fff; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); z-index: 100; transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: 90vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* GOD TIER + FRENZY */
@keyframes rainbowShift { to { background-position: 200% 0; } }
@keyframes godGlow { 0%{box-shadow:0 0 30px rgba(255,46,99,.75)} 25%{box-shadow:0 0 32px rgba(251,191,36,.85)} 50%{box-shadow:0 0 32px rgba(76,201,240,.85)} 75%{box-shadow:0 0 32px rgba(192,132,252,.85)} 100%{box-shadow:0 0 30px rgba(255,46,99,.75)} }
.loot-card.rar-God { border-color: #fff; animation: godGlow 2.4s linear infinite; }
.loot-card.rar-God .lc-rarity, .loot-card.rar-God .lc-name {
  background: linear-gradient(90deg,#ff2e63,#fbbf24,#4cc9f0,#c084fc,#ff2e63); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowShift 2s linear infinite;
}
.coll-cell.owned.god, .reel-tile.god { border-color: #fff; animation: godGlow 2.4s linear infinite; }
#frenzy-banner {
  background: linear-gradient(90deg,#ff2e63,#fbbf24,#ff2e63); background-size: 200% 100%;
  color: #1a1100; font-family: 'Oxanium', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .5px;
  padding: 12px 16px; border-radius: 12px; text-align: center; margin-bottom: 14px;
  box-shadow: 0 0 26px rgba(251,191,36,.55); animation: rainbowShift 1.2s linear infinite;
}
#frenzy-banner b { font-size: 17px; }
footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 34px; line-height: 1.7; }

/* RESPONSIVE — bottom nav on phones */
@media (max-width: 640px) {
  .multi-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .multi-grid .lc-icon { font-size: 30px; }
  .multi-grid .loot-card { padding: 8px 4px; }
  .multi-grid .lc-rarity { font-size: 8px; } .multi-grid .lc-name { display: none; }
  .reel-tile { width: 84px; height: 84px; font-size: 38px; }
  .reel { height: 108px; }
  .tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 40; border-radius: 0; border: none; border-top: 1px solid var(--border); background: rgba(11,10,20,.94); backdrop-filter: blur(14px); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); }
  .tab .tl { display: none; } .tab .ti { font-size: 21px; } .tab { padding: 9px 4px; }
  .wrap { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .brand h1 { font-size: 22px; }
  .lvl-badge { font-size: 11px; padding: 3px 8px; }
  .bt-sweep { min-width: 96px; }
  /* Comfortable tap targets on touch screens (Feature 9) */
  .btn.sm { min-height: 40px; }
  .icon-btn { min-height: 40px; }
  .coll-chip { min-height: 36px; }
}
@media (max-width: 380px) { .coll-grid { grid-template-columns: repeat(auto-fill, minmax(54px,1fr)); } .reel-tile { width: 74px; height: 74px; font-size: 32px; } }

/* ============================================================
   CYCLE 2 — Wishlist · Themes · Exchange · Presets · Boss Rush
   ============================================================ */
/* Wishlist star marker on collection cells */
.cc-wish { position: absolute; top: 2px; left: 4px; font-size: 11px; filter: drop-shadow(0 0 3px rgba(251,191,36,.8)); pointer-events: none; }

/* Pulsing claimable dot on the Quests tab */
.tab { position: relative; }
.tab-dot { position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: tabDotPulse 1.3s ease-in-out infinite; }
@keyframes tabDotPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .55; } }
@media (max-width: 640px) { .tab-dot { top: 4px; right: calc(50% - 16px); } }

/* Mega Spin button — gem-tinted to distinguish from the gold Daily Spin */
#mega-spin-btn { background: linear-gradient(135deg, var(--gem), #6366f1); box-shadow: 0 10px 26px rgba(99,102,241,.3); }

/* Theme picker (Settings) */
.theme-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-chip { display: flex; align-items: center; gap: 7px; cursor: pointer; border: 1px solid var(--border); background: var(--panel-solid); color: var(--muted); border-radius: 999px; padding: 7px 13px; font-family: 'Oxanium'; font-weight: 700; font-size: 12.5px; transition: .15s; }
.theme-chip:hover { color: var(--text); border-color: var(--sw); }
.theme-chip.on { color: var(--text); border-color: var(--sw); box-shadow: 0 0 12px color-mix(in srgb, var(--sw) 45%, transparent); }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); flex: none; box-shadow: 0 0 6px var(--sw); }

/* Dust <-> Gems exchange (Craft) */
.dust-exchange { background: var(--panel-solid); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.xchg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xchg-side { display: flex; flex-direction: column; gap: 8px; }
.xchg-lbl { font-size: 12px; color: var(--text); font-weight: 600; }
.xchg-lbl span { color: var(--muted); font-weight: 400; font-size: 11px; }
.xchg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.xchg-btns .btn { flex: 1; min-width: 64px; padding: 8px 6px; font-size: 12px; }
@media (max-width: 520px) { .xchg-row { grid-template-columns: 1fr; } }

/* Squad presets (Battle) */
.bt-presets { margin-bottom: 16px; }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset-slot { border: 1px solid var(--border); border-radius: 12px; background: var(--panel-solid); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 64px; }
.preset-slot.empty { border-style: dashed; align-items: stretch; justify-content: center; }
.preset-load { flex: 1; cursor: pointer; border: none; background: transparent; color: var(--text); font-family: 'Oxanium'; font-weight: 700; font-size: 13px; border-radius: 8px; padding: 6px; transition: .15s; }
.preset-slot.empty .preset-load { color: var(--muted); border: none; }
.preset-load:hover { color: var(--purple); }
.preset-icons { font-size: 18px; letter-spacing: -2px; line-height: 1.3; word-break: break-all; }
.preset-btns { display: flex; gap: 6px; justify-content: center; }
.preset-mini { flex: 1; cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--muted); border-radius: 7px; padding: 4px; font-size: 12px; transition: .15s; }
.preset-mini:hover { color: var(--text); border-color: var(--border-lit); }

/* Boss Rush — gauntlet header + tally in arena */
.bt-rush-head { font-family: 'Oxanium'; font-weight: 800; font-size: 17px; text-align: center; color: var(--gold); margin-bottom: 10px; letter-spacing: 1px;
  background: linear-gradient(90deg,#fb7185,#f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-rush-tally { text-align: center; font-family: 'Oxanium'; font-size: 13px; color: var(--muted); margin-top: 10px; }
.bt-rush-tally b { color: var(--gold); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================================================
   CYCLE 3 — Ready indicators · Pity bars · Showcase · Session
   · Settings hub · Tour · Empty states
   ============================================================ */

/* --- Unified "ready" indicators (Feature 1) --- */
/* Small glowing dot reused on Daily/Mega spin buttons when ready */
.ready-dot { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg2); box-shadow: 0 0 8px var(--gold); animation: tabDotPulse 1.3s ease-in-out infinite; }
#daily-spin-btn, #mega-spin-btn { position: relative; overflow: visible; }
/* Count badge pinned over the header 🎁 claim button (sibling, so renderClaim can't wipe it) */
.wallet { position: relative; }
.ready-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #fb7185; color: #fff; font-family: 'Oxanium', sans-serif; font-weight: 800; font-size: 11px; line-height: 18px; text-align: center; border: 2px solid var(--bg, #0b0a14); box-shadow: 0 0 8px rgba(251,113,133,.7); pointer-events: none; z-index: 2; animation: tabDotPulse 1.3s ease-in-out infinite; }
.ready-count[hidden] { display: none; }
/* Pull-tab "free to claim" summary strip */
.ready-strip { display: none; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; text-align: center; background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(192,132,252,.08)); border: 1px solid var(--border-lit); border-radius: 12px; padding: 9px 13px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ready-strip b { color: var(--gold); font-family: 'Oxanium', sans-serif; }
.ready-strip .rs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); flex: none; animation: tabDotPulse 1.3s ease-in-out infinite; }

/* --- Pity progress bars (Feature 4) --- */
.pity-bars { display: flex; flex-direction: column; gap: 7px; max-width: 380px; margin: 0 auto 16px; }
.pity-bar-row { display: flex; align-items: center; gap: 9px; }
.pity-bar-lbl { font-family: 'Oxanium', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .5px; width: 42px; flex: none; text-transform: uppercase; }
.pity-bar { flex: 1; height: 7px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--border); overflow: hidden; }
.pity-bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; min-width: 2px; opacity: .92; }
.pity-bar-val { font-family: 'Oxanium', sans-serif; font-weight: 700; font-size: 11px; color: var(--muted); width: 46px; text-align: right; flex: none; }

/* --- Session recap (Feature 7) --- */
.session-recap { text-align: center; color: var(--muted); font-size: 12.5px; margin: 0 0 16px; line-height: 1.5; }
.session-recap b { font-family: 'Oxanium', sans-serif; }

/* --- Collection showcase (Feature 3) --- */
.showcase { background: var(--panel-solid); border: 1px solid var(--border-lit); border-radius: 14px; padding: 13px 14px; margin-bottom: 16px; }
.showcase-head { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.showcase-head b { color: var(--gold); font-family: 'Oxanium', sans-serif; font-weight: 800; letter-spacing: 1px; }
.showcase-row { display: flex; gap: 10px; }
.showcase-cell { flex: 1; max-width: 110px; aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--rc, var(--border)); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; transition: .15s; background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--rc) 18%, var(--panel-solid)), var(--panel-solid) 75%); box-shadow: 0 0 12px var(--rg); }
.showcase-cell:hover { transform: translateY(-2px); }
.showcase-cell .sc-ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 6px var(--rg)); }
.showcase-cell .sc-nm { font-size: 9.5px; font-weight: 600; color: var(--text); max-width: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.showcase-cell .sc-pin { position: absolute; top: 3px; right: 5px; font-size: 11px; }
.showcase-empty { flex: 1; max-width: 110px; aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--border); background: var(--panel-solid); display: grid; place-items: center; color: var(--muted); font-size: 22px; opacity: .7; }
.showcase-hint { color: var(--muted); font-size: 11.5px; margin-top: 9px; line-height: 1.45; }
/* Pin/unpin button inside item modal */
.id-pin-row { display: flex; gap: 8px; margin-top: 10px; }
.id-pin-row .btn { flex: 1; }

/* --- Settings hub (Feature 6) --- */
.set-grid { display: flex; flex-direction: column; gap: 16px; }
.set-block { }
.set-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px; }
.set-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.set-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--border); background: var(--panel-solid); color: var(--muted); border-radius: 10px; padding: 9px 13px; font-family: 'Oxanium', sans-serif; font-weight: 700; font-size: 13px; transition: .15s; min-height: 42px; }
.set-toggle:hover { border-color: var(--border-lit); color: var(--text); }
.set-toggle.on { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(251,191,36,.22); }
.set-note { color: var(--muted); font-size: 11.5px; line-height: 1.5; margin-top: 4px; }
.set-version { text-align: center; color: var(--muted); font-size: 11px; letter-spacing: 1px; margin-top: 6px; opacity: .8; }
.set-version b { color: var(--purple); font-family: 'Oxanium', sans-serif; }

/* --- First-run coachmark tour (Feature 5) --- */
#tour-overlay { position: fixed; inset: 0; z-index: 95; display: none; }
#tour-overlay.show { display: block; }
.tour-scrim { position: absolute; inset: 0; background: rgba(5,4,10,.74); backdrop-filter: blur(2px); }
.tour-card { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; width: min(420px, 92vw); background: var(--bg2); border: 1px solid var(--gold); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); padding: 18px; z-index: 2; animation: fade .25s ease; }
.tour-card .tour-step { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.tour-card .tour-ttl { font-family: 'Oxanium', sans-serif; font-weight: 800; font-size: 19px; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.tour-card .tour-body { color: var(--text); font-size: 13.5px; line-height: 1.55; }
.tour-card .tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: block; transition: .2s; }
.tour-dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.tour-btns { display: flex; gap: 8px; }
/* During the tour, lift the whole tab bar above the dimming scrim so the highlight reads */
body.touring .tabs { z-index: 96; }
/* Highlight the tab the tour is pointing at */
.tab.tour-target { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(251,191,36,.6); z-index: 41; animation: tourPulse 1.2s ease-in-out infinite; }
@keyframes tourPulse { 0%,100% { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(251,191,36,.45); } 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(251,191,36,.85); } }

/* Active state for ghost buttons (e.g. Showcase toggle when pinned) */
.btn.ghost.on { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(251,191,36,.22); }

/* --- Empty-state polish (Feature 8) --- */
.bt-empty-hint { display: block; color: var(--muted); font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.5; padding: 4px 6px; }
.preset-hint { color: var(--muted); font-size: 11.5px; line-height: 1.45; margin-top: 9px; }
.showcase-hint b { color: var(--gold); }

/* --- 360px squeeze: keep Cycle 1/2/3 components tidy (Feature 9) --- */
@media (max-width: 380px) {
  .showcase-cell .sc-ico { font-size: 28px; }
  .showcase-cell .sc-nm { display: none; }
  .ready-strip { font-size: 11.5px; padding: 8px 10px; }
  .pity-bar-lbl { width: 36px; font-size: 10px; }
  .pity-bar-val { width: 40px; font-size: 10px; }
  .preset-icons { font-size: 15px; }
  .set-toggle { padding: 9px 11px; font-size: 12.5px; }
}
