* {
  box-sizing: border-box;
}

:root {
  --neo-bg: #060a13;
  --neo-panel: rgba(8, 14, 24, .65);
  --neo-border: #0ff;
  --neo-border-2: #8aff00;
  --neo-accent: #ff2eac;
  --neo-text: #e8f7ff;
  --neo-muted: #8aa6c7;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Press Start 2P", "Silkscreen", monospace;
  color: var(--ink);
}

body {
  background: radial-gradient(1200px 800px at 20% 10%,
      #12224a 0%,
      #0c1230 50%,
      #07081a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== NEON BUTTONS + CLEAN LAYOUT ===== */

/* Font scaling için CSS custom properties */
:root {
  --base-font-size: 16px;
  --scale-factor: 1;
}

@media (max-width: 768px) {
  :root {
    --base-font-size: 14px;
    --scale-factor: 0.8;
  }
}

@media (max-width: 480px) {
  :root {
    --base-font-size: 12px;
    --scale-factor: 0.7;
  }

  body {
    overflow-y: auto;
  }

  canvas {
    overflow-y: auto;
  }

   .battle-overlay {
    overflow-y: auto;
   }
}

body {
  font-size: var(--base-font-size);
}

.pixel-btn {
  font-size: calc(var(--base-font-size) * var(--scale-factor));
}

/* Ortak ayarlar */
.btn,
.pixel-btn {
  --glow: rgba(0, 255, 255, .35);
  --border: rgba(0, 255, 255, .55);
  --bg: rgba(10, 16, 28, .6);
  --txt: #e8f7ff;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .8rem 1.2rem;
  min-width: 260px;
  /* büyük butonlar için sabit genişlik */
  border: 2px solid var(--border);
  border-radius: 10px;

  background: linear-gradient(180deg, rgba(12, 22, 36, .85), rgba(8, 14, 24, .6));
  color: var(--txt);
  text-shadow: 0 0 6px rgba(0, 0, 0, .6);

  box-shadow:
    0 0 18px var(--glow),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 6px 0 rgba(0, 0, 0, .7);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}

.warning-p {
  color: #ff6f91;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
}

.btn:hover,
.pixel-btn:hover {
  box-shadow:
    0 0 26px var(--glow),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 10px 18px rgba(0, 0, 0, .55);
  filter: saturate(1.2);
}

.btn:active,
.pixel-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 0 16px var(--glow),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 2px 0 rgba(0, 0, 0, .8);
}

/* Varyantlar (aynı sınıfları kullanıyoruz) */
.pixel-btn.primary,
.btn.primary {
  --glow: rgba(0, 255, 255, .45);
  --border: #00eaff;
  background: radial-gradient(160% 120% at 50% -40%, rgba(0, 240, 255, .28), rgba(8, 14, 24, .75));
}

.pixel-btn.success,
.btn.success {
  --glow: rgba(138, 255, 0, .45);
  --border: #8aff00;
  background: radial-gradient(160% 120% at 50% -40%, rgba(138, 255, 0, .22), rgba(8, 14, 24, .75));
}

.pixel-btn.danger,
.btn.danger {
  --glow: rgba(255, 46, 172, .45);
  --border: #ff2eac;
  background: radial-gradient(160% 120% at 50% -40%, rgba(255, 46, 172, .22), rgba(8, 14, 24, .75));
}

/* Ghost/disabled */
.btn.ghost,
.pixel-btn.ghost,
.btn[disabled],
.pixel-btn[disabled] {
  opacity: .45;
  cursor: default;
  filter: grayscale(.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, .05), 0 4px 0 rgba(0, 0, 0, .6);
}

/* Buton sırası: merkezde, düzenli aralık */
.panel .row.center {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}

/* Sort bölümünü hizala ve neon kenarla uyumlu yap */
#sortControls,
#sortControlsStart {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.sortSel,
.pixel-input,
select {
  min-width: 220px;
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 2px solid rgba(0, 255, 255, .35);
  background: rgba(8, 14, 24, .7);
  color: #8aa6c7;
  box-shadow: inset 0 0 8px rgba(0, 255, 255, .12);
}



/* “Retry / Send” butonlarını öne çıkar */
#retryBtn {
  border-color: #8aff00;
  box-shadow: 0 0 22px rgba(138, 255, 0, .35), 0 6px 0 rgba(0, 0, 0, .7);
}

#sendBtnOver {
  border-color: #00eaff;
  box-shadow: 0 0 22px rgba(0, 255, 255, .35), 0 6px 0 rgba(0, 0, 0, .7);
}

/* Panel içindeki tipografinin kontrastını artır */
.panel .score-title,
.panel .gb-h2,
.panel .gb-h3,
.panel .score-row b {
  letter-spacing: 1px;
  color: #8aa6c7;
}

.panel .score-row span {
  color: #8aa6c7;
}

/* Panel kenarını biraz daha belirginleştir */
.panel,
.gb-panel {
  border-color: rgba(0, 255, 255, .28);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, .12) inset,
    0 0 24px rgba(0, 255, 255, .22),
    0 12px 28px rgba(0, 0, 0, .45);
}

.synth-bg {
  background: radial-gradient(1200px 800px at 20% 10%,
      #12224a 0%,
      #0c1230 50%,
      #07081a 100%);
}

#gameWrap {
  position: relative;
  width: min(100vw, 900px);
}

#game {
  display: block;
  width: min(100vw, 900px);
  height: auto;
  max-height: 95vh;
  aspect-ratio: 1/1;
  box-shadow: 0 10px 30px var(--shadow);
  border-radius: 0;
  background: transparent;
  z-index: 0;
}

canvas {
  display: block;
  background: radial-gradient(1200px 800px at 20% 10%,
      #12224a 0%,
      #0c1230 50%,
      #07081a 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

#hudWrap {
  position: fixed;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 95vw);
  pointer-events: none;
  z-index: 20;
}

#hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.pixel-hud-center {
  justify-self: center;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 4px solid #111827;
  padding: 0.2rem 0.6rem;
  font-weight: 800;
}

.pixel-hud-left {
  justify-self: start;
  pointer-events: auto;
  display: flex;
  gap: 4px;
}

.pixel-hud-right {
  justify-self: end;
  display: flex;
  gap: 6px;
  align-items: center;
  background: #fff;
  border: 4px solid #111827;
  padding: 0.2rem 0.6rem;
  pointer-events: auto;
}

#hudPower {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 4px solid #111827;
  padding: 0.2rem 0.6rem;
  font-weight: 800;
}

