/* =====================================================================
   STELLAR CLICKER — estilos
   ===================================================================== */
:root {
  --hue: 265;
  --bg: #04050d;
  --panel: rgba(12, 14, 34, 0.58);
  --panel-solid: rgba(14, 17, 40, 0.97);
  --line: rgba(150, 165, 255, 0.13);
  --line-2: rgba(150, 165, 255, 0.28);
  --text: #e8ebff;
  --muted: #8d93bd;
  --dim: #5a5f86;
  --accent: hsl(var(--hue) 95% 72%);
  --accent-2: hsl(calc(var(--hue) + 60) 95% 70%);
  --gold: #ffd36b;
  --good: #7dffc4;
  --bad: #ff7d9c;
  --radius: 18px;
  --font-d: 'Orbitron', 'Segoe UI', sans-serif;
  --font-b: 'Exo 2', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, hsla(var(--hue), 80%, 35%, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 75%, hsla(calc(var(--hue) + 90), 80%, 35%, 0.22), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
body.glbg { background: var(--bg); }
img.ico { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
img.tIco { width: 22px; height: 22px; vertical-align: middle; }
button { font-family: var(--font-b); }
b { font-weight: 700; }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 22px; transition: opacity .8s; }
#loader.done { opacity: 0; pointer-events: none; }
.ldStar { width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, hsl(var(--hue) 95% 70%) 35%, hsl(calc(var(--hue) + 40) 80% 30%)); box-shadow: 0 0 60px hsl(var(--hue) 100% 65%); animation: halo 1.4s ease-in-out infinite; }
.ldTxt { font-family: var(--font-d); letter-spacing: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Capas de fondo ---------- */
canvas#nebula, canvas#stars, canvas#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
canvas#nebula { z-index: 0; display: none; }
body.glbg canvas#nebula { display: block; }
canvas#stars { z-index: 1; }
canvas#fx { z-index: 50; }
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: url(../assets/textures/noise.svg); opacity: .05; mix-blend-mode: overlay; }
body.frenzy::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 170, 60, 0.2));
  animation: frenzyPulse 1.2s ease-in-out infinite alternate;
}
@keyframes frenzyPulse { from { opacity: .45 } to { opacity: 1 } }

#app { position: relative; z-index: 5; height: 100vh; display: flex; flex-direction: column; }
#app.shake { animation: shake .6s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px) } 20%, 80% { transform: translate(4px, -2px) } 30%, 50%, 70% { transform: translate(-6px, 3px) } 40%, 60% { transform: translate(6px, -3px) } }

/* ---------- Barra superior ---------- */
#topbar { display: flex; align-items: center; gap: 18px; padding: 10px 20px; height: 54px; flex: none; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 900; letter-spacing: 4px; font-size: 19px; white-space: nowrap; }
.logo img { width: 30px; height: 30px; filter: drop-shadow(0 0 8px hsla(var(--hue), 100%, 70%, .7)); }
.logo span { background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .l2 { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
#ticker { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-style: italic; font-size: 14px; border-left: 1px solid var(--line); padding-left: 18px; }
#news { display: inline-block; transition: opacity .5s, transform .5s; }
#news.out { opacity: 0; transform: translateY(-8px); }
#saveInd { white-space: nowrap; font-size: 11px; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; transition: color .3s; }
#saveInd.flash { color: var(--good); }

/* ---------- Layout ---------- */
#layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 360px) 1fr minmax(330px, 410px); gap: 14px; padding: 0 14px 14px; }
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  min-height: 0;
}
.panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, hsla(var(--hue), 90%, 70%, .07), transparent 35%); }
#leftCol { display: flex; flex-direction: column; align-items: center; padding: 20px 16px; overflow-y: auto; overflow-x: hidden; }
#leftCol::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: url(../assets/textures/grid.svg); opacity: .18; -webkit-mask: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); }
#midCol { display: flex; flex-direction: column; overflow: hidden; }
#rightCol { display: flex; flex-direction: column; overflow-y: auto; padding: 12px; }
#rightCol > *, #leftCol > * { flex-shrink: 0; }
#tabs { scrollbar-width: none; }
#tabs::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(150,165,255,.18); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Contador ---------- */
#dustBox { text-align: center; position: relative; z-index: 1; }
#dustAmount { font-family: var(--font-d); font-weight: 900; font-size: 38px; line-height: 1.1; text-shadow: 0 0 24px hsla(var(--hue), 100%, 70%, .6); font-variant-numeric: tabular-nums; }
#dustLabel { color: var(--muted); text-transform: uppercase; letter-spacing: 3px; font-size: 11px; margin-top: 2px; }
#cpsLine { margin-top: 6px; font-size: 15px; color: var(--accent); font-weight: 600; }
#cpsLine.boost { color: var(--gold); text-shadow: 0 0 12px rgba(255, 200, 80, .6); }
#starClass { margin-top: 12px; width: 70%; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: 1px; cursor: help; position: relative; z-index: 1; }
#starName { color: #fff; font-weight: 600; }
.sBar { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.sBar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .5s; }

