/* HUD + menus. Chunky cartoon sticker UI: ink outlines, hard offset shadows, yolk yellow. */
.hud, .hud-modals, .title { --sh: 4px 4px 0 var(--ink); --edge: 3px solid var(--ink); font-family: var(--font-display); color: var(--ink); }
.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud.is-title > *:not(.hud-vig) { display: none !important; }
.hud kbd, .hud-modals kbd, .title kbd {
  display: inline-block; min-width: 1.5em; padding: 1px 6px 2px; text-align: center; font: 800 0.8em var(--font-display);
  background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 6px; color: var(--ink); line-height: 1.2;
}
.panel { background: var(--paper); border: var(--edge); border-radius: 14px; box-shadow: var(--sh); }

/* ---------------------------------------------------------------- vitals */
.hud-vitals { position: absolute; width: 214px; left: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.v-panel { padding: 8px 12px 6px; min-width: 214px; }
.v-hearts { display: flex; gap: 4px; margin-bottom: 6px; }
.heart { width: 34px; height: 32px; display: block; }
.heart-svg { width: 100%; height: 100%; overflow: visible; stroke: var(--ink); fill: #e63946; filter: drop-shadow(0 2px 0 rgba(18,22,42,.25)); }
.heart.empty .heart-svg { fill: #d9d2bf; }
.heart.half .heart-svg { fill: #f28c94; }
.heart.lose { animation: heart-lose .6s ease-out; }
.heart.gain { animation: heart-gain .5s ease-out; }
@keyframes heart-lose { 0% { transform: scale(1.5) rotate(-12deg); filter: brightness(2); } 40% { transform: scale(.7) rotate(8deg); } 100% { transform: scale(1); } }
@keyframes heart-gain { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.v-hearts.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.v-row { display: flex; align-items: center; gap: 10px; }
.hat-dial {
  --p: 100; width: 54px; height: 54px; border-radius: 50%; flex: none; padding: 5px; border: 3px solid var(--ink);
  background: conic-gradient(var(--yolk-deep) calc(var(--p) * 1%), #cfc8b4 0); box-shadow: 2px 2px 0 var(--ink);
}
.hat-dial.low { background: conic-gradient(var(--danger) calc(var(--p) * 1%), #cfc8b4 0); }
.hat-core { width: 100%; height: 100%; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; }
.prop-svg { width: 28px; height: 28px; }
.prop-blades { transform-origin: 20px 20px; }
.hat-dial.spin .prop-blades { animation: spin .22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hat-dial.empty { animation: flash .5s steps(2) infinite; }
@keyframes flash { 50% { background: var(--danger); } }
.v-money { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.v-cash { position: relative; font-size: 28px; font-weight: 900; letter-spacing: -.5px; color: #0f7a30; text-shadow: 1px 1px 0 #fff; }
.v-score { font-size: 15px; font-weight: 800; }
.v-score small { font-size: 10px; letter-spacing: 1px; opacity: .65; }
.hat-label { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.2px; font-weight: 900; margin-top: 4px; opacity: .8; }
.hat-state[data-s="fly"] { color: #1d7afc; }
.hat-state[data-s="empty"] { color: var(--danger); }
.cash-floats { position: absolute; left: 100%; top: -2px; margin-left: 10px; width: 120px; height: 0; }
.cash-float { position: absolute; left: 0; top: 0; font-size: 22px; font-weight: 900; white-space: nowrap; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; animation: float-up 1.4s ease-out forwards; }
.cash-float.up { color: #6bff8c; }
.cash-float.down { color: #ff7b86; }
@keyframes float-up { 0% { transform: translateY(14px) scale(.6); opacity: 0; } 15% { transform: translateY(0) scale(1.2); opacity: 1; } 100% { transform: translateY(-30px) scale(1); opacity: 0; } }
.combo { font-size: 40px; font-weight: 900; color: var(--hot); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; transform: rotate(-6deg); opacity: 0; transition: opacity .3s; position: absolute; left: 226px; top: 34px; text-shadow: 3px 3px 0 var(--ink); }
.combo.on { opacity: 1; }
.combo.pop { animation: pop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { 0% { transform: scale(.3) rotate(-20deg); } 100% { transform: scale(1) rotate(-6deg); } }
.mute-pill { font-size: 12px; font-weight: 800; padding: 3px 8px; background: rgba(255,248,231,.92); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); }
.mute-pill.off { background: #ffd0d4; }

/* ---------------------------------------------------------------- bottom-left: taxi + effects */
.hud-bl { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.taxi { display: none; width: 236px; padding: 8px 10px 6px; background: #ffd23f; border: var(--edge); border-radius: 14px; box-shadow: var(--sh); position: relative; }
.taxi.on { display: block; animation: slide-up .3s ease-out; }
.taxi[data-kind="boro"] { background: #8bd450; }
.taxi[data-kind="suburban"] { background: #2b2f45; color: #fff; }
.taxi::before { content: ""; position: absolute; left: 50%; top: -12px; width: 56px; height: 14px; margin-left: -28px; background: #fff8e7; border: 3px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.tx-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tx-sign { font-weight: 900; font-size: 13px; letter-spacing: 2px; background: var(--ink); color: var(--yolk); padding: 2px 8px; border-radius: 6px; }
.tx-lamp { font-size: 10px; font-weight: 900; letter-spacing: .8px; padding: 2px 6px; border-radius: 6px; border: 2px solid var(--ink); background: #5b6070; color: #9aa; }
.tx-lamp.lit { background: #6bff8c; color: var(--ink); box-shadow: 0 0 10px #6bff8c; animation: lamp 1s ease-in-out infinite alternate; }
@keyframes lamp { to { box-shadow: 0 0 2px #6bff8c; } }
.tx-lcd { display: flex; gap: 6px; background: #1c2a1c; border: 3px solid var(--ink); border-radius: 8px; padding: 4px 8px; }
.tx-cell { flex: 1.4; display: flex; flex-direction: column; color: #7dff6a; text-shadow: 0 0 6px rgba(125,255,106,.7); }
.tx-sp { flex: 1; text-align: right; }
.tx-cell small { font-size: 9px; letter-spacing: 1.5px; opacity: .7; }
.tx-cell b { font: 700 26px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.tx-armor { display: flex; gap: 3px; align-items: center; font-size: 9px; font-weight: 900; letter-spacing: 1px; margin-top: 4px; min-height: 0; }
.tx-armor i { width: 14px; height: 8px; background: #6bd0ff; border: 2px solid var(--ink); border-radius: 3px; }
.tx-hint { font-size: 11px; font-weight: 800; margin-top: 5px; opacity: .85; }
.tx-hint kbd { font-size: .85em; }
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } }
.effects { display: flex; flex-direction: column; gap: 6px; }
.fx-pill { display: flex; align-items: center; gap: 8px; width: 232px; padding: 4px 10px 4px 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); animation: slide-up .3s ease-out; }
.fx-icon { font-size: 22px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--yolk); border: 2px solid var(--ink); border-radius: 50%; flex: none; }
.fx-body { flex: 1; min-width: 0; }
.fx-name { font-size: 12px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.fx-bar { height: 7px; margin-top: 3px; background: #d9d2bf; border: 2px solid var(--ink); border-radius: 5px; overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: 100%; background: var(--leaf); }
.fx-time { font: 800 12px ui-monospace, Menlo, monospace; min-width: 36px; text-align: right; }
.fx-pill.ending { animation: blink .5s steps(2) infinite; }
.fx-pill.ending .fx-bar i { background: var(--danger); }
@keyframes blink { 50% { opacity: .55; } }

/* ---------------------------------------------------------------- bottom-centre: prompt + toasts */
.hud-bc { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(460px, 40vw); }
.toasts { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; }
.toast { display: flex; align-items: center; gap: 8px; padding: 6px 14px; max-width: 100%; font-weight: 800; font-size: 15px; line-height: 1.2; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); animation: toast-in .35s cubic-bezier(.2, 1.5, .4, 1); }
.toast.good { background: #b8f5c4; }
.toast.bad { background: #ffc2c8; }
.toast .ti { font-size: 20px; }
.toast.out { opacity: 0; transform: translateY(-10px); transition: all .35s; }
@keyframes toast-in { from { transform: translateY(14px) scale(.8); opacity: 0; } }
.prompt { display: none; align-items: center; gap: 10px; padding: 7px 18px 7px 10px; background: var(--yolk); border: var(--edge); border-radius: 999px; box-shadow: var(--sh); font-size: 18px; font-weight: 900; min-height: 48px; }
.prompt.on { display: flex; animation: toast-in .25s ease-out; }
.prompt kbd { font-size: 20px; padding: 2px 10px 3px; }
.p-icon { font-size: 24px; }

/* ---------------------------------------------------------------- top-right: minimap */
.hud-loc { position: absolute; right: 16px; top: 16px; width: clamp(150px, 25vh, 212px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mm-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink), inset 0 0 0 3px rgba(255,248,231,.7); overflow: hidden; background: #3f7db3; }
.mm-wrap canvas { width: 100%; height: 100%; display: block; }
.mm-gloss { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 18px rgba(18,22,42,.35); pointer-events: none; }
.loc-card { width: 100%; padding: 5px 10px 6px; text-align: center; margin-top: 2px; }
.loc-street { font-size: 13px; font-weight: 900; line-height: 1.15; }
.loc-hood { font-size: 11px; font-weight: 800; color: var(--hot); letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }

/* ---------------------------------------------------------------- banners + feedback */
.area-banner { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); font-size: clamp(36px, 6vw, 72px); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--yolk); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 5px 6px 0 var(--ink); white-space: nowrap; opacity: 0; }
.area-banner.show { animation: banner 3.2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) scale(.6) rotate(-3deg); } 10% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(-2deg); } 16% { transform: translateX(-50%) scale(1) rotate(-2deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-18px) rotate(-2deg); } }
.hud-vig { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(230,57,70,0) 45%, rgba(230,57,70,.75) 100%); z-index: -1; }
.hud-vig.hurt { animation: vig .7s ease-out; }
@keyframes vig { 0% { opacity: 1; } 100% { opacity: 0; } }
.hud-vig.low:not(.hurt) { animation: vig-pulse 1.1s ease-in-out infinite; }
@keyframes vig-pulse { 0%, 100% { opacity: .1; } 50% { opacity: .55; } }
.ko { position: absolute; inset: 0; display: none; place-items: center; background: rgba(18,22,42,.55); z-index: 30; }
.ko.open { display: grid; animation: fade .25s; }
.ko-card { text-align: center; max-width: min(620px, 86vw); padding: 14px 26px 22px; background: var(--paper); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-2deg); animation: ko-in .5s cubic-bezier(.2, 1.6, .4, 1); }
.ko-burst { font-size: clamp(50px, 9vw, 96px); font-weight: 900; line-height: 1; color: var(--danger); -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 5px 6px 0 var(--ink); }
.ko-sub { font-size: 22px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.ko-line { font-size: 17px; font-weight: 700; margin-top: 10px; font-family: var(--font); }
@keyframes ko-in { from { transform: scale(.2) rotate(12deg); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- modals */
.hud-modals { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.modal { position: absolute; inset: 0; display: none; }
.modal.open { display: block; pointer-events: auto; animation: fade .18s; }
.pause-modal, .help-modal, .scrap-modal { background: rgba(18,22,42,.62); backdrop-filter: blur(3px); }
.pause-modal.open, .help-modal.open, .scrap-modal.open { display: grid; place-items: center; }
.menu-card { width: min(420px, 90vw); padding: 18px 20px 20px; box-shadow: 7px 7px 0 var(--ink); border-width: 4px; animation: ko-in .3s cubic-bezier(.2, 1.4, .4, 1); }
.menu-card.wide { width: min(900px, 94vw); }
.menu-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.menu-egg { font-size: 44px; animation: bobx 1.2s ease-in-out infinite alternate; }
@keyframes bobx { to { transform: translateY(-6px) rotate(6deg); } }
.menu-head h2, .scrap-head h2 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: 1px; line-height: 1; color: var(--yolk); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.menu-head p, .scrap-head p { margin: 4px 0 0; font: 600 13px var(--font); opacity: .75; }
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.hud-modals button, .title button { font-family: var(--font-display); cursor: pointer; color: var(--ink); }
.menu-list button, .menu-foot button { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 900; padding: 10px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, background .12s; text-align: left; }
.menu-list button:hover, .menu-list button.sel { background: var(--yolk); transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.menu-list button:active, .menu-foot button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.menu-foot { margin-top: 14px; display: flex; justify-content: flex-end; }
.menu-foot button { gap: 12px; font-size: 16px; }
.help-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.keys-list { display: grid; gap: 5px; align-content: start; }
.key-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; font: 700 13px/1.2 var(--font); }
.keycaps { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.keycaps i { font: 700 11px var(--font); opacity: .6; }
.howto { background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 16px 8px; font: 600 14px/1.4 var(--font); }
.howto h3 { margin: 10px 0 4px; font-size: 16px; letter-spacing: 1.5px; color: var(--hot); }
.howto p { margin: 8px 0; }
.howto b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yolk); border: 2px solid var(--ink); font: 900 12px var(--font-display); margin-right: 4px; }

/* scrapbook */
.scrap-wrap { width: min(1040px, 94vw); max-height: 90vh; display: flex; flex-direction: column; padding: 16px 18px 14px; box-shadow: 7px 7px 0 var(--ink); border-width: 4px; }
.scrap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.scrap-count { font-size: 38px; font-weight: 900; background: var(--yolk); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(2deg); }
.scrap-count span { font-size: 22px; opacity: .7; }
.scrap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow-y: auto; padding: 6px 6px 10px; flex: 1; min-height: 0; }
.stub { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 10px 8px; min-height: 172px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); border-top: 12px solid var(--c); -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.stub.locked { background: #d9d6cc; border-color: #8a8a8a; border-top-color: #b5b2a8; box-shadow: none; justify-content: center; gap: 6px; }
.st-emoji { font-size: 34px; line-height: 1; }
.st-title { font-size: 14px; font-weight: 900; line-height: 1.15; margin-top: 6px; }
.st-venue { font: 600 11px/1.2 var(--font); opacity: .75; margin-top: 3px; }
.st-cat { margin-top: auto; padding-top: 6px; font-size: 10px; letter-spacing: 1.5px; font-weight: 900; text-transform: uppercase; color: var(--c); }
.stub.locked .st-cat { color: #8a8a8a; margin-top: 0; }
.st-q { font-size: 34px; font-weight: 900; color: #a9a69b; letter-spacing: 3px; }

/* big map */
.map-modal { background: #3f7db3; }
.map-modal canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.map-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; pointer-events: none; }
.map-title { font-size: 30px; font-weight: 900; letter-spacing: 2px; color: var(--yolk); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink); }
.map-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map-btns button, .map-zoom button { padding: 7px 14px; font-size: 14px; font-weight: 900; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); pointer-events: auto; }
.map-btns button:hover, .map-zoom button:hover { background: var(--yolk); }
.map-btns button.hot { background: var(--hot); color: #fff; }
.map-zoom { position: absolute; right: 18px; top: 74px; display: flex; flex-direction: column; gap: 8px; }
.map-zoom button { font-size: 22px; padding: 2px 12px; }
.map-legend { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px 10px; font: 700 13px/1.9 var(--font); pointer-events: none; }
.lg-h { font: 900 12px var(--font-display); letter-spacing: 2px; color: var(--hot); line-height: 1.4; }
.map-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lg-arrow { width: 0; height: 0; border-left: 14px solid var(--yolk); border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 0 1px var(--ink)) drop-shadow(0 0 1px var(--ink)); }
.lg-flag { width: 14px; height: 14px; border-radius: 50%; background: var(--hot); border: 3px solid var(--ink); }
.lg-route { width: 22px; height: 5px; background: var(--hot); border: 2px solid var(--ink); border-radius: 3px; }
.lg-stop { width: 14px; height: 14px; border-radius: 50%; background: #1d7afc; border: 3px solid var(--ink); }
.lg-lm { font-style: normal; width: 18px; text-align: center; font-size: 13px; }
.lg-note { font-size: 11px; opacity: .7; line-height: 1.3; margin-top: 4px; max-width: 190px; }
.map-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font: 800 13px var(--font); pointer-events: none; }

/* ---------------------------------------------------------------- title */
.title { position: fixed; inset: 0; z-index: 80; display: none; flex-direction: column; justify-content: center; align-items: center; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(18,22,42,.28), rgba(18,22,42,.72)); backdrop-filter: blur(2px) saturate(.9); }
.title.open { display: flex; }
.title-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 2vw; width: min(1180px, 94vw); }
.title-left { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wordmark { margin: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: .86; font-weight: 900; text-transform: uppercase; }
.wm-line { display: flex; font-size: clamp(54px, 9.4vw, 132px); letter-spacing: -2px; }
.wm-line span { display: inline-block; color: var(--yolk); -webkit-text-stroke: .11em var(--ink); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--ink), .05em .09em 0 var(--ink); transform: rotate(var(--r)); animation: letter 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s); }
.wm-2 span { color: #fff8e7; }
.wm-2 span:nth-child(odd) { color: var(--hot); }
@keyframes letter { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) * -.6)) translateY(-.045em); } }
.wm-the { align-self: flex-start; margin: .1em 0 -.1em .6em; font-size: clamp(18px, 3vw, 38px); letter-spacing: 6px; color: var(--ink); background: var(--yolk); border: 3px solid var(--ink); border-radius: 8px; padding: 0 12px; transform: rotate(-4deg); box-shadow: 3px 3px 0 var(--ink); line-height: 1.3; }
.subtitle { margin: 4px 0 0; font-size: clamp(16px, 2vw, 24px); font-weight: 900; color: #fff8e7; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); letter-spacing: .5px; }
.start-btn { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.2vw, 26px); font-weight: 900; padding: 10px 22px; background: var(--hot); color: #fff !important; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); animation: cta 1.1s ease-in-out infinite alternate; }
.start-btn kbd { font-size: .9em; color: var(--ink); }
.start-btn:hover { background: #ff63ac; }
.start-btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
@keyframes cta { to { transform: scale(1.05) rotate(-1deg); } }
.title-tip { max-width: 520px; display: flex; gap: 10px; align-items: flex-start; background: rgba(255,248,231,.94); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 14px; box-shadow: 4px 4px 0 var(--ink); font: 700 15px/1.35 var(--font); min-height: 3.4em; }
.title-tip b { background: var(--ink); color: var(--yolk); padding: 1px 8px; border-radius: 6px; font: 900 12px var(--font-display); letter-spacing: 1.5px; margin-top: 2px; }
.title-tip .fade { animation: fade .6s; }
.title-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.title-stats span { background: var(--yolk); border: 3px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.title-stats b { font-weight: 900; }
.title-right { display: grid; place-items: center; }
.art-wrap { position: relative; width: min(100%, 52vh, 400px); filter: drop-shadow(0 6px 0 rgba(18,22,42,.35)); }
.chuckles-art { width: 100%; height: auto; display: block; overflow: visible; }
.art-bob { animation: art-bob 1.4s ease-in-out infinite alternate; transform-origin: 120px 300px; }
@keyframes art-bob { from { transform: scale(1, 1); } to { transform: scale(1.02, .985) translateY(-6px); } }
.art-prop { animation: prop .18s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes prop { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.18); } }
.art-wave { animation: wave .7s ease-in-out infinite alternate; transform-origin: 178px 142px; }
@keyframes wave { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
.art-eyes { animation: look 4s ease-in-out infinite; }
@keyframes look { 0%, 40%, 100% { transform: translateX(0); } 55%, 80% { transform: translateX(-3px); } }
.sticker { position: absolute; font-weight: 900; font-size: 20px; padding: 3px 14px; background: #fff8e7; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.sticker.s1 { left: -6%; top: 22%; transform: rotate(-12deg); background: var(--hot); color: #fff; }
.sticker.s2 { right: -2%; bottom: 20%; transform: rotate(9deg); background: var(--sky); color: #fff; }
.title-keys { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; padding: 0 16px; }
.title-keys span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,248,231,.94); border: 3px solid var(--ink); border-radius: 10px; padding: 3px 10px 3px 6px; font-weight: 800; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }

@media (max-height: 760px) {
  .title-inner { gap: 1vw; }
  .title-left { gap: 10px; }
  .title-keys { bottom: 10px; }
  .help-grid { gap: 12px; }
  .key-row { font-size: 12px; }
  .heart { width: 30px; height: 28px; }
}
@media (max-width: 900px) {
  .title-inner { grid-template-columns: 1fr; }
  .title-right { display: none; }
  .help-grid { grid-template-columns: 1fr; }
}
