:root{--ink:#5a4036;--cream:#fff8ea;--line:#f0dfc4;--green:#6cbf6f;font-family:"Gowun Dodum","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color:var(--ink);background:#fdf3df}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:var(--ink)}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}#entry-app{min-height:100dvh;max-width:1100px;margin:auto;display:grid;grid-template-rows:auto minmax(220px,1fr) auto}.entry-header{padding:12px 18px 4px;display:flex;gap:10px;align-items:center;justify-content:space-between}.entry-brand{margin:0;color:#4f9d58;font-size:20px;font-weight:700}.entry-brand small{font-size:12px;color:#9a8272;font-weight:400}#entry-stage{position:relative;min-height:240px;margin:6px 12px;border-radius:26px;overflow:hidden;background:linear-gradient(#cfeaff,#fdf0d8 62%,#f6e2bd);touch-action:pan-y}#entry-canvas{position:absolute;inset:0}#entry-canvas canvas{width:100%;height:100%;display:block;touch-action:pan-y}#preview-status{position:absolute;left:12px;right:12px;top:10px;text-align:center;font-size:13px;color:#765f50;margin:0;pointer-events:none}#preview-failure{position:absolute;inset:25% 18px auto;text-align:center}#preview-failure button{background:var(--cream);border:2px solid var(--line);border-radius:18px;padding:10px}.turn-controls{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:8px}.turn-controls button{border:1px solid #e7d5b8;background:#fff8eaeb;border-radius:15px;min-height:40px;min-width:42px;padding:6px 12px}.entry-panel{background:var(--cream);border-top:2px solid var(--line);border-radius:26px 26px 0 0;padding:16px 18px 20px;max-height:60dvh;overflow-y:auto;overflow-wrap:anywhere}h1{font-size:21px;line-height:1.5;margin:0 0 12px}h2{font-size:13.5px;color:#8c7565;font-weight:400;margin:0}p{line-height:1.65}#entry-status{margin:0 0 8px;font-size:13px}#entry-status:empty{display:none}.notice{background:#f5e8d2;padding:10px;border-radius:12px;font-size:13px}fieldset{padding:0;margin:0 0 12px;border:0}legend,label{font-size:14px;color:#785f4f;margin:0 0 6px;display:block}input{display:block;width:100%;font-size:16px;border:2px solid var(--line);border-radius:16px;padding:10px 13px;color:var(--ink);background:#fff;margin:6px 0 12px}button:focus-visible,input:focus-visible{outline:3px solid #3f8fd6;outline-offset:2px}.step-dots{list-style:none;display:flex;gap:8px;margin:0 0 14px;padding:0;font-size:12px;color:#9a8272}.step-dots li{border-bottom:3px solid var(--line);flex:1;padding:0 0 5px}.step-dots li[aria-current=step]{border-color:var(--green);color:#4f9d58;font-weight:700}.pills{display:flex;flex-wrap:wrap;gap:6px}.pills button,.quiet{border:0;background:#f5e8d2;border-radius:22px;padding:8px 12px;min-height:40px;font-size:14px}.pills button[aria-pressed=true]{background:#fff;box-shadow:0 0 0 2px var(--green)}.called{font-size:16px;margin:10px 0}.look-row{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:8px;margin:8px 0}.segments{display:flex;background:#f5e8d2;border-radius:22px;padding:4px;gap:3px}.segments button{flex:1;min-width:0;border:0;background:transparent;border-radius:999px;font-size:13px;padding:7px 1px;min-height:36px;white-space:nowrap}.segments button[aria-pressed=true]{background:#fff;box-shadow:0 2px 0 #e7d5b8;font-weight:700}.swatches{display:flex;gap:12px;padding:4px}.swatches button{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);padding:0}.swatches button[aria-pressed=true]{outline:3px solid var(--green);outline-offset:2px}.small{font-size:12px;color:#846c5c;margin:10px 0}.error{color:#9d433b;font-size:13px}.form-actions{display:flex;gap:10px;margin-top:14px}.form-actions .primary{flex:1}.primary{border:0;border-radius:22px;background:#5aa75e;color:#fff;min-height:44px;padding:10px 18px;font-size:15px;font-weight:700}#auth-to-login{margin-top:12px;width:100%}#entry-recovery{display:grid;gap:8px;margin-top:12px}#entry-complete .primary{width:100%}@media(min-width:860px){#entry-app{height:100dvh;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto minmax(0,1fr)}.entry-header{grid-column:1/-1}#entry-stage{margin-bottom:12px}.entry-panel{border:2px solid var(--line);border-radius:26px;margin:6px 12px 12px 0;max-height:none;align-self:stretch;padding-top:24px;display:flex;flex-direction:column;justify-content:center}}@media(max-width:859px){#entry-app{height:100dvh}.entry-panel{max-height:62dvh}}@media(max-height:620px) and (max-width:859px){#entry-app{height:auto}.entry-panel{max-height:none}#entry-stage{height:260px}}

/* The guidance and turning controls own rows below the actual preview canvas. */
#entry-stage{display:grid;grid-template-rows:minmax(140px,1fr) auto auto;align-content:stretch;padding-bottom:10px}
#entry-canvas{position:relative;inset:auto;grid-row:1;min-height:140px;overflow:hidden}
#preview-status{position:static;grid-row:2;margin:0;padding:5px 12px 7px;font-size:13px}
#preview-status:empty{display:none}
.turn-controls{position:static;grid-row:3;margin:0 10px}
#preview-failure{z-index:1;background:#fff8eaeF;border-radius:18px;padding:12px}

.consent-label{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0;line-height:1.6}.consent-label input{flex:0 0 auto;width:20px;height:20px;margin:2px 0 0;accent-color:#4f9d58}.entry-panel a{color:#386b3d}.entry-panel a.primary{color:#fff}#entry-password-reset .primary{width:100%}#entry-app.password-reset{grid-template-rows:auto minmax(0,1fr)}#entry-app.password-reset .entry-panel{grid-column:1/-1;width:min(100%,520px);justify-self:center;align-self:start;margin-top:18px;max-height:none}a:focus-visible{outline:3px solid #3f8fd6;outline-offset:3px}


#entry-auth-feedback,#entry-reset-feedback{scroll-margin:24px}#entry-auth-feedback:not(:empty),#entry-reset-feedback:not(:empty){margin:12px 0}#entry-password-hint,#entry-reset-hint{margin:8px 0;color:#5d554c}

#entry-app.auth-only{grid-template-rows:auto minmax(0,1fr)}#entry-app.auth-only .entry-panel{grid-column:1/-1;width:min(100%,520px);justify-self:center;align-self:start;max-height:none;margin-top:18px}
/* Beta (owner, 2026-11-14 22:06): every character is shown; two are open, the rest wait behind a padlock. */
.look-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 4px}
.look-card{position:relative;display:grid;gap:2px;padding:4px 4px 6px;border:2px solid #f0dfc3;border-radius:16px;background:#fffaf1;color:var(--ink,#5b4034);font-size:14px;font-weight:700;cursor:pointer;min-height:44px;touch-action:manipulation}
.look-card img{width:100%;height:92px;object-fit:cover;object-position:50% 12%;border-radius:11px;background:#eef6e6}
.look-card small{display:block;font-size:11px;font-weight:500;color:#9a8272}
.look-card[aria-checked=true]{border-color:var(--green,#6fb36f);box-shadow:0 0 0 2px var(--green,#6fb36f)}
.look-card.locked{cursor:not-allowed}.look-card.locked img,.look-card.locked .look-name{opacity:.42;filter:grayscale(.35)}
.look-lock{display:none;position:absolute;left:50%;top:40px;width:30px;height:30px;margin-left:-15px;border-radius:50%;background:#fffaf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2' fill='none' stroke='%237a5a48' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='5' y='10' width='14' height='10' rx='3' fill='%237a5a48'/%3E%3Ccircle cx='12' cy='15' r='1.6' fill='%23fffaf1'/%3E%3C/svg%3E") center/18px no-repeat;box-shadow:0 2px 6px rgba(90,64,54,.22)}
.look-card.locked .look-lock{display:block}
.decor-locked{position:relative;margin:10px 0 4px;padding:10px 12px;border:2px dashed #ecd9bb;border-radius:16px;background:#fffaf1}
.decor-locked h2{margin:0 0 6px;font-size:15px}.decor-locked .soon{font-size:12px;font-weight:600;color:#9a8272;margin-left:4px}
.decor-rows{opacity:.42;filter:grayscale(.3)}.decor-rows p{display:flex;align-items:center;gap:6px;margin:4px 0;font-size:13px}.decor-rows span{width:44px;flex:none}
.decor-rows i{width:22px;height:22px;border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 0 0 1px #e3cfb0}
.decor-locked .look-lock{display:block;top:50%;margin-top:-6px;left:auto;right:14px}

/* First screen (owner, 2026-11-14 23:09–23:26): the living hall at dusk fills the screen,
   a guardian sits with their back to us; few words, two choices. */
#entry-intro{position:fixed;inset:0;z-index:-1;pointer-events:none;background:#1c1411}
#entry-intro canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#entry-intro .intro-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(20,13,10,.55),rgba(20,13,10,0) 18%,rgba(20,13,10,0) 52%,rgba(20,13,10,.78) 78%,rgba(16,10,8,.94))}
body:has(#entry-app.welcome){background:#1c1411}
#entry-app.welcome{position:relative;z-index:1;grid-template-rows:auto 1fr auto;background:radial-gradient(120% 70% at 50% 38%,rgba(255,170,92,.16),rgba(28,20,17,0) 60%),linear-gradient(#2a1e19,#1c1411 70%)}
#entry-app.welcome:has(#entry-intro:not([hidden])){background:transparent}
#entry-app.welcome .entry-brand{color:#ffe7c4;text-shadow:0 1px 8px rgba(0,0,0,.45)}
#entry-app.welcome .entry-brand small{color:#e6c9a8}
#entry-app.welcome .entry-panel{grid-row:3;background:transparent;border:0;box-shadow:none;text-align:center;word-break:keep-all;color:#fff3e2;padding:0 22px max(24px,env(safe-area-inset-bottom));margin:0 auto;width:min(100%,460px)}
#entry-app.welcome #entry-status:empty{display:none}
#entry-app.welcome #entry-status{color:#ffe0bd}
.welcome-kicker{margin:0 0 6px;font-size:13px;color:#e8cba9;letter-spacing:.02em}
#entry-welcome h1{margin:0 0 20px;font-size:25px;line-height:1.4;font-weight:700;color:#fff6e8;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.welcome-actions{display:grid;grid-template-columns:1fr;gap:10px}
/* Owner 2026-11-15 14:05: one button (둘러보기); below it only 가입하기 and 로그인하기. */
.welcome-links{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:14px;color:#e8cba9}
#entry-welcome .primary,#entry-welcome .secondary{display:flex;align-items:center;justify-content:center;min-height:54px;margin:0;border-radius:999px;font-size:17px;font-weight:700;text-decoration:none;cursor:pointer}
#entry-welcome .primary{background:#ffe3b8;color:#4a2f22;border:0;box-shadow:0 6px 22px rgba(255,170,90,.28)}
#entry-welcome .secondary{background:rgba(255,240,220,.08);color:#fff0dc;border:1.5px solid rgba(255,226,186,.7)}
#entry-welcome .text-link{display:inline-block;width:auto;margin:0;padding:10px 12px;min-height:44px;cursor:pointer;background:none;border:0;color:#e8cba9;font-size:14px;text-decoration:underline;text-underline-offset:3px}
#entry-welcome .primary:focus-visible,#entry-welcome .secondary:focus-visible,#entry-welcome .text-link:focus-visible{outline:3px solid #ffd7a0;outline-offset:3px}

/* Sign up with Kakao, Google or email (owner, 21:54/21:57). Brand colours follow each provider's button guide. */
.social-buttons{display:grid;gap:10px;margin:10px 0 4px}
.social-buttons .social{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;border-radius:12px;font-weight:700;font-size:16px;text-decoration:none}
.social.kakao{background:#FEE500;color:rgba(0,0,0,.85)}
.social.kakao::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 2.8 1.9 5.3 4.7 6.7l-1 3.6c-.1.4.3.6.6.4l4.3-2.8c.5.1 1 .1 1.4.1 5.5 0 10-3.6 10-8S17.5 3 12 3z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat}
.social.google{background:#fff;color:#1f1f1f;border:1px solid #747775}
.social.google::before{content:"";width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9 3.5l6.7-6.7C35.6 2.4 30.2 0 24 0 14.6 0 6.6 5.4 2.7 13.3l7.8 6C12.4 13.7 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.1 24.6c0-1.6-.1-3.1-.4-4.6H24v9h12.4c-.5 2.9-2.2 5.3-4.7 6.9l7.6 5.9c4.4-4.1 6.8-10.1 6.8-17.2z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.7c-.5-1.4-.7-3-.7-4.7s.3-3.2.7-4.7l-7.8-6C1 16.6 0 20.2 0 24s1 7.4 2.7 10.7l7.8-6z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.6-5.9c-2.1 1.4-4.9 2.3-8.3 2.3-6.3 0-11.6-4.2-13.5-9.9l-7.8 6C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat}
.social-buttons .or{display:flex;align-items:center;gap:10px;margin:6px 0 0;color:#9a8272;font-size:13px}.social-buttons .or::before,.social-buttons .or::after{content:"";flex:1;height:1px;background:#ecd9bb}
#entry-species button{min-width:72px}

.pills button[aria-checked=true]{background:#fff;box-shadow:0 0 0 2px var(--green)}
.entry-panel .opt{margin-left:4px;font-size:12px;color:#9a8272}

/* 가입·로그인·아이 정보 (owner 2026-11-16): the candle-lit hall of the first screen stays behind these pages, and the words
   sit on one warm sheet of paper — large, few, easy to read. */
body:has(#entry-app.candlelit){background:#1c1411}
#entry-app.candlelit{position:relative;z-index:1;grid-template-rows:auto minmax(0,1fr);background:radial-gradient(120% 70% at 50% 30%,rgba(255,170,92,.18),rgba(28,20,17,0) 60%),linear-gradient(#2a1e19,#1c1411 70%)}
#entry-app.candlelit:has(#entry-intro:not([hidden])){background:transparent}
#entry-app.candlelit #entry-intro .intro-shade{background:linear-gradient(rgba(20,13,10,.62),rgba(20,13,10,.4) 30%,rgba(18,11,9,.7) 70%,rgba(16,10,8,.9))}
#entry-app.candlelit .entry-brand{color:#ffe7c4;text-shadow:0 1px 8px rgba(0,0,0,.45)}
#entry-app.candlelit .entry-brand small{color:#e6c9a8}
#entry-app.candlelit .entry-header .quiet{background:rgba(255,240,220,.16);color:#fff0dc}
#entry-app.candlelit .entry-panel{grid-column:1/-1;width:min(calc(100% - 28px),480px);justify-self:center;align-self:start;max-height:none;margin:14px 14px max(20px,env(safe-area-inset-bottom));padding:22px 20px 20px;background:linear-gradient(#fff8ea,#ffefd2);border:1px solid #f1d6a4;border-radius:26px;box-shadow:0 20px 50px rgba(0,0,0,.5),0 0 60px rgba(255,170,90,.14)}
#entry-app.candlelit h1{font-size:23px;color:#4a2f22;margin-bottom:14px}
#entry-app.candlelit legend,#entry-app.candlelit label{font-size:15px;color:#6b4c3a}
#entry-app.candlelit input:not([type=checkbox]){min-height:52px;font-size:17px;border-color:#ecd3a4;background:#fffdf8}
#entry-app.candlelit button:focus-visible,#entry-app.candlelit input:focus-visible{outline:3px solid #f0a95c;outline-offset:2px}
#entry-app.candlelit .primary{min-height:52px;font-size:17px;border-radius:999px;background:#8a5330;color:#fff6e6;box-shadow:0 6px 18px rgba(138,83,48,.32)}
#entry-app.candlelit .quiet,#entry-app.candlelit .pills button{background:#f6e3c2;color:#5a4036;min-height:46px;font-size:15px}
#entry-app.candlelit .pills button[aria-checked=true]{background:#fff;box-shadow:0 0 0 2.5px #c98545;font-weight:700}
#entry-app.candlelit .step-dots{font-size:13px}
#entry-app.candlelit .step-dots li[aria-current=step]{border-color:#c98545;color:#8a5330}
#entry-app.candlelit .entry-panel a{color:#8a5330}
#entry-app.candlelit .consent-label{font-size:15px}
#entry-app.candlelit .consent-label input{accent-color:#8a5330}
#entry-app.candlelit .notice{background:#f8e7c8}
/* 내 캐릭터와 닉네임: the name is asked beside the character it names. */
.look-title{font-size:15px;color:#785f4f;font-weight:700;margin:14px 0 6px}
.nickname-note{margin:-6px 0 4px}
