:root { color-scheme: dark; --ground: #000; --glass: rgba(20, 22, 30, 0.5); --glass-edge: rgba(255, 236, 214, 0.2); --ink: #fff6ec; --ink-dim: rgba(255, 246, 236, 0.66); --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; --display: 'Arial Black', 'Trebuchet MS', sans-serif; --score-font: 'Bricolage Grotesque', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--ground); color: var(--ink); font-family: var(--ui); }
#stage { position: fixed; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#stage.is-dragging { cursor: grabbing; }
.look-hint { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); left: calc(env(safe-area-inset-left, 0px) + 16px); z-index: 10; display: flex; align-items: center; gap: 0; padding: 5px; border: 0.5px solid var(--glass-edge); border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.6); color: var(--ink); font: 500 13px/1.25 var(--ui); cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22); transform-origin: 20px 20px; animation: hint-in 520ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both; transition: gap 420ms cubic-bezier(0.32, 0.72, 0, 1), padding 420ms cubic-bezier(0.32, 0.72, 0, 1); }
.look-hint:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.look-hint:active { transform: scale(0.96); }
.look-hint.is-open { gap: 10px; padding-right: 16px; }
.look-hint__icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 246, 236, 0.1); }
.look-hint__icon svg { width: 26px; height: 26px; overflow: visible; }
.look-hint__text { display: grid; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; transition: max-width 420ms cubic-bezier(0.32, 0.72, 0, 1), opacity 240ms ease; }
.look-hint.is-open .look-hint__text { max-width: 260px; opacity: 1; }
.look-hint__sub { color: var(--ink-dim); font-size: 11.5px; font-weight: 400; }
.glyph { display: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.look-hint[data-mode='tilt'] .glyph--tilt, .look-hint[data-mode='swipe'] .glyph--swipe, .look-hint[data-mode='drag'] .glyph--drag { display: inline; }
.look-hint.is-drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.look-hint.is-drawing .draw:nth-child(2) { animation-delay: 120ms; }
.look-hint.is-drawing .draw:nth-child(3) { animation-delay: 220ms; }
.look-hint.is-drawing .draw:nth-child(4) { animation-delay: 300ms; }
.tilt-phone, .swipe-finger, .pan-hand { animation: swipe 2.4s cubic-bezier(0.45, 0, 0.55, 1) 900ms infinite; }
.tilt-phone { animation-name: tilt; }
@keyframes hint-in { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(16deg); } }
@keyframes swipe { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-7px); } 70% { transform: translateX(7px); } }
.page-title { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 9vh); z-index: 3; margin: 0; text-align: center; pointer-events: none; font: 900 clamp(20px, 4vw, 34px)/0.95 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.9, 0.25, 1), filter 700ms ease; }
.title-solid { color: var(--ink); text-shadow: 0 0 18px rgba(255, 255, 255, 0.16); }
.page-title.is-in { opacity: 1; transform: none; filter: blur(0); }
.page-title.is-wireframe { animation: title-wireframe 1100ms cubic-bezier(0.22, 0.8, 0.28, 1) forwards; }
.page-title.is-wireframe .title-solid { animation: title-solid-out 1100ms ease forwards; }
.page-title.is-returning { animation: title-return 900ms cubic-bezier(0.22, 0.8, 0.28, 1) both; }
.page-title.is-returning .title-solid { animation: title-solid-in 900ms ease both; }
@keyframes title-wireframe { 0%, 28% { opacity: 1; } 58% { opacity: 0.85; transform: scale(1.04); filter: blur(0); } 100% { opacity: 0; transform: scale(1.12); filter: blur(8px); } }
@keyframes title-solid-out { 0%, 20% { color: var(--ink); } 50%, 100% { color: transparent; text-shadow: none; } }
@keyframes title-return { 0% { opacity: 0; transform: scale(1.08); filter: blur(6px); } 55%, 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes title-solid-in { 0%, 55% { color: transparent; text-shadow: none; } 100% { color: var(--ink); } }
.shot-prompt { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 9vh); z-index: 5; margin: 0; text-align: center; pointer-events: none; font: 900 clamp(20px, 4vw, 34px)/0.95 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--ink); animation: shot-in 700ms cubic-bezier(0.2, 0.9, 0.25, 1) 380ms both; }
@keyframes shot-in { from { opacity: 0; transform: scale(0.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.connect-hint { position: fixed; left: var(--ball-x); top: var(--ball-y); z-index: 6; display: flex; align-items: center; gap: 0.5rem; color: var(--ink); font: 700 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6)); pointer-events: none; transform: translate(-50%, -100%); animation: connect-in 260ms ease both; }
.connect-hint[hidden] { display: none; }
@keyframes connect-in { from { opacity: 0; } to { opacity: 1; } }
.connect-hint svg { width: 24px; height: 36px; overflow: visible; }
.connect-arrow, .connect-finger { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.connect-arrow { stroke-width: 1.5; animation: connect-arrow 1s ease-out infinite; }
.connect-finger { stroke-width: 1.7; animation: connect-finger 1s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
@keyframes connect-arrow { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 0.8; } 75%, 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes connect-finger { 0% { transform: translateY(8px); opacity: 0; } 15% { opacity: 1; } 65% { transform: translateY(-8px); opacity: 1; } 85%, 100% { transform: translateY(-10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .look-hint, .tilt-phone, .swipe-finger, .pan-hand, .connect-arrow, .connect-finger { animation: none; } .look-hint.is-drawing .draw { animation: none; stroke-dashoffset: 0; } .page-title { transform: none; filter: none; transition: opacity 400ms ease; } .shot-prompt { animation-duration: 1ms; } }
.hud { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); right: calc(env(safe-area-inset-right, 0px) + 16px); z-index: 10; display: flex; align-items: flex-start; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bio-ticker { width: 360px; padding: 11px 14px 12px 16px; border: 1px solid rgba(255, 255, 255, 0.28); border-right: 0; border-radius: 12px 0 0 12px; background: rgba(14, 15, 20, 0.42); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08); color: var(--ink); font-family: var(--score-font); transform-origin: right center; animation: ticker-extend 620ms cubic-bezier(0.2, 0.9, 0.25, 1) both; transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.25, 1), filter 320ms ease; }
.bio-ticker[hidden] { display: none; }
.bio-ticker.is-hidden { opacity: 0; transform: translateX(10px); filter: blur(4px); }
.bio-ticker__text { position: relative; margin: 0; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.16); font-weight: 500; font-size: 14px; line-height: 1.38; text-wrap: pretty; }
.bio-ticker__rest { color: transparent; }
.bio-ticker__caret { display: inline-block; width: 2px; height: 1.05em; margin: 0 1px -0.16em; background: var(--ink); animation: caret-blink 900ms steps(1) infinite; }
.bio-ticker.is-done .bio-ticker__caret { animation: caret-blink 900ms steps(1) 3, caret-out 1ms 2700ms forwards; }
@keyframes ticker-extend { from { clip-path: inset(0 0 0 100% round 12px 0 0 12px); } to { clip-path: inset(0 0 0 0 round 12px 0 0 12px); } }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }
.scoreboard { position: relative; flex: none; min-width: 104px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 12px; background: rgba(14, 15, 20, 0.42); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08); color: var(--ink); font-family: var(--score-font); text-align: center; pointer-events: none; animation: scoreboard-in 520ms cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
.scoreboard__name { padding: 7px 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.1); font-weight: 800; font-size: 13px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 255, 255, 0.35); }
.scoreboard__score { margin: 0 10px; padding: 6px 8px 8px; border-left: 1px solid rgba(255, 255, 255, 0.12); border-right: 1px solid rgba(255, 255, 255, 0.12); }
.scoreboard__value { display: inline-block; font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scoreboard__value.is-bumped { animation: score-bump 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes scoreboard-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes score-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); text-shadow: 0 0 16px rgba(255, 255, 255, 0.6); } 100% { transform: scale(1); } }
/* Narrow screens (the expanded look hint would not fit beside the bio + scoreboard with a 16px gap): the bio and scoreboard
   share one full-width row at the same height, joined into a single housing, and the look hint drops 16px below that row. */
