/* Nexo 8Ball — Midnight Club. Scoped to the game and its own overlays. */
#pool-game-app.pg-shell{--pg-gold:#eac77e;--pg-ink:#080e1b;--pg-line:#dab66c42;--pg-muted:#9caebf;background:#060c17 url('/assets/pool/midnight-club-v1.webp') center/cover no-repeat!important;grid-template-rows:82px minmax(0,1fr) 72px!important;color:#eff3f9!important;font-family:system-ui!important;isolation:isolate}
#pool-game-app.pg-shell::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#050c17ad,#070e1a33 35%,#050b16a8);pointer-events:none}
#pool-game-app .pg-header{position:relative;padding:12px 28px;gap:20px;background:linear-gradient(180deg,#060c19fa,#0c1726ed)!important;border:0!important;border-bottom:1px solid var(--pg-line)!important;box-shadow:0 8px 35px #0005;z-index:5}
#pool-game-app .pg-header-profile{min-width:180px;padding:0!important;gap:16px}.pg-header-info{gap:4px!important}.pg-header-info b{font:700 15px/1.2 system-ui!important;letter-spacing:.02em;color:#fff3cf}.pg-header-info small{font:600 10px system-ui!important;letter-spacing:.04em;color:#b8c2d2}.pg-header-info em{font:italic 11px Georgia!important;color:#c6a6f2!important}
#pool-game-app .pg-header-profile .avatar{width:43px;height:43px}.pg-header-actions{gap:8px!important;margin-left:auto}
.pg-icon{width:23px;height:23px;display:block;flex-shrink:0;pointer-events:none}
#pool-game-app .pg-icon-button,.pg-lounge-peek .pg-icon-button{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;display:inline-grid!important;place-items:center!important;padding:0!important;background:linear-gradient(155deg,#26374b,#0d1929)!important;border:1px solid #9c87564d!important;border-radius:12px!important;color:#e8c77f!important;position:relative;box-shadow:inset 0 1px 0 #e8dab419,0 3px 8px #0003;transition:background .15s,border-color .15s!important;font-size:0!important}
#pool-game-app .pg-icon-button:hover,.pg-lounge-peek .pg-icon-button:hover{border-color:#f1d99f!important;background:linear-gradient(155deg,#43506a,#1c2540)!important;color:#fff1c5!important}
.pg-icon-button:focus-visible{outline:2px solid #bba5ff!important;outline-offset:3px!important}.pg-icon-button[data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);padding:7px 10px;border-radius:7px;background:#060c19f5;border:1px solid #b296634d;color:#f5e9c9;font:600 11px/1.3 system-ui;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .1s;z-index:20;box-shadow:0 5px 18px #0008}
.pg-icon-button[data-tip]:is(:hover,:focus-visible)::after{opacity:1;visibility:visible}
#pool-game-app .pg-wallet-chip{height:40px;min-height:40px!important;padding:4px 9px!important;border:1px solid #c6a46c38!important;border-radius:10px!important;background:#050c1799!important;gap:7px!important;box-shadow:inset 0 1px 0 #ffffff08;order:-1}.pg-wallet-chip .pg-currency-icon{width:30px!important;height:30px!important}.pg-wallet-chip strong{font:700 15px/1 system-ui!important;color:#f5de9c}.pg-game-bell>svg{width:22px!important;height:22px!important}
#pool-game-app .pg-body{padding:28px max(30px,calc((100vw - 1380px)/2)) 40px!important;scrollbar-color:#9b7f4a #080f1a;scrollbar-width:thin;background:transparent!important}
#pool-game-app .pg-body.pg-playing{padding:0!important;background:#070e18!important}
#pool-game-app .pg-club-heading{display:grid;position:relative;isolation:isolate;grid-template-columns:minmax(0,1fr) 170px;grid-template-rows:auto auto auto auto;min-height:245px;gap:10px 30px;padding:30px 36px 25px;background:linear-gradient(105deg,#0a1425f2 5%,#111d32a8 65%,#0b1426d9)!important;border:1px solid var(--pg-line);border-radius:24px;overflow:hidden;box-shadow:0 15px 45px #0005,inset 0 1px 0 #f7daa21a}
.pg-club-heading::before{content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 85% 20%,#8661423b,transparent 55%),linear-gradient(120deg,transparent 60%,#be9a6040 60.15%,transparent 60.3%);pointer-events:none}
.pg-card-kicker{display:block;font:700 10px/1.4 system-ui!important;letter-spacing:.2em!important;color:#dfbb77!important}
#pool-game-app .pg-club-heading h1{font:500 clamp(38px,4.5vw,64px)/1 Georgia!important;letter-spacing:-.035em;margin:0!important;color:#fdf0d1;text-shadow:0 2px 20px #d39e382a}.pg-club-heading>p{font:13px/1.6 system-ui!important;color:#b3bfce!important;margin:0!important}
.pg-lobby-emblem{grid-column:2;grid-row:1/5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;filter:drop-shadow(0 9px 18px #0008)}.pg-lobby-emblem>span:last-child{font:700 15px Georgia;color:#f2d089;letter-spacing:.03em}
.pg-lobby-summary{display:flex;gap:0;grid-column:1;grid-row:4}.pg-lobby-summary>span{display:grid;gap:4px;padding:0 26px;border-left:1px solid #a48a574f}.pg-lobby-summary>span:first-child{padding-left:0;border:0}.pg-lobby-summary b{font:600 20px Georgia;color:#efe3c6}.pg-lobby-summary small{font:700 8px system-ui;letter-spacing:.13em;color:#99aabe}
#pool-game-app .pg-club-heading .pg-mode-tabs{grid-column:1;grid-row:5;justify-content:flex-start;margin-top:8px}.pg-mode-tabs{gap:5px!important}.pg-mode-tabs>.pg-button{min-height:34px!important;min-width:90px;padding:7px 15px!important;border-radius:7px!important;background:#070e1b99!important;border:1px solid #5c647654!important;color:#aebbd0!important;font:700 10px system-ui!important;letter-spacing:.08em}.pg-mode-tabs>.pg-button[aria-pressed=true]{background:linear-gradient(120deg,#e6cc91,#ac7a35)!important;color:#20170f!important;border-color:#e8c67b!important;box-shadow:0 3px 14px #bb89382e}
.pg-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:26px 0 14px}.pg-section-title small{font:700 9px system-ui;letter-spacing:.2em;color:#d1b57d}.pg-section-title h2{font:500 22px Georgia!important;color:#efdfc0!important;margin:0!important;letter-spacing:.01em}
#pool-game-app .pg-cities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0!important}.pg-city.pg-city-art{min-height:270px!important;border:1px solid #dfbc704d!important;border-radius:18px!important;padding:21px!important;box-shadow:0 10px 25px #0005!important;transition:border-color .18s,box-shadow .18s!important}.pg-city.pg-city-art:hover{border-color:#e9c779b3!important;box-shadow:0 10px 28px #0008,inset 0 0 0 1px #d0a45233!important}.pg-city-art::before{filter:saturate(.8) brightness(.8)}.pg-city-art::after{background:linear-gradient(180deg,#07101e00,#07101e55 35%,#07101ef5 83%,#07101e)!important}.pg-city-art h2{font:500 33px Georgia!important;margin-top:42px!important;letter-spacing:-.02em}.pg-city-unlock{border:1px solid #d8bc785e!important;border-radius:5px!important;background:#07101ecc!important;font-size:8px!important;letter-spacing:.14em}.pg-city-art p{font-size:10px!important;color:#b4becc!important}.pg-city-art strong{font:700 14px system-ui!important;color:#f2d598!important}.pg-city-art small{color:#8f9eaf!important;margin-top:3px}.pg-city-art>.pg-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:39px!important;align-self:stretch;margin-top:15px!important;border-radius:9px!important}.pg-city-art>.pg-button .pg-icon{width:17px;height:17px}.pg-primary{background:linear-gradient(115deg,#f0d394,#b78b45)!important;border:1px solid #e6c47d!important;color:#231a0f!important;box-shadow:inset 0 1px #fff2cc66,0 4px 14px #ad7d2d25!important;text-shadow:none!important}.pg-city-art.locked>.pg-button{background:#192434cc!important;border-color:#62708455!important;color:#8091a6!important}.pg-city-art.locked::before{filter:saturate(.3) brightness(.6)!important}
.pg-home-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px!important}.pg-home-actions>.pg-button:not(.pg-icon-button){min-height:64px!important;border:1px solid var(--pg-line)!important;border-radius:13px!important;background:linear-gradient(135deg,#1b2941e8,#0a1426ed)!important;color:#e7d5ae!important;font:600 12px system-ui!important;padding:14px!important;text-align:left}.pg-home-actions>.pg-icon-button{align-self:center}
#pool-game-app>.pg-nav{display:flex!important;align-items:center;justify-content:center;gap:32px!important;padding:9px 20px!important;border-top:1px solid var(--pg-line)!important;background:linear-gradient(#0d1727ed,#050b16fa)!important;box-shadow:0 -10px 30px #0004;overflow:visible!important;z-index:6}#pool-game-app>.pg-nav .pg-icon-button{width:58px!important;min-width:58px!important;height:48px!important;min-height:48px!important;border-radius:13px!important;background:transparent!important;border:1px solid transparent!important;color:#9bacc0!important}#pool-game-app>.pg-nav .pg-icon-button[aria-current=true]{color:#f5d58a!important;background:linear-gradient(#33415a88,#1d233d99)!important;border-color:#c4a16a5e!important;box-shadow:inset 0 1px 0 #fff2ce17,0 0 20px #b8954522}#pool-game-app>.pg-nav .pg-icon{width:25px;height:25px}.pg-nav .pg-icon-button[data-tip]::after{top:auto;bottom:calc(100% + 10px)}
/* The player dossier shares the same world, with collectible-card framing. */
.pg-dossier-toolbar{display:flex;align-items:center;gap:16px;margin:0 0 20px}.pg-dossier-toolbar>.pg-icon-button:last-child{margin-left:auto}.pg-profile-hero{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,.8fr)!important;gap:25px!important;align-items:center!important;padding:40px 30px!important;border:1px solid var(--pg-line)!important;border-radius:22px!important;background:linear-gradient(105deg,#111b31ed,#0a1425d9 55%,#18243ce8)!important;box-shadow:inset 0 1px 0 #f0d09b19,0 15px 40px #0006!important;position:relative;overflow:hidden!important}
.pg-profile-hero::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 15% 0,#7351c126,transparent 50%),radial-gradient(ellipse at 80% 100%,#c7963521,transparent 50%)}
.pg-profile-hero .pg-identity{gap:12px!important;position:relative;padding:5px!important}.pg-player-portrait{position:relative;display:grid;place-items:center;min-width:106px;min-height:112px;margin:8px 0 18px;isolation:isolate}.pg-player-portrait>.avatar{width:94px!important;height:94px!important;margin:0!important;display:grid;place-items:center;font:700 26px system-ui!important}.pg-player-portrait .s1-frame-overlay{z-index:2!important}.pg-player-level{position:absolute;z-index:12;bottom:-19px;left:50%;transform:translateX(-50%);white-space:nowrap;background:linear-gradient(#3c2a58,#1b142d);border:1px solid #d8b76e;border-radius:6px;padding:4px 12px;font:800 10px/1.1 system-ui;color:#f9dc9d;box-shadow:0 3px 8px #0009;letter-spacing:.08em}
.pg-profile-hero .pg-identity h1{font:500 32px Georgia!important;color:#fff0ce!important;letter-spacing:-.02em}.pg-player-handle{color:#8194b0!important;font:11px system-ui!important;letter-spacing:.03em}.pg-profile-hero .s1-title-isolated{width:min(290px,100%)!important;max-height:105px;margin-top:5px!important}.pg-profile-rank{display:flex!important;flex-direction:column;align-items:center;gap:9px!important;text-align:center;border-left:1px solid var(--pg-line);padding:5px 22px!important;position:relative}.pg-profile-rank>.pg-sprite{filter:drop-shadow(0 8px 15px #0009)}.pg-profile-rank h2{font:500 25px Georgia!important;margin:0!important;color:#f4d99f!important}.pg-rank-points{font:700 16px system-ui!important;letter-spacing:.08em;color:#c9abf8!important}.pg-profile-rank progress{width:100%;max-width:220px;height:7px;accent-color:#ba86ed}.pg-profile-rank>small:not(.pg-card-kicker){font:10px/1.5 system-ui;color:#99a9bd}.pg-profile-rank .pg-owner-showcase{max-width:200px!important;color:#a49376!important;font-size:9px!important}
.pg-signature-cue{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-width:0;align-self:stretch;text-align:center;border-left:1px solid var(--pg-line);padding-left:24px;position:relative}.pg-signature-cue>.pg-icon{width:75px;height:75px;color:#987547;opacity:.55}.pg-signature-cue>strong{font:500 20px Georgia;color:#d9c89f}.pg-signature-cue>p{font:11px/1.6 system-ui;color:#8595a8}.pg-signature-cue .s1-cue-preview{gap:24px}.pg-signature-cue .s1-cue-preview img{height:110px!important;filter:drop-shadow(0 8px 12px #0008)}.pg-signature-cue figcaption{font:500 20px Georgia;color:#f1dbad}.pg-signature-cue .s1-rarity{font-size:8px;letter-spacing:.14em}
.pg-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border:1px solid var(--pg-line)!important;border-radius:18px!important;overflow:hidden;gap:1px!important;background:#c5a66733!important;margin:0 0 24px!important}.pg-stats>section{display:grid!important;grid-template-columns:38px 1fr;gap:5px 14px;padding:22px!important;background:linear-gradient(135deg,#132038f5,#0a1426f5)!important;border:0!important}.pg-stats>section>.pg-icon{grid-row:1/3;align-self:center;width:29px;height:29px;color:#bd9c64}.pg-stats small{font:500 10px system-ui!important;text-transform:uppercase;letter-spacing:.1em;color:#879bb5!important}.pg-stats strong{font:500 29px/1.1 Georgia!important;color:#f6dfb4!important}
.pg-collection-panel{padding:4px 24px 24px;background:#0a1425e8;border:1px solid var(--pg-line);border-radius:18px;margin:20px 0}.pg-ring-collection{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px}.pg-ring-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 3px;background:#111f32a8;border:1px solid #5b677a44;border-radius:10px;color:#76859b}.pg-ring-item>.pg-icon{width:29px;height:29px;opacity:.5}.pg-ring-item b{font:700 14px Georgia}.pg-ring-item small{font:9px system-ui;text-align:center}.pg-ring-item.earned{border-color:#ac88425c;color:#e7c67f}.pg-ring-item.earned>.pg-icon{opacity:1;filter:drop-shadow(0 0 8px #c5913a55)}.pg-achievements{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px!important}.pg-achievement{min-width:0;display:grid;place-items:center;background:transparent!important;border:0!important;padding:8px!important;border-radius:12px!important}.pg-achievement:hover{background:#30305266!important}.pg-achievement .pg-sprite{max-width:100%;filter:drop-shadow(0 5px 7px #0008)}.pg-achievement.locked{opacity:.32;filter:grayscale(1)}
/* Compact card, including during a live match. */
#pool-player-peek.pg-lounge-peek{width:min(430px,92vw)!important;padding:24px 26px 22px!important;border:1px solid #d0ab65aa!important;border-radius:23px!important;box-shadow:0 25px 100px #000b,inset 0 1px #ffe8ac33!important;background:linear-gradient(160deg,#101c32f5,#0c1428f5),url('/assets/pool/midnight-club-v1.webp') center/cover!important;text-align:center;color:#f4e5c7!important;isolation:isolate}
#pool-player-peek.pg-lounge-peek::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 0,#9b654f24,transparent 60%)}#pool-player-peek.pg-lounge-peek>.modal-close{width:32px!important;height:32px!important;min-height:32px!important;border:1px solid #b2925a55!important;background:#081325!important;color:#d0b67e!important;border-radius:50%!important;top:12px!important;right:12px!important}.pg-lounge-peek .pg-peek-content{gap:9px!important;padding-top:0!important}.pg-lounge-peek .pg-card-kicker{font-size:8px!important}.pg-peek-hero{display:flex;justify-content:center;align-items:center;gap:48px;min-height:150px;padding-top:5px;width:100%}.pg-peek-hero .pg-player-portrait{margin-top:8px;min-width:98px;min-height:100px}.pg-peek-hero .pg-player-portrait>.avatar{width:74px!important;height:74px!important;font-size:23px!important}.pg-peek-rank{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:100px}.pg-peek-rank strong{font:500 15px Georgia;color:#f2d696}.pg-lounge-peek .pg-peek-content h3{font:500 27px Georgia!important;margin:3px 0 0!important;letter-spacing:-.01em}.pg-lounge-peek .pg-player-handle{font-size:10px!important}.pg-lounge-peek .s1-title-isolated{width:275px!important;max-height:88px;margin:3px 0}.pg-lounge-peek .pg-peek-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;border:1px solid #a68b5240!important;border-radius:12px;gap:0!important;padding:0!important;margin-top:4px;overflow:hidden;background:#070f20a1}.pg-lounge-peek .pg-peek-stats>section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:13px 3px;border-right:1px solid #a68b5233}.pg-lounge-peek .pg-peek-stats>section:last-child{border:0}.pg-lounge-peek .pg-peek-stats .pg-icon{width:15px;height:15px;color:#c5a15f}.pg-lounge-peek .pg-peek-stats small{font:500 8px system-ui!important;color:#8196b2!important;text-transform:uppercase;letter-spacing:.06em}.pg-lounge-peek .pg-peek-stats strong{font:500 21px Georgia!important;color:#f2d99f!important}.pg-peek-cue{width:100%;padding-top:10px}.pg-peek-cue .s1-cue-preview{gap:6px;margin-top:10px!important}.pg-peek-cue .s1-cue-preview img{height:48px!important}.pg-peek-cue figcaption{font-size:13px!important;color:#d6c6a5}.pg-peek-cue .s1-rarity{display:none}.pg-peek-actions{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;padding-top:9px}.pg-peek-actions>.pg-primary{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px!important;border-radius:10px!important;font:700 11px system-ui!important}.pg-peek-actions .pg-icon{width:18px;height:18px}
/* Other game pages retain the same club language. */
#pool-game-app .pg-body>h1{font:500 38px Georgia!important;color:#f2d9aa!important;text-shadow:0 3px 15px #0009}.pg-leader-list{padding:16px;background:#081326cc;border:1px solid var(--pg-line);border-radius:18px}.pg-leader-row{border-radius:12px!important;background:linear-gradient(100deg,#243249ed,#101a2de8)!important;border:1px solid #a48d6040!important}.pg-leader-row:nth-child(1){border-color:#e6c87d99!important;background:linear-gradient(100deg,#605139c9,#1b2336ef)!important}.pg-leader-person b{color:#f4e4c0}.pg-leader-person small{color:#a6b3c7}.pg-leader-position{color:#dabc78}.pg-patch,.pg-tournament-stage,.pg-friend-card{border:1px solid var(--pg-line)!important;border-radius:16px!important;background:linear-gradient(125deg,#15233bf2,#0a1428ee)!important;box-shadow:0 10px 20px #0004}.pg-patch{padding:24px!important;margin:16px 0!important}.pg-patch h2{font:500 25px Georgia;color:#efdcad}.pg-patch p{color:#b9c5d6;line-height:1.8}.pg-patch small{color:#8f9fb8}.pg-loading{background:radial-gradient(ellipse,#14243a77,transparent 60%)}.pg-loading-ball{border:1px solid #ae8a47!important;box-shadow:0 10px 35px #000a,0 0 40px #a8823826!important}
.s1-dialog,.pg-store-dialog{background:linear-gradient(145deg,#15203af5,#081123f5),url('/assets/pool/midnight-club-v1.webp') center/cover!important;border-color:#c7a46a7a!important;box-shadow:0 25px 90px #000b!important;border-radius:20px!important}.s1-editor>section{padding:18px!important;border:1px solid #a78b5b40;border-radius:14px;background:#080f2188}.s1-title-option{border:1px solid #9c845340!important;border-radius:12px!important;background:#0d182b!important}.s1-title-option:disabled{border-color:#edcb84!important;background:#2c2447!important;opacity:1}.s1-option,.s1-frame-option{border-color:#9c845340!important;background:#0c1729!important;border-radius:13px!important}.s1-option[aria-pressed=true]{border-color:#e8bd70!important}
@media(max-width:1100px),(max-height:650px){#pool-game-app.pg-shell{grid-template-rows:64px minmax(0,1fr) 58px!important}#pool-game-app .pg-header{padding:8px 16px;gap:10px}.pg-header-profile{min-width:140px!important;gap:12px!important}.pg-header-info b{max-width:115px!important;font-size:12px!important}.pg-header-info small,.pg-header-info em{font-size:8px!important}.pg-header-actions{gap:5px!important}#pool-game-app .pg-icon-button{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-radius:10px!important}.pg-icon{width:19px;height:19px}#pool-game-app .pg-wallet-chip{height:34px;min-height:34px!important;padding:2px 6px!important;gap:3px!important}.pg-wallet-chip .pg-currency-icon{width:25px!important;height:25px!important}.pg-wallet-chip strong{font-size:12px!important}#pool-game-app .pg-body{padding:20px!important}.pg-club-heading{min-height:195px!important;padding:24px!important}.pg-section-title{margin-top:22px}.pg-city.pg-city-art{min-height:235px!important;padding:16px!important}.pg-city-art h2{font-size:29px!important}.pg-profile-hero{gap:12px!important;padding:28px 20px!important}.pg-signature-cue{padding-left:15px}.pg-profile-hero .pg-identity h1{font-size:26px!important}.pg-profile-rank{padding:5px 12px!important}.pg-stats>section{padding:16px!important}.pg-stats strong{font-size:25px!important}.pg-ring-collection{gap:5px}.pg-ring-item small{font-size:8px}.pg-achievements{grid-template-columns:repeat(5,minmax(0,1fr))!important}#pool-game-app>.pg-nav .pg-icon-button{width:48px!important;min-width:48px!important;height:38px!important;min-height:38px!important}}
@media(orientation:landscape) and (max-height:520px){#pool-game-app.pg-shell{grid-template-rows:56px minmax(0,1fr) 48px!important}#pool-game-app .pg-header{padding:5px 12px!important}.pg-header-profile .avatar{width:31px!important;height:31px!important}#pool-game-app .pg-body{padding:14px 20px!important}#pool-game-app .pg-club-heading{min-height:145px!important;padding:17px 22px!important;gap:5px 20px;grid-template-columns:1fr 125px}.pg-club-heading h1{font-size:37px!important}.pg-club-heading>p{font-size:10px!important}.pg-lobby-emblem .pg-sprite{transform:scale(.7);margin:-20px}.pg-lobby-emblem>span:last-child{font-size:12px}.pg-lobby-summary b{font-size:16px}.pg-club-heading .pg-mode-tabs{grid-column:1!important;grid-row:5!important}.pg-mode-tabs>.pg-button{min-height:28px!important;padding:4px 12px!important}.pg-section-title{margin:17px 0 10px}.pg-section-title h2{font-size:19px!important}.pg-city.pg-city-art{min-height:210px!important;padding:12px!important}.pg-city-art h2{margin-top:28px!important;font-size:26px!important}.pg-dossier-toolbar{margin-bottom:12px}.pg-profile-hero{grid-template-columns:1.2fr 1fr .9fr!important;padding:20px!important}.pg-player-portrait{min-width:82px;min-height:86px;margin:3px 0 12px}.pg-player-portrait>.avatar{width:67px!important;height:67px!important}.pg-player-level{font-size:8px;bottom:-15px;padding:3px 8px}.pg-profile-hero .pg-identity h1{font-size:24px!important}.pg-profile-hero .pg-identity{gap:8px!important}.pg-profile-hero .s1-title-isolated{width:230px!important;max-height:72px}.pg-profile-rank>.pg-sprite{transform:scale(.7);margin:-20px}.pg-profile-rank h2{font-size:20px!important}.pg-signature-cue .s1-cue-preview img{height:65px!important}.pg-signature-cue figcaption{font-size:15px}.pg-signature-cue{gap:12px}.pg-stats>section{padding:12px!important}.pg-stats strong{font-size:23px!important}#pool-player-peek.pg-lounge-peek{width:min(600px,92vw)!important;padding:17px 26px!important}.pg-lounge-peek .pg-peek-content{display:grid!important;grid-template-columns:150px 1fr;gap:8px 20px!important}.pg-lounge-peek .pg-card-kicker{grid-column:1/-1}.pg-peek-hero{grid-column:1;grid-row:2/6;flex-direction:column;gap:12px;min-height:0;padding:0}.pg-peek-hero .pg-player-portrait{margin-bottom:15px}.pg-peek-rank{flex-direction:row;gap:8px}.pg-peek-rank>.pg-sprite{display:none}.pg-lounge-peek .pg-peek-content>h3,.pg-lounge-peek .pg-player-handle,.pg-lounge-peek .s1-title-isolated,.pg-lounge-peek .pg-peek-stats{grid-column:2}.pg-lounge-peek .pg-peek-content>h3{font-size:23px!important}.pg-lounge-peek .s1-title-isolated{width:220px!important;margin:0 auto;max-height:65px}.pg-peek-cue{display:none}.pg-peek-actions{grid-column:1/-1;padding-top:2px}.pg-lounge-peek .pg-peek-stats>section{padding:9px 3px}.pg-lounge-peek .pg-peek-stats .pg-icon{display:none}.pg-lounge-peek .pg-peek-stats strong{font-size:18px!important}}
/* Browser portrait fallback has a landscape coordinate system too. */
#pool-game-app.pg-rotated{grid-template-rows:56px minmax(0,1fr) 48px!important}#pool-game-app.pg-rotated .pg-body{padding:14px 20px!important}#pool-game-app.pg-rotated .pg-club-heading{min-height:150px!important;padding:18px 22px!important}.pg-rotated .pg-club-heading h1{font-size:36px!important}.pg-rotated .pg-lobby-emblem .pg-sprite{transform:scale(.7);margin:-20px}.pg-rotated .pg-section-title{margin:16px 0 10px}.pg-rotated .pg-city.pg-city-art{min-height:210px!important;padding:12px!important}.pg-rotated .pg-profile-hero{padding:24px 18px!important}.pg-rotated .pg-signature-cue{gap:12px}.pg-rotated .pg-signature-cue .s1-cue-preview img{height:65px!important}
@media(prefers-reduced-motion:reduce){#pool-game-app *,#pool-player-peek *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.pg-profile-hero .pg-player-portrait{min-height:148px;margin:0 0 18px}
@media(orientation:landscape) and (max-height:520px){.pg-profile-hero .pg-player-portrait{min-height:112px;margin-bottom:12px}}
#pool-game-app.pg-rotated .pg-profile-hero .pg-player-portrait{min-height:112px;margin-bottom:12px}#pool-game-app.pg-rotated .pg-profile-hero .pg-player-portrait>.avatar{width:67px!important;height:67px!important}
@media(orientation:landscape) and (max-height:520px){#pool-game-app .pg-club-heading{grid-template-columns:minmax(0,1fr) auto 100px;grid-template-rows:auto auto auto;min-height:110px!important;padding:14px 20px!important;gap:6px 24px}.pg-club-heading>.pg-card-kicker{grid-column:1;grid-row:1}.pg-club-heading>h1{grid-column:1;grid-row:2;font-size:33px!important}.pg-club-heading>p{display:none}.pg-club-heading .pg-lobby-summary{grid-column:2;grid-row:1/4;align-self:center}.pg-lobby-summary>span{padding:0 13px}.pg-lobby-summary b{font-size:20px}.pg-lobby-summary small{font-size:7px}.pg-club-heading .pg-lobby-emblem{grid-column:3;grid-row:1/4}.pg-club-heading .pg-mode-tabs{grid-row:3!important;margin-top:3px}.pg-city.pg-city-art{min-height:180px!important;padding:10px!important}.pg-city-art h2{margin-top:12px!important;font-size:24px!important}.pg-city-art>.pg-button{min-height:32px!important;margin-top:8px!important}.pg-city-art p{margin-bottom:6px!important}.pg-section-title{margin:12px 0 8px}.pg-section-title h2{font-size:17px!important}}
html.pool-landscape-fallback #pool-player-peek.pg-lounge-peek[open]{width:min(600px,94dvh)!important;padding:17px 26px!important}.pool-landscape-fallback .pg-lounge-peek .pg-peek-content{display:grid!important;grid-template-columns:150px 1fr;gap:8px 20px!important}.pool-landscape-fallback .pg-lounge-peek .pg-card-kicker{grid-column:1/-1}.pool-landscape-fallback .pg-peek-hero{grid-column:1;grid-row:2/6;flex-direction:column;gap:12px;min-height:0;padding:0}.pool-landscape-fallback .pg-peek-hero .pg-player-portrait{margin-bottom:15px}.pool-landscape-fallback .pg-peek-rank{flex-direction:row;gap:8px}.pool-landscape-fallback .pg-peek-rank>.pg-sprite{display:none}.pool-landscape-fallback .pg-lounge-peek .pg-peek-content>h3,.pool-landscape-fallback .pg-lounge-peek .pg-player-handle,.pool-landscape-fallback .pg-lounge-peek .s1-title-isolated,.pool-landscape-fallback .pg-lounge-peek .pg-peek-stats{grid-column:2}.pool-landscape-fallback .pg-lounge-peek .pg-peek-content>h3{font-size:23px!important}.pool-landscape-fallback .pg-lounge-peek .s1-title-isolated{width:220px!important;margin:0 auto;max-height:65px}.pool-landscape-fallback .pg-peek-cue{display:none}.pool-landscape-fallback .pg-peek-actions{grid-column:1/-1;padding-top:2px}.pool-landscape-fallback .pg-lounge-peek .pg-peek-stats>section{padding:9px 3px}.pool-landscape-fallback .pg-lounge-peek .pg-peek-stats .pg-icon{display:none}.pool-landscape-fallback .pg-lounge-peek .pg-peek-stats strong{font-size:18px!important}
#pool-game-app.pg-shell:has(.pg-playing){grid-template-rows:minmax(0,1fr)!important}#pool-game-app.pg-shell:has(.pg-playing)>.pg-header,#pool-game-app.pg-shell:has(.pg-playing)>.pg-nav{display:none!important}
#pool-game-app.pg-rotated .pg-club-heading{grid-template-columns:minmax(0,1fr) auto 100px;grid-template-rows:auto auto auto;min-height:110px!important;padding:14px 20px!important;gap:6px 24px}.pg-rotated .pg-club-heading>.pg-card-kicker{grid-column:1;grid-row:1}.pg-rotated .pg-club-heading>h1{grid-column:1;grid-row:2;font-size:33px!important}.pg-rotated .pg-club-heading>p{display:none}.pg-rotated .pg-club-heading .pg-lobby-summary{grid-column:2;grid-row:1/4;align-self:center}.pg-rotated .pg-lobby-summary>span{padding:0 13px}.pg-rotated .pg-lobby-summary b{font-size:20px}.pg-rotated .pg-lobby-summary small{font-size:7px}.pg-rotated .pg-club-heading .pg-lobby-emblem{grid-column:3;grid-row:1/4}.pg-rotated .pg-club-heading .pg-mode-tabs{grid-row:3!important;margin-top:3px}.pg-rotated .pg-city.pg-city-art{min-height:180px!important;padding:10px!important}.pg-rotated .pg-city-art h2{margin-top:12px!important;font-size:24px!important}.pg-rotated .pg-city-art>.pg-button{min-height:32px!important;margin-top:8px!important}.pg-rotated .pg-city-art p{margin-bottom:6px!important}.pg-rotated .pg-section-title{margin:12px 0 8px}.pg-rotated .pg-section-title h2{font-size:17px!important}
.pg-header-actions>.pg-icon-button:nth-last-child(-n+3)::after,.pg-home-actions>.pg-icon-button::after{left:auto!important;right:0;transform:none!important}

#pool-leave-confirm.pg-match-dialog{background:linear-gradient(150deg,#1d2742,#0b1224)!important;border-color:#c8a36599!important;box-shadow:inset 0 1px #f2d39a22,0 25px 90px #000b!important}#pool-leave-confirm .eyebrow{font:700 8px system-ui!important;letter-spacing:.2em;color:#d1ad6e}#pool-leave-confirm h2{font:500 28px Georgia!important;color:#f2dcb1!important}#pool-leave-confirm .dialog-description{font:12px/1.7 system-ui;color:#99abc3}#pool-leave-confirm .pg-button{border-radius:9px!important;font:700 12px system-ui!important;padding:11px 18px!important}.pg-patch-form{display:grid;gap:12px;padding:22px;border:1px solid var(--pg-line);border-radius:16px;background:#0d172aee}.pg-patch-form input,.pg-patch-form textarea{border:1px solid #82724d55!important;border-radius:9px!important;background:#070f1f!important;color:#e8dfcd!important;padding:12px!important;font:13px/1.6 system-ui!important}.pg-patch-form input:focus,.pg-patch-form textarea:focus{outline:2px solid #b8975c!important;outline-offset:2px}
#pool-game-app.pg-phone .pg-header-profile>.avatar{width:30px!important;height:30px!important;margin-left:10px!important;margin-right:6px!important}#pool-game-app.pg-phone .pg-header .s1-frame-overlay{height:165%!important;top:-20%!important}
.pg-dossier-toolbar>.pg-icon-button:first-child::after{left:0!important;right:auto;transform:none!important}.pg-dossier-toolbar>.pg-icon-button:last-child::after{left:auto!important;right:0;transform:none!important}
.pg-match-intro{position:absolute;inset:0;z-index:90;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;background:radial-gradient(ellipse,#243950f5,#091323f5);color:#f9d68a;pointer-events:none;animation:pg-match-intro 1.5s ease both}.pg-match-intro h2{font-size:clamp(22px,5vw,42px);margin:18px 0}.pg-match-intro small{letter-spacing:.3em}.pg-match-intro p{text-transform:capitalize}@keyframes pg-match-intro{0%{opacity:0}15%,75%{opacity:1}100%{opacity:0}}
#pool-game-app .pg-header>button,#pool-game-app .pg-nav>button,#pool-game-app .pg-match-tools>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;line-height:1.2!important;box-sizing:border-box!important}
#pool-game-app button svg{display:block!important;flex:none;vertical-align:middle;margin:0!important;width:20px;height:20px}
#pool-game-app .pool-level-badge,#pool-game-app .pool-xp-copy:empty{display:none!important}
.pg-challenge-city{width:min(520px,90vw)}.pg-challenge-city>button:not(.modal-close){display:block;width:100%;min-height:44px;margin:10px 0}
