/* Gacha (Mystery Egg) — web UI preview. Authored on the shared 941×1672 canvas and scaled by
   fitPvpScreen() like the PvP screen. Art: assets/gacha/ (Codex handoff 2026-09-28). */
#modal-layer:has(.gacha-screen){padding:0;background:rgba(5,19,32,.82);backdrop-filter:blur(2px)}
.gacha-screen{position:fixed;z-index:1;width:941px;height:1672px;transform-origin:top left;box-sizing:border-box;overflow:hidden;
  background:#9fd7ee url('assets/gacha/gacha_background.jpg') center/941px 1672px no-repeat;color:#0c3157;font-family:Rajdhani,Sarabun,sans-serif}
@media(min-width:520px){.gacha-screen{border-radius:29px;box-shadow:0 0 0 2px rgba(220,255,255,.72),0 22px 65px rgba(0,0,0,.58)}}
.gacha-screen button{font-family:inherit;cursor:pointer}
.gacha-screen img{user-select:none;-webkit-user-drag:none}

/* header */
.g-header{position:absolute;left:27px;right:27px;top:40px;height:96px;display:flex;align-items:center;gap:12px}
.g-back{flex:0 0 96px;height:96px;border:3px solid #a9faff;border-radius:50%;background:linear-gradient(145deg,rgba(17,126,160,.95),rgba(17,73,111,.97));box-shadow:0 6px 12px rgba(0,51,77,.3),inset 0 0 18px rgba(101,239,255,.5)}
.g-back img{width:48px;height:48px;display:block;margin:auto;filter:drop-shadow(0 2px 1px rgba(0,39,69,.42))}
.g-title{flex:1;min-width:0;height:78px;display:flex;align-items:center;gap:14px;padding:0 24px;border:2.5px solid #5df6ef;border-radius:40px;background:linear-gradient(100deg,rgba(0,113,119,.94),rgba(0,99,139,.9));color:#fff;box-shadow:inset 0 0 16px rgba(114,255,235,.3),0 5px 10px rgba(0,62,85,.22)}
.g-title .g-paw{font-size:40px}.g-title b{font-size:42px;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-wallet{flex:0 0 auto;height:62px;min-width:120px;padding:0 20px 0 8px;box-sizing:border-box;display:flex;align-items:center;gap:8px;border-radius:32px;background:rgba(10,58,98,.88);color:#fff;font-size:30px;font-weight:700;white-space:nowrap}
.g-wallet img{width:54px;height:54px;object-fit:contain}
.g-coin-ic,.g-shard-ic{width:1.3em;height:1.3em;object-fit:contain;vertical-align:middle}

/* banner plate + tabs */
.g-tabs{position:absolute;left:40px;right:40px;top:150px;display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}
.g-tabs button{flex:0 0 auto;height:56px;padding:0 26px;border:2px solid rgba(211,249,255,.9);border-radius:28px;background:rgba(36,72,113,.85);color:#cfe8f8;font-size:26px;font-weight:700}
.g-tabs button.active{background:linear-gradient(145deg,#0ebcc5,#087ca4);color:#fff;border-color:#82ffff}
.g-plate{position:absolute;left:50%;top:190px;transform:translateX(-50%);min-width:420px;padding:14px 60px 12px;box-sizing:border-box;text-align:center;border:3px solid #7ff3f0;border-radius:24px;
  background:linear-gradient(180deg,rgba(14,110,140,.95),rgba(8,72,110,.95));color:#fff;box-shadow:0 6px 14px rgba(0,50,80,.3),inset 0 0 16px rgba(120,255,240,.3)}
.g-tabs~.g-plate{top:222px}
.g-plate b{display:block;font-size:52px;line-height:1.1;text-shadow:0 2px 3px rgba(0,30,60,.4)}
.g-plate small{display:inline-block;margin-top:6px;padding:2px 26px;border-radius:18px;background:rgba(4,48,82,.85);font-size:26px;font-weight:700}
.g-plate-top{top:44px}
.g-preview-tag{position:absolute;right:30px;top:340px;padding:6px 16px;border-radius:16px;background:rgba(255,186,40,.92);color:#5a3300;font-size:22px;font-weight:700;box-shadow:0 3px 8px rgba(80,40,0,.25)}

/* stage */
.g-stage{position:absolute;left:0;right:0;top:360px;height:700px}
.g-pedestal{position:absolute;left:70px;bottom:0;width:800px;height:300px;object-fit:contain}
.g-feature{position:absolute;bottom:130px;width:430px;height:470px;padding:0;border:0;background:none}
.g-feature-0{left:40px}.g-feature-1{right:40px}
.g-feature-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(40,60,90,.35));animation:g-bob 3.4s ease-in-out infinite}
.g-feature-1 .g-feature-art{animation-delay:-1.7s}
.g-feature .g-badge{position:absolute;top:60px;left:0}.g-feature-1 .g-badge{left:auto;right:0}
/* Banner cover art (b.img, user 11-16): one picture fills the stage instead of pedestal + egg pair. */
.g-cover{position:absolute;left:20px;right:20px;top:0;bottom:0;width:calc(100% - 40px);height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 14px rgba(40,60,90,.3))}
@keyframes g-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* badges (text laid over textless art) */
.g-badge{position:relative;display:inline-grid;place-items:center;width:144px;height:144px;pointer-events:none}
.g-badge img{position:absolute;inset:0;width:100%;height:100%}
.g-badge b{position:relative;font-size:30px;font-weight:700;color:#fff;letter-spacing:.02em;text-shadow:0 2px 2px rgba(0,0,40,.55)}
.g-badge.rare b{margin-top:22px}
.g-badge.bonus b{font-size:24px;transform:rotate(-8deg);line-height:1;text-align:center;padding:0 18px}

/* bottom panel */
.g-panel{position:absolute;left:46px;right:46px;top:1060px;padding:22px;border:3px solid rgba(208,253,255,.95);border-radius:34px;background:linear-gradient(145deg,rgba(211,248,248,.86),rgba(169,223,237,.86));box-shadow:0 8px 20px rgba(0,63,86,.28),inset 0 0 30px rgba(255,255,255,.4)}
.g-pity{padding:16px 26px 20px;border-radius:24px;background:rgba(255,255,255,.55);text-align:center}
.g-pity p{margin:0 0 12px;font-size:34px;font-weight:700}
.g-bar{position:relative;height:44px;border-radius:22px;background:#0f4f78;overflow:hidden;box-shadow:inset 0 2px 4px rgba(0,0,0,.35)}
.g-bar i{position:absolute;inset:0 auto 0 0;border-radius:22px;background:linear-gradient(180deg,#63e3ff,#1590e0);box-shadow:inset 0 2px 3px rgba(255,255,255,.6)}
.g-bar span{position:relative;line-height:44px;color:#fff;font-size:28px;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.g-pulls{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px}
.g-pull{position:relative;height:170px;border:3px solid #fff;border-radius:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#0b2f54}
.g-pull-1{background:linear-gradient(160deg,#dcfbff,#8fdcf3);box-shadow:0 0 0 3px #6ee7ff,0 6px 12px rgba(0,63,86,.25)}
.g-pull-6{background:linear-gradient(160deg,#ffe38a,#ffb52e);box-shadow:0 0 0 3px #ffc84a,0 6px 12px rgba(120,60,0,.28);color:#4a2600}
.g-pull>b{font-size:52px;line-height:1}
.g-pull>span{display:flex;align-items:center;gap:8px;padding:4px 28px;border-radius:24px;background:rgba(10,58,98,.75);color:#fff;font-size:32px;font-weight:700}
.g-pull-6>span{background:rgba(110,60,0,.7)}
.g-pull:active{transform:translateY(2px)}
.g-bonus{position:absolute;right:-26px;top:-60px;width:132px;height:132px}
.g-links{position:absolute;left:46px;right:46px;top:1500px;display:grid;grid-template-columns:1fr 1fr;gap:22px}
.g-links button,.g-link-btn{height:96px;display:flex;align-items:center;gap:16px;padding:0 26px;border:3px solid rgba(215,255,255,.95);border-radius:28px;background:linear-gradient(110deg,rgba(219,255,244,.93),rgba(194,233,245,.92));color:#0c3157;font-size:32px;font-weight:700;box-shadow:0 5px 12px rgba(0,63,86,.22)}
.g-links b,.g-link-btn b{flex:1;text-align:left}.g-links em,.g-link-btn em{font-style:normal;font-size:44px;color:#2d5d80}
.g-links i,.g-link-btn i{width:52px;height:52px;border-radius:50%;background:#123f66;color:#fff;font:italic 700 32px/52px Georgia,serif;text-align:center}
.g-links .g-shard-ic{width:60px;height:60px}

/* opening */
.g-open{position:absolute;inset:0;z-index:10;background:url('assets/gacha/gacha_background.jpg') center/941px 1672px no-repeat}
.g-skip{position:absolute;right:30px;top:48px;z-index:5;height:70px;padding:0 30px;border:3px solid #a9faff;border-radius:36px;background:linear-gradient(145deg,rgba(17,126,160,.95),rgba(17,73,111,.97));color:#fff;font-size:32px;font-weight:700;box-shadow:0 5px 10px rgba(0,51,77,.3)}
.g-skip em{font-style:normal;margin-left:6px}
.g-open-stage{position:absolute;left:0;right:0;top:220px;height:900px}
.g-open-pedestal{position:absolute;left:70px;top:520px;width:800px;height:300px}
.g-egg-box{position:absolute;left:170px;top:100px;width:600px;height:600px}
.g-egg-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* closed-shell art sits ~13px/640 right of the split shell's centre; shift it so the swap doesn't jump */
/* (closed-shell -2% nudge removed: Codex re-centred gacha_egg_shared.png in v2) */
.g-egg-top,.g-egg-bottom,.g-pet-reveal{opacity:0}
.g-glow{position:absolute;left:50%;top:360px;width:900px;height:900px;margin:-450px 0 0 -450px;border-radius:50%;opacity:0;transition:opacity .6s,transform 1.2s;transform:scale(.6);pointer-events:none}
.tier-common .g-glow{background:radial-gradient(circle,rgba(255,255,255,.95) 0,rgba(120,210,255,.85) 22%,rgba(70,170,255,.4) 46%,transparent 68%)}
.tier-rare .g-glow{background:radial-gradient(circle,rgba(255,255,240,.98) 0,rgba(255,214,90,.85) 20%,rgba(255,140,200,.35) 42%,rgba(140,200,255,.18) 56%,transparent 70%)}
.tier-rare .g-glow::after{content:'';position:absolute;inset:8%;border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(255,236,150,.5) 0 6deg,transparent 6deg 20deg);mask:radial-gradient(circle,#000 20%,transparent 70%);-webkit-mask:radial-gradient(circle,#000 20%,transparent 70%);animation:g-spin 9s linear infinite}
.g-glow.on{opacity:1;transform:scale(1)}
@keyframes g-spin{to{transform:rotate(360deg)}}
.g-spark{position:absolute;width:200px;height:200px;opacity:0;pointer-events:none}
.g-spark-a{left:110px;top:120px}.g-spark-b{right:100px;top:260px}.g-spark-c{left:360px;top:0}
.g-flash{position:absolute;inset:-300px;background:radial-gradient(circle at 50% 42%,#fff 0,rgba(255,255,255,.9) 30%,transparent 70%);opacity:0;pointer-events:none}
.g-reveal-badges{position:absolute;left:120px;right:120px;top:40px;display:flex;justify-content:space-between;opacity:0;pointer-events:none}
.g-caption{position:absolute;left:60px;right:60px;top:1200px;min-height:230px;padding:34px 30px;box-sizing:border-box;text-align:center;border:3px solid rgba(208,253,255,.95);border-radius:34px;background:linear-gradient(145deg,rgba(211,248,248,.9),rgba(169,223,237,.9));box-shadow:0 8px 20px rgba(0,63,86,.28)}
.g-caption b{display:block;font-size:54px}.g-caption small{display:block;margin-top:8px;font-size:32px;color:#2d5d80}
.g-caption .g-view{margin-top:24px}

.g-open[data-phase="shake"] .g-egg-closed{animation:g-shake .55s ease-in-out infinite}
.g-open[data-phase="shake"] .g-spark{animation:g-twinkle 1.1s ease-in-out infinite}
.g-open[data-phase="glow"] .g-glow{opacity:1;transform:scale(1)}
.g-open[data-phase="glow"] .g-egg-closed{animation:g-shake .22s linear infinite;filter:brightness(1.25) drop-shadow(0 0 30px rgba(255,255,255,.9))}
.tier-rare[data-phase="glow"] .g-egg-closed{filter:brightness(1.25) drop-shadow(0 0 40px rgba(255,210,80,.95))}
.g-open[data-phase="glow"] .g-spark{animation:g-twinkle .7s ease-in-out infinite}
.g-open[data-phase="crack"] .g-glow,.g-open[data-phase="reveal"] .g-glow{opacity:1;transform:scale(1.1)}
.g-open[data-phase="crack"] .g-egg-closed,.g-open[data-phase="reveal"] .g-egg-closed{opacity:0}
.g-open[data-phase="crack"] .g-egg-top{opacity:1;animation:g-lid .7s cubic-bezier(.2,.9,.3,1) forwards}
.g-open[data-phase="crack"] .g-egg-bottom{opacity:1;animation:g-base .7s cubic-bezier(.2,.9,.3,1) forwards}
.g-open[data-phase="crack"] .g-flash{animation:g-flash .7s ease-out}
.g-open[data-phase="reveal"] .g-egg-top{opacity:0;transform:translateY(-220px) rotate(-12deg);transition:opacity .35s}
.g-open[data-phase="reveal"] .g-egg-bottom{opacity:0;transform:translateY(60px);transition:opacity .35s}
.g-open[data-phase="reveal"] .g-pet-reveal{opacity:1;animation:g-pop .6s cubic-bezier(.2,1.4,.4,1)}
.g-open[data-phase="reveal"] .g-reveal-badges{opacity:1;animation:g-pop .5s .2s both}
.g-open[data-phase="reveal"] .g-spark{animation:g-twinkle 1.4s ease-in-out infinite}
@keyframes g-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-5deg)}40%{transform:rotate(4deg)}60%{transform:rotate(-3deg)}80%{transform:rotate(2deg)}}
@keyframes g-twinkle{0%,100%{opacity:0;transform:scale(.6)}50%{opacity:1;transform:scale(1)}}
@keyframes g-lid{0%{transform:none}100%{transform:translateY(-220px) rotate(-12deg)}}
@keyframes g-base{0%{transform:none}100%{transform:translateY(60px)}}
@keyframes g-flash{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
@keyframes g-pop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}

/* shared buttons/cards */
.g-gold-btn{display:block;height:110px;padding:0 50px;border:4px solid #fff4b4;border-radius:56px;background:linear-gradient(#ffd76a,#ffac28);box-shadow:0 6px 12px rgba(144,76,0,.3),inset 0 3px 4px rgba(255,255,255,.75);color:#542c00;font-size:44px;font-weight:700}
.g-caption .g-gold-btn{margin-left:auto;margin-right:auto;width:80%}
.g-blue-btn{display:block;width:100%;height:110px;border:4px solid #d9fbff;border-radius:56px;background:linear-gradient(180deg,#34c3f0,#0a78c4);color:#fff;font-size:46px;font-weight:700;box-shadow:0 6px 14px rgba(0,60,110,.35),inset 0 3px 5px rgba(255,255,255,.5)}
.g-card{border:3px solid rgba(208,253,255,.95);border-radius:30px;background:linear-gradient(145deg,rgba(221,250,250,.9),rgba(178,228,240,.9));box-shadow:0 6px 16px rgba(0,63,86,.25),inset 0 0 26px rgba(255,255,255,.45)}
.g-stars{display:inline-flex;gap:6px}
.g-stars i{width:40px;height:40px;background:#a9c7d8;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.g-stars i.on{background:linear-gradient(180deg,#fff27a,#ffb300)}
.g-stars.big i{width:64px;height:64px}
.g-perk{display:flex;align-items:center;gap:16px;margin:16px auto 0;padding:12px 24px;border-radius:24px;background:rgba(40,160,210,.2);font-size:32px;text-align:left}
.g-perk span{flex:0 0 58px;height:58px;border-radius:50%;background:#123f66;display:grid;place-items:center;font-size:32px}
.g-perk span img{width:48px;height:48px}
.g-perk.sm{margin:8px 0 0;padding:6px 14px;font-size:24px}.g-perk.sm span{flex-basis:40px;height:40px;font-size:22px}.g-perk.sm span img{width:34px;height:34px}

/* result ×1 */
.g-result-stage{top:190px;height:900px}
.g-result-stage .g-glow{top:420px}
.g-result-art{position:absolute;left:170px;top:80px;width:600px;height:600px;object-fit:contain;animation:g-pop .5s cubic-bezier(.2,1.4,.4,1)}
.g-result-tier{position:absolute;left:90px;top:110px}
.g-result-new{position:absolute;right:90px;top:520px}
.g-result-card{position:absolute;left:60px;right:60px;top:1000px;padding:24px 30px;text-align:center}
.g-result-card h2{margin:0 0 10px;font-size:52px}
.g-up{margin-top:10px;font-size:34px;font-weight:700;color:#1a8a3a}.g-up.g-max{color:#8a5a00}
.g-result-card .g-perk{display:inline-flex}
.g-link-btn{position:absolute;left:100px;right:100px;top:1405px}
.g-back-gacha{position:absolute;left:120px;right:120px;top:1530px}

/* result ×6 */
.g-six{position:absolute;left:36px;right:36px;top:200px;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.g-six-card{position:relative;height:390px;padding:0;border:4px solid #d9fbff;border-radius:30px;background:linear-gradient(160deg,rgba(220,250,255,.95),rgba(150,215,240,.92));box-shadow:0 6px 14px rgba(0,63,86,.25);overflow:hidden;transition:transform .2s}
.g-six-card.tier-rare{border-color:#ffd24a;background:linear-gradient(160deg,rgba(255,248,210,.97),rgba(255,214,120,.9));box-shadow:0 0 22px rgba(255,200,60,.7)}
.g-six-card.hidden{opacity:0;transform:scale(.6)}
.g-six-card.pop{animation:g-pop .45s cubic-bezier(.2,1.4,.4,1)}
.g-six-art{position:absolute;left:50%;top:20px;width:290px;height:290px;margin-left:-145px;object-fit:contain}
.g-six-tier{position:absolute;left:-6px;top:-6px;width:120px;height:120px;z-index:2}.g-six-tier b{font-size:24px}
.g-six-card .g-new{position:absolute;right:-6px;top:-6px;width:124px;height:124px;z-index:2}.g-six-card .g-new b{font-size:26px}
.g-chip{position:absolute;right:14px;top:190px;z-index:2;display:flex;align-items:center;gap:6px;padding:4px 16px;border-radius:24px;background:rgba(10,58,98,.88);color:#fff;font-size:32px;font-weight:700}
.g-chip.up{color:#8dffa0}
.g-max-tag{position:absolute;left:18px;top:24px;z-index:2;padding:2px 14px;border-radius:12px;background:#4a3000;color:#ffd24a;font-size:28px;font-weight:700}
.g-six-card .g-stars{position:absolute;left:0;right:0;bottom:62px;justify-content:center;padding:4px 0;background:rgba(255,255,255,.55)}
.g-six-card .g-stars i{width:36px;height:36px}
.g-six-name{position:absolute;left:0;right:0;bottom:16px;font-size:32px;text-align:center}
.g-shard-total{position:absolute;left:60px;right:60px;top:1428px;height:90px;display:flex;align-items:center;justify-content:center;gap:18px;font-size:36px;font-weight:700}
.g-shard-total .g-shard-ic{width:66px;height:66px}.g-shard-total b{font-size:58px;color:#e59a00;text-shadow:0 2px 0 #fff}
.g-six~.g-back-gacha{top:1540px}
.g-skip-grid{top:52px}

/* popups */
.g-popup-layer{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:rgba(4,35,60,.62);backdrop-filter:blur(3px)}
.g-popup{position:relative;width:840px;max-height:1540px;box-sizing:border-box;padding:150px 40px 40px;border:4px solid #bff7ff;border-radius:44px;background:linear-gradient(160deg,rgba(225,252,255,.97),rgba(170,225,245,.97));box-shadow:0 22px 60px rgba(0,25,50,.5);display:flex;flex-direction:column}
.g-x{position:absolute;z-index:5;right:-2px;top:-2px;width:86px;height:86px;border:3px solid #d9fbff;border-radius:50%;background:linear-gradient(145deg,#1897c9,#0a5f92);color:#fff;font-size:44px;font-weight:700}
.g-plate-pop{top:30px}
.g-pop-scroll{flex:1;min-height:0;overflow-y:auto;padding-right:6px;margin-bottom:28px}
.g-rate-head{display:flex;justify-content:space-between;align-items:center;margin:14px 0 10px;padding:12px 24px;border-radius:26px;font-size:34px}
.g-rate-head.rare{background:linear-gradient(90deg,#ffe38a,#ffc443);box-shadow:0 0 0 3px #ffd24a}
.g-rate-head.common{background:linear-gradient(90deg,#d8f6ff,#9fdcf5);box-shadow:0 0 0 3px #7ad7f5}
.g-rate-head span{padding:4px 22px;border-radius:22px;background:rgba(80,50,0,.75);color:#fff;font-size:28px;font-weight:700}
.g-rate-head.common span{background:rgba(10,58,98,.85)}
.g-rate-row{display:flex;align-items:center;gap:22px;margin-bottom:12px;padding:12px 18px;border-radius:24px;background:rgba(255,255,255,.6)}
.g-rate-row img{width:150px;height:150px;object-fit:contain;border-radius:20px;background:rgba(200,235,250,.6)}
.g-rate-row b{flex:1;font-size:36px}
.g-rate-row span{padding:10px 24px;border-radius:18px;background:rgba(170,225,245,.8);font-size:38px;font-weight:700}
.g-rate-row.small img{width:96px;height:96px}.g-rate-row.small b{font-size:30px}.g-rate-row.small span{font-size:30px}
.g-rate-commons{margin-bottom:14px;border-radius:24px;background:rgba(255,255,255,.6);padding:6px 12px}
.g-rate-commons summary{display:flex;align-items:center;gap:20px;padding:10px;list-style:none;cursor:pointer}
.g-rate-commons summary::-webkit-details-marker{display:none}
.g-rate-commons summary img{width:100px;height:100px;object-fit:contain}
.g-rate-commons summary span{flex:1}.g-rate-commons summary b{display:block;font-size:34px}.g-rate-commons summary small{font-size:26px;color:#2d5d80}
.g-rate-commons summary em{font-style:normal;font-size:48px;transition:transform .2s}
.g-rate-commons[open] summary em{transform:rotate(180deg)}
.g-info-card{display:flex;align-items:center;gap:24px;margin-bottom:14px;padding:22px 26px;border-radius:26px;background:rgba(255,255,255,.62)}
.g-info-card>.g-shard-ic{width:110px;height:110px}
.g-info-card b{display:block;font-size:36px}.g-info-card p{margin:4px 0;font-size:28px;color:#16507a}.g-info-card small{font-size:22px;color:#4d7896}
.g-shield{flex:0 0 100px;height:110px;display:grid;place-items:center;clip-path:polygon(50% 0,100% 16%,92% 70%,50% 100%,8% 70%,0 16%);background:linear-gradient(180deg,#48a8ee,#1662b8);color:#ffd84a;font-size:56px}
.g-overflow{display:flex;gap:14px;margin-top:10px}
.g-overflow span{display:flex;align-items:center;gap:8px;padding:6px 18px;border-radius:22px;color:#fff;font-size:26px;font-weight:700}
.g-overflow .common{background:#1b5c8e}.g-overflow .rare{background:linear-gradient(90deg,#d89a10,#f2b92a)}

.g-detail{padding-top:40px;text-align:center}
.g-detail-art{position:relative;height:560px}
.g-detail-art .g-glow{top:280px;width:700px;height:700px;margin:-350px 0 0 -350px}
.g-detail-art>img{position:relative;width:520px;height:520px;object-fit:contain}
.g-detail-tier{position:absolute;left:10px;top:10px}
.g-detail h2{margin:0 0 10px;font-size:54px}
.g-detail .g-perk{display:inline-flex}
.g-detail .g-stars,.g-detail .g-perk{align-self:center}

/* Crystal popup + rates layout (gacha-rates-popup-v1). SVG icons are stand-ins for Codex raster (#7419). */
.g-ic{flex:0 0 auto}
.g-popup{width:850px;border:10px solid rgba(214,252,255,.96);border-radius:50px;padding:170px 34px 34px;
  background:linear-gradient(170deg,rgba(232,253,255,.97),rgba(178,232,248,.96) 60%,rgba(160,222,244,.96));
  box-shadow:0 0 0 4px #53d3ee,0 0 0 9px rgba(170,245,255,.55),0 0 42px rgba(110,235,255,.95),inset 0 0 0 3px rgba(90,200,235,.6),inset 0 0 40px rgba(255,255,255,.7)}
.g-corner-leaf{position:absolute;top:70px;width:110px;height:110px;opacity:.75;pointer-events:none;background:inherit}
.g-corner-leaf,.g-card-leaf,.g-mini-leaf{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M10 58C24 44 36 28 52 8' stroke='%2350d6cc' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M22 46C8 45 3 33 5 23c11 2 18 11 17 23z' fill='%2345c8c0'/%3E%3Cpath d='M33 33C21 27 20 15 25 6c9 6 12 17 8 27z' fill='%2366dcd2'/%3E%3Cpath d='M36 34c10-9 21-8 26-1-8 9-19 9-26 1z' fill='%2337b0aa'/%3E%3C/svg%3E") center/contain no-repeat}
.g-corner-leaf.l{left:4px;top:60px;transform:scaleX(-1) rotate(-20deg)}.g-corner-leaf.r{right:4px;top:120px;width:80px;height:80px;transform:rotate(-20deg)}
.g-popup .g-plate-pop{top:22px;padding:18px 110px 34px;z-index:2}
.g-popup .g-plate-pop b{display:flex;align-items:center;justify-content:center;gap:14px;font-size:62px}
.g-popup .g-plate-pop b .g-paw-ic{width:62px;height:62px;fill:#fff}
.g-popup .g-plate-pop small{padding:6px 84px;bottom:-30px;font-size:34px;background:linear-gradient(180deg,#0e5d8c,#083e66)}
.g-popup .g-plate-pop small .g-leaf{width:38px;height:38px;margin-top:-19px;filter:brightness(1.4)}.g-plate-pop small .g-leaf.l{left:22px}.g-plate-pop small .g-leaf.r{right:22px}
.g-rates{padding:8px 16px 8px 4px;scrollbar-width:thin;scrollbar-color:#2aa8e0 rgba(255,255,255,.5)}
.g-rates::-webkit-scrollbar{width:12px}.g-rates::-webkit-scrollbar-track{background:rgba(255,255,255,.55);border-radius:8px}.g-rates::-webkit-scrollbar-thumb{background:linear-gradient(#4cc3f0,#1a8ad0);border-radius:8px}
.g-rate-group{margin-bottom:18px;padding:12px;border:3px solid rgba(255,255,255,.9);border-radius:30px;background:rgba(255,255,255,.35);box-shadow:inset 0 0 18px rgba(255,255,255,.6)}
.g-rate-head{margin:0 0 12px;padding:12px 16px 12px 22px;border-radius:30px;font-size:38px}
.g-rate-head b{display:flex;align-items:center;gap:14px}
.g-rate-head.rare{background:linear-gradient(180deg,#fff0a8,#ffcd4a);box-shadow:0 0 0 3px #f1b52a,inset 0 2px 3px rgba(255,255,255,.8);color:#4a2c00}
.g-rate-head.common{background:linear-gradient(180deg,#e6fbff,#aee6f8);box-shadow:0 0 0 3px #52c6ef,inset 0 2px 3px rgba(255,255,255,.8);color:#0c3157}
.g-rate-head .g-ic-crown{width:58px;height:48px}.g-rate-head .g-paw-ic{width:50px;height:50px;fill:#123f66}
.g-mini-leaf{display:inline-block;width:40px;height:40px}
.g-rate-head.rare .g-mini-leaf{filter:hue-rotate(-120deg) saturate(1.6) brightness(.8)}
.g-rate-head span{padding:6px 26px;border-radius:26px;font-size:32px}
.g-rate-head.rare span{background:linear-gradient(180deg,#a8741a,#7a5008)}
.g-rate-head.common span{background:linear-gradient(180deg,#1d5f8e,#0d4068)}
.g-rate-row{gap:22px;padding:12px 16px;border:2px solid rgba(255,255,255,.95);border-radius:26px;background:linear-gradient(90deg,rgba(235,250,255,.9),rgba(205,238,250,.85))}
.g-rate-row:last-child{margin-bottom:0}
.g-thumb{flex:0 0 170px;height:170px;border-radius:22px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#e8f4ff,#9fc6ea);box-shadow:0 0 0 3px #fff,0 3px 8px rgba(0,50,90,.2)}
.g-thumb.rare{background:radial-gradient(circle at 50% 40%,#fff6e0,#f4c78a)}
.g-thumb{position:relative}.g-rate-row .g-thumb img{position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(1.3);padding:0;object-fit:contain;object-position:center;border-radius:0!important;background:none!important}
.g-rate-row>b{flex:1;font-size:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.g-pct{padding:12px 22px!important;border-radius:20px!important;background:rgba(190,232,250,.9)!important;font-size:46px!important;color:#0c3157}
.g-rate-row.small .g-thumb{flex-basis:110px;height:110px}.g-rate-row.small>b{font-size:32px}.g-rate-row.small .g-pct{font-size:32px!important;padding:8px 20px!important}
.g-rate-commons{margin:0;padding:6px 12px;border:2px solid rgba(255,255,255,.95);background:linear-gradient(90deg,rgba(235,250,255,.9),rgba(205,238,250,.85))}
.g-rate-commons summary{gap:26px}
.g-rate-commons summary .g-ic-egg{width:90px;height:112px}
.g-rate-commons summary b{font-size:38px}.g-rate-commons summary small{font-size:28px}
.g-ic-chev{width:56px;height:56px;transition:transform .2s}
.g-rate-commons[open] .g-ic-chev{transform:rotate(180deg)}
.g-rate-commons[open] summary{margin-bottom:10px}
.g-info-card{position:relative;overflow:hidden;gap:30px;padding:26px 30px;border:3px solid rgba(255,255,255,.95);border-radius:30px;background:linear-gradient(90deg,rgba(235,250,255,.92),rgba(205,238,250,.88));box-shadow:inset 0 0 18px rgba(255,255,255,.6)}
.g-info-card>div{flex:1;position:relative;z-index:1}
.g-info-card .g-ic-shield{width:130px;height:150px}
.g-info-card>.g-shard-ic{width:130px;height:130px;transform:rotate(-25deg)}
.g-info-card b{font-size:42px}.g-info-card p{font-size:31px}.g-info-card small{font-size:25px}
.g-card-leaf{position:absolute;right:20px;top:50%;width:110px;height:110px;margin-top:-55px;opacity:.55;pointer-events:none}
.g-overflow span{padding:8px 26px;font-size:30px;border-radius:26px}
.g-overflow .common{background:linear-gradient(180deg,#2270a8,#0f4a78)}.g-overflow .rare{background:linear-gradient(180deg,#e6ad2a,#b77a08);box-shadow:0 0 12px rgba(255,200,60,.7)}
.g-overflow .g-shard-ic{width:44px;height:44px}
.g-popup .g-blue-btn{position:relative;height:120px;font-size:52px;border:5px solid #c9f7ff;background:linear-gradient(180deg,#48d0f5,#0b7cc6);box-shadow:0 0 0 3px #1a9ad6,0 0 22px rgba(90,210,255,.9),inset 0 4px 6px rgba(255,255,255,.55)}
.g-popup .g-blue-btn .g-leaf{width:60px;height:60px;margin-top:-30px;filter:brightness(1.6) saturate(.6)}.g-popup .g-blue-btn .g-leaf.l{left:180px}.g-popup .g-blue-btn .g-leaf.r{right:180px}
.g-x{width:92px;height:92px;border:5px solid #e6fbff;background:linear-gradient(180deg,#27a8de,#0c5f98);box-shadow:0 0 14px rgba(90,210,255,.8);font-size:48px}

/* Banner tabs (gacha-main-v3-tabs): only rendered when >1 banner is live */
.g-tabs-wrap{position:absolute;left:45px;right:16px;top:170px;height:84px;display:flex;align-items:center}
.g-tabs{position:static;flex:1;min-width:0;height:84px;display:flex;align-items:center;gap:14px;padding:0 4px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
.g-tabs::-webkit-scrollbar{display:none}
.g-tabs button{flex:0 0 auto;height:76px;min-width:240px;padding:0 26px;display:flex;align-items:center;justify-content:center;gap:14px;scroll-snap-align:start;
  border:3px solid rgba(190,240,255,.75);border-radius:38px;background:linear-gradient(180deg,rgba(28,92,128,.92),rgba(16,62,98,.94));color:#e6f6ff;font-size:36px;font-weight:700;box-shadow:0 4px 10px rgba(0,40,70,.3),inset 0 0 14px rgba(120,220,255,.25)}
.g-tabs button b{white-space:nowrap}
.g-tabs button svg{width:44px;height:44px;fill:#cfe8f8}
.g-tabs button.active{border-color:#aefcff;background:linear-gradient(180deg,#1cc2cf,#0a86ab);color:#fff;box-shadow:0 0 0 3px rgba(20,120,150,.55),0 0 20px rgba(120,255,245,.75),inset 0 0 16px rgba(200,255,255,.45)}
.g-tab-leaf{width:40px;height:40px;background:inherit}
.g-tab-leaf{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M10 58C24 44 36 28 52 8' stroke='%23d8fff9' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M22 46C8 45 3 33 5 23c11 2 18 11 17 23z' fill='%23c6fff6'/%3E%3Cpath d='M33 33C21 27 20 15 25 6c9 6 12 17 8 27z' fill='%23e6fffb'/%3E%3Cpath d='M36 34c10-9 21-8 26-1-8 9-19 9-26 1z' fill='%23b0f5ec'/%3E%3C/svg%3E") center/contain no-repeat}
.g-tab-leaf.r{transform:scaleX(-1)}
.g-tabs button:not(.active) .g-tab-leaf{opacity:.6}
.g-tabs-more{flex:0 0 40px;height:76px;padding:0;border:0;background:none;color:#fff;font-size:64px;font-weight:700;line-height:1;text-shadow:0 2px 4px rgba(0,40,70,.6)}
.g-tabs-more[hidden]{visibility:hidden;display:block}
.has-tabs .g-plate:not(.g-plate-top):not(.g-plate-pop){top:282px}
.has-tabs .g-stage:not(.g-result-stage){top:410px}
.has-tabs .g-panel{top:1079px}
.has-tabs .g-links{top:1471px}

/* one featured egg (event/special banners): centred, a bit larger */
.g-stage.single .g-feature-0{left:155px;width:630px;height:630px;top:-10px}
.g-stage.single .g-feature-0 .g-badge{left:70px;top:90px}
.g-detail-now{display:flex;justify-content:center;gap:16px;margin:18px 0 6px;font-size:32px}
.g-detail-now b{color:#1a8a3a}
.g-note{margin:0 0 26px;font-size:26px;color:#4d7896}

/* shard shop */
.g-shop-intro{position:absolute;left:40px;right:40px;top:170px;padding:22px;text-align:center}
.g-shop-intro b{display:block;font-size:40px}.g-shop-intro small{font-size:30px;color:#138a9a;font-weight:700}
.g-section{position:absolute;left:50px;top:320px;margin:0;font-size:34px;color:#0c3157}
.g-shop-list{position:absolute;left:40px;right:40px;top:380px;bottom:190px;overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding:4px}
.g-shop-row{flex:0 0 auto;display:flex;gap:18px;padding:18px;border:3px solid rgba(215,255,255,.95);border-radius:30px;background:linear-gradient(145deg,rgba(225,252,255,.93),rgba(185,230,245,.92));box-shadow:0 5px 12px rgba(0,63,86,.2)}
.g-shop-art{flex:0 0 250px;height:270px;object-fit:contain}
.g-shop-copy{flex:1;min-width:0}
.g-shop-copy h4{margin:4px 0 6px;font-size:40px}
.g-tier-pill{display:inline-block;margin-bottom:8px;padding:2px 26px;border-radius:18px;font-size:24px;font-weight:700;color:#fff}
.g-tier-pill.rare{background:linear-gradient(90deg,#d89a10,#f2b92a)}.g-tier-pill.common{background:#7890a3}
.g-shop-copy .g-stars{display:flex}
.g-shop-actions{display:flex;gap:14px;margin-top:12px;align-items:stretch}
.g-step{flex:1;display:grid;place-items:center;border-radius:20px;background:rgba(255,255,255,.7);font-size:32px;font-weight:700}
.g-buy{flex:1.2;min-height:100px;border:3px solid #fff4b4;border-radius:26px;background:linear-gradient(#ffd76a,#ffac28);color:#542c00;box-shadow:0 4px 8px rgba(144,76,0,.3);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.g-buy span{display:flex;align-items:center;gap:6px;font-size:30px;font-weight:700}.g-buy b{font-size:28px}
.g-buy.poor{filter:grayscale(.6);opacity:.65}
.g-buy.maxed{background:#6f8fa6;border-color:#d8f6ff;color:#fff;font-size:30px;font-weight:700;box-shadow:none;cursor:default}
.g-empty{text-align:center;font-size:32px;color:#2d5d80}
.g-shop-foot{position:absolute;left:40px;right:40px;bottom:40px;height:120px;display:flex;align-items:center;gap:14px;padding:0 18px;box-sizing:border-box}
.g-shop-foot>span{flex:1;display:flex;align-items:center;gap:12px;font-size:25px;font-weight:700}
.g-shop-foot i{flex:0 0 48px;height:48px;border-radius:50%;background:#123f66;color:#fff;font:italic 700 30px/48px Georgia,serif;text-align:center}
.g-shop-foot b{display:flex;flex-direction:column;align-items:center;padding:4px 18px;border-radius:20px;color:#fff;font-size:22px}
.g-shop-foot b em{font-style:normal;font-size:30px;display:flex;align-items:center;gap:4px}
.g-shop-foot b.common{background:#1b5c8e}.g-shop-foot b.rare{background:linear-gradient(90deg,#d89a10,#f2b92a)}

/* Home entry (941-canvas coords, sits above the dock's left end like gacha-home-entry-th-en-v1) */
.home-gacha-entry{position:absolute;left:34px;top:1225px;z-index:5;width:150px;height:168px;padding:0;border:4px solid #fff4b4;border-radius:34px;background:linear-gradient(160deg,#ffe07a,#ffac28);box-shadow:inset 0 3px 4px #ffffffbf,0 6px 12px #904c004d,0 0 18px #ffd76acc;color:#542c00;font:700 30px Arial,Sarabun,sans-serif;cursor:pointer}
.home-gacha-entry img{display:block;width:118px;height:118px;margin:4px auto 0;filter:drop-shadow(0 3px 3px #234e4d55)}
.home-gacha-entry span{display:block;margin-top:-6px}
.home-gacha-entry[hidden]{display:none}
/* Gentle "breathing" pulse so the entry reads as tappable (user 09-29: ย่อ-ขยาย). */
.home-gacha-entry{animation:gacha-entry-pulse 1.6s ease-in-out infinite;transform-origin:50% 50%}
.home-gacha-entry:active{animation:none;transform:scale(.94)}
@keyframes gacha-entry-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.home-gacha-entry{animation:none}}

/* ── Pass 2 (2026-09-28): positions measured off gacha-main-v2 / gacha-results-single-six-v2 ── */
.g-paw-ic{width:1em;height:1em;fill:currentColor;flex:0 0 auto}
.g-title .g-paw-ic{width:54px;height:54px;padding:6px;box-sizing:border-box;border-radius:50%;background:#fff;fill:#0a6b86}
.g-leaf{position:absolute;top:50%;width:62px;height:62px;margin-top:-31px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M10 58C24 44 36 28 52 8' stroke='%2350d6cc' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M22 46C8 45 3 33 5 23c11 2 18 11 17 23z' fill='%2345c8c0'/%3E%3Cpath d='M33 33C21 27 20 15 25 6c9 6 12 17 8 27z' fill='%2366dcd2'/%3E%3Cpath d='M36 34c10-9 21-8 26-1-8 9-19 9-26 1z' fill='%2337b0aa'/%3E%3Cpath d='M20 50c8-9 18-10 24-5-7 8-17 9-24 5z' fill='%235ed3c9'/%3E%3C/svg%3E") center/contain no-repeat}
.g-leaf.l{left:14px}.g-leaf.r{right:14px;transform:scaleX(-1)}
.g-plate .g-leaf{filter:brightness(1.35)}

/* header */
.g-header{left:44px;right:26px;top:53px;height:105px;gap:14px}
.g-back{flex-basis:105px;height:105px}
.g-title{height:74px;padding:0 20px 0 10px;border-width:3px}
.g-title b{font-size:38px}
.g-wallet{height:56px;padding-right:22px;font-size:29px}.g-wallet img{width:60px;height:60px;margin-left:-6px}

/* banner plate + subtitle pill hanging off the bottom */
.g-plate{top:195px;min-width:422px;padding:18px 100px 30px;border-radius:30px;border-color:#9ffcf6;box-shadow:0 0 0 4px rgba(10,110,140,.55),0 0 22px rgba(120,255,245,.6),inset 0 0 20px rgba(120,255,240,.35)}
.g-plate b{font-size:56px;white-space:nowrap}
.g-plate small{position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);margin:0;padding:4px 34px;border:2px solid #7ff3f0;white-space:nowrap}
.g-plate-top{top:36px;padding:20px 110px 22px}
.g-plate-pop{top:30px}

/* main stage: two big overlapping eggs on the dais */
.g-pedestal{left:35px;top:400px;bottom:auto;width:870px;height:326px}
.g-feature{top:26px;bottom:auto;width:570px;height:570px}
.g-feature-0{left:-4px;z-index:2}.g-feature-1{left:372px;right:auto;z-index:1}
.g-feature .g-badge{top:80px;width:150px;height:150px}
.g-feature-0 .g-badge{left:70px}.g-feature-1 .g-badge{left:auto;right:4px}

/* bottom panel */
.g-panel{left:62px;right:44px;top:1060px;padding:20px 20px 24px;border-width:4px;box-shadow:0 0 18px rgba(130,245,255,.8),0 8px 20px rgba(0,63,86,.28),inset 0 0 30px rgba(255,255,255,.45)}
.g-pity{position:relative;padding:18px 110px 22px;border:3px solid rgba(255,255,255,.9)}
.g-pity .g-leaf{width:74px;height:74px;margin-top:-37px}
.g-bar{height:46px;border:3px solid #0c4a70}
.g-pull{height:168px;border-width:4px}
.g-pull-1{box-shadow:0 0 0 4px #6ee7ff,0 0 20px rgba(110,231,255,.9),inset 0 0 20px rgba(255,255,255,.6)}
.g-pull-6{box-shadow:0 0 0 4px #ff9f2a,0 0 22px rgba(255,170,40,.9),inset 0 0 20px rgba(255,255,255,.55)}
.g-pull>b{font-size:56px}
.g-bonus{right:-30px;top:-70px;width:150px;height:150px}.g-bonus b{font-size:28px!important}
.g-links{left:62px;right:44px;top:1452px;padding:14px;border:4px solid rgba(208,253,255,.95);border-radius:30px;background:linear-gradient(145deg,rgba(211,248,248,.8),rgba(169,223,237,.8));box-shadow:0 0 16px rgba(130,245,255,.7)}
.g-links button{height:92px}

/* confirm popup */
.g-confirm{text-align:center;padding-top:160px}
.g-confirm-egg{position:relative;height:330px}
.g-confirm .g-glow{top:165px;width:520px;height:520px;margin:-260px 0 0 -260px;background:radial-gradient(circle,rgba(255,255,255,.95) 0,rgba(140,220,255,.6) 30%,transparent 65%)}
.g-confirm-egg>img{position:relative;width:330px;height:330px;object-fit:contain}
.g-confirm-egg .g-bonus{right:170px;top:0}
.g-confirm h2{margin:6px 0 16px;font-size:58px}
.g-confirm-rows{display:grid;gap:10px;margin:0 20px}
.g-confirm-rows div{display:flex;justify-content:space-between;align-items:center;padding:14px 26px;border-radius:22px;background:rgba(255,255,255,.65);font-size:32px}
.g-confirm-rows b{display:flex;align-items:center;gap:8px}
.g-confirm-rows .bad b{color:#c62828}
.g-confirm .g-note{margin:18px 0}
.g-confirm-btns{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}
.g-cancel{height:110px;border:4px solid #fff;border-radius:56px;background:#dce8ee;color:#34536c;font-size:42px;font-weight:700}
.g-confirm .g-gold-btn{width:100%;padding:0}
.g-gold-btn:disabled{filter:grayscale(.7);opacity:.6;cursor:default}

/* gold button glow + back arrow */
.g-gold-btn{border-color:#fff1a0;box-shadow:0 0 0 4px #ff9f2a,0 0 20px rgba(255,170,40,.8),inset 0 3px 4px rgba(255,255,255,.75)}
.g-arrow{display:inline-block;margin-right:28px;transform:scaleX(-1);font-size:48px;color:#3b1f00}

/* result ×1 */
.g-result-stage{top:0;height:1010px}
.g-result-stage .g-pedestal{left:40px;top:700px;width:860px;height:322px}
.g-result-stage .g-glow{top:520px}
.g-result-art{left:90px;top:140px;width:760px;height:760px}
.g-result-tier{left:93px;top:262px;width:160px;height:160px}
.g-result-new{left:672px;right:auto;top:670px;width:200px;height:200px}.g-result-new b{font-size:40px}
.g-result-card{left:75px;right:73px;top:1000px;height:332px;box-sizing:border-box;padding:26px 30px;border-width:4px;box-shadow:0 0 18px rgba(130,245,255,.8),inset 0 0 26px rgba(255,255,255,.45)}
.g-result-card .g-leaf{top:78px;width:76px;height:76px;margin-top:-38px}
.g-result-card h2{font-size:56px;margin-bottom:6px}
.g-result-card .g-stars.big i{width:62px;height:62px}
.g-result-card .g-perk{display:flex;margin:14px 10px 0;padding:12px 20px;justify-content:center;border:3px solid rgba(255,255,255,.85);background:linear-gradient(90deg,rgba(90,200,240,.55),rgba(60,170,230,.5))}
.g-perk .g-paw-ic{width:36px;height:36px;fill:#fff}
.g-reveal-badges{left:60px;right:60px;top:60px}.g-reveal-badges .g-badge{width:170px;height:170px}.g-reveal-badges .g-badge b{font-size:34px}
.g-up{position:absolute;right:40px;top:30px;margin:0;font-size:30px}
.g-link-btn{left:131px;right:120px;top:1368px;height:116px;border-width:4px;box-shadow:0 0 16px rgba(130,245,255,.7)}
.g-link-btn b{text-align:center}
.g-back-gacha{left:159px;right:148px;top:1502px;height:116px}

/* result ×6 */
.g-six{left:41px;right:41px;top:200px;gap:17px 30px}
.g-six-card{height:369px;border:5px solid #9ff4ff;border-radius:34px;background:linear-gradient(160deg,rgba(210,248,255,.9),rgba(140,215,242,.88));box-shadow:0 0 0 3px #45c9e8,0 0 18px rgba(110,231,255,.85),inset 0 0 22px rgba(255,255,255,.6)}
.g-six-card.tier-rare{border-color:#fff1a0;background:linear-gradient(160deg,rgba(255,248,205,.97),rgba(255,215,110,.92));box-shadow:0 0 0 3px #ffb52e,0 0 22px rgba(255,190,50,.85),inset 0 0 22px rgba(255,255,255,.6)}
.g-six-art{top:6px;width:300px;height:300px;margin-left:-150px}
.g-six-tier{left:4px;top:4px;width:118px;height:118px}
.g-six-card .g-new{right:0;top:0;width:128px;height:128px}
.g-chip{right:18px;top:150px;gap:8px;padding:6px 18px 6px 8px;border:3px solid rgba(255,255,255,.35);background:rgba(20,40,55,.9);font-size:36px}
.g-chip.up{color:#fff}.g-chip.up i{width:44px;height:44px;border-radius:50%;background:linear-gradient(#6be36b,#1c9a33);color:#fff;font-style:normal;font-size:28px;display:grid;place-items:center}
.g-chip small{font-size:24px}
.g-chip .g-shard-ic{width:52px;height:52px}
.g-six-foot{position:absolute;left:0;right:0;bottom:0;height:120px}
.g-six-foot .g-leaf{top:auto;bottom:6px;margin:0;width:52px;height:52px}
.g-six-card .g-stars{left:48px;right:48px;bottom:58px;gap:4px;padding:6px 0;border:2px solid rgba(255,255,255,.8);border-radius:26px;background:rgba(80,190,230,.35)}
.g-six-card .g-stars i{width:40px;height:40px}
.g-six-name{bottom:12px;font-size:32px;color:#0b2f54}
.g-shard-total{left:41px;right:41px;top:1346px;height:136px;border-width:4px;font-size:36px;box-shadow:0 0 18px rgba(130,245,255,.8),inset 0 0 26px rgba(255,255,255,.45)}
.g-shard-total .g-leaf{width:70px;height:70px;margin-top:-35px}
.g-shard-total .g-shard-ic{width:84px;height:84px}
.g-shard-total b{font-size:78px;color:#ffc21a;-webkit-text-stroke:3px #7a4a00;text-shadow:0 4px 0 #7a4a00}
.g-six~.g-back-gacha{top:1511px;height:110px}
.g-skip-grid{top:60px;right:20px}

/* Tier badges: until Codex's text-baked RARE/MAX/COMMON icons land, lay English text over the blank art */
.g-badge b{font-size:28px}.g-badge.rare b{margin-top:24px}
.g-result-tier b{font-size:38px}
.g-max-badge img{filter:sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(.55)}
.g-max-badge b{color:#ffe08a}
.g-badge.common b{font-size:21px}.g-result-tier.common b{font-size:30px}
.g-stars i{background:#5fb3d3;box-shadow:inset 0 0 0 2px #fff}

/* Pet details (gacha-pet-details-v1) */
.g-popup.g-detail{width:780px;padding:150px 34px 30px;text-align:center;gap:14px}
.g-popup.g-detail .g-detail-name{margin:0;font-size:54px;line-height:1.1;color:#0c3157}
.g-detail-tier-row{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:-4px}
.g-detail-tier-row .g-tier-pill{margin:0;padding:2px 34px;font-size:30px;box-shadow:0 0 0 3px rgba(255,255,255,.7)}
.g-detail-tier-row .g-mini-leaf{width:40px;height:40px}.g-detail-tier-row .g-mini-leaf.l{transform:scaleX(-1)}
.tier-rare .g-detail-tier-row .g-mini-leaf{filter:hue-rotate(-120deg) saturate(1.6) brightness(.8)}
.g-popup.g-detail .g-detail-art{position:relative;height:430px;margin:0}
.g-popup.g-detail .g-detail-art .g-glow{top:215px;width:620px;height:620px;margin:-310px 0 0 -310px}
.g-popup.g-detail .g-detail-art img{position:relative;width:430px;height:430px;object-fit:contain;animation:g-pop .35s ease-out}
.g-form-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px;border-radius:40px;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 2px rgba(255,255,255,.9)}
.g-form-tabs button{height:76px;display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:36px;background:none;color:#6d8aa4;font-size:34px;font-weight:700}
.g-form-tabs button .g-paw-ic{width:40px;height:40px;fill:currentColor}
.g-form-tabs button.active{background:linear-gradient(180deg,#27b5e2,#0b78bf);color:#fff;box-shadow:0 0 0 3px #bff3ff,0 0 14px rgba(80,200,255,.7)}
.g-form-tabs button:disabled{opacity:.45;cursor:default}
.g-detail-card{position:relative;overflow:hidden;padding:18px 24px;border:3px solid rgba(255,255,255,.95);border-radius:28px;background:linear-gradient(90deg,rgba(235,250,255,.92),rgba(205,238,250,.88));box-shadow:inset 0 0 18px rgba(255,255,255,.6)}
.g-detail-card h3{display:flex;justify-content:center;align-items:center;gap:10px;margin:0 0 10px;font-size:34px;color:#0c3157}
.g-detail-card h3 .g-mini-leaf{width:40px;height:40px}.g-detail-card h3 .g-mini-leaf.l{transform:scaleX(-1)}
.g-detail-card small{display:block;margin-top:8px;font-size:24px;color:#4d7896}
.g-detail-stars{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px}
.g-detail-stars>span{font-size:32px;font-weight:700}
.g-detail-stars .g-stars.big i{width:58px;height:58px}
.g-detail-stars>b{padding:4px 22px;border-radius:18px;background:rgba(190,232,250,.9);font-size:34px}
.g-detail-ability .g-card-leaf{right:10px;top:40px;width:80px;height:80px;margin:0}.g-detail-ability .g-card-leaf.l{left:10px;right:auto;transform:scaleX(-1)}
.g-ability-body{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:22px}
.g-ability-ic{flex:0 0 110px;height:110px;display:grid;place-items:center;font-size:72px}
.g-ability-ic img{width:110px;height:110px;filter:drop-shadow(0 4px 4px rgba(120,80,0,.3))}
.g-ability-body>div{text-align:left}
.g-ability-body>div>b{display:block;font-size:38px;color:#0c3157}
.g-now-pill{display:inline-flex;align-items:center;gap:14px;margin-top:8px;padding:6px 26px;border-radius:30px;background:linear-gradient(180deg,#1b7fb8,#0b4f82);box-shadow:0 0 0 3px #9fe6ff,0 0 12px rgba(80,200,255,.6);color:#fff;font-size:30px;font-weight:700}
.g-now-pill em{font-style:normal;font-size:46px;color:#ffd84a;text-shadow:0 2px 0 #7a4a00}
.g-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.g-stat{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;border-radius:22px;background:rgba(210,238,250,.85);font-size:30px}
.g-stat .g-ic{width:40px;height:40px}
.g-stat span{margin-left:auto;font-weight:700}
.g-stat.up span{color:#1a8a3a}.g-stat.down span{color:#c62828}.g-stat.zero span{color:#0c3157}
.g-rate-row[data-detail]{cursor:pointer}.g-rate-row[data-detail]:hover{box-shadow:0 0 0 3px #7fd7f5}
.g-popup.g-detail .g-plate-pop{padding:16px 90px 22px}
.g-popup.g-detail .g-plate-pop b{font-size:50px}.g-popup.g-detail .g-plate-pop b .g-paw-ic{width:52px;height:52px}
.g-popup.g-detail .g-blue-btn .g-leaf.l{left:34px}.g-popup.g-detail .g-blue-btn .g-leaf.r{right:34px}

/* Align every egg's solid base and centre (pet-art-metrics.json via drop() in gacha.js). `translate` composes with the bob/pop transform animations. */
.g-feature-art,.g-pet-reveal,.g-result-art,.g-six-art,.g-popup.g-detail .g-detail-art img{translate:calc(var(--dx,0) * 100%) calc(var(--drop,0) * 100%)}
.g-result-card .g-up{top:18px;right:auto;left:50%;transform:translateX(250px);padding:2px 14px;border-radius:14px;background:rgba(26,138,58,.12)}

/* Home: compact pet row inside the expanded panel (gacha-home-expanded-switch-v3) - 941 canvas */
.home-pet-row{display:flex;align-items:center;gap:12px;margin-top:12px;padding:6px 10px 6px 16px;border-radius:18px;background:#ffffff88}
.home-pet-row[hidden]{display:none}
.hpr-info{flex:1;min-width:0;display:flex;align-items:center;gap:14px;padding:0;border:0;background:none;color:#17445e;font:600 26px Arial,'Sarabun',sans-serif;white-space:nowrap;cursor:pointer;text-align:left}
.hpr-star{color:#f7b500;font-size:40px;line-height:1;text-shadow:0 2px 0 #c77f00}
.hpr-div{flex:0 0 2px;height:34px;background:#9fb9c8}
.hpr-ic{display:grid;place-items:center;width:40px;height:40px;font-size:30px}.hpr-ic img{width:40px;height:40px}.hpr-ic .g-paw-ic{width:30px;height:30px;fill:#17445e}
.hpr-perk{overflow:hidden;text-overflow:ellipsis}.hpr-perk b{color:#17445e}
.hpr-switch{flex:0 0 auto;height:54px;padding:0 26px;border:0;border-radius:27px;background:linear-gradient(180deg,#2398c2,#0d6a8e);color:#fff;font:700 25px Arial,'Sarabun',sans-serif;box-shadow:0 3px 6px #0d4a6644,inset 0 2px 2px #ffffff55;cursor:pointer}

/* F: pet picker (gacha-pet-picker-v1) */
.g-plate-picker{top:26px;padding:18px 110px 22px}
.g-plate-picker b{display:flex;align-items:center;gap:16px;font-size:54px}.g-plate-picker b .g-paw-ic{width:52px;height:52px;fill:#fff}
.g-picker-sub{position:absolute;left:0;right:0;top:152px;margin:0;text-align:center;font-size:32px;font-weight:700;color:#0c3157;text-shadow:0 0 8px #fff,0 0 3px #fff}
.g-pick-grid{position:absolute;left:84px;right:84px;top:210px;height:870px;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:24px;padding:10px 8px;scrollbar-width:none}
.g-pick-grid::-webkit-scrollbar{display:none}
.g-pick-card{position:relative;height:430px;padding:14px 10px 16px;border:4px solid rgba(220,250,255,.95);border-radius:30px;background:linear-gradient(160deg,rgba(220,248,255,.92),rgba(160,220,245,.9));box-shadow:0 5px 14px rgba(0,63,86,.2),inset 0 0 22px rgba(255,255,255,.55);display:flex;flex-direction:column;align-items:center;color:#0c3157;cursor:pointer}
.g-pick-card.sel{border-color:#fff1a0;box-shadow:0 0 0 4px #ffc53a,0 0 26px rgba(255,200,60,.85),inset 0 0 22px rgba(255,255,255,.55)}
.g-pick-card.locked{background:linear-gradient(160deg,rgba(200,215,230,.9),rgba(150,175,200,.88))}
.g-pick-art{position:relative;width:270px;height:260px;flex:0 0 auto}
.g-pick-art img{width:100%;height:100%;object-fit:contain;translate:calc(var(--dx,0) * 100%) calc(var(--drop,0) * 100%)}
.g-pick-card.locked .g-pick-art img{filter:brightness(.16) saturate(0) contrast(1.2);opacity:.92}
.g-lock{position:absolute;left:50%;top:48%;width:90px;height:110px;margin:-55px 0 0 -45px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 74'%3E%3Cpath d='M14 32V22a16 16 0 0 1 32 0v10' fill='none' stroke='%23e8f3ff' stroke-width='7'/%3E%3Crect x='6' y='30' width='48' height='40' rx='8' fill='%23e8f3ff'/%3E%3Ccircle cx='30' cy='48' r='6' fill='%23445a74'/%3E%3Crect x='27' y='50' width='6' height='11' rx='3' fill='%23445a74'/%3E%3C/svg%3E") center/contain no-repeat}
.g-pick-card>b{margin-top:4px;font-size:34px;line-height:1.1}
.g-pick-card .g-stars{margin-top:6px}.g-pick-card .g-stars i{width:40px;height:40px}
.g-pick-perk{margin-top:auto;display:flex;align-items:center;gap:10px;padding:6px 22px;border-radius:26px;background:rgba(255,255,255,.6);font-size:27px;font-weight:700;white-space:nowrap}
.g-pick-perk i{display:grid;place-items:center;font-style:normal;font-size:30px}.g-pick-perk i img{width:42px;height:42px}.g-pick-perk i .g-paw-ic{width:30px;height:30px;fill:#123f66}
.g-pick-perk.dark{background:linear-gradient(180deg,#2b4461,#1a2d44);color:#fff}.g-pick-perk .g-ic-egg{width:32px;height:40px}
.g-inuse{position:absolute;left:10px;top:10px;z-index:2;display:flex;align-items:center;gap:8px;padding:4px 16px;border-radius:14px;background:linear-gradient(180deg,#8a5a10,#5c3a05);color:#ffe7a3;font-size:24px;font-weight:700;box-shadow:0 2px 4px rgba(60,30,0,.35)}
.g-inuse .g-paw-ic{width:28px;height:28px;fill:#ffd36b}
.g-pick-detail{position:absolute;left:44px;right:44px;top:1098px;height:548px;box-sizing:border-box;padding:18px 24px 14px;display:grid;grid-template-columns:290px 1fr;gap:6px 18px;align-items:center;border-width:4px;box-shadow:0 0 18px rgba(130,245,255,.8),inset 0 0 26px rgba(255,255,255,.45)}
.g-pick-detail-art{position:relative;width:290px;height:290px}
.g-pick-detail-art img{width:100%;height:100%;object-fit:contain;translate:calc(var(--dx,0) * 100%) calc(var(--drop,0) * 100%)}
.g-pick-detail-art img.locked{filter:brightness(.16) saturate(0);translate:none}
.g-pick-detail-copy{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}
.g-pick-detail-copy h3{position:relative;margin:0;padding:0 70px;font-size:44px;color:#0c3157;white-space:nowrap}
.g-pick-detail-copy h3 .g-leaf{width:56px;height:56px;margin-top:-28px}.g-pick-detail-copy h3 .g-leaf.l{left:0}.g-pick-detail-copy h3 .g-leaf.r{right:0}
.g-pick-detail-copy .g-detail-tier-row .g-tier-pill{font-size:26px;padding:2px 30px}
.g-now-pill.big{margin:0;padding:8px 34px;font-size:32px}.g-now-pill.big em{font-size:54px}
.g-pick-detail-copy .g-stat-row{width:100%;gap:10px}.g-pick-detail-copy .g-stat{font-size:26px;padding:8px}.g-pick-detail-copy .g-stat .g-ic{width:34px;height:34px}
.g-pick-detail-copy .g-stat.up{background:rgba(120,220,140,.35)}.g-pick-detail-copy .g-stat.down{background:rgba(245,150,150,.35)}
.g-pick-detail-copy small{font-size:22px;color:#4d7896}
.g-pick-btns{grid-column:1/-1;display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin-top:6px}
.g-pick-go{height:104px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0;border-radius:52px;font-size:40px;font-weight:700}
.g-pick-go .g-paw-ic{width:48px;height:48px;fill:currentColor}
.g-pick-go:disabled{border:4px solid #e3eef3;background:linear-gradient(180deg,#b7c6cf,#93a6b2);color:#eef5f8;box-shadow:none;cursor:default}
.g-pick-gacha{height:104px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:36px}
.g-pick-gacha .g-ic-egg{width:44px;height:54px}
.g-pick-note{grid-column:1/-1;margin:2px 0 0;text-align:center;font-size:24px;color:#2d5d80;line-height:1.35}.g-pick-note b{color:#0c3157}
/* anchored art can hang below its box (rock/cloud under the base) - keep the card text on top */
.g-pick-card>b,.g-pick-card>.g-stars,.g-pick-card>.g-pick-perk{position:relative;z-index:1}
.g-pick-card>b{text-shadow:0 0 6px #e6f8ff,0 0 3px #e6f8ff}
.g-pick-art{height:240px}
.g-pick-detail-copy .g-stat-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-pick-detail-copy .g-stat{gap:6px;font-size:22px;padding:6px 8px}.g-pick-detail-copy .g-stat .g-ic{width:28px;height:28px}
/* Decorative art never takes clicks: anchored eggs hang outside their boxes (see --drop) and
   would otherwise sit over buttons (pull, links, cards) and swallow taps. Clicks fall through
   to whatever control is underneath, e.g. the featured-egg button or a picker card. */
.gacha-screen .g-pedestal,.gacha-screen .g-open-pedestal,.gacha-screen .g-glow,.gacha-screen .g-spark,.gacha-screen .g-flash,
.g-feature-art,.g-result-art,.g-pet-reveal,.g-egg-box img,.g-six-art,.g-pick-art,.g-pick-art img,.g-pick-detail-art,.g-pick-detail-art img,
.g-detail-art,.g-detail-art img,.g-confirm-egg,.g-confirm-egg img,.g-thumb img,.g-shop-art{pointer-events:none}
/* x6 cards: anchored art hangs below the base (rock/cloud) - keep the star bar + name on top of it */
.g-six-foot{z-index:2}
.g-six-name{text-shadow:0 0 6px #e8f9ff,0 0 3px #e8f9ff,0 0 2px #fff}
.g-six-card.tier-rare .g-six-name{text-shadow:0 0 6px #fff4d0,0 0 3px #fff4d0,0 0 2px #fff}
.g-six-card .g-stars{background:rgba(120,205,235,.55);backdrop-filter:blur(2px)}
.g-six-name{left:50px;right:50px;bottom:10px;padding:0 8px;border-radius:16px;background:rgba(232,249,255,.88);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-six-card.tier-rare .g-six-name{background:rgba(255,246,214,.9)}

/* ── Codex v2 raster pass (new ui/gacha-web-handoff/WEB-ADDITIONS-v2.md) ─────────────────── */
/* text-baked badges: the art carries RARE/COMMON/MAX/NEW! - old overlay text rules no longer apply */
.g-badge img{object-fit:contain}.g-badge b{display:none}
.g-max-badge img{filter:none}
.g-feature .g-badge,.g-result-tier,.g-reveal-badges .g-badge,.g-detail-tier{filter:drop-shadow(0 3px 4px rgba(0,30,70,.35))}
/* leaves */
.g-leaf,.g-corner-leaf,.g-card-leaf{background:url('assets/gacha/ic_gacha_leaf.png') center/contain no-repeat}
.g-mini-leaf,.g-tab-leaf{background:url('assets/gacha/ic_gacha_leaf_small.png') center/contain no-repeat}
/* paw: one dark raster, recoloured per context */
img.g-paw-ic{object-fit:contain}
.g-plate-pop b img.g-paw-ic,.g-plate-picker b img.g-paw-ic,.g-perk span img.g-paw-ic,.g-form-tabs button.active img.g-paw-ic,.g-pick-go:disabled img.g-paw-ic{filter:brightness(0) invert(1)}
.g-form-tabs button:not(.active) img.g-paw-ic{opacity:.45}
.g-inuse img.g-paw-ic{filter:brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(-8deg)}
.g-pick-go.g-gold-btn img.g-paw-ic{filter:brightness(0) invert(.18) sepia(1) saturate(3) hue-rotate(-15deg)}
.g-title img.g-paw-ic{padding:7px}
/* info, tab, arrow, back icons */
.g-info-ic{flex:0 0 auto;width:56px;height:56px;object-fit:contain}
.g-shop-foot .g-info-ic{width:48px;height:48px}
.g-tabs button .g-tab-ic{width:48px;height:48px;object-fit:contain}
.g-chip .g-up-ic{width:46px;height:46px}
img.g-arrow{width:52px;height:52px;margin-right:24px;vertical-align:middle;transform:none}
.g-back img{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 2px 1px rgba(0,39,69,.42))}
.g-ic-chev{width:48px;height:48px;object-fit:contain}
.g-rate-head .g-ic-crown{width:56px;height:56px;object-fit:contain}
.g-info-card .g-ic-shield{width:140px;height:140px;object-fit:contain}
.g-rate-commons summary .g-ic-egg{width:100px;height:100px;object-fit:contain}
.g-pick-perk .g-ic-egg,.g-pick-gacha .g-ic-egg{width:44px;height:44px;object-fit:contain}
.g-perk-drop{width:44px;height:44px;object-fit:contain}
.g-perk span .g-perk-drop{width:42px;height:42px}
.g-pick-perk i .g-perk-drop,.hpr-ic .g-perk-drop{width:40px;height:40px}
.g-ability-ic img{object-fit:contain}
/* (v2 plate/popup/card 9-slice art tried 09-29 and reverted: flatter than the approved mockups - CSS crystal frames stay) */
.g-badge.bonus b{display:block}   /* the promo badge stays blank art + TH/EN text */
/* details: anchored art (rock/cloud under the base) hung over the form tabs - lift it and keep the tabs in front */
.g-popup.g-detail .g-detail-art img{top:-56px;height:410px;width:410px}
.g-popup.g-detail .g-detail-art .g-glow{top:170px}
.g-form-tabs{position:relative;z-index:2}
.g-detail-card,.g-detail-stars{position:relative;z-index:2}
.g-rate-commons .g-ic-chev{width:34px;height:34px}

/* Shard shop per gacha-shard-shop-v2-real-art */
.g-sparkle{position:absolute;width:26px;height:26px;pointer-events:none;background:#fff;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);opacity:.9;filter:drop-shadow(0 0 4px #bff6ff)}
.g-shop-intro{position:relative;border:4px solid rgba(215,255,255,.95);box-shadow:0 0 18px rgba(130,245,255,.75),inset 0 0 26px rgba(255,255,255,.55)}
.g-shop-intro .g-leaf{width:92px;height:92px;margin-top:-46px}.g-shop-intro .g-leaf.l{left:40px}.g-shop-intro .g-leaf.r{right:40px}
.g-shop-intro .g-sparkle.a{left:150px;top:22px}.g-shop-intro .g-sparkle.b{right:150px;top:22px}
.g-section{display:flex;align-items:center;gap:14px;right:44px}
.g-section-paw{flex:0 0 56px;height:56px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,50,90,.2)}
.g-section-paw .g-paw-ic{width:38px;height:38px}
.g-section-line{flex:1;height:3px;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,.95),rgba(255,255,255,.2))}
.g-section .g-mini-leaf{width:44px;height:44px}
.g-shop-row{position:relative;overflow:hidden;align-items:center;border:4px solid rgba(215,255,255,.95);border-radius:32px;background:linear-gradient(145deg,rgba(228,252,255,.94),rgba(180,228,246,.93));box-shadow:0 0 16px rgba(130,245,255,.7),inset 0 0 26px rgba(255,255,255,.55)}
.g-shop-row .g-card-leaf{right:24px;top:30px;margin:0;width:100px;height:100px;opacity:.75}
.g-shop-row .g-sparkle.a{right:150px;top:36px}.g-shop-row .g-sparkle.b{right:22px;top:150px;width:20px;height:20px}
.g-shop-art-box{position:relative;flex:0 0 270px;height:300px;pointer-events:none}
.g-shop-art-box .g-shop-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;translate:calc(var(--dx,0) * 100%) calc(var(--drop,0) * 100%)}
.g-shop-copy{position:relative;z-index:1}
.g-shop-copy h4{font-size:42px}
.g-stars.outline i{position:relative;background:#4aa6d6}
.g-stars.outline i::after{content:'';position:absolute;inset:4px;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);background:linear-gradient(#ffffff,#e8f7ff)}
.g-stars.outline i.on{background:#c98a00}
.g-stars.outline i.on::after{background:linear-gradient(180deg,#fff27a,#ffb300)}
.g-shop-perk{background:rgba(120,200,235,.35)}
.g-shop-perk span{background:none;flex-basis:44px;height:44px}.g-shop-perk span img{width:44px;height:44px}
.g-step{gap:8px;display:flex;align-items:center;justify-content:center;font-size:34px}
.g-step .g-st{font-style:normal;color:#ffc21a;text-shadow:0 1px 0 #b77900,0 0 1px #b77900;font-size:36px}
.g-step em{font-style:normal;color:#2d5d80;margin:0 6px}
.g-buy{border:4px solid #fff1a0;background:linear-gradient(180deg,#ffe07a,#ffae22);box-shadow:0 0 0 3px #ff9f2a,0 4px 10px rgba(144,76,0,.35),inset 0 3px 4px rgba(255,255,255,.75)}
.g-buy span{padding:2px 18px;border-radius:18px;background:rgba(110,60,0,.55);color:#fff}
.g-buy.poor{filter:saturate(.9);opacity:.92}
.g-buy.maxed{border:4px solid #c9dcea;background:linear-gradient(180deg,#6f93b3,#44698d);color:#fff;box-shadow:0 4px 8px rgba(20,50,80,.3),inset 0 2px 3px rgba(255,255,255,.35)}
.g-shop-foot{border:4px solid rgba(215,255,255,.95);box-shadow:0 0 16px rgba(130,245,255,.7)}
.g-shop-foot b{padding:6px 22px;border-radius:22px;font-size:24px;box-shadow:inset 0 2px 3px rgba(255,255,255,.35)}
.g-shop-foot b.common{background:linear-gradient(180deg,#2c7bb6,#154f80)}.g-shop-foot b.rare{background:linear-gradient(180deg,#f2bf3a,#c98a0b)}
.g-shop-art-box{flex-basis:300px;height:340px;margin:-10px -6px -10px -8px}

/* Shard shop: richer colour pass (user: "looks washed out" vs the mockup) */
.g-shop-intro{background:linear-gradient(160deg,rgba(205,245,255,.93),rgba(150,218,246,.9));border:4px solid #e9fdff;box-shadow:0 0 0 2px rgba(80,210,245,.55),0 0 22px rgba(90,225,255,.85),inset 0 0 24px rgba(255,255,255,.45)}
.g-shop-intro b{color:#0b2b4e;font-weight:800}.g-shop-intro small{color:#0f7fa0}
.g-shop-row{background:linear-gradient(150deg,rgba(200,243,255,.93),rgba(140,212,244,.9));border:4px solid #eafdff;box-shadow:0 0 0 2px rgba(70,200,240,.55),0 0 20px rgba(90,225,255,.85),inset 0 0 22px rgba(255,255,255,.4)}
.g-shop-copy h4{color:#0b2b4e;font-weight:800}
.g-tier-pill{padding:3px 30px;font-size:26px;letter-spacing:.04em;border:2px solid rgba(255,255,255,.75)}
.g-tier-pill.rare{background:linear-gradient(180deg,#ffd760,#d99a12);color:#4a2c00;box-shadow:0 2px 4px rgba(120,70,0,.35)}
.g-tier-pill.common{background:linear-gradient(180deg,#8ea2b3,#5d7488);color:#fff}
.g-shop-copy .g-stars i{width:48px;height:48px}
.g-stars.outline i{background:#2a8fcf}
.g-stars.outline i::after{inset:5px}
.g-shop-perk{background:linear-gradient(90deg,rgba(90,190,235,.55),rgba(150,220,248,.45));font-weight:700;color:#0b2b4e}
.g-shop-perk span img{width:48px;height:48px}
.g-step{background:#fff;border:2px solid rgba(120,200,235,.7);color:#0b2b4e;font-weight:800}
.g-buy{border:4px solid #fff3b0;background:linear-gradient(180deg,#ffe46a,#ffa60f);box-shadow:0 0 0 4px #ff9400,0 0 16px rgba(255,170,20,.85),inset 0 3px 5px rgba(255,255,255,.8);color:#4a2400}
.g-buy b{font-size:30px;font-weight:800}
.g-buy span{background:rgba(100,52,0,.7)}
.g-buy.maxed{background:linear-gradient(180deg,#6d95b8,#3f6488);box-shadow:0 0 0 3px #9cc0db,0 4px 10px rgba(20,50,80,.35),inset 0 2px 3px rgba(255,255,255,.35)}
.g-shop-foot{background:linear-gradient(160deg,rgba(205,245,255,.93),rgba(150,218,246,.9));border:4px solid #e9fdff;box-shadow:0 0 0 2px rgba(80,210,245,.55),0 0 20px rgba(90,225,255,.8)}
.g-shop-foot>span{color:#0b2b4e}
.g-shop-foot b{border:2px solid rgba(255,255,255,.7);box-shadow:0 0 10px rgba(255,255,255,.3)}
.g-shop-foot b.rare{box-shadow:0 0 12px rgba(255,190,40,.8)}
.g-section{color:#0b2b4e;font-weight:800;text-shadow:0 0 6px #fff}
.g-shop-row{background:linear-gradient(150deg,#c9f2fe 0%,#a9e3f7 55%,#8fd5f1 100%)}
.g-shop-intro,.g-shop-foot{background:linear-gradient(160deg,#cff4fe,#9edcf4)}
.g-shop-perk{background:linear-gradient(90deg,#8fd2ef,#b9e8f8)}
.g-shop-list{padding:6px 8px}
/* scrollbar per mockup: translucent cyan rounded track, white capsule thumb (shop list + rates) */
.g-shop-list,.g-rates{scrollbar-width:auto;scrollbar-color:#f4fdff rgba(70,190,230,.55)}
.g-shop-list::-webkit-scrollbar,.g-rates::-webkit-scrollbar{width:18px}
.g-shop-list::-webkit-scrollbar-track,.g-rates::-webkit-scrollbar-track{margin:10px 0;border-radius:10px;background:linear-gradient(90deg,rgba(60,180,225,.55),rgba(110,210,240,.55));box-shadow:inset 0 0 0 2px rgba(230,252,255,.55)}
.g-shop-list::-webkit-scrollbar-thumb,.g-rates::-webkit-scrollbar-thumb{border-radius:10px;border:3px solid transparent;background:linear-gradient(90deg,#ffffff,#e4f8ff) padding-box;box-shadow:0 0 6px rgba(255,255,255,.9)}
/* SVG stars (replace the clip-path shapes everywhere) */
.g-stars i,.g-stars.outline i,.g-stars i.on,.g-stars.outline i.on{background:none!important;clip-path:none!important;box-shadow:none;position:relative;display:inline-block}
.g-stars i::after,.g-stars.outline i::after{content:none!important}
.g-stars i img{display:block;width:100%;height:100%;pointer-events:none}
/* Monster Data-style scroll rail (replaces the native scrollbar on the shop list + rates) */
.g-shop-list,.g-rates{scrollbar-width:none}
.g-shop-list::-webkit-scrollbar,.g-rates::-webkit-scrollbar{display:none}
.g-rail{position:absolute;z-index:4;width:18px;border-radius:14px;background:rgba(5,70,112,.65);pointer-events:none}
.g-rail[hidden]{display:none}
.g-rail i{display:block;width:14px;height:136px;margin-left:2px;border-radius:14px;background:#e6ffff;box-shadow:0 0 8px #fff;transition:transform .08s linear}
.g-shop-list{right:58px}
.g-rates{padding-right:14px}

/* Pet picker colour pass (user 09-28: colours/plate rims still far from gacha-pet-picker-v1).
   Mockup samples: cards sky-cyan #98dffb w/ near-white rim + blue glow, bright blue title plate
   #02a1dd->#027ec5, gold "in use" tag, bright cyan bonus pill, pale-cyan detail panel. */
.g-header-picker .g-back{border:5px solid #dffbff;background:radial-gradient(circle at 50% 35%,#27b8f0,#0385cf 70%,#0467b8);box-shadow:0 0 0 3px #0393d5,0 0 16px rgba(90,210,255,.8),inset 0 3px 8px rgba(255,255,255,.45)}
.g-plate-picker{border:4px solid #c9fbff;background:linear-gradient(180deg,#12b4ec 0%,#029bd9 45%,#0277c0 100%);box-shadow:0 0 0 3px #0a8fd0,0 0 22px rgba(120,230,255,.9),inset 0 3px 10px rgba(255,255,255,.5),inset 0 -6px 12px rgba(0,60,130,.35)}
.g-plate-picker b{color:#fff;text-shadow:0 3px 0 #03549a,0 0 10px rgba(0,60,140,.5)}
.g-picker-sub{color:#0a2a5c;text-shadow:0 0 10px #fff,0 0 4px #fff,0 0 2px #fff}
.g-pick-card{border:4px solid #dcfdff;background:linear-gradient(180deg,#a6e6fd 0%,#93dcfb 55%,#8fe1fa 100%);box-shadow:0 0 0 2px rgba(60,170,230,.55),0 0 18px rgba(110,215,255,.75),inset 0 0 26px rgba(255,255,255,.6)}
.g-pick-card.cur,.g-pick-card.sel{border-color:#fff6c4;background:linear-gradient(180deg,#dff3ec 0%,#c9ecf0 50%,#b9e9f6 100%);box-shadow:0 0 0 5px #f2c230,0 0 28px rgba(255,205,70,.9),inset 0 0 30px rgba(255,255,255,.75)}
.g-pick-card.sel:not(.cur){background:linear-gradient(180deg,#a6e6fd 0%,#93dcfb 55%,#8fe1fa 100%)}
.g-pick-card.locked{border-color:#d3e7f7;background:linear-gradient(180deg,#bcd6ee,#a7c8e6);box-shadow:0 0 0 2px rgba(90,140,190,.45),0 0 14px rgba(140,190,240,.6),inset 0 0 22px rgba(255,255,255,.45)}
.g-pick-card>b{color:#08184a;text-shadow:0 0 8px #eafaff,0 0 3px #eafaff,0 0 1px #fff}
.g-pick-perk{background:linear-gradient(180deg,rgba(225,250,255,.9),rgba(185,238,252,.9));border:2px solid rgba(255,255,255,.9);color:#08184a;box-shadow:0 2px 4px rgba(20,100,160,.2)}
.g-pick-perk.dark{border-color:#3d5a7c;background:linear-gradient(180deg,#2a4666,#1a2f4a);color:#fff}
.g-inuse{border:2px solid #ffe79a;background:linear-gradient(180deg,#e8a312,#b8740a);color:#fff8dc;text-shadow:0 1px 1px rgba(90,45,0,.6);box-shadow:0 2px 6px rgba(120,70,0,.45)}
.g-pick-detail{border:5px solid #c8fcff;background:linear-gradient(180deg,#bff3fe 0%,#b0edfd 60%,#a6e8fc 100%);box-shadow:0 0 0 3px #5ec4f3,0 0 26px rgba(100,210,255,.9),inset 0 0 30px rgba(255,255,255,.55)}
.g-pick-detail-copy h3{color:#08184a}
.g-pick-detail .g-now-pill{border:3px solid #d6fbff;background:linear-gradient(180deg,#22c6f3 0%,#04a8e0 55%,#0288cc 100%);box-shadow:0 0 0 3px #0aa6e2,0 0 16px rgba(80,215,255,.9),inset 0 2px 6px rgba(255,255,255,.5)}
.g-pick-detail .g-now-pill span{color:#fff;text-shadow:0 2px 0 #045a96}
.g-pick-detail .g-now-pill em{color:#ffe04a;text-shadow:0 2px 0 #8a4f00,0 0 6px rgba(120,60,0,.4)}
.g-pick-detail-copy .g-stat{border:2px solid rgba(255,255,255,.85);background:linear-gradient(180deg,#c8f4ff,#9fe3fb);color:#08184a}
.g-pick-note{color:#1f4f86}
/* No dais in the picker: eggs fill a square box (fillBox) above the name instead of sinking to a base anchor. */
.g-pick-art{width:236px;height:236px;margin-bottom:4px}
/* Picker title plate was 681 wide and slid under the back button - mockup plate is ~550 with
   the leaves sticking out past its ends. */
.g-plate-picker{min-width:0;padding:18px 64px 22px}
.g-plate-picker .g-leaf.l{left:-60px}.g-plate-picker .g-leaf.r{right:-60px}
.g-header-picker{position:relative;z-index:3}
.g-plate-picker{left:512px}
/* Codex picker header art (#7490): fixed-size 680x130 plate (leaves baked in, never 9-sliced) and a
   110px back button with its arrow baked in. Replaces the CSS plate/back above for this screen. */
.g-plate-picker{left:470px;top:22px;width:680px;height:130px;min-width:0;padding:0 0 6px;border:0;border-radius:0;background:url(assets/gacha/plate_gacha_picker_title.png) center/100% 100% no-repeat;box-shadow:none;display:flex;align-items:center;justify-content:center}
.g-plate-picker .g-leaf{display:none}
.g-plate-picker b{font-size:54px;text-shadow:0 3px 0 #03549a,0 0 10px rgba(0,60,140,.45)}
.g-header-picker .g-back{flex-basis:110px;width:110px;height:110px;margin-left:-18px;border:0;border-radius:50%;background:url(assets/gacha/btn_gacha_back_blue.png) center/100% 100% no-repeat;box-shadow:none}
.g-header-picker .g-back img{display:none}
/* User 09-28: reuse Codex's picker header art on every gacha screen - one plate (680x130, fixed
   aspect, leaves baked in) and one back button (arrow baked in) everywhere. */
.g-plate{width:680px;height:130px;min-width:0;padding:0 0 6px;border:0;border-radius:0;background:url(assets/gacha/plate_gacha_picker_title.png) center/100% 100% no-repeat;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center}
.g-plate>.g-leaf{display:none}
.g-plate b,.g-popup .g-plate-pop b,.g-popup.g-detail .g-plate-pop b{display:flex;align-items:center;justify-content:center;gap:14px;font-size:52px;color:#fff;text-shadow:0 3px 0 #03549a,0 0 10px rgba(0,60,140,.45)}
.g-plate b img.g-paw-ic{width:52px;height:52px;filter:brightness(0) invert(1)}
.g-plate small,.g-popup .g-plate-pop small{bottom:-18px;padding:4px 40px;font-size:28px;border:2px solid #c9fbff;background:linear-gradient(180deg,#0a8fd6,#0463ad);box-shadow:0 0 10px rgba(90,210,255,.7)}
.g-popup .g-plate-pop{padding:0 0 6px}
.g-back{flex:0 0 110px;width:110px;height:110px;border:0;border-radius:50%;background:url(assets/gacha/btn_gacha_back_blue.png) center/100% 100% no-repeat;box-shadow:none}
.g-back img{display:none}
.g-plate small .g-leaf{display:none}
.g-popup .g-plate-pop small{bottom:0;padding:2px 36px;font-size:26px}
/* Pet details: a two-line perk sentence (e.g. Clover Bunny's Daily ×2) used to squeeze the ability card and cut
   its footnote off (user 10-10). The text cards keep their height; the art gives up the room instead. */
.g-detail .g-detail-card{flex-shrink:0}
.g-detail .g-detail-art{flex:0 1 430px;height:auto;min-height:260px}
.g-detail .g-detail-art img{height:100%;width:auto;max-width:430px}
.g-ability-body>div>b{font-size:34px;line-height:1.25}
.g-tabs{cursor:grab}.g-tabs.dragging{cursor:grabbing;user-select:none;scroll-snap-type:none}