.heartSvg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
}

body.in-battle #hudWrap {
  position: fixed;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 95vw);
  pointer-events: none;
  z-index: 20;
}

.overlay {
  background: radial-gradient(1000px 700px at 50% 10%, rgba(10, 18, 30, .65), rgba(3, 6, 12, .88));
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.overlay.show {
  display: flex;

}

.panel,
.gb-panel {
  background: var(--neo-panel);
  color: var(--neo-text);
  border-radius: 12px;
  border: 2px solid rgba(0, 255, 255, .35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, .15) inset,
    0 0 22px rgba(0, 255, 255, .25),
    0 12px 28px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px) saturate(120%);
}

.gb-h2,
.gb-h3 {
  color: var(--neo-text);
  text-shadow: 0 0 18px rgba(0, 255, 255, .35);
  letter-spacing: 2px;
}

/* Score kutuları: cam + neon kenar */
.score-col {
  background: rgba(10, 16, 28, .35);
  border: 1.5px solid rgba(0, 255, 255, .35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, .15) inset,
    0 8px 20px rgba(0, 0, 0, .45);
  color: var(--neo-text);
}

.score-title {
  color: var(--neo-muted);
}

/* HUD’ı neon cam bar yap */
#hud {
  background: rgba(8, 14, 24, .55);
  border: 1.5px solid rgba(0, 255, 255, .35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, .15) inset,
    0 8px 20px rgba(0, 0, 0, .45);
  color: var(--neo-text);
}

.pixel-hud-center,
.pixel-hud-right,
#hudPower {
  background: rgba(8, 14, 24, .6);
  border: 1.5px solid rgba(0, 255, 255, .35);
  color: var(--neo-text);
  box-shadow: 0 0 14px rgba(0, 255, 255, .2);
}

/* Butonlar: üç ana neon tonu */
.pixel-btn,
.btn {
  background: rgba(10, 16, 28, .6);
  color: var(--neo-text);
  border: 2px solid rgba(0, 255, 255, .45);
  box-shadow:
    0 0 12px rgba(0, 255, 255, .25),
    0 4px 0 rgba(0, 0, 0, .7);
}

.pixel-btn.primary {
  /* mavi/cyan */
  background: rgba(0, 255, 255, .12);
  border-color: var(--neo-border);
  box-shadow: 0 0 18px rgba(0, 255, 255, .35), 0 4px 0 rgba(0, 0, 0, .7);
}

.pixel-btn.success {
  /* lime */
  background: rgba(138, 255, 0, .12);
  border-color: var(--neo-border-2);
  box-shadow: 0 0 18px rgba(138, 255, 0, .35), 0 4px 0 rgba(0, 0, 0, .7);
}

.pixel-btn.danger {
  /* magenta */
  background: rgba(255, 46, 172, .12);
  border-color: var(--neo-accent);
  box-shadow: 0 0 18px rgba(255, 46, 172, .35), 0 4px 0 rgba(0, 0, 0, .7);
}

.btn.ghost {
  opacity: .45;
}

/* Input/Select (karanlık alan, neon border) */
.pixel-input,
.sortSel,
select {
  background: rgba(8, 14, 24, .7);
  color: #506b8b;
  border: 2px solid rgba(0, 255, 255, .35);
  box-shadow: 0 0 12px rgba(0, 255, 255, .2) inset, 0 4px 0 rgba(0, 0, 0, .6);
}

.pixel-input::placeholder {
  color: var(--neo-muted);
}

/* “PRESS START” vs. neon parıltı */
.press-start {
  color: var(--neo-text);
  text-shadow: 0 0 10px rgba(0, 255, 255, .45), 0 0 24px rgba(0, 255, 255, .25);
}

/* Pokedex kartları: gri değil neon hafif */
.dex .card {
  background: rgba(8, 14, 24, .6);
  color: #8aa6c7;
  margin-bottom: 3px;
  border: 1.5px solid rgba(0, 255, 255, .28);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, .12) inset, 0 6px 18px rgba(0, 0, 0, .55);
}

.dex .meta {
  color: var(--neo-muted);
}

.dex .thumb {
  background: rgba(8, 14, 24, .35);
  border-color: rgba(0, 255, 255, .25);
}

/* Corruption görsel çerçevesi neon */
.corrupt-visual img {
  background: rgba(8, 14, 24, .55);
  box-shadow: 0 0 20px rgba(255, 46, 172, .35), 0 6px 0 rgba(0, 0, 0, .6);
}

/* Küçük neon “nefes” animasyonu */
@keyframes neoPulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 255, 255, .25);
  }

  50% {
    box-shadow: 0 0 22px rgba(0, 255, 255, .45);
  }
}

.pixel-hud-center,
#hudPower {
  animation: neoPulse 2.6s ease-in-out infinite;
}

/* Canvas çerçevesi hafif neon */
#game {
  box-shadow:
    0 0 26px rgba(0, 255, 255, .18),
    0 18px 50px rgba(0, 0, 0, .55);
  border: 1px solid rgba(0, 255, 255, .15);
}

/* Başlık/altbaşlık tipografisini netle */
.gb-title,
.gb-sub {
  color: #8aa6c7;
}


.panel {
  background: var(--panel);
  color: var(--ink);
  max-width: 720px;
  width: min(92vw, 720px);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px var(--shadow);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
}

.dex .card {
  border: 4px solid #111827;
  border-radius: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  background: #fff;
  box-shadow: 0 0 0 2px #fff inset, 0 6px 0 #111827;
}

.dex .thumb {
  width: 60px;
  height: 60px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dex .meta {
  font-size: 0.85rem;
  color: #555;
}

.dex .title {
  font-weight: 700;
  margin-bottom: 5px;
}

.dex .card.selectable {
  cursor: pointer;
  user-select: none;
  transition: transform 0.05s;
}

.dex .card.selected {
  outline: none;
  border: 6px solid #ffffff;
  box-shadow: 0 0 0 4px #0f380f, 0 6px 0 #0f380f;
  transform: translateY(-2px);
}

.battle-overlay {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 10;
}

.battle-overlay.show {
  display: block;
}

.pixel-panel {
  border: 4px solid #111827;
  border-radius: 0;
}

.pixel-btn,
.pixel-input,
.btn {
  border: 4px solid #111827;
  border-radius: 0;
  font-weight: 800;
  box-shadow: 0 4px 0 #111827;
  padding: 0.6rem 1rem;
  background: #fff;
  cursor: pointer;
}

.btn.ghost {
  opacity: 0.5;
  pointer-events: none;
}

.pixel-btn:active,
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #111827;
}

