/* Nisseplanen 2.0 visual system. Scandinavian, warm, paper and wool. See docs/DESIGN.md */
@font-face { font-family: 'Gelasio'; src: url('fonts/gelasio.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-800.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-800-ext.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dmsans.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
:root {
  --spruce: #2F6B4F; --spruce2: #245740; --spruce3: #1C4533; --berry: #C8402F; --berry2: #A3311F;
  --wool: #F7F1E6; --wool2: #EFE6D6; --birch: #FFFDF8; --night: #15233A; --night2: #22385A; --mustard: #E3A93B; --mustard2: #C98E22;
  --ink: #2A2420; --soft: #6B625A; --faint: #6F665E; --line: #E6DCCB; --sage: #DCE8DF; --blush: #F6E1DA; --sun: #FBEBC5; --mist: #E3EAF4;
  --serif: 'Gelasio', Georgia, serif; --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 1px 1px rgba(42,36,32,.04), 0 8px 24px rgba(42,36,32,.07);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--wool); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: none; background-image: radial-gradient(rgba(42,36,32,.035) 1px, transparent 1px); background-size: 6px 6px; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--spruce3); margin: 0; line-height: 1.18; text-wrap: balance; font-weight: 700; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--spruce); }
:focus-visible { outline: 3px solid #1C4533; outline-offset: 2px; border-radius: 8px; box-shadow: 0 0 0 5px #FFF6D8; }
html { scroll-padding-bottom: 96px; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout */
.np-screen { padding: calc(16px + var(--safe-t)) 18px calc(104px + var(--safe-b)); animation: npIn .32s ease both; position: relative; z-index: 1; }
.np-screen.flat { padding-bottom: calc(32px + var(--safe-b)); }
@keyframes npIn { from { opacity: 0; transform: translateY(8px); } }
.np-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; min-height: 44px; }
.np-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--spruce3); }
.np-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--berry); display: flex; align-items: center; gap: 6px; }
.np-lead { color: var(--soft); font-size: 15.5px; margin-top: 6px; }
.np-muted { color: var(--soft); font-size: 14px; }
.np-small { font-size: 13px; color: var(--faint); }
.np-row { display: flex; gap: 10px; align-items: center; }
.np-row.wrap { flex-wrap: wrap; }
.np-sp { flex: 1; }
.np-mt { margin-top: 16px; } .np-mt2 { margin-top: 28px; } .np-mt1 { margin-top: 8px; }
.center { text-align: center; }

/* cards */
.np-card { background: var(--birch); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(230,220,203,.6); position: relative; }
.np-card + .np-card { margin-top: 14px; }
.np-card.tint-sage { background: var(--sage); border-color: transparent; }
.np-card.tint-sun { background: var(--sun); border-color: transparent; }
.np-card.tint-blush { background: var(--blush); border-color: transparent; }
.np-card.night { background: linear-gradient(165deg, var(--night), var(--night2)); color: #F3EEE4; border: 0; overflow: hidden; }
.np-card.night h1, .np-card.night h2, .np-card.night h3 { color: #fff; }
.np-card.night .np-kicker { color: #F4B8A8; }
.np-card.night .np-muted { color: #C6CFDD; }

/* buttons */
.np-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 14px 22px; border-radius: 999px; background: var(--berry); color: #fff; font-weight: 700; font-size: 16.5px; letter-spacing: .01em; box-shadow: 0 4px 0 var(--berry2); transition: transform .1s ease, box-shadow .1s ease; }
.np-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--berry2); }
.np-btn.green { background: var(--spruce); box-shadow: 0 4px 0 var(--spruce3); }
.np-btn.green:active { box-shadow: 0 1px 0 var(--spruce3); }
.np-btn.ghost { background: var(--birch); color: var(--spruce3); box-shadow: none; border: 1.5px solid var(--line); }
.np-btn.small { min-height: 44px; font-size: 15px; padding: 10px 16px; width: auto; }
.np-btn[disabled] { opacity: .5; pointer-events: none; }
.np-link { color: var(--spruce); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; padding: 12px; display: block; text-align: center; width: 100%; font-size: 15px; }
.np-iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--birch); border: 1.5px solid var(--line); color: var(--spruce3); }
.np-chip { padding: 9px 14px; border-radius: 999px; background: var(--wool2); font-weight: 600; font-size: 14.5px; color: var(--spruce3); border: 1.5px solid transparent; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.np-chip.on { background: var(--spruce); color: #fff; }
.np-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.np-seg { display: flex; background: var(--wool2); padding: 4px; border-radius: 999px; gap: 4px; }
.np-seg button { flex: 1; min-height: 44px; border-radius: 999px; font-weight: 700; color: var(--soft); font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; }
.np-seg button.on { background: var(--birch); color: var(--spruce3); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.np-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.np-opts.three { grid-template-columns: 1fr 1fr 1fr; }
.np-opt { min-height: 52px; padding: 10px 12px; border-radius: var(--r-md); background: var(--birch); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink); text-align: center; line-height: 1.25; display: flex; align-items: center; justify-content: center; gap: 6px; }
.np-opt.on { border-color: var(--spruce); background: var(--sage); color: var(--spruce3); box-shadow: inset 0 0 0 1px var(--spruce); }

/* fields */
.np-field { display: block; margin-top: 16px; }
.np-field > span { display: block; font-size: 13.5px; font-weight: 700; color: var(--soft); margin-bottom: 7px; }
.np-input { width: 100%; min-height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; padding: 12px 14px; font-size: 17px; color: var(--ink); outline: none; }
.np-input:focus { border-color: var(--spruce); box-shadow: 0 0 0 3px rgba(47,107,79,.15); }
.np-err { color: var(--berry2); font-weight: 600; font-size: 14px; margin-top: 10px; min-height: 20px; }
.np-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.np-switch:first-child { border-top: 0; }
.np-switch input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: #D6CCBC; position: relative; transition: background .2s; flex: none; cursor: pointer; }
.np-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.np-switch input:checked { background: var(--spruce); }
.np-switch input:checked::after { transform: translateX(20px); }

/* mascot */
.tufs { display: block; overflow: visible; }
.np-hero { display: flex; justify-content: center; padding: 6px 0 2px; position: relative; }
.np-bubble { position: relative; background: var(--birch); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; font-weight: 600; color: var(--spruce3); box-shadow: var(--shadow); }
.np-bubble::before { content: ''; position: absolute; left: -9px; top: 22px; width: 16px; height: 16px; background: var(--birch); border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transform: rotate(45deg); }
.np-say { display: flex; align-items: flex-start; gap: 6px; }
.np-say .tufs { margin-top: -6px; }
.tf-wave { animation: tfWave 2.4s ease-in-out infinite; }
@keyframes tfWave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-10deg); } }
.tf-bell { animation: tfBell 3s ease-in-out infinite; }
@keyframes tfBell { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(16deg); } 90% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
.tf-eyes { animation: tfBlink 5s infinite; transform-origin: 100px 103px; }
@keyframes tfBlink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.tf-zzz text { animation: tfZ 3s ease-in-out infinite; opacity: 0; }
.tf-zzz text:nth-child(2) { animation-delay: 1s; } .tf-zzz text:nth-child(3) { animation-delay: 2s; }
@keyframes tfZ { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.tf-steam path { animation: tfSteam 2.6s ease-in-out infinite; }
@keyframes tfSteam { 0%, 100% { opacity: .2; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
.tf-ring { animation: tfBell 1.6s ease-in-out infinite; }
.tf-pop { animation: tfPop 2.4s ease-in-out infinite; }
@keyframes tfPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.tf-conf { animation: tfConf 2.8s ease-in-out infinite; }
@keyframes tfConf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tf-sleep .tf-body { animation: tfBreath 4s ease-in-out infinite; transform-origin: 100px 200px; }
@keyframes tfBreath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.02); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* badges */
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 30%; color: var(--spruce3); flex: none; }

/* install */
.np-phone { margin: 14px auto 6px; width: 210px; height: 92px; border-radius: 26px 26px 0 0; border: 3px solid var(--spruce3); border-bottom: 0; position: relative; background: linear-gradient(var(--birch), var(--wool)); }
.np-phone .bar { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 38px; border-radius: 12px; background: var(--wool2); display: flex; align-items: center; justify-content: space-around; color: var(--soft); }
.np-phone .hl { color: var(--berry); position: relative; }
.np-phone .hl::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2.5px solid var(--berry); animation: npPulse 1.6s ease-out infinite; }
@keyframes npPulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.np-steps { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; }
.np-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15.5px; }
.np-steps li:first-child { border-top: 0; }
.np-steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--spruce); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* language picker */
.np-langs { display: grid; gap: 10px; margin-top: 16px; }
.np-lang { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border-radius: var(--r-md); background: var(--birch); border: 1.5px solid var(--line); font-weight: 700; font-size: 17px; }
.np-lang.on { border-color: var(--spruce); background: var(--sage); }
.np-lang .code { width: 36px; height: 36px; border-radius: 50%; background: var(--wool2); display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .05em; color: var(--spruce3); }

