/* ==========================================================================
   2OKOS: KÉT ÉSZ, EGY KÁOSZ
   Visual Style: Minimalist Retro Pixel Architecture
   Palette: 2OKOS Coral-Red (#ff5e43), Dark Charcoal (#09090b), Sharp 2px Borders
   ========================================================================== */

:root {
  --c-2okos: #ff5e43;
  --c-2okos-light: #ffa085;
  --c-2okos-dark: #b82b18;
  --c-2okos-glow: rgba(255, 94, 67, 0.4);

  --bg-deep: #08080a;
  --bg-panel: #121216;
  --bg-panel-trans: rgba(18, 18, 22, 0.95);
  --border-pixel: #262630;

  --c-ice: #ef4444;
  --c-ice-glow: rgba(239, 68, 68, 0.45);
  --c-kds: #a855f7;
  --c-kds-glow: rgba(168, 85, 247, 0.45);

  --c-gold: #fbbf24;
  --c-cyan: #38bdf8;
  --c-green: #10b981;

  --font-pixel: 'Press Start 2P', monospace;
  --font-main: 'Outfit', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  scroll-behavior: smooth;
  background: #09090b;
  color: #f1f5f9;
  font-family: var(--font-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
  user-select: text;
  -webkit-user-select: text;
  -webkit-overflow-scrolling: touch;
}

::selection {
  background: rgba(255, 94, 67, 0.45);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(255, 94, 67, 0.45);
  color: #ffffff;
}

/* CRT scanlines disabled - no lines */
.crt-overlay {
  display: none;
}

/* App container */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Pixel art rendering */
img, canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MAIN MENU & APP WRAPPER STYLES
   ========================================================================== */

/* ==========================================================================
   2-PIXEL RETRO BUTTONS & UTILITIES
   ========================================================================== */
.pixel-btn {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 10px 18px;
  background: var(--bg-panel);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 2px 2px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.pixel-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
  background: #1e1e26;
}

.pixel-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #000000;
}

.pixel-btn.btn-sm {
  padding: 6px 12px;
  font-size: 8px;
}

.pixel-btn.icon-only {
  padding: 6px 10px;
}

.btn-nyomas {
  font-size: 15px;
  padding: 16px 36px;
  background: var(--c-2okos);
  border-color: #ffffff;
  color: #ffffff;
  text-shadow: 1px 1px 0px #000;
  letter-spacing: 1px;
}

.glow-coral {
  box-shadow: 0 0 20px var(--c-2okos-glow), 3px 3px 0px #000;
}

.glow-coral:hover {
  box-shadow: 0 0 30px var(--c-2okos-glow), 4px 4px 0px #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: #b91c1c;
  border-color: #f87171;
}

.c-ice { color: var(--c-ice); text-shadow: 0 0 8px var(--c-ice-glow); }
.c-kds { color: var(--c-kds); text-shadow: 0 0 8px var(--c-kds-glow); }
.c-gold { color: var(--c-gold); }
.c-red { color: #ef4444; }

/* App wrapper */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 30px;
}

/* ==========================================================================
   TOP BAR (Seamless & Borderless)
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 24px;
  box-shadow: none;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-crest-small {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(255, 94, 67, 0.45));
}

.nav-logo {
  height: 34px;
  cursor: pointer;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 0 10px rgba(255, 94, 67, 0.35));
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-tagline {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--c-2okos);
  letter-spacing: 1.5px;
}

.nav-right {
  display: flex;
  gap: 8px;
}

.top-nav .pixel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.top-nav .pixel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   SCREENS & TRANSITIONS
   ========================================================================== */
.screen {
  display: none;
  animation: screenFade 0.2s ease-out;
}

.screen.active {
  display: block;
}

@keyframes screenFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SCREEN 1: MENU
   ========================================================================== */
.menu-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  min-height: 75vh;
}

.logo-wrapper {
  margin-bottom: 24px;
}

.menu-crest-hero {
  margin-bottom: 12px;
}

.menu-crest-img {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 0 20px rgba(255, 94, 67, 0.35));
}

.pulse-anim {
  animation: pulseLogo 3s infinite alternate ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.03); }
}

.menu-hero {
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px 24px;
  position: relative;
  box-sizing: border-box;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: 24px;
}

.main-title-logo {
  max-width: 440px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(255, 94, 67, 0.45));
  animation: pulseLogo 3s infinite alternate ease-in-out;
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--c-2okos);
  letter-spacing: 2px;
  margin-top: 10px;
}

.menu-main-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: auto;
}

.btn-hero-nyomas {
  width: 100%;
  font-size: 14px;
  padding: 18px 24px;
  border-radius: 6px;
  letter-spacing: 2px;
  box-shadow: 4px 4px 0px #000, 0 0 24px var(--c-2okos-glow);
}

.btn-hero-settings {
  width: 100%;
  font-size: 12px;
  padding: 14px 24px;
  border-radius: 6px;
  letter-spacing: 1px;
  color: #e2e8f0;
  box-shadow: 3px 3px 0px #000;
}

