/* Turkey Shoot page (template-turkey-shoot.php, inc/turkey-shoot.php).
   Hand-written on the theme's own tokens (--color-*, --font-*), every class
   `kts-` prefixed, so the Tailwind build is unaffected. */

.kts { --kts-line: rgb(51 56 63 / .7); max-width: 1200px; margin: 0 auto; padding: 96px 24px 72px; }
@media (max-width: 639.98px) { .kts { padding: 76px 16px 56px; } }

.kts-intro { max-width: 760px; }
.kts-logo { display: inline-block; margin-bottom: 28px; }
.kts-logo__img { display: block; width: 170px; height: auto; }
@media (min-width: 640px) { .kts-logo__img { width: 210px; } }
.kts-logo:focus-visible { outline: 3px solid var(--color-blue2); outline-offset: 4px; }
.kts-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: .92; margin: 12px 0 0; color: var(--color-cream); }
.kts-lead { margin: 18px 0 0; font-size: 1.125rem; line-height: 1.6; color: rgb(247 239 226 / .85); max-width: 640px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.kts-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.1 var(--font-sans); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.kts-btn--primary { background: var(--color-blue); color: var(--color-ink); }
.kts-btn--primary:hover { background: var(--color-blue2); }
.kts-btn--ghost { border-color: var(--color-brass2); color: var(--color-brass2); background: rgb(14 16 19 / .4); }
.kts-btn--ghost:hover:not(:disabled) { background: var(--color-brass2); color: var(--color-ink); }
.kts-btn:disabled { opacity: .45; cursor: not-allowed; }
.kts-btn:focus-visible, .kts-stage:focus-visible, .kts-dialog__close:focus-visible { outline: 3px solid var(--color-blue2); outline-offset: 3px; }

/* ── HUD ────────────────────────────────────────────────────────────────── */
.kts-game { margin-top: 36px; }
.kts-hud { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.kts-shells { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; color: var(--color-cream); }
.kts-shells__icons { display: inline-flex; gap: 6px; }
.kts-shell { display: block; transition: opacity .25s, transform .25s; }
.kts-shell.is-spent { opacity: .18; transform: translateY(4px); }

/* ── Stage ──────────────────────────────────────────────────────────────── */
.kts-stage { position: relative; width: 100%; aspect-ratio: 2 / 1; max-height: 72vh; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--kts-line); background: var(--color-ink2); user-select: none; -webkit-user-select: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 639.98px) { .kts-stage { aspect-ratio: 4 / 5; max-height: 78vh; border-radius: 14px; } }

/* The crosshair shows only while a round is live, and only over the stage. */
.kts-stage.is-live { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Ccircle cx='20' cy='20' r='11' stroke='%230E1013' stroke-width='5'/%3E%3Cpath d='M20 2v11M20 27v11M2 20h11M27 20h11' stroke='%230E1013' stroke-width='5'/%3E%3Ccircle cx='20' cy='20' r='11' stroke='%23F7EFE2' stroke-width='2.2'/%3E%3Cpath d='M20 2v11M20 27v11M2 20h11M27 20h11' stroke='%23F7EFE2' stroke-width='2.2'/%3E%3Ccircle cx='20' cy='20' r='1.8' fill='%23E5484D'/%3E%3C/g%3E%3C/svg%3E") 20 20, crosshair; }

.kts-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kts-flock { position: absolute; inset: 0; pointer-events: none; }
.kts-bird { position: absolute; left: 0; top: 0; will-change: transform; }
.kts-bird svg { display: block; width: 100%; height: auto; overflow: visible; }
.kts-bird.is-left svg { transform: scaleX(-1); }
.kts-bird .kts-leg { transform-box: fill-box; transform-origin: 50% 0; animation: kts-run .26s ease-in-out infinite alternate; }
.kts-bird .kts-leg + .kts-leg { animation-direction: alternate-reverse; }
@keyframes kts-run { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.kts-bird.is-down { transition: transform .9s cubic-bezier(.5,0,.9,.5), opacity .9s; opacity: 0; }
.kts-bird.is-down .kts-leg { animation: none; }

.kts-hunter { position: absolute; left: 1.5%; bottom: 1%; height: 42%; width: auto; overflow: visible; pointer-events: none; z-index: 2; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .45)); }
@media (max-width: 639.98px) { .kts-hunter { height: 30%; } }
.kts-gun__kick { transition: transform .12s ease-out; }
.kts-gun__kick.is-kick { transform: translateX(-10px); transition: none; }
.kts-flash { opacity: 0; transition: opacity .12s; }
.kts-flash.is-on { opacity: 1; transition: none; }

/* keyboard aiming */
.kts-reticle { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 2.5px solid var(--color-cream); box-shadow: 0 0 0 2px var(--color-ink), inset 0 0 0 2px var(--color-ink);
  pointer-events: none; display: none; z-index: 3; }
.kts-reticle::before, .kts-reticle::after { content: ""; position: absolute; background: var(--color-cream); }
.kts-reticle::before { left: 50%; top: -10px; bottom: -10px; width: 2px; margin-left: -1px; }
.kts-reticle::after { top: 50%; left: -10px; right: -10px; height: 2px; margin-top: -1px; }
.kts-stage.is-keys .kts-reticle { display: block; }

/* shot effects */
.kts-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.kts-pop { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font: 400 clamp(1.4rem, 3.4vw, 2.4rem)/1 var(--font-display);
  letter-spacing: .04em; color: var(--color-cream); text-shadow: 0 2px 0 var(--color-ink), 0 0 18px rgb(0 0 0 / .8);
  animation: kts-pop 1.4s ease-out forwards; }
.kts-pop--miss { color: var(--color-brass2); }
.kts-pop--win { color: var(--color-blue2); }
@keyframes kts-pop { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -100%) scale(1.06); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%); } }
.kts-hole { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, #F7EFE2 0 25%, rgb(239 196 106 / .7) 30%, transparent 70%); animation: kts-fade .7s ease-out forwards; }
.kts-feather { position: absolute; width: 10px; height: 22px; margin: -11px 0 0 -5px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: #a8662e;
  animation: kts-feather 1.1s ease-out forwards; }
@keyframes kts-feather { to { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); opacity: 0; } }
@keyframes kts-fade { to { opacity: 0; transform: scale(1.8); } }

