@font-face{font-family:'Gamebox Emoji';src:url('/platform/emoji/gamebox-emoji.woff2') format('woff2');font-display:block}
.profiles,.profile-switch{--font-ui-ko:"Fredoka","NanumSquareRound","Gamebox Emoji",sans-serif;--font-display-ko:"Fredoka","Jua","Gamebox Emoji",sans-serif}
.profiles{position:fixed;inset:0;z-index:120;overflow:auto;background:#f4e4c9 url('/assets/launcher-v2/canonical/playroom-canonical-clean.png') center/cover fixed;padding:24px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom));color:#59412b;font-family:var(--font-ui-ko,'NanumSquareRound'),'Gamebox Emoji',sans-serif;font-size:22px;line-height:1.45;box-sizing:border-box}
.profiles[hidden],.profile-switch[hidden]{display:none!important}
.profile-panel{max-width:960px;margin:0 auto;background:rgba(255,248,228,.97);border:5px solid #dfc593;border-radius:36px;box-shadow:0 16px 40px #593d2c40;padding:24px;box-sizing:border-box;text-align:center}
.profile-brand{width:min(240px,65%);height:auto;max-height:140px;object-fit:contain}
.profile-panel h1{font-family:var(--font-display-ko,'Jua'),'Gamebox Emoji',sans-serif;font-size:48px;line-height:1.25;margin:12px 0 8px}.profile-panel h2{font-family:var(--font-display-ko,'Jua'),'Gamebox Emoji',sans-serif;font-size:36px}
.profile-panel p{margin:8px 0 16px}.profile-panel [role=alert]{color:#a13128;min-height:32px;margin:0}
.profile-panel button,.profile-switch{font:700 22px/1.3 var(--font-ui-ko,'NanumSquareRound'),'Gamebox Emoji',sans-serif;min-height:56px;padding:12px 18px;color:#59412b;background:#fff7dc;border:3px solid #d2ae76;border-radius:20px;box-shadow:0 4px 0 #c3a276;cursor:pointer;touch-action:manipulation}
.profile-panel button:active{transform:translateY(3px);box-shadow:none}.profile-panel button:focus-visible,.profile-panel input:focus-visible{outline:4px solid #409ab6;outline-offset:3px}.profile-panel button:disabled{opacity:.6}
.profile-panel .profile-primary{background:#bce1a0;border-color:#81ac5e;display:block;min-width:180px;margin:18px auto}.profile-admin{margin-top:24px}
.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px;margin:18px 0}.profile-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;gap:12px;word-break:break-word}.profile-choice img{width:112px;height:112px}.profile-lock{position:absolute;right:8px;top:8px}.profile-add{min-height:190px}
.profile-panel form{max-width:640px;margin:auto}.profile-panel label{display:block;text-align:left;margin:16px 0}.profile-panel input:not([type=checkbox]),.profile-panel select{display:block;box-sizing:border-box;width:100%;min-height:56px;margin-top:6px;padding:12px;border:3px solid #d8b985;border-radius:16px;background:#fffdf2;color:#59412b;font:700 var(--text-child-button-size,30px)/1.3 var(--font-ui-ko,'NanumSquareRound'),'Gamebox Emoji',sans-serif}.profile-panel input[type=password]{font-family:Fredoka,sans-serif;letter-spacing:8px;text-align:center}.profile-panel input[type=checkbox]{width:24px;height:24px;vertical-align:middle;margin-right:12px}
.character-grid{border:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.character-grid legend{margin:16px auto;font-weight:700}.character-choice{padding:12px 4px!important;font-size:var(--text-child-button-size,30px)!important;min-height:82px!important}.character-choice[aria-pressed=true]{background:#bce1a0;border-color:#477d31;outline:3px solid #477d31}
.profile-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:360px;margin:12px auto}.profile-keypad button{font-family:Fredoka,var(--font-ui-ko,'NanumSquareRound'),'Gamebox Emoji',sans-serif;font-size:28px}
.profile-switch{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));z-index:25;max-width:calc(100vw - 180px)}.profile-management{display:grid;gap:20px}.profile-management section{border-top:2px solid #dec597;padding:16px}.profile-management button{margin:8px}
@media(max-width:599px){.profiles{padding-top:16px;font-size:20px}.profile-panel{padding:16px;border-radius:28px}.profile-panel h1{font-size:40px}.profile-panel h2{font-size:32px}.profile-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-choice{min-height:180px;padding:10px!important}.profile-choice img{width:100px;height:100px}.character-grid{grid-template-columns:repeat(3,1fr)}.profile-panel button{font-size:20px}.profile-switch{font-size:20px}}
@media(max-height:500px) and (min-width:600px){.profiles{padding:16px}.profile-brand{max-height:70px}.profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-panel h1{font-size:40px}}


.profile-add::before{content:"+";display:block;font:700 36px Fredoka,sans-serif}

.character-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.profiles .character-emoji{font-family:"Gamebox Emoji",sans-serif!important;font-size:44px!important;line-height:1.2!important}.profiles .profile-lock{font-family:"Gamebox Emoji",sans-serif!important}


/* Keep the new identity shortcut clear of the established lower-left Home exit. */
@media (orientation:landscape){.profile-switch{left:max(180px,calc(8vw + 20px));max-width:calc(100vw - 360px)}}

/* Editable names retain the canonical type size, including 12 wide Latin glyphs. */
.profile-switch,.profile-panel h1,.profile-panel h2{overflow-wrap:anywhere}

/* PIN composite: no editable input, no native keyboard target. */
.pin-entry{margin:12px 0;outline-offset:3px}.pin-entry:focus-visible{outline:4px solid #409ab6;border-radius:16px}
.pin-caption{font-size:24px;line-height:1.3;text-align:left;margin-bottom:6px}
.pin-mask{display:flex;align-items:center;justify-content:center;min-height:44px;border:3px solid #d8b985;border-radius:16px;background:#fffdf2;font:500 30px/1 Fredoka,sans-serif;letter-spacing:8px;user-select:none}
.profiles .profile-keypad{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profiles .profile-keypad .pin-key{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;height:56px;padding:0;font:500 28px/1 Fredoka,sans-serif;white-space:nowrap;overflow-wrap:normal;box-sizing:border-box}
/* Only dedicated PIN screens own the viewport lock; text/name editors still scroll. */
html.launcher-pin-surface,html.launcher-pin-surface body{overflow:clip!important;overscroll-behavior:none}
html.launcher-pin-surface body{height:100dvh}
.profiles.profiles--pin{display:grid;place-items:center;height:100vh;height:100dvh;max-height:100dvh;overflow:clip;overscroll-behavior:none;touch-action:none;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.profiles--pin .profile-panel{display:grid;grid-template-rows:auto minmax(0,1fr) 48px;gap:8px;width:min(440px,100%);height:100%;max-height:760px;min-height:0;padding:12px;border-width:3px;border-radius:24px;overflow:clip}
.profiles--pin .profile-brand{display:none}
.profiles--pin .profile-heading{min-width:0;min-height:0}
.profiles--pin .profile-heading h1{font-size:36px;line-height:1.2;margin:0 0 6px}
.profiles--pin .profile-heading p{font-size:24px;line-height:1.3;margin:0 0 6px}
.profiles--pin .profile-heading [role=alert]{font-size:24px;min-height:60px;margin:0;line-height:1.25}
.profiles--pin .profile-panel form{display:grid;grid-template-rows:44px minmax(188px,1fr) 48px;gap:8px;width:min(320px,100%);height:100%;min-height:0;margin:0 auto}
.profiles--pin .profile-panel form[data-pin-auto=true]{grid-template-rows:44px minmax(188px,1fr)}
.profiles--pin form[data-pin-auto=true]>.profile-primary{display:none}
.profiles--pin .pin-entry{margin:0;min-height:0}.profiles--pin .pin-caption{display:none}.profiles--pin .pin-mask{height:44px;min-height:0;box-sizing:border-box}
.profiles--pin .profile-keypad{height:100%;max-height:320px;width:100%;margin:0;grid-template-rows:repeat(4,minmax(44px,1fr));gap:6px;min-height:0}
.profiles--pin .profile-keypad .pin-key{width:100%;height:100%;min-height:44px;border-radius:16px;box-shadow:0 2px 0 #c3a276}
.profiles--pin .profile-panel>.profile-back,.profiles--pin .profile-panel form>button:not(.pin-key){height:48px;min-height:44px;margin:0;padding:4px 12px;border-radius:16px;font-size:28px;line-height:1.2}
@media(max-height:650px){.profiles--pin .profile-heading>p:not([role=alert]){display:none}.profiles--pin .profile-heading [role=alert]{min-height:60px}.profiles--pin .profile-panel{padding:8px;gap:6px}}
@media(orientation:landscape) and (max-height:600px){
 .profiles.profiles--pin{padding:max(6px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
 .profiles--pin .profile-panel{width:min(840px,100%);height:100%;padding:8px;border-width:2px;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);grid-template-rows:minmax(0,1fr) 44px;gap:8px 16px}
 .profiles--pin .profile-heading{grid-column:1;grid-row:1;align-self:center}.profiles--pin .profile-heading h1{font-size:36px}
 .profiles--pin .profile-panel>.profile-back{grid-column:1;grid-row:2;height:44px}
 .profiles--pin .profile-panel form{grid-column:2;grid-row:1/-1;grid-template-rows:40px minmax(188px,1fr) 44px;gap:6px}
 .profiles--pin .profile-panel form[data-pin-auto=true]{grid-template-rows:40px minmax(188px,1fr)}
 .profiles--pin .pin-mask{height:40px}.profiles--pin .profile-panel form>button:not(.pin-key){height:44px}
 .profiles--pin .profile-keypad{gap:4px;max-height:none}
}

@media(min-width:600px) and (min-height:601px){.profiles--pin .profile-heading h1{font-size:42px}.profiles--pin .profile-heading p{font-size:28px}.profiles--pin .profile-panel>.profile-back,.profiles--pin .profile-panel form>button:not(.pin-key),.profiles .profile-keypad .pin-key{font-size:32px}}