.pixel-btn.primary {
  background: #f59e0b;
}

.pixel-btn.success {
  background: #34d399;
}

.pixel-btn.danger {
  background: #f87171;
}

.pixel-input {
  flex: 1;
}

.battle-dialog {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  padding: 10px;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.85);
}

.battle-toi {
  position: absolute;
  left: 12px;
  right: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  display: none;
}

.batlle-top-menu {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.battle-top-player-menu {
  background: rgba(10, 20, 40, 0.95);
  border: 2px solid #00ffff;
  border-radius: 8px;
  padding: 10px;
  margin: 0 auto;
  box-shadow: 0 0 15px #00ffff;
  color: #fff;
  flex: 1;
}

.game-title {
  color: white;
  text-align: center;
  font-size: 24px;
}

.top-menu-p {
  margin: 0;
}

.ballIcon {
  margin-bottom: 3px;
}

.ball-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 10px;
}

.battle-top-text-container {
  display: flex;
  align-items: center;
}

.dialog-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.battle-dialog .dialog-row {
  display: flex;
  width: 100%;
}

.capture-button {
  width: 100%;
}



.sortSel {
  font-weight: 800;
  border: 4px solid #111827;
  background: #fff;
  box-shadow: 0 4px 0 #111827;
  border-radius: 0;
  padding: 0.2rem 0.4rem;
}

.gb-panel {
  border-radius: 0;
  text-align: center;
}

.gb-title {
  font-family: monospace;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #306230;
  margin-top: 4px;
}

.gb-sub {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.press-start {
  font-family: monospace;
  margin: 10px 0 12px;
  font-weight: 800;
}

.blink {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.gb-btn {
  background: #9bbc0f;
  color: #0f380f;
  border-color: #0f380f;
  box-shadow: 0 4px 0 #0f380f;
}

.gb-h2,
.gb-h3 {
  font-family: monospace;
  letter-spacing: 1px;
}

.gb-details summary {
  font-family: monospace;
  cursor: pointer;
}

/* GB style for battle panels */
.battle-overlay .pixel-panel {
  box-shadow: inset 0 0 0 6px #306230, 0 6px 0 #0f380f;
  background: rgba(10, 20, 40, 0.95);
  border: 2px solid #00ffff;
  border-radius: 8px;
  padding: 20px;
  margin: 0 auto;
  box-shadow: 0 0 15px #00ffff;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  /* pixel font */
}

.battle-overlay .pixel-btn,
.battle-overlay .pixel-input {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #00e5ff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 4px;
  outline: none;
  box-shadow: inset 0 0 8px rgba(0, 229, 255);
}

.battle-overlay .pixel-btn {
  flex: 1;
}



/* Retro 8-bit HUD bar at bottom */
.pixel-hud-bar {
  background: var(--gb4);
  border: 4px solid var(--gb1);
  box-shadow: 0 4px 0 var(--gb1);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  image-rendering: pixelated;
}

#hud {
  background: var(--gb4);
  border: 4px solid var(--gb1);
  box-shadow: 0 4px 0 var(--gb1);
  padding: 6px 10px;
  border-radius: 0;
}

#hud .pixel-hud-left,
#hud .pixel-hud-center,
#hud .pixel-hud-right {
  pointer-events: auto;
}

#score {
  font-weight: 800;
}

#balls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-title {
  width: min(78vw, 520px);
  image-rendering: pixelated;
}

.row.center {
  justify-content: center;
}

/* Details / Collection look */
.dex .card {
  image-rendering: pixelated;
}

img {
  image-rendering: pixelated;
}

/* --- Scoreboard layout --- */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 0 16px;
}

.score-col {
  border: 4px solid var(--gb1);
  box-shadow: 0 4px 0 var(--gb1);
  padding: 10px;
  background: var(--gb4);
}

.score-title {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 800;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.score-row span {
  opacity: 0.9;
}

/* Corruption overlay */
.corrupt-visual img {
  image-rendering: pixelated;
  width: 128px;
  height: 128px;
  padding: 5px;
  box-shadow: 0 0 0 4px var(--gb1), 0 6px 0 var(--gb1);
  background: var(--gb4);
}

/* START butonu için özel neon stil */
#startBtn {
  --glow: rgba(0, 191, 255, .55);
  --border: #00bfff;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(0, 191, 255, .35), rgba(8, 14, 24, .8));

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1.2rem 2.4rem;
  min-width: 280px;
  border: 3px solid var(--border);
  border-radius: 12px;

  background: var(--bg-gradient);
  color: #e8f7ff;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 191, 255, .6), 0 0 16px rgba(0, 191, 255, .3);

  box-shadow:
    0 0 25px var(--glow),
    0 0 50px rgba(0, 191, 255, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 8px 0 rgba(0, 0, 0, .8),
    0 12px 25px rgba(0, 0, 0, .6);

  transform: translateY(0);
  transition: all .12s ease;
  cursor: pointer;
}

#startBtn:hover {
  --glow: rgba(0, 191, 255, .75);

  box-shadow:
    0 0 35px var(--glow),
    0 0 70px rgba(0, 191, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .15),
    0 12px 0 rgba(0, 0, 0, .8),
    0 18px 35px rgba(0, 0, 0, .7);

  filter: saturate(1.3) brightness(1.1);
  text-shadow: 0 0 12px rgba(0, 191, 255, .8), 0 0 24px rgba(0, 191, 255, .4);
}

#startBtn:active {
  transform: translateY(4px);

  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(0, 191, 255, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 4px 0 rgba(0, 0, 0, .9),
    0 8px 15px rgba(0, 0, 0, .8);
}

/* START butonuna özel parıltı animasyonu */
#startBtn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg,
      transparent,
      rgba(0, 191, 255, .4),
      transparent,
      rgba(0, 191, 255, .4),
      transparent);
  border-radius: 14px;
  z-index: -1;
  animation: neonSweep 3s ease-in-out infinite;
}

@keyframes neonSweep {

  0%,
  100% {
    opacity: 0.3;
    transform: rotate(0deg);
  }

  50% {
    opacity: 0.8;
    transform: rotate(180deg);
  }
}

