@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url('./fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url('./fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  color-scheme: dark;
  --eye-width: clamp(16px, min(5.8vw, 5svh), 60px);
  --eye-height: calc(var(--eye-width) * 3);
  --eye-gap: calc(var(--eye-width) * 3.285714);
  --gutter: clamp(22px, 3vw, 48px);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; background: #000; }
body { overflow: hidden; color: #fff; font-family: Manrope, Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
main { position: fixed; inset: 0; display: grid; place-items: center; }
.optics { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shell-fallback { position: fixed; max-width: none; opacity: 0; pointer-events: none; }
.optics-ready .shell-fallback { display: none; }
.corners { position: fixed; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; z-index: 2; pointer-events: none; opacity: 0; animation: corners-in 1s 5.8s both; }
.corners--top { top: var(--gutter); }
.corners--bottom { bottom: max(var(--gutter), env(safe-area-inset-bottom)); }
.corners p { margin: 0; color: #888; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; text-wrap: pretty; }
.logo { display: block; width: 110px; height: auto; opacity: .9; }
.ray { position: relative; width: min(88vw, 800px); height: min(70svh, 550px); margin: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ray:focus-visible { outline: 1px solid #333; outline-offset: 12px; border-radius: 40px; }
.gaze { --eye-height: calc(var(--eye-width) * 3); --eye-gap: calc(var(--eye-width) * 3.285714); position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: var(--eye-gap); width: max-content; transform: translate(-50%, -50%); will-change: transform; opacity: 0; animation: fallback-in 1.6s .5s both; }
.eye { position: relative; display: block; width: var(--eye-width); height: var(--eye-height); flex: 0 0 auto; border-radius: 999px; background: #fff; box-shadow: 0 0 calc(var(--eye-width) * .16) calc(var(--eye-width) * .025) #ffffff80, 0 0 calc(var(--eye-width) * .5) calc(var(--eye-width) * .10) #ffffff35, 0 0 calc(var(--eye-width) * 1.15) calc(var(--eye-width) * .20) #ffffff12; transform-origin: center; will-change: transform; }
[data-scene] .gaze, [data-scene] .corners { animation: none; }
[data-scene] .corners { transition: opacity 1s ease; }
.chrome-visible .corners { opacity: 1; }
[data-preview-frame] .corners { transition: none; }
.bubble-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.speech { position: absolute; width: max-content; max-width: min(260px, calc(100vw - 44px)); padding: 14px 20px; background: #fff; color: #151515; border: 0; border-radius: 16px; box-shadow: 0 8px 30px #0006; font-family: Manrope, Arial, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.5; text-wrap: pretty; animation: speech-in .28s cubic-bezier(.2,.7,.25,1) both; }
.speech::after { content: ''; position: absolute; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.speech--right::after { left: -5px; top: calc(var(--tail-y, 50%) - 6px); }
.speech--left::after { right: -5px; top: calc(var(--tail-y, 50%) - 6px); }
.speech--above::after { left: calc(var(--tail-x, 50%) - 6px); bottom: -5px; }
.speech--below::after { left: calc(var(--tail-x, 50%) - 6px); top: -5px; }
.speech.is-leaving { animation: speech-out .18s ease-in both; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes fallback-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes corners-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes speech-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes speech-out { to { opacity: 0; transform: translateX(4px); } }
@media (max-width: 600px) {
  .logo { width: 88px; }
  .corners p { font-size: 10px; }
  .speech { padding: 13px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .gaze, .eye { will-change: auto; }
  .gaze, .corners { opacity: 1; animation: none; }
  [data-scene] .corners { transition: none; }
  .speech, .speech.is-leaving { animation: none; }
}
