/* GACHAMON V7: safe viewport, capsule celebrations, and Rewards Center.
   Physical prize conversion and KYC stay DEMO/READ-ONLY until services exist. */
:root{--gx7-stage-width:100vw;--gx7-stage-height:100dvh;--gx7-top-guard:0px;--gx7-bottom-guard:0px}
html.gx7-hub-open,html.gx7-hub-open body{overflow:hidden!important}
body.g4-active.g4-legacy-play{background:#090a2b!important;overflow-x:hidden!important;overscroll-behavior-y:contain}
body.g4-active.g4-legacy-play #app{
  width:var(--gx7-stage-width)!important;max-width:540px!important;
  height:var(--gx7-stage-height)!important;aspect-ratio:auto!important;
  min-height:0!important;max-height:none!important;
  margin:var(--gx7-top-guard) auto var(--gx7-bottom-guard)!important;
  padding:0!important;
}
/* V6 art is uniform, responsive and never rises beneath the status-bar notch. */
body.g4-active.g4-legacy-play #screen-buddy,
body.g4-active.g4-legacy-play #screen-arena{height:100%!important}
body.g4-active.g4-legacy-play #screen-reveal{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
  display:block!important;overflow:hidden!important;border:0!important;
  background:radial-gradient(ellipse at 50% 40%,#4522a780,#130f49 53%,#070b26 100%)!important;
}
body.g4-active.g4-legacy-play #screen-reveal[hidden]{display:none!important}
body.g4-active.g4-legacy-play #screen-reveal>:not(#gx7-reveal){display:none!important}
#gx7-reveal{position:absolute;inset:0;overflow:hidden;isolation:isolate;font-family:Inter,'Arial',system-ui,sans-serif;color:#fff;text-align:center;container-type:inline-size}
#gx7-reveal::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.72;background:
  radial-gradient(circle at 50% 43%,#6b43ff50,transparent 41%),
  repeating-conic-gradient(from 0deg at 50% 46%,#a74ff72a 0deg 7deg,transparent 7deg 23deg);
  mask-image:linear-gradient(to bottom,#000 10%,#0008 60%,transparent 79%);
}
.gx7-reveal-stars{position:absolute;inset:0;background-image:radial-gradient(circle,#fff7ab 1px,transparent 2px),radial-gradient(circle,#81e3ff 1px,transparent 2px);background-size:68px 93px,112px 83px;background-position:17px 18px,55px 46px;opacity:.55;pointer-events:none}
.gx7-reveal-logo{position:absolute;top:2.8%;left:16%;width:68%;height:7.5%;object-fit:contain;filter:drop-shadow(0 0 15px #6599ff78)}
.gx7-ta{position:absolute;top:12.2%;left:3%;width:94%;height:11%;margin:0;display:flex;align-items:center;justify-content:center;font-size:clamp(34px,10.1cqw,68px);font-weight:1000;font-style:italic;letter-spacing:-.04em;line-height:1.05;
  color:#f6f7ff;text-shadow:0 .6cqw #29205e,0 0 3cqw #8a77f6}
.gx7-ta em{color:#ffd25c;font-style:italic;-webkit-text-stroke:.13cqw #f19a2c;text-shadow:0 .6cqw #9c4f25,0 0 3.4cqw #ffc64d9c}
.gx7-progress{position:absolute;top:22.2%;left:26%;width:48%;height:4%;display:flex;align-items:center;justify-content:center;gap:8%;font-weight:950;font-size:3.5cqw;color:#d2e2ff;letter-spacing:.06em;border-radius:999px;border:.4cqw solid #e970ff;background:linear-gradient(130deg,#411c7d,#1a1b56);box-shadow:inset 0 2px #fff5,0 0 3cqw #f46dff92}
.gx7-progress span{font-size:5.1cqw;color:#ffe277;text-shadow:0 0 1cqw #ffbf46}
.gx7-stage{position:absolute;top:27.4%;left:1%;width:98%;height:33.1%;overflow:visible;perspective:500px}
.gx7-stage-rays{position:absolute;inset:0;background:radial-gradient(ellipse,#43eaff43 0%,#bd3aff4d 30%,transparent 70%);filter:blur(13px)}
.gx7-stage-ring{position:absolute;bottom:-5%;left:3%;width:94%;height:33%;border-radius:50%;border:2.1cqw solid #5defff;transform:rotateX(65deg);box-shadow:0 0 3cqw #48cfff,inset 0 0 7cqw #9f44ff;background:radial-gradient(ellipse,#84eaff60,transparent 76%);}
.gx7-stage-ring::before{content:"";position:absolute;inset:14%;border:1.5cqw solid #eb76ffb0;border-radius:50%;box-shadow:0 0 17px #da7aff}
.gx7-capsules{position:absolute;inset:0}
.gx7-capsule{position:absolute;width:28%;height:34%;z-index:2;transform-origin:50% 75%;transition:transform 450ms cubic-bezier(.2,1.4,.3,1),opacity 350ms ease;animation:gx7-float 2.7s ease-in-out infinite alternate;animation-delay:calc(var(--gx7-i,0) * -.37s)}
.gx7-capsule img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 1.5cqw #7c9eff)}
.gx7-glow-behind{position:absolute;inset:15%;border-radius:50%;background:#b959ffab;filter:blur(3cqw);opacity:.5}
.gx7-capsule-1{--gx7-i:1;left:2%;top:17%}
.gx7-capsule-2{--gx7-i:2;left:35%;top:0%}
.gx7-capsule-3{--gx7-i:3;right:2%;top:17%}
.gx7-capsule-4{--gx7-i:4;left:20%;top:48%}
.gx7-capsule-5{--gx7-i:5;right:19%;top:48%}
.gx7-capsules.is-one .gx7-capsule{top:18%;left:27%;right:auto;width:46%;height:61%}
.gx7-capsule .gx7-unlocked-art{opacity:0;transform:translateY(1cqw) scale(.6);transition:opacity 250ms ease,transform 430ms cubic-bezier(.2,1.8,.3,1)}
.gx7-capsule.is-open{animation:none;transform:translateY(-2.5cqw) scale(1.14);z-index:10}
.gx7-capsule.is-open .gx7-closed-art{opacity:.20;transform:rotate(-20deg) scale(.86);transition:transform 430ms ease,opacity 430ms ease}
.gx7-capsule.is-open .gx7-unlocked-art{opacity:1;transform:translateY(0) scale(.97);filter:drop-shadow(0 0 2.8cqw #ffd06d) drop-shadow(0 0 1.4cqw #b344ff)}
.gx7-number{position:absolute;bottom:-7%;right:-2%;z-index:11;display:grid;place-items:center;width:25%;aspect-ratio:1;border-radius:50%;border:2px solid #fff4bf;background:linear-gradient(#ffe898,#ffba32);box-shadow:0 0 1.5cqw #ffdb5f;color:#51366c;font-size:3.2cqw;font-weight:1000}
.gx7-podium-caption{position:absolute;bottom:-10%;left:11%;width:78%;min-height:9%;display:flex;align-items:center;justify-content:center;padding:.4cqw;border:1px solid #8e66ff;border-radius:999px;background:#151349ec;box-shadow:0 0 2.5cqw #ae5dffbb;color:#ffdc8c;font-size:2.7cqw;font-weight:900;white-space:nowrap}
.gx7-reveal-summary{position:absolute;top:61.3%;left:4%;width:92%;height:8%;display:flex;flex-direction:column;justify-content:center;gap:5%;text-shadow:0 0 1.7cqw #ffc0568f}
.gx7-reveal-summary small{font-size:2.9cqw;font-weight:800;color:#b6dbff;letter-spacing:.08em}
.gx7-reveal-summary strong{font-size:5.1cqw;color:#ffd76a;font-style:italic;font-weight:1000;line-height:1.1}
.gx7-win-grid{position:absolute;left:2.5%;top:70%;width:95%;height:13%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:1.5cqw}
.gx7-win-grid.is-one{grid-template-columns:minmax(0,43%);justify-content:center}
.gx7-win-card{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.7cqw;min-width:0;min-height:0;padding:1.4cqw .4cqw;border:1px solid #5bcbff;border-radius:3cqw;
  background:linear-gradient(160deg,#2050b4d9,#111247f5 64%,#2a1255e8);box-shadow:inset 0 1px #fff8,0 0 1.8cqw #4dcaffaa;opacity:.35;transform:scale(.92);filter:saturate(.65);transition:opacity 250ms ease,transform 400ms ease,filter 400ms ease}
.gx7-win-card:nth-child(2),.gx7-win-card:nth-child(4){border-color:#f07dff;box-shadow:inset 0 1px #fff8,0 0 1.8cqw #d35bff9c}
.gx7-win-card.is-open{opacity:1;transform:scale(1);filter:none}
.gx7-win-card img{min-width:0;width:93%;height:50%;object-fit:contain;filter:drop-shadow(0 0 1cqw #8ce2ff)}
.gx7-win-card strong{font-size:2.55cqw;line-height:1.03;text-transform:uppercase;color:#fff;font-weight:1000;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.gx7-win-card small{font-size:1.9cqw;font-weight:900;color:#ffe59d}
.gx7-reveal-actions{position:absolute;left:4%;top:85%;width:92%;height:12.3%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1cqw}
.gx7-reveal-demo{position:absolute;bottom:.5%;left:0;width:100%;font-size:1.7cqw;color:#828cb0;letter-spacing:.1em}
@keyframes gx7-float{to{transform:translateY(-3%) rotate(4deg)}}
@keyframes gx7-ping{from{transform:scale(.65);opacity:.9}to{transform:scale(2);opacity:0}}
#gx7-reveal.gx7-burst .gx7-stage-rays{animation:gx7-burst .53s ease-out}
@keyframes gx7-burst{0%{filter:blur(10px) brightness(.7)}50%{filter:blur(5px) brightness(2.4)}100%{filter:blur(13px) brightness(1)}}
.gx7-button{min-width:0;min-height:0;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:6px;border:1.5px solid #dba6ff;background:#2c1e70;color:#fff;
  font:950 italic clamp(11px,3.4cqw,18px) Inter,Arial,sans-serif;letter-spacing:.01em;cursor:pointer;padding:0 5px;text-align:center;
  box-shadow:inset 0 2px #fff7,0 .7cqw 0 #170b42,0 0 2cqw #aa67ff8c;
  transition:transform 160ms ease,filter 160ms ease,box-shadow 160ms ease}
.gx7-button:active{transform:translateY(.5cqw) scale(.965);filter:brightness(1.3);box-shadow:inset 0 2px #fff9,0 0 2.5cqw #edbdff}
.gx7-button-gold{background:linear-gradient(180deg,#fff1b5,#ffc84b 55%,#fc9730);color:#3b2054;border-color:#fff2c9;box-shadow:inset 0 2px #fff9,0 .7cqw #a85c22,0 0 2.5cqw #ffb94ab3}
.gx7-button-secondary{background:linear-gradient(#6436bb,#26135c);border-color:#cf83ff}
.gx7-button-quiet{background:#12113e;border-color:#6f6fad;box-shadow:inset 0 1px #ddd5ff66}
.gx7-button-outline{background:linear-gradient(#1b1a68,#16103e);border-color:#6ad9ff;box-shadow:inset 0 1px #fff6,0 0 10px #46d0ff88}
/* The reward hub floats independently of the artboard and respects browser
   toolbar, status bar, notch and PWA home-indicator safe insets. */
#gx7-hub[hidden],#gx7-dialog[hidden]{display:none!important}
#gx7-hub,#gx7-dialog{position:fixed;inset:0;z-index:2147483000;background:#06091ae8;color:#fff;font-family:Inter,Arial,system-ui,sans-serif}
#gx7-hub{overflow:hidden;display:flex;justify-content:center;align-items:stretch}
.gx7-shell{display:flex;flex-direction:column;height:100%;width:min(100%,540px);min-height:0;background:
  radial-gradient(ellipse at 50% -10%,#5431ae8c,transparent 58%),
  radial-gradient(ellipse at 65% 50%,#254f9d4f,transparent 70%),#0a0c2d;
  box-shadow:0 0 28px #07091f}
.gx7-hub-header{padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 13px;flex-shrink:0;
  display:flex;align-items:center;gap:10px;min-height:76px;
  border-bottom:1px solid #8d69ed77;background:linear-gradient(#121443e8,#1e1655cc)}
.gx7-back{width:43px;height:43px;border-radius:50%;flex:none;background:linear-gradient(#51369b,#1e1758);
  border:2px solid #a48af3;color:#fff;font-size:30px;box-shadow:inset 0 2px #ffffff5e,0 0 12px #7b64ff90}
.gx7-brand{display:flex;flex-direction:column;align-items:center;gap:0;flex:1;min-width:0}
.gx7-brand img{display:block;width:min(100%,190px);height:44px;object-fit:contain;filter:drop-shadow(0 0 10px #5f9bff99)}
.gx7-brand small{font-size:9px;letter-spacing:.23em;color:#adf8ff;font-weight:850}
.gx7-preview-tag{flex:none;border-radius:999px;color:#ffdd78;border:1px solid #ffc95c;padding:6px 9px;font-size:10px;font-weight:1000}
.gx7-body{flex:1;overflow-x:hidden;overflow-y:auto;min-height:0;padding:17px 17px 30px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.gx7-tabs{flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:9px 9px calc(8px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg,#201257,#0a0b2b);border-top:1px solid #8b66ee9c;box-shadow:0 -5px 22px #7d3dff66}
.gx7-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:49px;padding:3px 1px;background:transparent;border:1px solid transparent;border-radius:12px;color:#abafd6;font-size:23px;font-weight:900;cursor:pointer}
.gx7-tabs button span{font-size:9px;letter-spacing:.02em}
.gx7-tabs button.is-active{color:#ffe190;background:linear-gradient(#442a83,#281454);border-color:#ae76f0;box-shadow:0 0 11px #ba62ff88}
.gx7-kicker{font-size:10px;letter-spacing:.18em;color:#75ebff;font-weight:900;text-transform:uppercase}
.gx7-heading{font-size:clamp(27px,7vw,42px);font-weight:1000;font-style:italic;letter-spacing:-.04em;margin:8px 0 17px;text-shadow:0 3px #211046,0 0 12px #6745dd}
.gx7-heading em{font-style:italic;color:#ffcf61;text-shadow:0 0 14px #f39e4f}
.gx7-hero{min-height:133px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:20px 15px 16px;border-radius:22px;
 background:linear-gradient(125deg,#3b257b,#2253a3 66%,#161158);border:1.5px solid #9ee4ff;
 box-shadow:inset 0 2px #ffffff5e,0 7px 0 #161044,0 0 19px #517bff79}
.gx7-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 84% 48%,#80e7ff7d,transparent 42%);pointer-events:none}
.gx7-hero>div{position:relative;z-index:1;display:flex;flex-direction:column;gap:6px}
.gx7-hero small{font-size:10px;letter-spacing:.08em;color:#b7e6ff;font-weight:900}
.gx7-hero strong{font-size:clamp(29px,9vw,46px);color:#ffe188;font-weight:1000;white-space:nowrap;text-shadow:0 2px #513073,0 0 12px #ffcc6599}
.gx7-hero span:not(.gx7-hero-orb){font-size:11px;color:#d9d9ff}
.gx7-hero-orb{font-size:54px;font-weight:950;color:#ffdc77;filter:drop-shadow(0 0 14px #ffce74c9)}
.gx7-hero-money{background:linear-gradient(125deg,#282867,#4540a0,#1b205e)}
.gx7-two,.gx7-three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0}
.gx7-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.gx7-kpi{display:flex;flex-direction:column;min-height:78px;justify-content:center;gap:9px;padding:12px;border:1px solid #8a77d8;border-radius:15px;
 background:linear-gradient(140deg,#2b2465,#19133e);box-shadow:inset 0 1px #fff4,0 0 13px #6848cf54}
.gx7-kpi.blue{border-color:#64dfff}.gx7-kpi.pink{border-color:#da7fff}.gx7-kpi.gold{border-color:#ffd16c}
.gx7-kpi small{font-size:10px;color:#aebde4;font-weight:800;letter-spacing:.03em}
.gx7-kpi strong{font-size:clamp(17px,5vw,26px);color:#ffe39e;line-height:1.05;font-weight:1000}
.gx7-three .gx7-kpi{padding:10px 6px;min-height:72px}
.gx7-three .gx7-kpi small{font-size:9px}.gx7-three .gx7-kpi strong{font-size:14px}
.gx7-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:24px 0 12px;font-size:13px;font-weight:1000;letter-spacing:.06em;color:#f4f0ff}
.gx7-section-title button{background:transparent;border:0;color:#7fe5ff;font-size:11px;font-weight:900}
.gx7-muted{font-size:10px;color:#8990bb;font-weight:800}
.gx7-empty{display:flex;flex-direction:column;align-items:center;gap:9px;padding:27px 12px;border:1px dashed #7164bf;border-radius:18px;background:#151443c7;text-align:center}
.gx7-empty>span{font-size:34px;color:#f7c86b}
.gx7-empty strong{font-weight:950;color:#fff}.gx7-empty small{font-size:12px;color:#b2b8dc;line-height:1.6}
.gx7-award,.gx7-physical,.gx7-tx,.gx7-earn-row{display:flex;align-items:center;gap:10px;padding:12px;background:linear-gradient(#251d60,#171439);border:1px solid #6257ae;border-radius:15px;margin-bottom:9px;box-shadow:inset 0 1px #ffffff29;color:#fff;text-align:left}
.gx7-award>img{width:52px;height:54px;object-fit:contain}
.gx7-award>div,.gx7-physical>div{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.gx7-award strong,.gx7-physical strong{font-size:13px}.gx7-award small,.gx7-physical small{font-size:11px;color:#acbce1;line-height:1.6}
.gx7-award-tag{border-radius:999px;padding:5px 7px;border:1px solid #f5c663;color:#ffe19e;font-size:9px;font-weight:900}
.gx7-physical>span{font-size:38px}.gx7-physical{background:linear-gradient(120deg,#3d2268,#1d194b)}
.gx7-footnote{font-size:11px;line-height:1.65;color:#a7afd1;margin-top:14px}
.gx7-body>.gx7-button{width:100%;min-height:48px;font-size:13px;margin-top:17px}
.gx7-filter{display:flex;gap:6px;margin:14px 0 18px}
.gx7-filter button{min-height:39px;flex:1;border:1px solid #6d64ab;border-radius:999px;background:#181745;color:#bac5ea;font-size:11px;font-weight:900}
.gx7-filter button.is-active{border-color:#92e3ff;background:#2f3f91;color:#f9f8ff;box-shadow:0 0 13px #75cfff66}
button.gx7-tx{display:flex;width:100%;cursor:pointer;appearance:none}
.gx7-tx-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#3646a0;color:#ffe69a;box-shadow:0 0 13px #5f8cfc8c;flex:none;font-size:21px}
.gx7-tx-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.gx7-tx-body strong{font-size:13px}.gx7-tx-body small{font-size:10px;color:#bec9e4}
.gx7-tx-body>span{font-size:10px;color:#989dcc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gx7-tx-values{display:flex;align-items:end;flex-direction:column;gap:5px;flex:none}
.gx7-tx-values strong{font-size:11px;color:#ffc46e}.gx7-tx-values small{font-size:11px;color:#89ffcd}
.gx7-earn-row{padding:11px 10px}
.gx7-earn-glyph{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#34216b;color:#ffdf85;flex:none;font-size:21px}
.gx7-earn-row>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.gx7-earn-row>div strong{font-size:12px}.gx7-earn-row>div small{font-size:10px;color:#adafdb;line-height:1.35}
.gx7-earn-value{font-size:11px;color:#ffe695;white-space:nowrap}
.gx7-callout{padding:15px;margin:14px 0;border-radius:15px;border:1px solid #5c91ed;background:linear-gradient(#192e68,#171646)}
.gx7-callout strong{color:#aee6ff;font-size:12px}.gx7-callout p{font-size:11px;color:#b5bee0;line-height:1.7;margin:7px 0 0}
.gx7-verify-card{display:flex;align-items:flex-start;gap:12px;margin:11px 0;padding:14px 12px;border-radius:16px;border:1px solid #7955bb;background:linear-gradient(115deg,#31246d,#181642);box-shadow:inset 0 1px #ffffff33}
.gx7-verify-icon{width:46px;height:46px;border-radius:14px;border:1px solid #93ddff;background:#2a428a;display:grid;place-items:center;font-size:26px;flex:none;color:#e5f9ff}
.gx7-verify-card>div:last-child{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.gx7-verify-card strong{font-size:13px}
.gx7-status{font-size:10px;color:#ffc683;font-weight:850}
.gx7-verify-card small{font-size:11px;line-height:1.6;color:#b1badd}
.gx7-verify-card button{min-height:35px;border:1px solid #a185f5;background:#2c216f;color:#dbd5ff;border-radius:999px;font-weight:900;font-size:10px;padding:0 12px}
.gx7-steps{display:flex;flex-direction:column;gap:11px;margin:19px 0 5px;padding:17px;border-radius:18px;background:linear-gradient(#2b2364,#17143f);border:1px solid #b285ff}
.gx7-steps strong{font-size:12px;color:#ffe28c}
.gx7-steps>span{font-size:11px;color:#c6cafa}
#gx7-dialog{display:grid;place-items:center;padding:18px;background:#030519c9}
.gx7-modal{width:min(100%,460px);max-height:calc(100dvh - 38px);overflow-y:auto;position:relative;padding:30px 20px 20px;border-radius:22px;background:linear-gradient(145deg,#42277c,#121240);border:2px solid #a37bff;box-shadow:0 0 35px #ba60ff7d}
.gx7-modal-x{position:absolute;right:11px;top:9px;width:35px;height:35px;border-radius:50%;border:1px solid #9884e9;background:#1c1a50;color:#fff;font-size:22px}
.gx7-modal h3{margin:11px 0;font-size:24px;color:#ffe1a0}
.gx7-modal p{line-height:1.75;color:#cbd0ea;font-size:13px}
.gx7-modal-alert{font-size:11px;color:#ffd78d;margin:15px 0;padding:10px;border-radius:10px;background:#442a67}
.gx7-modal>.gx7-button{width:100%;min-height:49px;font-size:15px}
@media(max-width:380px){
 .gx7-body{padding:14px 12px 27px}
 .gx7-hub-header{padding-left:12px;padding-right:12px}
 .gx7-reveal-summary strong{font-size:4.7cqw}
}
@media(max-height:700px){
 .gx7-hub-header{padding-top:calc(env(safe-area-inset-top,0px) + 7px);padding-bottom:7px}
 .gx7-tabs{padding-top:5px}
}

/* V7 visual QA refinements, 5x headline/caption no longer collide. */
.gx7-reveal-summary{top:64.0%!important;height:6.1%!important}
.gx7-win-grid{top:71.5%!important;height:12.2%!important}
.gx7-reveal-actions{top:85.15%!important;height:12.3%!important}
body.g4-active.g4-legacy-play:has(#screen-reveal:not([hidden])) .gx6-hud{display:none!important}
/* Covers legacy printed HUD behind live balance/status only, leaves branded header below. */
body.g4-active.g4-legacy-play:has(#screen-buddy:not([hidden])) .gx6-hud::before,
body.g4-active.g4-legacy-play:has(#screen-arena:not([hidden])) .gx6-hud::before{
  content:"";position:absolute;left:-3%;right:-3%;top:-10%;height:121%;z-index:-1;
  pointer-events:none;background:linear-gradient(180deg,#090d2bf0,#0d1241eb 68%,#101143b0);
  border-radius:999px;filter:drop-shadow(0 0 6px #181c47);
}
.gx7-form-preview{margin:12px 0;padding:12px;border-radius:14px;background:#1b1746;border:1px solid #635db0}
.gx7-form-preview-label{font-size:11px;color:#8ce9ff;font-weight:950;letter-spacing:.09em;margin-bottom:10px}
.gx7-form-preview label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;color:#aeb9df;font-size:11px;font-weight:850}
.gx7-form-preview input{width:100%;height:42px;background:#2a225b;border:1px solid #635ba4;border-radius:10px;padding:0 12px;color:#9a99bb;font-size:13px}
.gx7-form-preview input:disabled{opacity:.8;cursor:not-allowed}
.gx7-form-preview button{height:42px;width:100%;border:1px solid #8775bd;border-radius:999px;background:#3a2d5a;color:#b4aace;font-weight:900;cursor:not-allowed}

/* V7.2: visible-art pick hotspots, contextual controls, daily limit and PWA fix. */
body.g4-active.g4-legacy-play{
  display:flow-root!important;height:100dvh!important;min-height:0!important;
  overflow-y:hidden!important;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule{
  opacity:1!important;display:block!important;border:0!important;outline:0;
  border-radius:50%!important;background:transparent!important;background-image:none!important;
  box-shadow:none!important;filter:none!important;transform:none!important;
  transition:none!important;z-index:var(--z)!important;touch-action:manipulation;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule::before{
  display:block!important;content:"";position:absolute!important;inset:5%!important;
  width:auto!important;height:auto!important;border-radius:50%!important;
  background:transparent!important;border:3px solid transparent!important;
  opacity:0;filter:none!important;box-shadow:none!important;transform:scale(.95);
  transition:opacity .22s ease,transform .25s ease;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule.is-selected{
  background:transparent!important;background-image:none!important;
  opacity:1!important;box-shadow:none!important;filter:none!important;
  transform:none!important;z-index:30!important;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule.is-selected::before{
  opacity:1!important;transform:scale(1)!important;
  border-color:#b8faff!important;
  background:radial-gradient(ellipse,#fff7a626 0%,transparent 67%)!important;
  box-shadow:inset 0 0 16px #80ecff95,0 0 0 2px #fff9d6aa,0 0 19px 6px #ffd65b9e!important;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule::after{
  display:none!important;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule.is-selected::after{
  display:grid!important;content:"✓";position:absolute!important;left:auto!important;
  top:42%!important;bottom:auto!important;right:0%!important;width:28px!important;height:28px!important;
  border-radius:50%!important;border:2px solid #fffad1!important;
  color:#423064!important;font-size:17px!important;font-weight:1000!important;
  background:linear-gradient(#fff5c5,#ffbd38)!important;
  box-shadow:0 0 14px #ffe877ed!important;place-items:center;
  pointer-events:none;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule:focus-visible{
  outline:3px solid #fff4ac!important;outline-offset:-2px!important;
}
body.g4-active.g4-legacy-play #screen-arena .capsule-crowd .capsule:active:not(.is-selected)::before{
  opacity:1!important;border-color:#acfcff!important;
}
body.g4-active.g4-legacy-play #screen-arena #gx7-availability{
  position:absolute;top:70.7%;left:15%;width:70%;height:4.1%;z-index:16;
  display:flex!important;align-items:center;justify-content:center;padding:2px 9px;
  border:1px solid #81defee0;border-radius:999px;background:#161445ed;
  color:#c8f5ff;font:900 clamp(10px,2.7cqw,14px)/1.1 Inter,Arial,sans-serif;
  text-shadow:0 0 9px #55e9ff88;letter-spacing:.015em;text-align:center;
  box-shadow:inset 0 1px #ffffff53,0 0 13px #458afd70;
  white-space:nowrap;pointer-events:none;
}
body.g4-active.g4-legacy-play #screen-arena #gx7-availability.is-low{
  color:#fff3ae;border-color:#ffc85f;background:#30204feb;
}
body.g4-active.g4-legacy-play #screen-arena #gx7-availability.is-exhausted{
  color:#ffe5c0;border-color:#ffad65;background:#39234aeF;
}
body.g4-active.g4-legacy-play #screen-arena #open-btn{
  min-height:44px!important;isolation:isolate;box-shadow:none!important;
}
body.g4-active.g4-legacy-play #screen-arena #open-btn > span#open-btn-label{
  visibility:visible!important;position:absolute!important;inset:0!important;
  display:flex!important;align-items:center;justify-content:center;gap:4px;
  padding:1px 9px!important;text-align:center;white-space:nowrap;pointer-events:none;
  font:1000 italic clamp(13px,3.6cqw,19px)/1 Inter,Arial,sans-serif!important;
  color:#3c1f4c!important;border:2px solid #fff0b1;border-radius:999px!important;
  background:linear-gradient(#fff8b6 1%,#ffdc5c 42%,#ffad30 100%)!important;
  text-shadow:0 1px #fff9aa80!important;
  box-shadow:inset 0 3px 5px #ffffffb9,inset 0 -3px 5px #d67128c2,0 3px 0 #964e35,0 0 19px #ffc642d0!important;
}
body.g4-active.g4-legacy-play #screen-arena #open-btn > span#open-btn-label::after{
  content:" ↗";font-style:normal;font-weight:1000;
}
body.g4-active.g4-legacy-play #screen-arena #open-btn:disabled > span#open-btn-label{
  color:#c5d4e5!important;border-color:#7e90a8!important;
  background:linear-gradient(#5a6681,#303953 70%,#202640)!important;
  text-shadow:none!important;
  box-shadow:inset 0 2px #ffffff30,0 2px #192137,0 0 11px #52739873!important;
}
body.g4-active.g4-legacy-play #screen-arena #open-btn:disabled > span#open-btn-label::after{
  content:"";
}
body.g4-active.g4-legacy-play #screen-arena #auto-pick-btn{
  min-height:44px!important;
  color:#fff!important;font:900 italic clamp(12px,3.1cqw,17px)/1 Inter,Arial,sans-serif!important;
  border:2px solid #e0b0ff!important;
  background:linear-gradient(#7541d4,#302183 62%,#171252)!important;
  text-shadow:0 1px #171148!important;
  box-shadow:inset 0 2px #ffffff88,0 2px #241253,0 0 16px #a15affca!important;
}
body.g4-active.g4-legacy-play #screen-arena #auto-pick-btn:disabled{
  color:#adb8d0!important;border-color:#65729e!important;
  background:linear-gradient(#4e5579,#282a4e)!important;box-shadow:none!important;
}
body.g4-active.g4-legacy-play #screen-arena .qty-btn:disabled{
  cursor:not-allowed!important;
}
body.g4-active.g4-legacy-play #screen-arena .qty-btn:disabled::after{
  content:"UNAVAILABLE";position:absolute!important;inset:2%!important;
  display:flex!important;align-items:center;justify-content:center;
  border-radius:18%!important;background:#161a36ef!important;
  color:#bccce4!important;font:900 clamp(10px,2.7cqw,14px)/1 Inter,Arial,sans-serif!important;
  border:1px solid #6b729b!important;text-shadow:0 1px #000!important;
  z-index:3!important;
}
@media (max-height:620px){
  body.g4-active.g4-legacy-play #screen-arena #gx7-availability{
    top:70.2%;height:4.7%;font-size:clamp(9px,2.7cqw,12px);
  }
  body.g4-active.g4-legacy-play #screen-arena #open-btn,
  body.g4-active.g4-legacy-play #screen-arena #auto-pick-btn{
    min-height:44px!important;
  }
}

/* V7.3: menu pages reserve a real header row, instead of overlaying the title.
   Artwork screens remain completely unchanged. */
body.g4-active.g4-legacy-play #app.gx7-content-mode{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-content:stretch!important;
  gap:10px!important;
  padding:12px 12px 0!important;
  overflow:hidden!important;
  background:radial-gradient(ellipse at 50% -10%,#2e215e 0%,#080a23 60%)!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud{
  grid-row:1!important;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  z-index:30!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1.15fr) minmax(0,1.15fr) minmax(68px,.7fr)!important;
  gap:6px!important;
  justify-content:space-between!important;
  align-items:stretch!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud::before{
  display:none!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud button{
  height:48px!important;min-height:48px!important;min-width:0!important;
  padding:0 4px!important;
  font-size:clamp(12px,3.35cqw,17px)!important;
  white-space:nowrap!important;
  gap:4px!important;
  text-overflow:ellipsis!important;
  overflow:hidden!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud .gx6-back{
  font-size:30px!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode > #screens{
  grid-row:2!important;
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode #screen-rules:not([hidden]),
body.g4-active.g4-legacy-play #app.gx7-content-mode #screen-wallet:not([hidden]){
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:10px 10px 28px!important;
  margin:0!important;
  border:0!important;
  box-sizing:border-box!important;
  background:transparent!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode #screen-rules .step-line,
body.g4-active.g4-legacy-play #app.gx7-content-mode #screen-wallet .step-line{
  margin-bottom:12px!important;
  padding:0 1px!important;
  font-size:10px!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .section-heading{
  margin:4px 0 22px!important;
  font-size:clamp(29px,9.2cqw,44px)!important;
  line-height:1.08!important;
  overflow-wrap:anywhere;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .rules-block{
  display:flex!important;
  align-items:flex-start!important;
  gap:14px!important;
  padding:18px 0!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .rules-ordinal{
  flex:none!important;
  font-size:32px!important;
  line-height:1.1!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .rules-block > div:last-child{
  min-width:0!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .rules-block strong{
  font-size:clamp(14px,4cqw,17px)!important;
  line-height:1.2!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .rules-block p{
  margin-top:7px!important;
  font-size:clamp(12px,3.65cqw,15px)!important;
  line-height:1.55!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .odds-heading{
  flex-wrap:wrap!important;
  row-gap:7px!important;
  font-size:16px!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode .rules-home-btn{
  display:block!important;
  width:100%!important;
  min-height:48px!important;
  margin-bottom:20px!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode > .demo-label{
  display:none!important;
}
body.g4-active.g4-legacy-play #app.gx7-content-mode #toast{
  position:absolute!important;
  top:70px!important;
  z-index:40!important;
}
/* The daily-cap notice now states the unlimited demo policy explicitly. */
body.g4-active.g4-legacy-play #screen-arena #gx7-availability{
  background:#17143f!important;
  min-height:22px!important;
  text-shadow:none!important;
}
@media(max-width:360px){
  body.g4-active.g4-legacy-play #app.gx7-content-mode{
    padding:8px 8px 0!important;
    gap:6px!important;
  }
  body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud{
    grid-template-columns:44px minmax(0,1fr) minmax(0,1fr) 62px!important;
    gap:4px!important;
  }
  body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud button{
    font-size:clamp(10px,3.25cqw,13px)!important;
  }
  body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud .gx6-goldicon,
  body.g4-active.g4-legacy-play #app.gx7-content-mode > .gx6-hud .gx6-diamond{
    display:none!important;
  }
}