/* PRESS START yazısını da uyumlu yap */
.press-start {
  color: #e8f7ff;
  text-shadow:
    0 0 10px rgba(0, 191, 255, .6),
    0 0 20px rgba(0, 191, 255, .3),
    0 0 30px rgba(0, 191, 255, .15);
  animation: pressStartPulse 2s ease-in-out infinite;
}

.startScreen {
  overflow-y: hidden;
  overflow: hidden;
}

@keyframes pressStartPulse {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(0, 191, 255, .6),
      0 0 20px rgba(0, 191, 255, .3);
  }

  50% {
    text-shadow:
      0 0 15px rgba(0, 191, 255, .8),
      0 0 30px rgba(0, 191, 255, .5),
      0 0 45px rgba(0, 191, 255, .2);
  }
}

.game-title {
  color: #e8f7ff;
  text-shadow:
    0 0 12px rgba(0, 191, 255, .7),
    0 0 24px rgba(0, 191, 255, .4),
    0 0 36px rgba(0, 191, 255, .2);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Ensure full collection is visible on Start screen */
#startScreen .dex {
  max-height: 52vh;
  overflow: auto;
  padding-right: 6px;
}

#startScreen .gb-panel {
  max-height: 80vh;
  overflow: auto;
}

#sortControlsStart {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-menu-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Monster select dropdown (Start screen) */
#selectRowStart {
  align-items: center;
}

#selectRowStart label {
  margin-right: 8px;
}

#monsterSelectStart {
  flex: 1;
  padding: 8px;
  border: 4px solid #111827;
  box-shadow: 0 4px 0 #111827;
  background: #fff;
  font-family: inherit;
}

.personal-answers-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.personal-answers-container.show {
  display: flex;
}

.personal-answers-container .panel.pixel-panel.gb-panel {
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #00ffff;
  border-radius: 8px;
  box-shadow: 0 0 20px #00ffff;
  width: 600px;
  max-width: 90%;
  padding: 20px;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  /* pixel font */
  text-align: center;
  animation: scaleIn 0.2s ease-out;
}

.personal-answers-container .gb-h2 {
  color: #8aa6c7;
  font-size: 16px;
  margin-bottom: 20px;
}

.answer-title-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.answer-title {
  color: #8aa6c7;
  font-size: 12px;
}

.answers-list-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8aa6c7;
  font-size: 11px;
  text-align: left;
}

.questions-container,
.answers-container {
  max-height: 200px;
  overflow-y: auto;

}

#closePersonalBtn {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 4px;
  font-family: inherit;
  color: #000;
  text-transform: uppercase;
  box-shadow: 0 0 8px #00ffff;
  cursor: pointer;
  transition: 0.2s;
}

#closePersonalBtn:hover {
  background-color: #00cccc;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.monster-delete,
.monster-save {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 8px #00ffff;
  border: 2px solid;
}

.monster-save {
  background-color: #00ffff;
  border-color: #00ffff;
  color: #000;
}

.monster-save:hover {
  background-color: #00cccc;
}

.battle-top-player-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
  padding: 15px;
}

.monster-delete {
  background-color: #ff4b4b;
  border-color: #ff4b4b;
  color: #000;
  box-shadow: 0 0 8px #ff4b4b;
}

.monster-delete:hover {
  background-color: #ff1b1b;
}

/* Mobile için canvas'ı tamamen full screen yap */
@media (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    /* Scroll'u tamamen engelle */
  }

  #gameWrap {
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }

  #game {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    /* Kare oranını kaldır */
    object-fit: cover;
  }

  /* Battle overlay'i de full screen yap */
  .battle-overlay {
    padding: 8px !important;
    font-size: 12px !important;
    width: 100vw;
    height: 100vh;
  }

  /* HUD'ı mobil için ayarla */
  #hudWrap {
    width: 100vw !important;
    bottom: 10px !important;
  }
}

@media (max-width: 480px) {
  #gameWrap {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #game {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: unset !important;
  }

  .battle-overlay {
    padding: 4px !important;
    font-size: 10px !important;
    width: 100vw;
    height: 100vh;
  }

  .battle-top-player-menu {
    gap: 0px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {

  /* Landscape mode için de full screen */
  #gameWrap {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }

  #game {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: unset !important;
  }

  .battle-overlay {
    padding: 4px !important;
    max-height: 100vh;
    overflow-y: auto;
    width: 100vw;
    height: 100vh;
  }
}

@media (max-width: 768px) {

  /* Mobile Portrait */
  #gameWrap {
    width: min(100vw, 900px);
    height: auto;
    padding: 0;
  }

  #game {
    width: min(100vw, 900px) !important;
    height: auto !important;
    aspect-ratio: 1/1;
    max-height: 95vh;
  }

  .battle-overlay {
    padding: 10px;
    font-size: 14px;
  }

  .battle-top-menu {
    flex-direction: column;
    gap: 8px;
  }

  .battle-top-text-container {
    padding: 4px 8px;
  }

  .pixel-btn {
    font-size: 12px;
    padding: 4px 16px;
  }

  #battleAnswer {
    font-size: 16px;
  }
}

@media (max-width: 480px) {

  /* Mobile Portrait Small */
  #gameWrap {
    width: min(98vw, 900px);
    /* Biraz daha küçük ama yine sabit */
  }

  #game {
    width: min(98vw, 900px) !important;
  }

  .battle-overlay {
    font-size: 12px;
  }

  .battle-top-text-container {
    padding: 2px 4px;
  }

  .top-menu-icon {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {

  /* Mobile Landscape */
  #gameWrap {
    width: min(90vh, 900px);
    /* Landscape'de yüksekliğe göre ayarla */
    height: 90vh;
  }

  #game {
    width: min(90vh, 900px) !important;
    height: min(90vh, 900px) !important;
  }

  .battle-overlay {
    padding: 5px;
    font-size: 12px;
  }

  .battle-top-menu {
    flex-direction: row;
    justify-content: space-between;
  }

  .battle-top-player-menu {
    width: 100%;
    gap: 0px;
    padding: 10px;
  }
}


/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  #gameWrap {
    width: min(90vw, 900px);
    /* Tablet'te de sabit boyut */
    height: auto;
  }

  #game {
    width: min(90vw, 900px) !important;
    height: auto !important;
    aspect-ratio: 1/1;
  }
}

