/* V31: final responsive layer; presentation only, no game-state changes. */
:root{--ui-metal:#7893ad;--ui-ink:#0b1621;--ui-light:#e5ff00}
*,*::before,*::after{box-sizing:border-box}
body .theme20-control .theme20-hint{display:none!important}body .theme20-control .brand{margin:0!important;padding:0!important;position:static!important;transform:none!important;background:none!important;border:0!important;box-shadow:none!important}
body .top{display:flex!important;justify-content:space-between;flex-wrap:nowrap;min-height:0!important;gap:8px!important}body .top .tag{flex:0 1 auto;max-width:62%;line-height:1.2;overflow-wrap:anywhere}
body.hub99-active .toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto auto;gap:6px!important;align-items:center}body .toolbar .account{grid-column:1/-1;min-width:0}body.hub99-active .toolbar :is(.tool,.coin){min-width:0;max-width:100%;padding:7px!important;overflow-wrap:anywhere}body .toolbar .coin{font-size:clamp(14px,5vw,22px)!important}
body.hub99-active #app{height:100dvh!important;max-height:100dvh!important;gap:4px!important}body .hub99-tabs{flex-shrink:0;gap:5px!important}body .hub99-tabs button{min-height:54px!important;white-space:normal!important;overflow-wrap:normal;line-height:1.1!important;padding:5px 1px!important}body .gold-nav-icon svg{width:21px;height:21px}
body .hub99-page{scrollbar-width:thin;scrollbar-color:#52677d transparent;scroll-padding:8px;overscroll-behavior-y:contain}body .hub99-page :is(h2,h3){line-height:1.2;overflow-wrap:anywhere}body .hub99-page h2{display:flex;align-items:center;gap:8px;margin:14px 0 8px!important;color:#f5f8fc}body .hub99-page h2::before{content:'';width:4px;height:1em;background:#e5ff00;border-radius:3px;flex:none}
body :is(.studio12-tabs,.s90-tabs,.gold-shell-actions,.gold-clan-actions,.hub99-socialActions){gap:6px!important;align-items:stretch}body :is(.studio12-tabs,.s90-tabs,.gold-shell-actions,.gold-clan-actions,.hub99-socialActions) button{min-height:44px!important;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.2;padding:7px 5px!important}body .studio12-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible!important}body .studio12-tabs button{font-size:clamp(9px,2.5vw,12px)!important}body .studio12-tabs button .v31-icon,body .s90-tabs button .v31-icon{display:block;margin:0 auto 4px;width:20px;height:20px;color:inherit}
body .hub99-page #s97 .s90-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible!important}body .hub99-page #s97 .s90-tabs button{font-size:11px!important;min-width:0}body .s90-grid,body .studio12-grid{gap:8px!important}body :is(.s90-card,.studio12-item){min-width:0;overflow:hidden;contain:layout paint}body :is(.s90-name,.s90-meta,.studio12-item strong,.studio12-item small){overflow-wrap:anywhere;min-width:0}body .s90-name{min-height:0!important;font-size:13px}body .s90-buy{min-height:40px!important;background:linear-gradient(#efff49,#c5df00)!important;color:#101500!important}body .s90-buy:disabled{background:#263546!important;color:#aab8c8!important}body .s90-art{background:radial-gradient(ellipse at 50% 70%,#3a5267,#101b29)!important;border:1px solid #50667d}body .s90-art img{max-width:100%;object-fit:contain}
body :is(.s90-balance,.s90-pack,.s98-pack,.s98-trial,.daily99,.profile12-stats,.profile12-showcase,.community18-panel,.community18-log,.community18-message,.gold-reports article,.hub99-rules summary,.player-id){border:1px solid #7089a3!important;border-radius:11px!important;background:linear-gradient(155deg,#203447,#101c29 65%,#0a141e)!important;color:#f4f7fc;box-shadow:inset 0 1px #ffffff20!important}body .player-id{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:8px!important}body .player-id button{flex:none;max-width:100%}body .gold-social-panel{max-height:calc(100dvh - 18px)!important;overscroll-behavior:contain}body .gold-social-panel header{position:static!important}body .gold-social-panel nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}body .gold-social-panel form{min-width:0}body .gold-social-panel textarea{min-width:0!important}body .gold-chat-log{max-height:40dvh;min-height:110px}body .gold-team-roster li{min-width:0;overflow-wrap:anywhere}
body :is(#game,.combat10) .actions{flex-wrap:wrap;gap:5px;min-width:0}body :is(#game,.combat10) .cardgrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}body :is(#game,.combat10) .card{min-width:0;overflow:hidden;padding:7px 3px!important;white-space:normal!important}body :is(#game,.combat10) .card :is(.name,.effect,.stock){white-space:normal!important;overflow-wrap:anywhere;font-size:clamp(9px,2.8vw,13px)!important;line-height:1.15}body .duel-identities{min-width:0;gap:5px!important}body .duel-identity{min-width:0;overflow-wrap:anywhere}body .duel-deck-cards{min-width:0;overflow-x:auto;scrollbar-width:thin}body .pixel-arena{isolation:isolate;max-width:100%}body .arena{min-width:0;overflow-wrap:anywhere}body .arena .big{font-size:clamp(17px,5vw,27px)!important}body .soundbar{flex-wrap:wrap;gap:4px}body .modal{max-width:100%;max-height:calc(100dvh - 24px);overflow-y:auto}body :is(.modalshade,.profile12-shade,.studio12-shade){overscroll-behavior:contain}body :is(.modal,.profile12-panel,.studio12-modal) :is(input,select,textarea){max-width:100%;min-width:0;font-size:16px}
body button:focus-visible,body a:focus-visible{outline:2px solid #f0ff71;outline-offset:2px}body button:disabled{opacity:.65}body [hidden]{display:none!important}
@media(max-width:420px){body .studio12-preview{min-height:170px!important}body .hub99-tabs button{font-size:clamp(8px,2.5vw,11px)!important}body .profile12-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .gold-social-panel{padding:9px!important}body .top .tag{font-size:10px!important}body .hub99-position{min-height:20px!important}body .hub99-dot{height:20px;min-height:20px}}
@media(max-width:700px){html,body{background-attachment:scroll!important}body :is(.s90-card,.studio12-item,.hub99-player){box-shadow:inset 0 1px #ffffff20!important}body :is(.s90-art img,.studio12-preview canvas,.gold-nav-icon svg){filter:none!important}body :is(.modal,.gold-social-panel,.profile12-panel){backdrop-filter:none!important}}
@media(prefers-reduced-motion:reduce){body *{scroll-behavior:auto!important;animation-duration:.001s!important;transition-duration:.001s!important}}
/* V33: keep the scrolling wardrobe and mobile safe areas independent of the footer. */
body .hub99-page{min-height:0;max-width:100%;padding-bottom:12px!important}
body .hub99-page :is(.studio12-preview,.studio12-grid,.s90-grid,.gold-shell-actions){min-width:0;max-width:100%}
body .hub99-page canvas{max-width:100%;object-fit:contain}
body .gold-social-panel :is(nav,form,.gold-team-roster){min-width:0;max-width:100%}
body .gold-social-panel :is(button,input,textarea){max-width:100%;overflow-wrap:anywhere}
