/* === SPOT THE TIGER PAGE WRAPPER === */
.spot-game {
  max-width: 960px;
  margin: auto;
  padding: 0 16px;
}

.spot-game .tool-title,
.spot-game .meta {
  text-align: center;
}

.spot-game .game-section {
  padding: 20px 0;
  text-align: center;
}

/* === IMMERSIVE PAGE STATE === */
html.spot-scroll-lock,
body.spot-scroll-lock {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.spot-game-active #site-header,
body.spot-game-active #site-footer {
  display: none !important;
}

/* === GAME SHELL === */
#spot-tiger-game,
#spot-tiger-game * {
  box-sizing: border-box;
}

#spot-tiger-game {
  --spot-ink: #102014;
  --spot-muted: #66715f;
  --spot-line: rgba(28, 55, 31, 0.16);
  --spot-panel: rgba(255, 255, 255, 0.95);
  --spot-green: #1f7a3b;
  --spot-green-dark: #14512a;
  --spot-amber: #f59e0b;
  --spot-red: #dc2626;
  --spot-blue: #2563eb;

  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  color: var(--spot-ink);
  font-family: inherit;
}

#spot-tiger-game.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(160deg, rgba(14, 35, 20, 0.96), rgba(26, 75, 38, 0.96)),
    #102014;
}

#spot-tiger-game .spot-hidden {
  display: none !important;
}

#spot-tiger-game button {
  font: inherit;
}

/* === MENU === */
#spot-tiger-game .spot-menu {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  border: 1px solid var(--spot-line);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(244, 250, 239, 0.98), rgba(255, 255, 255, 0.98)),
    #f7faf4;
  box-shadow: 0 18px 38px rgba(13, 35, 18, 0.1);
}

#spot-tiger-game .spot-menu-content {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

#spot-tiger-game .spot-kicker {
  margin: 0;
  color: var(--spot-green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#spot-tiger-game .spot-menu-title,
#spot-tiger-game .spot-overlay-card h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

#spot-tiger-game .spot-menu-copy,
#spot-tiger-game .spot-overlay-copy {
  max-width: 460px;
  margin: 0;
  color: var(--spot-muted);
  font-size: 15px;
  line-height: 1.55;
}

#spot-tiger-game .spot-difficulty-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

#spot-tiger-game .spot-difficulty-btn,
#spot-tiger-game .spot-btn,
#spot-tiger-game .spot-icon-btn {
  min-height: 44px;
  border: 1px solid var(--spot-line);
  border-radius: 12px;
  background: #fff;
  color: var(--spot-ink);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

#spot-tiger-game .spot-difficulty-btn {
  min-width: 96px;
  padding: 8px 16px;
}

#spot-tiger-game .spot-difficulty-btn:hover,
#spot-tiger-game .spot-btn:hover,
#spot-tiger-game .spot-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 37, 17, 0.12);
}

#spot-tiger-game .spot-difficulty-btn.is-active,
#spot-tiger-game .spot-btn-primary {
  background: var(--spot-green);
  border-color: var(--spot-green);
  color: #fff;
}

#spot-tiger-game .spot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 10px 18px;
}

#spot-tiger-game .spot-btn-soft {
  background: #f3f6ef;
}

#spot-tiger-game .spot-menu-result {
  width: min(100%, 480px);
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
  border: 1px solid var(--spot-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--spot-muted);
  font-weight: 700;
  line-height: 1.4;
}

#spot-tiger-game .spot-last-result {
  width: 100%;
  display: grid;
  gap: 10px;
}

#spot-tiger-game .spot-last-title {
  color: var(--spot-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

#spot-tiger-game .spot-last-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#spot-tiger-game .spot-last-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f8faf5;
}

#spot-tiger-game .spot-last-grid strong {
  max-width: 100%;
  color: var(--spot-ink);
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#spot-tiger-game .spot-last-grid span {
  color: var(--spot-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* === FULLSCREEN PLAY === */
#spot-tiger-game .spot-play {
  position: relative;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
}

#spot-tiger-game .spot-hud {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(110px, 1.2fr) auto;
  gap: 6px;
  align-items: stretch;
  width: min(calc(100% - 20px), 540px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(6, 22, 12, 0.52);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#spot-tiger-game .spot-hud-item {
  min-width: 0;
  min-height: 48px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.16);
}

#spot-tiger-game .spot-hud-label {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

