
:root { color-scheme: dark; --bg: #111113; --panel: #19191e; --text: #efedf2; --muted: #9b97a3; --faint: #6e6a78; --accent: #c0a9f1; --width: 420px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body { display: flow-root; margin: 0; min-height: 100svh; color: var(--text); background: var(--bg); font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background-image: radial-gradient(#ffffff0c .7px, transparent .7px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at center, transparent 25%, #000 100%); opacity: .6; }
button { color: inherit; font: inherit; cursor: pointer; border: 0; touch-action: manipulation; }
button, a, canvas { outline: none; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .3; }
button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; flex: 0 0 auto; }
button:active:not(:disabled) { transform: scale(.94); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.game { width: var(--width); max-width: calc(100vw - 32px); margin: 30px auto 16px; position: relative; }
.header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 26px; gap: 10px; }
.wordmark { display: flex; align-items: baseline; gap: 11px; white-space: nowrap; }
.kiro-brand { font-size: 23px; font-weight: 720; letter-spacing: -1.2px; }
.slash { display: inline-block; color: #655f70; font-size: 23px; font-weight: 300; margin-left: 12px; }
h1 { font-size: 29px; font-weight: 680; letter-spacing: -1.3px; line-height: 1; margin: 0; }
.tools { display: flex; gap: 1px; align-items: center; margin-right: -9px; }
.icon-button { width: 38px; height: 38px; background: transparent; border-radius: 12px; color: #a7a2ae; display: grid; place-items: center; transition: background .18s, color .18s, transform .18s; }
.icon-button:hover:not(:disabled) { background: #ffffff0b; color: #f1edf8; }
.hud { display: flex; align-items: center; padding: 0 4px 17px; gap: 38px; }
.score-box, .shipped-box { display: flex; flex-direction: column; line-height: 1.3; }
.eyebrow { color: #a6a0b0; font-size: 11px; font-weight: 500; letter-spacing: .2px; }
.score { font-size: 29px; font-weight: 580; letter-spacing: -.9px; font-variant-numeric: tabular-nums; min-width: 74px; line-height: 1.3; }
.shipped { font-size: 29px; font-weight: 550; letter-spacing: -.9px; font-variant-numeric: tabular-nums; color: #c3aee9; }
.next-box { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.next-box>div { display: flex; flex-direction: column; text-align: right; line-height: 1.5; }
.next-name { font-size: 12px; color: #dbd6e5; min-width: 42px; }
#next { width: 45px; height: 45px; }
.stage { aspect-ratio: 420 / 640; position: relative; isolation: isolate; border-radius: 25px; background: var(--panel); border: 1px solid #ffffff0b; box-shadow: 0 14px 55px #00000020; }
#board { width: 100%; height: 100%; display: block; border-radius: 25px; touch-action: none; user-select: none; -webkit-user-select: none; }
.screen { position: absolute; text-align: center; left: 20px; right: 20px; z-index: 3; }
.screen-start { top: 39.5%; transition: opacity .24s, transform .45s cubic-bezier(.16,1,.3,1); }
.screen-start.exiting { opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none; }
h2 { font-size: 31px; line-height: 1.14; letter-spacing: -1.2px; font-weight: 620; margin: 0 0 13px; }
.screen p { color: #aca5b8; font-size: 14px; line-height: 1.65; margin: 0 0 22px; }
.primary { min-height: 49px; padding: 0 24px; background: #bda4ed; color: #211931; border: 1px solid #d5c3f667; border-radius: 14px; font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 32px; box-shadow: inset 0 1px #f7eff838, 0 5px 15px #00000014; transition: transform .22s cubic-bezier(.2,.7,.2,1), background .2s, box-shadow .2s; }
.primary:hover { background: #ccb6f6; box-shadow: inset 0 1px #f7eff838, 0 7px 23px #00000020; transform: translateY(-1px); }
.primary:active { transform: translateY(1px) scale(.97); }
.start-hint { display: block; font-size: 11px; color: #868090; margin-top: 17px; }
.first-hint { position: absolute; top: 43%; left: 0; right: 0; text-align: center; color: #857c95; font-size: 12px; pointer-events: none; opacity: 1; transition: opacity .5s; }
.first-hint.disappear { opacity: 0; }
.shade { position: absolute; inset: 0; border-radius: 24px; z-index: 5; background: #111014c9; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade-in .18s both; }
.modal { z-index: 6; position: absolute; left: 23px; right: 23px; top: 50%; transform: translateY(-50%); text-align: center; border: 1px solid #ffffff0b; background: #232127; border-radius: 24px; padding: 31px 23px 25px; box-shadow: 0 24px 60px #0004; animation: modal-in .32s cubic-bezier(.16,1,.3,1) both; }
.modal-close { position: absolute; top: 8px; right: 8px; color: #8d849a; }
.modal-mark { height: 69px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.modal-mark svg { width: 53px; height: 66px; }
.modal h2 { font-size: 28px; }
.modal p { font-size: 13px; line-height: 1.6; margin: 0 0 20px; color: #aaa3b5; }
.modal .primary { width: 100%; gap: 15px; margin-top: 2px; }
.text-button { background: transparent; font-size: 11px; padding: 0; color: #a198ae; transition: color .15s; }
.text-button:hover { color: #e3dcec; }
#modal-secondary { display: block; margin: 18px auto 0; font-size: 12px; padding: 4px 14px; }
.result-stats { display: flex; justify-content: center; gap: 40px; margin: 25px 0; }
.result-stats>div { display: flex; flex-direction: column; }
.result-stats strong { color: #e3d9ef; font-size: 32px; font-weight: 570; letter-spacing: -1px; }
.result-stats span { font-size: 11px; color: #9990a6; }
.new-best { color: #c7b0ed !important; }
.help-lines { text-align: left; padding: 3px 1px 12px; }
.help-lines p { margin-bottom: 15px; padding-left: 0; }
.help-lines b { display: block; color: #e0d8e9; font-weight: 550; margin-bottom: 2px; }
.help-lines kbd { font-size: 10px; border: 1px solid #ffffff1c; padding: 1px 5px; border-radius: 4px; background: #ffffff05; }
.credits-copy { text-align: left; font-size: 12px; }
.credits-copy p { font-size: 12px; }
.credits-copy a { color: #ceb8f2; text-decoration-color: #ceb8f240; }
.progression { padding-top: 18px; }
.chain { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; gap: 0; }
.tier-button { padding: 0; width: 34px; height: 35px; border-radius: 50%; background: transparent; position: relative; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.tier-button:hover, .tier-button:focus-visible { transform: translateY(-3px) scale(1.13); }
.tier-button canvas { width: 100%; height: 100%; display: block; }
.chain-arrow { color: #59525f; font-size: 12px; flex: 0 0 7px; text-align: center; }
.chain-caption { min-height: 34px; color: #8c8498; text-align: center; font-size: 11px; display: grid; place-items: center; padding-top: 5px; letter-spacing: .06px; }
.chain-caption b { color: #c8b9dc; font-weight: 550; }
footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px 0; margin-top: 4px; border-top: 1px solid #ffffff08; color: #79717f; font-size: 10px; }
footer strong { color: #a9a0b4; font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 5px; }
.fan-note { color: #78727f; font-size: 10px; }
footer .text-button { font-size: 10px; color: #8b8195; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; padding: 0; border: 0; }
[hidden] { display: none !important; }
.noscript { position: fixed; inset: 20px; padding: 40px; background: #25212c; z-index: 30; }
@keyframes modal-in { from { opacity: 0; transform: translateY(calc(-50% + 12px)) scale(.94); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 850px) { .game { margin-top: 18px; } .header { margin-bottom: 18px; } .hud { padding-bottom: 13px; } .progression { padding-top: 13px; } footer { padding-top: 9px; margin-top: 0; } }
@media (max-width: 450px) { .game { margin-top: max(16px, env(safe-area-inset-top)); margin-bottom: max(14px, env(safe-area-inset-bottom)); } .header { margin-bottom: 19px; } h1 { font-size: 28px; } .kiro-brand { font-size: 22px; } .hud { gap: 26px; padding-bottom: 13px; } .score,.shipped { font-size: 27px; } .screen-start h2 { font-size: clamp(25px,7.6vw,31px); } .screen-start p { font-size: 13px; margin-bottom: 18px; } .start-hint { margin-top: 14px; } .screen-start { top: 38%; } .modal { left: 17px; right: 17px; padding: 29px 20px 23px; } .chain { padding: 0 1px; } .tier-button { width: 31px; height: 33px; } }
@media (max-height: 730px) { .game { margin-top: 12px; } .header { margin-bottom: 12px; } .wordmark h1 { font-size: 26px; } .hud { padding-bottom: 10px; } .progression { padding-top: 10px; } .chain-caption { min-height: 27px; } .screen-start p { font-size: 12px; line-height: 1.5; margin-bottom: 14px; } .start-hint { margin-top: 10px; } .primary { min-height: 43px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.modal { max-height: calc(100% - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #62556e transparent; }

