/* Shared surface, type and elevation system. No hard extrusion or text shadows. */
:root{--surface:#122622;--surface-raised:#19302b;--outline:#a3c6b321;--shadow-soft:0 5px 18px #00000024;--shadow-modal:0 18px 64px #00000052}
body :is(button,.btn,.activity,.stat,.room-row,.player-card,.room-tile,.balance-card,.quick-match,.rank-strip,.filter,.game-card,.reward-mini,.challenge,.friend-strip,.premium-compact,.club-wallet-cards>section,.avatar,.profile-avatar-ring,.avatar-option,.club-tabs>button){box-shadow:none!important;text-shadow:none!important}
body :is(h1,h2,h3,b,strong,.wordmark,.nav-item,.game-meta,.game-arrow,.art-tag){text-shadow:none!important}
body :is(.quick-match>svg,.bottom-nav svg,.star-object,.gift-buy-head img,.gift-detail-art img){filter:none!important}
body :is(.btn,.quick-match .btn){border:1px solid #a6edb74a;border-bottom-width:1px;background:linear-gradient(180deg,#73df8b,#4bc776);color:#102a1a;font-weight:850;line-height:1.35;transition:background .16s,transform .16s;white-space:normal;overflow-wrap:anywhere}
body :is(.btn:hover,.quick-match .btn:hover){background:linear-gradient(180deg,#82e798,#5dd184)}
body :is(.btn:active,.quick-match .btn:active){transform:translateY(1px)}
body .btn.secondary{background:#29433d;color:#e3eee8;border:1px solid #a9c6b32b}
body .btn.secondary:hover{background:#334f47}
body :is(.game-card,.reward-mini,.stat,.room-tile,.balance-card,.quick-match,.challenge,.friend-strip,.premium-compact,.club-wallet-cards>section){border-bottom-width:1px;border-color:var(--outline);box-shadow:var(--shadow-soft)!important}
body .game-card{border-radius:16px}
body .activity{border:1px solid var(--outline);border-radius:16px;background:var(--surface);overflow:hidden;padding:0}
body .activity:has(.club-ledger-row){padding:0 16px}
body .settings-row{background:transparent;gap:16px;min-height:58px;border-bottom:1px solid var(--outline);padding:16px 18px;align-items:center;line-height:1.5;min-width:0}
body .settings-row:last-child{border-bottom:0}
body .settings-row>span:first-child{min-width:0;overflow-wrap:anywhere}
body .settings-row>span:last-child{flex-shrink:0}
body .settings-row button{flex-shrink:0;white-space:nowrap;line-height:1.5;padding:6px 0 6px 8px}
body .club-ledger-row{padding:16px 0;gap:14px;align-items:flex-start;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,auto)}
body .club-ledger-row b{font-size:12px;font-weight:700;overflow-wrap:anywhere}
body .club-ledger-row small{font-size:10px;line-height:1.5}
body .club-ledger-row>span{font-size:11px;max-width:140px;overflow-wrap:anywhere;min-width:0}
body .activity-row{gap:14px;line-height:1.5;min-width:0}
body .bottom-nav{border:1px solid #a5c3b42b;border-bottom:0;box-shadow:0 -6px 24px #00000026;background:#142623f5;border-radius:18px 18px 0 0}
body .bottom-nav .nav-item{gap:6px;line-height:1.2;font-weight:750}
body .bottom-nav .create-nav svg{width:40px;height:40px;border:1px solid #ffe9a37a;border-radius:12px;padding:9px;margin-top:-13px;background:linear-gradient(#ffe08c,#edb545);color:#594014;box-shadow:0 0 0 4px #142623!important;filter:none}
body .bottom-nav .create-nav span{color:#d6e5dc}
body .bottom-nav .nav-item.active{background:#34544955;color:#ffe2a0}
body .balance-pill{box-shadow:none;border-color:var(--outline);min-height:37px}
body .balance-pill .plus,body .balance-pill .plus:before,body .balance-pill .plus:after{box-shadow:none!important;text-shadow:none}
body .balance-pill .plus{border:1px solid #9df3b557}
body .header-context>.avatar{box-shadow:none!important;border-width:1px}
body .modal{border:1px solid #b5d5bd2b;box-shadow:var(--shadow-modal);border-radius:22px;padding:30px 24px 24px;scrollbar-width:thin;scrollbar-color:#5d7e6b transparent;overflow-x:hidden}
body .modal .close{border:1px solid #b8d4c230;background:#223e36;color:#e3ece5;border-radius:10px;width:32px;height:32px;display:grid;place-items:center;line-height:1;top:12px;right:12px}
body .modal :is(input,select,textarea){line-height:1.5;box-shadow:none;min-width:0;max-width:100%;font-weight:500;font-size:14px}
body .modal label{line-height:1.5}
body .club-tabs>button.active{box-shadow:none;background:#345044}
body :is(.filter,.section-heading button){box-shadow:none!important;border-bottom-width:1px}
body .filter.active{box-shadow:none!important;border-bottom-width:1px}
body :is(.page-heading,.section-heading){gap:12px}
body .page-heading h1{overflow-wrap:anywhere;line-height:1.2}
body .page-heading p{max-width:none;line-height:1.65;font-weight:500}
body :is(.section-heading h2,.section-heading h3){min-width:0;line-height:1.35}
body .section-heading button{flex-shrink:0;line-height:1.5}
body .club-person-info b,body .orbit-person b{white-space:normal;line-height:1.5}
body .club-person-info .identity-name{font-size:12px}
body .profile-name-row h2{line-height:1.3;overflow-wrap:anywhere;min-width:0}
body .profile-avatar-ring{border-width:2px}
body .club-wallet-cards h2{font-variant-numeric:tabular-nums;line-height:1.25}
body .room-row{background:transparent}
body .room-list{overflow:hidden;border-radius:14px}
body .room-info{min-width:0}
body .room-info h3{overflow-wrap:anywhere;line-height:1.4}
body .club-person-info .avatar{flex-shrink:0}
.identity-name{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0;vertical-align:middle}
.identity-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.league-badge{display:inline-block;flex-shrink:0;object-fit:contain;width:32px;height:34px;vertical-align:middle}
.identity-name>.league-badge{width:18px;height:20px;flex:0 0 18px}
.player-name .identity-name{max-width:118px;gap:4px}
.player-name .league-badge{width:16px;height:18px;flex-basis:16px}
body .player-name{max-width:118px}
.league-progress-card{display:flex;align-items:center;gap:13px;width:100%;padding:17px 16px;margin:0 0 18px;border:1px solid #abcfb52b;border-radius:16px;background:linear-gradient(115deg,#243c34,#142821);color:#edf3e9;text-align:left;box-shadow:var(--shadow-soft);min-width:0}
.league-progress-card>.league-badge{width:49px;height:53px}
.league-progress-content{flex:1;min-width:0;display:block}
.league-progress-heading{display:flex;gap:12px;align-items:baseline;justify-content:space-between}
.league-progress-heading>b{font-size:15px;font-weight:850}
.league-progress-heading>small{white-space:nowrap;color:#e2d29e;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.league-progress-heading>small>span{font-size:10px;color:#a8bbad;font-weight:500}
.league-track{display:block;height:6px;border-radius:4px;background:#091b14;margin:10px 0 8px;overflow:hidden}
.league-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b6cc8b,#e4ca8d);min-width:0;max-width:100%}
.league-progress-caption{font-size:10px;line-height:1.5;color:#b0c4b3;display:block}
.league-card-arrow{font-size:18px;color:#b4c5b5;flex-shrink:0}
.league-progress-card.compact{margin:20px 0}
.league-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
.league-summary>div{border:1px solid var(--outline);background:#10241d;border-radius:13px;padding:15px}
.league-summary b{display:block;color:#efe1b7;font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums}
.league-summary b span{font-size:13px;color:#96ae9d;font-weight:500}
.league-summary small{display:block;font-size:10px;color:#a2b4a6;line-height:1.5;margin-top:5px}
.league-road{display:grid;gap:10px}
.league-road-item{display:flex;gap:14px;align-items:center;padding:17px 14px;border:1px solid #abc3af20;border-radius:15px;background:#12251e;position:relative;min-width:0}
.league-road-item>.league-badge{width:52px;height:56px}
.league-road-item>div{flex:1;min-width:0}
.league-road-item b{font-size:15px;line-height:1.4;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.league-road-item b span{font-size:9px;color:#f0daa4;border:1px solid #cfb97544;background:#74663c33;border-radius:5px;padding:3px 5px;font-weight:700}
.league-road-item p{font-size:11px;color:#b7c8b9;line-height:1.5;margin:4px 0}
.league-road-item small{font-size:10px;color:#8da594;line-height:1.5}
.league-road-item.current{border-color:#dcc38077;background:linear-gradient(105deg,#354332,#182d22)}
.league-road-item.locked>.league-badge{opacity:.65}
.league-road-marker{color:#c6dba5;font-size:16px;flex-shrink:0}
.league-rules{border:1px solid var(--outline);border-radius:15px;background:#10241d;padding:19px 17px;margin-top:22px}
.league-rules h3{font-size:15px;line-height:1.4;margin-bottom:15px}
.league-rules>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--outline);font-size:12px;color:#bfcebe}
.league-rules>div>b{color:#e9dba4}
.league-rules p{font-size:11px;line-height:1.8;color:#9db4a5;margin-top:15px}
.league-board-player{width:100%;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--outline);padding:15px 8px;background:none;color:inherit;text-align:left;min-width:0}
.league-board-player.is-me{border-radius:12px;background:#29402e}
.league-board-player>.avatar{flex:0 0 40px;width:40px;height:40px;border-radius:12px}
.league-position{font-size:12px;color:#b2c5b1;flex:0 0 22px;text-align:center;font-variant-numeric:tabular-nums}
.league-board-identity{flex:1;min-width:0}
.league-board-identity>b{font-size:12px;line-height:1.5}
.league-board-identity>small{display:block;color:#91a795;font-size:10px;margin-top:3px}
.league-board-player>strong{font-size:12px;font-variant-numeric:tabular-nums;color:#e6d7a4;flex-shrink:0}
.league-history article{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--outline)}
.league-history b{font-size:13px}
.league-history small{display:block;color:#9ab1a0;font-size:10px;line-height:1.5;margin-top:6px}
.league-history strong{color:#dfd4a4;font-size:14px}
/* Player sheet: public identity only, balances never appear here. */
body .modal.is-player-sheet{background:linear-gradient(155deg,#203d33,#11251f 56%);padding:28px 24px 24px}
.player-sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-right:30px;margin-bottom:18px}
.player-presence{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#afc2b1;line-height:1.5}
.player-presence:before{content:'';width:5px;height:5px;border-radius:50%;background:#6f8879}
.player-presence.online:before{background:#73d4a0}
.player-plus{font-size:9px;color:#e0cb94;border:1px solid #c9b77c44;border-radius:5px;padding:3px 5px;white-space:nowrap}
.player-sheet-avatar{width:96px;margin:0 auto 15px;position:relative}
.player-sheet-avatar>.avatar{width:96px;height:96px;border-radius:28px;border:2px solid #b5cfb456;display:flex;box-shadow:none;font-size:34px;background:#29473b}
.player-sheet-emblem{position:absolute;right:-9px;bottom:-8px;border-radius:12px;background:#193329;padding:3px;display:flex}
.player-sheet-emblem>.league-badge{width:32px;height:35px}
body .player-sheet-name{font-size:25px;font-weight:850;text-align:center;line-height:1.3;overflow-wrap:anywhere;margin:0 0 8px}
.player-sheet-id{display:flex;align-items:center;justify-content:center;gap:7px;background:none;color:#b5c7b5;font-size:11px;margin:0 auto 22px;line-height:1.4;padding:4px 8px;font-variant-numeric:tabular-nums}
.player-sheet-id svg{width:13px;height:13px}
.player-league-banner{display:flex;align-items:center;gap:12px;background:#0a1e1680;border:1px solid #a9c8a82b;border-radius:13px;padding:12px 14px;color:#e4eacc;width:100%;text-align:left}
.player-league-banner>.league-badge{width:35px;height:39px}
.player-league-banner>span:nth-child(2){flex:1;min-width:0}
.player-league-banner b{display:block;font-size:14px;line-height:1.4}
.player-league-banner small{font-size:10px;color:#adc3ad;display:block;margin-top:4px}
.player-league-arrow{font-size:18px;color:#b3c4ad}
.player-sheet-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 22px;text-align:center}
.player-sheet-stats>div{min-width:0;border-right:1px solid var(--outline)}
.player-sheet-stats>div:last-child{border:0}
.player-sheet-stats b{display:block;font-size:19px;line-height:1.3;color:#e9e8d6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.player-sheet-stats small{font-size:9px;color:#a3b9a6;display:block;line-height:1.5;margin-top:5px}
.player-sheet-actions{display:grid;grid-template-columns:1fr;gap:9px}
.player-sheet-actions .btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin:0;min-height:43px;font-size:12px}
.player-sheet-actions svg{width:17px;height:17px;flex-shrink:0}
.player-sheet-gifts{border-top:1px solid var(--outline);padding-top:20px;margin-top:23px}
.player-sheet-gifts .section-heading{margin-bottom:12px}
.player-sheet-gifts h3{font-size:14px}
.player-gifts-empty{font-size:11px;color:#8faa96;padding:18px 12px;text-align:center;border:1px dashed #b3d3ae20;border-radius:12px;line-height:1.6}
.player-sheet-gifts .gift-shelf{max-height:210px;overflow:auto}
body .d-seat .identity-name{justify-content:center;max-width:100%;font-size:10px}
body .d-seat .league-badge{width:13px;height:15px;flex-basis:13px}
@media(max-width:380px){body .player-name,.player-name .identity-name{max-width:79px}body .header-context{gap:7px}body .header-context>.avatar{width:35px;height:35px;border-radius:11px}body .club-notification-button{width:27px}body .modal{padding:29px 18px 22px}body .modal.is-player-sheet{padding:28px 18px 22px}.league-progress-card{padding:15px 12px;gap:10px}.league-progress-card>.league-badge{width:40px;height:45px}.league-progress-heading>b{font-size:13px}.league-progress-heading>small{font-size:11px}.league-card-arrow{display:none}.league-road-item{gap:10px;padding:15px 12px}.league-road-item>.league-badge{width:44px;height:49px}.league-road-item p{font-size:10px}.club-ledger-row>span{max-width:116px}}
@media(prefers-reduced-motion:reduce){body .btn{transition:none}body .btn:active{transform:none}}

body .profile-name-row h2>.league-badge{width:23px;height:25px;margin-left:7px}body .player-sheet-name .identity-name{justify-content:center;display:inline-flex;max-width:100%;white-space:normal}body .player-sheet-name .identity-name>span{white-space:normal;overflow:visible;overflow-wrap:anywhere}body .player-sheet-name .league-badge{width:23px;height:26px;flex-basis:23px}

body .player-sheet-name{font-size:22px;line-height:1.4}body .player-sheet-name .identity-name{display:inline;vertical-align:middle}body .player-sheet-name .identity-name>span{display:inline}body .player-sheet-name .league-badge{margin-left:5px;vertical-align:middle}

body .quick-match>div{flex:1;min-width:0}body .quick-match .btn{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;min-width:76px;padding:10px 14px;font-size:13px}body .quick-match h3{line-height:1.35}body .quick-match p{line-height:1.6}body .player-rank{white-space:nowrap;font-variant-numeric:tabular-nums}body .header-id-label i{font-style:normal}@media(max-width:380px){body .header-id-label i{display:none}body .quick-match{gap:9px;padding:14px 12px}body .quick-match>svg{width:25px;height:25px;flex:0 0 25px}body .quick-match h3{font-size:13px}body .quick-match .btn{min-width:70px;padding:10px 12px;font-size:12px}}