#spot-tiger-game .spot-hud-value {
  max-width: 100%;
  color: #fff;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#spot-tiger-game .spot-icon-btn {
  min-width: 82px;
  padding: 0 14px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

#spot-tiger-game .spot-play-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#spot-tiger-game .spot-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #14351f;
  box-shadow: none;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

#spot-tiger-game .spot-jungle-picture {
  width: 100%;
  height: 100%;
  display: block;
}

#spot-tiger-game #jungle {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

#spot-tiger-game .tiger {
  position: absolute;
  z-index: 3;
  width: clamp(48px, 8vmin, 82px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  transition:
    opacity 0.08s ease,
    transform 0.12s ease,
    filter 0.12s ease;
  will-change: left, top, opacity, transform;
}

#spot-tiger-game .tiger.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  filter:
    drop-shadow(0 0 8px rgba(255, 229, 122, 0.95))
    drop-shadow(0 0 18px rgba(245, 158, 11, 0.82))
    drop-shadow(0 0 30px rgba(22, 163, 74, 0.38));
  animation: spotTigerPulse 0.28s ease-out;
}

#spot-tiger-game .tiger.is-hit {
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1.18);
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 20px rgba(245, 158, 11, 0.85));
}

@keyframes spotTigerPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    filter:
      drop-shadow(0 0 4px rgba(255, 229, 122, 0.75))
      drop-shadow(0 0 10px rgba(245, 158, 11, 0.55));
  }

  60% {
    transform: translate(-50%, -50%) scale(1.14);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

#spot-tiger-game .spot-feedback {
  position: absolute;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 4;
  min-width: 150px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--spot-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

#spot-tiger-game .spot-feedback:empty {
  opacity: 0;
}

/* === OVERLAYS === */
#spot-tiger-game .spot-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  overflow: auto;
  background: rgba(9, 22, 12, 0.74);
  backdrop-filter: blur(5px);
}

#spot-tiger-game .spot-orientation {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background:
    linear-gradient(160deg, rgba(8, 25, 13, 0.94), rgba(19, 72, 34, 0.96)),
    #102014;
  color: #fff;
  text-align: center;
}

#spot-tiger-game .spot-orientation-card {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
}

#spot-tiger-game .spot-rotate-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  color: var(--spot-green-dark);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

#spot-tiger-game .spot-orientation h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

#spot-tiger-game .spot-orientation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

#spot-tiger-game .spot-ready {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  pointer-events: none;
}

#spot-tiger-game .spot-ready-card {
  min-width: 190px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--spot-ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

#spot-tiger-game .spot-ready-card p,
#spot-tiger-game .spot-ready-card span {
  margin: 0;
  color: var(--spot-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
}

#spot-tiger-game .spot-ready-card strong {
  font-size: clamp(54px, 10vw, 86px);
  line-height: 0.95;
}