@media (max-width: 788px) {
  .hud { left: calc(env(safe-area-inset-left, 0px) + 16px); align-items: stretch; }
  .bio-ticker { flex: 1; min-width: 0; width: auto; display: flex; align-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .scoreboard { display: flex; flex-direction: column; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: border-radius 320ms ease, border-color 320ms ease; }
  .scoreboard__score { flex: 1; display: flex; align-items: center; justify-content: center; }
  .bio-ticker:not([hidden]):not(.is-hidden) + .scoreboard { border-left-color: rgba(255, 255, 255, 0.12); border-top-left-radius: 0; border-bottom-left-radius: 0; }
  .look-hint { top: calc(env(safe-area-inset-top, 0px) + 16px + var(--hud-h, 0px) + 16px); }
}
@media (max-width: 480px) { .bio-ticker { padding: 9px 10px 10px 12px; } .bio-ticker__text { padding-left: 8px; font-size: 12.5px; line-height: 1.36; } .scoreboard { min-width: 0; max-width: 100px; } .scoreboard__name { padding: 7px 10px 6px; font-size: 12px; line-height: 1.15; letter-spacing: 0.1em; } .scoreboard__value { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .scoreboard, .scoreboard__value.is-bumped, .bio-ticker, .bio-ticker__caret { animation: none; } .bio-ticker { transition: opacity 200ms ease; } }
.throw-wipe { position: fixed; inset: 0; z-index: 30; background: var(--wipe, #000); opacity: 0; pointer-events: none; }
.throw-wipe[hidden] { display: none; }
.throw-wipe.is-leaving { transition: opacity 450ms ease; }
