/* Fonts: static Fredoka 500/600 instances (local, works offline; WebKit ignored the variable font's weight) */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/fredoka-500-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/fredoka-500-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;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/fredoka-600-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/fredoka-600-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;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1d3a22;
  font-family:
    'Fredoka',
    system-ui,
    -apple-system,
    'Segoe UI',
    'Hiragino Sans',
    'Noto Sans',
    sans-serif;
  font-weight: 600;
  color: #fff8ea;
}

#game-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  cursor: default;
}
/* While the string is drawn the bow's sight is the only aim mark: the mouse cursor hides only then. */
body.drawing #game-canvas {
  cursor: none;
}

.hidden {
  display: none !important;
}

/* ===== CINEMATIC SLOW-MO LETTERBOX & GOLDEN EDGE GLOW ===== */
#slowmo-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow:
    inset 0 0 110px rgba(255, 200, 82, 0.34),
    inset 0 0 42px rgba(15, 10, 5, 0.52);
}

#slowmo-vignette.active {
  opacity: 1;
}

#slowmo-vignette .bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(12, 8, 5, 0.9), rgba(12, 8, 5, 0));
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#slowmo-vignette .bar.bottom {
  bottom: 0;
  top: auto;
  background: linear-gradient(to top, rgba(12, 8, 5, 0.9), rgba(12, 8, 5, 0));
  transform: translateY(100%);
}

#slowmo-vignette.active .bar {
  transform: translateY(0);
}

/* ===== DYNAMIC RETICLE ===== */
#reticle {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 9;
}
/* Reticle: brass ring art + a glowing gold ring revealed clockwise by the draw amount (--draw 0..1). */
#reticle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ret-focus-tag {
  position: absolute;
  top: 108%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffe26b;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* ===== HUD ===== */
/* ===== FLOATING KINETIC POPUPS ===== */
#popup-layer {
  position: fixed;
  top: 27%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 20;
}

.hit-popup {
  text-align: center;
  animation: floatPop 1.3s cubic-bezier(0.18, 0.9, 0.32, 1) forwards;
}

.hit-popup .hp-main {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hit-popup .hp-sub {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hit-popup.gold .hp-main {
  color: #ffe15c;
}
.hit-popup.accent .hp-main {
  color: #ff9c54;
}
.hit-popup.cyan .hp-main {
  color: #7af2ff;
}
.hit-popup.muted .hp-main {
  color: #fff3d6;
  font-size: clamp(18px, 3.6vw, 26px);
  padding: 0.15em 0.7em;
  border-radius: 999px;
  background: rgba(20, 28, 22, 0.62);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatPop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(16px);
  }
  16% {
    opacity: 1;
    transform: scale(1.06) translateY(0);
  }
  75% {
    opacity: 1;
    transform: scale(1) translateY(-14px);
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(-34px);
  }
}

@keyframes arrowBonus {
  0% {
    transform: scale(0.4) translateY(-10px);
  }
  60% {
    transform: scale(1.35) translateY(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bannerAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -14px) scale(0.94);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.98);
  }
}

/* End of fx.css */

/* Hit callouts: one line, never wider than the screen, smaller on phones. */
.hit-popup .hp-main {
  white-space: nowrap;
  max-width: 92vw;
  font-size: clamp(18px, 4.2vw, 32px);
}
.hit-popup .hp-sub {
  white-space: nowrap;
  font-size: clamp(12px, 2.6vw, 16px);
}
/* End of css/fx.css (complete file). */
