/* Warm paper surfaces and green actions. Element, status and scene colours stay semantic. */
:root{color-scheme:light;--han-bg:#f7f5f0;--han-paper:#fff;--han-ink:#191f28;--han-muted:#625e57;--han-faint:#716b62;--han-panel:#f4f1eb;--han-inset:#ece8df;--han-line:#e6e1d8;--han-border:#bdb5a8;--han-header:#f7f5f0f5;--han-primary:#315242;--han-strong:#243e31;--han-radius-control:12px;--han-radius-panel:20px}

/* Public navigation is isolated from page and game styles. */
:root{--hs-height:76px}
html{scroll-padding-top:calc(var(--hs-height) + 20px)}
.hs-header{height:var(--hs-height);box-sizing:border-box;position:sticky;top:0;z-index:40;width:100%;margin:0;border:0;border-bottom:1px solid var(--han-line);background:var(--han-header);color:var(--han-ink);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font:14px/1.5 Hanlife,'Pretendard Variable',Pretendard,system-ui,sans-serif}
.hs-header .hs-inner{width:min(1260px,100%);height:calc(var(--hs-height) - 1px);min-height:0;box-sizing:border-box;padding:0 40px;margin:auto;display:flex;align-items:center;justify-content:flex-start;gap:40px}
.hs-brand{display:inline-flex;flex:none;text-decoration:none}
.hs-brand img{display:block;width:112px;height:auto;aspect-ratio:165/64;object-fit:contain}
.hs-header a,.hs-menu a{color:var(--han-ink);text-decoration:none}
.hs-header .hs-desktop{display:flex;gap:28px;align-items:center;font-size:14px}
.hs-actions{margin-left:auto;display:flex;align-items:center;gap:20px}
.hs-actions>a[data-service-account]{display:inline-flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap}
.hs-header svg,.hs-menu svg{width:20px;height:20px;flex:none;display:block}
.hs-header .hs-start{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid var(--han-primary);border-radius:6px;background:var(--han-primary);color:var(--han-paper);font-weight:600;white-space:nowrap}
.hs-context{font-size:12px;color:var(--han-faint);white-space:nowrap}
.hs-header .hs-menu-button,.hs-menu [data-service-close]{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--han-ink);font:inherit;cursor:pointer}
.hs-header a:hover,.hs-menu a:hover{color:var(--han-ink)}
.hs-header .hs-start:hover{color:var(--han-paper);background:var(--han-strong)}
.hs-menu-button:hover,.hs-menu [data-service-close]:hover{background:var(--han-panel)}
.hs-desktop [aria-current=page]{font-weight:650;text-decoration:underline;text-decoration-color:var(--han-ink);text-underline-offset:8px}
.hs-header :is(a,button):focus-visible,.hs-menu :is(a,button):focus-visible{outline:3px solid var(--han-ink);outline-offset:3px}
.hs-skip{position:fixed;left:16px;top:-120px;z-index:1000;background:var(--han-paper);color:var(--han-ink);padding:12px;text-decoration:none}
.hs-skip:focus{top:12px}
.hs-menu{position:fixed;inset:0 0 0 auto;box-sizing:border-box;width:min(420px,100%);height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;border-left:1px solid var(--han-line);border-radius:0;padding:24px 28px calc(24px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;background:var(--han-panel);color:var(--han-ink);font:16px/1.5 Hanlife,'Pretendard Variable',Pretendard,system-ui,sans-serif;box-shadow:-12px 0 50px #17171720}
.hs-menu::backdrop{background:#17171750;backdrop-filter:blur(3px)}
.hs-menu-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.hs-menu h2{font:650 22px/1.4 Hanlife,'Pretendard Variable',Pretendard,system-ui,sans-serif;letter-spacing:-.6px;margin:0}
.hs-menu nav{display:grid;gap:28px;font:inherit}
.hs-menu-group{display:grid;gap:4px}
.hs-menu-group p{margin:0 0 10px;color:var(--han-faint);font-size:12px}
.hs-menu-group a{min-height:48px;box-sizing:border-box;padding:12px 10px;display:flex;align-items:center;gap:10px;border-radius:6px;line-height:1.5;word-break:keep-all}
.hs-menu-group a:hover{background:var(--han-panel)}
.hs-menu-group a[aria-current=page]{background:var(--han-inset);font-weight:650}
.hs-menu-help{display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid var(--han-line);padding-top:24px;margin-top:28px;font-size:13px}
body[data-service-page=play] #one-life .hanlife-brand,body[data-service-page=play] #one-life .account-entry{display:none}
body[data-service-page=play] #one-life .life-topbar{top:var(--hs-height);scroll-margin-top:var(--hs-height)}
body[data-service-page=play] #one-life .life-topbar:has(#life-explore[hidden]){display:none}
body[data-service-page=play] #one-life #life-reader{top:calc(var(--hs-height) + 60px)}
body[data-service-page=policy]:has(.hs-policy){max-width:none;padding:0;margin:0}
.hs-policy{max-width:640px;margin:36px auto;padding:0 24px 48px}
@media(max-width:900px){.hs-header .hs-inner{padding-inline:24px;gap:24px}.hs-header .hs-desktop{gap:20px}.hs-actions{gap:12px}.hs-context{display:none}}
@media(max-width:760px){:root{--hs-height:64px}.hs-header .hs-inner{padding-inline:20px;gap:12px}.hs-brand img{width:98px}.hs-header .hs-desktop,.hs-header .hs-start{display:none}.hs-actions{gap:8px}.hs-actions>a[data-service-account]{font-size:13px;padding:0 8px}.hs-menu-button span{display:none}.hs-menu{padding:20px 24px calc(24px + env(safe-area-inset-bottom))}.hs-header .hs-menu-button{padding:10px}.hs-menu-group a{font-size:16px}}
@media(max-width:359px){.hs-header .hs-inner{padding-inline:12px}.hs-actions{gap:2px}.hs-brand img{width:92px}.hs-actions>a[data-service-account]{font-size:12px;gap:6px;padding:0 4px}}
@media(prefers-reduced-transparency:reduce){.hs-header{background:var(--han-paper);backdrop-filter:none}.hs-menu::backdrop{backdrop-filter:none}}
.hs-user{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;row-gap:16px;margin:0 0 28px;padding:0 0 26px;border-bottom:1px solid var(--han-line)}.hs-user-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--han-inset);color:var(--han-ink);font-size:16px;font-weight:650}.hs-user-details{min-width:0;align-self:center}.hs-user-details strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.hs-user-details p{margin:3px 0 0;color:var(--han-faint);font-size:12px;overflow-wrap:anywhere}.hs-menu a.hs-user-login{grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:46px;background:var(--han-primary);border-radius:5px;color:var(--han-paper);font-size:14px;font-weight:600}.hs-menu a.hs-user-login:hover{background:var(--han-primary);color:var(--han-paper)}.hs-user-logout{grid-column:1/-1;justify-self:start;padding:0;border:0;background:none;color:var(--han-faint);text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}.hs-user-status{grid-column:1/-1;margin:0;color:var(--han-ink);font-size:12px}.hs-user-status:empty{display:none}.hs-menu [hidden]{display:none!important}

/* During a life, only the game's clock and navigation stay above the story. */
html[data-game-active=true]{--hs-height:0px;scroll-padding-top:104px}
body[data-service-page=play][data-game-active=true]>.hs-header{display:none}
body[data-service-page=play][data-game-active=true] #one-life .life-topbar{top:0;scroll-margin-top:0}
body[data-service-page=play][data-game-active=true] #one-life #life-reader{position:static;top:auto}

.hs-brand,.hs-header .hs-desktop a,.hs-menu-help a,.hs-user-logout{min-height:44px;display:inline-flex;align-items:center}

/* Public pages share the game's control and surface vocabulary. */
body[data-service-page] :is(button,.button,input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border-radius:var(--han-radius-control)}
body[data-service-page] :is(button,.button){font-weight:600}
body[data-service-page] :is(.hs-icon-button,.hs-menu-toggle){border-radius:12px}
body[data-service-page] .hs-menu{border:0;border-radius:20px;background:var(--han-paper)}
body[data-service-page] :is(.pricebox,.profile-origin,.report-question-draft,.login-panel){border-radius:var(--han-radius-panel)}
body[data-service-page] .pricebox{border:0;background:var(--han-paper);box-shadow:none;padding:28px}
body[data-service-page] .product-grid .pricebox{border:1px solid var(--han-line);background:var(--han-paper)}
body[data-service-page] .pricebox h2{font-size:24px;letter-spacing:-.6px;line-height:1.45}
body[data-service-page] :is(.notice,.prepare){background:var(--han-panel);color:var(--han-muted)}
body[data-service-page] .notice{border-radius:12px}
body[data-service-page] .notice.error{background:#fff1ee;color:#953b2e}
body[data-service-page] .profile-wizard :is(input:not([type=checkbox]),select),body[data-service-page] #checkout-product{border-color:var(--han-border);border-radius:var(--han-radius-control);min-height:52px}
body[data-service-page] :is(.profile-answers,.profile-summary){border-color:var(--han-line);background:var(--han-panel);border-radius:16px}
body[data-service-page] #checkout-payment-dialog{border:0;border-radius:20px;background:var(--han-paper)}
body[data-service-page] .checkout-payment-footer{background:var(--han-paper);border-color:var(--han-line)}
body[data-service-page] .login-provider{min-height:54px;border-color:var(--han-line)}
body[data-service-page] .provider-kakao{border-color:#fee500}
body[data-service-page] .provider-apple{border-color:var(--han-ink)}
body[data-service-page] .purchase{padding-block:24px}
body[data-service-page] .purchase strong{font-size:18px}
body[data-service-page] .status-tag{border-radius:6px}
body[data-service-page] .report-question-draft{background:var(--han-panel)}
body[data-service-page] .personal-shelf{border-color:var(--han-line);border-radius:20px;background:var(--han-paper);box-shadow:none}
@media(max-width:600px){body[data-service-page] .pricebox{padding:24px 20px}body[data-service-page] .product-grid{gap:16px}}
