.game-quick-target-tap {
  --target-ink: #101b3f;
  --target-night: #08152d;
  --target-cyan: #42d6f5;
  --target-gold: #ffd45a;
  --target-gold-deep: #d89019;
  --target-red: #e62129;
  --target-wood: #7d2d24;
  --target-cream: #fff4cf;
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: var(--target-night);
  font-family: inherit;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.game-quick-target-tap .game-hud {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 3px solid var(--target-gold);
  background: #0b1835;
  box-shadow: inset 0 -2px 0 rgba(66, 214, 245, 0.28);
}

.game-quick-target-tap .game-hud-item {
  display: flex;
  min-width: 0;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 212, 90, 0.72);
  border-radius: 9px;
  background: linear-gradient(180deg, #132550, #0a1734);
  box-shadow: inset 0 0 0 1px rgba(66, 214, 245, 0.12), 0 2px 0 #050d20;
}

.game-quick-target-tap .game-hud-label {
  color: var(--target-gold);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.game-quick-target-tap .game-hud-value {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 9px rgba(66, 214, 245, 0.34);
}

.game-quick-target-tap .game-stage {
  position: relative;
  flex: 1;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--target-night);
  background-image: linear-gradient(180deg, rgba(4, 10, 28, 0.02), rgba(4, 10, 28, 0.16)), var(--target-stage-art);
  background-position: center;
  background-size: cover;
}

.game-quick-target-tap.is-completing .game-stage { min-height: 540px; }

.game-quick-target-tap .game-stage::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at 50% 47%, transparent 0 38%, rgba(3, 9, 27, 0.12) 70%, rgba(3, 9, 27, 0.34) 100%);
  content: "";
  pointer-events: none;
}

.game-quick-target-tap .game-stage::after {
  position: absolute;
  z-index: 2;
  inset: 7px;
  border: 1px solid rgba(255, 212, 90, 0.18);
  border-radius: 3px;
  box-shadow: inset 0 0 54px rgba(2, 7, 23, 0.2);
  content: "";
  pointer-events: none;
}

.game-quick-target-tap .target-field {
  position: absolute;
  z-index: 4;
  inset: 10% 7% 11%;
  overflow: visible;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(66, 214, 245, 0.035), transparent 66%);
}

.game-quick-target-tap .target-field::before,
.game-quick-target-tap .target-field::after {
  position: absolute;
  top: 48%;
  width: 10px;
  height: 54px;
  border-color: rgba(255, 212, 90, 0.42);
  border-style: solid;
  content: "";
  transform: translateY(-50%);
  pointer-events: none;
}

.game-quick-target-tap .target-field::before { left: 2px; border-width: 2px 0 2px 2px; border-radius: 8px 0 0 8px; }
.game-quick-target-tap .target-field::after { right: 2px; border-width: 2px 2px 2px 0; border-radius: 0 8px 8px 0; }

.game-quick-target-tap .quick-target {
  position: absolute;
  z-index: 8;
  display: grid;
  min-width: 64px;
  min-height: 64px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: var(--target-ink);
  background: transparent;
  font: inherit;
  transform: translate(var(--target-x), var(--target-y));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  animation: quick-target-enter 180ms cubic-bezier(0.2, 1.32, 0.36, 1) both;
}

.game-quick-target-tap .quick-target__beam {
  position: absolute;
  z-index: -1;
  bottom: 17%;
  left: 50%;
  width: 86%;
  height: 156%;
  opacity: 0.38;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 230, 153, 0.5), transparent 58%);
  filter: blur(3px);
  transform: translateX(-50%);
  pointer-events: none;
}

.game-quick-target-tap .quick-target__timer {
  position: absolute;
  z-index: 5;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(255, 181, 58, 0.72));
  transform: rotate(-90deg);
  pointer-events: none;
}

.game-quick-target-tap .quick-target__timer circle {
  fill: none;
  stroke: #ffb73b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 176;
  stroke-dashoffset: 0;
  animation: quick-target-countdown var(--target-life) linear both;
}

.game-quick-target-tap .quick-target__halo {
  position: absolute;
  z-index: 4;
  inset: -4px;
  border: 2px solid rgba(255, 226, 132, 0.98);
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(255, 171, 45, 0.12), 0 0 25px rgba(255, 171, 45, 0.82);
  pointer-events: none;
  animation: quick-target-halo 760ms ease-in-out infinite alternate;
}

