@font-face {
	font-family: "Press Start 2P";
	src: url("/fonts/PressStart2P.woff2") format("woff2");
	font-display: swap;
}

:root {
	--bg: #1b1036;
	--panel: #2d1d57;
	--line: #4b3790;
	--ink: #f4f0ff;
	--pink: #ff4fa3;
	--pink-dark: #b8306f;
	--cyan: #37e0ff;
	--yellow: #ffe14d;
	--yellow-dark: #c9a800;
	--shadow: #0b0620;
	--pixel: "Press Start 2P", ui-monospace, monospace;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	color-scheme: dark;
}

* { box-sizing: border-box }
html { background: var(--bg) }
body {
	margin: 0;
	min-height: 100dvh;
	color: var(--ink);
	font: 15px/1.5 var(--mono);
	text-transform: uppercase;
	-webkit-font-smoothing: none;
	-webkit-tap-highlight-color: transparent;
	overflow-x: hidden;
}
button, input { font: inherit; color: inherit; text-transform: inherit }
button { cursor: pointer }
button:disabled { cursor: not-allowed }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px }
.q:focus, .rainbow:focus { outline: none }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0 }
.crt {
	position: fixed; inset: 0; pointer-events: none; z-index: 50;
	background:
		repeating-linear-gradient(to bottom, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, transparent 60%, rgb(0 0 0 / 0.45));
	animation: flicker 6s steps(1) infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1 } 47% { opacity: 0.9 } 48% { opacity: 1 } 82% { opacity: 0.94 } 83% { opacity: 1 } }

#app {
	position: relative; z-index: 1;
	max-width: 460px; margin: 0 auto; min-height: 100dvh;
	display: flex; flex-direction: column;
	padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
#app.shake { animation: shake 0.4s steps(8) }
@keyframes shake {
	0%, 100% { transform: none } 20% { transform: translate(-6px, 3px) } 40% { transform: translate(5px, -4px) }
	60% { transform: translate(-4px, -2px) } 80% { transform: translate(3px, 4px) }
}

/* HUD */
.hud {
	display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px;
	font: 10px/14px var(--pixel); color: var(--cyan);
}
.hud .score { color: var(--yellow); margin-left: auto; font-variant-numeric: tabular-nums }
.hud .p1 { color: var(--pink); max-width: 13em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.snd { all: unset; cursor: pointer; font: 10px/14px var(--pixel); color: var(--cyan); padding: 8px; margin: -8px -8px -8px 0; min-width: 44px; text-align: right }
.snd[aria-pressed=false] { color: #7b6bb0; text-decoration: line-through }
.hearts { display: flex; gap: 6px; padding: 0 16px; flex-wrap: wrap }
.hearts svg { display: block }
.hearts .on { animation: pop 0.45s steps(4) }

.screen { flex: 1; display: flex; flex-direction: column; padding: 8px 16px 0; position: relative }
.level-tag { font: 10px/16px var(--pixel); color: var(--pink); margin: 14px 0 6px }
.q { font: 16px/26px var(--pixel); color: var(--yellow); margin: 0 0 16px; text-shadow: 3px 3px 0 var(--pink-dark) }
.foot {
	position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	background: linear-gradient(transparent, var(--bg) 30%); margin-top: auto;
}

/* Buttons */
.btn {
	all: unset; box-sizing: border-box; cursor: pointer; flex: 1; text-align: center;
	min-height: 56px; padding: 14px 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
	font: 13px/18px var(--pixel); letter-spacing: 1px;
	background: var(--yellow); color: var(--bg);
	box-shadow: inset -5px -5px 0 var(--yellow-dark), 0 0 0 4px var(--ink), 6px 6px 0 4px var(--shadow);
	transition: transform 60ms steps(1);
}
.btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: inset 5px 5px 0 var(--yellow-dark), 0 0 0 4px var(--ink), 2px 2px 0 4px var(--shadow) }
.btn:disabled { background: var(--line); color: #8f80c8; box-shadow: inset -5px -5px 0 #3a2a78, 0 0 0 4px #6c5bb0 }
.btn.pink { background: var(--pink); color: var(--ink); box-shadow: inset -5px -5px 0 var(--pink-dark), 0 0 0 4px var(--ink), 6px 6px 0 4px var(--shadow) }
.btn.ghost { flex: none; background: transparent; color: var(--cyan); box-shadow: none; padding: 14px 6px; font-size: 11px }
.btn.ghost:active { transform: translate(2px, 2px); box-shadow: none }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 8px }
.btn.blink:not(:disabled) .arrow { animation: blink 0.8s steps(1) infinite }

.tile {
	all: unset; box-sizing: border-box; cursor: pointer; position: relative; text-align: center;
	background: var(--panel); box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px var(--shadow);
	font-weight: 700;
}
.tile[aria-pressed=true] { background: var(--pink); color: var(--bg); animation: pop 0.35s steps(3) }
.tile:active { transform: translate(2px, 2px) }
.tile:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px }