/* KÉPERNYŐ ALJÁN: KILÉPÉS ÉS KÉSZÍTŐ (APPLE GLASSMORPH DOCK) */
.menu-footer-bar {
  width: 100%;
  max-width: 840px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  background: rgba(18, 18, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-sizing: border-box;
  margin-top: 24px;
}

.footer-action-col {
  display: flex;
  align-items: center;
}

.btn-exit-retro {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-exit-retro:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.7);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.footer-creator-col {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.creator-lead-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
}

/* Borderless, floating social chips */
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: text;
  -webkit-user-select: text;
  box-shadow: none;
}

.social-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}

.social-chip.insta-chip:hover,
.social-chip.discord-chip:hover {
  border: none;
  box-shadow: none;
  color: var(--c-2okos-light);
}

.pixel-chip-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 94, 67, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-chip:hover .pixel-chip-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 94, 67, 0.65));
}

.chip-name {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
}

.copy-toast {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: #000000;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 640px) {
  .menu-footer-bar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .footer-creator-col {
    justify-content: center;
  }
}

/* ==========================================================================
   SCREEN 2: CHARACTER SELECT (KARAKTERVÁLASZTÁS)
   Pixel-perfect match to Cyberpunk Reference (media_1790504339010.png)
   ========================================================================== */
.char-select-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 20px;
}

.char-select-header {
  text-align: center;
  margin-bottom: 18px;
  width: 100%;
}

.char-title-divider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

.char-divider-line {
  flex: 1;
  max-width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 84, 56, 0.6), rgba(255, 255, 255, 0.7));
  position: relative;
}

.char-divider-line:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(240, 84, 56, 0.6), transparent);
}

.char-screen-title {
  font-family: var(--font-pixel);
  font-size: 19px;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  margin: 0;
}

.char-screen-subtitle {
  font-size: 0.85rem;
  color: #a1a1aa;
  letter-spacing: 0.3px;
  margin: 0;
}

/* Mode selector pills */
.mode-pills {
  display: flex;
  gap: 6px;
  background: #0d0a0b;
  padding: 4px;
  border: 1px solid #2d2627;
  border-radius: 6px;
  margin-bottom: 22px;
}

.mode-pill {
  background: transparent;
  border: none;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #8e8a8a;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-pill:hover {
  color: #ffffff;
}

.mode-pill.active {
  background: #f05438;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(240, 84, 56, 0.6);
}

/* Character Selection Row */
.avatars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 920px;
  margin-bottom: 24px;
}

/* Cybernetic Bracket Character Card */
.character-card {
  flex: 1;
  position: relative;
  background: #0f0a0a;
  border: 2px solid #332020;
  border-radius: 6px;
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.character-card:hover {
  transform: translateY(-2px);
}

/* Corner Brackets */
.card-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  border-style: solid;
  pointer-events: none;
}
.card-bracket.br-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.card-bracket.br-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.card-bracket.br-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.card-bracket.br-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

/* Glitch Ticks on Border */
.card-glitch-tick {
  position: absolute;
  width: 6px;
  height: 2px;
  pointer-events: none;
}
.card-glitch-tick.tick-l1 { left: -4px; top: 30%; }
.card-glitch-tick.tick-l2 { left: -4px; top: 75%; }
.card-glitch-tick.tick-r1 { right: -4px; top: 25%; }
.card-glitch-tick.tick-r2 { right: -4px; top: 70%; }