/* ---------- Estrella ---------- */
#orbWrap { position: relative; width: 260px; height: 260px; margin: 22px 0 8px; flex: none; display: grid; place-items: center; z-index: 1; }
#starGL { position: absolute; left: -35%; top: -35%; width: 170%; height: 170%; pointer-events: none; display: none; }
body.gl #starGL { display: block; }
body.gl #orbCore, body.gl #orbShine { display: none; }
body.gl #orbHalo { opacity: .45; }
#orbHalo { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, hsla(var(--hue), 100%, 65%, .45), transparent 65%); filter: blur(10px); animation: halo 4s ease-in-out infinite; }
@keyframes halo { 0%,100% { transform: scale(.92); opacity: .75 } 50% { transform: scale(1.06); opacity: 1 } }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring.r1 { inset: 4px; border: 1.5px dashed hsla(var(--hue), 90%, 80%, .3); animation: spin 40s linear infinite; }
.ring.r2 { inset: -16px; border: 1px solid transparent; border-top-color: hsla(calc(var(--hue) + 60), 100%, 78%, .7); border-bottom-color: hsla(calc(var(--hue) + 60), 100%, 78%, .2); animation: spin 9s linear infinite reverse; }
.ring.r3 { inset: -32px; border: 1px dotted hsla(var(--hue), 100%, 82%, .22); animation: spin 70s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
#orb { position: relative; width: 190px; height: 190px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; outline: none; transition: transform .08s ease-out; -webkit-tap-highlight-color: transparent; }
#orb:hover { transform: scale(1.03); }
#orb.hit { transform: scale(.95); }
#orbCore {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, hsl(var(--hue) 100% 88%) 8%, hsl(var(--hue) 95% 66%) 30%, hsl(calc(var(--hue) + 30) 85% 42%) 62%, hsl(calc(var(--hue) + 50) 90% 18%) 100%);
  box-shadow: 0 0 40px hsla(var(--hue), 100%, 65%, .8), 0 0 110px hsla(var(--hue), 100%, 60%, .45), inset -18px -22px 50px hsla(calc(var(--hue) + 60), 100%, 15%, .8);
}
#orbShine { position: absolute; top: 14%; left: 20%; width: 34%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.55), transparent 70%); transform: rotate(-30deg); pointer-events: none; }

#clickInfo { color: var(--muted); font-size: 13px; margin-top: 14px; cursor: help; position: relative; z-index: 1; }
#clickInfo > span:first-child { color: var(--text); font-weight: 700; }
#clickInfo .crit { color: var(--gold); opacity: .8; }
#comboBar { position: relative; z-index: 1; width: 80%; height: 16px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-top: 10px; overflow: hidden; cursor: help; }
#comboBar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, hsl(var(--hue) 90% 60%), var(--accent-2)); transition: width .15s; }
#comboBar.hot i { background: linear-gradient(90deg, #ff8a5b, var(--gold)); box-shadow: 0 0 12px var(--gold); }
#comboBar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 1px 2px #000; }

#dailyBtn {
  position: relative; z-index: 1; margin-top: 14px; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
  background: linear-gradient(90deg, rgba(255, 190, 80, .18), rgba(255, 120, 200, .12)); border: 1px solid rgba(255, 210, 120, .5); border-radius: 14px;
  color: var(--text); padding: 10px 14px; cursor: pointer; animation: giftGlow 1.8s ease-in-out infinite;
}
#dailyBtn[hidden] { display: none; }
#dailyBtn .gIcon { font-size: 28px; animation: wiggle 2s ease-in-out infinite; }
#dailyBtn small { display: block; color: var(--gold); font-size: 12px; }
@keyframes giftGlow { 50% { box-shadow: 0 0 22px rgba(255, 200, 100, .45) } }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0) } 75% { transform: rotate(-12deg) } 85% { transform: rotate(12deg) } }
#challengeBanner { position: relative; z-index: 1; margin-top: 12px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255, 125, 156, .45); background: rgba(255, 90, 130, .1); cursor: pointer; font-size: 13px; }
#challengeBanner[hidden] { display: none; }
.chProg { height: 5px; background: rgba(255,255,255,.08); border-radius: 4px; margin: 7px 0 4px; overflow: hidden; }
.chProg i { display: block; height: 100%; background: linear-gradient(90deg, var(--bad), var(--gold)); }
.chTxt { font-size: 11px; color: var(--muted); }
#goal { position: relative; z-index: 1; margin-top: auto; padding-top: 14px; width: 100%; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
#goal b { color: var(--text); }