.panel { background: var(--panel); box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--shadow); padding: 14px; margin: 3px }

/* Title */
.title { align-items: stretch; text-align: center; padding-top: 0; justify-content: space-between }
/* Spare height goes evenly between the title's sections instead of piling up above the button. */
.title .foot { margin-top: 0; align-items: stretch }
.title > .welcome:last-child { margin-bottom: auto }
.sky-strip { position: relative; height: 92px; overflow: hidden; margin: 0 -16px }
.stork { position: absolute; top: 14px; left: -140px; animation: fly 7s linear infinite; display: grid }
.stork > * { grid-area: 1 / 1 }
.stork .f2 { visibility: hidden }
.stork .f1 { animation: flapA 0.36s steps(1) infinite }
.stork .f2 { animation: flapB 0.36s steps(1) infinite }
.stork .bundle { position: absolute; left: 62px; top: 38px; animation: dangle 0.72s steps(2) infinite }
.stork .rope { position: absolute; left: 70px; top: 30px; width: 3px; height: 10px; background: var(--ink) }
@keyframes flapA { 50% { visibility: hidden } }
@keyframes flapB { 50% { visibility: visible } }
@keyframes fly { from { transform: translate(0, 0) } 25% { transform: translate(calc(25vw + 70px), 8px) } 50% { transform: translate(calc(50vw + 140px), 0) } 75% { transform: translate(calc(75vw + 210px), 8px) } to { transform: translate(calc(100vw + 280px), 0) } }
@media (min-width: 460px) { @keyframes fly { from { transform: translate(0, 0) } 50% { transform: translate(370px, 8px) } to { transform: translate(740px, 0) } } }
@keyframes dangle { 50% { transform: translate(2px, 2px) } }