/* ICE Card Theming */
.character-card.ice-card {
  border-color: #f05438;
  background: linear-gradient(180deg, #180b09 0%, #0d0606 100%);
  box-shadow: 0 0 25px rgba(240, 84, 56, 0.2), inset 0 0 20px rgba(240, 84, 56, 0.05);
}
.character-card.ice-card .card-bracket { border-color: #ff3b30; }
.character-card.ice-card .card-glitch-tick { background: #ff3b30; }

/* KDS Card Theming */
.character-card.kds-card {
  border-color: #a855f7;
  background: linear-gradient(180deg, #14091e 0%, #09040d 100%);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.2), inset 0 0 20px rgba(168, 85, 247, 0.05);
}
.character-card.kds-card .card-bracket { border-color: #c084fc; }
.character-card.kds-card .card-glitch-tick { background: #c084fc; }

/* Avatar Circle & Horizontal Glitch Slices */
.avatar-circle-wrapper {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.avatar-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: transform 0.25s ease;
}

.character-card:hover .avatar-circle {
  transform: scale(1.04);
}

.avatar-circle.ice-glow {
  border: 3px solid #f05438;
  box-shadow: 0 0 22px rgba(240, 84, 56, 0.7);
}

.avatar-circle.kds-glow {
  border: 3px solid #a855f7;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.7);
}

/* Horizontal Glitch Slices on Circle */
.circle-glitch-dash {
  position: absolute;
  height: 2px;
  pointer-events: none;
}
.circle-glitch-dash.dash-left {
  left: -14px;
  width: 16px;
  top: 48%;
}
.circle-glitch-dash.dash-right {
  right: -16px;
  width: 18px;
  top: 54%;
}
.avatar-circle.ice-glow .circle-glitch-dash { background: #ff5e43; box-shadow: 0 0 6px #ff5e43; }
.avatar-circle.kds-glow .circle-glitch-dash { background: #c084fc; box-shadow: 0 0 6px #c084fc; }

.circle-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
}

/* Role Badge */
.role-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 8px;
  background: #0d0606;
  border: 1px solid #f05438;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  z-index: 2;
}

.role-badge.p2-badge {
  background: #0f0517;
  border-color: #a855f7;
}

.role-badge.hidden {
  display: none;
}

/* Character Details */
.char-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-name {
  font-family: var(--font-pixel);
  font-size: 19px;
  letter-spacing: 1px;
  margin: 2px 0 4px 0;
}

.char-name.c-ice {
  color: #f05438;
  text-shadow: 0 0 10px rgba(240, 84, 56, 0.6);
}

.char-name.c-kds {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.char-suit {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

/* Ability Box */
.ability-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #332020;
  border-radius: 4px;
  padding: 10px 12px;
  text-align: left;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.character-card.kds-card .ability-box {
  border-color: #311c47;
}

.ability-tag {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fbbf24;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ability-box p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* Stat Pips (6 segmented blocks) */
.char-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.stat-pips {
  display: flex;
  gap: 4px;
}

.pip {
  width: 13px;
  height: 9px;
  border-radius: 1px;
}

.pip.empty {
  background: #151010;
  border: 1px solid #3d2323;
}

.character-card.kds-card .pip.empty {
  background: #11091a;
  border-color: #341a4d;
}

.pip.filled.pip-ice {
  background: #f05438;
  border: 1px solid #ff7a63;
  box-shadow: 0 0 6px rgba(240, 84, 56, 0.8);
}

.pip.filled.pip-kds {
  background: #a855f7;
  border: 1px solid #c084fc;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
}

/* VS Badge in Dark Square */
.vs-divider-box {
  width: 38px;
  height: 38px;
  background: #110d0d;
  border: 1px solid #3d231b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.vs-text {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #f59e0b;
  letter-spacing: 1px;
}

/* Character Select Footer */
.char-select-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.btn-confirm-start {
  background: #f05438 !important;
  color: #ffffff !important;
  padding: 12px 32px !important;
  font-size: 11px !important;
  box-shadow: 0 0 20px rgba(240, 84, 56, 0.5) !important;
}

/* ==========================================================================
   SCREEN 3: WORLD MAP
   ========================================================================== */
.world-map-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px;
}

.worlds-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
}

.world-card {
  flex-shrink: 0;
  width: 170px;
  background: var(--bg-panel);
  border: 2px solid var(--border-pixel);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.world-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.world-card.active {
  border-color: var(--c-2okos);
  box-shadow: 0 0 12px var(--c-2okos-glow);
}

.world-card-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--c-gold);
  margin-bottom: 6px;
}

.world-card-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  margin-bottom: 4px;
}

.stages-box {
  background: var(--bg-panel-trans);
  border: 2px solid var(--border-pixel);
  border-radius: 8px;
  padding: 18px;
}

.world-title-header {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--c-2okos);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-pixel);
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.stage-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-pixel);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-card:hover {
  transform: translate(-1px, -1px);
  border-color: #ffffff;
  box-shadow: 2px 2px 0px #000;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.stage-id {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--c-gold);
}

.stage-stars-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--c-gold);
}

.stage-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.stage-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.world-map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stars-tally {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--c-gold);
}

/* ==========================================================================
   SCREEN 4: IN-GAME PLATFORMER VIEW
   ========================================================================== */
.game-view-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-panel-trans);
  border: 2px solid var(--border-pixel);
  border-radius: 6px;
  padding: 8px 16px;
}

.hud-player-pod {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  overflow: hidden;
  background: #000;
}

.mini-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.p-name {
  font-family: var(--font-pixel);
  font-size: 11px;
}

/* Clean Pixel HP Blocks (No emoji) */
.hud-hp-blocks {
  display: flex;
  gap: 4px;
}

.hp-pip {
  width: 12px;
  height: 10px;
  background: #ef4444;
  border: 1px solid #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.hp-pip.empty {
  background: #27272a;
  border-color: #52525b;
  box-shadow: none;
}

.hud-ability-pod {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
}

.ability-tag-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-cyan);
}

.cooldown-ring {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #fff;
}

.hud-streak-pod {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-gold);
}

.hud-letters-pod {
  display: flex;
  gap: 6px;
}

.letter-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.35);
}

.letter-badge.collected {
  background: var(--c-2okos);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 8px var(--c-2okos-glow);
}

/* Canvas Frame & Fullscreen Support */
.canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 512;
  background: #000;
  border: 2px solid #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 94, 67, 0.15);
  touch-action: none;
}

#platformer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* FULLSCREEN STYLING (PC & MOBILE) */
body.is-fullscreen-mode,
body.mobile-fullscreen-active,
.app-container.mobile-fullscreen-active {
  overflow: hidden !important;
}

