/* Stiluri Complete Pixel-Art Neon Arcade & Hades Aesthetic V2 (Widescreen Desktop 1200x700) */

:root {
  --neon-pink: #ff007f;
  --neon-purple: #9d4edd;
  --neon-cyan: #00f0ff;
  --neon-yellow: #ffbe0b;
  --hades-gold: #ffd166;
  --hades-dark: #090214;
  --hades-card: #140728;
  --text-main: #f8f9fa;
  --border-glow: 0 0 16px rgba(157, 78, 221, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: #05010a;
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, monospace;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Containerul principal al jocului Widescreen Desktop & Responsive Mobile PWA */
#app-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  max-height: 700px;
  aspect-ratio: 1200 / 700;
  background: var(--hades-dark);
  box-shadow: 0 0 45px rgba(255, 0, 127, 0.3), 0 0 90px rgba(157, 78, 221, 0.2);
  border: 2px solid rgba(255, 0, 127, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Canvasurile de joc (Canvas 2D + WebGL Hardware-Accelerated Post-Processing) */
#game-canvas, #gl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #080014;
}

/* Ecrane de acoperire (Overlay-uri) */
.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 2, 16, 0.94);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.hidden {
  display: none !important;
}

/* ==========================================
   HUB / CAMERA DE CĂMIN (MENIU PRINCIPAL)
   ========================================== */
.hub-header {
  text-align: center;
  margin-bottom: 24px;
}

.game-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px var(--neon-pink), 0 0 25px var(--neon-purple);
  margin-bottom: 6px;
}

.game-subtitle {
  font-size: 1.05rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.95;
}

.hub-stats-bar {
  display: flex;
  gap: 32px;
  background: var(--hades-card);
  padding: 14px 32px;
  border-radius: 12px;
  border: 1px solid rgba(157, 78, 221, 0.4);
  box-shadow: var(--border-glow);
  margin-bottom: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ==========================================
   BUTON FULLSCREEN & CAROUSEL MENIU ORIZONTAL
   ========================================== */
.btn-fullscreen-toggle {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(20, 8, 42, 0.88);
  border: 1.5px solid var(--neon-cyan);
  border-radius: 20px;
  color: var(--neon-cyan);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
  user-select: none;
}

.btn-fullscreen-toggle:hover, .btn-fullscreen-toggle.active {
  background: var(--neon-cyan);
  color: #030810;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
  transform: scale(1.04);
}

.hub-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  user-select: none;
}