.logo { margin: 0; font: clamp(40px, 13vw, 54px)/1.25 var(--pixel); color: var(--yellow); letter-spacing: 2px; position: relative; display: grid; justify-items: center }
.logo .word { display: block; white-space: nowrap }
.logo .word + .word { font-size: 0.82em }
.logo .word span { display: inline-block; animation: drop 0.6s cubic-bezier(.3, 1.6, .6, 1) both, wobble 2.4s steps(2) infinite; animation-delay: calc(var(--i) * 70ms), calc(0.8s + var(--i) * 120ms) }
.logo .word span { text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--cyan) }
.logo.glitch { animation: glitch 0.25s steps(3) }
@keyframes drop { from { transform: translateY(-140px) } to { transform: none } }
@keyframes wobble { 50% { transform: translateY(-3px) } }
@keyframes glitch { 0% { transform: translate(3px, 0); filter: hue-rotate(90deg) } 33% { transform: translate(-4px, 1px); filter: hue-rotate(200deg) } 66% { transform: translate(2px, -1px) } }
.presents { font: 10px/16px var(--pixel); color: var(--cyan); margin: 0 0 10px; animation: fade-in 0.4s steps(4) 0.1s both }
.loadbar { margin: 16px 3px 0; text-align: left; animation: fade-in 0.3s steps(3) 0.8s both }
.lb-label { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font: 10px/16px var(--pixel); color: var(--pink) }
.lb-label #lbpct { color: var(--yellow); font-variant-numeric: tabular-nums }
.lb-track { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; padding: 5px; box-shadow: 0 0 0 3px var(--ink) }
.lb-track i { height: 14px; background: var(--panel) }
.lb-track i.on { background: var(--pink); box-shadow: inset 0 -3px 0 var(--pink-dark); animation: fill 0.06s steps(1) both; animation-delay: calc(1s + var(--i) * 60ms) }
.lb-track i.tip { animation: fill 0.06s steps(1) calc(1s + var(--i) * 60ms) both, blink 0.8s steps(1) calc(1.6s + var(--i) * 60ms) infinite }
.lb-sub { margin: 8px 0 0; font: 9px/14px var(--pixel); color: var(--cyan) }
@keyframes fade-in { from { opacity: 0 } }
.marquee { overflow: hidden; white-space: nowrap; margin: 22px -16px 0; border-block: 3px solid var(--line); padding: 8px 0; font: 10px/14px var(--pixel); color: var(--yellow) }
.marquee span { display: inline-block; padding-left: 100%; animation: scroll 12s linear infinite }
@keyframes scroll { to { transform: translateX(-100%) } }

.name-box { margin: 28px 3px 0; text-align: left }
.name-box label { display: block; font: 10px/14px var(--pixel); color: var(--cyan); margin-bottom: 12px }
.name-box input {
	width: 100%; height: 60px; border: 0; padding: 0 16px; background: var(--bg);
	font: 18px/1 var(--pixel); color: var(--yellow); caret-color: var(--pink);
	box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 3px var(--pink);
}
.name-box input::placeholder { color: #6c5bb0 }
.name-box input:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow), inset 0 0 0 3px var(--pink) }
.insert { font: 11px/16px var(--pixel); color: var(--pink); margin: 22px 0 0; animation: blink 1s steps(1) infinite }
@keyframes blink { 50% { opacity: 0 } }
.family { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 40px auto 0 }
.family svg { display: block }
.family .parent { width: 108px; height: auto; animation: sway 1.2s steps(2) infinite }
.family .parent.right { animation-delay: -0.6s }
.family .baby-slot { position: relative; margin-bottom: 2px }
.family .head { display: block; animation: hop 0.8s steps(2) infinite }
.family .qmark { position: absolute; top: -12px; right: -14px; font: 18px/1 var(--pixel); color: var(--yellow); text-shadow: 3px 3px 0 var(--pink-dark); animation: blink 0.8s steps(1) infinite }
.family .love { position: absolute; left: 50%; top: -6px; translate: -50% 0; animation: float-heart 2.4s steps(8) infinite }
.family .love svg { display: block }
@keyframes sway { 50% { transform: translateY(-3px) } }
@keyframes float-heart { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: 1 } 80% { opacity: 1 } 100% { transform: translateY(-28px); opacity: 0 } }
@keyframes hop { 50% { transform: translateY(-10px) } }
.welcome { margin-top: 26px; display: grid; gap: 18px }

