@import url('./aura-motion.css');
/* Visual rewards share the game's real character models and warm jungle palette. */
.treasure-stage { position:relative; overflow:hidden; padding:16px 8px 14px; border-radius:20px; background:radial-gradient(ellipse at 50% 38%,#557c66,#203f39 78%); text-align:center; }
.game-dialog .treasure-stage .reward-eyebrow,.game-dialog .premium-showcase .reward-eyebrow { color:#ffe5a0; }
.treasure-art { display:block; width:min(100%,300px); height:180px; margin:0 auto; overflow:visible; }
.game-dialog .treasure-stage h3 { font-size:20px; color:#fff4d4; margin:0 0 10px; }
.game-dialog .treasure-stage #chest-remaining { color:#e7efd8; }
.chest-rays { opacity:0; transform-origin:160px 165px; }
.chest-lid { transform-origin:158px 84px; }
.chest-sparkles { opacity:.85; }
.guaranteed-loot { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; color:#fff0c6; font:700 13px/1.2 Arial,sans-serif; }
.guaranteed-loot>span { display:flex; align-items:center; gap:4px; }.guaranteed-loot svg { width:24px; height:24px; }
.game-dialog .guaranteed-loot b { color:#fff0c6; }
.game-dialog .era-unlock-chest p{color:#dce8cb;font-size:14px;line-height:1.4;margin:6px 14px 18px}
.game-dialog .era-chest-note{text-align:center;font-size:14px;line-height:1.5;margin:18px 8px;color:#476047}
.loot-heading { display:flex; align-items:center; justify-content:space-between; margin:16px 0 8px; font:700 14px/1.2 Arial,sans-serif; color:#31533e; }
.loot-heading span { font-size:12px; font-weight:400; }
.loot-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.loot-card { position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; border:1px solid #97b7b0; border-radius:13px; background:linear-gradient(#e5f2ed,#bbd5c9); text-align:center; padding:6px 3px 10px; min-width:0; }
.loot-card.epic { border-color:#aa90be; background:linear-gradient(#ece1f4,#c8b4d5); }.loot-card.legendary { border-color:#c5a75f; background:linear-gradient(#fff0c9,#e9cc91); }
.loot-card>img,.loot-card>svg { width:100%; height:104px; object-fit:contain; }.loot-card>img { transform:scale(1.24); }
.loot-card>svg { padding:15px 9px; box-sizing:border-box; }
.loot-rate { align-self:flex-end; color:#31564d; background:#fff9dfc9; padding:3px 6px; border-radius:6px; font:800 11px/1 Arial,sans-serif; z-index:1; }
.loot-card b { font:800 13px/1.15 Arial,sans-serif; color:#29473b; min-height:30px; display:flex; align-items:center; }
.loot-card small { font:11px/1.3 Arial,sans-serif; color:#4d5c50; margin-top:3px; }
.game-dialog .reward-micro { font:12px/1.4 Arial,sans-serif; text-align:center; color:#627058; margin:10px 0; }
.visual-secret { padding:12px; margin:14px 0 8px; }
.secret-summary { display:flex; align-items:center; gap:8px; }.secret-summary>svg { flex:none; width:64px; height:64px; }.secret-summary h3 { font-size:18px; margin:3px 0; }.game-dialog .secret-summary p { font-size:13px; margin:3px 0; }
.visual-secret .secondary-button { margin-top:10px; min-height:48px; width:100%; }
.reward-details { border-bottom:1px solid #d6d4c0; }
.reward-details summary { min-height:48px; padding:14px 3px; box-sizing:border-box; cursor:pointer; font:700 14px/1.4 Arial,sans-serif; color:#3b5944; }
.reward-details summary>span { float:right; background:#d8e3cc; border-radius:7px; padding:1px 8px; }
.game-dialog .reward-details p { font:13px/1.45 Arial,sans-serif; color:#58634d; }
.boost-choices button>svg { width:40px; height:40px; }
.chest-action { display:flex; align-items:center; justify-content:center; gap:8px; }.chest-action>svg { width:28px; height:28px; }
.chest-opening { text-align:center; padding-top:30px; }.chest-opening>.reward-eyebrow { margin:0 0 15px; }.chest-opening .treasure-art { height:245px; }
.chest-opening h3 { font-size:25px; color:#335840; }
.is-opening .chest-box { animation:chest-rattle .55s ease both; }
.is-opening .chest-lid { animation:chest-open .75s .55s cubic-bezier(.2,.8,.3,1) both; }
.is-opening .chest-rays { animation:chest-light .6s .75s ease-out both; }
.is-opening .chest-sparkles { animation:chest-spark 1.3s .1s ease-out both; }
.reward-reveal { border-radius:20px; padding:20px 12px; text-align:center; background:radial-gradient(ellipse,#f4efd1,#d8e4c7); animation:reward-arrive .35s ease-out; }
.reward-reveal.rare { background:radial-gradient(ellipse,#edfff2,#b3d8d5); }.reward-reveal.epic { background:radial-gradient(ellipse,#f2e6ff,#c5aedc); }.reward-reveal.legendary { background:radial-gradient(ellipse,#fff5c0,#e5be68); }
.reveal-art { display:grid; place-items:center; height:210px; }.reveal-art img { width:230px; height:230px; object-fit:contain; transform:scale(1.1); }.reveal-art svg { width:145px; height:145px; filter:drop-shadow(0 9px 3px #50382020); }
.game-dialog .reward-reveal h3 { font-size:27px; color:#294632; margin:10px 0 6px; }.game-dialog .reward-reveal p { font-size:14px; color:#4c5d47; margin:0; }
.reward-totals { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; padding:20px 0 8px; }.reward-totals>span { display:flex; align-items:center; gap:5px; font:800 16px/1.3 Arial,sans-serif; color:#35563d; }.reward-totals svg { width:32px; height:32px; }
.fragment-unlock { display:flex; align-items:center; justify-content:center; gap:10px; background:#f7e5b2; border-radius:12px; color:#584927; }.fragment-unlock svg { width:65px; height:65px; }
.premium-showcase { text-align:center; border:1px solid #be9d58; border-radius:20px; background:radial-gradient(ellipse at 50% 40%,#876946,#3f3442 85%); padding:16px 10px; }
.premium-noads { display:inline-block; padding:6px 18px; background:#f4d791; color:#483523; border-radius:8px; font:900 24px/1.1 Arial,sans-serif; letter-spacing:1.3px; }
.game-dialog .premium-showcase .premium-promise { margin:12px 0 4px; font-size:15px; }
.premium-era-outfits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:14px 0; }
.premium-era-outfits>div { min-width:0; padding:8px 3px 10px; border-radius:12px; border:1px solid #e9c97a3d; background:#ffeeb910; overflow:hidden; }
.premium-era-outfits img { display:block; width:100%; height:154px; object-fit:contain; transform:scale(1.3); }
.game-dialog .premium-era-outfits b { display:block; color:#fff1c5; font:800 14px/1.2 Arial,sans-serif; }
.game-dialog .premium-showcase .premium-perks { border-top:1px solid #e9c97a3d; padding-top:10px; }
.game-dialog .premium-showcase h3 { color:#fff0b9; margin:6px 0; font-size:26px; }.game-dialog .premium-showcase p { color:#fff4d4; font:700 14px/1.4 Arial; margin:0; }
.premium-benefits { display:grid; gap:10px; margin:18px 0; }.premium-benefits>div { display:flex; align-items:center; gap:12px; }.premium-benefits svg { width:42px; height:42px; flex:none; }.premium-benefits b { color:#35553d; font-size:16px; }.premium-benefits small { display:block; margin-top:4px; color:#657151; font:13px/1.25 Arial,sans-serif; }
/* Collection cards use more space for clothing than for instructions. */
.game-dialog .wardrobe-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.game-dialog .wardrobe-options .skin-choice { display:flex; flex-direction:column; position:relative; text-align:center; gap:4px; padding:8px 5px 12px; }
.wardrobe-options .outfit-preview { width:100%; height:120px; background:transparent; object-fit:contain; transform:scale(1.25); border-radius:12px; }
.game-dialog .wardrobe-options b { font-size:15px; }.wardrobe-options .outfit-perk { font-size:12px; }.wardrobe-options .skin-check { position:absolute; right:8px; top:8px; }.game-dialog .wardrobe-options small { font-size:12px; }
.wardrobe-options .skin-choice:disabled { opacity:1; }
.game-dialog .wardrobe-options .outfit-premium { background:#f3e3bc; border-color:#c5a561; }
.game-dialog .wardrobe-options .outfit-rare { background:#dceee8; border-color:#90b6ac; }
.game-dialog .wardrobe-options .outfit-epic { background:#e8dced; border-color:#b8a0c4; }
.game-dialog #dialog-done[hidden] { display:none; }
.demo-testing { display:grid; gap:10px; margin-bottom:20px; padding:14px; border:1px solid #b7bea2; border-radius:16px; background:#e6ecd7; }
.demo-testing button { width:100%; min-height:48px; font-size:15px; }
.demo-testing small { color:#59664b; font:12px/1.4 Arial,sans-serif; }
@keyframes chest-rattle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-3deg)} 50%{transform:rotate(3deg)} 75%{transform:rotate(-2deg)} }
@keyframes chest-open { from{transform:translateY(0) rotate(0)} to{transform:translate(-13px,-56px) rotate(-16deg)} }
@keyframes chest-light { from{opacity:0;transform:scale(.5)} to{opacity:.75;transform:scale(1)} }
@keyframes chest-spark { 0%{opacity:0} 55%{opacity:1} 100%{opacity:1;transform:translateY(-14px)} }
@keyframes reward-arrive { from{opacity:0;transform:translateY(12px) scale(.97)} to{opacity:1;transform:none} }
@media(prefers-reduced-motion:reduce){ .is-opening *,.reward-reveal { animation:none!important; }.is-opening .chest-lid { transform:translate(-13px,-56px) rotate(-16deg); }.is-opening .chest-rays{opacity:.75;} }
@media(max-width:350px){.treasure-art{height:148px}.game-dialog .treasure-stage h3{font-size:18px}.guaranteed-loot{font-size:11px;gap:5px}.loot-card>img,.loot-card>svg{height:90px}.loot-card b{font-size:12px}.loot-heading{font-size:13px}.loot-heading span{font-size:11px}.reveal-art{height:175px}.reveal-art img{height:200px;width:200px}}

/* Variant B shares the chest's equal grid column and stretched row height. */
.home-rewards { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
.home-rewards .premium-button { gap:6px; padding:6px 8px; background:linear-gradient(135deg,#684755,#392941); border-color:#e7c169; }
.home-rewards .premium-button>svg { width:44px; height:44px; filter:drop-shadow(0 2px 1px #271e2990); }
.home-rewards .premium-copy { flex:1; gap:3px; min-width:0; }
.home-rewards .premium-heading { display:block; font-size:19px; line-height:1.05; text-align:center; color:#fff4de; }
.home-rewards .premium-badges { display:grid; grid-template-columns:.85fr 1.15fr; align-items:stretch; gap:4px; }
.home-rewards #premium-status,.home-rewards .premium-special { display:flex; align-items:center; justify-content:center; min-width:0; min-height:26px; padding:2px 4px; border-radius:9px; font:900 10px/1.05 Arial,sans-serif; text-align:center; letter-spacing:0; }
.home-rewards #premium-status { white-space:nowrap; background:linear-gradient(#ffe799,#efbc44); border:1px solid #ffe8a8; color:#382717; }
.home-rewards .premium-special { background:linear-gradient(#b064f0,#8232cc); border:1px solid #ce92fc; color:#fff; }
@container(max-width:420px) {
  .home-rewards .premium-button { padding:6px; gap:5px; }
  .home-rewards .premium-button>svg { width:36px; height:40px; }
  .home-rewards .premium-heading { font-size:18px; }
}
@container(max-width:360px) {
  .home-rewards .premium-button { padding:5px; gap:4px; }
  .home-rewards .premium-button>svg { width:30px; height:36px; }
  .home-rewards .premium-heading { font-size:16px; }
  .home-rewards #premium-status,.home-rewards .premium-special { font-size:9px; padding:2px; min-height:24px; }
}
.premium-compact { padding:12px; }
.premium-tabs { margin:0 0 16px; }
.premium-tabs button { min-height:44px; font-weight:800; }
.shop-preview-note { margin:0 0 14px; color:#70775e; font-size:11px; text-align:center; }
.shop-section-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:16px 0 10px; }
.shop-section-heading h3 { margin:0; font-size:18px; }
.shop-section-heading small { color:#72795e; }
.shop-section-heading .collection-views { display:flex; width:auto; margin:0; gap:4px; }
.shop-section-heading .collection-views button { min-height:36px; padding:6px 12px; font-size:11px; }
.shop-chest-starter { margin:16px 0; padding:16px; text-align:center; border:1px solid #c7a96c; border-radius:16px; background:radial-gradient(ellipse at top,#fff0b7,#e8d6ad); color:#5d4726; }
.shop-chest-starter>small { font-weight:bold; letter-spacing:.08em; font-size:10px; }
.shop-chest-starter-art { position:relative; width:180px; height:128px; margin:auto; }
.shop-chest-starter-art svg { width:100%; height:100%; }
.shop-chest-starter-art b { position:absolute; bottom:2px; right:8px; background:#5b4932; color:#fff0be; padding:5px 10px; border-radius:12px; font-size:24px; }
.shop-chest-starter h3 { margin:8px 0; }
.shop-chest-starter p { font-size:12px; line-height:1.5; }
.shop-chest-starter .shop-pack-buy { width:100%; margin-top:12px; }
.shop-chest-starter .shop-pack-buy small { display:block; font-size:10px; font-weight:normal; margin-top:4px; }
.shop-skin-grid,.shop-gold-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.shop-skin { min-width:0; padding:12px; border:1px solid #b2c19c; border-radius:14px; background:#e8eed9; }
.shop-skin.epic { background:#eee2f5; border-color:#b69bd3; }
.shop-rarity { text-transform:uppercase; letter-spacing:1px; font-size:10px; font-weight:800; color:#52764c; }
.shop-skin.epic .shop-rarity { color:#8653b0; }
.shop-skin img { display:block; width:100%; height:150px; object-fit:contain; }
.shop-skin h4,.shop-gold-grid h4 { margin:5px 0; font-size:15px; }
.shop-skin p { margin:5px 0 12px; min-height:28px; color:#667254; font-size:11px; line-height:1.35; }
.shop-skin .start-button { width:100%; min-height:40px; font-size:14px; padding:8px; }
.shop-gold-grid article { padding:12px; text-align:center; border:1px solid #d5c28f; border-radius:13px; background:#f5ebd0; }
.shop-gold-grid svg { width:40px; height:40px; }
.shop-gold-grid button { width:100%; margin-top:8px; }
.shop-preview-status { margin:16px 0 0; padding:10px; border-radius:9px; background:#e5ead5; font-size:11px; line-height:1.4; text-align:center; }
@container(max-width:360px) { .shop-skin { padding:9px; }.shop-skin img { height:125px; }.shop-skin h4 { font-size:13px; } }

/* Bring the original collection proposal into the real Premium modal. */
.game-dialog .shop-preview-note { font-size:10px; letter-spacing:.4px; margin:0 0 12px; }
.shop-collection-banner { position:relative; overflow:hidden; border:1px solid #d0b574; border-radius:16px; padding:16px; background:radial-gradient(ellipse at 80% 15%,#806096,#3c304f 85%); }
.shop-collection-banner small { color:#f6d691; font-size:9px; font-weight:800; letter-spacing:1.5px; }
.game-dialog .shop-collection-banner h3 { color:#fff1cf; font-size:21px; margin:7px 32px 5px 0; }
.game-dialog .shop-collection-banner p { color:#e5d9e9; font-size:12px; margin:0; }
.shop-collection-banner>span { position:absolute; right:15px; top:19px; color:#ffe099; font-size:30px; }
.shop-skin { overflow:hidden; padding:0; border-color:#a5c1a8; background:linear-gradient(#edf3e5,#dce8d3); box-shadow:0 3px 0 #667d5526; }
.shop-skin.epic { background:linear-gradient(#f5eafa,#e4d5ee); border-color:#b59acb; }
.shop-rarity { display:inline-block; margin:10px 10px 0; padding:4px 7px; background:#3d6956; color:#f0ffe8; border-radius:5px; font-size:9px; }
.shop-skin.epic .shop-rarity { background:#77519c; color:#fff1ff; }
.shop-portrait { position:relative; height:155px; margin:2px 0; background:radial-gradient(ellipse at 50% 60%,var(--shop-glow),transparent 67%); }
.shop-portrait:after { content:''; position:absolute; bottom:8px; left:25%; width:50%; height:9px; background:#30433416; border-radius:50%; }
.shop-skin .shop-portrait img { position:relative; z-index:1; width:100%; height:100%; object-fit:contain; transform:scale(1.12); }
.shop-skin-copy { padding:2px 11px 12px; }
.game-dialog .shop-skin-copy h4 { font-size:15px; margin:5px 0; }
.game-dialog .shop-skin-copy p { font-size:11px; margin:5px 0 10px; min-height:28px; }
.game-dialog .shop-inclusion-note { font-size:11px; line-height:1.4; color:#68755d; margin:13px 2px; }
.shop-gold-grid article { background:radial-gradient(ellipse at top,#fff3c4,#eee0b9); border-color:#cfb573; }
.shop-coins { height:45px; display:flex; justify-content:center; align-items:end; }
.shop-coins svg { width:33px; height:33px; margin:0 -5px; filter:drop-shadow(0 2px 0 #ae7e3b44); }
.shop-coins svg:nth-child(2) { width:42px; height:42px; z-index:1; align-self:start; }
.shop-gold-grid .start-button { min-height:42px; font-size:14px; padding:8px; }
.shop-support { display:grid; grid-template-columns:minmax(0,1fr) 86px; align-items:center; gap:12px; padding:15px; margin-top:20px; background:#eee6d6; border:1px solid #cdbb99; border-radius:14px; }
.shop-support>div { flex:1; min-width:0; }
.shop-support small { font-size:9px; letter-spacing:.7px; color:#68705d; }
.game-dialog .shop-support h3 { font-size:17px; margin:5px 0; }
.game-dialog .shop-support p { font-size:11px; line-height:1.4; margin:0; color:#65705b; }
.game-dialog .shop-support button { display:block; width:86px; min-width:0; min-height:50px; padding:8px; }
.game-dialog .shop-support button small { display:block; margin-top:3px; }
.shop-coming-soon { margin-top:18px; padding:16px 12px; border:1px dashed #b9aa7e; border-radius:12px; background:#f4ecd7; text-align:center; }
.game-dialog .shop-coming-soon h3 { margin:0 0 5px; font-size:16px; color:#395843; }
.game-dialog .shop-coming-soon p { margin:0; font-size:12px; color:#70775e; }
.shop-catalog { font-family:'Segoe UI',system-ui,sans-serif; }
.game-dialog .shop-catalog h3,.game-dialog .shop-catalog h4 { font-family:'Bahnschrift','Trebuchet MS',system-ui,sans-serif; font-weight:800; letter-spacing:-.35px; }
.game-dialog .shop-catalog button { font-family:'Bahnschrift','Trebuchet MS',system-ui,sans-serif; font-weight:700; }
.shop-catalog .shop-rarity { letter-spacing:1.4px; }
.premium-view-heading { margin:0 0 10px; }
.premium-view-heading>small { font-size:9px; font-weight:800; letter-spacing:1.2px; }
.premium-benefit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:0 0 16px; }
.premium-benefit-grid>div { display:block; min-width:0; border:1px solid #d3c8aa; border-radius:13px; padding:12px; background:linear-gradient(145deg,#fffaf0,#f0e8d4); }
.premium-benefit-grid svg { display:block; width:30px; height:30px; margin-bottom:8px; }
.premium-benefit-grid b { display:block; font-size:14px; }
.premium-benefit-grid small { font-size:11px; line-height:1.4; font-weight:400; }
.game-dialog #toggle-premium { border-color:#bd9346; background:linear-gradient(#ffe69a,#e8bc55); color:#493a25; box-shadow:inset 0 2px #fff3bf,0 2px #927039; }
.shop-duo-pack { border:1px solid #b2a0c3; border-radius:15px; overflow:hidden; background:linear-gradient(135deg,#ebe0f1,#f8f0df); }
.shop-pack-list{display:grid;gap:12px}
.shop-pack-label { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; padding:10px 12px; background:#4e3c5e; color:#ffe5ab; font-size:9px; font-weight:800; letter-spacing:1px; }
.shop-pack-label span { color:#ece1f2; letter-spacing:.3px; font-weight:600; }
.shop-pack-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:8px; padding:8px 12px; }
.shop-pack-art { display:flex; min-width:0; height:125px; background:radial-gradient(ellipse,#fff8dd,transparent 70%); }
.shop-pack-art>div { position:relative; width:50%; }
.shop-pack-art img { width:100%; height:100%; object-fit:contain; transform:scale(1.18); }
.shop-pack-art .shop-particle { width:6px; height:8px; }
.game-dialog .shop-pack-copy h4 { font-size:20px; margin:0 0 7px; color:#47334f; }
.game-dialog .shop-pack-copy p { font-size:12px; line-height:1.5; margin:0 0 8px; color:#4d4551; }
.shop-pack-copy small { display:block; font-size:10px; color:#75657b; line-height:1.4; }
.game-dialog .shop-pack-buy { display:flex; justify-content:space-between; align-items:center; gap:8px; width:calc(100% - 24px); min-height:44px; margin:0 12px 12px; padding:9px 12px; background:linear-gradient(#75518f,#563568); border:1px solid #9367b1; border-radius:10px; color:#fff6df; font-size:13px; box-shadow:0 2px #3f294b; }
.game-dialog .shop-pack-buy strong { color:#fff6df; font-size:19px; }
.shop-gold-name { display:block; margin-bottom:10px; color:#836434; font-size:10px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; }
.game-dialog .shop-gold-grid h4 { font-size:25px; margin:9px 0; color:#5d4726; font-family:'Bahnschrift','Trebuchet MS',sans-serif; }
.shop-gold-grid h4 small { font-size:12px; font-weight:500; }
@container(max-width:360px) { .shop-pack-body { padding:8px; gap:5px; }.shop-pack-art { height:108px; }.game-dialog .shop-pack-copy h4 { font-size:18px; }.premium-benefit-grid>div { padding:10px; } }
.shop-premium-collection { border:1px solid #d7b970; border-radius:18px; padding:15px; background:radial-gradient(ellipse at 50% 60%,#735883,#3c2e50 90%); box-shadow:0 3px 0 #8a6d4026,inset 0 1px #ffffff19; overflow:hidden; }
.shop-premium-collection+.shop-premium-collection{margin-top:16px}
.shop-ember-offer{background:radial-gradient(ellipse at 50% 55%,#8a593d,#3f2c2b 90%);border-color:#e3b36d}
.shop-ember-offer .shop-champions{grid-template-columns:minmax(0,190px);justify-content:center;margin:8px 0 12px}
.shop-ember-offer .shop-champion-art{height:190px}
.shop-ember-offer .shop-champion>small{font-size:12px;min-height:0}
.shop-full-collection{background:radial-gradient(ellipse at 50% 55%,#6c5989,#322844 90%)}
.shop-premium-eyebrow { display:flex; justify-content:space-between; align-items:center; color:#ffe5a3; font:800 10px/1.2 'Bahnschrift','Trebuchet MS',sans-serif; letter-spacing:1.1px; }
.shop-premium-eyebrow>span { font-size:23px; }
.game-dialog .shop-premium-collection h3 { color:#fff1d2; font-size:24px; margin:8px 0 5px; }
.game-dialog .shop-premium-collection>p { color:#e9deed; font-size:12px; margin:0; }
.shop-champions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:12px -7px 16px; }
.shop-champion { min-width:0; text-align:center; }
.shop-champion-art { position:relative; height:126px; background:radial-gradient(ellipse at center,#f0d49818,transparent 70%); }
.shop-champion-art img { width:100%; height:100%; object-fit:contain; transform:scale(1.08); }
.game-dialog .shop-champion>small { display:block; margin:5px 2px 0; min-height:24px; font-size:10px; line-height:1.2; color:#fff0dc; }
.shop-premium-perks { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; padding:11px 0; border-top:1px solid #f8dfa62e; color:#fff1cc; font-size:10px; }
.game-dialog .shop-premium-buy { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:54px; padding:10px 12px; border:1px solid #fff1ba; border-radius:11px; background:linear-gradient(#ffe99d,#e9bc4e); color:#493a25; box-shadow:0 3px 0 #8e662b; text-align:left; font-size:17px; }
.game-dialog .shop-premium-buy small { display:block; margin-top:3px; color:#64502e; font:10px/1.2 'Segoe UI',sans-serif; }
.game-dialog .shop-premium-buy strong { font-size:24px; color:#493a25; }
.shop-particles { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:2; }
.shop-particle { position:absolute; left:var(--particle-left); top:80%; width:9px; height:11px; opacity:0; animation:shop-particle-rise 4s var(--particle-delay) linear infinite; }
.shop-particle svg { display:block; width:100%; height:100%; fill:var(--particle-color); filter:drop-shadow(0 0 3px var(--particle-glow)); animation:shop-particle-turn 2.3s var(--particle-delay) ease-in-out infinite alternate; }
.shop-champion .shop-particle { width:7px; height:9px; }
@keyframes shop-particle-rise { 0%{opacity:0;transform:translate(0,0) scale(.6)} 18%{opacity:.95} 70%{opacity:.8} 100%{opacity:0;transform:translate(7px,-92px) scale(1)} }
@keyframes shop-particle-turn { from{transform:rotate(-22deg)} to{transform:rotate(30deg)} }
@media(prefers-reduced-motion:reduce) { .shop-particle { animation:none; top:calc(25% + var(--particle-index)*11%); opacity:.8; }.shop-particle svg { animation:none; } }
@container(max-width:360px) { .shop-premium-collection { padding:12px; }.game-dialog .shop-premium-collection h3 { font-size:21px; }.shop-champion-art { height:106px; }.game-dialog .shop-champion>small { font-size:9px; }.shop-premium-perks { font-size:9px; } }
@container(max-width:360px) { .shop-skin { padding:0; }.shop-portrait { height:135px; }.shop-skin-copy { padding:2px 8px 10px; }.game-dialog .shop-collection-banner h3 { font-size:18px; } }
.chest-reel{--reel-card-width:166px;--reel-gap:10px;position:relative;overflow:hidden;height:258px;margin:24px 0;background:#0b2425;border-block:1px solid #ad956260;box-shadow:inset 0 0 28px #0005;isolation:isolate}
.chest-reel:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0b2425cc,transparent 18%,transparent 82%,#0b2425cc)}
/* Width and gap drive both the cards and landing point, including rotation. */
.reel-track{--reel-start:calc((var(--reel-card-width) + var(--reel-gap)) * var(--reel-start-index) * -1 - var(--reel-card-width) / 2);--reel-end:calc((var(--reel-card-width) + var(--reel-gap)) * var(--reel-winner-index) * -1 - var(--reel-card-width) / 2);position:relative;left:50%;display:flex;align-items:center;gap:var(--reel-gap);width:max-content;height:100%;transform:translateX(var(--reel-start));animation:chest-reel-slide var(--reel-time) cubic-bezier(.215,.61,.355,1) forwards}
.reel-card{--loot-color:#a2b5a4;box-sizing:border-box;flex:0 0 var(--reel-card-width);width:var(--reel-card-width);height:calc(100% - 36px);padding:12px 10px 16px;background:linear-gradient(145deg,#254b41,#193b37);border:1px solid #486559;border-bottom:5px solid var(--loot-color);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;color:#f7eed9}
.reel-card.rare{--loot-color:#65c5dd;background:linear-gradient(145deg,#24485a,#1d383e);border-color:#477184;border-bottom-color:var(--loot-color)}.reel-card.epic{--loot-color:#bb8af6;background:linear-gradient(145deg,#4a3c64,#2b2e47);border-color:#7d62a0;border-bottom-color:var(--loot-color)}.reel-card.legendary{--loot-color:#efc36b;background:linear-gradient(145deg,#605035,#373a30);border-color:#987c4d;border-bottom-color:var(--loot-color)}
.reel-card>small{align-self:flex-start;color:var(--loot-color);font:700 9px/1.2 Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}
.reel-card>div{flex:1;min-height:0;width:100%;display:flex;justify-content:center;align-items:center}.reel-card img{width:100%;height:100%;min-height:0;object-fit:contain;transform:scale(1.15)}.reel-card svg{width:90px;height:100px;max-width:100%}.game-dialog .reel-card b{flex:none;font-size:13px;line-height:1.25;text-align:center;color:#f7eed9}.reel-aura{font-size:84px;color:#c6a0ef}
.reel-pointer{position:absolute;z-index:2;top:0;bottom:0;left:50%;width:1px;background:linear-gradient(#ffdf8dbb,#ffdf8d19 30%,#ffdf8d19 70%,#ffdf8dbb);transform:translateX(-50%)}.reel-pointer:before,.reel-pointer:after{content:'';position:absolute;left:-7px;border-left:8px solid transparent;border-right:8px solid transparent;filter:drop-shadow(0 1px 4px #071b22)}.reel-pointer:before{top:0;border-top:13px solid #ffdf8d}.reel-pointer:after{bottom:0;border-bottom:13px solid #ffdf8d}
.trial-stats{text-align:center;line-height:1.6;padding:12px;background:#e0e8cf;border-radius:12px;color:#284d3e}
.game-dialog .chest-trial p{color:#f5edcf}.game-dialog .chest-trial .trial-stats{color:#284d3e}#test-chests{width:100%;margin-bottom:12px}#trial-back{width:100%;margin-top:8px}
@keyframes chest-reel-slide{from{transform:translateX(var(--reel-start))}to{transform:translateX(var(--reel-end))}}
@media(prefers-reduced-motion:reduce){.reel-track{animation:none;transform:translateX(var(--reel-end))}}

/* Opening and reveal use the screen; other menus keep their usual layout. */
dialog.game-dialog:has(.chest-presentation) .dialog-sheet{height:100%;background:#163b32}
dialog.game-dialog:has(.chest-presentation) .dialog-scroll{flex:1;padding:0;background:radial-gradient(ellipse at 50% 15%,#35583e,#14362f 70%)}
dialog.game-dialog:has(.chest-presentation) .dialog-heading{background:#fff6e1}
dialog.game-dialog:has(.chest-presentation) .dialog-footer{background:#fff6e1}
.chest-opening.chest-presentation{min-height:100%;display:flex;flex-direction:column;justify-content:center;padding:24px 0}
.chest-opening-heading{padding:0 20px 15px}
.game-dialog .chest-opening-heading .reward-eyebrow{color:#d8c891;font-size:10px;letter-spacing:2px}
.game-dialog .chest-opening-heading h3{color:#fff2d2;font-size:28px;line-height:1.15;margin:10px 0}
.game-dialog .chest-opening-heading p{color:#afc3b2;font-size:13px;margin:0}
.game-dialog .chest-presentation>.reward-micro{color:#afc3b2;margin:16px 18px 0;font-size:11px}
.chest-prize{min-height:100%;display:flex;flex-direction:column;justify-content:center;padding:20px}
.chest-prize .reward-reveal{--prize-color:#b7c79d;background:radial-gradient(ellipse at 50% 40%,#8ba36d26,transparent 70%);border:0;border-radius:0;padding:8px 0}
.chest-prize .reward-reveal.rare{--prize-color:#65c5dd;background:radial-gradient(ellipse at 50% 40%,#65c5dd28,transparent 70%)}
.chest-prize .reward-reveal.epic{--prize-color:#c3a0f3;background:radial-gradient(ellipse at 50% 40%,#bb8af630,transparent 70%)}
.chest-prize .reward-reveal.legendary{--prize-color:#efc36b;background:radial-gradient(ellipse at 50% 40%,#efc36b30,transparent 70%)}
.game-dialog .chest-prize .reward-eyebrow{color:var(--prize-color);font-size:11px;letter-spacing:1.6px}
.chest-prize .reveal-art{display:flex;align-items:center;justify-content:center;height:clamp(200px,31dvh,340px);margin:14px 0}
.chest-prize:has(.reward-ability) .reveal-art{height:clamp(145px,23dvh,230px);margin:8px 0}
.chest-prize .reveal-art img{width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;transform:none}
.chest-prize .reveal-art>svg{width:clamp(130px,40vw,200px);height:100%}
.chest-prize .reveal-art>.effect-sample{display:grid!important;place-items:center;width:min(64vw,240px)!important;height:100%!important;max-height:240px;max-width:100%;border-radius:50%;background:radial-gradient(ellipse,#bb8af62e,transparent 70%)}
.chest-prize .effect-glyph{width:100%;height:100%;font-size:clamp(78px,25vw,128px);color:#e4ccff}
.game-dialog .chest-prize .reward-reveal h3{color:#fff2d2;font-size:30px;line-height:1.1;margin:10px 0}
.game-dialog .chest-prize .reward-reveal p{color:#bdcdbd;font-size:14px;line-height:1.45;max-width:420px;margin:0 auto}
.game-dialog .chest-prize .reward-ready{font-size:12px;margin-top:10px;color:#cbdcae}
.reward-ability{width:100%;max-width:420px;margin:14px auto 0;padding:14px 16px;box-sizing:border-box;border:1px solid #bb9bdf70;border-radius:14px;background:#101f2dd9;text-align:left}
.reward-ability>span{display:block;font:800 10px/1.2 Arial,sans-serif;letter-spacing:1.3px;color:#c4a1ef}
.game-dialog .reward-ability h4{font:800 18px/1.2 Arial,sans-serif;color:#fff0d5;margin:6px 0}
.game-dialog .reward-ability p{font:14px/1.5 Arial,sans-serif;color:#edf1e3;margin:0;overflow-wrap:anywhere}
.game-dialog .reward-ability small{display:block;font:12px/1.4 Arial,sans-serif;color:#b6c7c6;margin-top:6px}
.game-dialog .chest-prize .reward-totals b{color:#fff0c6}
.chest-prize .reward-totals{padding:22px 0 0;gap:10px 20px}
.chest-prize .reward-totals>span{font-size:15px}
.chest-prize .trial-stats{font-size:12px;padding:8px;margin-top:14px}
.chest-prize .fragment-unlock{margin-top:12px;flex-shrink:0}
.reward-character{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0}
.reward-character>img{position:relative;z-index:1;display:block;object-fit:contain}
.reward-character .shop-particles{inset:0 18%;z-index:2}
.reward-character .shop-particle{width:12px;height:15px}
.reward-character .shop-particle svg{width:100%;height:100%;max-width:none}
.chest-prize .reward-character{max-width:340px}
.chest-prize .reward-character .shop-particle{width:15px;height:18px}
.reward-currency{max-width:100%;flex-shrink:0}
.reel-card .daily-reward-art{width:104px;height:112px;max-height:85%}
.reel-card .gold-pouch-art{width:140px;height:150px;max-height:100%}
.chest-prize .reveal-art>.daily-reward-art{width:clamp(145px,45vw,210px);height:85%}
.chest-prize .reveal-art>.gold-pouch-art{width:clamp(200px,66vw,300px);height:100%}
.chest-prize .reward-reveal:has(.gold-pouch-art){--prize-color:#efc36b;background:radial-gradient(ellipse at 50% 40%,#efc36b26,transparent 70%)}
@media(max-width:600px),(max-width:1000px) and (max-height:520px){
  dialog.game-dialog:has(.chest-presentation){left:0!important;top:0!important;width:100%!important;height:100dvh!important;margin:0;padding:0;max-width:none}
  dialog.game-dialog:has(.chest-presentation) .dialog-sheet{border:0;border-radius:0;box-shadow:none}
  dialog.game-dialog:has(.chest-presentation) .dialog-heading{padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left))}
  dialog.game-dialog:has(.chest-presentation) .dialog-heading h2{font-size:24px}
  dialog.game-dialog:has(.chest-presentation) .dialog-footer{padding:14px max(18px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
  .chest-reel{--reel-card-width:clamp(170px,48vw,220px);height:clamp(248px,38dvh,350px);margin:18px 0}
  .reel-card{height:calc(100% - 40px);padding:14px 10px 18px}
  .reel-card>small{font-size:10px}
  .game-dialog .reel-card b{font-size:14px}
  .chest-prize{padding:18px max(20px,env(safe-area-inset-right)) 18px max(20px,env(safe-area-inset-left))}
}
@media(max-width:600px) and (max-height:680px){
  .chest-opening.chest-presentation{padding:12px 0}
  .chest-reel{height:clamp(206px,34dvh,238px);margin:12px 0}
  .game-dialog .chest-opening-heading h3{font-size:25px}
  .chest-opening-heading{padding-bottom:0}
  .chest-prize{padding-block:12px}
  .chest-prize .reveal-art{height:clamp(150px,27dvh,195px);margin:6px 0}
  .game-dialog .chest-prize .reward-reveal h3{font-size:26px}
  .game-dialog .chest-prize .reward-reveal p{font-size:12px}
  .chest-prize .reward-totals{padding-top:14px}
}
@media(max-width:600px) and (max-height:600px){
  .chest-prize .reveal-art{height:135px}
  .chest-prize .reward-totals{padding-top:10px}
}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
  dialog.game-dialog:has(.chest-presentation) .dialog-heading{padding-top:max(7px,env(safe-area-inset-top));padding-bottom:7px}
  dialog.game-dialog:has(.chest-presentation) .dialog-heading h2{font-size:20px}
  dialog.game-dialog:has(.chest-presentation) .dialog-close{width:40px;height:40px;min-height:40px;flex-basis:40px}
  dialog.game-dialog:has(.chest-presentation) .dialog-footer{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  dialog.game-dialog:has(.chest-presentation) .start-button{min-height:44px;padding:9px 16px}
  .chest-opening.chest-presentation{padding:8px 0}
  .chest-opening-heading{padding-bottom:0}
  .game-dialog .chest-opening-heading h3{font-size:22px;margin:4px 0}
  .chest-opening-heading>p{display:none}
  .chest-reel{--reel-card-width:150px;height:180px;margin:10px 0}
  .reel-card{padding:8px;height:calc(100% - 22px)}
  .reel-card>small{font-size:8px}
  .game-dialog .reel-card b{font-size:12px}
  .game-dialog .chest-opening>.reward-micro{display:none}
  .chest-prize{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px 24px;align-items:center;padding:12px 28px}
  .chest-prize .reward-reveal{grid-row:1/4;display:grid;grid-template-columns:minmax(100px,45%) minmax(0,1fr);gap:6px 12px;align-items:center;text-align:left;padding:0}
  .chest-prize .reveal-art{grid-column:1;grid-row:1/5;height:180px;margin:0}
  .game-dialog .chest-prize .reward-eyebrow{grid-column:2;font-size:9px;align-self:end}
  .game-dialog .chest-prize .reward-reveal h3{font-size:24px;grid-column:2;margin:0}
  .game-dialog .chest-prize .reward-reveal p{font-size:11px;grid-column:2;margin:0}
  .chest-prize .reward-totals{padding:0}
  .game-dialog .chest-prize>.reward-micro{margin:0}
}
