@font-face{font-family:CCMarker;src:url('assets/fonts/PermanentMarker-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
:is(label[for="cpuDifficulty"],label[for="setupLessonSelect"]){display:block;margin:20px 0 10px;color:#16dcff;font:18px CCMarker,Impact,sans-serif;text-shadow:2px 2px #08080b;letter-spacing:.04em}
:is(#cpuDifficulty,#setupLessonSelect){appearance:none;-webkit-appearance:none;min-width:220px;max-width:100%;padding:12px 52px 14px 20px;border:2px solid #ffd21c;border-radius:3px 12px 3px 8px;background:linear-gradient(45deg,transparent 50%,#16dcff 50%) right 22px center/9px 9px no-repeat,linear-gradient(135deg,#16dcff 50%,transparent 50%) right 13px center/9px 9px no-repeat,linear-gradient(110deg,#292030,#100d17);color:#ffd21c;font:28px/1.3 CCMarker,Impact,sans-serif;text-shadow:2px 2px #08080b,3px 3px #ff2ca8;box-shadow:5px 5px 0 #ff2ca8,-3px -2px 0 #16dcff;transform:rotate(-2deg);cursor:pointer}
:is(#cpuDifficulty,#setupLessonSelect):hover{border-color:#16dcff;box-shadow:5px 5px 0 #ff2ca8,-3px -2px 0 #ffd21c}
:is(#cpuDifficulty,#setupLessonSelect):focus-visible{outline:3px solid white;outline-offset:7px}
:is(#cpuDifficulty,#setupLessonSelect) option{background:#19151f;color:#fff;font:18px system-ui,sans-serif;text-shadow:none}
:is(#cpuDifficulty,#setupLessonSelect) option:disabled{color:#888}
:is(#cpuDifficultyHelp,#setupLessonsProgress){margin-top:20px}
.starter-logos{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:20px 0}
.starter-logos button{position:relative;background:#18151e;border:2px solid #49424f;border-radius:6px;padding:12px 8px;cursor:pointer;min-height:85px}
.starter-logos img{width:100%;height:64px;object-fit:contain;display:block}
.starter-logos button[aria-pressed=true]{border-color:#ffd21c;box-shadow:0 0 16px #ffd21c55;background:#302515}
.starter-logos button[aria-pressed=true]::after{content:'✓';position:absolute;top:2px;right:5px;color:#ffd21c}
.starter-logos button:disabled{cursor:default}.starter-logos button:focus-visible{outline:3px solid #16dcff;outline-offset:3px}
.profile-name{font-family:CCMarker,Impact,sans-serif!important;font-weight:400!important;color:#ffd21c;text-shadow:2px 2px #08080b,3px 3px #ff2ca8;letter-spacing:.02em;overflow-wrap:anywhere;line-height:1.25;transform:rotate(-2deg);margin:0}
.account-banner{display:flex;align-items:center;gap:18px;padding:14px clamp(18px,4vw,56px);background:linear-gradient(100deg,#15131d,#09090b);border-bottom:2px solid #ff2ca8;color:white}
.account-banner .profile-name{font-size:clamp(23px,3vw,38px)}
.account-banner small,.arena-identity small{display:block;font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.12em;color:#a9ff29}
.account-banner a{color:#16dcff;font:700 12px system-ui,sans-serif;margin-left:auto;padding:12px;text-decoration:none}
.profile-square{position:relative;display:grid;place-items:center;flex-shrink:0;width:64px;height:64px;aspect-ratio:1;background:#211c2b;border:2px solid #16dcff;box-shadow:3px 3px #ff2ca8;overflow:hidden;color:#ffd21c;font:24px CCMarker,Impact,sans-serif}
.profile-square img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
#homePlaceholder,#profilePicturePlaceholder{display:block;width:100%;height:100%;font-size:0;background:url('assets/logos/can-control.webp') center/contain no-repeat}
.profile-picture-editor{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:20px 0}.profile-picture-editor .profile-square{width:112px;height:112px}
.profile-picture-editor label{margin-top:0}.profile-picture-editor button{margin-top:10px;background:#25222d;color:white;border:1px solid #777;padding:9px;cursor:pointer}
.profile-picture-editor input{max-width:260px;padding:8px}.profile-picture-editor small{max-width:260px}
.arena-identity{display:flex;align-items:center;gap:8px;background:#100e18ed;border:1px solid #ff2ca8;padding:7px;margin:6px 0;color:white}
.arena-identity .profile-square{width:42px;height:42px;font-size:18px;box-shadow:none}
.arena-identity .profile-name{font-size:clamp(12px,1.35vw,21px)}
.arena-identity>div:last-child{min-width:0}.arena-identity small{font-size:8px;color:#aaa}
.profile-matchup{display:none;align-items:center;justify-content:center;gap:16px;flex:1;min-width:0}
.toys-quiet{display:none;font:24px CCMarker,Impact,sans-serif;color:#ffd21c;text-shadow:2px 2px #ff2ca8;background:#16121e;border:2px solid #ff2ca8;padding:10px 14px;cursor:pointer;transform:rotate(-3deg);flex-shrink:0}
body:has(#gameScreen:not([hidden])) .toys-quiet{display:block}
.profile-versus{font:32px CCMarker,Impact,sans-serif;color:#16dcff;text-shadow:2px 2px #ff2ca8;transform:rotate(-8deg)}
body:has(#gameScreen:not([hidden])) .profile-matchup{display:flex}
body:has(#gameScreen:not([hidden])) .account-banner> .profile-square,
body:has(#gameScreen:not([hidden])) .account-banner>div:not(.profile-matchup){display:none}
.profile-matchup .arena-identity{flex:1;max-width:340px;margin:0}
@media(min-width:901px){body:has(#gameScreen:not([hidden])) .match-history{top:var(--match-history-top,240px)}}
@media(max-width:600px){.profile-matchup{gap:8px}.profile-versus{font-size:22px}.profile-matchup .arena-identity .profile-name{font-size:14px}.account-banner:has(.profile-matchup){flex-wrap:wrap}}
@media(max-width:600px){.account-banner{gap:12px;padding:12px}.account-banner .profile-square{width:48px;height:48px}.account-banner a{padding:8px}.arena-identity{gap:5px;padding:5px}.arena-identity .profile-square{width:32px;height:32px}}

/* the log in / profile button on the home screen: big and easy to hit */
.account-banner a#homeProfileLink:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:14px 28px;background:#ffd21c;color:#111;font:900 18px/1 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;border:3px solid #111;box-shadow:5px 5px 0 #ff2ca8;white-space:nowrap}
.account-banner a#homeProfileLink:hover{filter:brightness(1.08);transform:translate(-1px,-1px);box-shadow:6px 6px 0 #ff2ca8}
@media(max-width:600px){.account-banner a#homeProfileLink{min-height:46px;padding:12px 16px;font-size:15px}}