/* Date */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; font: 10px/14px var(--pixel); color: var(--cyan) }
.weeknav button { all: unset; cursor: pointer; font: 14px/1 var(--pixel); color: var(--yellow); min-width: 44px; min-height: 44px; display: grid; place-items: center }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 3px }
.day { min-height: 60px; display: grid; place-content: center; gap: 2px; font: 13px/16px var(--pixel) }
.day small { font: 700 10px/12px var(--mono); color: var(--cyan) }
.day[aria-pressed=true] small { color: var(--bg) }
.day.due:not([aria-pressed=true]) { background: #3a2a10; box-shadow: 0 0 0 3px var(--yellow), 4px 4px 0 3px var(--shadow) }
.day.due::after { content: "DUE"; position: absolute; top: -9px; right: -8px; font: 7px/9px var(--pixel); background: var(--yellow); color: var(--bg); padding: 2px 3px }

/* Time */
.sky { position: relative; height: 128px; overflow: hidden; margin: 3px 3px 22px; box-shadow: 0 0 0 3px var(--ink); transition: background 0.4s steps(4) }
.sky .orb { position: absolute; transition: left 0.3s steps(6), top 0.3s steps(6) }
.sky .hosp { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) }
.sky .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #2f8f4e }
.sky .zzz { position: absolute; right: 20px; top: 24px; font: 10px/14px var(--pixel); color: var(--ink); animation: zzz 1.6s steps(4) infinite }
@keyframes zzz { from { transform: translate(0, 10px); opacity: 0 } 50% { opacity: 1 } to { transform: translate(10px, -14px); opacity: 0 } }
.clock { display: flex; align-items: center; justify-content: center; gap: 10px }
.spin { display: grid; gap: 8px; justify-items: center }
.spin button { all: unset; cursor: pointer; width: 64px; height: 44px; display: grid; place-items: center; background: var(--panel); box-shadow: 0 0 0 3px var(--ink); font: 12px/1 var(--pixel); color: var(--cyan); touch-action: manipulation; user-select: none }
.spin button:active { background: var(--pink); color: var(--bg) }
.spin .digits { font: 32px/40px var(--pixel); color: var(--yellow); min-width: 80px; text-align: center; text-shadow: 3px 3px 0 var(--pink-dark) }
.colon { font: 28px/40px var(--pixel); color: var(--ink); animation: blink 1s steps(1) infinite }
.ampm { display: grid; gap: 10px; margin-left: 6px }
.ampm .tile { width: 58px; height: 44px; font: 11px/1 var(--pixel) }
.slot { text-align: center; font: 10px/14px var(--pixel); color: var(--cyan); margin-top: 18px }

/* Weight and length */
.stage { display: grid; justify-items: center; gap: 6px; margin: 4px 0 18px }
.scale-wrap { position: relative; display: grid; justify-items: center }
.scale-wrap .baby { transition: transform 0.2s steps(3); transform-origin: bottom center; margin-bottom: -4px }
.scale-wrap .baby.bump { animation: bump 0.3s steps(3) }
@keyframes bump { 40% { translate: 0 -8px } }
.dial { display: block }
.big { font: 26px/36px var(--pixel); color: var(--cyan); text-shadow: 3px 3px 0 var(--pink); text-align: center; font-variant-numeric: tabular-nums }
.slider-row { display: flex; align-items: center; gap: 12px }
.nudge { all: unset; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; background: var(--panel); box-shadow: 0 0 0 3px var(--ink); font: 16px/1 var(--pixel); color: var(--yellow); flex: none; touch-action: manipulation; user-select: none }
.nudge:active { background: var(--pink); color: var(--bg) }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 48px; background: transparent; min-width: 0 }
input[type=range]::-webkit-slider-runnable-track { height: 12px; background: var(--panel); box-shadow: 0 0 0 3px var(--cyan) }
input[type=range]::-moz-range-track { height: 12px; background: var(--panel); box-shadow: 0 0 0 3px var(--cyan) }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -8px; background: var(--pink); box-shadow: inset -4px -4px 0 var(--pink-dark), 0 0 0 3px var(--ink); border-radius: 0 }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; background: var(--pink); box-shadow: inset -4px -4px 0 var(--pink-dark), 0 0 0 3px var(--ink); border-radius: 0 }
.ends { display: flex; justify-content: space-between; font: 9px/12px var(--pixel); color: var(--cyan); margin: 6px 60px 0 }
.ruler { position: relative; height: 120px; width: 100%; margin: 0 0 6px }
.ruler .tape { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--yellow); box-shadow: 0 0 0 3px var(--ink) }
.ruler .tape i { position: absolute; bottom: 0; width: 3px; background: var(--bg) }
.ruler .tape b { position: absolute; bottom: 14px; font: 8px/1 var(--pixel); color: var(--bg); transform: translateX(-50%) }
.ruler .babyline { position: absolute; bottom: 36px; left: 0; transition: width 0.2s steps(4); overflow: visible }
.ruler .babyline svg { width: 100%; height: 64px; display: block }
.ruler .flag { position: absolute; bottom: 30px; width: 3px; height: 84px; background: var(--pink); transition: left 0.2s steps(4) }