/* ---------- Buffs ---------- */
#buffs { position: relative; z-index: 1; width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.buff { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 190, 80, .08); border: 1px solid rgba(255, 200, 100, .3); animation: popIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.buff .bi { font-size: 22px; text-align: center; }
.buff b { font-size: 13px; color: var(--gold); display: block; }
.buff .bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.buff .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ff8a5b); border-radius: 4px; }
.buff .bt { font-family: var(--font-d); font-size: 12px; color: var(--gold); }
@keyframes popIn { from { transform: scale(.7); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ---------- Pestañas ---------- */
#tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; overflow-y: hidden; }
.tab { position: relative; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 13px; padding: 9px 9px; cursor: pointer; border-radius: 10px 10px 0 0; white-space: nowrap; display: flex; align-items: center; gap: 7px; transition: color .2s, background .2s; }
.tab .tIcon { font-size: 18px; transition: transform .2s; }
.tab .tName { max-width: 0; overflow: hidden; transition: max-width .35s ease; }
.tab.active .tName { max-width: 130px; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab:hover .tIcon { transform: scale(1.15); }
.tab.active { color: var(--text); background: rgba(255,255,255,.04); }
.tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.tab.locked { opacity: .35; }
.tab.locked .tIcon { filter: grayscale(1); }
.tab .badge { position: absolute; top: 6px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); display: none; }
.tab.hasBadge .badge { display: block; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35 } }
.tabPage { display: none; flex: 1; overflow-y: auto; padding: 18px 20px 24px; min-height: 0; }
.tabPage.active { display: block; animation: fadeUp .3s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.secTitle { font-family: var(--font-d); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin: 22px 0 10px; }
.secTitle:first-child { margin-top: 0; }
.secHead { display: flex; align-items: baseline; justify-content: space-between; }
.secHead .secTitle { margin-top: 0; }
.slots { font-size: 12px; color: var(--muted); }
.hint { color: var(--dim); font-size: 13px; margin: -2px 0 12px; line-height: 1.5; }
.hint b { color: var(--muted); }
.empty { color: var(--dim); font-size: 13px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.lockedSec { margin-top: 18px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Galaxia ---------- */
.gEmpty { text-align: center; color: var(--muted); margin-top: 14vh; line-height: 1.8; }
.gEmpty b { color: var(--text); font-family: var(--font-d); font-size: 18px; display: block; margin-bottom: 6px; }
.gEmpty b.inl { display: inline; font-family: var(--font-b); font-size: inherit; }
.gEmptyIco { width: 90px; height: 90px; margin: 0 auto 16px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 0 20px hsla(200, 90%, 60%, .5)); }
.gRow { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: linear-gradient(90deg, hsla(var(--h), 70%, 40%, .16), transparent 70%); animation: fadeUp .4s ease-out; }
.gHead { display: flex; align-items: center; gap: 10px; padding: 8px 14px 0; font-size: 13px; }
.gHead .gIco { width: 22px; height: 22px; }
.gHead .gn { font-weight: 700; }
.gHead .gc { font-family: var(--font-d); font-size: 12px; color: var(--accent); }
.gHead .gp { margin-left: auto; color: var(--muted); font-size: 12px; }
.gStrip { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 12px 10px; min-height: 40px; }
.gStrip img { width: 24px; height: 24px; animation: bob 3s ease-in-out infinite; animation-delay: var(--d); filter: drop-shadow(0 0 5px hsla(var(--h), 90%, 60%, .55)); }
.gStrip .more { font-size: 12px; color: var(--muted); align-self: center; margin-left: 6px; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }

/* ---------- Tienda ---------- */
.storeHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 10px; flex-wrap: wrap; }
.storeHead h2 { font-family: var(--font-d); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin: 0; color: var(--muted); }
.miniBtn, #buyAmt button { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 12px; padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.miniBtn:hover:not(:disabled), #buyAmt button:hover { color: var(--text); border-color: var(--line-2); }
.miniBtn:disabled { opacity: .4; cursor: default; }
#buyAmt { display: flex; gap: 4px; }
#buyAmt button.active { color: #0b0d1c; background: var(--accent); border-color: var(--accent); }
#buyAmt button.sell.active { background: var(--bad); border-color: var(--bad); }

#upgrades { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 14px; min-height: 30px; }
#upgrades .none { color: var(--dim); font-size: 13px; padding: 4px; }
.up { width: 52px; height: 52px; border-radius: 12px; position: relative; cursor: pointer; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line); opacity: .45; transition: transform .12s, opacity .2s, box-shadow .2s; animation: popIn .3s ease-out; padding: 8px; }
.up img.ico { width: 34px; height: 34px; }
.up .tier { position: absolute; bottom: 2px; right: 4px; font-family: var(--font-d); font-size: 8px; color: var(--muted); }
.up.aff { opacity: 1; border-color: hsla(var(--uh, 265), 90%, 70%, .7); box-shadow: 0 0 14px hsla(var(--uh, 265), 90%, 60%, .35), inset 0 0 12px hsla(var(--uh, 265), 90%, 60%, .15); }
.up.aff:hover { transform: translateY(-2px) scale(1.06); }
.up.k-click { --uh: 190; } .up.k-clickPct { --uh: 200; } .up.k-global { --uh: 300; } .up.k-synergy { --uh: 150; }
.up.k-catalyst { --uh: 330; } .up.k-comet { --uh: 45; } .up.k-off { --uh: 220; } .up.k-building { --uh: 265; }

.bRow { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; margin-bottom: 6px; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: transform .1s, background .2s, border-color .2s, opacity .2s; position: relative; overflow: hidden; }
.bRow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: hsl(var(--h) 90% 65%); opacity: 0; transition: opacity .2s; }
.bRow.aff { background: linear-gradient(90deg, hsla(var(--h), 80%, 50%, .16), rgba(255,255,255,.03)); border-color: hsla(var(--h), 90%, 70%, .35); }
.bRow.aff::before { opacity: 1; }
.bRow.aff:hover { transform: translateX(-3px); }
.bRow.aff:hover .bIcon { transform: scale(1.08) rotate(-4deg); }
.bRow:not(.aff) { opacity: .6; }
.bRow.aff:active { transform: scale(.98); }
.bRow.mystery { opacity: .35; cursor: default; }
.bRow.mystery .bIcon img { filter: brightness(0) drop-shadow(0 0 4px rgba(150,165,255,.7)); }
.bIcon { width: 52px; height: 52px; padding: 6px; border-radius: 12px; background: radial-gradient(circle, hsla(var(--h), 80%, 50%, .2), rgba(0,0,0,.25)); transition: transform .2s; }
.bName { font-weight: 700; font-size: 15px; }
.bCost { font-size: 13px; color: var(--bad); margin-top: 2px; font-variant-numeric: tabular-nums; }
.bRow.aff .bCost { color: var(--good); }
.bQty { color: var(--muted); font-size: 11px; margin-left: 4px; }
.bCount { font-family: var(--font-d); font-weight: 700; font-size: 26px; color: rgba(255,255,255,.2); min-width: 40px; text-align: right; }
.bRow.aff .bCount { color: rgba(255,255,255,.35); }
.bRow.bought { animation: bought .35s ease-out; }
@keyframes bought { 0% { box-shadow: 0 0 0 0 hsla(var(--h), 100%, 70%, .7) } 100% { box-shadow: 0 0 0 14px transparent } }
#store.selling .bRow.aff { background: linear-gradient(90deg, rgba(255, 90, 130, .16), rgba(255,255,255,.03)); border-color: rgba(255, 125, 156, .4); }
#store.selling .bRow.aff::before { background: var(--bad); }
#store.selling .bRow.aff .bCost { color: var(--gold); }