#screen-game.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99990 !important;
  background: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

#screen-game.is-fullscreen .game-view-container {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  gap: 0 !important;
}

#screen-game.is-fullscreen .game-hud-bar {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(960px, 94vw) !important;
  z-index: 100000 !important;
  background: rgba(15, 17, 26, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
}

.canvas-frame.is-fullscreen,
#screen-game.is-fullscreen .canvas-frame,
:fullscreen #canvas-frame,
:-webkit-full-screen #canvas-frame {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99995 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: unset !important;
  background: #000 !important;
}

.canvas-frame.is-fullscreen #platformer-canvas,
#screen-game.is-fullscreen #platformer-canvas,
:fullscreen #platformer-canvas,
:-webkit-full-screen #platformer-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#screen-game.is-fullscreen .ingame-controls-hint {
  display: none !important;
}

/* MOBILE DIRECT TOUCH ZONES (LEFT / JUMP / RIGHT) - STRICTLY HIDDEN ON PC */
.mobile-touch-zones,
.mobile-hud-actions {
  display: none !important;
  pointer-events: none !important;
}

/* Strictly only mobile phone / touch devices */
@media (hover: none) and (pointer: coarse) and (max-width: 900px) {
  .mobile-touch-zones {
    position: absolute;
    inset: 0;
    display: flex !important;
    z-index: 25;
    pointer-events: auto !important;
    touch-action: none;
    user-select: none;
  }

  .mobile-hud-actions {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex !important;
    gap: 8px;
    z-index: 30;
    pointer-events: auto !important;
  }
}

/* Explicit rule for PC with mouse/keyboard: always hide stripes & badges */
@media (hover: hover) and (pointer: fine) {
  .mobile-touch-zones,
  .mobile-hud-actions {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

.touch-zone {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  transition: background 0.1s ease, box-shadow 0.1s ease;
  touch-action: none;
}

.touch-zone-left {
  flex: 0 0 42%;
  border-right: 1px dashed rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(255, 94, 67, 0.04) 0%, transparent 100%);
}

.touch-zone-center {
  flex: 0 0 16%;
  background: linear-gradient(180deg, transparent 60%, rgba(56, 189, 248, 0.05) 100%);
}

.touch-zone-right {
  flex: 0 0 42%;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  background: linear-gradient(270deg, rgba(255, 94, 67, 0.04) 0%, transparent 100%);
}

.touch-zone.active {
  background: rgba(255, 94, 67, 0.22) !important;
  box-shadow: inset 0 0 30px rgba(255, 94, 67, 0.35);
}

.touch-zone-center.active {
  background: rgba(56, 189, 248, 0.28) !important;
  box-shadow: inset 0 0 35px rgba(56, 189, 248, 0.45);
}

.touch-zone-badge {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 6px 14px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  letter-spacing: 0.5px;
}

.touch-zone.active .touch-zone-badge {
  opacity: 1;
  transform: scale(1.1);
  background: var(--c-2okos);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--c-2okos-glow);
}

.touch-zone-center.active .touch-zone-badge {
  background: var(--c-cyan);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.mobile-hud-actions .pixel-btn {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  font-size: 8px;
}

/* Floating Fullscreen Exit Button on PC */
.btn-fs-exit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 9px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-fs-exit:hover {
  background: #ef4444;
  border-color: #fca5a5;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* In-game controls legend */
.ingame-controls-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 4px;
}

.mobile-controls-legend {
  display: none;
}

@media (hover: none) and (pointer: coarse), (max-width: 820px) {
  .pc-controls-legend {
    display: none;
  }
  .mobile-controls-legend {
    display: inline;
  }
}

/* PC Desktop Fullscreen / Full Width Styling */
@media (min-width: 1025px) {
  body.in-game .app-container {
    max-width: 1500px;
    width: 96vw;
    padding-left: 20px;
    padding-right: 20px;
  }

  #screen-game {
    width: 100%;
  }

  #screen-game .game-view-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
  }

  #screen-game .canvas-frame {
    width: 100%;
    max-height: calc(100vh - 130px);
    aspect-ratio: 960 / 512;
  }
}

/* Editor Context Options Bar */
.ed-item-options-row {
  background: #181820;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.ed-options-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODALS: GAME OVER, STAGE CLEAR, PROFILE, SETTINGS
   ========================================================================== */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFade 0.2s ease-out;
}

.game-modal-overlay.hidden {
  display: none;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.game-modal-content {
  background: var(--bg-panel);
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 26px 36px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0,0,0,0.9), 4px 4px 0px #000;
  position: relative;
}

.modal-crest-badge-box {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.modal-crest-badge {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(255, 94, 67, 0.45));
}