/* the card over the stage: start, come back tomorrow, already won */
.kts-card { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 5; background: rgb(14 16 19 / .55); }
.kts-card[hidden] { display: none; }
.kts-card__body { max-width: 440px; text-align: center; background: rgb(23 26 31 / .94); border: 1px solid var(--kts-line); border-radius: 16px; padding: 26px 24px; box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.kts-card__title { font: 400 clamp(2rem, 5vw, 2.8rem)/1 var(--font-display); margin: 0; color: var(--color-cream); }
.kts-card__text { margin: 10px 0 18px; color: rgb(247 239 226 / .85); line-height: 1.5; }
.kts-card__body .kts-btn + .kts-btn { margin-top: 10px; }
.kts-nojs { margin: 0; color: rgb(247 239 226 / .85); }
.js .kts-nojs { display: none; }
html:not(.js) [data-kts-start] { display: none; }

.kts-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; color: var(--color-cream); }

/* honeypot: off screen, never shown, never tabbed to */
.kts-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Rules ──────────────────────────────────────────────────────────────── */
.kts-rules { margin-top: 56px; max-width: 760px; padding-top: 36px; border-top: 1px solid var(--kts-line); }
.kts-h2 { font: 400 2.4rem/1 var(--font-display); color: var(--color-cream); margin: 0 0 16px; }
.kts-list { margin: 0; padding-left: 1.2em; list-style: disc; color: rgb(247 239 226 / .85); line-height: 1.6; }
.kts-list li + li { margin-top: 6px; }
.kts-list li::marker { color: var(--color-brass); }

/* ── Win dialog ─────────────────────────────────────────────────────────── */
.kts-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; margin: auto; padding: 0; border: 1px solid var(--color-brass); border-radius: 18px;
  background: var(--color-ink2); color: var(--color-cream); box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.kts-dialog::backdrop { background: rgb(14 16 19 / .78); }
.kts-dialog__inner { position: relative; padding: 30px 26px 22px; text-align: center; }
@media (max-width: 479.98px) { .kts-dialog__inner { padding: 26px 12px 18px; } }
.kts-dialog__title { font: 400 clamp(2.6rem, 8vw, 3.6rem)/1 var(--font-display); margin: 8px 0 0; color: var(--color-brass2); }
.kts-dialog__text { margin: 12px auto 16px; max-width: 460px; line-height: 1.55; color: rgb(247 239 226 / .9); }
.kts-dialog__fine { margin: 12px 0 0; font-size: .9rem; color: rgb(247 239 226 / .75); }
.kts-dialog__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--kts-line); background: transparent; color: var(--color-cream); cursor: pointer; }
.kts-dialog__close:hover { border-color: var(--color-brass2); color: var(--color-brass2); }

/* Jeremy's Brevo form, supplied as a 540 x 305 iframe, made fluid. 305px
   shows only its first field. Measured at IFRAME width on 2026-11-19, the
   form (name, email, phone, opt-in, button) is 821px tall at 540 wide, 851 at
   492, 965 at 342 and 1058 at 312 and below. The iframe sits about 50px
   narrower than the viewport on a phone, so the breakpoints below are viewport
   widths with that offset applied, plus ~80px for validation messages. The
   dialog scrolls instead of the form. If fields are added in Brevo, raise these. */
.kts-form { max-width: 540px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #fff; }
.kts-form iframe { display: block; width: 100%; height: 910px; border: 0; }
@media (max-width: 599.98px) { .kts-form iframe { height: 940px; } }
@media (max-width: 559.98px) { .kts-form iframe { height: 1050px; } }
@media (max-width: 389.98px) { .kts-form iframe { height: 1140px; } }

@media (prefers-reduced-motion: reduce) {
  .kts-bird .kts-leg { animation: none; }
  .kts-pop { animation-duration: 2.2s; }
  .kts-feather, .kts-hole { animation: none; display: none; }
  .kts-gun__kick.is-kick { transform: none; }
  .kts-bird.is-down { transition: opacity .6s; }
  .kts-shell, .kts-btn { transition: none; }
}
