/* GOLD V27 — shared visual system, loaded after legacy styles. */
:root{--lime:#e4ff00;--gold-lime:#e4ff00;--gold-bg:#080d12;--gold-panel:#101e2b;--gold-border:#69829e;--gold-radius:12px;color-scheme:dark}
html,body{background:linear-gradient(125deg,#080d12 0 31%,#182313 31% 33%,#080d12 33% 65%,#10212a 65% 67%,#080d12 67%) fixed!important;color:#f4f7fc!important}
body #app{background:transparent!important;width:min(100%,620px);}
body .top .brand{font-style:italic;font-weight:1000;color:var(--lime)!important;text-shadow:0 0 12px #e4ff0040;font-size:clamp(32px,9vw,48px)!important}
body .top .tag{background:#101918!important;color:var(--lime)!important;border:1px solid var(--lime);border-radius:12px;box-shadow:0 0 9px #dfff0038,inset 0 0 5px #dfff0030;padding:8px 10px!important}
body button:not(.card):not(.hub99-dot):not(.clash96-button),body .gold-shell-actions a{border-radius:9px;}
body :is(.tool,.mini,.secondary,.hub99-tabs button,.studio12-tabs button,.s90-tabs button,.gold-social-panel button,.gold-staff button,.gold-shell-actions button,.gold-shell-actions a,.net-button,.hub99-rules summary){background:linear-gradient(180deg,#26394c 0%,#142333 47%,#0b141d 100%)!important;color:#f4f7fc!important;border:1px solid #8298b2!important;box-shadow:inset 0 1px 1px #d7e8ff45,0 3px 0 #05090f!important;text-shadow:0 1px 2px #000;font-weight:800}
body :is(.primary,.coin,.hub99-tabs button.active,.studio12-tabs button.active,.s90-tabs button.active,.gold-social-panel nav button[aria-selected=true],.gold-inventory-actions [data-gold-collect]){background:linear-gradient(180deg,#f1ff48,#dfff00 55%,#b7d500)!important;color:#101500!important;border:1px solid #f2ff9b!important;border-radius:10px;box-shadow:inset 0 1px 2px #fff9,0 0 12px #dfff0040,0 3px 0 #708500!important;text-shadow:none!important}
body :is(.panel,.evo-stage,.studio12-preview,.studio12-item,.s90-card,.s98-preview,.premium12-card,.gold-team-card,.gold-ticket,.gold-staff,.gold-inventory-actions,.gold-onboarding,.gold-guest-guide,.hub99-player,.ranking,.map-panel,.arena,.result,.gold-chat-log,.gold-social-panel,.profile12-panel,.cosmetic16-panel,.share20-panel,.studio12-modal,.modal,.install-panel){background:linear-gradient(145deg,#1c3045,#111e2b 52%,#0b141e)!important;border:1px solid #69829e!important;border-radius:13px!important;box-shadow:inset 0 1px 0 #d2e5ff26,0 4px 12px #0005!important;color:#f5f7fc}
body :is(input:not([type=checkbox]):not([type=range]),select,textarea){background:#101b29!important;color:#f5f7fc!important;border:1px solid #71869e!important;border-radius:8px;min-height:36px;}
body .hub99-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;padding:3px 0 7px}
body .hub99-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px!important;font-size:clamp(8px,2.3vw,12px)!important;line-height:1.15;padding:5px 0!important;white-space:nowrap}
.gold-nav-icon{font-size:23px;line-height:1;display:block}.hub99-tabs button:last-child:not(.active){border-color:#dfff00!important;color:#dfff00!important}
body .hub99-page{padding:5px 2px 16px!important}body .hub99-page h2,.gold-social-panel h2{font-size:clamp(20px,5vw,29px)!important;font-weight:950;font-style:italic;letter-spacing:-.5px}
body .studio12-preview{min-height:190px!important;display:grid!important;grid-template-columns: minmax(0,1fr) minmax(0,1fr)!important;align-items:center;background:radial-gradient(ellipse at 25% 60%,#38485a,#172539 55%,#0b141e)!important;padding:10px!important}
body .studio12-preview canvas{width:100%!important;height:auto!important;max-height:240px!important;object-fit:contain;filter:drop-shadow(0 5px 6px #0008)}
body .studio12-tabs{gap:4px!important}body .studio12-tabs button{min-height:48px!important;flex:1;font-size:10px!important}
body .gold-inventory-actions{display:grid;grid-template-columns:48px 1fr;gap:7px;align-items:center;padding:10px!important} .gold-inventory-actions:before{content:'♛';grid-row:1/3;display:grid;place-items:center;height:55px;border:2px solid #dfff00;border-radius:8px;background:linear-gradient(#26364b,#0c1118);color:#dfff00;font-size:30px;box-shadow:0 0 8px #dfff0055}.gold-inventory-actions h3{font-size:13px!important;margin:0!important}.gold-inventory-actions [data-gold-collect]{width:100%;margin:0!important;min-height:40px}.gold-inventory-actions [data-gold-status]{grid-column:1/-1;margin:0;font-size:11px!important}.gold-inventory-actions [data-gold-status]:empty{display:none}
.gold-clan-banner{padding:18px;text-align:center;background:radial-gradient(ellipse at top,#30445b,#101c29);border:1px solid #7894af;border-radius:14px;margin-bottom:10px}.gold-clan-banner .crest{font-size:48px;color:#dfff00;text-shadow:0 0 12px #dfff0066}.gold-clan-banner h2{margin:4px!important;color:#dfff00}.gold-clan-banner p{color:#c7d3e3}.gold-clan-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gold-clan-actions button{min-height:48px}
body .gold-social-panel{padding:12px!important;width:min(620px,100%)!important;max-height:94dvh}.gold-social-panel header h2{color:#dfff00}.gold-social-panel nav button{flex:1}.gold-chat-message{margin:5px 0;border:1px solid #536b86!important;border-radius:10px;background:linear-gradient(#25384a,#172637);padding:8px!important}.gold-chat-message.mine{background:linear-gradient(#36432b,#1d2d24)!important}.gold-chat-message time{color:#bac9d8!important}.gold-team-roster li{border:1px solid #536b86!important;border-radius:9px;margin:5px 0;padding:8px!important;background:linear-gradient(#24384a,#111e2b)}
body .gold-staff{padding:12px;margin:10px 0}body .gold-staff h2,body .gold-staff h3{color:#dfff00}body #goldAuthStatus{font-weight:800;color:#dfff00}body .gold-staff button{min-height:44px}body .gold-staff input{max-width:100%}
body .card{border-radius:12px!important;border:2px solid #a8bacd!important;box-shadow:inset 0 2px 0 #ffffff55,0 4px 0 #050a0f!important}body .card.boost{background:linear-gradient(#efff61,#b9d900)!important}body .card.sabotage{background:linear-gradient(#ff6c70,#ad263c)!important}body .card.shield{background:linear-gradient(#f5fbff,#93b9df)!important}body .track{border-radius:12px;border:1px solid #536b86;background:#0d1824!important}body .fill{border-radius:10px}body .timer{color:#f5f7fc;text-shadow:0 2px 0 #000}body .arena .phase{color:#dfff00}
body .gold-social-shade{background:#050a10e8!important}body .hub99-player{flex-basis:46%!important}body .hub99-player canvas{width:85px;height:85px}
@media(max-width:360px){body .hub99-tabs button{font-size:8px!important}.gold-nav-icon{font-size:19px}.gold-social-panel{padding:8px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.gold-inventory-actions [hidden]{display:none!important}.gold-social-panel form button[type=submit]{background:linear-gradient(#f1ff48,#dfff00)!important;color:#111!important;text-shadow:none!important}.gold-chat-choices button{flex:1}.gold-team-card strong{color:#dfff00}.gold-staff [hidden]{display:none!important}
/* V28: reference-driven composition, no static screen overlays. */
:root{--gold-metal:#829dbb;--gold-dark:#080f17;--gold-shine:#edff44}
html,body{background:linear-gradient(124deg,#070b0e 0 20%,#26330a 20% 23%,#080d12 23% 67%,#10262d 67% 71%,#080d12 71%) fixed!important}
body .top .brand{font-family:Impact,'Arial Black',sans-serif;font-size:clamp(46px,11vw,66px)!important;letter-spacing:-4px;line-height:1.03;text-shadow:0 2px #8a9f00,0 0 10px #dfff0055}
body .top .tag{font-weight:950;font-size:clamp(9px,2.4vw,14px)!important;border:2px solid #e4ff00;border-radius:15px;box-shadow:0 0 7px #dfff0077,inset 0 0 5px #dfff0055}
body.hub99-active .toolbar{display:flex;gap:9px;padding:5px 1px 9px}
body .toolbar .account{flex:0 0 100%;width:100%;font-weight:800;font-size:clamp(12px,3.5vw,16px);overflow-wrap:anywhere}
body.hub99-active .toolbar :is(.tool,.coin){min-height:38px;padding:8px 10px;font-weight:900;font-size:12px}
body .toolbar .coin{font-size:20px!important;padding:5px 16px!important}
body .hub99-tabs{gap:4px!important;padding:5px 0 9px!important}
body .hub99-tabs button{min-height:65px!important;border:1.5px solid #6a86a8!important;border-radius:10px!important;background:linear-gradient(#253746,#101d2a 54%,#0a1119)!important;color:#f5f8ff!important;box-shadow:inset 0 1px 0 #d5e4ff77,0 3px 0 #04080c!important;font-weight:900;letter-spacing:-.35px}
body .hub99-tabs button.active{background:linear-gradient(#f3ff58,#e5ff00 50%,#b9d600)!important;border-color:#f6ffad!important;color:#101500!important;box-shadow:0 0 11px #dfff0060,inset 0 1px #fff,0 3px #809300!important}
.gold-nav-icon svg{display:block;width:25px;height:25px;filter:drop-shadow(0 2px 1px #0006)}
body .hub99-tabs button:last-child:not(.active){border-color:#dfff00!important;color:#dfff00!important}
body .studio12-preview,body .gold-clan-banner,body .profile12-hero,body .evo-stage{background:linear-gradient(90deg,#101a2a11,#07131d80),url('art/fortress.svg') center/cover!important;border:1.5px solid #7896b5!important;box-shadow:inset 0 1px #d8ecff55,0 3px 8px #0008!important}
body .studio12-preview{min-height:clamp(195px,53vw,320px)!important;padding:6px!important;gap:6px!important;grid-template-columns:1fr 1fr!important}
body .studio12-preview>div{display:grid;gap:8px;align-content:center;text-align:center;min-width:0}
.gold-hero-logo{font-family:Impact,'Arial Black',sans-serif;font-style:italic;color:#e4ff00;font-size:clamp(30px,10vw,64px);font-weight:1000;line-height:1;letter-spacing:-2px;text-shadow:0 3px #141b03}
body .studio12-preview strong{border:1px solid #e4ff00;border-radius:8px;background:#0a1417;color:#e4ff00;padding:7px 3px;text-shadow:0 1px #000;font-size:12px}
body .studio12-preview p{margin:0;font-size:11px;color:#c7d1df}
body .studio12-preview button{width:100%;min-height:36px;font-size:10px}
body .studio12-tabs button{background:linear-gradient(#27384e,#0c1825)!important;border:1px solid #6583a3!important;color:#f3f6ff!important;border-radius:10px!important;font-weight:900;min-height:48px!important;min-width:0;letter-spacing:-.4px;padding:4px 1px!important;font-size:clamp(8px,2.3vw,12px)!important}
body .studio12-tabs button.active{background:linear-gradient(#81578d,#392044)!important;border-color:#e6b0ff!important;box-shadow:0 0 7px #e6b0ff66!important;color:#fff!important}
body .gold-inventory-actions{grid-template-columns:minmax(68px,28%) 1fr!important;gap:6px!important;min-height:104px}
body .gold-inventory-actions:before{content:'';background: url('art/reward.webp') center/contain no-repeat;border:0;box-shadow:none;height:90px;grid-row:1/4}
body .gold-inventory-actions h3{font-size:clamp(11px,3.3vw,17px)!important}body .gold-inventory-actions [data-gold-collect]{min-height:44px!important;font-weight:950}
body .gold-social-shade{padding:0!important}body .gold-social-panel{width:min(100%,620px)!important;max-height:100dvh!important;min-height: min(80dvh,600px);border-radius:14px!important;padding:12px!important}
body .gold-social-panel header{border-bottom:1px solid #637b91;padding-bottom:9px}body .gold-social-panel header h2{font-size:26px!important}
body .gold-team-card{background:linear-gradient(135deg,#223a50,#0a1520)!important}body .gold-team-roster li{min-height:48px}body .gold-chat-message{background:linear-gradient(#2b4055,#182634)!important}body .gold-chat-message.mine{background:linear-gradient(#3c4c2c,#263823)!important}body .gold-chat-message p{font-size:14px!important;color:#f5f8ff}body .gold-chat-message strong{color:#f5f8ff}
body .gold-chat-log{max-height:46dvh;min-height:180px}body .gold-social-panel form:has(textarea){display:flex!important;flex-wrap:nowrap;align-items:stretch;gap:6px}body .gold-social-panel form:has(textarea) textarea{min-width:0;flex:1}body .gold-social-panel form:has(textarea) button{flex:none}
body .gold-clan-banner{min-height:150px;display:grid;grid-template-columns:30% 1fr;align-items:center;text-align:left;gap:8px}body .gold-clan-banner .crest{grid-row:1/3;font-size:68px;text-align:center}body .gold-clan-banner h2{font-size:30px!important;line-height:1}body .gold-clan-banner p{margin:0}
body .gold-clan-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body .gold-clan-actions button:first-child{background:linear-gradient(#f3ff58,#dfff00)!important;color:#101500!important;text-shadow:none!important;border-color:#f5ffad!important}
body :is(.studio12-modal,.profile12-panel,.modal,.gold-staff,.ranking,.map-panel){border:1.5px solid #829dbb!important;box-shadow:inset 0 1px #e2edff44,0 5px 15px #0008!important}
body :is(.profile12-panel,.studio12-modal,.gold-staff,.modal) button:not([disabled]){border-radius:9px!important}body :is(.profile12-panel,.studio12-modal,.gold-staff,.modal) button:focus-visible{outline:2px solid #e4ff00}
body :is(.hubbtn,.studio12-try,.studio12-more,.profile12-panel button,.gold-staff summary,.rank19-zone,.w61-launch){background:linear-gradient(#26394c,#101c28)!important;border:1px solid #7d95b1!important;color:#f4f7fc!important;border-radius:9px!important}
body :is(.studio12-equip,.premium12-buy,.gold-staff button[type=submit]){background:linear-gradient(#f3ff58,#dfff00)!important;color:#141900!important;border:1px solid #f7ffa4!important}
.gold-rank-columns{white-space:pre;text-align:center;font-weight:800;font-size:12px;color:#d5e2f1;border-bottom:1px solid #7894af;padding:8px 0}#rankList li{border-radius:8px;background:linear-gradient(#233449,#101b28);margin:4px 0}#rankList li.me{border:1px solid #e4ff00!important;box-shadow:0 0 7px #dfff0033}#rankList li .gold-win,#rankList li .gold-loss,#rankList li .gold-played{display:inline-block;min-width:25px;text-align:center;margin-left:4px;font-weight:900}.gold-win{color:#9bff26}.gold-loss{color:#ff626c}.gold-played{color:#dce8f5}
body .pixel-arena{background:linear-gradient(#16294122,#0a121c44),url('art/fortress.svg') center/cover!important;border:1.5px solid #7894af!important;border-radius:12px!important}body .arena{border-color:#829dbb!important}body .card{box-shadow:inset 0 2px #fff8,0 4px #04080e!important}body .clash96-button{border:2px solid #f4ff5c!important;box-shadow:0 0 15px #e4ff0077!important}
@media(max-width:360px){body .hub99-tabs button{min-height:56px!important}.gold-nav-icon svg{width:21px;height:21px}.gold-rank-columns{font-size:10px}}

/* V29: visual-only mobile corrections; preserve navigation and hidden state. */
body .theme20-control .brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important}
body .theme20-control .theme20-hint{position:static!important;display:block!important;font:600 9px system-ui!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;color:#b6c5d3!important;pointer-events:auto;line-height:1.2;transform:none!important}
body.hub99-active .top .brand{font-size:clamp(36px,10vw,52px)!important;letter-spacing:-2px}
body.hub99-active .toolbar{gap:6px;padding:3px 0 5px}
body .hub99-tabs button{min-height:54px!important;gap:3px}
body .hub99-page .player-id{background:linear-gradient(#253746,#111e2a)!important;border:1px solid #829dbb!important;border-radius:10px;padding:6px}
body #overlay:not(.hidden){z-index:2147483000;align-items:center;padding:12px;box-sizing:border-box}
body #overlay .modal{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;width:min(100%,460px);box-sizing:border-box}
body #overlay.hidden,body [hidden]{display:none!important}
body #overlay input{font-size:16px!important}
body #overlay button{min-height:44px;touch-action:manipulation}
body .hub99-page .gold-guest-guide{padding:10px!important;font-size:12px;line-height:1.4}
body .hub99-page .gold-guest-guide p{font-size:12px;margin:6px 0}

/* V30: stable mobile layout, no hint overlay */
body .theme20-control{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important}
body .theme20-control .theme20-hint{position:static!important;inset:auto!important;translate:none!important;transform:none!important;white-space:normal!important;max-width:100%!important}
body .theme20-control .theme20-hint::before{content:none!important;display:none!important}
body .top{gap:10px!important;align-items:center!important}body .top .tag{max-width:58%;white-space:normal;text-align:center}
body .hub99-page{min-width:0;box-sizing:border-box}body .hub99-page .player-id{min-height:42px;gap:6px}body .hub99-page .player-id span{min-width:0;overflow-wrap:anywhere}
body .top18-row{display:grid!important;grid-template-columns:24px 34px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:44px}body .top18-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .top18-row small{font-size:10px;white-space:nowrap;color:#e7ff79}
body .gold-social-panel{box-sizing:border-box;overflow-y:auto}body .gold-social-panel button{min-height:42px;white-space:normal}body .gold-chat-message{overflow-wrap:anywhere}body .gold-team-roster li{overflow-wrap:anywhere}
body .gold-inventory-actions [data-gold-status]{font-size:11px;overflow-wrap:anywhere}body .gold-inventory-actions [data-gold-ack]{display:none!important}

#rankList li strong{display:grid;grid-template-columns:repeat(4,minmax(20px,1fr));gap:3px;min-width:116px;text-align:center}#rankList .gold-draw{color:#d5e2f1}#rankList li strong span{font-variant-numeric:tabular-nums}
