/* Bounded cosmetics and one scrolling surface per dialog. Never resize the game grid. */
.duel-goal.with-voice-controls>.duel-goal-fruit,.duel-goal.with-voice-controls #duelGoalProgress{display:none}.duel-goal.with-voice-controls>div{width:100%;min-width:0;gap:3px}.duel-goal.with-voice-controls>div>small:first-child{display:none}.duel-goal.with-voice-controls b{font-size:12px;line-height:1.2}.duel-goal.with-voice-controls .voice-channel-toggle{min-height:25px}.duel-goal.with-voice-controls #duelVoiceStatus{line-height:1.2;font-size:8px;max-height:20px}
.modal{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));min-width:0;min-height:0;overflow:hidden}
.modal>:is(.profile-card,.lobby-card,.complete-card,.ad-card,.record-chest-card,.ad-access-card,.onboarding-card,.tutorial-card){box-sizing:border-box;min-width:0;min-height:0;max-width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere}
.modal>.profile-card{width:min(100%,680px);padding:26px clamp(12px,4vw,24px) 20px}.modal>.lobby-card{width:min(100%,600px);padding:22px clamp(12px,4vw,24px)}
.modal-close{min-width:36px;min-height:36px}.profile-card>h2,.lobby-card>h2{padding-right:28px;font-size:clamp(23px,5.5vw,31px)}
#futureContent,.boutique-root,.boutique-root>*{min-width:0;max-width:100%}.rank-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.rank-tabs button{min-width:0;font-size:11px;line-height:1.3;overflow-wrap:anywhere;padding:8px 3px}
.lobby-avatar-row,.avatar-row,.public-profile-head{min-width:0;padding:10px 4px;gap:16px}.lobby-avatar-row>img,.avatar-row>img,.public-profile-head>img{flex-shrink:0;box-sizing:border-box}.lobby-welcome{min-width:0;flex:1}.lobby-welcome>b,#lobbyName.nameplate{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-welcome>span{overflow-wrap:anywhere}
.lobby-rank,.lobby-stats,.profile-stats{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}.lobby-rank>.rank-card{min-width:0;padding:12px 8px;overflow:hidden}.lobby-rank .rank-avatar{margin:4px 7px 12px;width:34px;height:34px;box-sizing:border-box}.rank-card>.nameplate{max-width:100%;padding:4px;font-size:10px!important}.rank-card :is(b,span,small){min-width:0;max-width:100%}.profile-stats>span,.lobby-stats>span{min-width:0}.profile-stats b,.lobby-stats b{font-size:clamp(13px,3.5vw,21px);overflow-wrap:anywhere}.future-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.future-nav button,.lobby-actions button{min-width:0;overflow-wrap:anywhere}
/* The score has its own second line; names and badges cannot steal its column. */
#leaderboard{gap:8px;min-width:0;width:100%}#leaderboard li.rank-with-portrait{position:relative;display:grid;grid-template-columns:24px 52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;row-gap:4px;align-items:center;min-width:0;min-height:76px;padding:12px 10px!important;overflow:hidden;border-radius:16px;background:linear-gradient(110deg,#15263d,#0c192c);border:1px solid #6988a72b}
#leaderboard li.rank-with-portrait::before{grid-column:1;grid-row:1/3;align-self:center;justify-self:center;font-size:13px;line-height:1;font-variant-numeric:tabular-nums;color:#a8c4d9}
#leaderboard li.rank-with-portrait>.rank-portrait{grid-column:2;grid-row:1/3;justify-self:center;align-self:center;position:relative;box-sizing:border-box;width:36px;height:36px;min-width:36px;max-width:36px;margin:0;padding:2px}
#leaderboard li.rank-with-portrait>.ranking-name{display:block;grid-column:3;grid-row:1;min-width:0;width:100%;max-width:100%;font-size:12px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:start;align-self:end}
#leaderboard li.rank-with-portrait>.ranking-name.nameplate{padding:5px 7px;line-height:1.3;font-size:11px}
#leaderboard li.rank-with-portrait>.ranking-score{grid-column:3;grid-row:2;align-self:start;min-width:0;font-size:12px;color:#a7e5d5;font-weight:700;text-align:start;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
#leaderboard li.rank-with-portrait:is([data-rank="1"],[data-rank="2"],[data-rank="3"]){background:linear-gradient(105deg,#3b3042,#101f35 72%);border-color:#bd9b543d}#leaderboard li.rank-with-portrait[data-rank="1"]::before{color:#ffe199}#leaderboard li.rank-with-portrait[data-rank="2"]::before{color:#d8e6ef}#leaderboard li.rank-with-portrait[data-rank="3"]::before{color:#e6b58c}
#leaderboard .rank-portrait:is(.record-frame-moves,.record-frame-combo,.record-frame-dual)::after{right:-4px;top:-8px;font-size:14px;line-height:16px;width:16px;height:16px;text-align:center;background:#392547;border-radius:5px}.ranking-name .honor-icon,.ranking-name .duel-title-icon{font-size:11px;margin-inline:3px}.ranking-name .clan-tag{font-size:10px}.duel-ranks li,.duel-friend-row{min-width:0}.duel-ranks li>span,.duel-friend-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duel-ranks li>b{flex-shrink:0;white-space:nowrap;font-size:12px}
.public-profile-head h3{min-width:0;max-width:100%;font-size:18px}.public-profile-head h3.nameplate{flex:1}.world-profile-chip{padding:8px;gap:8px;overflow:hidden}.world-profile-chip img{width:28px;height:28px}.world-profile-chip .vip-pill{display:none}
/* Vectors, bevels and a static pedestal; no continuously rendered 3D scene. */
.boutique-art-caption{display:block;font-size:9px;line-height:1.3;color:#e4d4ff;max-width:100%;text-align:center}
.collection-icon{display:block;width:100%;height:100%;max-width:100%;pointer-events:none}.boutique-hero{padding:18px;border-radius:20px;border-color:#b7c8e344;background:radial-gradient(ellipse at 95% 0,#8359b94d,transparent 65%),linear-gradient(135deg,#183a50,#201f3e)}.boutique-hero h2{font-size:clamp(22px,5vw,29px);margin:10px 0}.boutique-showcase{grid-template-columns:62px minmax(0,1fr);gap:6px 17px;padding:5px 2px 16px}.boutique-showcase img{width:54px;height:54px;box-sizing:border-box}.boutique-showcase strong{min-width:0;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boutique-wallet{flex-wrap:wrap;gap:6px}.boutique-wallet b{font-size:17px}.boutique-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.boutique-tabs button{font-size:11px;min-width:0;padding:8px 4px}.boutique-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.boutique-card{position:relative;min-width:0;overflow:hidden;padding:14px 10px 12px;gap:10px;border-color:#a0b5d04a;border-radius:18px;background:linear-gradient(145deg,#2e415b,#17243b 65%);box-shadow:inset 0 1px #e6f5ff24,inset 0 -4px #040d241f,0 5px 12px #02071726}.boutique-card h3{font-size:clamp(13px,3.6vw,17px);line-height:1.35;overflow-wrap:anywhere}.boutique-card .boutique-description{font-size:11px;line-height:1.5}.boutique-visual{position:relative;isolation:isolate;min-height:112px!important;padding:8px 4px 18px!important;background:radial-gradient(ellipse at 50% 40%,#a7a6ff26,transparent 68%)}.boutique-visual:after{content:'';position:absolute;z-index:-1;bottom:6px;left:15%;right:15%;height:15px;border-radius:50%;border-top:1px solid #b6d7ee66;background:linear-gradient(#435170,#192941);box-shadow:0 6px 0 #09182b,0 11px 12px #030b1d88}.boutique-visual>.collection-icon{width:86px;height:86px;max-width:100%}.boutique-visual>img{width:60px!important;height:60px!important;box-sizing:border-box;margin:9px}.boutique-card .boutique-frame-star{font-size:20px;top:0;line-height:1}.boutique-card-vip{border-color:#d9b56c75;background:radial-gradient(ellipse at 100% 0,#bc93462b,transparent 70%),linear-gradient(145deg,#4b3b50,#1e2a42)}.boutique-rarity{font-size:8px;letter-spacing:.5px;max-width:100%;white-space:normal}.boutique-buy{font-size:12px;line-height:1.3;white-space:normal;min-width:0;box-shadow:inset 0 1px #fff8,0 3px 0 #133a4b}.boutique-card-vip .boutique-buy{box-shadow:inset 0 1px #fff9,0 3px 0 #775127}.boutique-nameplate-preview{max-width:100%;font-size:11px;padding-inline:6px}.boutique-exchange-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px}.boutique-exchange input{width:100%}.boutique-records{margin-top:20px}.boutique-root :is(p,h3){overflow-wrap:anywhere}
.record-gift-bag{background:radial-gradient(ellipse at 100% 0,#9065bb2e,transparent 70%),linear-gradient(135deg,#1b324a,#17223e);border-color:#c2a8e455}.gift-bag-heading{display:flex;gap:12px;align-items:center}.gift-bag-heading>.collection-icon{width:46px;height:46px;flex-shrink:0}.gift-bag-heading>div{min-width:0}.gift-stock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0}.gift-stock-item{min-width:0;text-align:center;padding:8px 3px;border:1px solid #c2dfff26;border-radius:12px;background:#0b1a2c}.gift-stock-item>.collection-icon{width:40px;height:40px;margin:0 auto 5px}.gift-stock-item>b{display:block;font-size:15px;color:#e4fff5}.gift-stock-item>small{display:block;font-size:9px;color:#bdd3e5;overflow-wrap:anywhere}.share-hub{padding:16px}.share-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.share-hub-action{min-width:0;overflow-wrap:anywhere}.share-hub h3{font-size:22px}.share-hub>p{font-size:12px}
.record-chest-card{width:min(100%,440px);padding:24px 16px 16px!important;background:radial-gradient(ellipse at 50% 40%,#4e386b80,transparent 68%),linear-gradient(155deg,#24324c,#101d33);box-shadow:inset 0 1px #fff4,0 18px 50px #0009}.record-chest-scene{height:245px}.record-chest-spinner{left:calc(50% - 90px);top:75px;width:180px;height:132px}.record-chest{width:180px;height:132px}.record-chest-base{inset:28px -6px auto;display:block;width:192px;height:119px;border:0;border-radius:0;background:none;box-shadow:none;line-height:normal;font-size:0}.record-chest-lid{inset:0 -8px auto;display:block;width:196px;height:78px;border:0;border-radius:0;background:none;box-shadow:none;transform-origin:50% 85%}.record-chest-lid:after{display:none}.record-chest-rays{top:137px;width:280px;height:220px;background:radial-gradient(ellipse,#ffe9aa6b,#b986ff22 38%,transparent 68%)}.record-chest-prizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:300px;margin:0 auto;top:0;align-content:start}.record-chest-prize{gap:4px;min-width:0;padding:8px 5px;background:linear-gradient(145deg,#364763f5,#15253df5);border:1px solid #ffe6a455;border-radius:14px;box-shadow:inset 0 1px #fff2;font-size:11px}.record-chest-prize .collection-icon{width:48px;height:48px}.record-chest-progress{width:75%;height:8px}.record-chest-subtitle{font-size:12px;min-height:32px;line-height:1.4}.record-chest-safety{font-size:11px}.record-chest-kicker{font-size:9px}.record-chest-card h2{font-size:clamp(20px,5vw,26px);margin:8px 4px;overflow-wrap:anywhere}.is-open .record-chest-base{opacity:.25}.is-open .record-chest-lid{animation:premium-chest-lid .6s ease-out forwards}.is-open .record-chest-prizes{animation:record-prize .6s .12s cubic-bezier(.2,.8,.3,1) both}
@keyframes premium-chest-lid{to{transform:translate(-12px,-50px) rotate(-18deg);opacity:0}}
/* Keep the first products visible rather than spending the viewport on marketing copy. */
.boutique-root .boutique-hero{padding:14px}.boutique-root .boutique-hero h2{font-size:20px;margin:8px 0}.boutique-root .boutique-hero>p{font-size:11px;line-height:1.4;margin:6px 0}.boutique-root .boutique-hero>small{font-size:9px;letter-spacing:1.5px}.boutique-root .boutique-showcase{grid-template-columns:52px minmax(0,1fr);padding:2px 2px 12px;column-gap:14px}.boutique-root .boutique-showcase img{width:46px;height:46px;border-radius:14px}.boutique-root .boutique-showcase strong{font-size:14px}.boutique-root .boutique-wallet{padding-top:8px}
.record-chest-spinner:before{content:'';position:absolute;bottom:-22px;left:12px;right:12px;height:18px;border-radius:50%;background:radial-gradient(ellipse,#02071499,transparent 70%);pointer-events:none}.record-chest-progress{display:block;appearance:none;-webkit-appearance:none;border:0;border-radius:8px;overflow:hidden;margin:4px auto;background:#08192c}.record-chest-progress::-webkit-progress-bar{background:#08192c;border:1px solid #8dbac144;border-radius:8px}.record-chest-progress::-webkit-progress-value{background:linear-gradient(90deg,#73e4ca,#d2fff0);border-radius:8px}.record-chest-progress::-moz-progress-bar{background:#8fe8d2;border-radius:8px}
@media(min-width:700px){.boutique-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.boutique-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:350px){#leaderboard li.rank-with-portrait{grid-template-columns:18px 46px minmax(0,1fr);gap:4px 6px;padding:10px 6px!important}.boutique-grid{gap:7px}.boutique-card{padding:12px 7px}.boutique-visual>.collection-icon{width:72px;height:72px}.boutique-hero{padding:14px}.world-profile-chip{padding:6px;gap:4px}.world-profile-chip img{width:24px;height:24px}.record-chest-scene{height:215px}.record-chest-spinner{top:62px}}
@media(max-height:650px){.record-chest-scene{height:190px}.record-chest-spinner{top:45px}.record-chest-card{padding-block:18px 10px!important}.record-chest-subtitle{min-height:0}.record-chest-prize{padding:5px}.record-chest-prize .collection-icon{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.is-open .record-chest-lid{animation:none!important;opacity:0}.is-open .record-chest-prizes{animation:none!important;opacity:1}.boutique-card{transition:none!important}}
