#profile-dialog.player-profile{width:min(410px,calc(100vw - 28px));max-height:calc(100dvh - 28px);box-sizing:border-box;overflow:auto;padding:20px 20px 18px;text-align:left;scrollbar-width:thin}
#profile-dialog.player-profile .map-header{margin-bottom:16px}#profile-dialog.player-profile .map-header h2{font-size:24px}
#profile-dialog.player-profile #emblem-profile{display:grid;grid-template-columns:80px minmax(0,1fr);column-gap:12px;align-items:center;text-align:left;padding:0;margin-bottom:14px}
#profile-dialog.player-profile #emblem-profile>.emblem-art{grid-row:1/4;width:80px;height:80px;margin:0}#profile-dialog.player-profile #emblem-profile h3{font-size:17px;line-height:1.3;margin:0}#profile-dialog.player-profile #emblem-profile p{margin:3px 0;font-size:11px}
#profile-dialog.player-profile #emblem-profile button{width:auto;min-height:32px;margin:4px 0 0;padding:5px 10px;justify-self:start;border:1px solid #d1b57c77;background:#e1c0911c;box-shadow:none;color:#ffe5b3;font-size:11px;line-height:1.4;border-radius:9px}
.profile-identity{padding:13px;border:1px solid #cddcff44;border-radius:16px;background:#1a294444}.profile-identity label{display:block;font-size:12px;color:#f4e6c6;margin-bottom:7px}.nickname-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#profile-dialog #profile-nickname{width:100%;min-width:0;height:44px;padding:10px;box-sizing:border-box;border:1px solid #bdceef66;border-radius:10px;background:#15253e99;color:#fff;font:inherit;font-size:16px}
#profile-dialog .nickname-row button{height:44px;min-height:44px;width:auto;padding:8px 15px;margin:0;font-size:13px;border-radius:10px;color:#302f49;background:linear-gradient(#dcfff5,#8ed7c5);box-shadow:0 2px 0 #487f83;line-height:1.3}
#nickname-note{display:block;font-size:10px;line-height:1.5;color:#c3c8dc;margin-top:8px}#nickname-status{font-size:11px;color:#b9f4da;line-height:1.4;margin:7px 0 0}#nickname-status:empty{display:none}
.profile-bests{margin:16px 0 12px}.profile-bests h3{font-size:15px;margin:0 0 10px;color:#fff0ce}.profile-score-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-score-card{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px 5px;padding:11px 12px;border-radius:14px;border:1px solid #d1d6ff44;background:linear-gradient(130deg,#51617855,#29314977)}.profile-score-card>span{font-size:20px;align-self:center;color:#d3edfa}.profile-score-card small{font-size:11px;color:#dcddef;align-self:center;line-height:1.4}.profile-score-card strong{grid-column:1/-1;color:#fff0bf;font-size:25px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.profile-score-card[data-mode=endless]{border-color:#9edfdc66;background:linear-gradient(130deg,#3a847566,#293e5277)}
.profile-vs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:8px;padding:11px 12px;border:1px solid #c7c5ff33;border-radius:13px;background:#3d355b66}.profile-vs span{font-size:12px;color:#e3dcf3}.profile-vs strong{font-size:18px;color:#ffddc2}.profile-vs small{margin-left:auto;font-size:11px;color:#d0c9e3}
#profile-dialog.player-profile #profile-share{width:100%;min-height:42px;margin:0 0 12px;padding:8px;font-size:13px;box-shadow:none;background:#e4b8e322;border:1px solid #ecc4e64d;border-radius:12px;color:#f5e1f4}
.profile-network{border-top:1px solid #ffffff24;padding-top:12px}.profile-network summary{cursor:pointer;font-size:12px;color:#cbd6e8;min-height:30px;line-height:30px}.profile-network .games-settings{margin:5px 0 0;padding:5px 0;border:0;text-align:center}.profile-network #games-status{font-size:12px}.profile-network #games-connect{min-height:44px;font-size:14px;margin:8px 0;padding:10px}.profile-network .games-settings>small:last-child{font-size:10px;line-height:1.5;display:block}
@media(max-width:350px){#profile-dialog.player-profile{padding:16px 14px}.profile-score-card{padding:10px}.profile-score-card strong{font-size:22px}#profile-dialog.player-profile #emblem-profile{grid-template-columns:64px minmax(0,1fr);gap:8px}#profile-dialog.player-profile #emblem-profile>.emblem-art{width:64px;height:64px}#profile-dialog.player-profile #emblem-profile h3{font-size:15px}}
#support-dialog{width:min(410px,calc(100vw - 28px));max-height:calc(100dvh - 28px);box-sizing:border-box;overflow:auto;padding:22px;text-align:left;color:#f5f3fc}#support-dialog header{display:flex;justify-content:space-between;align-items:center;gap:10px}#support-dialog h2{font-size:22px;line-height:1.3;margin:0}#support-dialog .support-close{flex:none;width:42px;height:42px;min-height:42px;margin:0;padding:0;border-radius:50%;font-size:26px;background:#fff1;border:1px solid #fff5;box-shadow:none;color:#fff}#support-dialog p{font-size:12px;line-height:1.65}.support-intro{color:#dadfed}.support-id-card{padding:16px 13px;border-radius:17px;border:1px solid #9ddccd66;background:linear-gradient(125deg,#36877955,#31375388)}.support-id-card label{display:block;font-size:13px;color:#c5ffe9;margin-bottom:9px}#support-dialog #support-id{display:block;box-sizing:border-box;width:100%;border:0;background:#14253c88;border-radius:8px;padding:11px 8px;font:12px/1.5 ui-monospace,monospace;color:#fff;user-select:text}.support-id-card small{display:block;margin-top:9px;font-size:10px;line-height:1.6;color:#cbd5e1}#support-dialog dl{display:grid;grid-template-columns:1fr auto;gap:14px 10px;font-size:12px;margin:20px 0}#support-dialog dt{color:#c4cfdf}#support-dialog dd{margin:0;color:#fff1cf;text-align:right}#support-dialog .support-copy{width:100%;margin:0;min-height:46px;padding:12px;font-size:14px;border-radius:13px;background:linear-gradient(#d2fff1,#8fd9cd);color:#253b4d;box-shadow:0 3px 0 #42767b}#support-dialog .support-status:empty{display:none}#support-dialog .support-status{color:#bbffde}#support-dialog .support-save-note{color:#d5c9e0;font-size:11px;margin:18px 0}#support-dialog details{border-top:1px solid #fff2;padding-top:12px;color:#bec7db;font-size:11px}#support-dialog summary{min-height:30px;line-height:30px;cursor:pointer}#support-dialog textarea{box-sizing:border-box;display:block;width:100%;font:11px/1.5 ui-monospace,monospace;background:#17253a;color:#e4e9f3;border:1px solid #7d8aa1;border-radius:8px;padding:10px;user-select:text;resize:vertical}#profile-dialog .support-open,#help-dialog .support-open,#settings-dialog .support-open{font-size:12px;min-height:42px;box-shadow:none;border:1px solid #ffffff35;background:#ffffff0a;color:#d6e0ed;padding:9px 12px;border-radius:11px;margin:10px 0 0;width:100%}#settings-dialog .support-open{grid-column:1/-1}

#support-dialog #support-id{overflow-wrap:anywhere;font-size:13px;line-height:1.7}
#cloud-dialog{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;padding:22px;text-align:left;color:#f5f3fc}#cloud-dialog header{display:flex;gap:12px;align-items:center;justify-content:space-between}#cloud-dialog h2{font-size:23px;line-height:1.3;margin:0}#cloud-dialog .cloud-close{width:40px;height:40px;min-height:40px;flex:none;margin:0;padding:0;border-radius:50%;font-size:25px;box-shadow:none;background:#fff1;border:1px solid #fff4;color:white}#cloud-dialog p{font-size:12px;line-height:1.7;margin:14px 0}#cloud-dialog .cloud-hero{display:flex;align-items:center;justify-content:center;gap:22px;margin:20px 0 10px;color:#b8f6ed}.cloud-hero span{font-size:39px}.cloud-hero b{font-size:27px;color:#ffe0a8}.cloud-flow{color:#cce4f6}.cloud-warning{padding:14px;border:1px solid #e6b9a466;background:#e8b27412;border-radius:14px;color:#ffe4be}.cloud-account{color:#c6d5e5;overflow-wrap:anywhere}#cloud-dialog button{width:100%;min-height:44px;font-size:14px;line-height:1.4;padding:12px;border-radius:13px;margin:7px 0;background:linear-gradient(#d8fff5,#92dacc);color:#25354c;box-shadow:0 3px 0 #558586}#cloud-dialog button:disabled{opacity:.45}#cloud-dialog .cloud-actions button+button,#cloud-dialog .cloud-secondary{background:#ffffff10;border:1px solid #fff4;box-shadow:none;color:#e1e9f5}#cloud-dialog .cloud-status{color:#ffe7b2}#cloud-dialog .cloud-status:empty{display:none}#cloud-dialog h3{font-size:15px;line-height:1.6}#cloud-dialog small{display:block;font-size:11px;line-height:1.7;color:#cbd9e8}.cloud-backup-card{padding:14px;background:#16293b55;border:1px solid #a9d0ce44;border-radius:14px;margin:12px 0}.cloud-backup-card strong{font-size:14px}.cloud-summary{white-space:pre-line;color:#b7f4db;border-top:1px solid #fff3;padding-top:12px}#profile-dialog .cloud-open,#settings-dialog .cloud-open,#support-dialog .cloud-open{display:block;grid-column:1/-1;width:100%;min-height:44px;padding:11px;margin:10px 0 0;border-radius:12px;font-size:13px;color:#cffcef;background:#50b5a41a;border:1px solid #8dd4c95e;box-shadow:none}.cloud-notice{display:block;margin-top:7px;text-align:center;color:#d1cbbb;font-size:10px;line-height:1.5}@media(max-width:350px){#cloud-dialog{padding:18px 16px}#cloud-dialog h2{font-size:21px}}

#cloud-dialog .cloud-hero svg{display:block;width:240px;max-width:100%;height:66px}
.profile-country{margin-top:14px;padding-top:13px;border-top:1px solid #d1e4f32a}.profile-country label{font-size:12px;color:#f4e6c6;margin-bottom:7px}#profile-dialog #profile-country{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #bdceef66;border-radius:10px;background:#23344f;color:#fff;font:14px/1.4 inherit;padding:10px}.profile-country small{display:block;color:#c3c8dc;font-size:10px;line-height:1.5;margin-top:6px}

#support-dialog .support-id-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}#support-dialog .support-id-heading label{margin:0}#support-dialog .support-id-copy{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:none;margin:0;padding:10px;border-radius:12px;border:1px solid #b8f9e7aa;background:linear-gradient(#caffed,#82d7c9);box-shadow:0 3px 0 #416c77;color:#254450}#support-dialog .support-id-copy svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
#settings-dialog .reset-open{grid-column:1/-1;width:100%;font-size:12px;min-height:42px;margin:9px 0 0;padding:9px 12px;border:1px solid #ead3c83b;border-radius:11px;background:#ffffff08;color:#e8c9cd;box-shadow:none}#settings-dialog .reset-undo{color:#c4ecd8}
#reset-dialog{width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;text-align:left;color:#fdf2e9}#reset-dialog h2{font-size:23px;line-height:1.35;margin:0 0 18px}#reset-dialog p{font-size:13px;line-height:1.7;margin:12px 0}#reset-dialog .reset-kept{padding:13px;background:#153a3b66;border:1px solid #b7e2ca44;border-radius:13px;color:#d4efe3}#reset-dialog small{font-size:11px;line-height:1.6;color:#cbd7e5}#reset-dialog button{width:100%;margin:14px 0 0;font-size:14px}#reset-dialog .reset-cancel{background:#ffffff10;color:#eee0f2;box-shadow:none;border:1px solid #fff3}#reset-dialog .reset-error:empty{display:none}#reset-dialog .reset-error{color:#ffcaad}
