:root{--k1:#16A34A;--k1-bg:#F0FDF4;--k2:#EA580C;--k2-bg:#FFF7ED;--ink:#1F2937;--muted:#6B7280;--bg:#F7F5F0;--line:#E5E7EB;color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-text-size-adjust:100%;-webkit-user-select:none;user-select:none;touch-action:manipulation}
main{max-width:760px;margin:0 auto;padding:max(14px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.sq{width:72px;height:72px;border-radius:22px;background:#fff;display:grid;place-items:center;font-size:32px;box-shadow:0 1px 3px #0001}
.lock{width:48px;height:48px;border-radius:14px;background:#fff;display:grid;place-items:center;font-size:20px;opacity:.55}
.lock.holding{opacity:1;outline:3px solid var(--muted)}
.kids{display:grid;gap:16px}
@media (min-width:640px){.kids{grid-template-columns:1fr 1fr}}
.kid{height:min(34vh,260px);min-height:160px;border-radius:30px;color:#fff;font-size:min(22vw,120px);display:grid;place-items:center;width:100%}
.k1{background:var(--k1)}.k2{background:var(--k2)}
.badge{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;font-size:36px;color:#fff}
.nights{display:flex;flex-direction:column;gap:12px}
.night{display:flex;align-items:center;gap:12px;background:#fff;border-radius:24px;padding:10px 12px;min-height:96px;width:100%}
.night.other{opacity:.4}
.night .who{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:24px;flex:none}
.night .day{font-weight:700;font-size:18px}
.plate{width:80px;height:80px;border-radius:50%;border:4px dashed #CBD5E1;display:grid;place-items:center;font-size:44px;margin-inline-start:auto;background:#fff;overflow:hidden;flex:none}
.plate.full.k1{border:4px solid var(--k1);background:var(--k1-bg)}.plate.full.k2{border:4px solid var(--k2);background:var(--k2-bg)}
.plate.tap{animation:pulse 1.6s infinite}
@keyframes pulse{50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){.plate.tap,.party *{animation:none!important}}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media (min-width:640px){.grid{grid-template-columns:repeat(3,1fr)}}
.dish{aspect-ratio:1;min-height:140px;border-radius:26px;background:#fff;display:grid;place-items:center;font-size:min(18vw,88px);box-shadow:0 1px 3px #0001;position:relative;overflow:hidden}
.dish.sel{outline:6px solid currentColor}
.ph{width:100%;height:100%;object-fit:cover;display:block}
.emo{line-height:1}
.party{text-align:center;padding-top:8vh}
.party .big{font-size:140px;animation:pop .5s ease-out}
.party .stars{font-size:44px;letter-spacing:10px;animation:twinkle 1s infinite alternate}
@keyframes pop{from{transform:scale(.3)}to{transform:scale(1)}}
@keyframes twinkle{to{opacity:.4}}
.done{margin:28px auto 0;width:150px;height:88px;border-radius:26px;color:#fff;display:grid;place-items:center;font-size:48px}
.gate{background:#fff;border-radius:22px;padding:20px;text-align:center;max-width:360px;margin:6vh auto 0}
.gate .q{font-size:32px;font-weight:700;margin:14px 0}
.gate .ans{font-size:28px;min-height:40px;letter-spacing:4px}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.keys button{height:56px;border-radius:14px;background:#F3F4F6;font-size:22px}
.adm h2{font-size:18px;margin:16px 0 8px}
.wk{display:flex;gap:6px}
.wk button{flex:1;background:#fff;border-radius:14px;text-align:center;padding:6px 0;font-size:13px;min-height:72px}
.wk .p{display:block;font-size:28px;height:36px;overflow:hidden}
.wk .p .ph{width:36px;height:36px;border-radius:8px;margin:0 auto}
.li{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:8px 10px;margin-bottom:8px;min-height:60px}
.th{width:48px;height:48px;border-radius:12px;background:#F3F4F6;display:grid;place-items:center;font-size:28px;overflow:hidden;flex:none}
.sw{margin-inline-start:auto;width:56px;height:44px;background:none;position:relative;flex:none} /* DEF-3: 44px hit area; track drawn below */
.sw::before{content:"";position:absolute;top:7px;right:2px;width:52px;height:30px;border-radius:15px;background:#D1D5DB}
.sw::after{content:"";position:absolute;top:10px;right:5px;width:24px;height:24px;border-radius:50%;background:#fff;transition:right .15s}
.sw[aria-pressed=true]::before{background:#22C55E}.sw[aria-pressed=true]::after{right:27px}
.btn{display:block;width:100%;text-align:center;background:var(--ink);color:#fff;border-radius:14px;padding:13px;font-weight:600;margin-top:10px}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.danger{background:#B91C1C}
.add{background:#fff;border-radius:16px;padding:12px;margin-top:10px;display:grid;gap:10px}
.add input[type=text]{font:inherit;padding:10px;border:1px solid var(--line);border-radius:10px;width:100%;-webkit-user-select:text;user-select:text}
.note{font-size:13px;color:var(--muted);margin-top:8px}
.err{color:#B91C1C;font-size:14px}
.title{font-weight:700;font-size:18px}
.c-k1{color:var(--k1)}.c-k2{color:var(--k2)}
.emojis{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.emojis button{height:48px;border-radius:12px;background:#F3F4F6;font-size:26px}.emojis button[aria-checked=true]{outline:3px solid var(--ink);background:#fff}
input[type=file]{min-height:44px;padding:8px 0;font-size:16px} /* DEF-10: 44px target */