/* Battle Overlay Responsive İyileştirmesi */
@media (max-width: 768px) {
  .battle-overlay {
    padding: 8px !important;
    font-size: 12px !important;
  }

  /* Top menu için */
  .batlle-top-menu {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
  }

  .battle-top-player-menu {

    width: 100%;
    gap: 2px;
    padding: 7px;
  }

  .battle-top-text-container {
    min-width: 45%;
    padding: 2px 4px !important;
    margin: 1px;
  }

  .battle-top-text-container p {
    font-size: 10px !important;
    margin: 0;
    line-height: 1.2;
  }

  /* Icons için */
  .top-menu-icon {
    width: 21px !important;
    height: 21px !important;
  }

  /* Question area */
  .question-text {
    font-size: 14px !important;
    padding: 8px !important;
    line-height: 1.3;
  }

  /* Input ve buttons */
  #battleAnswer {
    font-size: 14px !important;
    padding: 4px 8px !important;
  }

  .pixel-btn {
    font-size: 11px !important;
    padding: 4px 12px !important;
  }

  /* Capture rate text */
  .capture-rate {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {

  /* Çok küçük ekranlar için */
  .battle-overlay {
    padding: 4px !important;
    font-size: 10px !important;
  }

  .battle-top-text-container {
    min-width: 48%;
    padding: 2px 2px !important;
  }

  .battle-top-text-container p {
    font-size: 9px !important;
  }

  .battle-top-player-menu {
    gap: 0px;
  }


  .question-text {
    font-size: 12px !important;
    padding: 6px !important;
  }

  .pixel-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {

  /* Landscape mode için */
  .battle-overlay {
    padding: 4px !important;
    max-height: 95vh;
    overflow-y: auto;
  }

  .batlle-top-menu {
    flex-direction: row !important;
    justify-content: space-between;
  }

  .battle-top-player-menu,
  .battle-top-monster-menu {
    width: 48%;
  }

  .battle-top-player-menu {
    gap: 0px;
  }

  .question-text {
    font-size: 12px !important;
    padding: 4px !important;
  }

  .pixel-btn {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }
}

/* Game over ekranındaki monster selection butonları için neon mavi stil */
#gameOver .pixel-btn,
#gameOver button {
  --glow: rgba(0, 191, 255, .55);
  --border: #00bfff;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(0, 191, 255, .35), rgba(8, 14, 24, .8));

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 1.6rem;
  border: 2px solid var(--border);
  border-radius: 8px;

  background: var(--bg-gradient);
  color: #e8f7ff;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 191, 255, .6), 0 0 12px rgba(0, 191, 255, .3);

  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(0, 191, 255, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 6px 0 rgba(0, 0, 0, .8),
    0 10px 20px rgba(0, 0, 0, .6);

  transform: translateY(0);
  transition: all .12s ease;
  cursor: pointer;
}

#gameOver .pixel-btn:hover,
#gameOver button:hover {
  --glow: rgba(0, 191, 255, .75);

  box-shadow:
    0 0 30px var(--glow),
    0 0 60px rgba(0, 191, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .15),
    0 10px 0 rgba(0, 0, 0, .8),
    0 15px 30px rgba(0, 0, 0, .7);

  filter: saturate(1.3) brightness(1.1);
  text-shadow: 0 0 10px rgba(0, 191, 255, .8), 0 0 20px rgba(0, 191, 255, .4);
}

#gameOver .pixel-btn:active,
#gameOver button:active {
  transform: translateY(3px);

  box-shadow:
    0 0 15px var(--glow),
    0 0 30px rgba(0, 191, 255, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 3px 0 rgba(0, 0, 0, .9),
    0 6px 12px rgba(0, 0, 0, .8);
}

/* Özel olarak RETRY ve SEND butonları için */
#retryBtn,
#sendBtnOver {
  --glow: rgba(0, 191, 255, .55);
  --border: #00bfff;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(0, 191, 255, .35), rgba(8, 14, 24, .8));

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 2rem;
  border: 2px solid var(--border);
  border-radius: 8px;

  background: var(--bg-gradient);
  color: #e8f7ff;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 191, 255, .6), 0 0 12px rgba(0, 191, 255, .3);

  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(0, 191, 255, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 6px 0 rgba(0, 0, 0, .8),
    0 10px 20px rgba(0, 0, 0, .6);

  transform: translateY(0);
  transition: all .12s ease;
  cursor: pointer;
}

#retryBtn:hover,
#sendBtnOver:hover {
  --glow: rgba(0, 191, 255, .75);

  box-shadow:
    0 0 30px var(--glow),
    0 0 60px rgba(0, 191, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .15),
    0 10px 0 rgba(0, 0, 0, .8),
    0 15px 30px rgba(0, 0, 0, .7);

  filter: saturate(1.3) brightness(1.1);
  text-shadow: 0 0 10px rgba(0, 191, 255, .8), 0 0 20px rgba(0, 191, 255, .4);
}

#retryBtn:active,
#sendBtnOver:active {
  transform: translateY(3px);

  box-shadow:
    0 0 15px var(--glow),
    0 0 30px rgba(0, 191, 255, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 3px 0 rgba(0, 0, 0, .9),
    0 6px 12px rgba(0, 0, 0, .8);
}

/* Ghost (disabled) state için */
#sendBtnOver.ghost {
  --glow: rgba(100, 100, 100, .3);
  --border: #666;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(100, 100, 100, .2), rgba(20, 20, 20, .8));

  color: #888;
  cursor: not-allowed;
  text-shadow: none;

  box-shadow:
    0 0 10px var(--glow),
    0 0 20px rgba(100, 100, 100, .15),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 4px 0 rgba(0, 0, 0, .6),
    0 8px 15px rgba(0, 0, 0, .5);
}

#sendBtnOver.ghost:hover {
  --glow: rgba(100, 100, 100, .3);
  filter: none;
  transform: translateY(0);
}

.answer-flee-button-container {
  display: flex;
  gap: 6px;
  width: 100%;
}

.battle-dialog-row {
  margin-bottom: 10px;
}

@media (max-width: 925px) {
  .battle-dialog-row {
    flex-wrap: wrap;
    margin-bottom: 5px;
  }
}

@media (max-width: 610px) {

  .btn,
  .pixel-btn {
    min-width: 110px;
  }

  .battle-overlay .pixel-panel {
    padding: 10px 20px;
  }
}

.battle-button {
  flex: 1;
}