.l-badge-giant {
  font-family: var(--font-pixel);
  font-size: 68px;
  color: #ef4444;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.w-badge-giant {
  font-family: var(--font-pixel);
  font-size: 60px;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-family: var(--font-pixel);
  font-size: 18px;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-choice-sub {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.sub-link-label {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 700;
  display: block;
}

.sub-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 10px;
}

.quick-char-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.quick-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.quick-pill.active {
  border-color: var(--c-2okos);
  background: var(--c-2okos);
}

/* Clear Stars (Clean pixel text) */
.stars-display {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--c-gold);
  margin-bottom: 18px;
  letter-spacing: 4px;
}

.clear-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}

.stat-card strong {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fff;
}

/* Profile Modal Details */
.profile-box {
  max-width: 620px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.profile-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-card {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-pixel);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}

.profile-card h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  margin: 8px 0 4px;
}

.avatar-circle-sm {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: none;
  overflow: visible;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle-sm.ice-glow {
  filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6));
}

.avatar-circle-sm.kds-glow {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.avatar-circle-sm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-level {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--c-2okos);
  display: block;
  margin-bottom: 10px;
}

.p-stats-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: left;
}

.p-stats-list div {
  display: flex;
  justify-content: space-between;
}

.profile-badges-section h4 {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-gold);
  margin-bottom: 8px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.p-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 8px;
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #64748b;
}

.p-badge.unlocked {
  border-color: var(--c-gold);
  color: #fff;
  background: rgba(251, 191, 36, 0.08);
}

/* Settings Form */
.settings-box {
  max-width: 440px;
}

.exit-box {
  max-width: 440px;
  text-align: center;
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4), 6px 6px 0px #000;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.pixel-chk {
  width: 18px;
  height: 18px;
  accent-color: var(--c-2okos);
  cursor: pointer;
}

.pixel-slider {
  width: 130px;
  accent-color: var(--c-2okos);
  cursor: pointer;
  height: 6px;
  background: #181922;
  border-radius: 3px;
  border: 1px solid var(--border-pixel);
  outline: none;
}

.pixel-select {
  background: #000;
  border: 2px solid var(--border-pixel);
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  font-family: var(--font-main);
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .avatars-row {
    flex-direction: column;
  }
  .profile-cards-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LEVEL EDITOR (PÁLYASZERKESZTŐ) STYLES
   ========================================================================== */
.btn-editor-nav {
  background: rgba(255, 94, 67, 0.15);
  border-color: var(--c-2okos);
  color: #ffffff;
}

.btn-editor-nav:hover {
  background: var(--c-2okos);
  box-shadow: 0 0 12px var(--c-2okos-glow);
}

.playtest-banner {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--c-2okos);
  border-radius: 6px;
  padding: 8px 18px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px var(--c-2okos-glow);
  animation: bannerPulse 2s infinite alternate ease-in-out;
}

@keyframes bannerPulse {
  0% { transform: translateX(-50%) scale(0.98); }
  100% { transform: translateX(-50%) scale(1.02); }
}

.playtest-tag {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #fbbf24;
  letter-spacing: 1px;
}

#screen-editor {
  padding: 0;
  height: calc(100vh - 65px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #08080c;
}

.editor-toolbar {
  background: rgba(14, 17, 24, 0.98);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  gap: 8px;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.ed-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ed-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ed-group-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #94a3b8;
  margin-right: 4px;
  letter-spacing: 0.5px;
}

.ed-btn {
  font-size: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #11141c;
  color: #cbd5e1;
}

.ed-btn:hover {
  background: #1e2433;
  border-color: #ffffff;
}

.ed-btn.active {
  background: #22c55e !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6), 2px 2px 0px #000 !important;
  font-weight: 700;
}

.ed-btn.btn-hazard.active {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-moving.active {
  background: #38bdf8 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-ladder {
  border-color: #fbbf24;
  color: #fde68a;
}

.ed-btn.btn-ladder.active {
  background: #fbbf24 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6), 2px 2px 0px #000 !important;
  font-weight: 700;
}

.ed-btn.btn-coin.active {
  background: #fbbf24 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-enemy.active {
  background: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-cp.active {
  background: #06b6d4 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-spawn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-goal.active {
  background: #eab308 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-select.active {
  background: #ff5e43 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 94, 67, 0.6), 2px 2px 0px #000 !important;
}

.ed-btn.btn-hint.active {
  background: #f59e0b !important;
  color: #000000 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7), 2px 2px 0px #000 !important;
}

.gameover-death-tip {
  margin: 14px auto 4px;
  padding: 10px 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #fbbf24;
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  max-width: 480px;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.ed-sub-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.ed-sub-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ed-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ed-zoom-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #cbd5e1;
  min-width: 40px;
  text-align: center;
}

.ed-file-label {
  cursor: pointer;
  background: #1e1b4b;
  border-color: #6366f1;
  color: #c7d2fe;
}

.ed-file-label:hover {
  background: #312e81;
  color: #ffffff;
}

.ed-status-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.editor-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #060609;
}

#editor-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Modal: JSON Import/Export */
.json-box {
  max-width: 600px;
  width: 90%;
  text-align: left;
}

.ed-json-textarea {
  width: 100%;
  background: #07090e;
  border: 2px solid var(--border-pixel);
  color: #4ade80;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  padding: 10px;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
  margin: 12px 0;
  outline: none;
}

/* Camera Tool & Settings Bar */
.ed-btn.btn-camera.active {
  background: #f59e0b !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7), 2px 2px 0px #000 !important;
  border-color: #fde68a !important;
  font-weight: 700;
}

.ed-camera-row {
  background: rgba(18, 12, 5, 0.95);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 14px;
}

.ed-camera-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.cam-control-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cam-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #fde68a;
  letter-spacing: 0.5px;
}

