.hanoi-page{color:var(--ink)}.hanoi-hero{background:#99c5ff;padding:48px 24px}.hanoi-hero-inner,.hanoi-section-inner{max-width:1100px;margin-inline:auto}.hanoi-hero-inner{grid-template-columns:1.1fr 1fr;align-items:center;gap:48px;display:grid}.hanoi-hero nav{margin-bottom:28px;font-weight:600}.hanoi-hero nav a{color:inherit}.hanoi-eyebrow,.hanoi-example-label{letter-spacing:.06em;text-transform:uppercase;font-size:13px;font-weight:700}.hanoi-hero h1{font-family:var(--font-system);margin:12px 0 24px;font-size:clamp(40px,5vw,64px);line-height:1.08}.hanoi-lede{font-size:18px;line-height:1.6}.hanoi-primary{background:var(--ink);color:#fff;border-radius:4px;align-items:center;gap:24px;margin-top:24px;padding:14px 24px;font-weight:600;text-decoration:none;display:inline-flex}.hanoi-hero-diagram{border:1px solid var(--ink);background:#fff;border-radius:8px;padding:24px}.hanoi-hero-diagram p{margin:8px 0 0;line-height:1.5}.hanoi-section{padding:64px 24px}.hanoi-section.is-mist{background:#f4f4f8}.hanoi-section h2{font-family:var(--font-system);margin:0 0 16px;font-size:clamp(28px,4vw,40px);line-height:1.2}.hanoi-section h3{font-family:var(--font-system);margin:24px 0 12px;font-size:22px;line-height:1.3}.hanoi-section p,.hanoi-section li{line-height:1.65}.hanoi-section-lede{color:#4d4c5c;max-width:760px;margin:0 0 28px}.hanoi-rules{margin-bottom:0;padding-inline-start:24px}.hanoi-rules li{margin:8px 0;padding-inline-start:8px}.hanoi-panel{border:1px solid var(--line);background:#fff;border-radius:8px;padding:24px}.hanoi-game{max-width:760px}.hanoi-toolbar,.hanoi-controls{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.hanoi-toolbar{justify-content:space-between}.hanoi-toolbar label{font-weight:600}.hanoi-page button,.hanoi-page select{font:inherit;color:var(--ink);cursor:pointer;background:#fff;border:1px solid #4d4c5c;border-radius:4px;min-height:44px;padding:8px 14px}.hanoi-page select{margin-inline-start:8px}.hanoi-page button:hover:not(:disabled){background:#f4f4f8}.hanoi-page button:disabled{opacity:.5;cursor:default}.hanoi-page button[aria-pressed=true]{border-color:var(--ink);background:#99c5ff}.hanoi-page :is(button,select,a,summary):focus-visible{outline-offset:3px;outline:3px solid #99c5ff}.hanoi-board{width:100%}.hanoi-board svg{width:100%;height:auto;display:block;overflow:visible}.hanoi-peg{fill:none;stroke:var(--muted);stroke-width:5px;stroke-linecap:round}.hanoi-disk rect{stroke:var(--ink);stroke-width:2px}.hanoi-disk.is-moving{animation:.7s ease-in-out hanoi-move}@keyframes hanoi-move{0%{transform:translate(var(--hanoi-from-x), var(--hanoi-from-y))}30%{transform:translate(var(--hanoi-from-x), 25px)}70%{transform:translate(var(--hanoi-to-x), 25px)}to{transform:translate(var(--hanoi-to-x), var(--hanoi-to-y))}}@media (prefers-reduced-motion:reduce){.hanoi-disk.is-moving{animation:none}}.hanoi-disk .is-blue{fill:#99c5ff}.hanoi-disk .is-yellow{fill:#ffdf3d}.hanoi-disk text,.hanoi-rod-label{fill:var(--ink);font:600 20px var(--font-system)}.hanoi-rod-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.hanoi-rod-controls button{overflow-wrap:anywhere;padding-inline:4px}.hanoi-status{min-height:52px;margin:16px 0}.hanoi-hint,.hanoi-ask{background:#f4f4f8;border-inline-start:4px solid #99c5ff;margin-top:16px;padding:16px}.hanoi-hint p,.hanoi-ask p{margin:0 0 12px}.hanoi-ask>button{margin-top:12px}.hanoi-note{color:#4d4c5c;max-width:760px;font-size:14px}.hanoi-strategy{counter-reset:goals;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:0;list-style:none;display:grid}.hanoi-strategy li{border:1px solid var(--line);counter-increment:goals;border-radius:8px;padding:20px}.hanoi-strategy h3:before{content:counter(goals) ". "}.hanoi-strategy h3{margin-top:0}.hanoi-lessons{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;display:grid}.hanoi-lessons article{min-width:0}.hanoi-lessons article>h3{margin-top:0}.hanoi-example-label{color:#4d4c5c;margin-top:0}.hanoi-goal{font-weight:600}.hanoi-caption{min-height:52px}.hanoi-step{color:#4d4c5c;margin-bottom:0;font-size:13px}.hanoi-formula{background:#f4f4f8;border-radius:8px;margin:24px 0;padding:24px}.hanoi-formula h3{margin-top:0}.hanoi-formula code{overflow-wrap:anywhere;font-size:clamp(15px,2vw,20px);display:block}.hanoi-solution{border-block-end:1px solid var(--line);padding:16px 0}.hanoi-solution summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:600}.hanoi-solution li{margin-bottom:8px}@media (max-width:760px){.hanoi-hero-inner,.hanoi-lessons,.hanoi-strategy{grid-template-columns:1fr}.hanoi-hero-inner{gap:32px}.hanoi-hero,.hanoi-section{padding:40px 20px}.hanoi-panel,.hanoi-hero-diagram{padding:16px}.hanoi-rod-controls{gap:8px}.hanoi-strategy{gap:16px}}