/* Start Screen Responsive */
@media (max-width: 768px) {

  /* Mobile Portrait */
  .start-screen {
    padding: 10px !important;
    font-size: 12px !important;
  }

  .start-screen h1,
  .game-title {
    font-size: 24px !important;
    margin-bottom: 15px !important;
    line-height: 1.2;
    text-align: center;
  }

  .start-screen h2 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .start-screen p,
  .press-start {
    font-size: 10px !important;
    margin-bottom: 8px !important;
    line-height: 1.3;
  }

  /* Start butonunu mobil için küçült */
  #startBtn {
    padding: 0.8rem 1.6rem !important;
    min-width: 200px !important;
    font-size: 12px !important;
  }

  /* Monster selection dropdown'u */
  #monsterSelectStart {
    font-size: 10px !important;
    padding: 6px 8px !important;
    max-width: 250px !important;
    margin: 8px auto !important;
  }

  /* Collection/Pokedex başlangıç alanı */
  #pokedexStart {
    font-size: 10px !important;
    padding: 8px !important;
  }

  #pokedexStart .pixel-btn {
    font-size: 9px !important;
    padding: 4px 8px !important;
    margin: 2px !important;
  }
}

@media (max-width: 480px) {

  /* Mobile Portrait Small */
  .start-screen {
    padding: 5px !important;
    font-size: 10px !important;
  }

  .start-screen h1,
  .game-title {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }

  .start-screen h2 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .start-screen p,
  .press-start {
    font-size: 8px !important;
    margin-bottom: 6px !important;
  }

  #startBtn {
    padding: 0.6rem 1.2rem !important;
    min-width: 160px !important;
    font-size: 10px !important;
  }

  #monsterSelectStart {
    font-size: 8px !important;
    padding: 4px 6px !important;
    max-width: 200px !important;
  }

  #pokedexStart {
    font-size: 8px !important;
    padding: 4px !important;
  }

  #pokedexStart .pixel-btn {
    font-size: 7px !important;
    padding: 3px 6px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {

  /* Mobile Landscape */
  .start-screen {
    padding: 4px !important;
    font-size: 9px !important;
    max-height: 95vh;
    overflow-y: auto;
  }

  .start-screen h1,
  .game-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .start-screen h2 {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .start-screen p,
  .press-start {
    font-size: 7px !important;
    margin-bottom: 4px !important;
  }

  #startBtn {
    padding: 0.5rem 1rem !important;
    min-width: 140px !important;
    font-size: 9px !important;
  }

  #monsterSelectStart {
    font-size: 7px !important;
    padding: 3px 4px !important;
    max-width: 180px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .start-screen {
    padding: 15px !important;
    font-size: 14px !important;
  }

  .start-screen h1,
  .game-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }

  .start-screen h2 {
    font-size: 18px !important;
    margin-bottom: 15px !important;
  }

  .start-screen p,
  .press-start {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  #startBtn {
    padding: 1rem 2rem !important;
    min-width: 240px !important;
    font-size: 14px !important;
  }

  #monsterSelectStart {
    font-size: 12px !important;
    padding: 8px 10px !important;
    max-width: 300px !important;
  }
}

@media (max-width: 768px) {
  .start-screen * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .start-screen .long-text {
    font-size: 9px !important;
    line-height: 1.2;
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Capture Hint - Uyarı Butonu Stili */
.hint#captureHint {

  text-align: center;

  flex: 1;
  display: inline-block;
  position: relative;

  border: 2px solid var(--border);
  border-radius: 4px;

  background: var(--bg-gradient);
  color: #fff2f2;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 13.5px;


  /* Warning icon ekle */
  &:before {
    margin-right: 6px;
    font-size: 16px;
  }

  &:empty {
    display: none;
  }

  /* Pulse animasyonu */

}

.capture-wrong {
  animation: warningPulse 2s ease-in-out infinite;
  text-shadow:
    0 0 8px rgba(220, 38, 127, .6),
    0 0 16px rgba(220, 38, 127, .3);

  --glow: rgba(220, 38, 127, .55);
  --border: #dc2626;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(239, 68, 68, .35), rgba(24, 8, 8, .8));

  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(220, 38, 127, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 4px 0 rgba(0, 0, 0, .8),
    0 8px 20px rgba(0, 0, 0, .6);

  /* Empty olduğunda gizle */
  &:empty {
    display: none;
  }
}

.capture-correct {
  --glow: rgba(34, 197, 94, .6);
  --border: #22c55e;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(34, 197, 94, .4), rgba(8, 24, 8, .9));

  color: #f0fdf4;
  border-color: #22c55e;

  /* Ana animasyon */
  animation:
    correctAnswerGlow 1.5s ease-in-out,
    correctBorderPulse 1.5s ease-in-out,
    correctRotatingGlow 2s ease-in-out infinite 1.5s;

  /* Text glow */
  text-shadow:
    0 0 10px rgba(34, 197, 94, .8),
    0 0 20px rgba(34, 197, 94, .5),
    0 0 30px rgba(34, 197, 94, .3);

  text-shadow:
    0 0 15px rgba(34, 197, 94, .9),
    0 0 25px rgba(34, 197, 94, .6);
  animation: correctIconPulse 0.5s ease-in-out 0.2s;

  &:empty {
    display: none;
  }
}

/* Correct Answer Green Neon Animation */
@keyframes correctAnswerGlow {
  0% {
    --glow: rgba(34, 197, 94, .3);
    --border: #22c55e;
    box-shadow:
      0 0 10px var(--glow),
      0 0 20px rgba(34, 197, 94, .2),
      inset 0 0 0 1px rgba(255, 255, 255, .1),
      0 4px 0 rgba(0, 0, 0, .8);
    border-color: #22c55e;
  }

  25% {
    --glow: rgba(34, 197, 94, .7);
    box-shadow:
      0 0 25px var(--glow),
      0 0 50px rgba(34, 197, 94, .4),
      0 0 75px rgba(34, 197, 94, .2),
      inset 0 0 0 2px rgba(255, 255, 255, .2),
      0 4px 0 rgba(0, 0, 0, .8);
    border-color: #10b981;
    transform: scale(1.02);
  }

  50% {
    --glow: rgba(34, 197, 94, .9);
    box-shadow:
      0 0 35px var(--glow),
      0 0 70px rgba(34, 197, 94, .6),
      0 0 105px rgba(34, 197, 94, .3),
      inset 0 0 0 3px rgba(255, 255, 255, .3),
      0 4px 0 rgba(0, 0, 0, .8);
    border-color: #059669;
    transform: scale(1.05);
  }

  75% {
    --glow: rgba(34, 197, 94, .7);
    box-shadow:
      0 0 30px var(--glow),
      0 0 60px rgba(34, 197, 94, .5),
      0 0 90px rgba(34, 197, 94, .2),
      inset 0 0 0 2px rgba(255, 255, 255, .2),
      0 4px 0 rgba(0, 0, 0, .8);
    border-color: #10b981;
    transform: scale(1.02);
  }

  100% {
    --glow: rgba(34, 197, 94, .4);
    box-shadow:
      0 0 15px var(--glow),
      0 0 30px rgba(34, 197, 94, .25),
      inset 0 0 0 1px rgba(255, 255, 255, .1),
      0 4px 0 rgba(0, 0, 0, .8);
    border-color: #22c55e;
    transform: scale(1);
  }
}

/* Border pulse animation */
@keyframes correctBorderPulse {

  0%,
  100% {
    border-width: 2px;
    border-color: #22c55e;
  }

  50% {
    border-width: 4px;
    border-color: #10b981;
  }
}

/* Rotating glow effect */
@keyframes correctRotatingGlow {
  0% {
    box-shadow:
      0 0 20px rgba(34, 197, 94, .6),
      0 0 40px rgba(34, 197, 94, .3),
      inset 0 0 0 1px rgba(255, 255, 255, .1);
  }

  25% {
    box-shadow:
      5px 5px 25px rgba(34, 197, 94, .7),
      0 0 45px rgba(34, 197, 94, .4),
      inset 0 0 0 2px rgba(255, 255, 255, .15);
  }

  50% {
    box-shadow:
      0 10px 30px rgba(34, 197, 94, .8),
      0 0 50px rgba(34, 197, 94, .5),
      inset 0 0 0 3px rgba(255, 255, 255, .2);
  }

  75% {
    box-shadow:
      -5px 5px 25px rgba(34, 197, 94, .7),
      0 0 45px rgba(34, 197, 94, .4),
      inset 0 0 0 2px rgba(255, 255, 255, .15);
  }
}

@keyframes correctIconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

@keyframes successFlash {
  0% {
    background: var(--bg-gradient);
  }

  15% {
    background: radial-gradient(160% 120% at 50% -30%, rgba(34, 197, 94, .7), rgba(255, 255, 255, .1));
  }

  30% {
    background: var(--bg-gradient);
  }
}

.hint#captureHint.correct-answer {
  animation:
    correctAnswerGlow 1.2s ease-out,
    successFlash 0.6s ease-in-out 0.3s,
    correctRotatingGlow 3s ease-in-out infinite 1.8s;
}

.hint#captureHint.correct:after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
      transparent,
      rgba(34, 197, 94, .3),
      transparent,
      rgba(34, 197, 94, .3),
      transparent);
  border-radius: 10px;
  z-index: -1;
  animation: sparkleRotate 2s linear infinite;
}