/* Extras */
.extras { display: grid; gap: 18px }
.head-stage { display: grid; justify-items: center; align-items: end; min-height: 117px; margin-bottom: 4px }
.head-stage .head { animation: bob 1s steps(2) infinite }
.head-stage .head.pop { animation: pop 0.35s steps(3) }
.head-stage .lookalike { display: block; width: 116px; height: auto }
@keyframes bob { 50% { transform: translateY(-4px) } }
@keyframes pop { 0% { transform: scale(1) } 40% { transform: scale(1.22) } 100% { transform: scale(1) } }
.opts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; padding: 3px }
.opt { min-height: 52px; padding: 8px 4px; font: 9px/14px var(--pixel); display: grid; place-items: center }
.label { font: 10px/14px var(--pixel); color: var(--cyan); margin: 0 0 12px }

/* Review */
.rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px }
.rows .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 0; border-top: 3px dotted var(--line) }
.rows .row:first-child { grid-column: 1 / -1; border-top: 0; padding-top: 0 }
.rows .k { display: block; font: 9px/14px var(--pixel); color: var(--cyan); margin-bottom: 4px }
.rows .v { font: 700 14px/20px var(--mono) }
.edit { all: unset; cursor: pointer; font: 9px/14px var(--pixel); color: var(--yellow); padding: 12px 0 12px 4px; min-width: 44px; text-align: right }
.error { color: var(--pink); font: 10px/16px var(--pixel); margin: 14px 3px 0; animation: blink 0.5s steps(1) 3 }

/* Level wipe */
.wipe { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center }
.wipe .bars { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(10, 1fr) }
.wipe .bars i { background: var(--shadow); transform-origin: left; animation: bar 0.9s steps(6) both; animation-delay: calc(var(--i) * 18ms) }
.wipe .bars i:nth-child(even) { transform-origin: right }
@keyframes bar { 0% { transform: scaleX(0) } 30%, 70% { transform: scaleX(1) } 100% { transform: scaleX(0) } }
.wipe .txt { position: relative; text-align: center; animation: wipe-txt 0.9s steps(1) both }
.wipe .lv { font: 26px/36px var(--pixel); color: var(--yellow); text-shadow: 4px 4px 0 var(--pink) }
.wipe .ready { font: 12px/18px var(--pixel); color: var(--cyan); margin-top: 12px; animation: blink 0.2s steps(1) infinite }
@keyframes wipe-txt { 0%, 22% { opacity: 0 } 25%, 72% { opacity: 1; transform: scale(1) } 74%, 100% { opacity: 0 } }

/* Effects layer */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 45 }
.plus { position: absolute; font: 14px/1 var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 var(--pink-dark); animation: float-up 0.9s steps(8) forwards; transform: translateX(-50%) }
@keyframes float-up { to { transform: translate(-50%, -70px); opacity: 0 } }
.spark { position: absolute; width: 6px; height: 6px; animation: spark 0.5s steps(5) forwards }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)); opacity: 0 } }
#fx canvas { position: absolute; inset: 0; width: 100%; height: 100% }