#spot-tiger-game .spot-overlay-card {
  width: min(100%, 540px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: var(--spot-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

#spot-tiger-game .spot-overlay-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

#spot-tiger-game .spot-final-result {
  width: 100%;
}

#spot-tiger-game .spot-score-main {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

#spot-tiger-game .spot-score-main strong {
  color: var(--spot-green-dark);
  font-size: clamp(42px, 10vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

#spot-tiger-game .spot-score-main span {
  color: var(--spot-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

#spot-tiger-game .spot-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#spot-tiger-game .spot-result-item {
  min-height: 74px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--spot-line);
  border-radius: 14px;
  background: #f8faf5;
}

#spot-tiger-game .spot-result-item strong {
  max-width: 100%;
  color: var(--spot-ink);
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#spot-tiger-game .spot-result-item span {
  color: var(--spot-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

#spot-tiger-game .spot-result-item.is-perfect strong { color: #16a34a; }
#spot-tiger-game .spot-result-item.is-close strong { color: var(--spot-amber); }
#spot-tiger-game .spot-result-item.is-miss strong { color: var(--spot-red); }
#spot-tiger-game .spot-result-item.is-time strong { color: var(--spot-blue); }
#spot-tiger-game .spot-result-item.is-combo strong { color: var(--spot-red); }

/* === RESPONSIVE GAMEPLAY === */
@media (max-width: 680px) {
  #spot-tiger-game .spot-menu {
    min-height: 380px;
    border-radius: 16px;
  }

  #spot-tiger-game .spot-hud {
    grid-template-columns: minmax(72px, 1fr) minmax(84px, 1.15fr) auto;
    width: min(calc(100% - 16px), 500px);
  }

  #spot-tiger-game .spot-icon-btn {
    min-width: 72px;
  }

  #spot-tiger-game .spot-stage {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #spot-tiger-game .spot-overlay-actions .spot-btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 420px) {
  #spot-tiger-game.is-fullscreen {
    padding: 0;
  }

  #spot-tiger-game .spot-hud {
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }

  #spot-tiger-game .spot-hud-item {
    min-height: 48px;
    padding: 5px 6px;
  }

  #spot-tiger-game .spot-result-grid {
    gap: 8px;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  #spot-tiger-game.is-fullscreen {
    padding: 0;
  }

  #spot-tiger-game .spot-hud {
    grid-template-columns: minmax(74px, 1fr) minmax(96px, 1.2fr) auto;
    width: min(calc(100% - 16px), 480px);
    gap: 6px;
    padding: 6px;
  }

  #spot-tiger-game .spot-hud-item {
    min-height: 42px;
    padding: 4px 6px;
  }

  #spot-tiger-game .spot-hud-label {
    font-size: 10px;
  }

  #spot-tiger-game .spot-hud-value {
    font-size: 15px;
  }

  #spot-tiger-game .spot-icon-btn {
    min-width: 74px;
    min-height: 42px;
    padding: 0 10px;
  }

  #spot-tiger-game .spot-stage {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #spot-tiger-game .spot-overlay-card {
    width: min(100%, 620px);
    gap: 10px;
    padding: 14px;
  }

  #spot-tiger-game .spot-overlay-card h2 {
    font-size: 28px;
  }

  #spot-tiger-game .spot-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  #spot-tiger-game .spot-result-item {
    min-height: 58px;
    padding: 8px 6px;
  }

  #spot-tiger-game .spot-result-item strong {
    font-size: 16px;
  }

  #spot-tiger-game .spot-score-main {
    margin-bottom: 8px;
  }

  #spot-tiger-game .spot-score-main strong {
    font-size: 42px;
  }
}

@media (orientation: landscape) and (max-height: 760px) {
  #spot-tiger-game .spot-overlay {
    padding:
      max(8px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  #spot-tiger-game .spot-score-card {
    width: min(100%, 760px);
    max-height: calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: hidden;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 16px;
  }

  #spot-tiger-game .spot-score-card .spot-kicker {
    font-size: 11px;
  }

  #spot-tiger-game .spot-score-card h2 {
    font-size: clamp(28px, 7vh, 42px);
  }

  #spot-tiger-game .spot-score-card .spot-score-main {
    gap: 0;
    margin-bottom: 4px;
  }

  #spot-tiger-game .spot-score-card .spot-score-main strong {
    font-size: clamp(38px, 10vh, 56px);
  }

  #spot-tiger-game .spot-score-card .spot-score-main span {
    font-size: 11px;
  }

  #spot-tiger-game .spot-score-card .spot-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  #spot-tiger-game .spot-score-card .spot-result-item {
    min-height: 54px;
    padding: 7px 6px;
    border-radius: 12px;
  }

  #spot-tiger-game .spot-score-card .spot-result-item strong {
    font-size: 16px;
  }

  #spot-tiger-game .spot-score-card .spot-result-item span {
    font-size: 10px;
  }

  #spot-tiger-game .spot-score-card .spot-overlay-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }

  #spot-tiger-game .spot-score-card .spot-btn {
    min-width: 118px;
    min-height: 40px;
    padding: 8px 12px;
  }
}

@media (orientation: landscape) and (max-height: 460px) {
  #spot-tiger-game .spot-score-card {
    gap: 6px;
    padding: 8px 14px;
  }

  #spot-tiger-game .spot-score-card h2 {
    font-size: 28px;
  }

  #spot-tiger-game .spot-score-card .spot-score-main strong {
    font-size: 36px;
  }

  #spot-tiger-game .spot-score-card .spot-result-item {
    min-height: 48px;
    padding: 5px 5px;
  }
}

@media (min-width: 760px) {
  #spot-tiger-game .spot-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === CONTENT SECTIONS === */
.spot-game .info-box {
  max-width: 720px;
  margin: auto;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.spot-game .steps {
  list-style: none;
  padding: 0;
}

.spot-game .steps li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.spot-game .white-section {
  margin-bottom: 24px;
}

.spot-game .white-section:last-of-type {
  margin-bottom: 48px;
}