@keyframes sparkleRotate {
  0% {
    transform: rotate(0deg);
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: rotate(360deg);
    opacity: 0.3;
  }
}

/* Warning pulse animasyonu */
@keyframes warningPulse {

  0%,
  100% {
    box-shadow:
      0 0 20px var(--glow),
      0 0 40px rgba(220, 38, 127, .25),
      inset 0 0 0 1px rgba(255, 255, 255, .1),
      0 4px 0 rgba(0, 0, 0, .8),
      0 8px 20px rgba(0, 0, 0, .6);
  }

  50% {
    box-shadow:
      0 0 30px rgba(220, 38, 127, .75),
      0 0 60px rgba(220, 38, 127, .4),
      inset 0 0 0 1px rgba(255, 255, 255, .15),
      0 4px 0 rgba(0, 0, 0, .8),
      0 8px 20px rgba(0, 0, 0, .6);
  }
}

/* Mobile için küçült */
@media (max-width: 778px) {
  .hint#captureHint {
    font-size: 11px;
    padding: 6px;

    &:before {
      font-size: 10px;
      margin-right: 4px;
    }
  }


}

@media (max-width: 489px) {
  .hint#captureHint {
    font-size: 9px;
    padding: 7px;
    width: 100%;

    &:before {
      font-size: 8px;
      margin-right: 3px;
    }
  }

  .capture-container {
    flex-direction: column;
  }

}

/* Alternatif renkler için */
.hint#captureHint.success {
  --glow: rgba(34, 197, 94, .55);
  --border: #22c55e;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(34, 197, 94, .35), rgba(8, 24, 8, .8));
  color: #f0fdf4;

}

.hint#captureHint.info {
  --glow: rgba(59, 130, 246, .55);
  --border: #3b82f6;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(59, 130, 246, .35), rgba(8, 14, 24, .8));
  color: #eff6ff;


}

#questionText {
  line-height: 23px;
}

/* Pause Overlay - Neon Blue Styling */
#pauseOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#pauseOverlay.show {
  display: flex;
}

#pauseOverlay .dialog {
  --glow: rgba(0, 191, 255, .6);
  --border: #00bfff;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(0, 191, 255, .15), rgba(8, 14, 24, .95));

  background: var(--bg-gradient);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  min-width: 300px;

  box-shadow:
    0 0 30px var(--glow),
    0 0 60px rgba(0, 191, 255, .3),
    0 0 100px rgba(0, 191, 255, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .1);
}

#pauseOverlay h2 {
  color: #00bfff;
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  margin-bottom: 2rem;
  letter-spacing: 1px;

  /* Neon text glow */
  text-shadow:
    0 0 10px rgba(0, 191, 255, .8),
    0 0 20px rgba(0, 191, 255, .6),
    0 0 30px rgba(0, 191, 255, .4),
    0 0 40px rgba(0, 191, 255, .2);

  /* Pulse animasyonu */
  animation: neonTextPulse 2s ease-in-out infinite;
}

#pauseOverlay .button-group {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

/* Pause overlay butonları */
#pauseOverlay .pixel-btn {
  --glow: rgba(0, 191, 255, .55);
  --border: #00bfff;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(0, 191, 255, .25), rgba(8, 14, 24, .8));

  background: var(--bg-gradient);
  border: 2px solid var(--border);
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 20px;
  min-height: 50px;

  /* Neon button text glow */
  text-shadow:
    0 0 8px rgba(0, 191, 255, .7),
    0 0 16px rgba(0, 191, 255, .4);

  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(0, 191, 255, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 4px 0 rgba(0, 0, 0, .8);

  transition: all .15s ease;
  cursor: pointer;
}