.pixel-range {
  accent-color: #f59e0b;
  cursor: pointer;
  height: 6px;
  background: #1e1408;
  border-radius: 3px;
  outline: none;
}

/* Floating Camera Mini Preview (Picture-in-Picture) */
.editor-camera-pip {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 250px;
  background: #090a10;
  border: 2px solid #f59e0b;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(245, 158, 11, 0.3);
  z-index: 10;
  overflow: hidden;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.editor-camera-pip.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.pip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171105;
  padding: 4px 8px;
  border-bottom: 1px solid #3d2c0b;
}

.pip-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #fbbf24;
}

.pip-zoom-tag {
  font-family: var(--font-pixel);
  font-size: 7px;
  background: #f59e0b;
  color: #000;
  padding: 1px 4px;
  border-radius: 2px;
}

.pip-screen-box {
  width: 100%;
  height: 140px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#editor-pip-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.pip-footer {
  background: #0d0e14;
  padding: 4px 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   SCREEN 0: INTRO & BEMUTATKOZÁS (MINIMALISTA, ELEGÁNS KEZDŐKÉPERNYŐ)
   ========================================================================== */
#screen-intro {
  min-height: calc(100vh - 65px);
  padding: 32px 16px 40px;
  box-sizing: border-box;
  background: transparent;
}

.intro-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.intro-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.intro-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-title-logo {
  max-width: 320px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 94, 67, 0.4));
}

.intro-main-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--c-2okos);
  letter-spacing: 2px;
  margin-top: 12px;
}

.intro-lead-desc {
  max-width: 620px;
  font-family: var(--font-main);
  font-size: 0.98rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 12px auto 0;
  text-align: center;
}

/* Minimalist Feature Row - completely borderless */
.intro-features-minimal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 6px;
  padding: 12px 0;
  border: none;
}

.intro-feat-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-num {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--c-2okos);
  letter-spacing: 1px;
}

.feat-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #f1f5f9;
  letter-spacing: 1px;
}

.feat-desc {
  font-family: var(--font-main);
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

/* Minimalist Clean Social Section - NO boxes, NO borders */
.intro-social-clean {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.intro-social-row {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 680px;
  justify-content: center;
  flex-wrap: wrap;
}

.clean-social-item {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: text;
  -webkit-user-select: text;
}

.clean-social-item:hover {
  background: transparent;
  transform: translateY(-2px);
}

.clean-pixel-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 94, 67, 0.45));
  transition: transform 0.2s ease;
}

.clean-social-item:hover .clean-pixel-icon {
  transform: scale(1.08);
}

.clean-social-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.clean-social-service {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #64748b;
  letter-spacing: 1px;
}

