@font-face { font-family: Nunito; src: url(/fonts/Nunito-Regular.ttf); font-weight: 200 1000; font-display: swap; }
:root { --night: #33241f; --paper: #fff4e4; --ink: #3b2a24; --soft: #7d6457; --line: #e3cdb2; --coral: #c9603a; --card: #fffaf1; --bad: #a8321f; }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 500 17px/1.5 Nunito, system-ui, "Segoe UI", Tahoma, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 620px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
header { position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 14px 20px 10px; color: var(--soft); font-size: 14px; }
#bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
#fill { height: 100%; width: 0; background: var(--coral); transition: width .25s; }
main { flex: 1; padding: 12px 20px 24px; outline: none; overflow-wrap: anywhere; }
footer { position: sticky; bottom: 0; display: flex; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
h1 { font-size: 27px; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 23px; line-height: 1.3; margin: 4px 0 10px; }
h3 { font-size: 15px; color: var(--soft); margin: 22px 0 6px; }
p { margin: 0 0 12px; white-space: pre-line; }
button { font: inherit; font-weight: 700; border-radius: 26px; padding: 13px 24px; min-height: 50px; border: 2px solid var(--coral); cursor: pointer; background: none; color: var(--coral); }
a.button { display: block; text-align: center; text-decoration: none; font-weight: 700; border-radius: 26px; padding: 13px 24px; min-height: 50px; background: var(--coral); color: #fff; }
h2.next-part { margin-top: 34px; }
button.main { background: var(--coral); color: #fff; flex: 1; }
button.quiet { border-color: transparent; padding-inline: 14px; color: var(--soft); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #2f6f9f; outline-offset: 2px; }
label, .label { display: block; font-weight: 700; margin: 18px 0 4px; }
.help { color: var(--soft); font-size: 15px; margin: 0 0 8px; }
input[type=text], textarea { width: 100%; font: inherit; color: inherit; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; display: block; }
input:focus, textarea:focus { border-color: var(--coral); outline: none; }
.bubble { position: relative; background: var(--night); color: #fff4e4; border-radius: 18px; padding: 14px 18px; margin: 4px 0 24px; font-size: 19px; line-height: 1.4; }
.bubble::after { content: ""; position: absolute; inset-inline-start: 28px; bottom: -11px; border: 12px solid transparent; border-top-color: var(--night); border-bottom: 0; }
.bubble small { display: block; font-size: 14px; color: #e6cbb0; }
.scene { border-inline-start: 4px solid var(--coral); padding-inline-start: 14px; margin: 0 0 14px; }
.scene b { display: block; font-size: 14px; color: var(--soft); }
.when { color: var(--coral); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
details { margin: 0 0 14px; } summary { cursor: pointer; color: var(--soft); padding: 6px 0; } details p { font-style: italic; margin: 4px 0 0; }
.under { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--soft); margin-top: 6px; min-height: 22px; }
.bad { color: var(--bad); font-weight: 700; } .emoji { font-size: 15px; color: var(--soft); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice button[aria-pressed=true] { background: var(--coral); color: #fff; }
.languages { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; } .languages button { padding-inline: 4px; overflow-wrap: normal; }
.stage { position: sticky; top: 52px; z-index: 1; display: flex; justify-content: center; gap: 8px; background: linear-gradient(var(--paper) 92%, transparent); padding-bottom: 26px; }
canvas { display: block; image-rendering: pixelated; } canvas.big { width: 80px; height: 160px; } canvas.small { width: 48px; height: 96px; }
.tabs { display: flex; gap: 5px; margin: 6px 0 14px; }
.tabs button { flex: 1 1 auto; min-height: 44px; padding: 8px 3px; font-size: 14px; overflow-wrap: normal; } .tabs button[aria-pressed=true] { background: var(--coral); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.tile { display: grid; place-content: center; padding: 0; height: 108px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.tile[aria-pressed=true] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); background: #fbe0cf; }
canvas.face { width: 112px; height: 224px; transform: translateY(-14px); }
.couple canvas { display: inline-block; margin: -30px 4px 0; } .answer.couple { text-align: center; }
hr { border: 0; border-top: 2px solid var(--line); margin: 26px 0 6px; }
.stack { display: grid; gap: 12px; margin-top: 20px; }
.answer { display: block; width: 100%; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: inherit; font-weight: 500; white-space: pre-wrap; margin-bottom: 10px; padding: 12px 14px; }
.answer .text { display: block; }
.answer small { display: block; color: var(--soft); margin-bottom: 4px; }
.tick { display: flex; gap: 12px; font-weight: 500; margin-top: 22px; } .tick input { width: 24px; height: 24px; flex: none; accent-color: var(--coral); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
