:root {
  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.82);
  --panel-strong: rgba(4, 4, 4, 0.94);
  --gold: #d7a83a;
  --gold-soft: rgba(215, 168, 58, 0.25);
  --text: #f5efe0;
  --muted: rgba(245, 239, 224, 0.78);
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app {
  position: relative;
  width: min(100vw, calc(100vh * 1.5));
  height: min(100vh, calc(100vw / 1.5));
  aspect-ratio: 3 / 2;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35)),
    url("images/menu.webp") center center / 100% 100% no-repeat;
  box-shadow: var(--shadow);
  border-radius: 0;
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  will-change: opacity, transform;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.route-page {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.40)),
    url("images/menu.webp") center center / cover no-repeat;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 2.2vw, 24px);
  gap: 14px;
  overflow: hidden;
}

.route-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.page-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.back-button {
  appearance: none;
  border: 1px solid rgba(215, 168, 58, 0.35);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.92));
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.back-button:hover {
  border-color: rgba(215, 168, 58, 0.55);
  box-shadow: 0 0 18px rgba(215, 168, 58, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.back-button:active {
  transform: translateY(0) scale(0.98);
}

.page-badge {
  color: rgba(215, 168, 58, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(215, 168, 58, 0.30);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.90), rgba(8, 8, 8, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 50px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 32px);
  overflow: hidden;
  isolation: isolate;
}

.page-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 18%, transparent 36%),
    linear-gradient(180deg, rgba(215, 168, 58, 0.08), transparent 28%, transparent 72%, rgba(215, 168, 58, 0.05));
  opacity: 0.7;
  animation: cardGlow 10s ease-in-out infinite;
}

.page-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top center, rgba(215, 168, 58, 0.10), transparent 38%);
  pointer-events: none;
}

.page-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 2px 0;
  flex: 0 0 auto;
}

.page-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #f8d98a;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(215, 168, 58, 0.16);
  animation: titlePulse 8s ease-in-out infinite;
  overflow-wrap: anywhere;
}

.page-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.6;
  max-width: 70ch;
  overflow-wrap: anywhere;
}

.page-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 10px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(215, 168, 58, 0.72), transparent);
  box-shadow: 0 0 14px rgba(215, 168, 58, 0.18);
  flex: 0 0 auto;
}

.page-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 10px;
  padding-bottom: 6px;
  color: rgba(245, 239, 224, 0.90);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  max-width: 100%;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 168, 58, 0.55) transparent;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.page-content p {
  margin: 0 0 14px;
}

.page-content ul,
.page-content ol {
  margin: 0;
  padding-left: 22px;
}

.page-content li + li {
  margin-top: 8px;
}

.page-content::-webkit-scrollbar {
  width: 8px;
}

.page-content::-webkit-scrollbar-track {
  background: transparent;
}

.page-content::-webkit-scrollbar-thumb {
  background: rgba(215, 168, 58, 0.55);
  border-radius: 999px;
}

.page-content::-webkit-scrollbar-thumb:hover {
  background: rgba(215, 168, 58, 0.76);
}

.page-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 18px;
  color: rgba(215, 168, 58, 0.82);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 2px;
  flex: 0 0 auto;
}

.hidden {
  display: none !important;
}

.hotspot {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent !important;
  color: transparent;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: none;
  user-select: none;
  touch-action: manipulation;
  z-index: 10;
}

.hotspot:hover,
.hotspot:active,
.hotspot:focus,
.hotspot:focus-visible {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.hotspot::before,
.hotspot::after {
  content: none !important;
  display: none !important;
}

.hs-about {
  left: 53.5%;
  top: 0.0%;
  width: 46.5%;
  height: 34.8%;
}

.hs-start {
  left: 0.0%;
  top: 36.8%;
  width: 33.4%;
  height: 31.8%;
}

.hs-containers {
  left: 33.4%;
  top: 36.8%;
  width: 33.2%;
  height: 31.8%;
}

.hs-levels {
  left: 66.6%;
  top: 36.8%;
  width: 33.4%;
  height: 31.8%;
}

.hs-rating {
  left: 0.0%;
  top: 68.8%;
  width: 33.4%;
  height: 31.2%;
}

.hs-casino {
  left: 33.4%;
  top: 68.8%;
  width: 33.2%;
  height: 31.2%;
}

.hs-economy {
  left: 66.6%;
  top: 68.8%;
  width: 33.4%;
  height: 31.2%;
}

@media (max-aspect-ratio: 3/2) {
  .app {
    width: 100vw;
    height: calc(100vw / 1.5);
  }
}

@media (min-aspect-ratio: 3/2) {
  .app {
    height: 100vh;
    width: calc(100vh * 1.5);
  }
}

@keyframes cardGlow {
  0%,
  100% {
    opacity: 0.48;
    transform: translateY(0);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-1px);
  }
}

@keyframes titlePulse {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(215, 168, 58, 0.16);
  }

  50% {
    text-shadow: 0 0 22px rgba(215, 168, 58, 0.26);
  }
}

@media (max-width: 800px) {
  .route-page {
    padding: 12px;
    gap: 10px;
  }

  .page-card {
    padding: 16px;
  }

  .page-title {
    font-size: clamp(24px, 5vw, 40px);
  }

  .page-subtitle,
  .page-content {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .page-card::before,
  .page-title,
  .back-button {
    animation: none !important;
    transition: none !important;
  }
}
