/* Pixdly World v5 — tap conquest HUD, siege panel, rewards. Mobile first. */
:root { --g1: #fff3b8; --g2: #f6c453; --g3: #d88a17; --ink: #0d0a24; --panel: rgba(16,12,40,.94); --edge: rgba(160,130,255,.28); --ok: #4cff9a; --bad: #ff5a6e; }

/* legacy chrome hidden in the simplified game */
.v5 .hud-profile, .v5 .hud-power, .v5 .hud-res, .v5 .hud-tools, .v5 .roll-cta, .v5 .top10, .v5 #sheet, .v5 #guide, .v5 .gamemenu, .v5 #forcePop { display: none !important; }
@media (max-width: 759px) { .v5 .chatbox { display: none; } }
.v5 .chatbox { bottom: 150px; }

/* ---------------------------------------------------------------- avatar */
.av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; color: #fff; background: #2b2163; vertical-align: middle; line-height: 1; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.av b { font-weight: 800; font-family: var(--ui); }
.av.ring { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px var(--g2), 0 4px 14px rgba(0,0,0,.5); }
.av.ring.t3 { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px #7dd3fc, 0 0 16px rgba(125,211,252,.55); }
.av.ring.t4 { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px #c084fc, 0 0 18px rgba(192,132,252,.6); }
.av.ring.t5 { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px #ffe27a, 0 0 22px rgba(255,214,90,.8); animation: crown 2.4s ease-in-out infinite; }
@keyframes crown { 50% { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px #fff3b8, 0 0 30px rgba(255,214,90,1); } }

/* ---------------------------------------------------------------- HUD */
#ehud { position: fixed; inset: 0 0 auto 0; z-index: 21; pointer-events: none; padding: calc(env(safe-area-inset-top) + 8px) 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
#ehud > * { pointer-events: auto; }
.e-pool { grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; justify-items: center; gap: 1px; padding: 7px 12px 8px; border-radius: 18px;
  background: radial-gradient(120% 140% at 50% 0%, #3b2a0a 0%, #1d1240 55%, #120c2c 100%); box-shadow: 0 0 0 1.5px rgba(246,196,83,.65), 0 0 0 4px rgba(20,12,44,.9), 0 10px 30px rgba(0,0,0,.55), 0 0 40px rgba(246,196,83,.18); text-align: center; }
.ep-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,240,190,.22) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.ep-k { font: 800 10.5px/1 var(--ui); letter-spacing: .22em; color: #ffe9a8; }
.ep-v { font: 400 30px/1.05 var(--display); letter-spacing: .01em; background: linear-gradient(180deg, var(--g1), var(--g2) 55%, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); font-variant-numeric: tabular-nums; }
.ep-s { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font: 600 10.5px/1.2 var(--ui); color: #cbbff5; }
.ep-s span { display: inline-flex; gap: 4px; align-items: baseline; } .ep-s i { font-style: normal; opacity: .75; } .ep-s b { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .ep-s .hide-s { display: none; } }
.e-me { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 30px; background: var(--panel); box-shadow: 0 0 0 1px var(--edge), 0 8px 24px rgba(0,0,0,.45); text-align: left; justify-self: start; max-width: 100%; }
.em-t { display: grid; min-width: 0; line-height: 1.1; }
.em-t small { font: 600 11px var(--ui); color: #b9aee8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-t b { font: 400 21px/1.05 var(--display); color: var(--ok); text-shadow: 0 0 14px rgba(76,255,154,.35); font-variant-numeric: tabular-nums; }
.em-t i { font: 600 10.5px var(--ui); font-style: normal; color: #d9d0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-chips { display: grid; gap: 6px; align-content: start; }
.e-chip { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 18px; background: var(--panel); box-shadow: 0 0 0 1px var(--edge), 0 6px 16px rgba(0,0,0,.4); font: 700 14px var(--ui); color: #fff; }
.e-chip > span { font-size: 17px; } .e-chip small { font: 700 9.5px var(--ui); letter-spacing: .1em; color: #a99be0; text-transform: uppercase; }
.e-chip b { font-variant-numeric: tabular-nums; }
.e-chip.echo b { color: #ffe27a; }
.e-chip.pop { animation: pop .35s; } @keyframes pop { 40% { transform: scale(1.18); } }
.e-feed { grid-column: 1 / -1; justify-self: center; height: 22px; overflow: hidden; pointer-events: none !important; }
.e-feed .ef-in { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 11px; background: rgba(12,8,30,.78); font: 600 11.5px var(--ui); color: #e5ddff; animation: feedin .5s; white-space: nowrap; }
.e-feed img { width: 16px; height: 11px; border-radius: 2px; }
@keyframes feedin { from { transform: translateY(100%); opacity: 0; } }
.e-obj { position: fixed; z-index: 21; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 96px); display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(40,26,92,.96), rgba(22,14,54,.97)); box-shadow: 0 0 0 1px rgba(246,196,83,.45), 0 8px 24px rgba(0,0,0,.45); color: #fff; text-align: left; overflow: hidden; }
.eo-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(246,196,83,.18); font-size: 17px; flex: none; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) scale(1.06); } }
.eo-t { flex: 1; min-width: 0; font: 700 13.5px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-p { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); } .eo-p i { display: block; height: 100%; background: linear-gradient(90deg, var(--g3), var(--g1)); transition: width .5s; }
body.sieging .e-obj { display: none; }

/* bottom bar: Map · Rewards · ATTACK · Ranks · Wallet */
.v5 .hud-bottom { display: flex; align-items: flex-end; gap: 2px; }
.v5 .hud-bottom .hb { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 58px; padding: 6px 4px 4px; border-radius: 16px; color: #d6ccff; }
.v5 .hud-bottom .hb small { font: 700 10.5px var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.v5 .hud-bottom .hb-e { font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.v5 .hud-bottom .hb:active { transform: scale(.94); }
.v5 .hud-bottom .hb-attack { width: 76px; height: 76px; margin-top: -26px; border-radius: 50%; align-content: center; background: radial-gradient(circle at 50% 30%, #ff8a96, #e0283f 58%, #7a0a18); box-shadow: 0 0 0 4px #1a0a1e, 0 0 0 6px rgba(255,214,90,.75), 0 10px 26px rgba(224,40,63,.55); color: #fff; }
.v5 .hud-bottom .hb-attack .hb-e { font-size: 30px; }
.v5 .hud-bottom .hb-attack small { font: 400 11px var(--display); letter-spacing: .06em; }
.hba-ring { position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,214,90,.8); animation: ring 1.8s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.e-dot { position: absolute; top: 4px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #120c2c; animation: pop 1.2s infinite; }
@media (max-width: 759px) { body.sieging .hud-bottom { display: none; } }

/* ---------------------------------------------------------------- siege panel */
#siege { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 12px calc(env(safe-area-inset-bottom) + 12px); border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(30,20,70,.97), rgba(13,9,32,.985)); box-shadow: 0 -1px 0 rgba(246,196,83,.5), 0 -16px 40px rgba(0,0,0,.55);
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.9,.3,1.1); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#siege.show { transform: none; }
.sg-grab { width: 42px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); margin: 0 auto 8px; }
.sg-head { display: flex; align-items: center; gap: 10px; }
.sg-flag { width: 40px; height: 28px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255,255,255,.3); flex: none; }
.sg-title { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.sg-title > b { font: 400 18px var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-title small { font: 600 12px var(--ui); color: #c3b8ef; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sg-title small b { color: #fff; } .sg-title .sf { width: 16px; height: 11px; border-radius: 2px; }
.tier-small { color: #9ef0b8; } .tier-medium { color: #9ad7ff; } .tier-large { color: #ffc27a; } .tier-strategic { color: #ff8aa0; font-weight: 800; }
.sg-x { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #ddd; font-size: 16px; flex: none; }
.sg-sur { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sg-sur span { padding: 4px 10px; border-radius: 12px; font: 700 12px var(--ui); background: rgba(255,255,255,.08); }
.sg-sur .sur-crate, .sg-sur .sur-golden, .sg-sur .sur-bounty { background: linear-gradient(90deg, rgba(246,196,83,.3), rgba(246,196,83,.12)); color: #ffe9a8; box-shadow: inset 0 0 0 1px rgba(246,196,83,.5); animation: glow 1.6s ease-in-out infinite; }
.sg-sur .sur-rebels { background: rgba(255,107,74,.2); color: #ffc0ae; } .sg-sur .sur-weakened { background: rgba(125,211,252,.18); color: #cdeeff; } .sg-sur .sur-fortified { background: rgba(167,139,250,.2); color: #e2d8ff; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 1px rgba(246,196,83,.9), 0 0 14px rgba(246,196,83,.45); } }
.sg-bar { position: relative; height: 26px; margin-top: 10px; border-radius: 13px; background: #1a0f22; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); overflow: hidden; }
.sg-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #ff7a8a, #d61f3c); transition: width .12s linear; box-shadow: 0 0 16px rgba(255,60,90,.6); }
.sg-bar.defend i { background: linear-gradient(180deg, #7dffb0, #1fae5a); box-shadow: 0 0 16px rgba(76,255,154,.5); }
.sg-bar span { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; white-space: nowrap; font: 700 13px var(--ui); text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.sg-top { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sg-top small { font: 700 10.5px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #a99be0; margin-right: 2px; }
.sgt { position: relative; display: grid; justify-items: center; }
.sgt em { position: absolute; top: -10px; font-style: normal; font-size: 12px; }
.sgt i { font: 700 9.5px var(--ui); font-style: normal; color: #ffd6a0; }
.sg-act { margin-top: 8px; display: grid; gap: 8px; }
.sg-meta { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; font: 700 12.5px var(--ui); color: #d9d0ff; }
.sg-meta > span { padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.07); }
.sg-meta .sg-combo { min-width: 52px; text-align: center; transition: transform .1s; font: 800 13px var(--ui); } .sg-meta .sg-combo.hot { color: #ffe27a; background: rgba(246,196,83,.18); transform: scale(1.08); }
.sg-meta .frenzy { color: #fff; background: linear-gradient(90deg, #ff5a1f, #ff2d6f); animation: pop .8s infinite; }
.sg-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 96px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #ff8a96 0%, #e0283f 50%, #7a0a18 100%); box-shadow: inset 0 -6px 0 rgba(60,0,10,.55), inset 0 3px 0 rgba(255,255,255,.35), 0 0 0 3px #2a0712, 0 0 0 5px rgba(255,214,90,.7), 0 14px 34px rgba(224,40,63,.45);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sg-btn.defend { background: radial-gradient(120% 140% at 50% 0%, #8dffbd 0%, #1fae5a 50%, #0b5a2a 100%); box-shadow: inset 0 -6px 0 rgba(0,50,20,.55), inset 0 3px 0 rgba(255,255,255,.35), 0 0 0 3px #062a12, 0 0 0 5px rgba(255,214,90,.7), 0 14px 34px rgba(31,174,90,.4); }
.sg-btn.hit { animation: hit .12s ease-out; } @keyframes hit { 50% { transform: scale(.965); filter: brightness(1.25); } }
.sgb-glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(255,230,140,.35), transparent 70%); animation: breathe 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { opacity: .4; } }
.sgb-ic { font-size: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); pointer-events: none; }
.sgb-t { display: grid; text-align: left; pointer-events: none; } .sgb-t b { font: 400 32px/1 var(--display); letter-spacing: .04em; text-shadow: 0 3px 0 rgba(0,0,0,.35); } .sgb-t small { font: 700 12px var(--ui); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.sg-lock, .sg-guest { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.07); font: 600 13.5px var(--ui); text-align: center; color: #e5ddff; }
.sg-guest { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; background: rgba(246,196,83,.12); }
.sg-cap { position: relative; height: 16px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; } .sg-cap i { position: absolute; inset: 0 auto 0 0; background: rgba(246,196,83,.35); } .sg-cap span { position: relative; display: block; text-align: center; font: 600 10.5px/16px var(--ui); color: #ffe9a8; }
@media (min-width: 760px) {
  #ehud { grid-template-columns: 1fr auto 1fr; align-items: start; padding: 12px 14px 0; }
  .e-pool { grid-column: 2; grid-row: 1; min-width: 440px; padding: 9px 22px 10px; }
  .ep-v { font-size: 38px; }
  .e-me { grid-column: 1; grid-row: 1; }
  .e-chips { grid-column: 3; grid-row: 1; justify-self: end; grid-auto-flow: column; }
  .e-feed { grid-column: 2; grid-row: 2; }
  .e-obj { left: 50%; right: auto; transform: translateX(-50%); width: min(520px, 60vw); bottom: 104px; }
  #siege { left: auto; right: 16px; top: 150px; bottom: auto; width: 390px; border-radius: 24px; padding: 14px 16px 16px; transform: translateX(120%); box-shadow: 0 0 0 1.5px rgba(246,196,83,.45), 0 20px 50px rgba(0,0,0,.6); }
  #siege.show { transform: none; } .sg-grab { display: none; }
  .sg-btn { height: 120px; }
}

/* ---------------------------------------------------------------- effects */
#efx { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.fl { position: absolute; transform: translate(-50%, 0); font: 400 20px var(--display); color: #fff; text-shadow: 0 2px 0 #4a0010, 0 0 8px rgba(255,60,90,.6); animation: up .75s ease-out forwards; white-space: nowrap; }
.fl.sm { font-size: 15px; opacity: .9; }
.fl.crit { font-size: 26px; color: #ffe27a; text-shadow: 0 2px 0 #5a3000, 0 0 12px rgba(255,200,60,.8); animation-duration: 1s; }
.fl.mega { font-size: 34px; color: #ff9cf2; text-shadow: 0 3px 0 #3a0050, 0 0 18px rgba(255,120,240,.9); animation: upbig 1.1s ease-out forwards; }
.fl.jack { font-size: 44px; color: #fff3b8; text-shadow: 0 3px 0 #6a3a00, 0 0 24px rgba(255,214,90,1); animation: upbig 1.2s ease-out forwards; }
.fl.echo { font: 800 14px var(--ui); color: #ffe27a; text-shadow: 0 1px 2px #000; animation: up .9s ease-out forwards; }
@keyframes up { 0% { transform: translate(-50%, 0) scale(.7); opacity: 0; } 15% { transform: translate(-50%, -10px) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
@keyframes upbig { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -20px) scale(1.3); opacity: 1; } 100% { transform: translate(-50%, -110px) scale(1); opacity: 0; } }
.boom { position: absolute; font-size: 22px; transform: translate(-50%, -50%); animation: boom .6s ease-out forwards; }
@keyframes boom { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(-50%, -90%) scale(1.4) rotate(20deg); opacity: 0; } }
.coin { position: absolute; left: 0; top: 0; font-size: 18px; filter: drop-shadow(0 0 6px rgba(255,214,90,.9)); }
.cf { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; }
.conq-ring { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; box-shadow: 0 0 0 4px #ffe27a, 0 0 30px #ffd84c; animation: conq 1.3s ease-out forwards; }
@keyframes conq { to { transform: scale(14); opacity: 0; } }
#stage.shake { animation: shk .3s; } #stage.shake2 { animation: shk .55s; }
@keyframes shk { 20% { transform: translate(-5px, 3px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 2px); } }
.jackpot-banner { position: fixed; z-index: 96; left: 50%; top: 38%; transform: translate(-50%, -50%); display: grid; justify-items: center; animation: jb 2.2s ease-out forwards; pointer-events: none; }
.jackpot-banner b { font: 400 64px/1 var(--display); background: linear-gradient(180deg, #fff9d6, #ffd84c 50%, #d88a17); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #5a2c00) drop-shadow(0 0 30px rgba(255,214,90,.9)); }
.jackpot-banner small { font: 800 16px var(--ui); letter-spacing: .3em; color: #fff; }
@keyframes jb { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.ebanner { position: fixed; z-index: 95; left: 50%; top: calc(env(safe-area-inset-top) + 150px); transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; min-width: min(340px, 92vw); padding: 14px 20px 16px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(48,30,110,.97), rgba(20,12,50,.98)); box-shadow: 0 0 0 2px rgba(246,196,83,.7), 0 20px 50px rgba(0,0,0,.6), 0 0 50px rgba(246,196,83,.25); animation: bin .45s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.ebanner.out { transition: opacity .4s, transform .4s; opacity: 0; transform: translateX(-50%) translateY(-20px); }
.ebanner .eb-ic { font-size: 40px; line-height: 1; } .ebanner .eb-ic.crate { animation: wob .6s 2; }
.ebanner > b { font: 400 24px var(--display); letter-spacing: .02em; background: linear-gradient(180deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ebanner > span { display: flex; align-items: center; gap: 6px; font: 600 14px var(--ui); color: #e5ddff; flex-wrap: wrap; justify-content: center; } .ebanner em { font-style: normal; color: #ffe27a; font-weight: 800; }
.ebanner.win { box-shadow: 0 0 0 2px #ffe27a, 0 20px 50px rgba(0,0,0,.6), 0 0 70px rgba(255,214,90,.5); }
@keyframes bin { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
@keyframes wob { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ---------------------------------------------------------------- popups */
.emodal-scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(6,4,18,.7); backdrop-filter: blur(4px); animation: fade .2s; }
.emodal { width: min(420px, 100%); display: grid; justify-items: center; gap: 10px; padding: 22px 20px 20px; border-radius: 26px; text-align: center; background: linear-gradient(180deg, #2a1c64, #120c2c); box-shadow: 0 0 0 2px rgba(246,196,83,.6), 0 30px 70px rgba(0,0,0,.6); animation: bin2 .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes bin2 { from { transform: scale(.7); opacity: 0; } }
.emodal h3 { margin: 0; font: 400 26px var(--display); text-transform: uppercase; } .emodal p { margin: 0; color: #d9d0ff; font-weight: 500; }
.em-ic { font-size: 56px; line-height: 1; animation: bob 1.6s ease-in-out infinite; }
.em-big { font: 400 44px var(--display); color: #ffe27a; text-shadow: 0 3px 0 #5a3000, 0 0 24px rgba(255,214,90,.5); } .em-big small { font-size: 18px; }
.btn.big { height: 54px; width: 100%; font-size: 18px; }
.muted.small, .small { font-size: 12px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; }
.streak span { display: grid; justify-items: center; gap: 1px; padding: 7px 0; border-radius: 12px; background: rgba(255,255,255,.06); font: 600 10px var(--ui); color: #a99be0; }
.streak span b { font-size: 18px; } .streak span i { font-style: normal; font-weight: 800; color: #fff; font-size: 11px; }
.streak span.done { background: rgba(76,255,154,.16); color: #b9ffd6; } .streak span.today { background: linear-gradient(180deg, #ffe488, #d98a12); color: #2b1a00; animation: pop 1.2s infinite; } .streak span.today i { color: #2b1a00; }
.streak.big { margin-bottom: 14px; } .center { text-align: center; }
.chests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; perspective: 600px; }
.chest { position: relative; height: 110px; border-radius: 18px; transform-style: preserve-3d; transition: transform .6s; }
.chest:hover { transform: translateY(-4px); }
.chest span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; backface-visibility: hidden; }
.cf-front { font-size: 52px; background: linear-gradient(180deg, #4a2fa0, #241656); box-shadow: inset 0 0 0 2px rgba(246,196,83,.5); animation: bob 1.8s ease-in-out infinite; }
.cf-back { transform: rotateY(180deg); background: linear-gradient(180deg, #3a2a7a, #1d1446); font: 800 15px var(--ui); color: #fff; padding: 6px; }
.chest.open { transform: rotateY(180deg); } .chest.picked .cf-back { background: linear-gradient(180deg, #ffe488, #d98a12); color: #2b1a00; box-shadow: 0 0 30px rgba(255,214,90,.7); }
.how { text-align: left; display: grid; gap: 8px; margin: 4px 0 8px; padding-left: 20px; color: #e5ddff; }

/* ---------------------------------------------------------------- windows content */
.pool-hero, .wal-hero { display: grid; justify-items: center; gap: 2px; padding: 16px; margin-bottom: 14px; border-radius: 20px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, #3b2a0a, #1d1240 60%); box-shadow: inset 0 0 0 1.5px rgba(246,196,83,.5); }
.pool-hero small, .wal-hero small { font: 800 11px var(--ui); letter-spacing: .2em; color: #ffe9a8; }
.pool-hero b { font: 400 46px var(--display); color: #ffe27a; text-shadow: 0 3px 0 #5a3000; } .pool-hero span, .wal-hero span { color: #d9d0ff; font-weight: 600; font-size: 13px; }
.wal-hero { display: flex; justify-content: center; gap: 16px; text-align: left; } .wal-hero > div { display: grid; } .wal-hero b { font: 400 40px var(--display); color: var(--ok); }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.pool-grid > div { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: #1b1c2a; } .pool-grid small { color: var(--muted); font-weight: 600; font-size: 12px; } .pool-grid b { font-size: 18px; }
.alloc { display: grid; gap: 7px; } .alloc > div { display: grid; grid-template-columns: 1fr 120px 42px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; }
.alloc i { height: 10px; border-radius: 5px; background: #24253a; overflow: hidden; } .alloc i b { display: block; height: 100%; } .alloc em { font-style: normal; font-weight: 800; text-align: right; }
.rules { display: grid; gap: 8px; padding-left: 18px; color: #d6d2ea; line-height: 1.4; } .win-body h4 { margin: 18px 0 8px; font: 400 15px var(--display); text-transform: uppercase; letter-spacing: .04em; color: #ffe9a8; }
.wal-est { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(76,255,154,.08); box-shadow: inset 0 0 0 1px rgba(76,255,154,.3); }
.wal-est b { font: 400 22px var(--display); color: var(--ok); } .wal-est small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.wal-prog { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 12px 0; font-weight: 700; font-size: 13px; } .wal-prog i { height: 12px; border-radius: 6px; background: #24253a; overflow: hidden; } .wal-prog i b { display: block; height: 100%; background: linear-gradient(90deg, #1fae5a, #7dffb0); }
.wd-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .wd-sum > div { display: grid; padding: 12px; border-radius: 14px; background: #1b1c2a; } .wd-sum small { color: var(--muted); font-size: 12px; } .wd-sum b { font-size: 18px; } .wd-sum b.ok { color: var(--ok); }
.wd-form { display: grid; gap: 10px; margin-top: 14px; } .wd-form label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.wd-list { display: grid; gap: 6px; } .wd-list > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #1b1c2a; } .wd-list span { flex: 1; color: var(--muted); font-size: 13px; }
.wd-list em { font-style: normal; font-weight: 800; text-transform: uppercase; font-size: 11px; padding: 3px 8px; border-radius: 8px; background: #2a2b40; } .wd-list .st-paid { background: rgba(76,255,154,.2); color: var(--ok); } .wd-list .st-rejected { background: rgba(255,90,110,.2); color: var(--bad); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.pack { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 12px 12px; border-radius: 18px; background: linear-gradient(180deg, #2a1c64, #161033); box-shadow: inset 0 0 0 1px var(--edge); text-align: center; }
.pack.pop { box-shadow: inset 0 0 0 2px var(--g2), 0 0 24px rgba(246,196,83,.25); } .pack .ribbon { position: absolute; top: -9px; padding: 2px 10px; border-radius: 8px; background: var(--g2); color: #2b1a00; font: 800 10px var(--ui); letter-spacing: .1em; }
.pk-ic { font-size: 26px; letter-spacing: -6px; } .pk-n { font: 400 20px var(--display); color: #ffe27a; } .pack small { color: #c3b8ef; font-size: 11.5px; } .pack .btn { width: 100%; margin-top: 6px; }
.wheel-wrap { position: relative; flex: none; width: min(300px, 74vw); height: min(300px, 74vw); margin: 14px auto 14px; }
.wheel { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 6px #ffd84c, 0 0 0 10px #2a1c64, 0 0 40px rgba(246,196,83,.4); }
.wheel span { position: absolute; left: 50%; top: 0; height: 50%; transform-origin: 50% 100%; display: grid; justify-items: center; align-content: start; padding-top: 14px; margin-left: -20px; width: 40px; }
.wheel span b { font-size: 24px; } .wheel span i { font: 800 12px var(--ui); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #fff3b8, #d88a17); color: #2b1a00; font: 400 14px var(--display); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.wheel-ptr { position: absolute; z-index: 2; left: 50%; top: -14px; transform: translateX(-50%); font-size: 28px; color: #ff5a6e; text-shadow: 0 2px 0 #000; }
.tiers { display: grid; gap: 8px; } .tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #1b1c2a; }
.tr .tr-ic { font-size: 30px; text-align: center; } .tr-t { display: grid; min-width: 0; } .tr small { color: var(--muted); } .tr .btn { height: 40px; padding: 0 14px; font-size: 13px; } .tr em { font-style: normal; color: var(--ok); font-size: 22px; }
.wal-av { position: relative; display: grid; justify-items: center; gap: 4px; } .wal-av small { font: 700 10px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #ffe9a8; }
#walProf { width: 100%; margin-top: 8px; }
.tr.cur { box-shadow: inset 0 0 0 2px var(--g2); background: #241c45; } .tr.done { opacity: .7; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .achs > div { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; background: #1b1c2a; text-align: center; opacity: .55; }
.achs > div.done { opacity: 1; box-shadow: inset 0 0 0 1.5px rgba(246,196,83,.6); } .achs span { font-size: 28px; } .achs small { color: var(--muted); font-size: 11.5px; } .achs em { font-style: normal; color: #ffe27a; font-weight: 800; font-size: 12px; }
.board { display: grid; gap: 6px; } .board > div { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: #1b1c2a; }
.board em { font-style: normal; font-weight: 800; text-align: center; font-size: 15px; } .board span { display: grid; min-width: 0; } .board span b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .board small { color: var(--muted); display: flex; gap: 4px; align-items: center; } .board small img { width: 16px; height: 11px; border-radius: 2px; }
.board strong { font: 400 18px var(--display); color: #ffe27a; } .board .me { box-shadow: inset 0 0 0 2px var(--ok); } .board .top1 { background: linear-gradient(90deg, rgba(246,196,83,.22), #1b1c2a); }
.prof { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; } .prof > div { display: grid; } .prof b { font: 400 24px var(--display); } .prof small { color: var(--muted); }
.avpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; } .avpick button { display: grid; justify-items: center; gap: 2px; padding: 5px; border-radius: 14px; background: #1b1c2a; } .avpick button.on { box-shadow: inset 0 0 0 2px var(--g2); } .avpick small { font-size: 10px; color: var(--muted); }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 759px) { .alloc > div { grid-template-columns: 1fr 80px 38px; } .wal-hero b { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .ep-shine, .hba-ring, .eo-ic, .em-ic, .cf-front, .sgb-glow { animation: none !important; } }