/* onboarding */
.np-progress { display: flex; gap: 6px; margin: 4px 0 18px; }
.np-progress i { flex: 1; height: 5px; border-radius: 9px; background: var(--wool2); }
.np-progress i.on { background: var(--spruce); }
.np-ob-q { margin-top: 18px; }
.np-ob-q > b { display: block; font-size: 15.5px; color: var(--ink); }
.np-kidrow { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--wool); margin-top: 10px; }
.np-stepper { display: inline-flex; align-items: center; gap: 12px; background: var(--wool2); padding: 4px; border-radius: 999px; }
.np-stepper button { width: 40px; height: 40px; border-radius: 50%; background: var(--birch); font-size: 20px; font-weight: 700; color: var(--spruce3); }
.np-stepper b { min-width: 20px; text-align: center; font-size: 18px; }
.np-building { text-align: center; padding: 40px 10px; }
.np-building .bar { height: 8px; border-radius: 9px; background: var(--wool2); overflow: hidden; margin: 18px auto 0; max-width: 240px; }
.np-building .bar i { display: block; height: 100%; width: 0; background: var(--spruce); border-radius: 9px; animation: npFill 1.4s ease forwards; }
@keyframes npFill { to { width: 100%; } }

/* parent tonight */
.np-daybar { display: flex; align-items: center; gap: 14px; }
.np-ring { position: relative; width: 62px; height: 62px; flex: none; }
.np-ring svg { transform: rotate(-90deg); }
.np-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 21px; color: var(--spruce3); }
.np-idea-head { display: flex; gap: 14px; align-items: flex-start; }
.np-idea-head h2 { font-size: 24px; margin-top: 4px; }
.np-meta { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.np-meta > div { background: var(--wool); border-radius: var(--r-sm); padding: 10px 11px; font-size: 14px; line-height: 1.3; }
.np-meta b { display: flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.np-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.np-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); }
.np-dots i.off { background: #E2D8C7; }
.np-check { list-style: none; padding: 0; margin: 10px 0 0; }
.np-check li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 15.5px; }
.np-check li:first-child { border-top: 0; }
.np-check .b { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #CFC3AF; display: flex; align-items: center; justify-content: center; color: transparent; transition: all .15s; margin-top: 1px; }
.np-check li.on .b { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.np-check li.on > span:last-child { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.np-morning { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--sun); margin-top: 14px; font-size: 15px; }
.np-morning b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7E5610; }
.np-quick { padding: 12px 14px; border-radius: var(--r-md); background: var(--mist); margin-top: 12px; font-size: 15px; }
.np-quick b { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #3D5D8C; margin-bottom: 2px; }
.np-note { margin-top: 16px; padding: 18px; border-radius: var(--r-md); background: #FFFBF1; border: 1.5px dashed #E6D3AE; position: relative; }
.np-note q { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--ink); margin: 8px 0 12px; quotes: '«' '»' '“' '”'; }
.np-note .np-row button { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--spruce); padding: 8px 10px; border-radius: 99px; background: var(--birch); border: 1px solid var(--line); }
.np-done { margin-top: 18px; text-align: center; padding: 18px; border-radius: var(--r-md); background: var(--sage); }
.np-done h3 { margin-top: 4px; }
.np-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.np-msg { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; }
.np-msg .np-bubble { flex: 1; font-size: 15px; }
.np-tomorrow .np-prep { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; color: var(--spruce3); min-height: 44px; }
.np-tomorrow .np-prep input { width: 24px; height: 24px; accent-color: var(--spruce); }
.np-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--blush); color: var(--berry2); font-weight: 600; font-size: 14.5px; margin-top: 12px; }
.np-tease { margin-top: 12px; font-style: italic; color: var(--soft); font-size: 15px; }
.np-shop li { display: flex; justify-content: space-between; gap: 10px; }
.np-shop small { color: var(--faint); white-space: nowrap; }

