/* Coordinates follow the canonical login frame; GameID adds one button row. */
#html-auth { position:fixed; inset:0; z-index:10000; background:#000; color:#fff; }
#html-auth[hidden], #html-auth [hidden] { display:none !important; }
#html-auth .auth-content { position:absolute; overflow:hidden; background:linear-gradient(135deg,#1C5B9C,#103D70); font-family:'Playdown Splash',Arial,sans-serif; text-align:center; }
#html-auth .auth-content::before { content:''; position:absolute; width:102%; height:47%; left:42%; top:-14%; border-radius:50%; background:#2866A1; opacity:.3; pointer-events:none; }
#html-auth .auth-content::after { content:''; position:absolute; width:109%; height:50%; left:-75%; top:47%; border-radius:50%; background:#163E70; opacity:.3; pointer-events:none; }
#html-auth button, #html-auth input { box-sizing:border-box; font:inherit; }
#html-auth button { cursor:pointer; border:0; }
#html-auth button:disabled { opacity:.5; cursor:default; }
#html-auth button:focus-visible, #html-auth input:focus-visible { outline:3px solid #FFD17A; outline-offset:2px; }
#html-auth button:active:not(:disabled) { filter:brightness(.92); transform:translateY(1px); }
#html-auth #auth-language { position:absolute; z-index:6; left:62.189%; top:5.95%; width:33.831%; height:5.035%; min-height:44px; border:1px solid #6593B8; border-radius:14px; background:#103B6A; color:#F7F3EA; font-weight:700; font-size:.85714em; }
#html-auth .auth-brand { position:absolute; left:33.83%; top:11.8%; width:32.34%; height:3.2%; object-fit:contain; }
#html-auth .auth-hero { position:absolute; left:3.98%; top:16.7%; width:92.04%; height:23.798%; border-radius:22px; object-fit:cover; }
#html-auth .auth-tagline { position:absolute; left:2%; top:41.3%; width:96%; margin:0; font-size:1em; font-weight:600; line-height:1.5; }
#html-auth .auth-card { position:absolute; z-index:1; left:3.98%; top:46.11%; width:92.04%; height:38.101%; border-radius:24px; box-sizing:border-box; padding:1.1em 1.14286em; color:#203543; background:#F7F3EA; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; }
#html-auth h1, #html-auth .auth-form h2 { margin:0 0 .4em; font-size:1.71429em; font-weight:800; line-height:1.3; }
#html-auth .auth-card p { margin:.3em 0 .8em; line-height:1.5; font-size:.85714em; }
#html-auth .auth-social { display:flex; align-items:center; justify-content:center; position:relative; width:100%; min-height:44px; height:4em; margin:0 0 .65em; padding:.5em 2.4em; border-radius:16px; color:#203543; background:white; font-size:1.07143em; font-weight:800; }
#html-auth .auth-social img { position:absolute; left:13px; width:28px; height:28px; }
#html-auth .auth-gameid { background:#267D78; color:#fff; }
#html-auth .auth-form label { display:block; text-align:left; margin:.7em 0; font-size:.92857em; font-weight:700; }
#html-auth .auth-form input:not([type=checkbox]) { display:block; width:100%; min-height:44px; padding:.65em .9em; border:1px solid #B7C8C4; border-radius:12px; background:#fff; color:#203543; user-select:text; -webkit-user-select:text; touch-action:manipulation; }
#html-auth .auth-check { display:flex !important; align-items:center; gap:.5em; }
#html-auth .auth-form label { position:relative; }
#html-auth .auth-form input[data-secret] { padding-right:5em; }
#html-auth .auth-eye { position:absolute; right:2px; bottom:1px; min-height:44px; min-width:44px; padding:.4em; border-radius:12px; background:transparent; color:#267D78; font-size:.85714em; }
#html-auth .auth-check input { width:22px; height:22px; accent-color:#267D78; }
#html-auth .auth-primary { width:100%; min-height:44px; padding:.8em; border-radius:16px; background:#267D78; color:white; font-weight:800; margin:.5em 0; }
#html-auth .auth-link { min-height:44px; padding:.4em .8em; background:transparent; color:#267D78; }
#html-auth .auth-links { display:flex; justify-content:space-between; flex-wrap:wrap; }
#html-auth .auth-footer { position:absolute; left:4%; top:86.3%; width:92%; z-index:1; }
#html-auth .auth-footer button { display:block; width:100%; min-height:44px; padding:.2em; background:transparent; color:#BBD0E4; font-size:.78571em; }
#html-auth .auth-footer button:last-child { color:#F7F3EA; font-size:.85714em; font-weight:600; }
#html-auth #auth-service-retry { min-height:44px; border-radius:12px; background:#267D78; color:white; padding:.4em 1em; }
#html-auth #auth-feedback, #html-auth #auth-service { overflow-wrap:anywhere; }
#html-auth #auth-dialog, #html-auth .language-modal { position:absolute; inset:0; z-index:5; }
#html-auth .language-modal { z-index:7; }
#html-auth .auth-shade, #html-auth .language-shade { position:absolute; inset:0; background:rgba(7,28,56,.64); }
#html-auth #auth-dialog section { position:absolute; left:5.97%; top:32.608%; width:88.06%; max-height:54%; box-sizing:border-box; overflow-y:auto; background:#F7F3EA; color:#203543; border-radius:24px; padding:1.5em 1.3em; }
#html-auth .auth-warning { width:48px; height:48px; margin:0 auto; line-height:48px; border-radius:50%; background:#F2DFC2; color:#A7772C; font-size:2em; font-weight:800; }
#html-auth #auth-dialog h2 { font-size:1.71429em; line-height:1.3; margin:.7em 0; }
#html-auth #auth-dialog p { font-size:1em; line-height:1.6; overflow-wrap:anywhere; }
#html-auth #sns-google-button { display:flex; justify-content:center; align-items:center; width:100%; max-width:400px; min-width:0; margin:16px auto; }
#html-auth .auth-field-error { display:block; color:#b33131; line-height:1.4; margin-top:6px; }
#html-auth .language-panel { position:absolute; left:3.98%; top:58.35%; width:92.04%; height:37.30%; border-radius:26px; background:#F7F3EA; color:#203543; text-align:left; }
#html-auth .language-panel h2 { position:absolute; left:6.486%; top:9.8%; margin:0; font-size:1.71429em; line-height:1.5; font-weight:800; }
#html-auth .language-panel button { position:absolute; left:4.324%; width:91.352%; height:19.632%; min-height:44px; padding:0 6.5%; border-radius:16px; background:white; color:#203543; font-size:1.28571em; font-weight:700; text-align:left; }
#html-auth #language-en { top:25.15%; }
#html-auth #language-mn { top:49.69%; }
#html-auth .language-panel button[aria-checked=true] { background:#E2EDE8; }
#html-auth .language-check { float:right; color:#267D78; visibility:hidden; }
#html-auth [aria-checked=true] .language-check { visibility:visible; }
#html-auth #language-close { top:78.5%; height:15%; background:transparent; color:#267D78; text-align:center; font-size:1em; font-weight:400; }
@media (prefers-reduced-motion:reduce) { #html-auth button:active:not(:disabled) { transform:none; } }

/* The page is the only scrolling surface. The rounded card has no scrollbars. */
#html-auth .auth-content { box-sizing:border-box; font-size:14px; }
#html-auth .auth-page { position:absolute; inset:0; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px; box-sizing:border-box; scrollbar-gutter:auto; }
#html-auth .auth-header { position:relative; width:100%; min-height:76px; flex-shrink:0; }
#html-auth #auth-language { left:auto; right:0; top:0; width:auto; height:44px; min-width:116px; padding:0 12px; font-size:14px; }
#html-auth .auth-brand { position:absolute; left:50%; top:48px; transform:translateX(-50%); width:130px; height:28px; }
#html-auth .auth-hero { position:static; width:auto; max-width:100%; height:clamp(86px,calc((var(--host-height) - 600px) * .7),208px); max-height:none; flex-shrink:0; object-fit:contain; }
#html-auth .auth-tagline { position:static; width:100%; font-size:14px; line-height:1.4; flex-shrink:0; }
#html-auth .auth-card { position:relative; inset:auto; width:100%; height:auto; border-radius:24px; padding:0; overflow:visible; flex-shrink:0; }
#html-auth .auth-card-body { padding:14px 16px; border-radius:inherit; box-sizing:border-box; }
#html-auth h1, #html-auth .auth-form h2 { font-size:22px; line-height:1.3; }
#html-auth .auth-social { min-height:44px; height:auto; padding:12px 40px; margin-bottom:8px; font-size:14px; line-height:1.35; }
#html-auth .auth-social:last-child { margin-bottom:0; }
#html-auth .auth-social img { left:12px; width:24px; height:24px; }
#html-auth .auth-footer { position:static; width:100%; flex-shrink:0; }
#html-auth .auth-footer button { font-size:12px; }
#html-auth .auth-footer button:last-child { font-size:13px; }
#html-auth .auth-compact .auth-header { min-height:44px; }
#html-auth .auth-compact .auth-brand { left:0; top:8px; width:110px; height:26px; transform:none; }
#html-auth .auth-compact .auth-hero, #html-auth .auth-compact .auth-tagline { display:none; }
#html-auth .auth-form label { font-size:14px; line-height:1.4; margin:12px 0; }
#html-auth .auth-form input:not([type=checkbox]) { font-size:16px; min-height:48px; margin-top:4px; }
#html-auth .auth-eye { font-size:12px; min-height:46px; }
#html-auth .auth-links button { min-height:44px; background:transparent; color:#267D78; padding:8px 0; }
#html-auth .auth-primary, #html-auth .auth-link { font-size:14px; line-height:1.4; }
#html-auth #auth-feedback:empty, #html-auth #auth-service:empty { display:none; }
#html-auth .auth-step { color:#267D78; }
@media (max-height:720px) {
  #html-auth .auth-page { padding:10px; gap:6px; }
  #html-auth .auth-header { min-height:44px; }
  #html-auth .auth-brand { left:0; top:8px; width:110px; height:26px; transform:none; }
  #html-auth .auth-card-body { padding:12px; }
}

#html-auth .auth-check[hidden] { display:none !important; }

#html-auth .auth-check { min-height:44px; }

#auth-language{display:none!important}

/* The method chooser follows the canonical proportions without compact form rules. */
#html-auth .auth-content:not(.auth-compact){font-family:'Nunito Sans',Arial,sans-serif}
#html-auth .auth-content:not(.auth-compact) .auth-page{padding:calc(var(--choice-unit)*16) calc(var(--choice-unit)*16) calc(var(--choice-unit)*4);gap:0}
#html-auth .auth-content:not(.auth-compact) .auth-header{min-height:max(calc(var(--choice-unit)*130),calc(44px + var(--choice-unit)*86))}
#html-auth .auth-content:not(.auth-compact) #auth-language{display:block!important;right:0;top:calc(var(--choice-unit)*36);width:calc(var(--choice-unit)*136);height:calc(var(--choice-unit)*44);min-height:44px;min-width:116px;padding:0 12px;border:1px solid #6593b8;border-radius:calc(var(--choice-unit)*14);font-size:max(12px,calc(var(--choice-unit)*12))}
#html-auth .auth-content:not(.auth-compact) .auth-brand{left:50%;top:max(calc(var(--choice-unit)*84),calc(44px + var(--choice-unit)*40));transform:translateX(-50%);width:calc(var(--choice-unit)*130);height:calc(var(--choice-unit)*34)}
#html-auth .auth-content:not(.auth-compact) .auth-hero{width:100%;height:auto;aspect-ratio:370/208;max-height:none;object-fit:contain;border-radius:calc(var(--choice-unit)*22)}
#html-auth .auth-content:not(.auth-compact) .auth-tagline{margin:calc(var(--choice-unit)*12) 0 calc(var(--choice-unit)*16);font-size:max(14px,calc(var(--choice-unit)*15));font-weight:700;line-height:calc(var(--choice-unit)*21)}
#html-auth .auth-content:not(.auth-compact) .auth-card{border-radius:calc(var(--choice-unit)*24);text-align:left}
#html-auth .auth-content:not(.auth-compact) .auth-card-body{padding:calc(var(--choice-unit)*20) calc(var(--choice-unit)*16)}
#html-auth .auth-content:not(.auth-compact) h1{padding:0 calc(var(--choice-unit)*8);margin:0;font-size:max(20px,calc(var(--choice-unit)*20));line-height:calc(var(--choice-unit)*26);text-align:left}
#html-auth .auth-content:not(.auth-compact) [data-view=social]>p{margin:calc(var(--choice-unit)*8) calc(var(--choice-unit)*8) calc(var(--choice-unit)*14);font-size:max(12px,calc(var(--choice-unit)*12));line-height:calc(var(--choice-unit)*18);color:#73818a;text-align:left}
#html-auth .auth-content:not(.auth-compact) .auth-social{height:calc(var(--choice-unit)*56);min-height:44px;margin-bottom:calc(var(--choice-unit)*12);padding:8px calc(var(--choice-unit)*40);border-radius:calc(var(--choice-unit)*16);font-size:max(14px,calc(var(--choice-unit)*15));line-height:1.25}
#html-auth .auth-content:not(.auth-compact) .auth-social:last-child{margin-bottom:0}
#html-auth .auth-content:not(.auth-compact) .auth-social img{left:calc(var(--choice-unit)*13);width:calc(var(--choice-unit)*28);height:calc(var(--choice-unit)*28);object-fit:contain}
#html-auth .auth-content:not(.auth-compact) .auth-footer{margin-top:calc(var(--choice-unit)*12)}
#html-auth .auth-content:not(.auth-compact) #auth-language{border-width:calc(var(--choice-unit)*.8)}
#html-auth .auth-content:not(.auth-compact) .auth-social:not(.auth-gameid):active:not(:disabled){background:#e5edeb;filter:none}
#html-auth .auth-content:not(.auth-compact) .auth-social:disabled{background:#e3e7e8}

/* Use the Intro language label face and its 13px canonical size. */
#html-auth .auth-content:not(.auth-compact) #auth-language{font-family:'Playdown Splash',Arial,sans-serif;font-size:calc(var(--choice-unit)*13);font-weight:700}
/* Reuse field guidance for validation rather than adding duplicate messages. */
#html-auth [aria-invalid=true]{border-color:#b63c33;outline-color:#b63c33}
#html-auth .auth-field-error{color:#b63c33}
