/* Dragon – TzinGames. Γραμματοσειρές OFL από το repo (όχι Google Fonts). */
@font-face {
  font-family: "Play"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../../assets/fonts/play-greek-700-normal.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Play"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../../assets/fonts/play-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../../assets/fonts/manrope-greek-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../../assets/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a1128;
  --panel: rgba(8, 14, 34, 0.92);
  --panel-border: rgba(255, 107, 107, 0.45);
  --accent: #ff6b6b;
  --gold: #ffd93d;
  --text: #f4f6ff;
  --muted: #b9c2e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

#gameCanvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  background: #0a1128;
}

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  padding: 0 8px;
}

.hud-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  background: rgba(5, 10, 28, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 6px 8px 6px 14px;
  max-width: 100%;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.stat-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: "Play", "Manrope", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
}

.health-bar-container {
  width: 120px;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--accent);
}

.health-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e0283a, #ff6b6b, #ff9a9a);
  transform-origin: left center;
  transition: transform 0.2s;
}

.hud-btn {
  pointer-events: auto;
  background: rgba(255, 107, 107, 0.16);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  min-width: 36px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}

.hud-btn:hover {
  background: rgba(255, 107, 107, 0.35);
}

#bossBar {
  width: min(420px, 92vw);
  background: rgba(5, 10, 28, 0.75);
  border: 1px solid rgba(255, 60, 120, 0.6);
  border-radius: 12px;
  padding: 4px 10px 6px;
  text-align: center;
}

.boss-name {
  font-family: "Play", sans-serif;
  font-size: 0.85rem;
  color: #ff8fb5;
  letter-spacing: 0.08em;
}

.boss-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  margin-top: 2px;
}

.boss-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff0055, #ff6b6b, #ffb347);
  transform-origin: left center;
  transition: transform 0.15s;
}

#fireButton {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 18px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255, 180, 80, 0.8);
  background: radial-gradient(circle at 40% 35%, rgba(255, 170, 60, 0.55), rgba(200, 40, 20, 0.45));
  font-size: 2rem;
  z-index: 120;
  touch-action: none;
  opacity: 0.85;
}

#fireButton.active {
  transform: scale(0.92);
  opacity: 1;
}

/* ---------- Notifications ---------- */
#comboDisplay {
  position: fixed;
  top: 30%;
  right: 20px;
  font-family: "Play", sans-serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 0 0 14px #ff6b6b;
  z-index: 150;
  display: none;
  pointer-events: none;
  animation: comboShake 0.3s;
}

#levelDisplay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Play", sans-serif;
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--gold);
  text-shadow: 0 0 24px #ff6b6b;
  z-index: 500;
  display: none;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  animation: levelAnnounce 2s;
}

#levelDisplay small {
  display: block;
  font-size: 0.4em;
  color: #fff;
}

#healNotification {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 800;
  color: #4dff7a;
  text-shadow: 0 0 16px #00c040;
  z-index: 150;
  display: none;
  pointer-events: none;
  animation: healPulse 1s;
}

#achievementNotification {
  position: fixed;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 215, 0, 0.95);
  color: #1a1200;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  z-index: 600;
  display: none;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.6);
  animation: achievementPop 3s;
  max-width: 92vw;
}

/* ---------- Overlays / panels ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.overlay.show {
  display: flex;
}

.modal-overlay {
  background: rgba(2, 5, 16, 0.78);
  align-items: flex-start;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 12px 40px;
  z-index: 1100;
}

.panel {
  margin: auto;
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 20px;
  padding: 26px 24px;
  width: min(100%, 640px);
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 107, 107, 0.25);
  animation: fadeIn 0.25s;
}

.panel-title {
  font-family: "Play", sans-serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.game-button {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border: none;
  color: #1a0505;
  padding: 12px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.game-button.secondary {
  background: rgba(255, 107, 107, 0.14);
  color: var(--text);
  border: 1px solid var(--panel-border);
  box-shadow: none;
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.45);
}

.pause-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pause-buttons.row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* ---------- Start screen ---------- */
#startScreen {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 107, 0.18), transparent 60%),
    linear-gradient(180deg, #0a1128 0%, #141a3a 60%, #22163a 100%);
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s;
}

.menu-topbar {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 6px;
  z-index: 2;
}