/* lock / premium */
.np-locked { position: relative; }
.np-locked .np-blur { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.np-lockbox { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px; }
.np-lockbox .np-btn { width: auto; }
.np-offer table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.np-offer th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: center; padding: 6px 4px; }
.np-offer th:first-child { text-align: left; }
.np-offer td { padding: 10px 4px; border-top: 1px solid var(--line); text-align: center; }
.np-offer td:first-child { text-align: left; font-weight: 600; }
.np-offer td.paid { color: var(--spruce); }
.np-offer td.free { color: var(--faint); font-size: 13px; }
.np-price { font-family: var(--serif); font-size: 30px; color: var(--spruce3); }
.np-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--sage); color: var(--spruce3); font-weight: 700; font-size: 13px; }
.np-status.preview { background: var(--sun); color: #7A5A12; }

/* plan grid */
.np-plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.np-pday { aspect-ratio: 1 / 1.1; border-radius: var(--r-md); background: var(--birch); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; color: var(--spruce3); }
.np-pday .n { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); }
.np-pday.today { border-color: var(--berry); box-shadow: 0 0 0 2px var(--berry) inset; }
.np-pday.done { background: var(--sage); border-color: transparent; }
.np-pday.done::after { content: ''; position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--spruce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat; }
.np-pday.lock { opacity: .55; }
.np-pday.weekend::before { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); }
.np-list-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: var(--r-md); background: var(--birch); border: 1.5px solid var(--line); margin-top: 8px; }
.np-list-item .t { font-weight: 700; font-size: 15.5px; display: block; }
.np-list-item .s { color: var(--soft); font-size: 13.5px; display: block; margin-top: 1px; }
.np-list-item .go { margin-left: auto; color: var(--faint); }

/* SOS */
.np-sosbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.np-sosb { min-height: 86px; border-radius: var(--r-md); background: var(--birch); border: 1.5px solid var(--line); padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 8px; justify-content: space-between; font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ink); }
.np-sosb .ic { color: var(--berry); }
.np-sosb.on { background: var(--berry); color: #fff; border-color: var(--berry); }
.np-sosb.on .ic { color: #fff; }
.np-faq details { background: var(--birch); border-radius: var(--r-md); border: 1.5px solid var(--line); margin-top: 8px; padding: 0 14px; }
.np-faq summary { font-weight: 700; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.np-faq summary::-webkit-details-marker { display: none; }
.np-faq summary::after { content: '+'; color: var(--berry); font-size: 20px; line-height: 1; }
.np-faq details[open] summary::after { content: '−'; }
.np-faq details p { padding: 0 0 14px; color: var(--soft); }

/* album */
.np-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.np-ph { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--wool2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.np-ph.add { background: var(--birch); border: 1.5px dashed #CDBFA8; color: var(--spruce); cursor: pointer; }
.np-ph img { width: 100%; height: 100%; object-fit: cover; }
.np-ph .d { position: absolute; left: 5px; top: 5px; font-size: 11px; font-weight: 800; background: rgba(255,253,248,.9); color: var(--ink); border-radius: 6px; padding: 0 5px; }
.np-privacy { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sage); color: var(--spruce3); font-size: 13.5px; font-weight: 600; }

/* menu */
.np-menu { display: grid; gap: 0; margin-top: 14px; background: var(--birch); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.np-menu button, .np-menu a { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 64px; }
.np-menu > :first-child { border-top: 0; }
.np-menu .mi { width: 38px; height: 38px; border-radius: 12px; background: var(--wool); display: flex; align-items: center; justify-content: center; color: var(--spruce3); flex: none; }
.np-menu .t { font-weight: 700; display: block; font-size: 15.5px; }
.np-menu .s { color: var(--soft); font-size: 13.5px; display: block; }
.np-menu .danger .t, .np-menu .danger .mi { color: var(--berry2); }
.np-section { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 26px 4px 0; }

/* bottom nav */
.np-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: rgba(255,253,248,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; padding: 6px 6px calc(6px + var(--safe-b)); z-index: 20; }
.np-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; font-size: 11.5px; font-weight: 700; color: var(--faint); border-radius: 14px; min-height: 52px; }
.np-nav button.on { color: var(--spruce3); }
.np-nav button.on .ic { color: var(--berry); }
.np-nav button.sos .ic { color: var(--berry); }

/* sheet, toast, banners */
.np-sheet-bg { position: fixed; inset: 0; background: rgba(21,35,58,.42); z-index: 40; animation: npFade .2s ease; }
@keyframes npFade { from { opacity: 0; } }
.np-sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; background: var(--wool); border-radius: 26px 26px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); z-index: 41; animation: npUp .28s cubic-bezier(.2,.8,.3,1); }
@keyframes npUp { from { transform: translate(-50%, 100%); } }
.np-sheet .grab { display: none; }
.np-sheet .np-sback { position: sticky; top: -10px; z-index: 2; margin: -10px -18px 8px; padding: 10px 14px 8px; background: var(--wool); border-radius: 26px 26px 0 0; }
.np-backbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--birch); border: 1.5px solid var(--line); color: var(--spruce3); font: 600 15px var(--sans); }
.np-sheet.kid .np-sback { background: #1B2E4D; }
.np-toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: npIn .25s ease; max-width: 90vw; text-align: center; }
.np-banner { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; z-index: 50; background: var(--night); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.np-banner button { margin-left: auto; background: var(--mustard); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-weight: 700; }
.np-confetti, .np-sky { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; }
.np-confetti { z-index: 70; } .np-sky { z-index: 0; }

/* pin */
.np-pin { display: flex; justify-content: center; gap: 14px; margin: 18px 0; }
.np-pin i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--spruce); }
.np-pin i.on { background: var(--spruce); }
.np-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.np-keypad button { height: 62px; border-radius: 18px; background: var(--birch); border: 1.5px solid var(--line); font-size: 24px; font-weight: 700; color: var(--spruce3); }
.np-keypad button:active { background: var(--sage); }

/* share card preview */
.np-sharecard { width: 100%; border-radius: var(--r-md); margin-top: 12px; box-shadow: var(--shadow); }

