:root{
  --bg:#08090d;--bg2:#0d1018;--panel:rgba(17,20,30,.88);--panel2:rgba(25,29,42,.86);
  --line:rgba(255,255,255,.085);--line2:rgba(255,255,255,.14);--text:#f5f6fb;--muted:#9299aa;
  --gold:#e6bd62;--gold2:#ffd98b;--blue:#5b8cff;--purple:#9e6cff;--green:#58d68d;--red:#ff667a;
  --radius:22px;--shadow:0 20px 60px rgba(0,0,0,.38);--navw:108px;
}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
button,input,select{font:inherit}.hidden{display:none!important}button{color:inherit}
body:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 20% -10%,rgba(91,140,255,.12),transparent 38%),radial-gradient(circle at 80% 15%,rgba(158,108,255,.1),transparent 36%),linear-gradient(180deg,#090a10,#07080c 74%);z-index:-4}
.ambient{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-3}.ambient-orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.16;animation:float 12s ease-in-out infinite}.orb-a{width:520px;height:520px;background:#5a79ff;left:-180px;top:15%}.orb-b{width:620px;height:620px;background:#8d55ff;right:-250px;top:2%;animation-delay:-5s}.ambient-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 85%)}
@keyframes float{50%{transform:translate3d(40px,-35px,0) scale(1.08)}}
.app-shell{height:100vh;min-height:0;display:grid;grid-template-rows:82px minmax(0,1fr) 26px}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;border-bottom:1px solid var(--line);background:rgba(8,9,14,.78);backdrop-filter:blur(18px);z-index:20}
.brand{display:flex;align-items:center;gap:13px;border:0;background:none;cursor:pointer;text-align:left}.brand-mark{width:44px;height:44px;border-radius:15px;position:relative;display:grid;place-items:center;background:linear-gradient(145deg,rgba(230,189,98,.18),rgba(91,140,255,.1));border:1px solid rgba(230,189,98,.26);box-shadow:inset 0 0 24px rgba(230,189,98,.08)}.brand-ring{width:23px;height:23px;border:3px solid var(--gold);border-radius:50%;opacity:.95}.brand-ring:after{content:"";position:absolute;width:24px;height:3px;background:var(--gold);top:20px;left:10px}.brand-core{position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 10px var(--gold)}
.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:20px;letter-spacing:.12em}.brand-copy small{font-size:9px;letter-spacing:.22em;color:var(--muted);margin-top:3px}
.topbar-right{display:flex;align-items:center;gap:10px}.status-chip,.currency-chip,.profile-chip{height:48px;border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:15px;display:flex;align-items:center;gap:9px;padding:0 14px}.status-chip{font-size:10px;font-weight:800;letter-spacing:.11em;color:var(--muted)}.status-dot{width:8px;height:8px;border-radius:50%;background:#8a8f9d;box-shadow:0 0 0 4px rgba(138,143,157,.08)}.status-chip.online .status-dot{background:var(--green);box-shadow:0 0 12px rgba(88,214,141,.7)}.status-chip.online{color:#b9efd0}.currency-chip strong{font-size:17px}.coin-icon{font-style:normal;color:var(--gold2);text-shadow:0 0 12px rgba(230,189,98,.35)}.profile-chip{cursor:pointer;color:var(--text);min-width:190px;text-align:left}.profile-chip:hover{background:rgba(255,255,255,.065);border-color:var(--line2)}.avatar{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#31384d,#151926);border:1px solid rgba(255,255,255,.12);font-weight:900;color:var(--gold2)}.avatar.small{width:38px;height:38px;border-radius:13px}.profile-chip-copy{display:flex;flex-direction:column;min-width:0}.profile-chip-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-chip-copy small{font-size:9px;color:var(--muted);margin-top:2px}
.body-shell{min-height:0;display:grid;grid-template-columns:var(--navw) minmax(0,1fr)}
.side-nav{min-height:0;border-right:1px solid var(--line);background:rgba(8,9,14,.68);backdrop-filter:blur(18px);padding:13px 10px;display:flex;flex-direction:column;gap:7px;overflow:auto}
.nav-item{border:1px solid transparent;background:transparent;border-radius:15px;color:#747b8c;min-height:66px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:.2s}.nav-icon{font-size:21px;line-height:1}.nav-item:hover{color:#d9ddea;background:rgba(255,255,255,.04)}.nav-item.active{color:var(--gold2);background:linear-gradient(145deg,rgba(230,189,98,.13),rgba(230,189,98,.045));border-color:rgba(230,189,98,.18);box-shadow:inset 0 0 20px rgba(230,189,98,.045)}.nav-spacer{flex:1}.nav-item.danger{color:#a27c86}
.main-stage{position:relative;min-width:0;min-height:0;overflow:hidden}.view{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;padding:26px 28px 34px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease,visibility .22s}.view.active{opacity:1;visibility:visible;transform:none}.view::-webkit-scrollbar{width:8px}.view::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:20px}
.footer{height:26px;border-top:1px solid var(--line);background:rgba(7,8,12,.94);display:flex;align-items:center;justify-content:center;color:#555c6b;font-size:9px;letter-spacing:.18em}.footer span{margin:0 8px;color:#947a44}
.glass-panel{background:linear-gradient(145deg,rgba(24,28,40,.84),rgba(12,14,22,.86));border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(16px)}
.eyebrow{display:block;font-size:9px;letter-spacing:.19em;font-weight:900;color:var(--gold);margin-bottom:8px}.muted{color:var(--muted)}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:22px}.page-heading h1{margin:0;font-size:clamp(27px,2.4vw,42px);line-height:1.06;letter-spacing:-.035em}.page-heading p{margin:7px 0 0;color:var(--muted);font-size:13px}.page-heading.compact{align-items:center}
.primary-btn,.secondary-btn,.ghost-btn{border:0;border-radius:13px;min-height:44px;padding:0 18px;font-size:10px;font-weight:900;letter-spacing:.09em;cursor:pointer;transition:.2s;display:inline-flex;align-items:center;justify-content:center;gap:12px}.primary-btn{background:linear-gradient(135deg,#f0c96f,#bd8b32);color:#151008;box-shadow:0 8px 28px rgba(230,189,98,.18),inset 0 1px rgba(255,255,255,.5)}.primary-btn:hover{transform:translateY(-2px);filter:brightness(1.08);box-shadow:0 11px 34px rgba(230,189,98,.26)}.primary-btn:disabled{opacity:.45;filter:grayscale(.35);cursor:not-allowed;transform:none}.secondary-btn{background:rgba(91,140,255,.13);border:1px solid rgba(91,140,255,.25);color:#b9ccff}.secondary-btn:hover{background:rgba(91,140,255,.2)}.ghost-btn{background:rgba(255,255,255,.04);border:1px solid var(--line);color:#c9ccda}.full{width:100%}
.field{display:flex;flex-direction:column;gap:7px}.field>span{font-size:9px;color:#9ca3b5;letter-spacing:.12em;font-weight:800}.field input,.trade-picker-head input,.search-box input,.toolbar select{height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.09);outline:0;background:rgba(3,5,10,.55);color:#eef0f7;padding:0 13px;font-size:12px;transition:.2s}.field input:focus,.trade-picker-head input:focus,.search-box input:focus,.toolbar select:focus{border-color:rgba(230,189,98,.55);box-shadow:0 0 0 3px rgba(230,189,98,.08)}.field.inline{flex-direction:row;align-items:center}.field.inline>span{white-space:nowrap}.field.inline input{min-width:240px}
.segmented{display:flex;background:rgba(0,0,0,.28);border:1px solid var(--line);border-radius:13px;padding:4px}.segment{height:36px;flex:1;border:0;border-radius:9px;background:transparent;color:#7f8696;font-size:9px;font-weight:900;letter-spacing:.1em;cursor:pointer}.segment.active{background:linear-gradient(135deg,rgba(230,189,98,.22),rgba(230,189,98,.08));color:var(--gold2);box-shadow:inset 0 0 0 1px rgba(230,189,98,.15)}
.inline-message{border-radius:11px;padding:10px 12px;font-size:11px;line-height:1.45;background:rgba(91,140,255,.08);border:1px solid rgba(91,140,255,.18);color:#cdd9ff}.inline-message.error{background:rgba(255,102,122,.08);border-color:rgba(255,102,122,.22);color:#ffc2ca}.inline-message.success{background:rgba(88,214,141,.08);border-color:rgba(88,214,141,.22);color:#bdf0d1}

/* auth */
#view-auth{padding:0}.auth-scene{min-height:100%;position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);align-items:center;gap:5vw;padding:5vh 6vw;overflow:hidden}.auth-copy{position:relative;z-index:2;max-width:670px}.auth-copy h1{font-size:clamp(42px,5vw,78px);line-height:.96;letter-spacing:-.055em;margin:0 0 23px}.auth-copy h1 span{background:linear-gradient(90deg,var(--gold2),#ffffff 55%,#b8c7ff);-webkit-background-clip:text;color:transparent}.auth-copy p{font-size:14px;line-height:1.7;color:#9aa1b3;max-width:570px}.auth-feature-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.auth-feature-row span{border:1px solid var(--line);border-radius:999px;padding:9px 12px;background:rgba(255,255,255,.035);color:#b4bac9;font-size:10px}.auth-feature-row b{color:var(--gold2);margin-right:5px}.auth-panel{position:relative;z-index:3;padding:27px;width:min(430px,100%);justify-self:end}.panel-kicker{font-size:9px;letter-spacing:.18em;color:var(--gold);font-weight:900}.auth-panel h2{font-size:28px;margin:8px 0 4px}.auth-panel>p{font-size:12px;margin:0 0 20px}.auth-tabs{margin-bottom:17px}.auth-form{display:grid;gap:14px}.auth-note{text-align:center;color:#666e7e;font-size:9px;margin-top:16px}.auth-cards{position:absolute;left:41%;top:50%;width:360px;height:470px;transform:translate(-50%,-50%);opacity:.16}.sil-card{position:absolute;width:205px;height:292px;border-radius:20px;border:1px solid rgba(230,189,98,.55);background:linear-gradient(145deg,rgba(230,189,98,.25),rgba(91,140,255,.15));box-shadow:0 30px 80px #000}.card-one{transform:rotate(-17deg) translate(-70px,50px)}.card-two{transform:rotate(5deg);z-index:2}.card-three{transform:rotate(21deg) translate(70px,45px)}

/* home */
.home-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.hero-card{min-height:350px;position:relative;overflow:hidden;padding:30px;display:flex;align-items:center}.hero-glow{position:absolute;width:390px;height:390px;border-radius:50%;right:-80px;top:-50px;background:radial-gradient(circle,rgba(230,189,98,.22),rgba(158,108,255,.12) 42%,transparent 70%);filter:blur(10px)}.hero-copy{position:relative;z-index:2;width:53%}.hero-copy h2{font-size:clamp(26px,3vw,46px);line-height:1;margin:0 0 10px;letter-spacing:-.04em}.hero-copy p{color:var(--muted);font-size:12px;margin-bottom:22px}.featured-card-wrap{position:absolute;right:6%;top:50%;transform:translateY(-50%) rotate(6deg);width:min(230px,34%);filter:drop-shadow(0 26px 28px rgba(0,0,0,.46));transition:.35s}.hero-card:hover .featured-card-wrap{transform:translateY(-52%) rotate(3deg) scale(1.035)}.featured-card-wrap img{display:block;width:100%;border-radius:14px}.card-placeholder{aspect-ratio:2.5/3.5;border-radius:18px;border:1px solid rgba(230,189,98,.24);display:grid;place-items:center;background:linear-gradient(145deg,#202638,#11151f);color:#788096}.card-placeholder span{font-size:56px;align-self:end}.card-placeholder small{font-size:9px;align-self:start}
.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric-card{padding:21px;min-height:145px;display:flex;flex-direction:column}.metric-card small{font-size:9px;letter-spacing:.13em;color:#787f90}.metric-card strong{font-size:35px;line-height:1;margin:13px 0 7px}.metric-card span{font-size:10px;color:var(--muted)}.progress{height:5px;border-radius:9px;background:rgba(255,255,255,.065);overflow:hidden;margin-top:auto}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),var(--blue));border-radius:inherit;transition:width .5s}.quick-actions,.rarity-overview{padding:22px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title h2,.section-title h3{margin:0;font-size:19px}.section-title.small h3{font-size:15px}.action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.action-card{min-height:118px;border-radius:17px;text-align:left;padding:17px;border:1px solid var(--line);background:rgba(255,255,255,.035);position:relative;cursor:pointer;display:flex;flex-direction:column;transition:.22s}.action-card:after{content:"";position:absolute;inset:0;border-radius:inherit;opacity:.08;transition:.2s}.action-card.gold:after{background:linear-gradient(135deg,var(--gold),transparent 65%)}.action-card.purple:after{background:linear-gradient(135deg,var(--purple),transparent 65%)}.action-card.blue:after{background:linear-gradient(135deg,var(--blue),transparent 65%)}.action-card:hover{transform:translateY(-4px);border-color:var(--line2)}.action-icon{font-size:22px;margin-bottom:auto}.action-card strong{font-size:12px}.action-card small{font-size:9px;color:var(--muted);margin-top:3px}.action-card i{position:absolute;right:14px;bottom:14px;color:#777f90}.rarity-bars{display:grid;gap:11px}.rarity-bar-row{display:grid;grid-template-columns:86px 1fr 32px;gap:10px;align-items:center;font-size:9px;color:#9ca3b4}.rarity-bar-row .bar{height:7px;border-radius:10px;background:rgba(255,255,255,.05);overflow:hidden}.rarity-bar-row .bar i{display:block;height:100%;border-radius:inherit;background:var(--rarity-color,#aaa)}.daily-btn{min-width:225px;border:1px solid rgba(230,189,98,.22);border-radius:17px;padding:11px 15px;background:linear-gradient(145deg,rgba(230,189,98,.12),rgba(255,255,255,.025));display:flex;align-items:center;gap:11px;cursor:pointer}.daily-btn:disabled{opacity:.55;cursor:not-allowed}.daily-icon{font-size:22px;color:var(--gold)}.daily-btn span:last-child{display:flex;flex-direction:column;text-align:left}.daily-btn strong{font-size:11px}.daily-btn small{font-size:9px;color:var(--muted);margin-top:2px}

/* toolbar/cards */
.completion-orb{width:82px;height:82px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(230,189,98,.22);background:radial-gradient(circle at 50% 35%,rgba(230,189,98,.16),rgba(255,255,255,.02));box-shadow:inset 0 0 25px rgba(230,189,98,.06)}.completion-orb strong{font-size:18px;color:var(--gold2)}.completion-orb small{font-size:7px;letter-spacing:.15em;color:var(--muted)}
.toolbar{padding:10px;display:grid;grid-template-columns:minmax(200px,1.4fr) repeat(3,minmax(130px,.65fr)) auto;gap:8px;margin-bottom:16px}.search-box{height:46px;border:1px solid var(--line);border-radius:12px;background:rgba(3,5,10,.45);display:flex;align-items:center;padding-left:13px}.search-box span{color:#717889}.search-box input{border:0!important;background:transparent!important;box-shadow:none!important;width:100%}.toolbar select{appearance:none;padding-right:28px}.view-toggle{display:flex;border:1px solid var(--line);border-radius:12px;overflow:hidden}.view-toggle button{width:42px;border:0;background:transparent;color:#666e7d;cursor:pointer}.view-toggle button.active{background:rgba(230,189,98,.12);color:var(--gold2)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:14px;padding-bottom:20px}.card-grid.large{grid-template-columns:repeat(auto-fill,minmax(205px,1fr))}.tcg-card{position:relative;border:1px solid rgba(255,255,255,.08);border-radius:17px;padding:8px;background:linear-gradient(155deg,rgba(29,33,46,.9),rgba(11,13,20,.95));box-shadow:0 14px 30px rgba(0,0,0,.24);cursor:pointer;transition:transform .22s,border-color .22s,box-shadow .22s;overflow:hidden}.tcg-card:hover{transform:translateY(-7px) scale(1.015);border-color:var(--rarity-color);box-shadow:0 19px 42px rgba(0,0,0,.42),0 0 24px color-mix(in srgb,var(--rarity-color) 18%,transparent)}.tcg-card:before{content:"";position:absolute;inset:-55%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.09) 47%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.07) 53%,transparent 65%);transform:translateX(-55%) rotate(8deg);transition:transform .55s;pointer-events:none;z-index:3}.tcg-card.holo:hover:before{transform:translateX(55%) rotate(8deg)}.tcg-art{position:relative;aspect-ratio:2.5/3.5;border-radius:12px;overflow:hidden;background:#10131c}.tcg-art img{width:100%;height:100%;display:block;object-fit:cover}.tcg-qty{position:absolute;right:7px;top:7px;z-index:2;min-width:27px;height:27px;border-radius:9px;padding:0 6px;display:grid;place-items:center;background:rgba(7,9,14,.85);border:1px solid rgba(255,255,255,.14);font-size:9px;font-weight:900}.tcg-meta{padding:10px 4px 4px}.tcg-meta strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tcg-meta small{display:flex;justify-content:space-between;margin-top:5px;color:var(--muted);font-size:8px}.rarity-dot{color:var(--rarity-color);font-weight:800}.empty-state{min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6f7788}.empty-state>div{font-size:42px}.empty-state h3{color:#c9cdd8;margin:12px 0 4px}.empty-state p{font-size:11px}

/* duplicates */
.dupe-summary{display:flex;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:rgba(255,255,255,.025)}.dupe-summary>span{padding:12px 17px;display:flex;flex-direction:column;min-width:120px}.dupe-summary>span+span{border-left:1px solid var(--line)}.dupe-summary small{font-size:7px;letter-spacing:.12em;color:#737a8b}.dupe-summary strong{font-size:17px;margin-top:3px}.dupe-summary em{font-style:normal}
.dupe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:12px}.dupe-card{padding:10px;display:grid;grid-template-columns:82px minmax(0,1fr);gap:13px;align-items:center}.dupe-card img{width:82px;aspect-ratio:2.5/3.5;object-fit:cover;border-radius:10px}.dupe-info h3{font-size:13px;margin:0 0 3px}.dupe-info .rarity-pill{display:inline-flex}.dupe-values{display:flex;gap:10px;margin-top:9px}.dupe-values span{font-size:8px;color:var(--muted)}.dupe-values b{display:block;color:#e7e9f0;font-size:11px;margin-top:2px}.dupe-actions{display:flex;gap:7px;margin-top:10px}.dupe-actions input{width:54px;height:35px;border:1px solid var(--line);border-radius:9px;background:#090b11;color:#fff;text-align:center}.dupe-actions button{min-height:35px;padding:0 11px}

/* packs */
.packs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.pack-card{position:relative;min-height:470px;padding:23px;overflow:hidden;display:flex;flex-direction:column}.pack-card:before{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-100px;top:-90px;background:var(--pack-glow);filter:blur(15px);opacity:.3}.pack-badge{font-size:8px;letter-spacing:.14em;color:#8e95a6;font-weight:800}.pack-visual{height:220px;display:grid;place-items:center;position:relative}.pack-envelope.mini{width:145px;height:195px}.pack-card:hover .pack-envelope.mini{transform:rotate(2deg) translateY(-5px)}.pack-card h2{font-size:22px;margin:2px 0 5px}.pack-card p{font-size:10px;line-height:1.55;color:var(--muted);min-height:47px}.pack-facts{display:flex;justify-content:space-between;margin:12px 0 16px;padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.pack-facts span{display:flex;flex-direction:column;font-size:8px;color:var(--muted)}.pack-facts b{font-size:12px;color:#eef0f7;margin-top:2px}.pack-buy{margin-top:auto}
.pack-envelope{width:190px;height:265px;border-radius:16px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,rgba(9,12,18,.66),rgba(9,12,18,.72)),url('assets/pokescape-card-back.png') center/cover no-repeat;border:1px solid rgba(255,255,255,.16);box-shadow:0 25px 45px rgba(0,0,0,.38),inset 0 0 50px rgba(91,140,255,.08);transition:.3s;overflow:hidden}.pack-envelope:before{content:"";position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.13) 48%,transparent 58%);transform:rotate(12deg)}.pack-envelope:after{content:"";position:absolute;inset:10px;border:1px solid rgba(230,189,98,.24);border-radius:11px}.pack-logo{font-weight:1000;text-align:center;font-size:27px;line-height:.85;letter-spacing:.06em;color:#f4f5fa;text-shadow:0 4px 18px #000;z-index:2}.pack-logo span{font-size:17px;color:var(--gold2)}.pack-envelope small{margin-top:17px;font-size:8px;letter-spacing:.18em;color:#d2d8e4;z-index:2;font-weight:800;background:rgba(5,7,11,.38);padding:4px 8px;border-radius:999px}

/* wheel */
.wheel-layout{display:grid;grid-template-columns:minmax(430px,1.35fr) minmax(320px,.65fr);gap:18px}.wheel-stage{min-height:590px;display:grid;place-items:center;position:relative;overflow:hidden}.wheel-stage:before{content:"";position:absolute;width:560px;height:560px;border-radius:50%;background:radial-gradient(circle,rgba(91,140,255,.13),transparent 66%)}.wheel-pointer{position:absolute;top:31px;left:50%;transform:translateX(-50%);z-index:4;color:var(--gold2);font-size:33px;filter:drop-shadow(0 0 10px rgba(230,189,98,.65))}
.wheel-disc{width:min(500px,76vh,82%);aspect-ratio:1;border-radius:50%;position:relative;border:10px solid #1a1f2c;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 20px 60px #000,inset 0 0 45px rgba(0,0,0,.38);background:conic-gradient(from -16.36deg,#26314a 0 32.72deg,#4b315d 32.72deg 65.44deg,#293c43 65.44deg 98.16deg,#62492f 98.16deg 130.88deg,#29344f 130.88deg 163.6deg,#46365f 163.6deg 196.32deg,#2c4240 196.32deg 229.04deg,#6b4c30 229.04deg 261.76deg,#463058 261.76deg 294.48deg,#695329 294.48deg 327.2deg,#30475d 327.2deg 360deg);transition:transform 4.8s cubic-bezier(.12,.72,.12,1)}.wheel-disc:after{content:"";position:absolute;inset:8%;border:1px solid rgba(255,255,255,.12);border-radius:50%}.wheel-centre{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:28%;aspect-ratio:1;border-radius:50%;z-index:3;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at 50% 35%,#343d55,#11141e 68%);border:5px solid #1b2130;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 8px 25px #000}.wheel-centre strong{font-size:15px;letter-spacing:.09em}.wheel-centre span{font-size:10px;color:var(--gold2);letter-spacing:.15em}.wheel-panel{padding:22px}.stake-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 13px}.stake-btn{height:48px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03);color:#aeb4c3;font-size:11px;font-weight:800;cursor:pointer}.stake-btn.active{border-color:rgba(230,189,98,.36);background:rgba(230,189,98,.11);color:var(--gold2)}.wheel-odds{margin-top:22px}.odds-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:9px}.odds-row span:first-child{color:#adb3c1}.odds-row b{color:#e5e7ef}

/* trade */
.trade-search{padding:12px 14px;display:flex;align-items:center;gap:10px;margin-bottom:14px}.found-player{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:11px}.trade-builder{display:grid;grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr);gap:13px;align-items:stretch;margin-bottom:15px}.trade-side{padding:14px;min-width:0}.trade-side-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px}.trade-side-head>div:nth-child(2){min-width:0}.trade-side-head small{font-size:7px;letter-spacing:.13em;color:#71798a}.trade-side-head h3{font-size:13px;margin:2px 0 0}.trade-side-head>span{margin-left:auto;font-size:9px;color:var(--muted)}.trade-slots{min-height:82px;border:1px dashed rgba(255,255,255,.1);border-radius:13px;margin:12px 0;display:flex;gap:7px;padding:8px;overflow-x:auto}.trade-slot{position:relative;flex:0 0 49px}.trade-slot img{width:49px;aspect-ratio:2.5/3.5;object-fit:cover;border-radius:6px}.trade-slot b{position:absolute;right:-3px;top:-3px;width:18px;height:18px;border-radius:7px;background:#080a10;border:1px solid var(--line2);display:grid;place-items:center;font-size:7px}.trade-picker-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.trade-picker-head strong{font-size:10px}.trade-picker-head input{height:34px;width:130px}.trade-card-list{height:215px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:7px;margin-top:9px;padding-right:3px}.trade-pick{border:1px solid var(--line);border-radius:8px;padding:3px;background:#0d1018;cursor:pointer;position:relative}.trade-pick:hover{border-color:rgba(230,189,98,.35);transform:translateY(-2px)}.trade-pick img{width:100%;display:block;aspect-ratio:2.5/3.5;object-fit:cover;border-radius:5px}.trade-pick span{position:absolute;right:2px;top:2px;border-radius:5px;background:rgba(0,0,0,.8);font-size:7px;padding:2px 4px}.trade-middle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.trade-swap-icon{font-size:29px;color:var(--gold2)}.trade-middle .primary-btn{padding:0 10px;white-space:nowrap}.trade-history{padding:18px}.trade-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:14px;align-items:center;padding:11px 4px;border-top:1px solid rgba(255,255,255,.055)}.trade-row:first-child{border-top:0}.trade-row h4{font-size:11px;margin:0 0 3px}.trade-row p{font-size:8px;color:var(--muted);margin:0}.trade-status{font-size:8px;font-weight:900;letter-spacing:.09em;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.05)}.trade-status.accepted{color:#9ce1ba;background:rgba(88,214,141,.09)}.trade-status.pending{color:#ffe0a1;background:rgba(230,189,98,.09)}.trade-actions{display:flex;gap:6px}.trade-actions button{height:31px;padding:0 9px}

/* profile */
.profile-hero{min-height:190px;padding:27px;display:flex;align-items:center;gap:22px;position:relative;overflow:hidden;margin-bottom:14px}.profile-hero:after{content:"";position:absolute;width:400px;height:260px;right:-80px;top:-80px;background:radial-gradient(circle,rgba(158,108,255,.22),transparent 68%)}.profile-avatar-large{width:112px;height:112px;border-radius:30px;display:grid;place-items:center;font-size:40px;font-weight:1000;color:var(--gold2);background:linear-gradient(145deg,#2c3348,#121621);border:1px solid rgba(230,189,98,.2);box-shadow:inset 0 0 35px rgba(230,189,98,.05)}.profile-main h1{font-size:34px;margin:0 0 8px}.player-id-line{display:flex;align-items:center;gap:8px;color:#9ea5b5;font-size:11px}.player-id-line button{height:27px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.04);color:#9da4b4;font-size:7px;font-weight:900;letter-spacing:.08em;cursor:pointer}.profile-balance{margin-left:auto;position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-end}.profile-balance small{font-size:8px;letter-spacing:.15em;color:#7d8494}.profile-balance strong{font-size:26px;margin-top:4px}.profile-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}.profile-stat{min-height:122px;padding:17px;display:flex;flex-direction:column}.profile-stat>span{font-size:18px;color:var(--gold2)}.profile-stat small{font-size:7px;letter-spacing:.11em;color:#767e8e;margin-top:auto}.profile-stat strong{font-size:23px;margin-top:4px}.profile-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-completion,.profile-rarities{padding:22px}.big-percent{font-size:54px;font-weight:1000;letter-spacing:-.05em}.progress.huge{height:8px;margin:9px 0}.profile-completion p{font-size:10px;color:var(--muted)}.profile-rarities{display:flex;flex-direction:column}.profile-rarities .rarity-bars{margin-top:6px}

/* modal */
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(3,4,8,.82);backdrop-filter:blur(12px);display:grid;place-items:center;padding:24px;animation:fadeIn .18s}.modal{position:relative;background:linear-gradient(145deg,#1a1e2b,#0c0e15);border:1px solid rgba(255,255,255,.12);border-radius:25px;box-shadow:0 30px 90px #000;max-width:920px;width:min(920px,94vw);max-height:92vh;overflow:auto}.modal-close{position:absolute;right:13px;top:13px;z-index:10;width:37px;height:37px;border-radius:12px;border:1px solid var(--line);background:rgba(6,8,13,.82);color:#c7cbd7;font-size:20px;cursor:pointer}.card-modal{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(300px,1.15fr);padding:29px;gap:30px;align-items:center}.modal-card-art{text-align:center}.modal-card-art img{max-height:72vh;max-width:100%;border-radius:17px;box-shadow:0 26px 55px #000}.modal-card-info h2{font-size:36px;line-height:1;margin:0 0 10px}.rarity-pill{font-size:8px;font-weight:900;letter-spacing:.1em;color:var(--rarity-color,#ddd);border:1px solid color-mix(in srgb,var(--rarity-color,#ddd) 35%,transparent);background:color-mix(in srgb,var(--rarity-color,#ddd) 8%,transparent);border-radius:999px;padding:5px 8px;width:max-content}.card-detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}.card-detail-stats>div{padding:13px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025)}.card-detail-stats small{display:block;font-size:7px;color:var(--muted);letter-spacing:.1em}.card-detail-stats strong{display:block;font-size:15px;margin-top:4px}.modal-card-info p{font-size:11px;color:var(--muted);line-height:1.55}
.reveal-modal{width:min(760px,94vw);padding:27px;display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;overflow:hidden}.reveal-stage{height:420px;display:grid;place-items:center;position:relative}.reveal-stage .pack-envelope{cursor:pointer}.reveal-stage .pack-envelope.opening{animation:packOpen .7s ease forwards}.reveal-flash{position:absolute;width:250px;height:250px;border-radius:50%;opacity:0;background:#fff;filter:blur(25px);pointer-events:none}.reveal-flash.fire{animation:flash .6s ease}.reveal-card{position:absolute;width:245px;animation:cardReveal .55s cubic-bezier(.16,.85,.21,1.1)}.reveal-card img{width:100%;display:block;border-radius:15px;box-shadow:0 26px 55px rgba(0,0,0,.6),0 0 40px color-mix(in srgb,var(--rarity-color) 30%,transparent)}.reveal-copy h2{font-size:32px;line-height:1.03;margin:0 0 8px}.reveal-copy p{color:var(--muted);font-size:11px;margin:0 0 20px}.reward-modal{width:min(520px,92vw);padding:40px 28px 28px;text-align:center;overflow:hidden}.reward-burst{position:absolute;width:350px;height:350px;left:50%;top:20px;transform:translateX(-50%);background:conic-gradient(from 0deg,transparent,#775cff33,transparent,#e6bd6233,transparent);border-radius:50%;filter:blur(8px);animation:spinSlow 8s linear infinite}.reward-modal>*:not(.reward-burst){position:relative}.reward-visual{font-size:64px;color:var(--gold2);margin:14px}.reward-modal h2{font-size:30px;margin:0 0 7px}.reward-modal p{font-size:11px;color:var(--muted);margin-bottom:20px}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes packOpen{45%{transform:scale(1.08) rotate(-3deg)}100%{transform:scale(.2) rotate(12deg);opacity:0}}@keyframes flash{0%,100%{opacity:0;transform:scale(.4)}45%{opacity:.8;transform:scale(2.2)}}@keyframes cardReveal{from{opacity:0;transform:translateY(70px) scale(.6) rotateY(50deg)}to{opacity:1;transform:none}}@keyframes spinSlow{to{transform:translateX(-50%) rotate(360deg)}}
.toast-host{position:fixed;right:18px;bottom:40px;z-index:200;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{min-width:240px;max-width:360px;padding:12px 14px;border-radius:13px;border:1px solid var(--line2);background:rgba(15,18,27,.94);box-shadow:0 15px 40px #000;color:#dde0e9;font-size:10px;animation:toastIn .2s;backdrop-filter:blur(12px)}.toast.error{border-color:rgba(255,102,122,.28);color:#ffc1c8}.toast.success{border-color:rgba(88,214,141,.25);color:#bceccc}@keyframes toastIn{from{opacity:0;transform:translateX(20px)}}

/* responsive FiveM */
@media(max-width:1180px){
  :root{--navw:88px}.profile-chip{min-width:0}.profile-chip-copy{display:none}.home-grid{grid-template-columns:1fr}.packs-grid{grid-template-columns:repeat(3,minmax(230px,1fr));overflow-x:auto}.profile-stat-grid{grid-template-columns:repeat(3,1fr)}.trade-builder{grid-template-columns:1fr}.trade-middle{flex-direction:row;padding:5px}.toolbar{grid-template-columns:1.2fr 1fr 1fr}.toolbar #collectionSort{grid-column:1/3}.view-toggle{grid-column:3}
}
@media(max-width:860px){
  .app-shell{grid-template-rows:72px minmax(0,1fr) 24px}.topbar{padding:9px 12px}.brand-copy small,.status-chip{display:none}.body-shell{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 66px}.side-nav{grid-row:2;grid-column:1;flex-direction:row;border-right:0;border-top:1px solid var(--line);padding:6px;overflow-x:auto}.nav-item{min-width:76px;min-height:52px}.nav-spacer,.nav-item.danger{display:none}.main-stage{grid-row:1}.view{padding:18px 14px 25px}.auth-scene{grid-template-columns:1fr;padding:4vh 7vw}.auth-copy{display:none}.auth-panel{justify-self:center}.home-grid,.wheel-layout,.profile-bottom-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.packs-grid{grid-template-columns:1fr}.wheel-stage{min-height:440px}.profile-stat-grid{grid-template-columns:repeat(2,1fr)}.toolbar{grid-template-columns:1fr 1fr}.toolbar .search-box{grid-column:1/3}.toolbar #collectionSort{grid-column:auto}.view-toggle{grid-column:auto}.page-heading{align-items:flex-start}.daily-btn{min-width:0}.profile-hero{align-items:flex-start;flex-wrap:wrap}.profile-balance{width:100%;align-items:flex-start;margin-left:134px}.card-modal{grid-template-columns:1fr;max-width:550px}.modal-card-art img{max-height:46vh}.reveal-modal{grid-template-columns:1fr}.reveal-stage{height:340px}.trade-search{flex-wrap:wrap}.field.inline{width:100%}.field.inline input{flex:1;min-width:0}
}
@media(max-height:720px) and (min-width:861px){
  .app-shell{grid-template-rows:68px minmax(0,1fr) 22px}.topbar{padding-top:8px;padding-bottom:8px}.side-nav{padding-top:8px}.nav-item{min-height:55px}.view{padding-top:18px}.auth-scene{padding-top:3vh;padding-bottom:3vh}.auth-panel{padding:20px}.auth-copy h1{font-size:54px}.hero-card{min-height:300px}.wheel-stage{min-height:480px}.pack-card{min-height:420px}.pack-visual{height:180px}.pack-envelope.mini{width:125px;height:170px}
}

/* ============================================================
   FiveM / CitizenFX performance profile
   Keeps the premium design while avoiding expensive continuous
   blur/compositing effects in Chromium 103.
   ============================================================ */
html.fivem body:before{
  background:
    radial-gradient(circle at 18% 0%,rgba(91,140,255,.10),transparent 34%),
    radial-gradient(circle at 84% 10%,rgba(158,108,255,.08),transparent 32%),
    linear-gradient(180deg,#090a10,#07080c 74%);
}
html.fivem .ambient-orb{
  display:none;
}
html.fivem .ambient-grid{
  opacity:.45;
  mask-image:none;
  -webkit-mask-image:none;
}
html.fivem .topbar,
html.fivem .side-nav,
html.fivem .glass-panel,
html.fivem .modal-backdrop,
html.fivem .toast{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html.fivem .glass-panel{
  background:linear-gradient(145deg,rgba(22,25,36,.97),rgba(11,13,20,.985));
  box-shadow:0 10px 26px rgba(0,0,0,.26);
}
html.fivem .topbar,
html.fivem .side-nav{
  background:rgba(8,9,14,.985);
}
html.fivem .modal-backdrop{
  background:rgba(3,4,8,.92);
}
html.fivem .hero-glow{
  filter:none;
  opacity:.55;
}
html.fivem .wheel-stage:before{
  opacity:.55;
}
html.fivem .pack-card:before{
  filter:none;
  opacity:.13;
}
html.fivem .tcg-card{
  box-shadow:0 8px 18px rgba(0,0,0,.22);
  transition:transform .16s ease,border-color .16s ease;
}
html.fivem .tcg-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(0,0,0,.30);
}
html.fivem .tcg-card:before{
  display:none;
}
html.fivem .featured-card-wrap{
  filter:drop-shadow(0 12px 16px rgba(0,0,0,.34));
  transition:transform .18s ease;
}
html.fivem .action-card{
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
html.fivem .action-card:hover{
  transform:translateY(-2px);
}
html.fivem .primary-btn{
  box-shadow:0 5px 16px rgba(230,189,98,.13);
  transition:transform .14s ease,filter .14s ease,background .14s ease;
}
html.fivem .primary-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(230,189,98,.18);
}
html.fivem .view{
  transition:opacity .14s ease,transform .14s ease,visibility .14s;
}
html.fivem .wheel-disc{
  box-shadow:0 12px 34px rgba(0,0,0,.52),inset 0 0 22px rgba(0,0,0,.28);
}
html.fivem .reward-burst{
  animation:none;
  opacity:.45;
}
html.fivem .reveal-card img,
html.fivem .modal-card-art img{
  box-shadow:0 15px 30px rgba(0,0,0,.52);
}
html.fivem .completion-orb,
html.fivem .profile-avatar-large,
html.fivem .brand-mark{
  box-shadow:none;
}
html.fivem .toast{
  box-shadow:0 9px 24px rgba(0,0,0,.42);
}
html.fivem .nav-item,
html.fivem .segment,
html.fivem .secondary-btn,
html.fivem .ghost-btn,
html.fivem .stake-btn{
  transition:background .13s ease,border-color .13s ease,color .13s ease,transform .13s ease;
}

/* Avoid repaint-heavy decoration on the largest scrolling views. */
html.fivem #view-collection,
html.fivem #view-duplicates,
html.fivem #view-trade{
  contain:layout paint;
}

/* Smooth scrolling is intentionally disabled inside FiveM; native scrolling
   tracks mouse-wheel input more reliably and avoids interpolation stutter. */
html.fivem .view{
  scroll-behavior:auto;
}

/* Fallback for FiveM's Chromium 103: do not depend on color-mix(). */
html.fivem .rarity-pill{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.045);
}


/* ============================================================
   V1.3 — classic binder slots + rotatable viewer + click reveals
   ============================================================ */

/* Locked binder slots stay visible until the card is discovered. */
.tcg-card.locked{
  cursor:default;
  --locked-border:rgba(255,255,255,.075);
  border-color:var(--locked-border);
  background:linear-gradient(155deg,#151822,#090b11);
  box-shadow:0 8px 20px rgba(0,0,0,.2),inset 0 0 0 1px rgba(255,255,255,.018);
  opacity:.88;
}
.tcg-card.locked:hover{
  transform:none;
  border-color:rgba(255,255,255,.095);
  box-shadow:0 8px 20px rgba(0,0,0,.2);
}
.tcg-card.locked:before{display:none}
.locked-art{
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 40%,rgba(91,140,255,.07),transparent 42%),
    linear-gradient(145deg,#11141c,#080a0f);
  border:1px solid rgba(255,255,255,.035);
}
.locked-art:after{
  content:"";
  position:absolute;
  inset:9px;
  border:1px solid rgba(255,255,255,.045);
  border-radius:9px;
}
.locked-card-emblem{
  width:76px;height:76px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.018);
  color:#343b49;
  position:relative;
}
.locked-card-emblem span{font-size:54px;line-height:1;opacity:.22}
.locked-card-emblem strong{position:absolute;font-size:25px;color:#596170}
.locked-scan{
  position:absolute;left:17%;right:17%;bottom:15%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent);
}
.locked-meta strong{color:#555d6d;letter-spacing:.08em;font-size:9px}
.locked-meta small{color:#454c59}

/* Drag-to-rotate detail viewer. */
.modal-card-stage{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  perspective:1000px;
}
.rotatable-card{
  --shine-x:50%;
  --shine-y:50%;
  width:min(340px,100%);
  transform-style:preserve-3d;
  transform:perspective(900px) rotateX(0deg) rotateY(0deg);
  transition:transform .16s ease;
  cursor:grab;
  touch-action:none;
  user-select:none;
  will-change:transform;
}
.rotatable-card.dragging{
  cursor:grabbing;
  transition:none;
}
.rotatable-card-inner{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 28px 60px rgba(0,0,0,.55),0 0 32px color-mix(in srgb,var(--rarity-color) 18%,transparent);
  transform-style:preserve-3d;
}
.rotatable-card-inner img{
  display:block;
  width:100%;
  max-height:72vh;
  object-fit:contain;
  border-radius:18px;
  pointer-events:none;
}
.rotatable-card-shine{
  position:absolute;inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y),
      rgba(255,255,255,.26),rgba(255,255,255,.07) 18%,transparent 42%);
  mix-blend-mode:screen;
  opacity:.52;
}
.rotate-hint{
  margin-top:12px;
  color:#777f90;
  font-size:8px;
  font-weight:800;
  letter-spacing:.13em;
  text-align:center;
}

/* Original-style pack reveal: all card backs are present at once,
   and the player clicks each card individually to flip it. */
.classic-reveal-modal{
  width:min(1040px,95vw);
  padding:28px;
  overflow:hidden;
}
.classic-reveal-head{
  text-align:center;
  padding:2px 44px 18px;
}
.classic-reveal-head h2{
  margin:0 0 6px;
  font-size:30px;
}
.classic-reveal-head p{
  margin:0;
  color:var(--muted);
  font-size:11px;
}
.pack-reveal-grid{
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  padding:18px 4px 24px;
  perspective:1200px;
}
.reveal-slot{
  width:min(180px,18vw);
  aspect-ratio:2.5/3.5;
  border:0;
  padding:0;
  background:transparent;
  perspective:900px;
  cursor:pointer;
}
.reveal-slot-inner{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  transition:transform .52s cubic-bezier(.2,.8,.2,1);
}
.reveal-slot.revealed .reveal-slot-inner{transform:rotateY(180deg)}
.reveal-back,.reveal-front{
  position:absolute;inset:0;
  border-radius:16px;
  overflow:hidden;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.reveal-back{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,rgba(9,12,18,.52),rgba(9,12,18,.68)),url('assets/pokescape-card-back.png') center/cover no-repeat;
  border:1px solid rgba(230,189,98,.22);
  box-shadow:0 18px 36px rgba(0,0,0,.42),inset 0 0 45px rgba(91,140,255,.06);
}
.reveal-back:after{
  content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.07);border-radius:11px;
}
.reveal-back-ring{
  width:64px;height:64px;border-radius:50%;
  border:4px solid var(--gold);
  position:relative;margin-bottom:12px;
  box-shadow:0 0 25px rgba(230,189,98,.12);
}
.reveal-back-ring:after{
  content:"";position:absolute;height:4px;left:-4px;right:-4px;top:26px;background:var(--gold);
}
.reveal-back strong{font-size:18px;letter-spacing:.09em;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.reveal-back small{font-size:10px;color:var(--gold2);letter-spacing:.16em;margin-top:-2px;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.reveal-back b{margin-top:12px;font-size:8px;letter-spacing:.18em;color:#eef0f7;font-weight:900;text-transform:uppercase;background:rgba(4,7,12,.42);padding:4px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.08);position:relative;z-index:2}
.reveal-back em{position:absolute;bottom:16px;font-style:normal;font-size:7px;color:#d1d5df;letter-spacing:.13em;background:rgba(4,7,12,.42);padding:4px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.06)}
.reveal-front{
  transform:rotateY(180deg);
  background:#0a0d13;
  border:1px solid var(--rarity-color,rgba(255,255,255,.14));
  box-shadow:0 18px 38px rgba(0,0,0,.5),0 0 28px color-mix(in srgb,var(--rarity-color,#fff) 24%,transparent);
}
.reveal-front img{width:100%;height:100%;display:block;object-fit:cover}
.reveal-rarity{
  position:absolute;left:8px;right:8px;bottom:8px;
  padding:6px 7px;border-radius:8px;
  background:rgba(5,7,11,.86);
  border:1px solid rgba(255,255,255,.13);
  color:var(--rarity-color,#fff);
  font-size:7px;font-weight:900;letter-spacing:.1em;text-align:center;
}
.reveal-slot:not(.revealed):hover .reveal-slot-inner{
  transform:translateY(-8px) rotateZ(1deg);
}
.reveal-slot.premium-pull .reveal-front{
  animation:premiumPullGlow 1.6s ease-in-out infinite alternate;
}
.classic-reveal-footer{
  min-height:48px;
  border-top:1px solid var(--line);
  padding-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.classic-reveal-footer>span{
  color:#858c9d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
}
@keyframes premiumPullGlow{
  from{box-shadow:0 18px 38px rgba(0,0,0,.5),0 0 15px color-mix(in srgb,var(--rarity-color,#fff) 20%,transparent)}
  to{box-shadow:0 18px 38px rgba(0,0,0,.5),0 0 34px color-mix(in srgb,var(--rarity-color,#fff) 46%,transparent)}
}

/* FiveM keeps the interactions but uses cheaper lighting. */
html.fivem .rotatable-card-inner{
  box-shadow:0 16px 32px rgba(0,0,0,.52);
}
html.fivem .rotatable-card-shine{opacity:.34;mix-blend-mode:normal}
html.fivem .reveal-back{
  box-shadow:0 11px 22px rgba(0,0,0,.38);
}
html.fivem .reveal-front{
  box-shadow:0 12px 25px rgba(0,0,0,.48);
}
html.fivem .reveal-slot.premium-pull .reveal-front{
  animation:none;
  outline:1px solid var(--rarity-color);
}

@media(max-width:900px){
  .pack-reveal-grid{gap:9px;flex-wrap:wrap;min-height:300px}
  .reveal-slot{width:min(145px,29vw)}
}
@media(max-height:720px) and (min-width:861px){
  .classic-reveal-modal{padding:18px 24px}
  .classic-reveal-head{padding-bottom:8px}
  .pack-reveal-grid{min-height:280px;padding:8px 4px 13px}
  .reveal-slot{width:min(135px,16vw)}
  .rotate-hint{margin-top:7px}
}


/* ============================================================
   V1.4 — Shiney binder + foil treatment restored
   ============================================================ */
.collection-tabs{
  display:flex;
  gap:9px;
  margin:-3px 0 12px;
}
.collection-tab{
  min-width:155px;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.025);
  color:#777f90;
  display:grid;
  grid-template-columns:30px 1fr;
  grid-template-rows:1fr 1fr;
  column-gap:9px;
  align-items:center;
  padding:8px 13px;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.collection-tab>span{
  grid-row:1/3;
  font-size:20px;
  color:#858d9f;
}
.collection-tab strong{
  font-size:9px;
  letter-spacing:.11em;
  align-self:end;
}
.collection-tab small{
  font-size:8px;
  color:#656d7d;
  align-self:start;
  margin-top:2px;
}
.collection-tab:hover{
  transform:translateY(-1px);
  border-color:var(--line2);
  background:rgba(255,255,255,.045);
}
.collection-tab.active{
  color:#f0f2f8;
  background:linear-gradient(145deg,rgba(230,189,98,.10),rgba(91,140,255,.045));
  border-color:rgba(230,189,98,.22);
}
.collection-tab.active>span{color:var(--gold2)}
.collection-tab.shiney-tab{
  position:relative;
  overflow:hidden;
}
.collection-tab.shiney-tab:after{
  content:"";
  position:absolute;
  inset:-80% -30%;
  pointer-events:none;
  background:linear-gradient(115deg,transparent 37%,rgba(255,117,219,.12) 45%,rgba(103,184,255,.14) 50%,rgba(255,230,120,.11) 55%,transparent 63%);
  transform:translateX(-38%) rotate(9deg);
  transition:transform .45s ease;
}
.collection-tab.shiney-tab:hover:after,
.collection-tab.shiney-tab.active:after{transform:translateX(38%) rotate(9deg)}

/* Reusable Shiney foil layer. */
.shiney-card{
  position:relative;
  isolation:isolate;
}
.shiney-foil{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  border-radius:inherit;
  opacity:.48;
  mix-blend-mode:screen;
  background:
    radial-gradient(circle at 22% 24%,rgba(255,255,255,.38),transparent 18%),
    linear-gradient(115deg,
      transparent 8%,
      rgba(255,83,190,.22) 20%,
      rgba(108,165,255,.28) 35%,
      rgba(111,255,211,.18) 49%,
      rgba(255,230,102,.26) 64%,
      rgba(193,102,255,.26) 79%,
      transparent 93%);
  background-size:220% 220%;
  animation:shineySweep 4.8s ease-in-out infinite alternate;
}
.shiney-stars{
  position:absolute;
  z-index:3;
  left:9px;
  top:8px;
  color:#fff8ce;
  font-size:10px;
  letter-spacing:5px;
  text-shadow:
    0 0 7px rgba(255,255,255,.95),
    0 0 13px rgba(255,105,220,.65),
    0 0 18px rgba(91,174,255,.55);
  pointer-events:none;
  opacity:.9;
}
.shiney-card.tcg-card{
  border-color:rgba(255,116,215,.45);
  box-shadow:0 12px 30px rgba(0,0,0,.32),0 0 20px rgba(255,116,215,.10);
}
.shiney-card.tcg-card:hover{
  border-color:rgba(255,167,231,.75);
  box-shadow:0 18px 38px rgba(0,0,0,.42),0 0 28px rgba(116,166,255,.15);
}
.shiney-card .tcg-art{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}
.shiney-detail .shiney-foil{
  opacity:.58;
  background-size:180% 180%;
}
.detail-stars{
  left:14px;
  top:13px;
  font-size:13px;
  letter-spacing:8px;
}
.reveal-stars{
  left:8px;
  top:7px;
}
.spotlight-stars{
  left:10px;
  top:10px;
}
.shiney-reveal .reveal-front{
  border-color:rgba(255,121,219,.72);
}
.shiney-reveal .reveal-front:after{
  content:"SHINEY";
  position:absolute;
  z-index:4;
  right:8px;
  top:8px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(12,8,19,.76);
  color:#fff0fc;
  border-radius:7px;
  padding:4px 6px;
  font-size:6px;
  font-weight:1000;
  letter-spacing:.12em;
}
.featured-card-wrap.shiney-card{
  overflow:hidden;
  border-radius:14px;
}
.featured-card-wrap.shiney-card .shiney-foil{
  border-radius:14px;
}
@keyframes shineySweep{
  0%{background-position:0% 15%}
  50%{background-position:100% 55%}
  100%{background-position:20% 100%}
}

/* In FiveM, animate only real owned Shineys and do it more slowly.
   No blur/filter is used, so this stays far cheaper than the old glass effects. */
html.fivem .shiney-foil{
  mix-blend-mode:normal;
  opacity:.25;
  animation-duration:7.5s;
}
html.fivem .shiney-card.tcg-card{
  box-shadow:0 9px 21px rgba(0,0,0,.28),0 0 0 1px rgba(255,116,215,.10);
}
html.fivem .shiney-card.tcg-card:hover{
  box-shadow:0 12px 25px rgba(0,0,0,.34),0 0 0 1px rgba(255,116,215,.20);
}
html.fivem .shiney-stars{
  text-shadow:0 0 7px rgba(255,255,255,.65);
}
@media(max-width:860px){
  .collection-tabs{overflow-x:auto}
  .collection-tab{min-width:140px}
}


/* ============================================================
   V1.5 — clearly visible Shiney foil
   The previous FiveM profile made the foil too subtle.
   This version uses transform/opacity animation rather than blur.
   ============================================================ */

.shiney-card .shiney-foil,
.shiney-reveal .shiney-foil{
  inset:-32%;
  opacity:.62;
  mix-blend-mode:screen;
  border-radius:24px;
  background:
    linear-gradient(118deg,
      transparent 12%,
      rgba(255,60,187,.52) 24%,
      rgba(122,111,255,.50) 36%,
      rgba(71,206,255,.48) 47%,
      rgba(75,255,197,.40) 57%,
      rgba(255,226,92,.48) 68%,
      rgba(255,111,206,.50) 79%,
      transparent 91%),
    linear-gradient(72deg,
      transparent 35%,
      rgba(255,255,255,.06) 43%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.08) 57%,
      transparent 65%);
  background-size:100% 100%;
  animation:shineyFoilMove 4.2s ease-in-out infinite alternate;
  transform:translate3d(-9%,-5%,0) rotate(5deg);
  will-change:transform,opacity;
}

.shiney-card .shiney-stars,
.shiney-reveal .shiney-stars{
  opacity:1;
  animation:shineyTwinkle 1.8s ease-in-out infinite alternate;
}

.shiney-card.tcg-card{
  border-color:rgba(255,121,219,.72);
  box-shadow:
    0 12px 30px rgba(0,0,0,.33),
    0 0 0 1px rgba(116,187,255,.12),
    0 0 22px rgba(255,96,207,.16);
}

.shiney-card.tcg-card .tcg-art:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  border-radius:12px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 0 24px rgba(145,112,255,.10);
}

.shiney-card.tcg-card .tcg-qty{
  z-index:6;
}

.shiney-detail .shiney-foil{
  opacity:.68;
}

.shiney-detail .rotatable-card-shine{
  opacity:.68;
  z-index:5;
}

.shiney-reveal .reveal-front{
  box-shadow:
    0 18px 38px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,126,220,.45),
    0 0 34px rgba(116,176,255,.26);
}

.featured-card-wrap.shiney-card{
  box-shadow:
    0 18px 32px rgba(0,0,0,.32),
    0 0 28px rgba(255,102,208,.15);
}

@keyframes shineyFoilMove{
  0%{
    transform:translate3d(-14%,-8%,0) rotate(4deg) scale(1.02);
    opacity:.48;
  }
  55%{
    opacity:.72;
  }
  100%{
    transform:translate3d(14%,8%,0) rotate(8deg) scale(1.04);
    opacity:.58;
  }
}

@keyframes shineyTwinkle{
  0%{transform:scale(.96);opacity:.65}
  100%{transform:scale(1.06);opacity:1}
}

/* FiveM: keep the effect obvious, but avoid blur and expensive blend effects. */
html.fivem .shiney-card .shiney-foil,
html.fivem .shiney-reveal .shiney-foil{
  opacity:.48;
  mix-blend-mode:normal;
  animation:shineyFoilMove 5.4s ease-in-out infinite alternate;
}

html.fivem .shiney-card .shiney-stars,
html.fivem .shiney-reveal .shiney-stars{
  animation:shineyTwinkle 2.2s ease-in-out infinite alternate;
}

html.fivem .shiney-card.tcg-card{
  border-color:rgba(255,121,219,.68);
  box-shadow:
    0 10px 22px rgba(0,0,0,.30),
    0 0 0 1px rgba(93,174,255,.14),
    0 0 16px rgba(255,95,207,.13);
}

html.fivem .shiney-detail .shiney-foil{
  opacity:.54;
}


/* ============================================================
   V1.6 — EXACT MAIN POKESCAPE SHINEY RENDERER
   Canvas overlay: rainbow sweep + HEXAGONS + holo motes.
   ============================================================ */

/* Disable the temporary V1.4/V1.5 CSS approximation. */
.shiney-foil,.shiney-stars{display:none!important}

/* Same frame/canvas model used by the main PokeScape build. */
.psc-shiney-frame{
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
}
.psc-shiney-frame>img{
  position:relative;
  z-index:1;
}
.psc-jar-holo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:3;
  pointer-events:none;
  border-radius:inherit;
}
.psc-shiney-badge{
  position:absolute;
  left:5px;
  bottom:5px;
  z-index:6;
  padding:2px 5px;
  border-radius:999px;
  background:#0b0b0bcf;
  border:1px solid #ffe55a55;
  color:#ffe86d;
  font-size:6px;
  font-weight:900;
  letter-spacing:.08em;
  pointer-events:none;
}
.psc-shiney-frame>img{
  filter:saturate(1.12) contrast(1.05) brightness(1.03);
}

/* Preserve controls/text above the holo canvas. */
.psc-shiney-frame .tcg-qty,
.psc-shiney-frame .reveal-rarity{
  z-index:8;
}

/* The 3D viewer's mouse-follow shine remains on top of the exact holo layer. */
.shiney-detail .rotatable-card-shine{
  z-index:7;
}

/* Remove the custom moving CSS foil animation from V1.5. */
.shiney-card .shiney-foil,
.shiney-reveal .shiney-foil{
  animation:none!important;
}

/* FiveM uses the SAME renderer. Do not suppress the hexagons. */
html.fivem .psc-jar-holo{
  display:block!important;
  opacity:1!important;
}

/* V1.7 JAR RNG wheel second-stage reward roll */
.reward-visual.rolling{min-height:190px;display:grid;place-items:center;animation:rewardRollPulse .42s ease-in-out infinite alternate}
.wheel-roll-number{min-width:190px;min-height:120px;border-radius:18px;border:1px solid rgba(230,189,98,.28);background:linear-gradient(180deg,rgba(230,189,98,.10),rgba(255,255,255,.025));display:flex;align-items:center;justify-content:center;gap:12px;font-size:40px;font-weight:950;color:var(--gold2);box-shadow:0 20px 50px rgba(0,0,0,.34)}
.wheel-roll-number span{font-size:28px}.wheel-roll-number.final{animation:cardReveal .45s cubic-bezier(.16,.85,.21,1.1)}
.wheel-roll-card{width:175px;display:grid;gap:7px;justify-items:center}.wheel-roll-card img{width:140px;border-radius:10px;box-shadow:0 16px 35px rgba(0,0,0,.55)}.wheel-roll-card span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;letter-spacing:.08em;color:#d7dbea;text-transform:uppercase}
.wheel-final-card{position:relative;display:inline-block;border-radius:13px;animation:cardReveal .5s cubic-bezier(.16,.85,.21,1.1)}
@keyframes rewardRollPulse{from{transform:scale(.97);filter:brightness(.88)}to{transform:scale(1.02);filter:brightness(1.16)}}

/* V1.8 wheel polish + free spins */
.wheel-stage{background:radial-gradient(circle at 50% 42%,rgba(91,140,255,.08),transparent 48%),linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01))}
.wheel-pointer{top:22px;width:0;height:0;border-left:16px solid transparent;border-right:16px solid transparent;border-top:28px solid var(--gold2);font-size:0;filter:drop-shadow(0 4px 8px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(230,189,98,.45))}
.wheel-disc{overflow:hidden}
.wheel-disc:before{content:"";position:absolute;inset:2.9%;border-radius:50%;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.08),transparent 34%),radial-gradient(circle at 50% 70%,rgba(0,0,0,.17),transparent 58%);pointer-events:none}
.wheel-label-layer{position:absolute;inset:0;pointer-events:none;z-index:2}
.wheel-seg-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(calc(min(500px,76vh,82vw)*-0.305)) rotate(calc(var(--angle)*-1))}
.wheel-seg-chip{display:grid;justify-items:center;gap:4px;min-width:76px;padding:6px 8px;border-radius:16px;background:rgba(6,10,16,.34);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(3px);box-shadow:0 8px 20px rgba(0,0,0,.28)}
.wheel-seg-chip span{font-size:8px;font-weight:900;letter-spacing:.08em;color:#eef0f7;text-transform:uppercase;line-height:1.15;text-align:center}
.wheel-seg-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.wheel-seg-icon.card img{width:24px;height:30px;object-fit:cover;border-radius:5px;display:block;box-shadow:0 4px 8px rgba(0,0,0,.28)}
.wheel-seg-icon.coin{color:var(--gold2);font-size:18px;font-weight:900}
.wheel-seg-icon.free{color:#7be5eb;font-size:18px;font-weight:900}
.wheel-centre{width:30%}
.free-spin-panel{display:grid;gap:2px;padding:11px 12px;margin:10px 0 12px;border-radius:14px;border:1px solid rgba(123,229,235,.22);background:linear-gradient(180deg,rgba(43,108,118,.18),rgba(255,255,255,.02))}
.free-spin-panel span{font-size:8px;letter-spacing:.14em;color:#a7eef2;font-weight:900}.free-spin-panel strong{font-size:24px;color:#ecf8fa;line-height:1}.free-spin-panel small{font-size:9px;color:#90aeb6}
.wheel-actions{display:grid;gap:10px}
.wheel-help{font-size:9px;line-height:1.45;color:#8590a4;margin-top:10px}
.wheel-free-btn b{font-size:11px;color:#7be5eb}
.odds-row.freespins span:first-child{color:#9feef3}
.reward-visual{min-height:230px;display:grid;place-items:center;align-content:center;justify-items:center}
.reward-visual.rolling{min-width:220px}
.wheel-roll-number.free{color:#7be5eb;border-color:rgba(123,229,235,.26);background:linear-gradient(180deg,rgba(43,108,118,.18),rgba(255,255,255,.03))}
.wheel-roll-card{width:190px;min-height:242px;grid-template-rows:214px 28px}
.wheel-roll-card img{width:150px;height:214px;object-fit:cover;border-radius:10px;box-shadow:0 16px 35px rgba(0,0,0,.55)}
.wheel-roll-card span{max-width:180px;min-height:24px;display:flex;align-items:flex-start;justify-content:center;text-align:center;overflow:hidden;font-size:9px;line-height:1.25;letter-spacing:.08em;color:#d7dbea;text-transform:uppercase;white-space:normal}
.wheel-final-card img{display:block}
@media(max-width:900px){.wheel-seg-chip{min-width:64px;padding:4px 6px}.wheel-seg-chip span{font-size:7px}.wheel-seg-icon{width:28px;height:28px}.wheel-seg-icon.card img{width:20px;height:25px}.reward-visual{min-height:210px}}


/* ============================================================
   V1.9 — console-sized shell + restored Play Coin purchase info
   Matches the compact FiveM/notepad footprint instead of filling
   the whole desktop/browser window.
   ============================================================ */
html,body{
  background:transparent!important;
  overflow:hidden;
}
body{
  display:grid;
  place-items:center;
  min-width:0;
  min-height:0;
}
body:before{display:none!important}
.app-shell{
  position:relative;
  width:min(920px,98vw);
  height:min(960px,98vh);
  max-width:98vw;
  max-height:98vh;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg,#090a10,#07080c 74%);
  box-shadow:0 28px 80px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.025);
}
.ambient{
  position:fixed;
  left:50%;top:50%;right:auto;bottom:auto;
  width:min(920px,98vw);
  height:min(960px,98vh);
  transform:translate(-50%,-50%);
  border-radius:24px;
  overflow:hidden;
  pointer-events:none;
  z-index:-1;
}
.modal-backdrop{
  inset:auto;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:min(920px,98vw);
  height:min(960px,98vh);
  border-radius:24px;
  overflow:hidden;
}
.toast-host{
  right:max(18px,calc((100vw - min(920px,98vw))/2 + 18px));
  bottom:max(40px,calc((100vh - min(960px,98vh))/2 + 40px));
}
.coin-buy-wrap{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:14px;
  margin-top:18px;
  padding-bottom:4px;
}
.coin-buy-help,.coin-bundles{padding:20px}
.coin-buy-help{
  text-align:center;
  border-color:rgba(230,189,98,.26);
  background:radial-gradient(circle at 50% 0%,rgba(230,189,98,.09),transparent 58%),linear-gradient(145deg,rgba(24,28,40,.84),rgba(12,14,22,.88));
}
.coin-buy-help h2{margin:0 0 8px;font-size:22px}
.coin-buy-help p{margin:0;color:#b8ad94;font-size:11px;line-height:1.6}
.coin-contact{margin:10px 0 8px;color:#d6d9e3;font-size:12px}
.coin-contact strong{color:#fff;font-size:16px;letter-spacing:.04em}
.coin-buy-help>small{display:block;color:#8f98a6;font-size:9px;line-height:1.55}
.coin-bundles-head h3{margin:0;color:#bfc4d0;font-size:11px;font-weight:700}
.coin-bundle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}
.coin-bundle{padding:15px 10px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:linear-gradient(145deg,#171b23,#0b0e13);text-align:center;box-shadow:inset 0 1px rgba(255,255,255,.025)}
.coin-bundle strong{display:block;color:var(--gold2);font-size:22px;line-height:1}
.coin-bundle span{display:block;margin-top:7px;color:#fff;font-size:12px;font-weight:900}
.coin-bundle small{display:block;margin-top:5px;color:#7f8998;font-size:7px;text-transform:uppercase;letter-spacing:.09em}
@media(max-width:860px){
  .app-shell,.ambient,.modal-backdrop{width:98vw;height:98vh}
  .coin-buy-wrap{grid-template-columns:1fr}
  .coin-bundle-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:560px){
  .coin-bundle-grid{grid-template-columns:1fr}
}


/* ============================================================
   V2.0 — Master Deck viewport sizing
   Same sizing model as the Master Game Deck: fill the entire
   available console/notepad viewport and use responsive shell
   padding instead of a fixed 920px application window.
   ============================================================ */
html,body{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#05050a!important;
}
body{
  display:block!important;
  position:relative;
}
body:before{
  display:block!important;
  content:"";
  position:fixed;
  inset:0;
  z-index:-4;
  background:radial-gradient(circle at 20% -10%,rgba(91,140,255,.12),transparent 38%),radial-gradient(circle at 80% 15%,rgba(158,108,255,.1),transparent 36%),linear-gradient(180deg,#090a10,#07080c 74%);
}
.app-shell{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  padding:clamp(14px,2.2vh,24px) clamp(16px,2.3vw,34px) clamp(12px,1.8vh,20px)!important;
  gap:clamp(9px,1.5vh,15px)!important;
  background:transparent!important;
  grid-template-rows:82px minmax(0,1fr) 26px;
}
.topbar,.body-shell,.footer{
  border-radius:16px;
}
.body-shell{
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(8,9,14,.34);
}
.topbar{
  border:1px solid var(--line);
}
.footer{
  border:1px solid var(--line);
}
.ambient{
  position:fixed!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  height:100%!important;
  transform:none!important;
  border-radius:0!important;
  overflow:hidden!important;
  z-index:-3!important;
}
.modal-backdrop{
  position:fixed!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  transform:none!important;
  width:100%!important;
  height:100%!important;
  border-radius:0!important;
  overflow:hidden!important;
  padding:clamp(20px,3vh,34px) clamp(22px,3vw,44px)!important;
}
.toast-host{
  right:calc(clamp(16px,2.3vw,34px) + 18px)!important;
  bottom:calc(clamp(12px,1.8vh,20px) + 40px)!important;
}
@media(max-width:860px){
  .app-shell{
    padding:10px!important;
    gap:7px!important;
    grid-template-rows:72px minmax(0,1fr) 24px!important;
  }
  .topbar,.body-shell,.footer{border-radius:14px}
  .modal-backdrop{padding:12px!important}
}
@media(max-height:570px){
  .app-shell{
    padding:8px 10px 6px!important;
    gap:6px!important;
    grid-template-rows:68px minmax(0,1fr) 22px!important;
  }
}

/* Build 2.1 - ornate PokeScape wheel inspired by GitHub wheel */
.wheel-stage{
  background:
    radial-gradient(circle at 50% 42%,rgba(108,67,255,.14),transparent 32%),
    radial-gradient(circle at 50% 65%,rgba(255,171,61,.08),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.008));
}
.wheel-stage:before{
  width:640px;height:640px;
  background:radial-gradient(circle,rgba(72,34,156,.16),transparent 58%);
  filter:blur(2px)
}
.wheel-pointer{
  top:15px;left:50%;transform:translateX(-50%);width:30px;height:42px;border:0;font-size:0;
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(93,84,255,.42));
}
.wheel-pointer::before{
  content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);
  width:26px;height:26px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
  background:linear-gradient(145deg,#ebd9ff,#7862ff 52%,#2b1557);
  border:2px solid rgba(255,231,186,.75);box-shadow:0 0 0 2px rgba(93,70,255,.28),0 0 18px rgba(139,119,255,.35)
}
.wheel-pointer::after{
  content:"";position:absolute;left:50%;top:22px;transform:translateX(-50%);
  width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:22px solid #d1a53d;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))
}
.wheel-disc{
  width:min(560px,76vh,86%);
  overflow:hidden;border-radius:50%;position:relative;border:0;
  box-shadow:
    0 0 0 2px rgba(255,243,196,.78),
    0 0 0 8px #8d651f,
    0 0 0 12px #2d1f0a,
    0 18px 55px rgba(0,0,0,.65),
    inset 0 0 55px rgba(0,0,0,.28);
}
.wheel-disc::before{
  content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;z-index:1;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.18),transparent 22%),
    radial-gradient(circle at 50% 75%,rgba(0,0,0,.18),transparent 58%);
}
.wheel-disc::after{
  content:"";position:absolute;inset:8.4%;border-radius:50%;border:1px solid rgba(255,245,211,.18);pointer-events:none;z-index:2;
  box-shadow:0 0 0 1px rgba(50,36,12,.75), inset 0 0 28px rgba(0,0,0,.22)
}
.wheel-rim{position:absolute;inset:0;border-radius:50%;pointer-events:none;z-index:2}
.wheel-rim-outer{box-shadow:inset 0 0 0 26px rgba(0,0,0,.0), inset 0 0 0 27px rgba(59,36,8,.7)}
.wheel-rim-inner{inset:2.3%;border:2px solid rgba(255,225,148,.34);box-shadow:inset 0 0 0 1px rgba(69,43,10,.9)}
.wheel-rune-ring{
  position:absolute;inset:3.4%;border-radius:50%;pointer-events:none;z-index:2;
  border:1px solid rgba(248,219,141,.24);
  background:repeating-conic-gradient(from 0deg,rgba(255,219,129,.48) 0deg 1.4deg,transparent 1.4deg 10deg);
  -webkit-mask:radial-gradient(circle,transparent 71.8%,#000 72.3%,#000 76.8%,transparent 77.3%);
          mask:radial-gradient(circle,transparent 71.8%,#000 72.3%,#000 76.8%,transparent 77.3%);
  opacity:.6;
}
.wheel-spoke-ring{
  position:absolute;inset:10%;border-radius:50%;pointer-events:none;z-index:2;
  border:1px solid rgba(255,255,255,.08)
}
.wheel-label-layer{position:absolute;inset:0;pointer-events:none;z-index:3}
.wheel-seg-label{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%) rotate(var(--angle)) translateY(calc(min(560px,76vh,86vw)*-0.29)) rotate(calc(var(--angle)*-1));
}
.wheel-seg-chip{
  display:grid;justify-items:center;gap:8px;min-width:106px;padding:0;border:0;background:none;box-shadow:none
}
.wheel-seg-chip span{
  font-size:8px;font-weight:1000;letter-spacing:.12em;color:#f4f2fb;text-transform:uppercase;line-height:1.15;text-align:center;
  text-shadow:0 2px 10px rgba(0,0,0,.8),0 0 16px rgba(0,0,0,.35)
}
.wheel-seg-icon{
  position:relative;display:grid;place-items:center;width:84px;height:84px;border-radius:22px;
  border:1px solid rgba(255,237,178,.22);box-shadow:0 10px 24px rgba(0,0,0,.35), inset 0 0 30px rgba(255,255,255,.04);
  background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.09),rgba(0,0,0,.12) 55%,rgba(0,0,0,.22));overflow:hidden
}
.wheel-seg-icon::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.14),transparent 35%,transparent 68%,rgba(255,255,255,.06));pointer-events:none}
.wheel-seg-icon.card img{width:52px;height:69px;object-fit:cover;border-radius:9px;display:block;position:relative;z-index:2;box-shadow:0 10px 18px rgba(0,0,0,.42)}
.wheel-seg-icon.card i{position:absolute;inset:14px;border-radius:16px;z-index:1;filter:blur(8px);opacity:.95}
.wheel-seg-chip.common .wheel-seg-icon{background:radial-gradient(circle at 50% 35%,rgba(63,132,255,.28),rgba(8,28,67,.75) 64%,rgba(2,10,25,.95))}
.wheel-seg-chip.common .wheel-seg-icon i{background:radial-gradient(circle,#78aaff,transparent 72%)}
.wheel-seg-chip.uncommon .wheel-seg-icon{background:radial-gradient(circle at 50% 35%,rgba(41,208,130,.24),rgba(12,52,37,.78) 64%,rgba(4,19,12,.96))}
.wheel-seg-chip.uncommon .wheel-seg-icon i{background:radial-gradient(circle,#54f0aa,transparent 72%)}
.wheel-seg-chip.rare .wheel-seg-icon{background:radial-gradient(circle at 50% 35%,rgba(142,89,255,.25),rgba(41,14,80,.78) 64%,rgba(13,6,29,.96))}
.wheel-seg-chip.rare .wheel-seg-icon i{background:radial-gradient(circle,#ad8cff,transparent 72%)}
.wheel-seg-chip.shiney .wheel-seg-icon{background:radial-gradient(circle at 50% 35%,rgba(198,74,255,.28),rgba(68,17,94,.8) 64%,rgba(22,8,28,.96))}
.wheel-seg-chip.shiney .wheel-seg-icon i{background:radial-gradient(circle,#f18fff,transparent 72%)}
.wheel-seg-chip.legendary .wheel-seg-icon{background:radial-gradient(circle at 50% 35%,rgba(255,66,94,.26),rgba(93,17,28,.82) 64%,rgba(27,6,10,.96))}
.wheel-seg-chip.legendary .wheel-seg-icon i{background:radial-gradient(circle,#ff9a5d,transparent 72%)}
.wheel-seg-icon.coins{background:radial-gradient(circle at 50% 35%,rgba(255,157,59,.24),rgba(73,34,11,.82) 64%,rgba(20,9,3,.96))}
.wheel-seg-icon .coin-a,.wheel-seg-icon .coin-b,.wheel-seg-icon .coin-c{position:absolute;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff2b4,#d8a53a 55%,#7f5015 100%);box-shadow:inset 0 0 0 2px rgba(255,234,177,.3),0 7px 12px rgba(0,0,0,.28)}
.wheel-seg-icon .coin-a{width:32px;height:32px;left:18px;top:22px}
.wheel-seg-icon .coin-b{width:24px;height:24px;left:42px;top:17px}
.wheel-seg-icon .coin-c{width:22px;height:22px;left:45px;top:42px}
.wheel-seg-icon .coin-a::after,.wheel-seg-icon .coin-b::after,.wheel-seg-icon .coin-c::after{content:"◈";position:absolute;inset:0;display:grid;place-items:center;color:#59370e;font-size:10px;font-weight:900}
.wheel-seg-icon.freespins{background:radial-gradient(circle at 50% 35%,rgba(255,188,61,.28),rgba(99,63,9,.8) 64%,rgba(22,13,3,.96))}
.wheel-seg-icon .spin-ring{position:relative;z-index:2;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;border:3px solid rgba(255,214,111,.85);color:#ffd25f;font-size:28px;font-weight:900;box-shadow:0 0 25px rgba(255,182,59,.25), inset 0 0 18px rgba(255,214,111,.12)}
.wheel-centre{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:31%;aspect-ratio:1;border-radius:50%;z-index:4;
  display:grid;place-content:center;text-align:center;background:radial-gradient(circle at 50% 35%,#5c3fd0,#2d1863 45%,#10081f 72%);
  border:6px solid #d0a03d;box-shadow:0 0 0 4px #4a2d09,0 10px 30px rgba(0,0,0,.55), inset 0 0 28px rgba(255,255,255,.08)
}
.wheel-centre-gem{position:absolute;inset:17%;border-radius:50%;background:radial-gradient(circle at 50% 35%,rgba(228,220,255,.8),rgba(141,106,255,.78) 28%,rgba(66,23,149,.95) 62%,rgba(30,11,60,.98));filter:blur(1px);opacity:.95}
.wheel-centre strong,.wheel-centre span{position:relative;z-index:1;text-shadow:0 2px 10px rgba(0,0,0,.65)}
.wheel-centre strong{font-size:15px;letter-spacing:.13em}
.wheel-centre span{font-size:10px;color:#ffe8a5;letter-spacing:.18em}
@media(max-width:900px){
  .wheel-disc{width:min(500px,68vh,92%)}
  .wheel-seg-label{transform:translate(-50%,-50%) rotate(var(--angle)) translateY(calc(min(500px,68vh,92vw)*-0.29)) rotate(calc(var(--angle)*-1))}
  .wheel-seg-chip{min-width:82px}
  .wheel-seg-icon{width:62px;height:62px;border-radius:18px}
  .wheel-seg-icon.card img{width:40px;height:53px}
  .wheel-seg-chip span{font-size:7px}
  .wheel-seg-icon .spin-ring{width:44px;height:44px;font-size:22px}
  .wheel-seg-icon .coin-a{width:24px;height:24px;left:14px;top:18px}.wheel-seg-icon .coin-b{width:18px;height:18px;left:31px;top:15px}.wheel-seg-icon .coin-c{width:17px;height:17px;left:32px;top:34px}
}


/* Build 2.2 - static AI wheel art */
.wheel-disc{
  background-color:transparent !important;
  background-image:url('assets/pokescape-wheel-ai.png') !important;
  background-size:contain !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  box-shadow:none !important;
  border:0 !important;
}
.wheel-disc::before,.wheel-disc::after{display:none !important}
.wheel-stage{background:radial-gradient(circle at 50% 42%,rgba(91,140,255,.06),transparent 48%),linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01))}
.wheel-pointer{top:12px}


/* Build 2.4 - in-app duplicate trade-in confirmation */
.confirm-modal{width:min(560px,92vw);padding:26px;overflow:hidden;position:relative;background:linear-gradient(180deg,#151922,#0b0e14);border:1px solid rgba(230,189,98,.22);box-shadow:0 28px 80px rgba(0,0,0,.65),inset 0 1px rgba(255,255,255,.04)}
.confirm-glow{position:absolute;width:300px;height:300px;border-radius:50%;right:-120px;top:-150px;background:radial-gradient(circle,rgba(230,189,98,.18),transparent 68%);pointer-events:none}
.confirm-modal>*:not(.confirm-glow){position:relative}
.confirm-body{display:grid;grid-template-columns:110px 1fr;gap:18px;align-items:center;margin-top:12px}
.confirm-body:has(.confirm-art.hidden){grid-template-columns:1fr}
.confirm-art{width:100px;aspect-ratio:2/3;border-radius:11px;overflow:hidden;border:1px solid rgba(230,189,98,.26);box-shadow:0 14px 30px rgba(0,0,0,.45)}
.confirm-art img{display:block;width:100%;height:100%;object-fit:cover}
.confirm-copy h2{margin:0 0 8px;font-size:25px;letter-spacing:-.035em}
.confirm-copy p{margin:0;color:#c6cad5;font-size:11px;line-height:1.55}
.confirm-detail{margin-top:12px;padding:10px 12px;border:1px solid rgba(230,189,98,.18);border-radius:10px;background:rgba(230,189,98,.06);color:#e7c56f;font-size:10px;line-height:1.45}
.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.confirm-actions button{height:44px;margin:0}
@media(max-width:620px){.confirm-body{grid-template-columns:78px 1fr;gap:13px}.confirm-art{width:72px}.confirm-copy h2{font-size:20px}.confirm-actions{grid-template-columns:1fr}}

/* Build 2.5 — Energy Evolution */
.card-modal{align-items:start}
.card-evolution{margin-top:18px;padding-top:17px;border-top:1px solid rgba(255,255,255,.08)}
.evo-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:11px}
.evo-section-head h3{margin:4px 0 0;font-size:17px;letter-spacing:-.025em}.evo-section-head>small{color:var(--muted);font-size:8px;text-align:right}
.evo-options{display:grid;gap:10px}.evo-option{padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.015));overflow:hidden}
.evo-option.ready{border-color:rgba(230,189,98,.28);box-shadow:inset 0 0 25px rgba(230,189,98,.035)}.evo-option.locked{opacity:.82}
.evo-target{display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:center;margin-bottom:11px}.evo-target img{width:58px;height:81px;object-fit:cover;border-radius:8px;box-shadow:0 8px 18px rgba(0,0,0,.45)}
.evo-target small{display:block;color:var(--muted);font-size:7px;letter-spacing:.13em;font-weight:900}.evo-target strong{display:block;font-size:15px;margin-top:2px}.evo-target span{display:block;color:var(--gold2);font-size:8px;margin-top:2px;font-weight:800}
.evo-requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}.evo-requirement{display:grid;grid-template-columns:34px 1fr;gap:7px;align-items:center;padding:7px;border:1px solid var(--line);border-radius:10px;background:rgba(4,7,11,.34)}
.evo-requirement img,.evo-any-energy{width:34px;height:47px;border-radius:5px;object-fit:cover;background:#080b10}.evo-any-energy{height:34px;display:grid;place-items:center;border-radius:9px;color:var(--gold2);font-size:18px;border:1px solid rgba(230,189,98,.18)}
.evo-requirement strong{display:block;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.evo-requirement span{display:block;margin-top:2px;font-size:8px;font-weight:900}.evo-requirement.ready span{color:#71d79c}.evo-requirement.missing span{color:#ff7d8e}.evo-action{margin-top:2px}
.evolution-modal{width:min(760px,92vw);padding:28px;text-align:center;overflow:hidden;background:radial-gradient(circle at 50% 47%,rgba(118,76,255,.13),transparent 42%),linear-gradient(145deg,#171c28,#090b11)}
.evolution-modal h2{font-size:29px;margin:6px 0 5px}.evolution-modal>p{margin:0;color:var(--muted);font-size:10px}.evolution-stage{position:relative;height:min(470px,58vh);min-height:330px;margin:17px 0 19px;display:grid;place-items:center;overflow:hidden;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:radial-gradient(circle at 50% 50%,rgba(91,140,255,.10),transparent 52%),rgba(3,5,10,.48)}
.evolution-card{position:absolute;width:min(250px,48%);transition:opacity .55s ease,transform .7s cubic-bezier(.2,.8,.2,1),filter .55s ease;z-index:3}.evolution-card img{display:block;width:100%;border-radius:15px;box-shadow:0 26px 60px rgba(0,0,0,.62)}
.evolution-card.to{opacity:0;transform:scale(.7);filter:brightness(2) blur(8px)}.evolution-core{position:absolute;z-index:4;width:70px;height:70px;border-radius:50%;display:grid;place-items:center;font-size:30px;color:#fff3c1;background:radial-gradient(circle,#fff,#ad8aff 28%,#5124b3 55%,transparent 72%);opacity:0;transform:scale(.3);filter:drop-shadow(0 0 28px #8a5dff)}
.evolution-energy-field{position:absolute;inset:0;z-index:2;pointer-events:none}.evolution-energy-field i{position:absolute;left:50%;top:50%;width:9px;height:9px;border-radius:50%;background:#e9dbff;box-shadow:0 0 15px #8e6cff;opacity:0}
.evolution-energy-field i:nth-child(1){--x:-190px;--y:-110px}.evolution-energy-field i:nth-child(2){--x:180px;--y:-125px}.evolution-energy-field i:nth-child(3){--x:-205px;--y:85px}.evolution-energy-field i:nth-child(4){--x:205px;--y:95px}.evolution-energy-field i:nth-child(5){--x:-80px;--y:170px}.evolution-energy-field i:nth-child(6){--x:95px;--y:175px}
.evolution-stage.evolving .evolution-energy-field i{animation:evoParticle 1.7s ease-in-out infinite}.evolution-stage.evolving .evolution-energy-field i:nth-child(2){animation-delay:.13s}.evolution-stage.evolving .evolution-energy-field i:nth-child(3){animation-delay:.28s}.evolution-stage.evolving .evolution-energy-field i:nth-child(4){animation-delay:.42s}.evolution-stage.evolving .evolution-energy-field i:nth-child(5){animation-delay:.57s}.evolution-stage.evolving .evolution-energy-field i:nth-child(6){animation-delay:.72s}
.evolution-stage.evolving .evolution-card.from{animation:evoSource 2.1s ease-in-out forwards}.evolution-stage.evolving .evolution-core{animation:evoCore 2.1s ease-in-out forwards}.evolution-stage.revealed .evolution-card.from{opacity:0;transform:scale(1.24);filter:brightness(3) blur(9px)}.evolution-stage.revealed .evolution-card.to{opacity:1;transform:scale(1);filter:none;animation:evoTargetPop .75s cubic-bezier(.16,.9,.25,1.2)}
@keyframes evoParticle{0%{opacity:0;transform:translate(var(--x),var(--y)) scale(.35)}30%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(0,0) scale(1.3)}}
@keyframes evoSource{0%{transform:scale(1);filter:brightness(1)}35%{transform:scale(1.04);filter:brightness(1.25)}70%{transform:scale(.93);filter:brightness(2)}100%{transform:scale(1.22);filter:brightness(3.5) blur(8px);opacity:.1}}
@keyframes evoCore{0%,15%{opacity:0;transform:scale(.2)}55%{opacity:1;transform:scale(1)}82%{opacity:1;transform:scale(1.5)}100%{opacity:0;transform:scale(2.2)}}
@keyframes evoTargetPop{0%{transform:scale(.72);filter:brightness(2.4) blur(6px)}70%{transform:scale(1.06);filter:brightness(1.18)}100%{transform:scale(1);filter:none}}
@media(max-width:760px){.evo-requirements{grid-template-columns:1fr}.evolution-stage{min-height:300px;height:48vh}.evolution-card{width:min(215px,58%)}}


/* Build 2.6 - epic evolution sequence */
.evolution-modal{width:min(860px,94vw);padding:28px 28px 24px;text-align:center;overflow:hidden;background:radial-gradient(circle at 50% 35%,rgba(101,73,255,.20),transparent 28%),radial-gradient(circle at 50% 62%,rgba(255,190,87,.08),transparent 34%),linear-gradient(145deg,#171c28,#080a12)}
.evolution-modal h2{font-size:31px;letter-spacing:.02em}
.evolution-modal>p{font-size:11px;letter-spacing:.05em;color:#b9c1d6}
.evolution-stage{position:relative;height:min(520px,64vh);min-height:360px;margin:18px 0 20px;display:grid;place-items:center;overflow:hidden;border-radius:24px;border:1px solid rgba(255,255,255,.08);background:radial-gradient(circle at 50% 50%,rgba(91,140,255,.12),transparent 52%),radial-gradient(circle at 50% 25%,rgba(255,255,255,.06),transparent 32%),rgba(3,5,10,.60)}
.evo-cosmic-bg,.evo-shockwave,.evo-flash,.evo-rune-ring,.evo-column,.evo-nameplate{position:absolute;pointer-events:none}
.evo-cosmic-bg{inset:-8%;background:radial-gradient(circle at 50% 50%,rgba(104,72,255,.16),transparent 34%),radial-gradient(circle at 20% 30%,rgba(72,166,255,.08),transparent 28%),radial-gradient(circle at 80% 70%,rgba(255,112,210,.08),transparent 26%);filter:blur(6px);opacity:.9;animation:evoNebula 8s ease-in-out infinite alternate}
.evo-rune-ring{left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;opacity:.0}
.evo-rune-ring.outer{width:420px;height:420px;background:repeating-conic-gradient(from 0deg,rgba(255,224,145,.9) 0deg 1.7deg,transparent 1.7deg 13deg);-webkit-mask:radial-gradient(circle,transparent 73%,#000 74%,#000 78%,transparent 79%);mask:radial-gradient(circle,transparent 73%,#000 74%,#000 78%,transparent 79%);filter:drop-shadow(0 0 20px rgba(255,214,135,.22))}
.evo-rune-ring.inner{width:290px;height:290px;border:2px solid rgba(175,152,255,.28);box-shadow:0 0 0 1px rgba(255,245,204,.08) inset,0 0 40px rgba(126,109,255,.12) inset}
.evo-column{top:-10%;width:150px;height:125%;opacity:0;background:linear-gradient(180deg,transparent,rgba(255,255,255,.08),rgba(159,103,255,.12),transparent);filter:blur(12px)}
.evo-column.left{left:18%;transform:rotate(8deg)}
.evo-column.right{right:18%;transform:rotate(-8deg)}
.evolution-card{position:absolute;width:min(250px,48%);transition:opacity .55s ease,transform .7s cubic-bezier(.2,.8,.2,1),filter .55s ease;z-index:5}
.evolution-card img{display:block;width:100%;border-radius:15px;box-shadow:0 26px 60px rgba(0,0,0,.62)}
.evolution-card.from{transform:translateY(10px) scale(1);filter:drop-shadow(0 0 0 rgba(0,0,0,0))}
.evolution-card.to{opacity:0;transform:translateY(20px) scale(.64);filter:brightness(2.2) blur(16px) saturate(1.45)}
.evolution-core{position:absolute;z-index:7;width:98px;height:98px;border-radius:50%;display:grid;place-items:center;opacity:0;transform:scale(.2);background:radial-gradient(circle,#fff8dd 0%,#f4d785 15%,#ad8aff 34%,#6130d2 58%,rgba(97,48,210,0) 72%);filter:drop-shadow(0 0 40px rgba(166,113,255,.45))}
.evolution-core span{font-size:42px;color:#fff8f0;text-shadow:0 0 20px rgba(255,255,255,.75)}
.evolution-energy-field{position:absolute;inset:0;z-index:4;pointer-events:none}
.evolution-energy-field i{position:absolute;left:50%;top:50%;width:12px;height:12px;border-radius:50%;opacity:0;background:radial-gradient(circle,#fff,#eed2ff 38%,#8d63ff 68%,transparent 70%);box-shadow:0 0 18px rgba(176,138,255,.55);transform-origin:center center}
.evolution-energy-field i:nth-child(1){--sx:-260px;--sy:-140px}.evolution-energy-field i:nth-child(2){--sx:-180px;--sy:-190px}.evolution-energy-field i:nth-child(3){--sx:-25px;--sy:-210px}.evolution-energy-field i:nth-child(4){--sx:150px;--sy:-182px}.evolution-energy-field i:nth-child(5){--sx:260px;--sy:-120px}.evolution-energy-field i:nth-child(6){--sx:-280px;--sy:0px}.evolution-energy-field i:nth-child(7){--sx:280px;--sy:0px}.evolution-energy-field i:nth-child(8){--sx:-250px;--sy:132px}.evolution-energy-field i:nth-child(9){--sx:-130px;--sy:188px}.evolution-energy-field i:nth-child(10){--sx:25px;--sy:218px}.evolution-energy-field i:nth-child(11){--sx:165px;--sy:174px}.evolution-energy-field i:nth-child(12){--sx:245px;--sy:120px}.evolution-energy-field i:nth-child(13){--sx:-96px;--sy:92px}.evolution-energy-field i:nth-child(14){--sx:92px;--sy:-92px}
.evo-shockwave{left:50%;top:50%;width:20px;height:20px;border-radius:50%;border:2px solid rgba(255,234,160,.75);transform:translate(-50%,-50%) scale(.2);opacity:0;z-index:6;box-shadow:0 0 30px rgba(255,219,122,.25)}
.evo-flash{inset:0;z-index:8;opacity:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.95),rgba(255,251,214,.65) 12%,rgba(217,175,255,.25) 25%,transparent 44%)}
.evo-nameplate{left:50%;transform:translateX(-50%);padding:7px 14px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;z-index:8;background:rgba(4,8,16,.68);border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 30px rgba(0,0,0,.35)}
.evo-nameplate.from{bottom:16px;opacity:.9;color:#d8deed}
.evo-nameplate.to{top:16px;opacity:0;color:#fff2bb;background:linear-gradient(180deg,rgba(57,35,12,.72),rgba(24,15,5,.75));border-color:rgba(255,222,126,.22)}
.evolution-stage.evolving .evo-rune-ring.outer{opacity:.55;animation:evoSpin 5s linear infinite}
.evolution-stage.evolving .evo-rune-ring.inner{opacity:.45;animation:evoPulseRing 1.9s ease-in-out infinite}
.evolution-stage.evolving .evo-column{opacity:1;animation:evoColumns 1.3s ease-in-out infinite alternate}
.evolution-stage.evolving .evolution-energy-field i{animation:evoParticleEpic 1.65s cubic-bezier(.1,.75,.2,1) infinite;animation-delay:var(--d)}
.evolution-stage.evolving .evolution-card.from{animation:evoSourceEpic 3s cubic-bezier(.2,.72,.12,1) forwards}
.evolution-stage.evolving .evolution-core{animation:evoCoreEpic 3s cubic-bezier(.18,.8,.2,1) forwards}
.evolution-stage.burst .evo-flash{animation:evoFlash .76s ease-out forwards}
.evolution-stage.burst .evo-shockwave{animation:evoShock .9s cubic-bezier(.16,.84,.22,1) forwards}
.evolution-stage.burst .evolution-card.from{opacity:0;transform:scale(1.32);filter:brightness(3.4) blur(10px)}
.evolution-stage.revealed .evolution-card.to{opacity:1;transform:translateY(0) scale(1);filter:none;animation:evoTargetEpic .95s cubic-bezier(.16,.9,.25,1.18)}
.evolution-stage.revealed .evo-nameplate.to{opacity:1;animation:evoPlatePop .7s ease}
.evolution-stage.revealed .evo-rune-ring.outer{animation-duration:3.2s;opacity:.3}
.evolution-stage.revealed .evo-column{opacity:.4}
@keyframes evoNebula{0%{transform:scale(1) translateY(-10px)}100%{transform:scale(1.1) translateY(12px)}}
@keyframes evoSpin{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes evoPulseRing{0%,100%{transform:translate(-50%,-50%) scale(.94);opacity:.16}50%{transform:translate(-50%,-50%) scale(1.02);opacity:.55}}
@keyframes evoColumns{0%{filter:blur(14px);transform:rotate(0deg) scaleY(.92)}100%{filter:blur(10px);transform:rotate(0deg) scaleY(1.05)}}
@keyframes evoParticleEpic{0%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(.2)}20%{opacity:1}76%{opacity:.95}100%{opacity:0;transform:translate(0,0) scale(1.25)}}
@keyframes evoSourceEpic{0%{transform:translateY(10px) scale(1);filter:none}30%{transform:translateY(-6px) scale(1.04);filter:drop-shadow(0 0 20px rgba(145,118,255,.34))}62%{transform:translateY(0) scale(.86);filter:brightness(1.4) saturate(1.18) blur(1px)}100%{transform:translateY(0) scale(.58);filter:brightness(2.4) blur(3px)}}
@keyframes evoCoreEpic{0%{opacity:0;transform:scale(.18)}22%{opacity:.2;transform:scale(.52)}58%{opacity:.92;transform:scale(1.12)}85%{opacity:1;transform:scale(1.55)}100%{opacity:1;transform:scale(1.15)}}
@keyframes evoFlash{0%{opacity:0}20%{opacity:1}100%{opacity:0}}
@keyframes evoShock{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}10%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(13)}}
@keyframes evoTargetEpic{0%{opacity:0;transform:translateY(18px) scale(.72);filter:brightness(2) blur(10px)}45%{opacity:1;transform:translateY(-6px) scale(1.08);filter:brightness(1.2) blur(0)}72%{transform:translateY(0) scale(.98)}100%{transform:translateY(0) scale(1)}}
@keyframes evoPlatePop{0%{transform:translateX(-50%) translateY(-8px);opacity:0}100%{transform:translateX(-50%) translateY(0);opacity:1}}
@media(max-width:760px){.evolution-stage{min-height:320px;height:53vh}.evo-rune-ring.outer{width:320px;height:320px}.evo-rune-ring.inner{width:225px;height:225px}.evolution-card{width:min(210px,58%)}.evolution-core{width:76px;height:76px}.evolution-core span{font-size:33px}.evo-nameplate{font-size:9px;padding:6px 11px}.evolution-modal h2{font-size:26px}}


/* Build 2.6.1 - clear evolution effects after reveal */
.evolution-stage.revealed .evolution-core,
.evolution-stage.revealed .evolution-energy-field,
.evolution-stage.revealed .evo-flash,
.evolution-stage.revealed .evo-shockwave,
.evolution-stage.revealed .evo-nameplate.from{
  opacity:0 !important;
  animation:none !important;
  visibility:hidden !important;
}
.evolution-stage.revealed .evolution-card.to{z-index:7}


/* Build 2.7 - friend trade card hover preview */
.trade-friend-pick{transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.trade-friend-pick:hover{z-index:2;border-color:rgba(230,189,98,.52);box-shadow:0 0 0 1px rgba(230,189,98,.12),0 8px 24px rgba(0,0,0,.32)}
.trade-hover-preview{
  position:fixed;
  z-index:95;
  pointer-events:none;
  padding:8px 8px 7px;
  border-radius:16px;
  border:1px solid rgba(230,189,98,.30);
  background:linear-gradient(145deg,rgba(22,26,38,.98),rgba(7,9,15,.98));
  box-shadow:0 24px 70px rgba(0,0,0,.72),0 0 30px rgba(135,99,255,.11);
  opacity:1;
  transform:translateY(0) scale(1);
  transition:opacity .12s ease,transform .12s ease;
}
.trade-hover-preview.hidden{
  display:block!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(5px) scale(.97)!important;
}
.trade-hover-preview img{
  display:block;
  width:100%;
  aspect-ratio:2.5/3.5;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 14px 35px rgba(0,0,0,.55);
}
.trade-hover-preview-name{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  padding:8px 4px 1px;
  text-align:center;
  color:#f2ead7;
  font-size:9px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
@media(max-width:760px){
  .trade-hover-preview{display:none!important}
}

/* Build 2.8 - Trade hover preview on both sides + GitHub-style collection sections */
.trade-preview-pick{transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.trade-preview-pick:hover{z-index:2;border-color:rgba(230,189,98,.52);box-shadow:0 0 0 1px rgba(230,189,98,.12),0 8px 24px rgba(0,0,0,.32)}

#collectionGrid.sectioned{
  display:block;
  padding-bottom:20px;
}
.collection-section{
  margin:0 0 26px;
}
.collection-section:last-child{margin-bottom:0}
.collection-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 12px;
  padding:0 3px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.collection-section-head>div{min-width:0}
.collection-section-head .eyebrow{font-size:7px;letter-spacing:.15em;color:#6f788b}
.collection-section-head h2{
  margin:2px 0 2px;
  font-size:18px;
  letter-spacing:.035em;
  color:#f0f2f8;
}
.collection-section.energy .collection-section-head h2{color:#8ed6ff}
.collection-section.trainers .collection-section-head h2{color:#e7c96f}
.collection-section-head p{margin:0;font-size:9px;color:#757d8f}
.collection-section-head>strong{
  flex:0 0 auto;
  font-size:16px;
  color:var(--gold2);
  letter-spacing:.035em;
}
.collection-section-head>strong small{font-size:9px;color:#737b8b;font-weight:700}
.collection-section-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:14px;
}
.collection-section-grid.large{
  grid-template-columns:repeat(auto-fill,minmax(205px,1fr));
}
.collection-section.energy{
  padding-top:2px;
}
.collection-section.energy .collection-section-head{
  border-bottom-color:rgba(91,174,255,.18);
}
.collection-section.trainers .collection-section-head{
  border-bottom-color:rgba(230,189,98,.18);
}
@media(max-width:760px){
  .collection-section-head{align-items:center;margin-bottom:10px}
  .collection-section-head h2{font-size:16px}
  .collection-section-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
  .collection-section-grid.large{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}
}

/* Build 2.9 - saved Trade Contacts */
.trade-contacts{padding:15px 16px;margin-bottom:14px}
.trade-contacts .section-title{margin-bottom:10px}
.trade-contacts .section-title p{margin:4px 0 0;color:var(--muted);font-size:8px;line-height:1.45}
.trade-contact-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.trade-contact{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;min-width:0;padding:9px 9px 9px 10px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.012));transition:border-color .16s ease,background .16s ease,transform .16s ease}
.trade-contact:hover{border-color:rgba(230,189,98,.22);background:rgba(230,189,98,.035);transform:translateY(-1px)}
.trade-contact-copy{min-width:0}
.trade-contact-copy strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eef0f7}
.trade-contact-copy small{display:block;margin-top:2px;font-size:8px;letter-spacing:.08em;color:#727b8d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-contact-go{height:34px;padding:0 13px;font-size:8px;letter-spacing:.08em}
.trade-contact-remove{width:30px;height:30px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(0,0,0,.18);color:#767f90;font-size:17px;line-height:1;cursor:pointer;transition:.15s}
.trade-contact-remove:hover{color:#ff9c9c;border-color:rgba(255,104,104,.26);background:rgba(255,80,80,.06)}
@media(max-width:760px){.trade-contact-list{grid-template-columns:1fr}.trade-contact{grid-template-columns:auto minmax(0,1fr) auto auto}.trade-contact-go{padding:0 10px}}