/* ---------- Tooltip ---------- */
#tooltip { position: fixed; z-index: 200; pointer-events: none; max-width: 330px; background: rgba(10, 12, 28, .97); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 30px hsla(var(--hue), 90%, 60%, .12); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
#tooltip.show { opacity: 1; transform: none; }
#tooltip h4 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
#tooltip .tk { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
#tooltip .tc { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
#tooltip .flav { color: var(--muted); font-style: italic; margin-top: 6px; }
.ok { color: var(--good); } .no { color: var(--bad); } .warn { color: var(--bad); }

/* ---------- Tarjetas (laboratorio, expediciones, desafíos) ---------- */
.cardGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; }
.cardGrid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rCard, .chCard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .2s, transform .15s; }
.rCard:hover, .chCard:hover { border-color: var(--line-2); }
.rCard.maxed { opacity: .55; }
.rTop { display: flex; gap: 10px; align-items: center; }
.rIcon { font-size: 26px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: hsla(var(--hue), 70%, 50%, .15); }
.rLvl { font-size: 11px; color: var(--muted); }
.rDesc { font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
.rDesc b { color: var(--text); }
.rMeta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.btn { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .1s; }
.btn:hover:not(:disabled) { filter: brightness(1.2); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0d1c; border-color: transparent; }
.btn.danger { border-color: rgba(255, 125, 156, .5); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.actCard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line-2); margin-bottom: 8px; }
.actCard.ready { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 200, 100, .25); animation: giftGlow 1.8s ease-in-out infinite; }
.actMain { flex: 1; min-width: 0; font-size: 13px; }
.actBtns { display: flex; gap: 6px; }
.pBar { position: relative; height: 22px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line); overflow: hidden; margin: 12px 0; }
.pBar.sm { height: 16px; margin: 6px 0 0; }
.pBar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, hsl(var(--hue) 90% 60%), var(--accent-2)); border-radius: inherit; transition: width .3s linear; }
.actCard.ready .pBar i { background: linear-gradient(90deg, #ff8a5b, var(--gold)); }
.pBar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.xCard { position: relative; display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid var(--line); overflow: hidden; }
.xArt { font-size: 38px; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle, hsla(var(--hue), 80%, 55%, .3), transparent 70%); }
.xBody { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.xDesc { font-size: 12.5px; color: var(--muted); font-style: italic; }
.xMeta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.xLock { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5, 6, 15, .75); backdrop-filter: blur(3px); font-size: 13px; color: var(--muted); }
.xCard.locked .xLock { display: grid; }
.chRew { font-size: 12.5px; color: var(--gold); }
.chCard.done { border-color: rgba(125, 255, 196, .4); }
.chCard.active { border-color: var(--bad); box-shadow: 0 0 18px rgba(255, 90, 130, .25); }
.chDone { color: var(--good); font-weight: 700; font-size: 13px; }

/* ---------- Reliquias ---------- */
.relicHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted); }
.relicHead .big { font-family: var(--font-d); font-size: 26px; color: var(--text); }
.odds { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; font-weight: 600; }
.relicGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.relicSep { grid-column: 1 / -1; font-family: var(--font-d); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.relic { position: relative; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.025); border: 1px dashed rgba(150,165,255,.2); color: var(--dim); font-size: 22px; font-family: var(--font-d); }
.relic.got { border: 1.5px solid var(--rc); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 30%, transparent), rgba(0,0,0,.2)); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 35%, transparent); color: inherit; }
.relic.got.r-mythic { animation: mythic 3s linear infinite; }
@keyframes mythic { 0% { filter: hue-rotate(0) } 100% { filter: hue-rotate(360deg) } }
.rlI { font-size: 30px; font-family: var(--font-b); }
.rlL { position: absolute; top: 4px; right: 6px; font-size: 9px; color: var(--rc); font-weight: 700; }
.rlDots { position: absolute; bottom: 4px; font-size: 6px; letter-spacing: 1px; color: var(--rc); }
.relicList { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.relicCard { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--rc); background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), transparent); animation: relicIn .5s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.relicCard:nth-child(2) { animation-delay: .15s } .relicCard:nth-child(3) { animation-delay: .3s } .relicCard:nth-child(4) { animation-delay: .45s } .relicCard:nth-child(5) { animation-delay: .6s }
@keyframes relicIn { from { opacity: 0; transform: translateX(-20px) scale(.9) } }
.rc-i { font-size: 30px; }
.rc-t { display: flex; flex-direction: column; }
.rc-t small { color: var(--rc); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.rc-b { font-size: 12px; color: var(--muted); }
.rc-b.new { color: var(--gold); font-weight: 700; }
.relicCard.r-legendary, .relicCard.r-mythic { box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 45%, transparent); }