/* ---------- kids mode ---------- */
html.kidmode, body.kidmode { background: linear-gradient(180deg, #101B2E 0%, #1B2E4D 60%, #2A4466 100%) fixed; background-color: #101B2E; }
.kid { color: #fff; min-height: 100vh; }
.kid h1, .kid h2 { color: #fff; }
.kid .np-screen { padding-bottom: calc(40px + var(--safe-b)); }
.k-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.k-back { color: #fff; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding-right: 10px; }
.k-lock { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.k-hello { text-align: center; }
.k-hello h1 { font-size: 32px; }
.k-hello p { font-size: 18px; color: #C9D6EA; margin-top: 4px; }
.k-elf { display: flex; justify-content: center; position: relative; margin: 8px 0 2px; }
.k-bubble { position: absolute; top: 4px; right: 4%; background: #fff; color: var(--spruce3); font-weight: 800; padding: 10px 14px; border-radius: 18px 18px 18px 4px; font-size: 16px; max-width: 46%; animation: kBob 3s ease-in-out infinite; }
@keyframes kBob { 50% { transform: translateY(-5px); } }
.k-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.k-tile { min-height: 112px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 18px; color: #fff; position: relative; box-shadow: 0 5px 0 rgba(0,0,0,.25); text-align: center; padding: 10px; }
.k-tile:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.k-tile.big { grid-column: span 2; flex-direction: row; gap: 16px; min-height: 104px; }
.k-tile small { font-weight: 600; opacity: .85; font-size: 14px; display: block; }
.k-red { background: var(--berry); } .k-green { background: var(--spruce); } .k-gold { background: var(--mustard2); } .k-blue { background: #3E6FB3; } .k-purple { background: #6B55A8; } .k-teal { background: #2C8A85; }
.k-tile.locked { filter: grayscale(.7); opacity: .6; }
.k-badge { position: absolute; top: 10px; right: 12px; background: #fff; color: var(--berry); min-width: 28px; height: 28px; border-radius: 99px; font-weight: 800; display: flex; align-items: center; justify-content: center; animation: kBob 1.6s ease-in-out infinite; }
.k-env { margin: 20px auto 0; width: 280px; cursor: pointer; position: relative; text-align: center; }
.k-env svg { width: 100%; height: auto; transition: transform .6s; }
.k-env.open svg { transform: scale(.85) translateY(30px); opacity: .5; }
.k-env .hint { margin-top: 10px; font-weight: 700; color: #F8D98A; animation: kBob 1.6s ease-in-out infinite; }
.k-letter { background: #FFFBF1; color: var(--ink); border-radius: 18px; padding: 22px 20px; font-family: var(--serif); font-size: 21px; line-height: 1.5; margin-top: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.3); animation: npIn .5s ease; }
.k-letter .sig { display: block; text-align: right; margin-top: 12px; color: var(--berry); font-weight: 700; }
.k-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; perspective: 600px; }
.k-door { aspect-ratio: 1 / 1.15; position: relative; border-radius: 14px; background: rgba(255,255,255,.08); }
.k-door .in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #F8D98A; }
.k-door .lid { position: absolute; inset: 0; border-radius: 14px; background: var(--berry); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; font-weight: 700; transform-origin: left center; transition: transform .7s cubic-bezier(.3,.7,.3,1); box-shadow: inset 0 0 0 3px rgba(255,255,255,.2); }
.k-door:nth-child(3n+2) .lid { background: var(--spruce); } .k-door:nth-child(3n) .lid { background: #6B55A8; }
.k-door.open .lid { transform: rotateY(-105deg); }
.k-door .in { opacity: 0; transition: opacity .3s .3s; }
.k-door.open .in { opacity: 1; }
.k-door.locked .lid { filter: saturate(.45) brightness(.8); }
.k-door.today .lid { animation: kGlow 1.6s ease-in-out infinite; }
@keyframes kGlow { 50% { box-shadow: inset 0 0 0 3px #F8D98A, 0 0 18px #F8D98A; } }
.k-crystal { width: 200px; height: 200px; margin: 18px auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #B8A4F0 30%, #5A43A0 75%); box-shadow: 0 0 50px rgba(184,164,240,.6); display: flex; align-items: center; justify-content: center; color: #fff; animation: kBob 3s ease-in-out infinite; cursor: pointer; }
.k-tease { text-align: center; font-family: var(--serif); font-size: 22px; padding: 0 10px; }
.k-count { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.k-count div { background: rgba(255,255,255,.1); border-radius: 16px; padding: 10px 14px; text-align: center; min-width: 76px; }
.k-count b { display: block; font-family: var(--serif); font-size: 30px; }
.k-count span { font-size: 13px; color: #C9D6EA; }
.k-bingo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.k-bingo button { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.15; padding: 4px; }
.k-bingo button.on { background: var(--mustard); color: var(--ink); }
.k-bingo button.free { background: var(--berry); }
.k-radar { width: 250px; margin: 20px auto 0; position: relative; }
.k-radar svg { width: 100%; height: auto; }
.np-blip { transform-origin: 100px 100px; transition: transform .2s, opacity .3s; }
.k-radar-msg { text-align: center; font-size: 22px; font-weight: 800; margin-top: 14px; min-height: 32px; }
.k-canvas-wrap { margin-top: 14px; border-radius: 20px; overflow: hidden; background: #FFFDF7; touch-action: none; }
.k-canvas-wrap canvas { display: block; width: 100%; height: 380px; }
.k-colors { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.k-colors button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); }
.k-colors button.on { border-color: #fff; transform: scale(1.12); }
.kid .np-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.np-sheet.kid { background: #1B2E4D; color: #fff; }
.np-sheet.kid h2 { color: #fff; }
.flip { transform: scaleX(-1); }

/* ---------- 2.1 Christmas layer ---------- */
body { background-color: #F7F1E6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E6DCCB' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M30 18v24M18 30h24M21.5 21.5l17 17M38.5 21.5l-17 17'/%3E%3Cpath d='M90 78v20M80 88h20M83 81l14 14M97 81l-14 14'/%3E%3C/g%3E%3Ccircle cx='80' cy='26' r='2' fill='%23EDE3D2'/%3E%3Ccircle cx='24' cy='92' r='1.6' fill='%23EDE3D2'/%3E%3C/svg%3E"); background-size: 120px 120px; }
.np-band { position: relative; margin: calc(-16px - var(--safe-t)) -18px 0; padding: calc(30px + var(--safe-t)) 18px 44px; color: #F7F1E6; overflow: hidden;
  background: radial-gradient(1.2px 1.2px at 12% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 18%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 58% 26%, #FFF6D8 50%, transparent 51%), radial-gradient(1px 1px at 76% 14%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 90% 38%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 44%, #fff 50%, transparent 51%), radial-gradient(120% 90% at 80% 0%, #2B4A70 0%, transparent 60%), linear-gradient(180deg, #15233A 0%, #1C3550 55%, #23485A 100%);
  border-radius: 0 0 30px 30px; }
.np-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.9) 50%, transparent 51%), radial-gradient(1.6px 1.6px at 80px 120px, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(2.4px 2.4px at 150px 60px, rgba(255,255,255,.85) 50%, transparent 51%), radial-gradient(1.4px 1.4px at 220px 150px, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,.85) 50%, transparent 51%); background-size: 340px 200px; animation: bandSnow 14s linear infinite; }
@keyframes bandSnow { from { background-position: 0 -200px; } to { background-position: 40px 200px; } }
.np-band > * { position: relative; z-index: 1; }
.np-band .np-top { margin-bottom: 10px; }
.np-band .np-brand { color: #fff; }
.np-band h1, .np-band h2 { color: #fff; }
.np-band .np-kicker { color: #F8C9A8; }
.np-band .np-muted { color: #C9D4E2; }
.np-band .np-chip { background: rgba(255,255,255,.12); color: #fff; }
.np-band .np-ring circle:first-child { stroke: rgba(255,255,255,.16); }
.np-band .np-ring b { color: #fff; }
.np-band .np-lead { color: #D6DEEA; }
.np-garland { position: absolute; left: 0; top: calc(var(--safe-t) - 4px); width: 100%; height: 40px; z-index: 2; }
.gl-b ellipse:nth-of-type(1) { animation: glow 2.2s ease-in-out infinite; animation-delay: inherit; }
.gl-b { animation: glowg 2.2s ease-in-out infinite; }
@keyframes glowg { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,220,120,.9)); } 50% { opacity: .55; filter: none; } }
.np-village { position: absolute !important; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; z-index: 0 !important; }
.band-tufs { margin: -18px -6px -30px 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
span.tf-img { display: inline-block; background-repeat: no-repeat; flex: none; vertical-align: bottom; }
.np-countdown { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.np-countdown .np-big { font-family: var(--serif); font-size: 64px; line-height: 1; color: #fff; }
.np-candles { width: 180px; display: block; margin: -6px auto 8px; }
.cd-f { animation: flick 1.4s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08, .94) rotate(2deg); } }
.np-card.festive { padding-top: 26px; overflow: hidden; }
.np-card.festive::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, #C8402F 0 10px, #FFFDF8 10px 20px); }
.np-msg .tufs, .np-say .tufs { flex: none; }
.np-msg img.tufs { margin: -8px -4px -10px -6px; }
.np-nav { box-shadow: 0 -6px 20px rgba(21,35,58,.06); }
.np-nav button.on::before { content: ''; position: absolute; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 8px var(--mustard); }
.np-nav button { position: relative; }
body.kidmode, html.kidmode { background: radial-gradient(80% 50% at 20% 0%, rgba(111,181,138,.35), transparent 60%), radial-gradient(70% 40% at 90% 10%, rgba(127,167,232,.3), transparent 60%), linear-gradient(180deg, #0E1A2C 0%, #172C48 55%, #24456A 100%) fixed; }
.k-village { margin: 18px -18px -40px; height: 70px; position: relative; }
.k-village .np-village { position: absolute !important; height: 70px; }
.k-elf .tufs { filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.np-pday { box-shadow: inset 0 -3px 0 rgba(0,0,0,.04); }
.np-pday.today { background: #FFF5EF; }
@media (prefers-reduced-motion: reduce) { .np-band::after { animation: none; } }

/* ---------- opening animation ---------- */
.np-splash { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: radial-gradient(90% 60% at 50% 30%, #2B4D78 0%, #172C48 45%, #0C1626 100%); color: #fff; cursor: pointer; transition: opacity .6s ease, transform .6s ease; }
.np-splash.out { opacity: 0; transform: scale(1.04); }
.sp-moon { position: absolute; top: 31%; right: 12%; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFFBEA, #F6E3A6 70%); box-shadow: 0 0 60px 20px rgba(246,227,166,.35); opacity: 0; transition: opacity 1.2s ease .2s; }
.go .sp-moon { opacity: 1; }
.sp-snow { position: absolute; inset: -10% 0 0; background-image: radial-gradient(3px 3px at 30px 40px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 120px 160px, rgba(255,255,255,.9) 50%, transparent 51%), radial-gradient(2.5px 2.5px at 210px 80px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 300px 220px, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(3px 3px at 380px 120px, #fff 50%, transparent 51%); background-size: 420px 260px; animation: spSnow 9s linear infinite; opacity: .9; }
.sp-snow.s2 { background-size: 300px 200px; animation-duration: 6s; opacity: .5; filter: blur(1px); }
@keyframes spSnow { from { background-position: 0 -260px; } to { background-position: 60px 260px; } }
.sp-stage { position: absolute; left: 0; right: 0; bottom: 21%; height: 300px; display: flex; justify-content: center; }
.sp-peek, .sp-hero { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 110%); }
.go .sp-peek { animation: spPeek 1.5s cubic-bezier(.3,1.4,.5,1) .3s forwards; }
@keyframes spPeek { 0% { transform: translate(-50%, 110%); } 45% { transform: translate(-50%, 38%); } 70% { transform: translate(-50%, 42%) rotate(-4deg); } 85% { transform: translate(-50%, 40%) rotate(4deg); } 100% { transform: translate(-50%, 40%); opacity: 1; } }
.go .sp-peek { animation-name: spPeek, spHide; animation-duration: 1.5s, .25s; animation-delay: .3s, 1.6s; animation-fill-mode: forwards, forwards; }
@keyframes spHide { to { opacity: 0; transform: translate(-50%, 60%); } }
.go .sp-hero { animation: spJump 1.1s cubic-bezier(.25,1.3,.4,1) 1.65s forwards; }
@keyframes spJump { 0% { transform: translate(-50%, 70%) scale(.85, 1.1); } 40% { transform: translate(-50%, -26%) scale(1.04, .96); } 65% { transform: translate(-50%, 2%) scale(1.08, .9); } 82% { transform: translate(-50%, -6%) scale(.98, 1.03); } 100% { transform: translate(-50%, 0) scale(1); } }
.sp-hero .tufs { filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.sp-dust { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none; }
.sp-hill { position: absolute; left: -10%; right: -10%; bottom: 13%; height: 120px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: linear-gradient(#FBF7F0, #E6EDF3); box-shadow: 0 -10px 40px rgba(255,255,255,.15); z-index: 2; }
.sp-village { position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: #FBF7F0; z-index: 1; }
.sp-village .np-village { position: absolute !important; top: -60px; height: 64px; opacity: .55; }
.sp-title { position: absolute; left: 0; right: 0; top: 13%; text-align: center; z-index: 3; padding: 0 20px; }
.sp-title h1 { font-size: 42px; color: #fff; letter-spacing: .01em; }
.sp-title h1 span { display: inline-block; opacity: 0; transform: translateY(14px) scale(.6); background: linear-gradient(180deg, #FFF3C2 0%, #F2C14E 60%, #D99A1E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(242,193,78,.35); }
.go .sp-title h1 span { animation: spLetter .5s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes spLetter { to { opacity: 1; transform: none; } }
.sp-title p { margin-top: 10px; color: #D6DEEA; font-size: 15px; opacity: 0; transition: opacity .8s ease 2.9s; }
.go .sp-title p { opacity: 1; }
.sp-skip { position: absolute; bottom: calc(18px + var(--safe-b)); right: 18px; z-index: 4; font-size: 13px; color: #6B7A90; font-weight: 700; }
.np-splash.still .sp-peek { display: none; }
.np-splash.still .sp-hero { transform: translate(-50%, 0); }
.np-splash.still .sp-title h1 span, .np-splash.still .sp-title p { opacity: 1; transform: none; }
.np-stars { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.np-stars button { color: #D9CFBF; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.np-stars button.on { color: var(--mustard); }
.np-stars button.on svg { fill: currentColor; }
.np-list-item .mi { width: 38px; height: 38px; border-radius: 12px; background: var(--wool); display: flex; align-items: center; justify-content: center; color: var(--spruce3); flex: none; }
.np-list-item.danger .t, .np-list-item.danger .mi { color: var(--berry2); }
textarea.np-input { min-height: 90px; resize: vertical; font-size: 16px; }

/* gift for the child's own app */
.gift h1 { font-size: 34px; }
.np-giftbox { position: relative; width: 200px; height: 200px; margin: 40px auto 10px; display: block; animation: giftWiggle 2.2s ease-in-out infinite; }
.np-giftbox .box { position: absolute; left: 20px; right: 20px; bottom: 0; height: 130px; border-radius: 14px; background: linear-gradient(90deg, transparent 43%, #F2C14E 43%, #F2C14E 57%, transparent 57%), linear-gradient(160deg, #D9483A, #A3311F); box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.np-giftbox .lid { position: absolute; left: 8px; right: 8px; top: 40px; height: 40px; border-radius: 10px; background: linear-gradient(90deg, transparent 43%, #F2C14E 43%, #F2C14E 57%, transparent 57%), linear-gradient(160deg, #E5574A, #B53A28); z-index: 2; transition: transform .7s cubic-bezier(.3,1.4,.5,1), opacity .7s; }
.np-giftbox .bow { position: absolute; left: 50%; top: 8px; width: 80px; height: 40px; margin-left: -40px; z-index: 3; background: radial-gradient(circle at 25% 60%, #F2C14E 0 18px, transparent 19px), radial-gradient(circle at 75% 60%, #F2C14E 0 18px, transparent 19px); transition: transform .7s cubic-bezier(.3,1.4,.5,1), opacity .7s; }
.np-giftbox.open { animation: none; }
.np-giftbox.open .lid, .np-giftbox.open .bow { transform: translateY(-160px) rotate(-25deg); opacity: 0; }
@keyframes giftWiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(3deg); } }
.gift-pop { display: flex; justify-content: center; animation: giftPop .8s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes giftPop { from { transform: translateY(80px) scale(.4); opacity: 0; } }

/* 2.4: greeting forms, the elf's letter, plan preview, sticky bottom button */
.np-voc { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 13px; color: var(--soft); flex-wrap: wrap; }
.np-voc .np-chip { min-height: 36px; padding: 0 12px; font-size: 13px; }
.np-voc .np-input { flex: 1; min-width: 110px; min-height: 40px; padding: 8px 12px; font-size: 15px; }
.np-letter { font-family: var(--serif); font-size: 17px; line-height: 1.5; background: #FFFDF8; border: 1px dashed #E2D6C2; border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.np-letter p + p { margin-top: 6px; }
.np-letter .g { font-weight: 700; color: var(--spruce3); }
.np-letter .s { text-align: right; font-style: italic; color: var(--berry); }
.np-voice { display: inline-flex; align-items: center; gap: 6px; }
.np-how { margin: 10px 0 0 20px; display: grid; gap: 8px; font-size: 15px; }
.np-pvlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.np-pvlist li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.np-pvlist li:last-child { border-bottom: 0; }
.np-pvlist .d { width: 24px; text-align: right; font-weight: 700; color: var(--berry); font-family: var(--serif); }
.np-pvlist .t { flex: 1; }
.np-pvlist .m { color: var(--soft); font-size: 12px; white-space: nowrap; }
.np-stickybar { position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--wool) 30%); margin-top: 8px; }
.np-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--soft); text-align: left; min-height: 44px; }
.np-consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--spruce); }
.np-letter .ps { font-size: 14px; color: var(--soft); font-style: italic; }
.np-menu a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }

/* 2.5: one look with the Memory Keeper PDF. The winter village (same illustration as the PDF) is the header everywhere,
   fading into the cream page at the bottom; photos and nights look like the polaroids on the PDF. */
.np-band { background: linear-gradient(180deg, rgba(10,20,40,.55) 0%, rgba(10,20,40,.15) 45%, rgba(247,241,230,0) 72%, var(--wool) 100%), url(icons/print/village-web.webp) center 78% / cover no-repeat, #15233A;
  border-radius: 0; padding-bottom: 96px; min-height: 250px; }
.np-band .np-garland, .np-band .np-village { display: none; }
.np-band h1, .np-band h2, .np-band .np-brand, .np-band .np-big { text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.np-band .np-kicker { color: #F6D58A; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.np-band .np-muted, .np-band .np-lead { color: #F2EBDD; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.np-band .np-ring { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.np-band .np-ring circle:first-child { stroke: rgba(255,255,255,.35); }
.band-tufs { margin: -18px -6px -16px 0; }
.np-band { margin-bottom: -54px; z-index: 0; }
.np-band ~ * { position: relative; z-index: 1; }
.np-splash { background: url(icons/print/village-web.webp) center 70% / cover no-repeat, #0C1626; }
.np-splash .sp-moon, .np-splash .sp-hill, .np-splash .sp-village { display: none; }
.np-splash::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,32,.6) 0%, rgba(8,16,32,0) 40%); z-index: 0; }
.np-splash .sp-stage { bottom: 9%; }
.np-splash .sp-skip { color: #6B625A; }
/* Polaroid photos (as in the PDF) */
.np-photos { grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.np-ph { aspect-ratio: auto; border-radius: 3px; background: #fff; padding: 6px 6px 22px; box-shadow: 0 2px 8px rgba(60,40,20,.14); overflow: visible; display: block; color: var(--spruce); transform: rotate(var(--r, 0deg)); }
.np-ph::before { content: ''; display: block; aspect-ratio: 1 / .82; background: var(--wool2); border-radius: 1px; }
.np-ph.add { background: #fff; border: 0; }
.np-ph.add::before { background: repeating-linear-gradient(135deg, #F3ECDF 0 8px, #EFE6D6 8px 16px); }
.np-ph img { position: absolute; left: 6px; top: 6px; width: calc(100% - 12px); height: auto; aspect-ratio: 1 / .82; object-fit: cover; border-radius: 1px; }
.np-ph > svg { position: absolute; left: 50%; top: calc(6px + (100% - 28px) * .41); transform: translate(-50%, -50%); opacity: .7; }
.np-ph .d { left: 8px; top: auto; bottom: 3px; background: none; color: var(--berry); font-family: var(--serif); font-size: 14px; padding: 0; }
.np-ph:nth-child(3n+1) { --r: -1.4deg; } .np-ph:nth-child(3n+2) { --r: .9deg; } .np-ph:nth-child(4n) { --r: -.6deg; } .np-ph:nth-child(5n) { --r: 1.5deg; }
/* Plan days like the numbered frames in the PDF */
.np-pday { background: #fff; border: 0; border-radius: 4px; box-shadow: 0 2px 7px rgba(60,40,20,.12); }
.np-pday .n { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--berry); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.np-pday.today { box-shadow: 0 0 0 2.5px var(--berry), 0 4px 12px rgba(200,64,47,.25); background: #FFF8F1; }
.np-pday.done { background: var(--sage); }
.np-pday.done::after { top: auto; bottom: 6px; right: 6px; }
.np-pday.weekend::before { left: auto; right: 7px; top: 7px; }
.np-art { display: block; margin: 0 auto; height: auto; filter: drop-shadow(0 8px 14px rgba(60,40,20,.18)); }
.np-tips { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.np-tips li { margin-top: 6px; }
.np-agel { display: block; font-size: 13px; color: var(--muted, #6b6b6b); margin: 8px 0 4px; font-weight: 600; }
/* 2.6: the elf stands in the snow of the village picture instead of floating on a plate */
.band-elf { position: absolute; right: 2px; bottom: 50px; height: 158px; width: auto; pointer-events: none; z-index: 0; filter: drop-shadow(0 0 18px rgba(255, 196, 120, .18)); }
.band-elf.sl { height: 132px; right: 0; }
@media (max-width: 360px) { .band-elf, .band-elf.sl { height: 104px; right: -8px; opacity: .95; } }
.np-band .np-daybar, .np-band .np-countdown { position: static; padding-right: 118px; }
.np-band .np-countdown { justify-content: flex-start; }
.np-band .np-daybar h1, .np-band .np-countdown .np-big { text-shadow: 0 2px 10px rgba(5, 12, 30, .55); }
/* countdown sits partly over white snow: soft dark halo keeps the white number and label readable */
/* compact countdown: centred in the free sky left of the sleeping elf, number and unit on one line so nothing sits on the snow */
.np-band .cd-box { flex: 1; text-align: center; margin-top: -14px; }
.np-band .cd-box .np-kicker { justify-content: center; }
.np-band .cd-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 2px; }
.np-band .cd-row .np-big { font-size: 50px; }
.np-band .cd-row .cd-u { font-size: 20px; font-weight: 600; color: #F7F1E6; }
.np-band .cd-row > span { text-shadow: 0 1px 2px rgba(5, 12, 30, .7), 0 0 10px rgba(5, 12, 30, .55), 0 0 24px rgba(5, 12, 30, .35); }
.np-memready { background: linear-gradient(180deg, #FFFDF7, #F7EEDC); border: 1.5px solid #E9D9B8; }
.np-btn.big { font-size: 18px; padding: 16px 18px; }
/* 2.7: legal sheet, storage notice, signup consent */
.np-legalseg { display: flex; flex-wrap: wrap; gap: 4px; }
.np-legalseg button { flex: 1 1 45%; font-size: 13px; padding: 8px 6px; }
.np-legaltab { display: grid; gap: 8px; }
.np-legaltab > div { display: grid; gap: 2px; padding: 10px 12px; background: #FFFDF7; border: 1px solid #EADFCB; border-radius: 12px; font-size: 14px; }
.np-legaltab code { font-size: 12px; color: #6B625A; word-break: break-word; }
.np-storebar { position: fixed; left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 10px 12px; background: #15233A; color: #FFF6D8; border-radius: 16px; box-shadow: 0 8px 24px rgba(10,20,40,.3); font-size: 14px; max-width: 520px; margin: 0 auto; }
.np-storebar span { flex: 1 1 55%; font-size: 13px; line-height: 1.35; }
body:not(:has(.np-nav)) .np-storebar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.np-storebar .np-link { color: #F6D58A; padding: 6px 0; }
.np-storebar .np-btn.small { min-width: 56px; padding: 8px 12px; flex: 0 0 auto; }
.np-storebar .np-link { flex: 0 0 auto; font-size: 13px; }
.np-inl { display: inline-block; min-height: 44px; vertical-align: middle; margin: -10px 0; background: none; border: 0; padding: 10px 2px; color: var(--green, #2F6B4F); text-decoration: underline; font: inherit; cursor: pointer; }
.np-accept { line-height: 1.5; }
body.has-storebar .np-screen { padding-bottom: 150px; }
.np-storebar .np-link { width: auto; display: inline-block; margin: 0; text-align: left; }
.np-storebar span { min-width: 0; }
body.has-storebar #app { padding-bottom: 90px; }
/* Sign in with Google (Google branding: white button, G logo, readable label) */
.np-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted, #6b6b6b); font-size: 13px; }
.np-or::before, .np-or::after { content: ''; flex: 1; height: 1px; background: #E2D7C5; }
.np-gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px; background: #fff; color: #1F1F1F; border: 1px solid #747775; border-radius: 999px; font: 500 15px Roboto, "DM Sans", Arial, sans-serif; cursor: pointer; }
.np-gbtn:active { background: #F2F2F2; }
.np-gsi { display: flex; justify-content: center; min-height: 48px; }

/* Links to the public legal pages, under sign-in and in More */
.np-legalfoot { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; font-size: 13px; color: var(--soft); }
.np-legalfoot a { color: var(--spruce); display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

.np-pday.extra { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(201,142,34,.10) 6px 12px); }

.np-portraits { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.np-portrait { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; min-height: 44px; }
.np-portrait .pt-c { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--wool2); border: 3px solid #E8C77A; overflow: hidden; color: var(--soft); }
.np-portrait .pt-c img { width: 100%; height: 100%; object-fit: cover; }
.np-portrait .pt-n { font-size: 13px; font-weight: 600; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-crop canvas { width: 100%; max-width: 360px; aspect-ratio: 1; display: block; margin: 0 auto; border-radius: 16px; touch-action: none; background: #15233A; }
.np-guide { display: block; margin: 8px auto 0; }
.np-mempages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.np-mempages img { width: 100%; margin: 0; }
.np-link.inline { display: inline; width: auto; padding: 0 2px; font-size: inherit; text-align: left; }
.np-instcard { background: linear-gradient(135deg, #FFF6DF, #F8E7C2); border: 1px solid rgba(201,142,34,.35); }
.np-instcard .mi { width: 42px; height: 42px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--berry2, #C8402F); flex: none; margin-right: 12px; }
.np-instcard .np-btn.small { width: 100%; }
/* Entry screens (language, install, sign in): the winter village with the logo, like the shop. The work screens stay light. */
.np-screen.np-entry { min-height: 100vh; }
.np-entry .np-brand { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.np-entry .np-top .np-chip { background: rgba(255,255,255,.92); }
.np-ehead h1, .np-ehead .np-lead { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.np-ehead .np-lead { color: #F4EEDF; }
.np-logo-big { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 0 0 3px rgba(242,200,105,.9), 0 10px 30px rgba(0,0,0,.45); display: block; }
.np-entry .np-hero { padding: 6px 0 20px; }
.np-entry .np-logo-big { box-shadow: 0 0 0 3px rgba(242,200,105,.9), 0 6px 16px rgba(0,0,0,.35); }
/* The entry header grows with its text, so the words always sit on the dark sky, never on the snow. */
.np-ehead { margin: calc(-16px - var(--safe-t)) -18px 0; padding: calc(16px + var(--safe-t)) 18px 64px; background: linear-gradient(180deg, rgba(8,16,34,.2) 0, rgba(8,16,34,.5) 45%, rgba(8,16,34,.66) 84%, rgba(247,241,230,0) 93%, #F7F1E6 100%), url(icons/print/village-web.webp) center bottom / cover no-repeat, #0E1B33; }
.np-ehead + * { margin-top: -28px; position: relative; }
.np-ehead .np-hero { display: block; padding: 4px 0 0; height: auto; }
.np-ehead .np-logo-big { margin: 0 auto 18px; position: static; }
.np-ehead h1 { margin-top: 0; position: relative; z-index: 1; }
/* Splash v3: real artwork instead of the small atlas poses. Sky, the village across the bottom, the nisse jumps up in the snow. */
.np-splash { background: #0B1830; }
.np-splash::before { display: none; }
.sp-sky { position: absolute; inset: 0; background: radial-gradient(70% 40% at 60% 30%, rgba(80,190,150,.28), transparent 70%), linear-gradient(180deg, #0A1428 0%, #13283F 55%, #14293B 100%); }
.sp-vill { position: absolute; left: 50%; bottom: 0; width: max(170%, 760px); transform: translateX(-50%) scale(1.06); transform-origin: 50% 100%; opacity: 0; transition: opacity 1s ease, transform 5s ease-out; }
.go .sp-vill { opacity: 1; transform: translateX(-50%) scale(1); }
.np-splash .sp-stage { bottom: 4%; height: 46%; z-index: 2; }
.sp-elf { position: absolute; bottom: 0; left: 50%; height: 100%; max-height: 420px; width: auto; transform: translate(-50%, 115%); filter: drop-shadow(0 16px 22px rgba(0,0,0,.45)); }
.go .sp-elf { animation: spElf 1.2s cubic-bezier(.25,1.25,.4,1) .9s forwards, spSway 2.4s ease-in-out 2.2s infinite alternate; }
@keyframes spElf { 0% { transform: translate(-50%, 115%); } 60% { transform: translate(-50%, -5%); } 80% { transform: translate(-50%, 2%); } 100% { transform: translate(-50%, 0); } }
@keyframes spSway { from { transform: translate(-50%, 0) rotate(-1.2deg); } to { transform: translate(-50%, 0) rotate(1.2deg); } }
.sp-elf { transform-origin: 50% 100%; }
.np-splash .sp-title { top: calc(9% + var(--safe-t)); }
.np-splash .sp-title p { transition-delay: 1.6s; }
.np-splash .sp-skip { color: #E8EEF6; opacity: .8; }
.np-splash.still .sp-elf { transform: translate(-50%, 0); }
.np-splash.still .sp-vill { opacity: 1; transform: translateX(-50%); }
.sp-vill { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
.sp-sky { background: radial-gradient(70% 40% at 60% 30%, rgba(80,190,150,.22), transparent 70%), linear-gradient(180deg, #091224 0%, #11233A 50%, #14283B 100%); }
.np-splash .sp-skip { color: #fff; background: rgba(10,20,40,.55); padding: 6px 12px; border-radius: 999px; opacity: .9; }
/* Splash v4: the nisse from the logo climbs up from the bottom edge (only up to the green sweater). Title in Fraunces, a warm storybook serif. */
.np-splash .sp-stage { left: 0; right: 0; bottom: 0; height: auto; top: auto; z-index: 2; display: block; }
.np-splash .sp-elf { position: relative; display: block; margin: 0 auto; left: auto; bottom: auto; height: auto; max-height: none; width: min(88vw, 430px); transform: translateY(105%); transform-origin: 50% 100%; filter: drop-shadow(0 -6px 30px rgba(0,0,0,.35)); }
.go .sp-elf { animation: spClimb 2s cubic-bezier(.33,.9,.4,1) .7s forwards, spBob 2.6s ease-in-out 2.8s infinite alternate; }
@keyframes spClimb { 0% { transform: translateY(105%) rotate(0); } 22% { transform: translateY(70%) rotate(-3deg); } 32% { transform: translateY(74%) rotate(-1deg); } 52% { transform: translateY(38%) rotate(3deg); } 62% { transform: translateY(42%) rotate(1deg); } 82% { transform: translateY(4%) rotate(-1.5deg); } 92% { transform: translateY(-2%) rotate(0); } 100% { transform: translateY(0) rotate(0); } }
@keyframes spBob { from { transform: translateY(0) rotate(-.8deg); } to { transform: translateY(1.5%) rotate(.8deg); } }
.np-splash .sp-title h1 { font-family: 'Fraunces', var(--serif); font-weight: 800; font-size: clamp(40px, 11vw, 54px); letter-spacing: -.01em; line-height: 1.05; }
.np-splash .sp-title p { font-size: 17px; line-height: 1.45; color: #EEF2F8; max-width: 320px; margin: 12px auto 0; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.np-splash .sp-title p { transition-delay: 1.2s; }
.np-splash .sp-dust { inset: auto 0 0; height: 70vh; width: 100%; }
.np-splash.still .sp-elf { transform: none; }
.np-ehead h1, .np-entry h1 { font-family: 'Fraunces', var(--serif); font-weight: 800; letter-spacing: -.005em; }
