/* NEXUS Evolution: account journal, weekly competition and fast multiplayer. */
.account-sync{display:block;width:fit-content;margin:0 0 16px;padding:7px 12px;color:#9bc7c7;font-size:11px;text-decoration:none;border:1px solid #28484d;border-radius:99px;background:#11232c;letter-spacing:.025em}
.matchmaking-panel{display:flex;align-items:center;gap:20px;padding:24px;margin:0 0 24px;background:linear-gradient(125deg,#202039,#111d29);border:1px solid #45405e;border-radius:18px}.matchmaking-panel>div{flex:1}.matchmaking-panel h2{margin:7px 0;font-size:24px}.matchmaking-panel p{margin:0;color:#b3bdcd;font-size:13px;line-height:1.6}.matchmaking-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.matchmaking-controls select,.weekly-tools select,.invite-dialog select{padding:13px 16px;background:#131d2c;color:#f3f0ff;border:1px solid #3b4660;border-radius:10px;min-height:48px;font:inherit;font-size:13px}.matchmaking-controls .btn{min-height:48px;white-space:nowrap}.game-match{width:100%;margin-top:12px;min-height:44px;background:#a897ff13;color:#c9bdff;border:1px solid #a897ff55;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer}.game-match:hover{background:#a897ff26}.game-match:disabled{opacity:.5;cursor:wait}
.progress-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.progress-metric{border:1px solid #2c394b;border-radius:14px;padding:22px;background:linear-gradient(140deg,#192334,#101820)}.progress-metric span{display:block;color:#96a5bc;font-size:10px;letter-spacing:.12em;font-weight:700}.progress-metric strong{display:block;font-size:32px;margin-top:12px;font-variant-numeric:tabular-nums}.profile-sections{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;margin-top:24px}.profile-section{padding:24px;background:#121b29;border:1px solid #2c394b;border-radius:16px;min-width:0}.profile-section h3{margin:8px 0 22px;font-size:21px}.progress-record{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid #273244}.progress-record:last-child{border:0}.progress-record img{width:62px;height:42px;object-fit:cover;border-radius:7px}.progress-record>div{flex:1;min-width:0}.progress-record strong{font-size:13px}.progress-record small{display:block;color:#95a7bd;margin-top:5px;font-size:11px}.progress-record b{color:#bcadff;font-size:20px;font-variant-numeric:tabular-nums}.achievement{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #273244}.achievement:last-child{border:0}.achievement-medal{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;background:#b49a581f;color:#f5d58a;border:1px solid #83744e;border-radius:10px}.achievement strong{display:block;font-size:13px}.achievement small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#95a7bd}.sync-caption{color:#7fd5c9;font-size:12px;line-height:1.6}.weekly-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:0 0 24px}.weekly-tools p{font-size:12px;color:#9dabc0;margin:0}.weekly-tools label{display:flex;align-items:center;gap:12px;font-size:12px;color:#9dabc0}.weekly-self{padding:16px;margin-bottom:18px;border:1px solid #6d608e;background:#a897ff10;color:#d8cbff;border-radius:12px;font-size:13px}.rank-row.mine{background:#a897ff12;border-color:#655885}.friend-presence{font-size:10px;color:#8696af}.friend-presence.online{color:#72dac4}.friend-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.friend-actions button{min-height:44px}.invite-dialog p{line-height:1.65;color:#aebacf}.invite-dialog select{display:block;width:100%;margin-bottom:20px}.invite-dialog .btn{margin-top:10px}.run-sync{grid-column:1/-1;margin:0;font-size:11px;color:#7dd5c7}.social-row strong{overflow-wrap:anywhere}.weekly-score{font-size:22px;color:#bcaaff;margin-left:auto;white-space:nowrap}.weekly-score small{font-size:10px;display:block;color:#95a7bd}.content-status{font-size:12px;color:#7fd5c9}
@media(max-width:1000px){.matchmaking-panel{align-items:flex-start;flex-direction:column}.matchmaking-controls{width:100%}.matchmaking-controls select{flex:1;min-width:0}.profile-sections{grid-template-columns:1fr}}
@media(max-width:600px){.matchmaking-panel{padding:20px;gap:16px}.matchmaking-panel h2{font-size:22px}.progress-overview{gap:8px}.progress-metric{padding:16px 12px}.progress-metric span{font-size:8px;letter-spacing:.06em}.progress-metric strong{font-size:25px}.profile-section{padding:20px}.friend-actions{width:100%;margin:8px 0 0}.friend-actions button{flex:1}.weekly-score{font-size:20px}.account-sync{font-size:10px;margin-bottom:12px}.weekly-tools label{width:100%}.weekly-tools select{flex:1;min-width:0}.progress-record b{font-size:18px}}

.profile-card>[data-settings]{margin-right:10px}.achievement.locked{opacity:.55}.achievement.locked .achievement-medal{background:#253044;border-color:#41516b;color:#96a4bd}

.modal-overlay{z-index:3000}.toast{z-index:4000;width:max-content;max-width:calc(100vw - 32px);text-align:center}.dialog-feedback{margin:14px 0 0;color:#f3c7a5!important;font-size:12px}.studio-dialog .dialog-feedback:empty{display:none}@media(max-width:850px){.toast{bottom:calc(86px + env(safe-area-inset-bottom))}}@media(max-height:520px) and (orientation:landscape){.toast{bottom:calc(58px + env(safe-area-inset-bottom))}}
@media(max-width:560px),(max-height:520px) and (orientation:landscape){
 body[data-game=snake] .overlay{padding:12px;overflow:hidden}
 body[data-game=snake] .overlay-content{padding:0;width:100%;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
 body[data-game=snake] .snake-icon{font-size:30px;line-height:1;filter:none}
 body[data-game=snake] .overlay-content>.eyebrow{font-size:9px;margin:0}
 body[data-game=snake] .overlay h2{font-size:23px;margin:0;line-height:1.15}
 body[data-game=snake] .overlay p:not(.eyebrow){font-size:12px;line-height:1.45;margin:0}
 body[data-game=snake] .overlay .primary{position:sticky;bottom:0;flex-shrink:0;min-height:44px;margin:0;padding:10px 14px;background:#a897ff;color:#131226;z-index:2}
 body[data-game=snake] .run-summary{margin:0;gap:8px}
 body[data-game=snake] .run-summary>div{padding:8px}
 body[data-game=snake] .run-summary strong{font-size:20px}
 body[data-game=pulse] .screen-overlay{overflow:hidden;padding:14px}
 body[data-game=pulse] .overlay-inner{max-height:100%;overflow-y:auto;overscroll-behavior:contain}
 body[data-game=pulse] .overlay-inner>.btn{position:sticky;bottom:0;min-height:44px;background:#a897ff;z-index:2}
 body[data-game=pulse] .overlay-mark{width:40px;height:40px;font-size:20px;margin:0 auto 8px}
 body[data-game=pulse] .overlay-inner h2{font-size:24px;margin:8px 0}
 body[data-game=pulse] .overlay-inner p:not(.overline){font-size:12px;line-height:1.4;margin-bottom:10px}
}