/* Saving */
.saving { position: fixed; inset: 0; z-index: 42; display: grid; place-content: center; gap: 18px; background: rgb(11 6 32 / 0.88); text-align: center }
.saving p { margin: 0; font: 14px/20px var(--pixel); color: var(--yellow) }
.saving .bar { display: grid; grid-template-columns: repeat(10, 16px); gap: 4px; padding: 6px; box-shadow: 0 0 0 3px var(--ink) }
.saving .bar i { height: 20px; background: var(--pink); animation: fill 0.08s steps(1) both; animation-delay: calc(var(--i) * 90ms) }
@keyframes fill { from { opacity: 0 } }

/* Done */
.done { text-align: center; align-items: center }
.rainbow { font: 22px/34px var(--pixel); margin: 26px 0 0 }
.rainbow span { display: inline-block; animation: rainbow 1.2s steps(6) infinite, wave 1.2s steps(4) infinite; animation-delay: calc(var(--i) * -0.1s) }
@keyframes rainbow { 0% { color: var(--yellow) } 33% { color: var(--pink) } 66% { color: var(--cyan) } 100% { color: var(--yellow) } }
@keyframes wave { 50% { transform: translateY(-6px) } }
.final-score { font: 12px/18px var(--pixel); color: var(--cyan); margin: 16px 0 0 }
.final-score b { display: block; font: 30px/42px var(--pixel); color: var(--yellow); text-shadow: 3px 3px 0 var(--pink) }
.done .panel { width: calc(100% - 6px); text-align: left; margin-top: 22px }
.done-foot { flex-direction: column; align-self: stretch; align-items: stretch; gap: 18px }
.done-foot .pair { display: flex; gap: 12px }
.done-foot .pair .ghost:only-child { flex: 1 }
.note { font: 10px/16px var(--pixel); color: var(--cyan); margin: 18px 0 0 }

/* Results */
.res { display: grid; gap: 16px; margin-top: 6px }
.res .panel { animation: slide-in 0.4s steps(5) both; animation-delay: calc(var(--i) * 0.35s) }
@keyframes slide-in { from { transform: translateX(-120%) } }
.res .cat { display: flex; justify-content: space-between; gap: 8px; font: 9px/14px var(--pixel); color: var(--cyan) }
.res .actual { font: 13px/20px var(--pixel); color: var(--yellow); margin: 8px 0 }
.res .win { font: 700 15px/22px var(--mono) }
.res .win.you { color: var(--pink); animation: blink 0.6s steps(1) 6 }
.res .none { color: #8f80c8 }
.you-won { font: 18px/28px var(--pixel); color: var(--pink); text-align: center; margin: 10px 0 6px; animation: rainbow 1s steps(6) infinite }

@media (max-width: 360px) {
	.days { gap: 9px }
	.day { font-size: 11px }
	.spin .digits { font-size: 26px; min-width: 66px }
}

/* Phones up to 760px tall: tighten the title and done screens so they fit without scrolling. */
@media (max-height: 760px) {
	.sky-strip { height: 64px }
	.stork { top: 8px; scale: 0.8; transform-origin: 0 0 }
	.logo { font-size: clamp(34px, 11vw, 44px) }
	.loadbar { margin-top: 18px }
	.lb-track i { height: 11px }
	.marquee { padding: 6px 0 }
	.name-box { margin-top: 24px }
	.name-box label { margin-bottom: 10px }
	.name-box input { height: 50px }
	.insert { margin-top: 14px }
	.family { margin-top: 18px }
	.family .parent { width: 92px }
	.family .head svg { width: 70px; height: auto }
	.welcome { margin-top: 20px }
	.rainbow { margin-top: 10px; font-size: 20px }
	.final-score { margin-top: 8px }
	.done .panel { margin-top: 14px }
	.note { margin-top: 12px }
}

@media (max-height: 640px) {
	.name-box { margin-top: 14px }
	.family { margin-top: 10px }
	.family .parent { width: 78px }
	.family .head svg { width: 60px }
	.final-score b { font-size: 26px; line-height: 36px }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important }
	.stork { display: none }
	.marquee span { padding-left: 16px; white-space: normal }
}