.game-quick-target-tap .quick-target__core {
  position: absolute;
  z-index: 6;
  inset: 1px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: inherit;
  background: transparent;
  filter: drop-shadow(0 5px 3px rgba(2, 8, 25, 0.62));
  pointer-events: none;
}

.game-quick-target-tap .quick-target__popcorn { width: 100%; height: 100%; object-fit: contain; }

.game-quick-target-tap .quick-target__core::after {
  position: absolute;
  z-index: -1;
  inset: 9%;
  border-radius: 50%;
  background: #ffc94b;
  box-shadow: 0 0 18px #ffad31;
  content: "";
}

.game-quick-target-tap .quick-target strong {
  position: absolute;
  z-index: 10;
  top: calc(100% - 5px);
  left: 50%;
  min-width: 38px;
  padding: 4px 8px 3px;
  border: 2px solid var(--target-cream);
  border-radius: 4px 4px 8px 8px;
  color: #fff;
  background: var(--target-red);
  box-shadow: 0 3px 0 #7e1822;
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0.06em;
  transform: translateX(-50%);
}

.game-quick-target-tap .quick-target:focus-visible { outline: 4px solid #fff; outline-offset: 9px; }
.game-quick-target-tap .quick-target.is-hit { pointer-events: none; animation: quick-target-hit 460ms cubic-bezier(.16, .72, .24, 1) both; }
.game-quick-target-tap .quick-target.is-missed { pointer-events: none; animation: quick-target-missed 210ms ease-in both; }

.game-quick-target-tap .quick-target.is-hit .quick-target__beam,
.game-quick-target-tap .quick-target.is-hit .quick-target__timer,
.game-quick-target-tap .quick-target.is-hit .quick-target__halo,
.game-quick-target-tap .quick-target.is-hit > strong { animation: popcorn-target-chrome-clear 170ms ease-out both; }

.game-quick-target-tap .quick-target.is-hit .quick-target__core { animation: popcorn-core-burst 430ms cubic-bezier(.18, .78, .24, 1) both; }

.game-quick-target-tap .quick-target__burst {
  position: absolute; z-index: 20; top: 50%; left: 50%; width: 0; height: 0;
  opacity: 0; pointer-events: none;
}

.game-quick-target-tap .quick-target.is-hit .quick-target__burst { opacity: 1; }

.game-quick-target-tap .quick-target__shockwave,
.game-quick-target-tap .quick-target__flash {
  position: absolute; top: 0; left: 0; border-radius: 50%; pointer-events: none;
}

.game-quick-target-tap .quick-target__shockwave {
  width: 76px; height: 76px; border: 4px solid #ffe68d;
  box-shadow: 0 0 0 3px #ffb52d70, 0 0 28px #ffd45ac7, inset 0 0 20px #fff7c4a6;
  transform: translate(-50%, -50%) scale(.28);
}

.game-quick-target-tap .quick-target__shockwave::after {
  position: absolute; inset: 8px; border: 2px solid #fff7ce; border-radius: inherit; content: "";
}

.game-quick-target-tap .quick-target.is-hit .quick-target__shockwave { animation: popcorn-butter-shockwave 440ms ease-out both; }

.game-quick-target-tap .quick-target__flash {
  width: 58px; height: 58px;
  background: radial-gradient(circle, #fff 0 12%, #fff4a4 13% 35%, #ffc431c7 36% 57%, transparent 70%);
  filter: drop-shadow(0 0 14px #fff0a5); transform: translate(-50%, -50%) scale(.25);
}

.game-quick-target-tap .quick-target.is-hit .quick-target__flash { animation: popcorn-butter-flash 300ms ease-out both; }

.game-quick-target-tap .quick-target__kernel {
  --kernel-x: 0px; --kernel-y: -48px; --kernel-spin: 140deg;
  position: absolute; top: -8px; left: -8px; width: 16px; height: 15px;
  border: 1px solid #e79b1b; opacity: 0;
  background: radial-gradient(circle at 36% 27%, #fffce2 0 21%, #ffe886 22% 55%, #f2b22b 73%);
  box-shadow: 0 2px 0 #b66b18, 0 0 8px #ffd45a;
  clip-path: polygon(50% 0, 67% 22%, 92% 14%, 82% 45%, 100% 64%, 70% 75%, 61% 100%, 41% 81%, 13% 94%, 18% 64%, 0 46%, 29% 31%, 25% 7%);
  transform: translate(0, 0) scale(.35) rotate(0);
}

.game-quick-target-tap .quick-target.is-hit .quick-target__kernel { animation: popcorn-kernel-flight 460ms cubic-bezier(.15, .7, .32, 1) both; }
.game-quick-target-tap .quick-target__kernel--1 { --kernel-x: -57px; --kernel-y: -31px; --kernel-spin: -170deg; }
.game-quick-target-tap .quick-target__kernel--2 { --kernel-x: -26px; --kernel-y: -55px; --kernel-spin: 120deg; }
.game-quick-target-tap .quick-target__kernel--3 { --kernel-x: 9px; --kernel-y: -62px; --kernel-spin: 210deg; }
.game-quick-target-tap .quick-target__kernel--4 { --kernel-x: 48px; --kernel-y: -38px; --kernel-spin: -130deg; }
.game-quick-target-tap .quick-target__kernel--5 { --kernel-x: 61px; --kernel-y: 1px; --kernel-spin: 180deg; }
.game-quick-target-tap .quick-target__kernel--6 { --kernel-x: 42px; --kernel-y: 39px; --kernel-spin: -210deg; }
.game-quick-target-tap .quick-target__kernel--7 { --kernel-x: 3px; --kernel-y: 55px; --kernel-spin: 145deg; }
.game-quick-target-tap .quick-target__kernel--8 { --kernel-x: -48px; --kernel-y: 35px; --kernel-spin: -125deg; }

.game-quick-target-tap .quick-target.is-hit::before {
  position: absolute;
  z-index: 12;
  inset: -24px;
  background: conic-gradient(from 0deg, transparent 0 8deg, #ffd45a 9deg 15deg, transparent 16deg 36deg);
  clip-path: polygon(50% 0, 58% 34%, 85% 15%, 67% 42%, 100% 50%, 67% 58%, 85% 85%, 58% 66%, 50% 100%, 42% 66%, 15% 85%, 33% 58%, 0 50%, 33% 42%, 15% 15%, 42% 34%);
  content: "";
  animation: popcorn-star-pop 190ms ease-out both;
  pointer-events: none;
}

.game-quick-target-tap .quick-target.is-missed::after {
  position: absolute;
  z-index: 11;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, #d8cab8 0 18%, #7e8790 38%, transparent 70%);
  content: "";
  animation: popcorn-steam-poof 210ms ease-out both;
  pointer-events: none;
}

.game-quick-target-tap .target-feedback {
  position: absolute;
  z-index: 12;
  top: calc(10% + var(--feedback-y, 50%));
  left: calc(7% + var(--feedback-x, 50%));
  margin: 0;
  padding: 6px 11px;
  border: 2px solid var(--target-ink);
  border-radius: 999px;
  opacity: 0;
  color: var(--target-ink);
  background: var(--target-cream);
  box-shadow: 0 5px 0 rgba(8, 17, 45, 0.34);
  font-size: 13px;
  font-weight: 1000;
  transform: translate(-50%, -80%);
  pointer-events: none;
}

.game-quick-target-tap[data-feedback="hit"] .target-feedback,
.game-quick-target-tap[data-feedback="miss"] .target-feedback { animation: quick-target-feedback 330ms ease-out both; }
.game-quick-target-tap[data-feedback="hit"] .target-feedback { color: #083646; background: #bdf8ff; }
.game-quick-target-tap[data-feedback="miss"] .target-feedback { color: #fff; background: var(--target-red); }

.game-quick-target-tap .game-overlay {
  position: absolute;
  z-index: 20;
  display: grid;
  inset: 0;
  place-items: center;
  padding: 18px;
  background: rgba(4, 11, 31, 0.42);
  backdrop-filter: blur(1px);
}

.game-quick-target-tap .game-overlay.hidden { display: none; }

.game-quick-target-tap .game-overlay-panel {
  position: relative;
  width: min(100%, 314px);
  padding: 17px 20px 20px;
  border: 3px solid var(--target-ink);
  border-radius: 22px 22px 15px 15px;
  color: var(--target-ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 38%), var(--target-cream);
  box-shadow: 0 0 0 4px var(--target-wood), 0 0 0 7px var(--target-gold), 0 14px 0 rgba(33, 12, 29, 0.36), 0 24px 38px rgba(2, 7, 23, 0.42);
  text-align: center;
}

.game-quick-target-tap .game-overlay-panel::before,
.game-quick-target-tap .game-overlay-panel::after {
  position: absolute;
  top: -10px;
  width: 34px;
  height: 18px;
  background: linear-gradient(135deg, var(--target-red) 0 50%, var(--target-gold) 51%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 50% 54%, 18% 100%);
  content: "";
}

.game-quick-target-tap .game-overlay-panel::before { left: 26px; }
.game-quick-target-tap .game-overlay-panel::after { right: 26px; transform: scaleX(-1); }

.game-quick-target-tap .target-ready-badge {
  display: inline-flex;
  padding: 6px 12px;
  border: 2px solid #fff1c2;
  border-radius: 999px;
  color: #fff;
  background: var(--target-red);
  box-shadow: 0 3px 0 #8f1820;
  font-size: 10px;
  font-weight: 950;
}

.game-quick-target-tap .target-ready-art {
  position: relative;
  width: 224px;
  height: 128px;
  margin: 9px auto 4px;
  overflow: hidden;
  border: 3px solid var(--target-ink);
  border-radius: 24px 24px 9px 9px;
  background: radial-gradient(circle at 50% 65%, rgba(255, 180, 51, 0.12), transparent 42%), linear-gradient(180deg, #0d1b2d, #03101f 82%);
  box-shadow: inset 0 -8px 0 var(--target-wood), inset 0 -11px 0 #d38c2b, 0 5px 0 rgba(16, 27, 63, 0.18);
}

.game-quick-target-tap .target-ready-awning {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 19px;
  border-bottom: 3px solid #d18a27;
  background: repeating-linear-gradient(90deg, #b82c24 0 25px, #f0c98d 25px 50px);
}

.game-quick-target-tap .target-ready-art::after {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 14px;
  left: 12px;
  height: 2px;
  opacity: .86;
  background: radial-gradient(circle at 8% 100%, #f2c77d 0 7px, transparent 8px), radial-gradient(circle at 20% 100%, #f2c77d 0 7px, transparent 8px), radial-gradient(circle at 87% 100%, #f2c77d 0 7px, transparent 8px), radial-gradient(circle at 98% 100%, #f2c77d 0 7px, transparent 8px);
  content: "";
}

.game-quick-target-tap .target-ready-ghost {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 2px dashed rgba(255, 188, 59, 0.34);
  border-radius: 50%;
}

.game-quick-target-tap .target-ready-ghost--one { top: 35px; left: 31px; }
.game-quick-target-tap .target-ready-ghost--two { top: 82px; left: 74px; }
.game-quick-target-tap .target-ready-ghost--three { top: 43px; right: 25px; }

.game-quick-target-tap .target-ready-popcorn {
  position: absolute;
  z-index: 5;
  top: 46px;
  left: 84px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px #ffb335) drop-shadow(0 5px 3px #020a19);
  animation: target-ready-relocate 3.6s steps(1, end) infinite;
}

.game-quick-target-tap .target-ready-popcorn img { width: 100%; height: 100%; object-fit: contain; }

.game-quick-target-tap .target-ready-tap-ring {
  position: absolute;
  z-index: 6;
  top: 41px;
  left: 79px;
  width: 66px;
  height: 66px;
  border: 3px solid #ffc85c;
  border-radius: 50%;
  animation: target-ready-tap 3.6s ease-out infinite;
}

.game-quick-target-tap .game-overlay-panel h2 { margin: 7px 0 4px; font-size: 28px; line-height: 1.02; }
.game-quick-target-tap .game-overlay-panel p { margin: 0 auto 14px; max-width: 242px; color: #615f6e; font-size: 13px; line-height: 1.35; }
.game-quick-target-tap .primary-cta { min-width: 116px; }
.game-quick-target-tap .countdown-value { color: var(--target-red); font-size: 68px; font-weight: 1000; text-shadow: 0 5px 0 #8f1820; }
.game-quick-target-tap .game-result-processing { min-height: 76px; }
.game-quick-target-tap.is-paused .target-field { filter: saturate(0.4); }

@keyframes quick-target-enter {
  0% { opacity: 0; transform: translate(var(--target-x), var(--target-y)) scale(0.4); }
  70% { opacity: 1; transform: translate(var(--target-x), var(--target-y)) scale(1.12); }
  100% { opacity: 1; transform: translate(var(--target-x), var(--target-y)) scale(1); }
}

@keyframes quick-target-countdown {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 176; }
}

@keyframes quick-target-halo {
  from { opacity: 0.72; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes quick-target-hit {
  0%, 82% { opacity: 1; transform: translate(var(--target-x), var(--target-y)) scale(1); }
  100% { opacity: 0; transform: translate(var(--target-x), var(--target-y)) scale(1.04); }
}

@keyframes quick-target-missed {
  0% { opacity: 1; transform: translate(var(--target-x), var(--target-y)) scale(1); }
  100% { opacity: 0; transform: translate(var(--target-x), var(--target-y)) scale(0.22); }
}

@keyframes popcorn-star-pop {
  0% { opacity: 0; transform: scale(.28) rotate(-12deg); } 34% { opacity: 1; transform: scale(1.28) rotate(5deg); } 100% { opacity: 0; transform: scale(1.92) rotate(17deg); }
}

@keyframes popcorn-target-chrome-clear { from { opacity: 1; } to { opacity: 0; } }

@keyframes popcorn-core-burst {
  0% { opacity: 1; filter: brightness(1); transform: scale(1); } 13% { opacity: 1; filter: brightness(1.08); transform: scale(.78, .7); } 31% { opacity: 1; filter: brightness(1.65); transform: scale(1.2); } 52%, 100% { opacity: 0; filter: brightness(2); transform: scale(1.48); }
}

@keyframes popcorn-butter-shockwave {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.28); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.62); }
}

@keyframes popcorn-butter-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.22); } 22% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

@keyframes popcorn-kernel-flight {
  0% { opacity: 0; transform: translate(0, 0) scale(.35) rotate(0); } 15% { opacity: 1; } 72% { opacity: 1; transform: translate(var(--kernel-x), var(--kernel-y)) scale(1) rotate(var(--kernel-spin)); } 100% { opacity: 0; transform: translate(var(--kernel-x), calc(var(--kernel-y) + 10px)) scale(.82) rotate(var(--kernel-spin)); }
}

@keyframes popcorn-steam-poof {
  0% { opacity: 0; transform: scale(.35) translateY(8px); }
  50% { opacity: .88; transform: scale(1) translateY(-3px); }
  100% { opacity: 0; transform: scale(1.45) translateY(-14px); }
}

@keyframes quick-target-feedback {
  0% { opacity: 0; transform: translate(-50%, -45%) scale(0.7); }
  25%, 70% { opacity: 1; transform: translate(-50%, -80%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(0.9); }
}

@keyframes target-ready-relocate {
  0%, 27%, 100% { opacity: 1; transform: translateX(0) scale(1); }
  28%, 60% { opacity: 1; transform: translateX(-54px) scale(1); }
  61%, 93% { opacity: 1; transform: translateX(54px) scale(1); }
  94% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes target-ready-tap {
  0%, 10%, 31%, 43%, 64%, 76%, 96%, 100% { opacity: 0; transform: translateX(0) scale(0.55); }
  14% { opacity: 0.9; transform: translateX(0) scale(0.8); }
  20% { opacity: 0; transform: translateX(0) scale(1.35); }
  36% { opacity: 0.9; transform: translateX(-54px) scale(0.8); }
  42% { opacity: 0; transform: translateX(-54px) scale(1.35); }
  69% { opacity: 0.9; transform: translateX(54px) scale(0.8); }
  75% { opacity: 0; transform: translateX(54px) scale(1.35); }
}

@media (max-width: 420px) {
  .game-quick-target-tap .game-stage { min-height: clamp(510px, 128vw, 655px); }
  .game-quick-target-tap .target-field { inset: 9% 6% 10%; }
}

@media (max-height: 620px) {
  .game-quick-target-tap .game-overlay { padding: 10px; }
  .game-quick-target-tap .game-overlay-panel { padding: 12px 16px 15px; }
  .game-quick-target-tap .target-ready-art { width: 194px; height: 96px; margin-top: 5px; }
  .game-quick-target-tap .target-ready-art::after { bottom: 7px; }
  .game-quick-target-tap .target-ready-popcorn { top: 29px; }
  .game-quick-target-tap .target-ready-tap-ring { top: 24px; }
  .game-quick-target-tap .target-ready-ghost--one { top: 27px; }
  .game-quick-target-tap .target-ready-ghost--two { top: 58px; }
  .game-quick-target-tap .target-ready-ghost--three { top: 31px; }
  .game-quick-target-tap .game-overlay-panel h2 { margin-top: 5px; font-size: 24px; }
  .game-quick-target-tap .game-overlay-panel p { margin-bottom: 9px; }
}