.menu-topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
}

.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 7px 13px;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
}

.lang-toggle button.active {
  background: var(--accent);
  color: #1a0505;
}

.gold-pill,
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--gold);
  font-weight: 800;
}

.pill-btn {
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.pill-btn:hover {
  background: rgba(255, 107, 107, 0.25);
  transform: translateY(-1px);
}

.menu-content {
  width: 100%;
  max-width: 980px;
  margin: auto;
  padding: 10px 16px 72px;
  text-align: center;
}

.game-title {
  font-family: "Play", sans-serif;
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  letter-spacing: 0.06em;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.menu-sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.mode-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.mode-card {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(255, 217, 61, 0.1));
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 20px 18px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-align: center;
}

.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  border-color: var(--gold);
  outline: none;
}

.mode-card h3 {
  font-family: "Play", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.mode-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
}

.mode-best {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 1em;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

#customizationMenu {
  background: rgba(255, 107, 107, 0.08);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  max-width: 460px;
  margin: 0 auto;
}

#customizationMenu h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.custom-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.customization-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
}

.customization-option input {
  accent-color: var(--accent);
  cursor: pointer;
}

.menu-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- How to ---------- */
.howto-goal {
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
}

.howto-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  text-align: left;
  margin-bottom: 14px;
}

.howto-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.howto-col h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.howto-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.93rem;
  line-height: 1.4;
}

kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 1px 6px;
  margin-right: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom-width: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Play", monospace;
  font-size: 0.85em;
  text-align: center;
  color: #fff;
}

.howto-enemies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.howto-enemies span {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Shop ---------- */
.shop-panel {
  width: min(100%, 900px);
}

.shop-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.shop-category {
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gold);
}

