.name-heart { text-decoration: none; }
.name-heart:focus-visible { outline: 2px dashed var(--rose); outline-offset: -6px; border-radius: 12px; }
.terminal-page { max-width: 480px; width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: max(28px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; line-height: 1.65; }
.terminal-home { color: var(--ink); text-align: center; text-decoration: none; font-family: var(--font-body, "DM Sans"), sans-serif; font-size: 24px; font-weight: 600; }
.terminal-root { padding-top: 48px; flex: none; }
.terminal-page { display: flex; flex-direction: column; }
.terminal-page { position: relative; }
.terminal-music { position: absolute; top: max(20px, env(safe-area-inset-top)); left: 16px; }
.terminal-path { color: #75664f; font-size: 12px; margin: 0 0 26px; }
.terminal-root h1 { text-align: left; font: inherit; color: var(--rose); margin-bottom: 18px; }
.terminal-root p { margin: 0 0 20px; }
.terminal-menu { display: grid; gap: 5px; margin-bottom: 30px; }
.terminal-root button, .terminal-root input { font: inherit; color: inherit; }
.terminal-command, .terminal-back, .terminal-submit { display: block; background: none; border: 0; padding: 8px 0; text-align: left; cursor: pointer; min-height: 44px; }
.terminal-command:hover, .terminal-back:hover { color: var(--rose); }
.terminal-back { color: #75664f !important; margin-bottom: 18px; font-size: 12px !important; }
.terminal-root button:focus-visible, .terminal-home:focus-visible, .terminal-root input:focus-visible { outline: 2px dashed var(--rose); outline-offset: 3px; border-radius: 3px; }
.terminal-root button:disabled { cursor: default; opacity: .65; }
.terminal-prompt { display: flex; align-items: center; gap: 10px; margin-top: 24px; border-bottom: 1px solid #b7a899; }
.terminal-prompt label { color: var(--rose); }
.terminal-prompt input { width: 100%; min-width: 0; background: transparent; border: 0; border-radius: 0; padding: 10px 0; font-size: 16px; }
.terminal-prompt input:focus { outline: none; }
.terminal-prompt:focus-within { border-bottom-color: var(--rose); }
.terminal-prompt button { flex: none; min-width: 44px; text-align: right; }
.terminal-status { color: #75664f; font-size: 12px; min-height: 20px; margin-top: 12px !important; }
.terminal-cat { color: var(--rose); font: inherit; line-height: 1.2; margin: 0 0 28px; }
.terminal-empty { min-height: 160px; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.memory-card { aspect-ratio: 1; padding: 4px; background: transparent; border: 1px solid #b7a899; border-radius: 8px; font-size: 20px !important; cursor: pointer; }
.memory-card img { width: 100%; height: 100%; object-fit: contain; }
.memory-card[data-matched="true"] { border-color: transparent; }
.memory-card:disabled { opacity: 1 !important; }
.maze-board { width: min(100%, 326px); display: grid; grid-template-columns: repeat(var(--maze-size, 9), 1fr); gap: 2px; margin: 0 auto 16px; touch-action: none; }
.maze-cell { aspect-ratio: 1; display: grid; place-items: center; font-size: 23px; line-height: 1; border-radius: 3px; }
.maze-wall { background: #cbbca2; }
.maze-player img { width: 100%; height: 100%; object-fit: contain; }
.maze-goal { color: var(--rose); }
.maze-controls { display: grid; grid-template-columns: repeat(3, 48px); justify-content: center; gap: 6px; }
.maze-controls button, .catch-controls button { border: 1px solid #b7a899; background: transparent; border-radius: 5px; height: 44px; cursor: pointer; }
.maze-controls button:first-child { grid-column: 2; }
.maze-controls button:nth-child(2) { grid-column: 1; }
.catch-board { display: grid; grid-template-columns: repeat(3, 1fr); height: 225px; border-bottom: 1px solid #b7a899; margin-bottom: 10px; }
.catch-lane { position: relative; border-left: 1px dotted #cbbca2; }
.catch-lane:last-child { border-right: 1px dotted #cbbca2; }
.catch-food { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); color: #985c66; font-size: 24px; animation: snack-fall var(--drop-time, 1.4s) linear forwards; }
.catch-cat { position: absolute; width: 65px; height: 65px; object-fit: contain; bottom: 0; left: 50%; transform: translateX(-50%); }
.catch-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.catch-controls button[aria-pressed="true"] { border-color: var(--rose); background: #ddc9b5; }
.breathing-cat { display: block; width: 125px; height: 125px; object-fit: contain; margin: 20px auto; }
@keyframes snack-fall { to { top: 162px; } }
@media (prefers-reduced-motion: reduce) { .catch-food { animation: none; top: 100px; } }
@media (max-height: 600px) { .terminal-root { padding-top: 24px; } }

/* Same little terminal, with room to play. */
.arcade-root { padding-top: 24px; }
.arcade-root .terminal-path { margin-bottom: 8px; font-size: 10px; }
.arcade-root .terminal-back { margin-bottom: 6px; }
.arcade-root h1 { margin-bottom: 12px; }
.arcade-root .game-instructions { margin-bottom: 12px; line-height: 1.5; }
.arcade-root .maze-board { width: min(100%, clamp(215px, 32dvh, 278px)); }
.arcade-root .game-options { margin-bottom: 12px; }
.terminal-root [hidden] { display: none !important; }
.arcade-menu { display: grid; gap: 0; margin-bottom: 24px; }
.arcade-link { background: none; border: 0; border-bottom: 1px dotted #b7a899; padding: 14px 0; text-align: left; min-height: 64px; cursor: pointer; }
.arcade-link span { display: block; font-size: 11px; color: #75664f; padding-left: 2ch; }
.arcade-link:hover { color: var(--rose); }
.game-instructions { font-size: 12px; color: #75664f; max-width: 38ch; }
.game-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.game-option { min-height: 44px; padding: 6px 12px; border: 1px solid #b7a899; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px !important; }
.game-option[aria-pressed="true"] { border-color: var(--rose); color: var(--rose); background: #985c6610; }
.game-score { color: #75664f; font-size: 11px; font-variant-numeric: tabular-nums; }
.memory-small { grid-template-columns: repeat(3, 1fr); }
.memory-card { min-width: 0; min-height: 44px; transition: background .18s; }
.memory-card[data-matched="true"] { background: #985c6612; }
.maze-cell { position: relative; min-width: 0; font-size: clamp(14px, 5vw, 23px); }
.maze-visited:not(.maze-player)::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #a9997f; position: absolute; }
.maze-hint::after { content: ""; width: 8px !important; height: 8px !important; border-radius: 50%; background: var(--rose) !important; }
.maze-controls { grid-template-columns: repeat(3, 56px); gap: 8px; margin-bottom: 8px; }
.maze-controls button { height: 48px; font-size: 20px; touch-action: manipulation; display: grid; place-items: center; padding: 0; }
.catch-controls button { touch-action: manipulation; text-align: center; }
.catch-lane { cursor: pointer; touch-action: manipulation; }
.kiss-scene { position: relative; margin: 0 auto 20px; text-align: center; width: min(100%, 270px); }
.kiss-picture { width: 100%; aspect-ratio: 1; object-fit: contain; animation: kiss-arrival .85s ease-out both; }
.kiss-scene figcaption { color: var(--rose); font-size: 13px; }
.kiss-hearts { position: absolute; left: 0; right: 0; top: 12%; color: var(--rose); pointer-events: none; animation: kiss-hearts 1.6s ease-out both; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-width: 310px; margin: 0 auto 20px; }
.three-cell { aspect-ratio: 1; min-width: 0; min-height: 44px; background: none; border: 1px solid #b7a899; border-radius: 7px; padding: 4px; cursor: pointer; }
.three-cell img { display: block; width: 100%; height: 100%; object-fit: contain; }
.three-cell:disabled { opacity: 1 !important; }
.three-winner { border-color: var(--rose); background: #985c6620; }
.sequence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 310px; margin: 0 auto 20px; }
.sequence-pad { border: 1px solid #b7a899; border-radius: 10px; background: transparent; padding: 8px; cursor: pointer; min-height: 44px; }
.sequence-pad img { display: block; width: 100%; height: clamp(60px, 20vw, 95px); object-fit: contain; }
.sequence-pad span { display: block; font-size: 11px; }
.sequence-pad:disabled { opacity: 1 !important; }
.sequence-lit { background: #d6b6a8; outline: 3px solid var(--rose); outline-offset: -3px; }
.word-clue { font-size: 13px; color: #75664f; }
.word-answer { min-height: 58px; padding: 12px 4px; border-bottom: 1px solid #b7a899; color: var(--rose); font-size: clamp(17px, 5vw, 24px); text-align: center; letter-spacing: .06em; overflow-wrap: anywhere; }
.letter-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0; }
.letter-tile { width: 44px; height: 48px; background: transparent; border: 1px solid #b7a899; border-radius: 5px; font-size: 20px !important; cursor: pointer; }
.letter-tile:disabled { opacity: .3 !important; }
@keyframes kiss-arrival { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
@keyframes kiss-hearts { from { opacity: 0; transform: translateY(18px); } 25% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
@media (prefers-reduced-motion: reduce) { .kiss-picture, .kiss-hearts { animation: none; } .kiss-hearts { display: none; } .memory-card { transition: none; } }