.carousel-nav-btn {
  background: rgba(20, 8, 40, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.carousel-nav-btn:hover {
  background: var(--neon-purple);
  border-color: var(--neon-pink);
  transform: scale(1.08);
}

.carousel-nav-btn:active {
  transform: scale(0.92);
}

.hub-actions-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hub-actions-track::-webkit-scrollbar {
  display: none;
}

.btn-card-hub {
  flex: 0 0 132px;
  height: 86px;
  scroll-snap-align: center;
  background: rgba(18, 8, 38, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  text-align: center;
  user-select: none;
}

.btn-card-hub:hover {
  transform: translateY(-4px) scale(1.04);
}

.btn-card-hub:active {
  transform: scale(0.96);
}

.card-hub-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.card-hub-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-hub-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Stiluri tematice specifice pe carduri */
.btn-card-primary {
  flex: 0 0 152px;
  background: linear-gradient(135deg, #f72585, #7209b7);
  border-color: #f72585;
  box-shadow: 0 4px 20px rgba(247, 37, 133, 0.6);
  animation: pulsePrimary 2.5s infinite;
}

@keyframes pulsePrimary {
  0%, 100% { box-shadow: 0 4px 18px rgba(247, 37, 133, 0.55); }
  50% { box-shadow: 0 6px 26px rgba(247, 37, 133, 0.85); transform: translateY(-2px); }
}

.btn-card-primary .card-hub-title {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.btn-card-primary .card-hub-sub {
  color: #fce7f3;
}

.btn-card-gold {
  border-color: rgba(255, 193, 7, 0.6);
}
.btn-card-gold .card-hub-title { color: #ffc107; }

.btn-card-cyan {
  border-color: rgba(0, 240, 255, 0.6);
}
.btn-card-cyan .card-hub-title { color: #00f0ff; }

.btn-card-purple {
  border-color: rgba(157, 78, 221, 0.6);
}
.btn-card-purple .card-hub-title { color: #c77dff; }

.btn-card-blue {
  border-color: rgba(56, 189, 248, 0.6);
}
.btn-card-blue .card-hub-title { color: #38bdf8; }

.btn-card-warm {
  border-color: rgba(251, 146, 60, 0.6);
}
.btn-card-warm .card-hub-title { color: #fb923c; }

.btn-card-green {
  border-color: rgba(34, 197, 94, 0.6);
}
.btn-card-green .card-hub-title { color: #4ade80; }

.btn-card-amber {
  border-color: rgba(245, 158, 11, 0.6);
}
.btn-card-amber .card-hub-title { color: #fbbf24; }

.btn-card-portal {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(35, 20, 8, 0.85);
}
.btn-card-portal .card-hub-title { color: #fde047; }

.hub-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  justify-content: center;
}

.btn-arcade {
  flex: 1;
  background: linear-gradient(135deg, #f72585, #7209b7);
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-arcade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.6);
}

.btn-arcade-secondary {
  flex: 1;
  background: rgba(30, 10, 50, 0.8);
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.btn-arcade-secondary:hover {
  background: rgba(45, 15, 80, 0.9);
  border-color: var(--neon-cyan);
}

.audio-controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-audio {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #adb5bd;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==========================================
   CĂSUȚA DE DIALOGURI HADES
   ========================================== */
#dialogue-box {
  position: absolute;
  bottom: 20px;
  left: 40px;
  right: 40px;
  background: rgba(14, 4, 30, 0.96);
  border: 2px solid var(--hades-gold);
  border-radius: 12px;
  padding: 18px 24px;
  z-index: 20;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 209, 102, 0.35);
}

.dialogue-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dialogue-portrait-wrapper {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  background: #000;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
}

.portrait-img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  background-size: cover;
  background-position: center;
}

.duca-portrait-style {
  background: #8b2fc9 radial-gradient(circle, #ff007f 20%, #240046 80%);
}

.andy-portrait-style {
  background: #1e7b4e radial-gradient(circle, #ffd700 20%, #081c15 80%);
}

.profa-portrait-style {
  background: #7f1d1d radial-gradient(circle, #ef4444 20%, #1c0a00 80%);
}

.octavian-portrait-style {
  background: #064e3b radial-gradient(circle, #00f5d4 20%, #051923 80%);
}

.analiza-portrait-style {
  background: #451a03 radial-gradient(circle, #ffbe0b 20%, #1c150c 80%);
}

.portar-portrait-style {
  background: #0f172a radial-gradient(circle, #38bdf8 20%, #0f172a 80%);
}

.rezi-portrait-style {
  background: #27272a radial-gradient(circle, #f97316 20%, #18181b 80%);
}

.electro-portrait-style {
  background: #022c22 radial-gradient(circle, #22c55e 20%, #06202a 80%);
}

.secretariat-portrait-style {
  background: #4c0519 radial-gradient(circle, #ec4899 20%, #2a081a 80%);
}

.demon-portrait-style {
  background: #2e1065 radial-gradient(circle, #d946ef 20%, #130426 80%);
}

.duo-portrait-style {
  background: #450a0a radial-gradient(circle, #ef4444 20%, #1c0a1a 80%);
}

.decan-portrait-style {
  background: #422006 radial-gradient(circle, #eab308 20%, #0f0c05 80%);
}

.maistru-portrait-style {
  background: #292524 radial-gradient(circle, #ea580c 20%, #1c1917 80%);
}

.ects-portrait-style {
  background: #2e1065 radial-gradient(circle, #06b6d4 20%, #0f051d 80%);
}

.coordonator-portrait-style {
  background: #451a03 radial-gradient(circle, #b45309 20%, #1c150c 80%);
}

.antiplagiat-portrait-style {
  background: #020617 radial-gradient(circle, #ef4444 20%, #050b14 80%);
}

.licenta-portrait-style {
  background: #3b1d06 radial-gradient(circle, #eab308 25%, #1c1305 80%);
}

.dialogue-text-area {
  flex-grow: 1;
}

.speaker-name {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.duca-name {
  color: var(--neon-pink);
}

.andy-name {
  color: var(--hades-gold);
}

.profa-name {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.octavian-name {
  color: #00f5d4;
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

.analiza-name {
  color: #ffbe0b;
  text-shadow: 0 0 8px rgba(255, 190, 11, 0.6);
}

.portar-name {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.rezi-name {
  color: #f97316;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.electro-name {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.secretariat-name {
  color: #ec4899;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

.demon-name {
  color: #d946ef;
  text-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
}

.duo-name {
  color: #ff0055;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
}

.decan-name {
  color: #eab308;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.8);
}

.maistru-name {
  color: #ea580c;
  text-shadow: 0 0 10px rgba(234, 88, 12, 0.8);
}

.ects-name {
  color: #06b6d4;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.coordonator-name {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.antiplagiat-name {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
}

.licenta-name {
  color: #eab308;
  text-shadow: 0 0 14px rgba(234, 179, 8, 0.9);
}

#dialogue-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #f1f5f9;
  min-height: 48px;
}

.dialogue-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-dialogue {
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid var(--hades-gold);
  color: var(--hades-gold);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.btn-dialogue:hover {
  background: rgba(255, 209, 102, 0.3);
}

/* ==========================================
   MODAL MAGAZIN UPGRADE-URI (SHOP)
   ========================================== */
.key-badge {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 5px;
  color: #ffffff;
  font-family: 'Courier New', Consolas, monospace;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 2, 16, 0.96);
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-card {
  width: 100%;
  max-width: 800px;
  max-height: 90%;
  background: var(--hades-card);
  border: 2px solid var(--neon-purple);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--border-glow);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(157, 78, 221, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 5, 40, 0.8);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--neon-yellow);
}

.shop-balance {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--neon-yellow);
}

.shop-items-container {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-item {
  background: rgba(10, 4, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.shop-item.item-max {
  border-color: rgba(0, 255, 204, 0.4);
  opacity: 0.85;
}

.shop-item.item-locked {
  opacity: 0.5;
  filter: grayscale(0.5);
}

.shop-item-info {
  flex-grow: 1;
}

.shop-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.shop-icon {
  font-size: 1.3rem;
}

.shop-name {
  font-weight: bold;
  font-size: 1.05rem;
  color: #fff;
}

.shop-lvl {
  font-size: 0.8rem;
  background: rgba(157, 78, 221, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--neon-cyan);
}

.shop-item-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.btn-buy {
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-buy.can-afford {
  background: #2a9d8f;
  color: #fff;
  box-shadow: 0 0 10px rgba(42, 157, 143, 0.6);
}

.btn-buy.can-afford:hover {
  background: #21867a;
}

.btn-buy.cant-afford {
  background: #343a40;
  color: #6c757d;
  cursor: not-allowed;
}

.btn-buy-max {
  background: transparent;
  border: 1px solid #00f0ff;
  color: #00f0ff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

.btn-buy-locked {
  background: #212529;
  border: none;
  color: #6c757d;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(157, 78, 221, 0.4);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================
   ECRAN GAME OVER
   ========================================== */
.over-card {
  text-align: center;
  width: 100%;
  max-width: 440px;
}

.over-title {
  font-size: 2.2rem;
  color: #e63946;
  text-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
  margin-bottom: 8px;
}

.over-subtitle {
  font-size: 1rem;
  color: #adb5bd;
  margin-bottom: 24px;
}

.over-stats {
  background: rgba(20, 5, 40, 0.8);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.over-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.over-stat-val {
  font-weight: bold;
  color: var(--neon-yellow);
}

/* ==========================================
   BADGE NIVEL CURENT PE HUB
   ========================================== */
.level-badge-container {
  background: rgba(30, 10, 60, 0.75);
  border: 1px solid var(--neon-purple);
  border-radius: 10px;
  padding: 10px 24px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

.level-badge-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--neon-yellow);
  margin-bottom: 4px;
}

.level-badge-sub {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ==========================================
   CARDURI SELECTOR NIVELE (1 - 10)
   ========================================== */
.level-card {
  background: rgba(15, 6, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.level-card.level-active {
  border-color: var(--neon-yellow);
  background: rgba(40, 15, 80, 0.9);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.3);
}

.level-card.level-completed {
  border-color: rgba(6, 214, 160, 0.5);
}

.level-card.level-locked {
  opacity: 0.45;
  filter: grayscale(0.7);
}

.level-card-info {
  flex-grow: 1;
}

.level-card-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.level-card-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.level-card-meta {
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

.btn-select-level {
  background: #7209b7;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(114, 9, 183, 0.5);
}

.btn-select-level:hover {
  background: #8e10e6;
}

.btn-level-locked {
  background: #212529;
  color: #6c757d;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: not-allowed;
}

/* ==========================================
   ECRAN VICTORIE SESIUNE PROMOVATĂ
   ========================================== */
.victory-card {
  text-align: center;
  width: 100%;
  max-width: 480px;
}

/* Controale tactile virtuale adaptate la Safe Area iPhone 17 & Android */
#touch-controls {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 0;
  width: 100%;
  padding-left: max(20px, env(safe-area-inset-left, 20px));
  padding-right: max(20px, env(safe-area-inset-right, 20px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 60;
  touch-action: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#touch-controls.hidden-touch {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(24px) !important;
  visibility: hidden !important;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-rows: repeat(3, 50px);
  gap: 6px;
  pointer-events: auto;
}

.action-buttons {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  pointer-events: auto;
}

.touch-btn {
  width: 50px;
  height: 50px;
  background: rgba(25, 8, 48, 0.78);
  border: 2px solid rgba(0, 240, 255, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transition: transform 0.08s ease, background 0.08s ease;
}

.touch-btn.touch-active {
  background: rgba(0, 240, 255, 0.6);
  border-color: #fff;
  transform: scale(0.92);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

.action-btn-attack {
  width: 60px;
  height: 60px;
  background: rgba(220, 38, 38, 0.72);
  border-color: #ef4444;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.action-btn-attack.touch-active {
  background: rgba(239, 68, 68, 0.9);
  border-color: #fca5a5;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
}

.action-btn-jump {
  width: 64px;
  height: 64px;
  background: rgba(247, 37, 133, 0.68);
  border-color: var(--neon-pink);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(247, 37, 133, 0.45);
}

.action-btn-jump.touch-active {
  background: rgba(247, 37, 133, 0.9);
  border-color: #fbcfe8;
  box-shadow: 0 0 25px rgba(247, 37, 133, 0.8);
}

.action-btn-dash {
  width: 56px;
  height: 56px;
  background: rgba(147, 51, 234, 0.65);
  border-color: var(--neon-purple);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(157, 78, 221, 0.4);
}

.action-btn-dash.touch-active {
  background: rgba(168, 85, 247, 0.85);
  border-color: #e9d5ff;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.75);
}

/* ASCUNDERE CONTROALE TACTILE PE DESKTOP (tastatură & mouse) */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  #touch-controls {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* AFISARE ROBUSTĂ PE MOBIL & TOUCHSCREEN (telefon / tabletă) */
@media (pointer: coarse), (hover: none), (max-width: 899px) {
  #touch-controls:not(.hidden-touch) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: translateY(0) !important;
  }
  #touch-controls:not(.hidden-touch) .touch-btn {
    pointer-events: auto !important;
  }
}

/* Sugestie de rotire telefon pentru modul Landscape */
.orientation-hint {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(9, 2, 20, 0.96);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

@media screen and (orientation: portrait) and (max-width: 900px) {
  .orientation-hint:not(.dismissed) {
    display: flex !important;
  }
}

.orientation-box {
  background: #140728;
  border: 2px solid var(--neon-cyan);
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.orientation-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: rotatePhone 2.5s infinite ease-in-out;
}

@keyframes rotatePhone {
  0%, 20% { transform: rotate(0deg); }
  50%, 70% { transform: rotate(-90deg); }
  90%, 100% { transform: rotate(0deg); }
}

.orientation-title {
  color: var(--neon-cyan);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.orientation-desc {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ios-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(6, 214, 160, 0.25));
  border: 1px solid var(--neon-cyan);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulseCyan 2s infinite ease-in-out;
}

.ios-install-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}

/* ==========================================
   GODMODE / MOD PREZENTARE V4
   ========================================== */
.godmode-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.3), rgba(234, 179, 8, 0.3));
  border: 1px solid #eab308;
  color: #fef08a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
  animation: pulseGold 2s infinite ease-in-out;
}

.gamepad-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(157, 78, 221, 0.25));
  border: 1px solid var(--neon-cyan);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  animation: pulseCyan 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 15px rgba(234, 179, 8, 0.4); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); }
}

@keyframes pulseCyan {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(157, 78, 221, 0.7); }
}

.btn-godmode {
  background: linear-gradient(135deg, #7f1d1d, #b45309);
  color: #fff;
  border: 1px solid #f59e0b;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
}

.btn-godmode:hover {
  background: linear-gradient(135deg, #991b1b, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.pin-input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.pin-input {
  background: #0f172a;
  border: 2px solid #eab308;
  color: #facc15;
  font-size: 2rem;
  font-family: monospace;
  letter-spacing: 12px;
  text-align: center;
  width: 260px;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.pin-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.pin-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

.godmode-hud-banner {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #eab308;
  color: #fde047;
  padding: 4px 16px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
  pointer-events: none;
  z-index: 10;
}

/* ==========================================
   OPTIMIZARE RESPONSIVE FULLSCREEN MOBIL (LANDSCAPE & ECRAN COMPLET)
   ========================================== */

/* Când este în ecran complet nativ */
:fullscreen, :-webkit-full-screen, :-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

:fullscreen #app-container, :-webkit-full-screen #app-container, :-ms-fullscreen #app-container {
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
}

/* Landscape pe orice telefon/tabletă cu înălțime mică */
@media screen and (max-height: 540px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  #app-container {
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: none !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
  }

  .screen-overlay {
    padding: 4px 12px !important;
    justify-content: space-evenly !important;
  }

  .hub-header {
    margin-bottom: 2px !important;
  }

  .game-title {
    font-size: 1.25rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 1px !important;
  }

  .game-subtitle {
    font-size: 0.68rem !important;
    letter-spacing: 0.8px !important;
  }

  .level-badge-container {
    margin-bottom: 3px !important;
    padding: 3px 12px !important;
    border-radius: 8px !important;
  }

  .level-badge-title {
    font-size: 0.78rem !important;
    margin-bottom: 1px !important;
  }

  .level-badge-sub {
    font-size: 0.68rem !important;
  }

  .hub-stats-bar {
    margin-bottom: 4px !important;
    padding: 3px 14px !important;
    gap: 16px !important;
  }

  .stat-item {
    font-size: 0.78rem !important;
    gap: 5px !important;
  }

  .hub-carousel-wrapper {
    margin-top: 2px !important;
    max-width: 100% !important;
    gap: 6px !important;
  }

  .btn-card-hub {
    flex: 0 0 115px !important;
    height: 72px !important;
    padding: 4px 4px !important;
    border-radius: 10px !important;
  }

  .btn-card-primary {
    flex: 0 0 132px !important;
  }

  .card-hub-icon {
    font-size: 1.2rem !important;
  }

  .card-hub-title {
    font-size: 0.72rem !important;
    letter-spacing: 0.4px !important;
  }

  .card-hub-sub {
    font-size: 0.58rem !important;
  }

  .carousel-nav-btn {
    width: 28px !important;
    height: 50px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }

  .audio-controls {
    margin-top: 2px !important;
    gap: 8px !important;
  }

  .btn-audio {
    padding: 2px 8px !important;
    font-size: 0.65rem !important;
  }

  .btn-fullscreen-toggle {
    top: 5px !important;
    right: 8px !important;
    padding: 3px 9px !important;
    font-size: 0.7rem !important;
  }
}