#pauseOverlay .pixel-btn:hover {
  --glow: rgba(0, 191, 255, .75);

  color: #ffffff;
  text-shadow:
    0 0 12px rgba(0, 191, 255, .9),
    0 0 24px rgba(0, 191, 255, .6),
    0 0 36px rgba(0, 191, 255, .3);

  box-shadow:
    0 0 30px var(--glow),
    0 0 60px rgba(0, 191, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .15),
    0 8px 0 rgba(0, 0, 0, .8);

  transform: translateY(-2px);
}

#pauseOverlay .pixel-btn:active {
  transform: translateY(2px);

  box-shadow:
    0 0 15px var(--glow),
    0 0 30px rgba(0, 191, 255, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 1px 0 rgba(0, 0, 0, .9);
}

/* Neon text pulse animasyonu */
@keyframes neonTextPulse {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(0, 191, 255, .8),
      0 0 20px rgba(0, 191, 255, .6),
      0 0 30px rgba(0, 191, 255, .4),
      0 0 40px rgba(0, 191, 255, .2);
  }

  50% {
    text-shadow:
      0 0 15px rgba(0, 191, 255, 1),
      0 0 30px rgba(0, 191, 255, .8),
      0 0 45px rgba(0, 191, 255, .6),
      0 0 60px rgba(0, 191, 255, .4);
  }
}

/* Resume button'a özel yeşil neon */
#pauseOverlay #resumeBtn {
  --glow: rgba(34, 197, 94, .55);
  --border: #22c55e;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(34, 197, 94, .25), rgba(8, 24, 8, .8));

  border-color: var(--border);
  text-shadow:
    0 0 8px rgba(34, 197, 94, .7),
    0 0 16px rgba(34, 197, 94, .4);
}

#pauseOverlay #resumeBtn:hover {
  --glow: rgba(34, 197, 94, .75);

  text-shadow:
    0 0 12px rgba(34, 197, 94, .9),
    0 0 24px rgba(34, 197, 94, .6),
    0 0 36px rgba(34, 197, 94, .3);
}

/* Main Menu button'a özel kırmızı neon */
#pauseOverlay #mainMenuBtn {
  --glow: rgba(239, 68, 68, .55);
  --border: #ef4444;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(239, 68, 68, .25), rgba(24, 8, 8, .8));

  border-color: var(--border);
  text-shadow:
    0 0 8px rgba(239, 68, 68, .7),
    0 0 16px rgba(239, 68, 68, .4);
}

#pauseOverlay #mainMenuBtn:hover {
  --glow: rgba(239, 68, 68, .75);

  text-shadow:
    0 0 12px rgba(239, 68, 68, .9),
    0 0 24px rgba(239, 68, 68, .6),
    0 0 36px rgba(239, 68, 68, .3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  #pauseOverlay .dialog {
    padding: 1.5rem;
    margin: 0 1rem;
    min-width: 250px;
  }

  #pauseOverlay h2 {
    font-size: 14px;
    margin-bottom: 1.5rem;
  }

  #pauseOverlay .pixel-btn {
    font-size: 10px;
    padding: 10px 16px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  #pauseOverlay h2 {
    font-size: 12px;
  }

  #pauseOverlay .pixel-btn {
    font-size: 9px;
    padding: 8px 14px;
    min-height: 40px;
  }
}

#hudWrap {
  pointer-events: none !important;
}

#hudWrap>* {
  pointer-events: auto !important;
}

@keyframes completionGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: scale(1.02);
  }
}

.completion-message {
  animation: completionGlow 2s ease-in-out infinite;
}

.start-over-btn {
  display: none;
}

/* Pause Button - Neon Styling */
#pauseBtn {
  position: fixed !important;
  top: 20px !important;
  left: 10px !important;
  z-index: 1000 !important;
  
  /* Neon mavi styling */
  --glow: rgba(0, 191, 255, .6);
  --border: #00bfff;
  --bg-gradient: radial-gradient(160% 120% at 50% -30%, rgba(0, 191, 255, .25), rgba(8, 14, 24, .9));

  background: var(--bg-gradient) !important;
  border: 2px solid var(--border) !important;
  border-radius: 8px !important;
  color: #e8f7ff !important;
  
  padding: 5.5px !important;
  padding-bottom: 7px;
  min-width: 20px !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 16px !important;
  
  /* Neon glow effect */
  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(0, 191, 255, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 4px 0 rgba(0, 0, 0, .8) !important;
    
  /* Text glow */
  text-shadow:
    0 0 8px rgba(0, 191, 255, .7),
    0 0 16px rgba(0, 191, 255, .4) !important;
    
  transition: all .12s ease !important;
  cursor: pointer !important;
  
  /* Pulse animasyonu */
  animation: pauseBtnPulse 2s ease-in-out infinite;
}

#pauseBtn:hover {
  --glow: rgba(0, 191, 255, .8);
  
  box-shadow:
    0 0 30px var(--glow),
    0 0 60px rgba(0, 191, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .15),
    0 8px 0 rgba(0, 0, 0, .8) !important;
    
  text-shadow:
    0 0 12px rgba(0, 191, 255, .9),
    0 0 24px rgba(0, 191, 255, .6) !important;
    
  filter: saturate(1.3) brightness(1.1);
  transform: translateY(-2px);
}

#pauseBtn:active {
  transform: translateY(2px) !important;
  
  box-shadow:
    0 0 15px var(--glow),
    0 0 30px rgba(0, 191, 255, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 1px 0 rgba(0, 0, 0, .9) !important;
}

/* Pause button pulse animasyonu */
@keyframes pauseBtnPulse {
  0%, 100% {
    box-shadow:
      0 0 20px var(--glow),
      0 0 40px rgba(0, 191, 255, .25),
      inset 0 0 0 1px rgba(255, 255, 255, .1),
      0 4px 0 rgba(0, 0, 0, .8);
  }
  
  50% {
    box-shadow:
      0 0 25px rgba(0, 191, 255, .7),
      0 0 50px rgba(0, 191, 255, .35),
      inset 0 0 0 1px rgba(255, 255, 255, .15),
      0 4px 0 rgba(0, 0, 0, .8);
  }
}

/* Mobile responsive için pause button */
@media (max-width: 768px) {
  #pauseBtn {
    top: 15px !important;
    left: 15px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    min-width: 50px !important;
  }
}

@media (max-width: 480px) {
  #pauseBtn {
    top: 10px !important;
    left: 10px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    min-width: 45px !important;
  }
}

/* Battle mode'da pause button gizle */
body.in-battle #pauseBtn {
  display: none !important;
}