/* ---------- Logros ---------- */
#achSummary { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
#achSummary b { color: var(--text); }
.achBig { font-family: var(--font-d); font-size: 16px; }
.achBig b { font-size: 30px; }
.achCnt { color: var(--muted); font-size: 11px; letter-spacing: 1px; margin-left: 6px; }
.achGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.ach { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 22px; padding: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--line); filter: grayscale(1) brightness(.4); transition: filter .4s; }
.ach img.ico { width: 100%; height: 100%; }
.ach.got { filter: none; background: linear-gradient(145deg, hsla(var(--hue), 80%, 50%, .22), rgba(255,255,255,.02)); border-color: hsla(var(--hue), 90%, 70%, .4); }

/* ---------- Estadísticas ---------- */
.statCols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
.statGroup { margin-bottom: 18px; }
.statRow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.statRow span:first-child { color: var(--muted); }
.statRow span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Prestigio ---------- */
.pHero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pStat { text-align: center; padding: 14px 8px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.pStat.hot { border-color: rgba(255, 200, 100, .35); background: rgba(255, 190, 80, .06); }
.pNum { font-family: var(--font-d); font-weight: 900; font-size: 24px; }
.pStat.hot .pNum { color: var(--gold); }
.pLbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.pDesc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pDesc b { color: var(--text); }
#tab-prestige .pBar i { background: linear-gradient(90deg, #ff8a5b, var(--gold)); }
.bigBtn { width: 100%; padding: 14px; border-radius: 14px; border: 0; cursor: pointer; font-family: var(--font-d); font-weight: 700; letter-spacing: 2px; font-size: 15px; color: #1b0f00; background: linear-gradient(90deg, #ff8a5b, var(--gold), #ff8a5b); background-size: 200% 100%; animation: sheen 3s linear infinite; box-shadow: 0 0 30px rgba(255, 170, 70, .35); }
.bigBtn:disabled { filter: grayscale(1) brightness(.5); cursor: not-allowed; animation: none; box-shadow: none; }
@keyframes sheen { to { background-position: -200% 0 } }
#perkTree { position: relative; margin-top: 10px; }
#perkLines { position: absolute; inset: 0; width: 100%; height: 100%; }
#perkLines line { stroke: rgba(150,165,255,.15); stroke-width: 2; vector-effect: non-scaling-stroke; }
#perkLines line.lit { stroke: hsla(var(--hue), 100%, 75%, .8); filter: drop-shadow(0 0 4px hsla(var(--hue), 100%, 70%, .8)); }
.perk { position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; cursor: pointer; background: rgba(10, 12, 30, .92); border: 2px solid rgba(150,165,255,.2); filter: grayscale(1) brightness(.55); transition: transform .15s, filter .3s, box-shadow .3s; }
.perk small { position: absolute; bottom: -17px; font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.perk.own small { display: none; }
.perk.avail { filter: grayscale(.5) brightness(.85); border-color: rgba(150,165,255,.5); }
.perk.aff { filter: none; border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 200, 100, .55); animation: perkPulse 1.6s ease-in-out infinite; }
.perk.aff small { color: var(--gold); }
.perk.own { filter: none; border-color: hsl(var(--hue) 95% 75%); background: radial-gradient(circle, hsla(var(--hue), 90%, 50%, .55), rgba(10,12,30,.95)); box-shadow: 0 0 22px hsla(var(--hue), 100%, 65%, .6); }
.perk:hover { transform: scale(1.12); }
@keyframes perkPulse { 50% { box-shadow: 0 0 30px rgba(255, 200, 100, .85) } }

/* ---------- Ajustes ---------- */
.setRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.setRow .sl b { display: block; font-size: 14px; } .setRow .sl small { color: var(--muted); font-size: 12px; }
.toggle { width: 46px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); position: relative; cursor: pointer; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.toggle.on { background: hsla(var(--hue), 90%, 60%, .35); border-color: var(--accent); }
.toggle.on::after { transform: translateX(20px); background: var(--accent); }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; flex: none; }
.seg button { background: transparent; border: 0; color: var(--muted); padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.seg button.active { background: var(--accent); color: #0b0d1c; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 160px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
textarea.save { width: 100%; height: 120px; background: rgba(0,0,0,.35); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; font-family: monospace; font-size: 11px; resize: vertical; user-select: text; }
.credits { text-align: center; margin-top: 24px; }

/* ---------- Cometas y meteoritos ---------- */
#cometLayer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.comet { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: auto; cursor: pointer; animation: cometLife var(--life) linear forwards; }
.comet .cc { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffe7a0 30%, #ffb347 60%, rgba(255, 140, 50, 0) 72%); box-shadow: 0 0 30px 8px rgba(255, 200, 90, .8), 0 0 80px 20px rgba(255, 160, 60, .35); animation: cometPulse .9s ease-in-out infinite alternate; }
.comet .rays { position: absolute; inset: -18px; background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 220, 140, .45) 10%, transparent 12% 33%, rgba(255, 220, 140, .45) 35%, transparent 37% 58%, rgba(255, 220, 140, .45) 60%, transparent 62% 83%, rgba(255, 220, 140, .45) 85%, transparent 87%); border-radius: 50%; animation: spin 6s linear infinite; -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.comet .tail { position: absolute; top: 50%; right: 50%; width: 140px; height: 10px; margin-top: -5px; border-radius: 5px; background: linear-gradient(90deg, transparent, rgba(255, 210, 120, .7)); transform-origin: right center; transform: rotate(var(--ang)); filter: blur(2px); }
.comet:hover .cc { box-shadow: 0 0 40px 14px rgba(255, 220, 120, 1), 0 0 100px 30px rgba(255, 160, 60, .5); }
@keyframes cometPulse { from { transform: scale(.9) } to { transform: scale(1.1) } }
@keyframes cometLife { 0% { opacity: 0; transform: translate(0, 0) scale(.3) } 6% { opacity: 1; transform: translate(calc(var(--dx) * .06), calc(var(--dy) * .06)) scale(1) } 85% { opacity: 1 } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.6) } }
.meteor { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: auto; cursor: crosshair; animation: meteorFly var(--md) linear forwards; }
.meteor .mRock { position: absolute; inset: 8px; border-radius: 42% 58% 55% 45%; background: radial-gradient(circle at 35% 30%, #d8b08a, #7a4a2a 60%, #2a160a); box-shadow: 0 0 16px 4px rgba(255, 120, 40, .7), inset -4px -4px 8px rgba(0,0,0,.5); animation: spin 1.2s linear infinite; }
.meteor .mTail { position: absolute; top: 50%; right: 50%; width: 110px; height: 14px; margin-top: -7px; border-radius: 7px; background: linear-gradient(90deg, transparent, rgba(255, 140, 50, .55), rgba(255, 230, 160, .9)); transform-origin: right center; transform: rotate(var(--ang)); filter: blur(3px); }
@keyframes meteorFly { from { transform: translate(0, 0) } to { transform: translate(var(--mx), var(--my)) } }

/* ---------- Textos flotantes, toasts, anuncios ---------- */
.floatTxt { position: fixed; z-index: 70; pointer-events: none; font-family: var(--font-d); font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 0 10px hsla(var(--hue), 100%, 70%, .9), 0 2px 4px #000; animation: floatUp 1.1s ease-out forwards; white-space: nowrap; transform: translate(-50%, -50%); }
.floatTxt.big { color: var(--gold); font-size: 22px; text-shadow: 0 0 12px rgba(255, 190, 80, .9), 0 2px 4px #000; }
.floatTxt.crit { color: var(--gold); font-size: 26px; font-weight: 900; text-shadow: 0 0 16px rgba(255, 160, 60, 1), 0 2px 4px #000; animation: critUp 1.1s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.8) } 20% { transform: translate(-50%, -90%) scale(1.1) } 100% { opacity: 0; transform: translate(-50%, -220%) scale(1) } }
@keyframes critUp { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.5) rotate(-6deg) } 15% { transform: translate(-50%, -80%) scale(1.35) rotate(3deg) } 30% { transform: translate(-50%, -100%) scale(1.1) rotate(0) } 100% { opacity: 0; transform: translate(-50%, -240%) scale(1) } }

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { --tc: hsl(var(--hue) 90% 70%); display: flex; gap: 12px; align-items: center; min-width: 260px; max-width: 360px; background: rgba(12, 14, 32, .96); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 20px color-mix(in srgb, var(--tc) 25%, transparent); animation: toastIn .4s cubic-bezier(.2, 1.3, .4, 1), toastOut .5s ease-in 4.3s forwards; }
.toast .ti { font-size: 26px; width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.toast small { display: block; color: var(--tc); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; }
.toast b { font-size: 14px; }
.toast .td { font-size: 12px; color: var(--muted); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes toastOut { to { transform: translateX(40px); opacity: 0 } }

#announce { position: fixed; left: 50%; top: 20%; transform: translateX(-50%); width: min(92vw, 760px); z-index: 160; pointer-events: none; text-align: center; }
.ann { font-family: var(--font-d); font-weight: 900; animation: annIn 2.8s ease-out forwards; }
.ann .a1 { font-size: 34px; color: var(--gold); text-shadow: 0 0 30px rgba(255, 190, 80, .9), 0 3px 6px #000; letter-spacing: 2px; }
.ann .a2 { font-family: var(--font-b); font-weight: 600; font-size: 17px; color: #fff; text-shadow: 0 2px 6px #000; margin-top: 6px; }
.ann.huge .a1 { font-size: 54px; letter-spacing: 8px; background: linear-gradient(90deg, #fff, var(--gold), #ff8a5b, #fff); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 2s linear infinite; }
.ann.huge { animation-duration: 3.6s; }
.ann.evolve .a1 { color: #fff; text-shadow: 0 0 30px hsla(var(--hue), 100%, 70%, 1), 0 3px 6px #000; }
.ann.small .a1 { font-size: 24px; }
@keyframes annIn { 0% { opacity: 0; transform: scale(.6) } 12% { opacity: 1; transform: scale(1.08) } 20% { transform: scale(1) } 80% { opacity: 1 } 100% { opacity: 0; transform: translateY(-20px) } }
#flash { position: fixed; inset: 0; z-index: 180; pointer-events: none; background: radial-gradient(circle, #fff, hsl(var(--hue) 100% 80%) 40%, transparent 80%); opacity: 0; }
#flash.go { animation: flash 2.2s ease-out; }
@keyframes flash { 0% { opacity: 0 } 10% { opacity: .9 } 100% { opacity: 0 } }

/* ---------- Modal ---------- */
#modal { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; background: rgba(2, 3, 10, .72); backdrop-filter: blur(6px); padding: 16px; }
#modal.hidden { display: none; }
.modalBox { width: min(480px, 100%); max-height: 90vh; overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 50px hsla(var(--hue), 90%, 60%, .2); animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1); position: relative; overflow-x: hidden; }
.modalBox::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url(../assets/textures/grid.svg); opacity: .12; -webkit-mask: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); }
.modalBox.wide { width: min(560px, 100%); }
.modalBox h2 { font-family: var(--font-d); margin: 0 0 8px; font-size: 21px; letter-spacing: 1px; }
.modalBox p { color: var(--muted); line-height: 1.6; }
.modalBox p b { color: var(--text); }
.modalBox .bigNum { font-family: var(--font-d); font-size: 30px; font-weight: 900; color: var(--gold); text-shadow: 0 0 20px rgba(255, 190, 80, .6); margin: 10px 0; }
.modalBox .mIcon { font-size: 54px; animation: bob 3s ease-in-out infinite; }
.essGain { color: var(--accent); font-weight: 700; font-size: 18px; }
.offExtra { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.8; text-align: left; }
.offExtra b { color: var(--text); }
#modalBtns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; position: relative; }
.dRow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 12px 0; }
.dDay { padding: 8px 2px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 18px; }
.dDay small { display: block; font-size: 9px; color: var(--muted); }
.dDay.past { opacity: .45; }
.dDay.now { border-color: var(--gold); background: rgba(255, 200, 100, .15); box-shadow: 0 0 14px rgba(255, 200, 100, .4); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  body { overflow: auto; }
  #app { height: auto; min-height: 100vh; }
  #layout { grid-template-columns: 1fr; padding: 0 12px 16px; }
  #leftCol, #rightCol { overflow: visible; }
  #midCol { height: 75vh; }
  #ticker { display: none; }
  #topbar { justify-content: space-between; }
  #goal { margin-top: 14px; }
}
@media (max-width: 520px) {
  #orbWrap { width: 210px; height: 210px; }
  #orb { width: 154px; height: 154px; }
  #dustAmount { font-size: 30px; }
  .pHero { grid-template-columns: 1fr; }
  .tabPage { padding: 14px; }
  .perk { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 19px; }
  #buyAmt button { padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring, #orbHalo, .gStrip img, #app.shake, .mIcon { animation: none !important; }
}

/* ---------- Modo captura (promo) ---------- */
html.shot *, html.shot *::before, html.shot *::after { animation: none !important; transition: none !important; }
html.shot .panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 14, 34, 0.86); }
html.shot #loader, html.shot #announce, html.shot #toasts, html.shot .grain, html.shot #fx, html.shot #cometLayer { display: none; }