.clean-social-name {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #ffffff;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.clean-social-btn {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
  color: var(--c-2okos);
  border: 1px solid rgba(255, 94, 67, 0.5);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.clean-social-item:hover .clean-social-btn {
  background: var(--c-2okos);
  color: #ffffff;
  border-color: #ffffff;
}

/* Call to action */
.intro-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-intro-big {
  font-size: 12px;
  padding: 16px 36px;
  border-radius: 4px;
  letter-spacing: 2px;
}

.btn-intro-sub {
  font-size: 10px;
  padding: 14px 22px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.intro-footer-hint {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

.btn-subtle-intro {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 9px;
  padding: 8px 16px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-subtle-intro:hover {
  background: rgba(255, 94, 67, 0.15);
  border-color: var(--c-2okos);
  color: #ffffff;
  box-shadow: 0 0 14px var(--c-2okos-glow);
}

@media (max-width: 768px) {
  .intro-features-minimal {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .intro-social-row {
    flex-direction: column;
  }
  .clean-social-item {
    min-width: 100%;
  }
  .btn-intro-big, .btn-intro-sub {
    width: 100%;
    max-width: 360px;
  }
}

/* Multi-selection & Move-All Tools */
.glow-cyan {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

.glow-cyan:hover, .glow-cyan.active {
  background: #38bdf8 !important;
  color: #000000 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7), 2px 2px 0px #000 !important;
}

.glow-green {
  border-color: #4ade80 !important;
  color: #4ade80 !important;
}

.glow-green:hover, .glow-green.active {
  background: #4ade80 !important;
  color: #000000 !important;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.7), 2px 2px 0px #000 !important;
}

.pixel-input {
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #38bdf8;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 3px;
  outline: none;
}

.pixel-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   CINEMATIC INTRO SCREEN (2OKOS: KAOSZKOD)
   ========================================================================== */
.cinematic-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: #000000;
  overflow: hidden;
}

#cinematic-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.btn-cine-skip {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 1020;
  background: rgba(14, 15, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #94a3b8;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-cine-skip:hover {
  background: rgba(255, 94, 67, 0.25);
  border-color: var(--c-2okos);
  color: #ffffff;
}

.cinematic-subtitle-wrap {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  max-width: 820px;
  width: 90%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cinematic-subtitle-wrap.active {
  opacity: 1;
}

.cinematic-subtitle-line {
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 2px 2px 0px #000000, 0 0 16px rgba(255, 94, 67, 0.5);
  background: rgba(10, 11, 16, 0.85);
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 94, 67, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  display: inline-block;
}

.cinematic-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1015;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: screenFade 0.3s ease-out;
}

.cine-pick-card-box {
  background: #0d0e15;
  border: 2px solid var(--c-2okos);
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 94, 67, 0.3), 6px 6px 0px #000;
  max-width: 580px;
  width: 90%;
}

.cine-pick-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.cine-char-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cine-char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.cine-char-card.card-ice:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
}

.cine-char-card.card-kds:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}

.cine-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cine-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cine-char-name {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 1px;
}

.cine-char-skill {
  font-family: var(--font-pixel);
  font-size: 7.5px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.cine-splash-card {
  background: #0d0e15;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 36px 44px;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 94, 67, 0.45), 8px 8px 0px #000;
  max-width: 620px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cine-meta-tag {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-gold);
  letter-spacing: 2px;
}

.cine-stage-title {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(255, 94, 67, 0.6);
}

.cine-stage-subtitle {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #94a3b8;
}

.cine-stage-quote {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--c-2okos);
  letter-spacing: 1px;
  margin-top: 6px;
}

.cine-stage-action {
  margin-top: 14px;
  width: 100%;
}

.btn-cine-start {
  width: 100%;
  max-width: 320px;
  font-size: 16px;
  padding: 16px 28px;
  letter-spacing: 2px;
}

/* ==========================================================================
   2OKOS: BRUTÁL LETISZTULT HAMAROSAN STÍLUSOK (ULTRA-MINIMAL, ZERO GLOW)
   ========================================================================== */

.clean-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.clean-logo {
  height: 32px;
  width: auto;
  display: block;
}

.clean-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.clean-text-btn {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s ease;
}

.clean-text-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.clean-main-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 60px 24px;
  min-height: calc(100vh - 75px);
  justify-content: space-between;
}

.clean-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 35px 0;
}

.clean-hero-logo {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
}

.clean-sub-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-2okos);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.clean-big-title {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 5.5vw, 44px);
  color: #ffffff;
  letter-spacing: 6px;
  margin: 0;
  text-shadow: none;
}

.clean-hero-desc {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: #94a3b8;
  margin-top: 14px;
  max-width: 580px;
  line-height: 1.5;
}

.clean-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  width: 100%;
  margin: 30px 0 50px 0;
}

.clean-feat-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: left;
}