.shop-category.active {
  background: rgba(255, 107, 107, 0.35);
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.shop-item {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid var(--accent);
  border-radius: 15px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.shop-item.equipped {
  border-color: var(--gold);
  background: rgba(255, 217, 61, 0.12);
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
}

.shop-item.too-expensive {
  opacity: 0.55;
}

.shop-item-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shop-item-name {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.shop-item-price {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.shop-item-owned {
  font-size: 0.85rem;
  color: #8dffa8;
  margin-top: 5px;
}

.coin-icon {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, #ffd700, #ffa500);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
  flex: none;
}

.coin-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: radial-gradient(circle at 40% 40%, #ffed4e, #ffd700);
  border-radius: 50%;
}

.coin-icon.small {
  width: 16px;
  height: 16px;
}

.coin-icon.small::before {
  inset: 3px;
}

.shop-gold {
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0 auto 18px;
  background: rgba(255, 107, 107, 0.1);
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Skills ---------- */
.sp-line {
  margin-bottom: 16px;
  color: var(--muted);
}

.sp-line b {
  color: var(--gold);
  font-size: 1.2rem;
}

.skill-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.skill-branch {
  background: rgba(255, 107, 107, 0.08);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

.skill-branch h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.skill {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  padding: 9px 10px;
  margin: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: 0.92rem;
}

.skill:hover {
  background: rgba(255, 107, 107, 0.3);
}

.skill.purchased {
  background: rgba(0, 200, 80, 0.2);
  border-color: #3ddc84;
  cursor: default;
}

.skill.locked {
  opacity: 0.5;
}

.skill-cost {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Game over ---------- */
.game-over-title {
  font-family: "Play", sans-serif;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  color: var(--accent);
  margin-bottom: 18px;
  text-shadow: 0 0 18px #ff0000;
}

.final-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 16px;
  background: rgba(255, 107, 107, 0.08);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  margin-bottom: 16px;
}

.final-stat {
  font-size: 1.05rem;
  color: var(--gold);
}

.leaderboard {
  background: rgba(255, 215, 0, 0.07);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.6);
}

.leaderboard h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

#leaderboardList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-entry {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.leaderboard-entry.current {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
}

.leaderboard-rank {
  color: #ffd700;
  font-weight: 800;
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .hud-bar {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 5px 4px 10px;
  }

  .hud-btn {
    min-width: 30px;
    height: 28px;
    font-size: 0.9rem;
  }

  .hud-extra {
    display: none;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .hud-stat {
    font-size: 0.85rem;
  }

  .health-bar-container {
    width: 56px;
  }

  .panel {
    padding: 20px 14px;
  }

  .panel-title {
    font-size: 1.6rem;
  }

  .mode-card {
    padding: 14px;
  }

  .mode-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-height: 500px) {
  .hud-extra {
    display: none;
  }
}

/* ---------- Shop icons (από την αρχική έκδοση) ---------- */

.sunglasses-icon {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.sunglasses-icon::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10px;
  width: 25px;
  height: 20px;
  background: linear-gradient(135deg, #000, #1a1a1a);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.sunglasses-icon::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 10px;
  width: 25px;
  height: 20px;
  background: linear-gradient(135deg, #000, #1a1a1a);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nerd-glasses-icon {
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.nerd-glasses-icon::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 15px;
  width: 20px;
  height: 20px;
  background: rgba(200, 220, 255, 0.3);
  border: 3px solid #000;
  border-radius: 50%;
}

.nerd-glasses-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: rgba(200, 220, 255, 0.3);
  border: 3px solid #000;
  border-radius: 50%;
}

.vr-glasses-icon {
  background: linear-gradient(135deg, #333, #555);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.vr-glasses-icon::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10px;
  width: 25px;
  height: 20px;
  background: linear-gradient(135deg, #0066ff, #00ccff);
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
  animation: vrGlow 2s infinite;
}

.vr-glasses-icon::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 10px;
  width: 25px;
  height: 20px;
  background: linear-gradient(135deg, #0066ff, #00ccff);
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
  animation: vrGlow 2s infinite;
}

/* HORNS ICONS */

.dragon-horns-icon {
  background: radial-gradient(circle, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.1));
  border-radius: 10px;
  position: relative;
  overflow: visible;
}

.dragon-horns-icon::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 20px;
  width: 12px;
  height: 40px;
  background: linear-gradient(135deg, #8b0000, #ff6b6b);
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.dragon-horns-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 20px;
  width: 12px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #8b0000);
  border-radius: 50% 50% 0 0;
  transform: rotate(15deg);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.5);
}

.demon-horns-icon {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5), rgba(51, 0, 0, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: visible;
}

.demon-horns-icon::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 45px solid #1a1a1a;
  transform: rotate(-25deg);
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.8));
}

.demon-horns-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 45px solid #1a1a1a;
  transform: rotate(25deg);
  filter: drop-shadow(-2px 2px 6px rgba(0, 0, 0, 0.8));
}

.crystal-horns-icon {
  background: radial-gradient(circle, rgba(0, 102, 255, 0.3), rgba(0, 204, 255, 0.1));
  border-radius: 10px;
  position: relative;
  overflow: visible;
  animation: crystalGlow 2s infinite;
}

.crystal-horns-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 22px;
  width: 10px;
  height: 40px;
  background: linear-gradient(135deg, #00ccff, #0066ff, #00ccff);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 8px #00ccff);
  animation: crystalShine 1.5s infinite;
}

.crystal-horns-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 22px;
  width: 10px;
  height: 40px;
  background: linear-gradient(135deg, #0066ff, #00ccff, #0066ff);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(10deg);
  filter: drop-shadow(0 0 8px #00ccff);
  animation: crystalShine 1.5s infinite 0.3s;
}

/* WINGS ICONS */

.demon-wings-icon {
  background: radial-gradient(circle, rgba(139, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.demon-wings-icon::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 5px;
  width: 30px;
  height: 35px;
  background: linear-gradient(135deg, #330000, #8b0000);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-10deg);
  box-shadow: 2px 2px 10px rgba(139, 0, 0, 0.6);
}

.demon-wings-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 5px;
  width: 30px;
  height: 35px;
  background: linear-gradient(135deg, #8b0000, #330000);
  border-radius: 0 50% 50% 50%;
  transform: rotate(10deg);
  box-shadow: -2px 2px 10px rgba(139, 0, 0, 0.6);
}

.angel-wings-icon {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 215, 0, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  animation: angelGlow 2s infinite;
}

.angel-wings-icon::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 28px;
  height: 38px;
  background: linear-gradient(135deg, #ffffff, #ffd700);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-15deg);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.angel-wings-icon::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 8px;
  width: 28px;
  height: 38px;
  background: linear-gradient(135deg, #ffd700, #ffffff);
  border-radius: 0 50% 50% 50%;
  transform: rotate(15deg);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.crystal-wings-icon {
  background: radial-gradient(circle, rgba(0, 204, 255, 0.4), rgba(0, 102, 255, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  animation: crystalWingsGlow 2s infinite;
}

.crystal-wings-icon::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10px;
  width: 26px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 204, 255, 0.8), rgba(0, 153, 255, 0.6));
  border-radius: 50% 0 50% 50%;
  transform: rotate(-12deg);
  box-shadow: 0 0 20px #00ccff;
  animation: crystalWingShine 1.5s infinite;
}

.crystal-wings-icon::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 10px;
  width: 26px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.6), rgba(0, 204, 255, 0.8));
  border-radius: 0 50% 50% 50%;
  transform: rotate(12deg);
  box-shadow: 0 0 20px #00ccff;
  animation: crystalWingShine 1.5s infinite 0.3s;
}

/* MISSING WING ICONS */

.fire-wings-icon {
  background: radial-gradient(circle, rgba(255, 69, 0, 0.4), rgba(255, 0, 0, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  animation: fireGlow 1.5s infinite;
}

.fire-wings-icon::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 5px;
  width: 30px;
  height: 35px;
  background: linear-gradient(135deg, #ff4500, #ff6347);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-10deg);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
}

.fire-wings-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 5px;
  width: 30px;
  height: 35px;
  background: linear-gradient(135deg, #ff6347, #ff4500);
  border-radius: 0 50% 50% 50%;
  transform: rotate(10deg);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
}

.shadow-wings-icon {
  background: radial-gradient(circle, rgba(45, 45, 45, 0.6), rgba(0, 0, 0, 0.4));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.shadow-wings-icon::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 28px;
  height: 38px;
  background: linear-gradient(135deg, #2d2d2d, #000000);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-15deg);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.shadow-wings-icon::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 8px;
  width: 28px;
  height: 38px;
  background: linear-gradient(135deg, #000000, #2d2d2d);
  border-radius: 0 50% 50% 50%;
  transform: rotate(15deg);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

/* MISSING HORN ICONS */

.golden-horns-icon {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4), rgba(218, 165, 32, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: visible;
  animation: goldenGlow 2s infinite;
}

.golden-horns-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 20px;
  width: 12px;
  height: 42px;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #daa520);
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.golden-horns-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 20px;
  width: 12px;
  height: 42px;
  background: linear-gradient(135deg, #daa520, #ffed4e, #ffd700);
  border-radius: 50% 50% 0 0;
  transform: rotate(15deg);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.ice-horns-icon {
  background: radial-gradient(circle, rgba(176, 224, 230, 0.4), rgba(70, 130, 180, 0.2));
  border-radius: 10px;
  position: relative;
  overflow: visible;
  animation: iceGlow 2s infinite;
}

.ice-horns-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 22px;
  width: 10px;
  height: 40px;
  background: linear-gradient(135deg, #b0e0e6, #87ceeb, #4682b4);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 10px #00ffff);
}

.ice-horns-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 22px;
  width: 10px;
  height: 40px;
  background: linear-gradient(135deg, #4682b4, #87ceeb, #b0e0e6);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(10deg);
  filter: drop-shadow(0 0 10px #00ffff);
}

/* ANIMATIONS FOR NEW ITEMS */

@keyframes fireGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.7);
  }
}

@keyframes goldenGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  }
}

@keyframes iceGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes levelAnnounce {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

@keyframes comboShake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes healPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

@keyframes achievementPop {
  0% {
    transform: translateX(-50%) translateY(-50px);
    opacity: 0;
  }
  10% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  90% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50px);
    opacity: 0;
  }
}

@keyframes vrGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 150, 255, 1);
  }
}

@keyframes crystalGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 204, 255, 0.8);
  }
}

@keyframes crystalShine {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    filter: brightness(1.5);
  }
}

@keyframes angelGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

@keyframes crystalWingsGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 204, 255, 0.7);
  }
}

@keyframes crystalWingShine {
  0%,
  100% {
    opacity: 0.7;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.4);
  }
}

/* Παράθυρα που ανοίγουν πάνω από την παύση */
#howtoScreen,
#shopMenu,
#skillTreeMenu {
  z-index: 1200;
}
