:root { color-scheme:dark; --home-emphasis:var(--theme-emphasis); --home-muted:var(--theme-home-muted); --home-border:rgba(var(--theme-white-rgb),.19); }
* { box-sizing:border-box; }
html,body { margin:0;min-height:100%; }
body { color:var(--theme-white);font-family:var(--tk-font,'Sarabun',sans-serif);background:var(--theme-home-base);isolation:isolate; }
.home-shell { min-height:100dvh;display:flex;flex-direction:column;max-width:1600px;margin:auto;padding:clamp(18px,3vw,40px);gap:24px; }
.home-header { display:flex;align-items:center;justify-content:space-between;align-content:flex-start;flex-wrap:nowrap;gap:12px;min-height:44px; }
.home-header-actions { display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0; }
.home-header-action { display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 10px;color:rgba(var(--theme-white-rgb),.8);border:0;background:transparent;border-radius:8px;text-decoration:none;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer; }
.home-header-action svg { width:24px;height:24px; }
.home-header-action:hover { color:var(--theme-white); }
.home-language { position:relative; }
#home-account { max-width:100%;min-width:0; }
#home-account .acc-text-area { min-width:0; }
#home-account .account-card-name > span > span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.home-header-action[hidden] { display:none; }
.home-hero { flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:clamp(10px,1.4vh,18px);min-height:0; }
.home-logo { width:clamp(64px,8vw,100px);aspect-ratio:1;object-fit:cover;border-radius:23%;border:1px solid rgba(var(--theme-white-rgb),.28);box-shadow:0 12px 35px rgba(var(--theme-black-rgb),0.53333333); }
.home-kicker { margin:0;color:var(--home-emphasis);font-size:clamp(13px,1.15vw,17px);letter-spacing:.07em; }
.home-hero h1 { margin:10px 0 12px;font-size:clamp(31px,4.8vw,68px);line-height:1.13;font-weight:800; }
.home-platforms { display:flex;justify-content:center;flex-wrap:wrap;gap:8px; }
.home-platforms span { border:1px solid var(--home-border);border-radius:999px;background:rgba(var(--theme-white-rgb),.06);padding:5px 12px;color:var(--theme-home-platform);font-size:13px; }
.home-choices { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:fit-content;max-width:100%;margin:0 auto; }
.home-choice { display:flex;align-items:center;gap:15.3px;min-height:102px;padding:18.7px 22.1px;color:white;text-decoration:none;border:1px solid transparent;border-radius:18.7px;background:var(--theme-paint-home-player) padding-box,var(--theme-paint-home-player-border) border-box;box-shadow:0 15px 40px rgba(var(--theme-black-rgb),0.33333333); }
.home-choice-controller { background:var(--theme-paint-home-controller) padding-box,var(--theme-paint-home-controller-border) border-box; }
.home-choice:hover,.home-choice:focus-visible { transform:translateY(-2px);outline:2px solid var(--theme-white);outline-offset:3px; }
.home-choice-icon { display:grid;place-items:center;flex:none;width:45.9px;height:45.9px;border-radius:13.6px;background:rgba(var(--theme-white-rgb),.1); }
.home-choice-icon svg { width:24.65px;height:24.65px; }
.home-choice-copy { display:flex;flex-direction:column;gap:4px;min-width:0; }
.home-choice-copy strong { font-size:clamp(15.3px,1.53vw,21.25px);font-weight:700; }
.home-choice-copy small { color:var(--theme-home-detail);font-size:clamp(10.2px,.935vw,12.75px);line-height:1.4; }
@media(max-width:700px) {
 .home-shell { padding:16px;gap:12px; }
 .home-header:has(#home-account:not([hidden])) { align-items:flex-start; }
 .home-header:has(#home-account:not([hidden])) .home-header-action > span,
 .home-header:has(#home-account:not([hidden])) #lang-switcher-btn > span { display:none; }
 .home-header:has(#home-account:not([hidden])) .home-header-action,
 .home-header:has(#home-account:not([hidden])) #lang-switcher-btn { width:44px;justify-content:center; }
 .home-header-actions { gap:7px; }
 .home-choices { grid-template-columns:1fr;gap:10px; }
 .home-choice { min-height:71.4px;padding:11.05px 13.6px;gap:11.05px;border-radius:14.45px; }
 .home-choice-icon { width:35.7px;height:35.7px;border-radius:10.2px; }
 .home-choice-icon svg { width:20.4px;height:20.4px; }
 .home-platforms span { font-size:11px;padding:4px 9px; }
}
@media(max-height:650px) { .home-shell { gap:10px; }.home-hero { gap:6px; }.home-logo { width:56px; }.home-choice { min-height:61.2px; } }

body:has(.home-shell) .tk-page-wallpaper{overflow:hidden;}
body:has(.home-shell) .tk-page-wallpaper img{filter:blur(6px);}
body:has(.home-shell) .tk-page-wallpaper::after{content:"";position:absolute;inset:0;background:rgba(var(--theme-black-rgb),.65);}

#home-terms {
    width: min(44rem, calc(100% - 2rem));
    max-height: 88dvh;
    margin: auto;
    padding: 1.25rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: var(--theme-white);
    background: var(--theme-paint-auth-card) padding-box, var(--theme-paint-border) border-box;
}
#home-terms[open] { display: flex; flex-direction: column; gap: 1rem; }
#home-terms::backdrop { background: rgba(var(--theme-black-rgb), .65); }
.home-terms-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.home-terms-header h2 { margin: 0; font-size: 1.25rem; }
#home-terms-language { flex-shrink: 0; }
.home-terms-copy { min-height: 0; overflow: auto; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; padding: .25rem; }
.home-terms-accept {
    flex-shrink: 0;
    min-height: 2.75rem;
    border: 0;
    border-radius: .65rem;
    background: var(--theme-paint-native-button);
    color: var(--theme-white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.home-terms-copy:focus { outline: none; }
