@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/dm-serif-display-italic.woff2') format('woff2'); }

:root { --paper: #f7f5ed; --ink: #233e35; --green: #183f35; --lime: #d5ee8b; --orange: #c66a46; --muted: #64705c; --line: #dfdfd3; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(#b5ac8b18 .7px, transparent .7px) 0 0 / 6px 6px, var(--paper); color: var(--ink); font: 400 15px/1.5 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
::selection { background: var(--lime); color: var(--green); }
p, h1, h2, h3 { margin: 0; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; pointer-events: none; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 10; background: var(--lime); padding: 15px; }
.skip-link:focus { top: 10px; }
.site-header { height: 100px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; white-space: nowrap; font-size: 43px; letter-spacing: -.07em; font-weight: 800; line-height: 1; }
.brand-mark { width: 1.226667em; height: 1.226667em; margin: -.146667em .12em 0 0; flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 34px; margin-left: 92px; height: 100%; font-size: 14px; font-weight: 550; }
.site-header nav > * { display: flex; align-items: center; gap: 8px; position: relative; height: 100%; padding: 0; }
.site-header nav a[aria-current] { color: var(--green); }
.nav-dot { display: none; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); position: absolute; bottom: 20px; left: calc(50% - 2px); }
[aria-current] .nav-dot { display: block; }
.question-icon { width: 17px; height: 17px; color: var(--muted); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.sound-on, [aria-pressed='true'] .sound-off, .motion-play, [aria-pressed='true'] .motion-pause { display: none; }
[aria-pressed='true'] .sound-on { display: block; }
[aria-pressed='true'] .motion-play { display: inline-block; }
.language { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 1px; }
.language a { display: grid; min-height: 44px; align-items: center; color: var(--muted); }
.language a[aria-current] { color: var(--ink); font-weight: 800; }
.language > span { color: #c1c3b7; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; line-height: 1.4; }
h1 { font-size: clamp(46px, 4.5vw, 65px); line-height: 1.03; letter-spacing: -3.3px; font-weight: 550; position: relative; }
.intro-copy { font-size: 13px; line-height: 1.8; margin: 15px 0 0; }
.game { border: 1px solid #d3d6c8; border-radius: 26px 18px 24px 16px; overflow: hidden; box-shadow: 0 6px 0 #dedecd, 0 10px 24px #233e3508; scroll-margin-top: 16px; }
.game-header { --muted: #56644d; display: flex; align-items: center; min-height: 72px; padding: 0 29px; background: #edeedb; gap: 25px; }
.puzzle-date { display: flex; align-items: center; gap: 14px; }
.daily-icon { display: grid; place-items: center; width: 36px; height: 40px; color: #63735b; border: 1px solid #d9ddcc; border-radius: 7px; }
.daily-icon .icon { width: 24px; height: 24px; }
.puzzle-date .eyebrow { font-size: 9px; color: var(--muted); display: block; margin-bottom: 2px; }
.puzzle-date time { font-size: 15px; font-weight: 600; }
.difficulty { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 7px 11px; border: 1px solid #e2e2d3; border-radius: 20px; }
.difficulty-bars { display: flex; align-items: end; gap: 3px; height: 12px; }
.difficulty-bars i { width: 3px; height: 5px; background: #7b8a56; border-radius: 1px; }
.difficulty-bars i:nth-child(2) { height: 8px; background: #d7dbc9; }
.difficulty-bars i:nth-child(3) { height: 12px; background: #d7dbc9; }
.difficulty-bars i.filled { background: #7b8a56; }
.relaxed { margin-left: auto; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 9px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; grid-template-rows: auto 1fr; }
.playfield { grid-column: 1; grid-row: 1 / 3; background: var(--green); color: #f9fae8; position: relative; min-height: 450px; overflow: hidden; }
.target-area { position: relative; isolation: isolate; text-align: center; padding: 27px 20px 20px; overflow: hidden; }
.target-area > .eyebrow { color: #bdcbb0; font-size: 9px; letter-spacing: 2.3px; }
.target-number { font-size: 112px; font-weight: 550; line-height: 1.13; letter-spacing: -7px; font-variant-numeric: tabular-nums; position: relative; display: inline-block; }
.orbit { position: absolute; pointer-events: none; z-index: -1; width: 325px; height: 153px; border: 1px dashed #8caa794d; border-radius: 46% 54% 43% 57%; top: 27px; left: calc(50% - 162px); transform: rotate(-14deg); }
.orbit-two { width: 394px; height: 195px; left: calc(50% - 197px); top: 4px; transform: rotate(-14deg); }
.field-garden { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.pieces-area { padding: 0 37px 16px; }
.pieces-caption { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #becbb8; }
.pieces-caption .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
#piece-count { font-size: 10px; letter-spacing: 1.5px; color: #a9bfa8; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; min-height: 83px; align-items: start; }
.tile { position: relative; height: 77px; border-radius: 13px 9px 12px 9px; background: #f4f1df; color: #243e35; font-size: clamp(24px, 3vw, 36px); font-weight: 650; letter-spacing: -1px; padding: 5px 3px 10px; box-shadow: 0 5px 0 #b6bba0, 0 9px 12px #071f3220; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.tile:nth-child(3n + 1) { rotate: -1.5deg; }
.tile:nth-child(3n) { rotate: 1.5deg; }
.tile small { position: absolute; bottom: 5px; left: 0; right: 0; font-size: 8px; letter-spacing: 0; font-weight: 500; color: #5c684f; }
.tile.derived { background: #f1cc69; box-shadow: 0 5px 0 #bd974e, 0 9px 12px #071f3220; }
.tile[aria-pressed='true'] { background: var(--lime); box-shadow: 0 2px 0 #8faa5b; transform: translateY(3px); }
.tile.just-made { animation: tile-arrive 340ms cubic-bezier(.2,.9,.2,1.3); }
.tile.large-number { font-size: 22px; }
.operators { display: flex; justify-content: center; gap: 9px; margin: 19px 0 18px; }
.operators button { display: grid; place-items: center; width: 56px; height: 43px; background: #ffffff08; border: 1px solid #78917a66; border-radius: 8px; font-size: 25px; font-weight: 400; line-height: 1; transition: background 140ms, transform 140ms; }
.operators button[aria-pressed='true'] { background: var(--lime); color: var(--green); border-color: var(--lime); transform: translateY(-2px); }
.operators button:disabled { opacity: .65; }
.equation-tray { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 7px; border: 1px solid #83967c45; border-radius: 9px; background: #0b2a2529; }
.equation { display: flex; flex: 1; justify-content: center; align-items: center; gap: 12px; font-size: 18px; font-weight: 550; min-width: 0; }
.equation .blank { color: #b5c5ac; font-size: 11px; font-weight: 400; border-bottom: 1px dashed #718c72; padding: 4px 3px; }
.equation .symbol { color: #96b393; font-size: 17px; font-weight: 400; }
.equation .preview { color: var(--lime); }
.clear-button { display: grid; place-items: center; color: #b5c5ac; min-width: 33px; min-height: 40px; padding: 0; }
.clear-button:disabled { visibility: hidden; }
.game-status { font-size: 10px; color: #bdcbb0; min-height: 18px; text-align: center; margin-top: 10px; }
.game-status.is-error { color: #ffc8a6; }
.notebook { grid-column: 2; grid-row: 2; background: #f0f0e5; padding: 18px 24px 21px; display: flex; flex-direction: column; position: relative; border-left: 1px solid #d6dbcb; }
.notebook-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.notebook-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.steps { margin: 20px 0 0; list-style: none; padding: 0; counter-reset: step; }
.steps li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; font-size: 17px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.steps li::before { counter-increment: step; content: '0' counter(step); font-size: 9px; color: var(--muted); letter-spacing: .5px; margin-right: 3px; }
.steps .step-expression { flex: 1; white-space: nowrap; }
.steps .step-expression span { color: var(--muted); font-size: 13px; padding-inline: 4px; }
.steps strong { font-size: 18px; font-weight: 650; }
.steps li:last-child strong { background: #dce6c7; border-radius: 4px; padding: 2px 5px; }
.steps li.winning-step strong { background: var(--lime); }
.steps li.just-made { animation: step-arrive 240ms ease-out; }
.closest { padding-top: 18px; font-size: 11px; color: var(--muted); }
.closest strong { color: var(--green); font-weight: 650; }
.notebook-bottom { margin-top: auto; padding-top: 20px; }
.history-actions { display: flex; justify-content: space-between; gap: 7px; padding-bottom: 12px; }
.history-actions button { padding: 7px 0; min-height: 40px; font-size: 11px; display: flex; gap: 6px; align-items: center; }
.history-actions button:disabled { color: #989e8c; }
.hint-button { display: flex; align-items: center; width: 100%; border-top: 1px solid #d9dece; padding: 17px 0 0; font-size: 11px; gap: 7px; color: var(--muted); min-height: 44px; }
.hint-button > .icon:first-child { color: #7c8c61; }
.hint-button > .icon:last-child { margin-left: auto; width: 16px; height: 16px; }
.under-game { display: flex; justify-content: space-between; align-items: center; padding: 13px 3px 32px; font-size: 10px; color: var(--muted); gap: 20px; }
.under-game button { display: inline-flex; align-items: center; gap: 6px; padding: 0; min-height: 35px; font-size: 10px; }
.under-game .icon { width: 16px; height: 16px; }
.keyboard-short { color: var(--muted); font-size: 9px; margin-left: 15px; }
.saved-note { display: inline-flex; align-items: center; gap: 6px; }
#target-check { display: none; place-items: center; position: absolute; right: -42px; top: 37px; width: 31px; height: 31px; border-radius: 50%; background: var(--lime); color: var(--green); }
.won #target-check { display: grid; }
.won .target-number { color: var(--lime); }
.won .target-area { padding-top: 31px; }
.won .pieces-area { display: none; }
.won .playfield { background: #183f35; }
.won .orbit-one { border-color: #d5ee8b44; }
.won .orbit-two { border-color: #d5ee8b22; }
.celebration { text-align: center; padding: 8px 24px 15px; animation: step-arrive 500ms ease; }
.celebration h2 { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 34px; font-weight: 400; letter-spacing: -.5px; }
.celebration > p { color: #baccad; font-size: 12px; margin: 10px 0 23px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; background: var(--lime); color: var(--green); padding: 14px 22px; border-radius: 8px; font-size: 13px; font-weight: 650; min-height: 48px; }
.win-next { display: block; margin: 15px auto 0; color: #cfddc2; font-size: 12px; min-height: 35px; }
.win-next > .icon { margin-left: 10px; width: 18px; height: 18px; }
.celebration #share-status { font-size: 10px; margin: 8px 0 0; }
.share-text { display: block; width: 100%; max-width: 380px; margin: 12px auto; padding: 12px; height: 110px; background: var(--paper); color: var(--ink); border-radius: 8px; }
dialog { background: var(--paper); color: var(--ink); width: min(550px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #d7dbcc; border-radius: 19px; padding: 40px; box-shadow: 0 25px 100px #0e241a44; }
dialog[open] { animation: dialog-arrive 180ms ease-out; }
dialog::backdrop { background: #0d251dc4; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-close { display: grid; place-items: center; position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; color: #7e8775; }
dialog .eyebrow { color: var(--muted); margin: 0 0 14px; }
dialog h2 { font-size: 32px; line-height: 1.15; font-weight: 550; letter-spacing: -1px; margin: 0 0 21px; }
dialog > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.keyboard-help { display: flex; gap: 16px; margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.keyboard-help > .icon { width: 27px; height: 27px; }
.keyboard-help p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.text-button { display: block; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; padding: 15px 0; min-height: 44px; }
#archive-form { margin: 24px 0; }
#archive-form label { display: block; font-size: 11px; margin-bottom: 8px; }
.date-form { display: flex; gap: 10px; }
.date-form input { min-width: 0; width: 53%; background: #fffdf7; color: var(--green); border: 1px solid #cfd6bf; border-radius: 7px; padding: 10px; font-size: 13px; }
.date-form .primary-button { flex: 1; padding: 12px; gap: 10px; }
.archive-list a { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; gap: 10px; }
.archive-list a > span:last-child { font-size: 10px; color: var(--muted); }
.archive-list .icon { width: 16px; height: 16px; margin-left: 5px; }
.hint-step { padding: 16px; margin: 0 0 14px; background: #e9eddd; border-radius: 8px; font-size: 22px; font-weight: 500; text-align: center; }
.hint-error { margin-bottom: 18px; font-size: 13px; color: #a34d30; }
.standalone { max-width: 560px; padding: 36px; margin: 70px auto; }
.standalone .wordmark { margin-bottom: 45px; }
.standalone h1 { font-size: 40px; letter-spacing: -1.5px; margin-bottom: 24px; }
.standalone .primary-button { margin-top: 24px; }
.solution-pagination { display: flex; justify-content: space-between; margin-top: 25px; font-size: 13px; }
.solution-pagination a { display: inline-flex; align-items: center; gap: 6px; }
.little-world { position: relative; width: 320px; flex: 0 1 320px; aspect-ratio: 2; }
.garden-scene { display: block; width: 100%; height: 100%; overflow: visible; }
.world-kronkel { position: absolute; width: 33%; left: 39%; bottom: 16%; transform: rotate(6deg); }
.garden-plant { transform-origin: 395px 194px; animation: plant-sway 6s ease-in-out infinite alternate; }
.garden-butterfly { transform-box: fill-box; transform-origin: center; animation: butterfly-drift 5s ease-in-out infinite; }
.kronkel { display: block; width: 100%; height: auto; overflow: visible; }
.kronkel-character { transform-origin: 100px 193px; animation: kronkel-breathe 4s ease-in-out infinite; }
.kronkel-eyes { transform-origin: 100px 93px; animation: kronkel-blink 6s linear infinite; }
.kronkel-pupils { translate: var(--look-x, 0px) var(--look-y, 0px); transition: translate 180ms ease-out; }
.kronkel-happy-eyes, .kronkel-oh { display: none; }
.kronkel-arm { transition: transform 300ms ease; }
.arm-right { transform-origin: 152px 112px; }
.arm-left { transform-origin: 48px 116px; }
.companion { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; min-height: 116px; padding: 8px; background: #f0f0e5; border-left: 1px solid #d6dbcb; }
.companion-character { width: 100px; padding: 0; border-radius: 50%; }
.companion[data-mood='pick'] .kronkel-character, .companion[data-mood='error'] .kronkel-character { animation: none; transform: rotate(-9deg); }
.companion[data-mood='ready'] .kronkel-smile, .companion[data-mood='error'] .kronkel-smile { display: none; }
.companion[data-mood='ready'] .kronkel-oh, .companion[data-mood='error'] .kronkel-oh { display: block; }
.companion:is([data-mood='won'], [data-mood='hello'], [data-mood='step'], [data-mood='close']) .kronkel-eyes { display: none; }
.companion:is([data-mood='won'], [data-mood='hello'], [data-mood='step'], [data-mood='close']) .kronkel-happy-eyes { display: block; }
.companion:is([data-mood='won'], [data-mood='hello']) .arm-left { transform: rotate(100deg); }
.companion:is([data-mood='won'], [data-mood='hello']) .arm-right { animation: kronkel-wave 350ms ease-in-out 4 alternate; }
.companion:is([data-mood='won'], [data-mood='step'], [data-mood='close']) .kronkel-character { animation: kronkel-hop 550ms ease 2; }
.paper-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.paper-confetti i { position: absolute; left: calc(7% + var(--i) * 7.5%); top: 20%; width: 8px; height: 15px; background: #efc65e; rotate: calc(var(--i) * 37deg); border-radius: 2px; animation: paper-fall 1.7s calc(var(--i) * 45ms) both ease-out; }
.paper-confetti i:nth-child(3n) { background: #e7b6ba; width: 12px; height: 7px; }
.paper-confetti i:nth-child(3n + 1) { background: var(--lime); border-radius: 50%; }
.under-game .motion-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused .paper-confetti { display: none; }
@keyframes kronkel-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025, .975); } }
@keyframes kronkel-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@keyframes kronkel-hop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-13px) rotate(-5deg); } 65% { transform: translateY(0) scale(1.08, .94); } }
@keyframes kronkel-wave { from { transform: rotate(-15deg); } to { transform: rotate(22deg); } }
@keyframes plant-sway { from { transform: rotate(-2deg); } to { transform: rotate(3deg); } }
@keyframes butterfly-drift { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 8px -9px; rotate: 10deg; } }
@keyframes paper-fall { from { translate: 0 -60px; opacity: 0; } 15% { opacity: 1; } to { translate: 14px 320px; rotate: 200deg; opacity: 0; } }
@media (hover: hover) {
    .companion-character:hover .arm-right { transform: rotate(-20deg); }
    .companion-character:hover { filter: brightness(1.04); }
    .site-header nav > *:hover, .language a:hover { color: var(--orange); }
    .icon-button:hover, .dialog-close:hover { background: #e8ecdd; }
    .tile:hover { transform: translateY(-4px); background: #fffde9; box-shadow: 0 9px 0 #b6bba0, 0 13px 15px #071f3225; }
    .tile[aria-pressed='true']:hover { transform: translateY(1px); background: #def5a5; box-shadow: 0 4px 0 #8faa5b; }
    .operators button:not(:disabled):hover { background: #ffffff1c; transform: translateY(-2px); }
    .operators button[aria-pressed='true']:hover { background: #def5a5; }
    .combine-button:not(:disabled):hover, .primary-button:hover { background: #e2f7a9; }
    .history-actions button:not(:disabled):hover, .hint-button:hover, .under-game button:hover, .win-next:hover { color: var(--orange); }
    .archive-list a:hover { color: var(--orange); }
}
.tile:active { transform: translateY(4px); box-shadow: 0 1px 0 #aeb99a; }
@keyframes tile-arrive { from { opacity: .25; transform: translateY(15px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes step-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 1450px) { .intro { padding-block: 38px 34px; } }
@media (max-width: 1100px) {
    .wrap { width: calc(100% - 64px); }
    .game-layout { grid-template-columns: minmax(0, 1fr) 255px; }
    .notebook { padding-inline: 20px; }
    .pieces-area { padding-inline: 24px; }
    .tiles { gap: 8px; }
    .tile { font-size: 29px; }
    .equation { gap: 8px; }
    .keyboard-short { display: none; }
    .site-header nav { margin-left: 65px; }
}
@media (max-width: 850px) {
    .wrap { width: calc(100% - 40px); }
    .site-header { height: 83px; }
    .site-header nav { margin-left: 40px; gap: 23px; font-size: 12px; }
    .header-tools { gap: 14px; }
    .intro { padding-block: 32px; }
    h1 { font-size: 52px; }
    .intro-copy { font-size: 12px; max-width: 300px; }
    .little-world { flex-basis: 280px; }
    .game-layout { grid-template-columns: minmax(0, 1fr) 225px; }
    .game-header { padding-inline: 22px; }
    .relaxed { display: none; }
    .difficulty { margin-left: auto; }
    .pieces-area { padding-inline: 18px; }
    .tile { height: 66px; font-size: 25px; }
    .tiles { min-height: 72px; gap: 7px; }
    .notebook { padding-inline: 17px; }
    .notebook-heading h2 { font-size: 15px; }
    .equation-tray { flex-wrap: wrap; gap: 3px; }
    .equation { min-height: 38px; }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 32px); }
    .site-header { height: 75px; flex-wrap: wrap; position: relative; }
    .wordmark { font-size: 35px; }
    .site-header nav { gap: 17px; margin-left: auto; margin-right: 10px; font-size: 11px; }
    .site-header nav > a { display: none; }
    .question-icon { display: none; }
    .header-tools { gap: 5px; margin-left: 0; }
    .language { font-size: 9px; gap: 4px; letter-spacing: .2px; }
    .icon-button { width: 31px; }
    .icon-button .icon { width: 17px; height: 17px; }
    .intro { padding: 25px 3px 20px; display: block; position: relative; }
    .little-world { width: 145px; position: absolute; right: -4px; bottom: 12px; }
    h1 { font-size: clamp(37px, 11.5vw, 45px); letter-spacing: -2px; line-height: 1.04; }
    .intro-copy { margin: 14px 0 0; font-size: 11px; line-height: 1.6; max-width: calc(100% - 140px); min-height: 52px; }
    .game { border-radius: 13px; }
    .game-header { min-height: 69px; padding-inline: 15px; gap: 10px; }
    .puzzle-date { gap: 9px; }
    .daily-icon { width: 27px; height: 31px; }
    .daily-icon .icon { width: 20px; height: 20px; }
    .puzzle-date .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
    .puzzle-date time { font-size: 12px; }
    .difficulty { font-size: 9px; padding: 5px 8px; gap: 6px; }
    .game-layout { display: flex; flex-direction: column; }
    .companion { min-height: 88px; padding: 5px; border-left: 0; }
    .companion-character { width: 78px; }
    .playfield { min-height: 0; }
    .target-area { padding: 19px 15px 18px; }
    .target-number { font-size: 92px; letter-spacing: -5px; line-height: 1.1; }
    .target-area > .eyebrow { font-size: 8px; }
    .orbit-one { width: 245px; height: 119px; left: calc(50% - 122px); top: 22px; }
    .orbit-two { width: 300px; height: 153px; left: calc(50% - 150px); top: 6px; }
    .field-garden { opacity: .7; }
    .pieces-area { padding: 0 19px 13px; }
    .pieces-caption { margin-bottom: 10px; }
    .pieces-caption .eyebrow { font-size: 8px; }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; min-height: 140px; }
    .tile { height: 64px; font-size: 31px; }
    .tile.large-number { font-size: 24px; }
    .tile small { font-size: 7px; bottom: 3px; }
    .operators { margin: 21px 0 15px; gap: 12px; }
    .operators button { height: 44px; width: 53px; }
    .equation-tray { padding: 6px; }
    .equation { font-size: 18px; gap: 12px; }
    .game-status { font-size: 9px; margin-top: 9px; min-height: 16px; }
    .notebook { padding: 21px 20px 15px; min-height: 0; border-left: none; }
    .notebook-heading h2 { font-size: 17px; }
    .steps { margin-top: 9px; }
    .steps:empty { margin: 0; }
    .steps li { min-height: 44px; font-size: 19px; }
    .steps .step-expression { text-align: center; }
    .steps strong { min-width: 50px; text-align: center; }
    .closest { padding-top: 12px; }
    .notebook-bottom { padding-top: 6px; }
    .history-actions { padding-bottom: 3px; }
    .history-actions button { font-size: 12px; min-height: 44px; }
    .hint-button { padding-top: 10px; font-size: 11px; }
    .under-game { padding-top: 10px; flex-wrap: wrap; justify-content: center; gap: 0 12px; }
    .under-game button { display: none; }
    .saved-note { margin: auto; font-size: 9px; }
    .won .target-area { padding-top: 25px; }
    #target-check { top: 30px; right: -35px; width: 26px; height: 26px; }
    #target-check .icon { width: 18px; height: 18px; }
    .celebration { padding: 12px 20px 25px; }
    .celebration h2 { font-size: 29px; }
    .celebration > p { font-size: 11px; }
    dialog { padding: 32px 23px; max-height: calc(100dvh - 24px); }
    dialog h2 { font-size: 29px; }
    .date-form { flex-direction: column; }
    .date-form input { width: 100%; min-height: 46px; font-size: 16px; }
    .archive-list a { font-size: 11px; }
}
@media (max-width: 360px) {
    .site-header .wordmark { font-size: 32px; }
    .site-header nav { gap: 10px; margin-right: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .paper-confetti { display: none; }
}