.clean-feat-num {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--c-2okos);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.clean-feat-heading {
  font-family: var(--font-pixel);
  font-size: 10.5px;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.clean-feat-text {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
}

.clean-social-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.clean-social-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.clean-social-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clean-social-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.clean-copyright {
  font-family: var(--font-pixel);
  font-size: 7.5px;
  color: #475569;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    touch-action: pan-y !important;
  }
  .app-container {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .clean-big-title {
    font-size: clamp(20px, 6.5vw, 32px);
    letter-spacing: clamp(2px, 1.2vw, 4px);
    word-break: break-word;
  }
  .clean-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
  .clean-main-wrap {
    padding: 24px 16px 36px 16px;
    width: 100%;
    max-width: 100%;
  }
  .clean-trailer-btn {
    font-size: clamp(6.5px, 2.3vw, 8.5px) !important;
    padding: 12px clamp(10px, 3vw, 18px) !important;
    letter-spacing: clamp(0.5px, 0.8vw, 1px) !important;
    max-width: 100%;
    white-space: nowrap !important;
  }
  .clean-social-container {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .clean-social-item {
    justify-content: space-between;
    width: 100%;
  }

  .clean-nav-desktop {
    display: none !important;
  }

  .clean-hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 9px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .clean-hamburger-btn:hover,
  .clean-hamburger-btn:active {
    background: rgba(255, 94, 67, 0.15);
    border-color: #ff5e43;
  }

  .pixel-hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 13px;
  }

  .pixel-bar {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.18s ease;
  }

  .clean-hamburger-btn:hover .pixel-bar,
  .clean-hamburger-btn:active .pixel-bar {
    background-color: #ff5e43;
  }

  /* Mobile Pixel Menu Modal */
  .mobile-pixel-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 6, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10001;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-pixel-menu.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-pixel-menu-inner {
    width: 100%;
    max-width: 340px;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 22px 18px;
    animation: cleanModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-title {
    font-family: var(--font-pixel, 'Press Start 2P', monospace);
    font-size: 9.5px;
    letter-spacing: 2px;
    color: #ffffff;
  }

  .mobile-menu-close-btn {
    font-family: var(--font-pixel, 'Press Start 2P', monospace);
    font-size: 8px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 9px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .mobile-menu-close-btn:hover {
    color: #ff5e43;
    border-color: #ff5e43;
    background: rgba(255, 94, 67, 0.1);
  }

  .mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: var(--font-pixel, 'Press Start 2P', monospace);
    font-size: 7.5px;
    color: #f1f5f9;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    letter-spacing: 0.5px;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:active {
    background: rgba(255, 94, 67, 0.12);
    border-color: #ff5e43;
    color: #ffffff;
  }

  .mobile-menu-icon {
    font-size: 6.5px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
  }

  .mobile-menu-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
  }

  .mobile-menu-brand {
    font-family: var(--font-pixel, 'Press Start 2P', monospace);
    font-size: 7px;
    color: #475569;
    letter-spacing: 1px;
  }
}

.clean-hamburger-btn {
  display: none !important;
}

.mobile-pixel-menu {
  display: none !important;
}

.clean-trailer-wrap {
  margin-top: 28px;
}

.clean-trailer-btn {
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: clamp(7px, 2.2vw, 9px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: clamp(0.8px, 1vw, 1.5px);
  white-space: nowrap !important;
  transition: all 0.18s ease;
  cursor: pointer;
  max-width: 95vw;
  box-sizing: border-box;
}

.clean-trailer-btn:hover {
  background: rgba(255, 94, 67, 0.12);
  border-color: #ff5e43;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 94, 67, 0.2);
}

/* ==========================================================================
   CLEAN MODALS (BEALLITASOK & JATEKELOZETES 1080p)
   ========================================================================== */

.clean-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
  box-sizing: border-box;
}

.clean-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Settings Card */
.clean-settings-card {
  width: 100%;
  max-width: 440px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 30px 28px 24px 28px;
  animation: cleanModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes cleanModalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.clean-settings-header {
  text-align: center;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.clean-settings-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
}

.clean-settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.clean-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.clean-setting-col {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.clean-setting-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clean-setting-info-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clean-setting-label {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  letter-spacing: 1px;
  color: #e2e8f0;
}

.clean-setting-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.clean-setting-badge {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  color: #ff5e43;
  background: rgba(255, 94, 67, 0.1);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255, 94, 67, 0.25);
}

/* Custom Sleek Switch */
.clean-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.clean-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.clean-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  border-radius: 12px;
}

.clean-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #94a3b8;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.clean-switch input:checked + .clean-switch-slider {
  background-color: rgba(255, 94, 67, 0.25);
  border-color: #ff5e43;
}

.clean-switch input:checked + .clean-switch-slider:before {
  transform: translateX(20px);
  background-color: #ff5e43;
  box-shadow: 0 0 8px rgba(255, 94, 67, 0.6);
}

/* Custom Sleek Range Slider */
.clean-range-wrapper {
  width: 100%;
}

.clean-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1e1e24;
  border-radius: 3px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.clean-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff5e43;
  cursor: pointer;
  border: 2px solid #0d0d12;
  box-shadow: 0 0 6px rgba(255, 94, 67, 0.5);
  transition: transform 0.15s ease;
}

.clean-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.clean-range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff5e43;
  cursor: pointer;
  border: 2px solid #0d0d12;
  box-shadow: 0 0 6px rgba(255, 94, 67, 0.5);
}

.clean-settings-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: center;
}

.clean-modal-btn {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 11px 26px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.clean-modal-btn:hover {
  background: rgba(255, 94, 67, 0.12);
  border-color: #ff5e43;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 1080p Cinema Trailer Modal */
.clean-trailer-modal-content {
  width: 100%;
  max-width: 960px;
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  animation: cleanModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.clean-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0d0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clean-modal-title {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: #e2e8f0;
}

.clean-modal-close-btn {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clean-modal-close-btn:hover {
  color: #ffffff;
  border-color: #ff5e43;
  background: rgba(255, 94, 67, 0.1);
}

.clean-modal-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.clean-modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SCENIC PIXEL ART BACKGROUND (DESKTOP & MOBILE WEBP)
   ========================================================================== */
body {
  background-color: #040406 !important;
}

.site-scenic-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #040406;
  opacity: 0.32; /* Finoman lehuzott opacity a fekete alap felett */
  filter: saturate(0.85) brightness(0.9);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

@media (min-width: 769px) {
  .site-scenic-bg {
    background-image: url('assets/bg_desktop.webp');
    background-position: center bottom;
  }
}

@media (max-width: 768px) {
  .site-scenic-bg {
    background-image: url('assets/bg_mobile.webp');
    background-position: center top;
  }
}

/* SOLID BLACK NAVBAR (User requested: navbar maradjon fekete) */
.clean-top-nav {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
  position: relative;
  z-index: 100;
}

.app-container {
  position: relative;
  z-index: 1;
}


