@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Chivo:wght@400;600&display=swap');

:root {
  color-scheme: dark;
  --ohx-deep-night: #04030f;
  --ohx-violet: #6d4bff;
  --ohx-coral: #ff5d7d;
  --ohx-sun: #ffb347;
  --ohx-mint: #39ffba;
  --ohx-cloud: rgba(255, 255, 255, 0.08);
  --ohx-border: rgba(255, 255, 255, 0.2);
  --ohx-gradient: linear-gradient(135deg, rgba(255, 93, 125, 0.8), rgba(109, 75, 255, 0.85));
  --ohx-text: #f5f5ff;
  --ohx-muted: rgba(245, 245, 255, 0.8);
  --ohx-glow: 0 10px 25px rgba(109, 75, 255, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Chivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--ohx-deep-night);
  color: var(--ohx-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, rgba(255, 93, 125, 0.25), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(57, 255, 186, 0.2), transparent 40%),
              radial-gradient(circle at 50% 80%, rgba(109, 75, 255, 0.2), transparent 35%);
  animation: ohx-starfield 18s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background: linear-gradient(135deg, rgba(4, 3, 15, 0.75), rgba(6, 12, 30, 0.9));
}

.ohx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@keyframes ohx-starfield {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-12px); }
  100% { transform: scale(1.02) translateY(8px); }
}

.ohx-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ohx-skyline-nav {
  width: 100%;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(4, 3, 15, 0.72);
  border-bottom: 1px solid var(--ohx-border);
}

.ohx-nav-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ohx-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.ohx-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ohx-gradient);
  display: grid;
  place-items: center;
  box-shadow: var(--ohx-glow);
}

.ohx-mark span {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--ohx-text);
}

.ohx-navigation {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ohx-navigation a {
  color: var(--ohx-muted);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.3rem;
}

.ohx-navigation a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: 0;
  background: var(--ohx-gradient);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.ohx-navigation a:hover::after,
.ohx-navigation a:focus-visible::after,
.ohx-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ohx-menu-toggle {
  display: none;
  border: none;
  background: var(--ohx-cloud);
  color: var(--ohx-text);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  font-size: 0;
  position: relative;
}

.ohx-menu-toggle span,
.ohx-menu-toggle::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ohx-text);
  margin: 6px 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.ohx-menu-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(50% - 13px);
  transform-origin: center;
}

.ohx-menu-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.ohx-menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

.ohx-menu-toggle[aria-expanded="true"] span::before,
.ohx-menu-toggle[aria-expanded="true"] span::after {
  opacity: 0;
}

.ohx-menu-toggle span::before,
.ohx-menu-toggle span::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ohx-text);
  transform: translateY(-8px);
}

.ohx-menu-toggle span::after {
  transform: translateY(6px);
}

main {
  flex: 1;
}

.ohx-section {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 4rem 0;
}

.ohx-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.ohx-hero-visual {
  position: relative;
}

.ohx-hero-visual img {
  width: 100%;
  border-radius: 32px;
  border: 1px solid var(--ohx-border);
  box-shadow: var(--ohx-glow);
}

.ohx-hero-visual::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  animation: ohx-pulse 4s ease-in-out infinite;
}

@keyframes ohx-pulse {
  0% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.4; }
}

.ohx-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ohx-border);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ohx-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin: 1.2rem 0;
}

.ohx-hero-title span {
  background: var(--ohx-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.ohx-hero-subtext {
  font-size: 1.05rem;
  color: var(--ohx-muted);
  max-width: 520px;
}

.ohx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.ohx-btn-primary,
.ohx-btn-secondary {
  border: none;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ohx-btn-primary {
  background: var(--ohx-gradient);
  color: #fff;
  box-shadow: var(--ohx-glow);
}

.ohx-btn-secondary {
  background: transparent;
  border: 1px solid var(--ohx-border);
  color: var(--ohx-text);
}

.ohx-btn-primary:hover,
.ohx-btn-secondary:hover {
  transform: translateY(-4px);
}

.ohx-article {
  background: rgba(7, 8, 20, 0.85);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--ohx-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.ohx-article h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.ohx-rich-text {
  display: grid;
  gap: 1.2rem;
  color: var(--ohx-muted);
  line-height: 1.7;
}

.ohx-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ohx-card {
  border: 1px solid var(--ohx-border);
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(10, 12, 28, 0.9);
  position: relative;
  overflow: hidden;
}

.ohx-card::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: conic-gradient(from 45deg, rgba(255, 93, 125, 0.2), rgba(57, 255, 186, 0.15), rgba(109, 75, 255, 0.2), transparent 75%);
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ohx-card:hover::before {
  opacity: 1;
}

.ohx-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.ohx-card p {
  margin: 0;
  color: var(--ohx-muted);
}

.ohx-game-stage {
  margin-top: 3rem;
  border: 1px solid var(--ohx-border);
  border-radius: 32px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
}

.ohx-game-stage img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--ohx-border);
}

.ohx-slot-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ohx-contact-stage {
  margin-top: 2rem;
}

.ohx-slot-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ohx-border);
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.ohx-slot-action {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ohx-mini-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ohx-quiz-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ohx-quiz-card {
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--ohx-border);
  background: rgba(6, 7, 18, 0.95);
  display: grid;
  gap: 0.6rem;
}

.ohx-quiz-card strong {
  letter-spacing: 0.05em;
  color: var(--ohx-text);
}

.ohx-quiz-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ohx-muted);
}

.ohx-quiz-card li {
  margin-bottom: 0.3rem;
}

.ohx-footer {
  margin-top: auto;
  background: rgba(2, 4, 12, 0.9);
  border-top: 1px solid var(--ohx-border);
  padding: 2.5rem 0 2rem;
}

.ohx-footer-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.ohx-footer a {
  color: var(--ohx-muted);
  text-decoration: none;
}

.ohx-footer small {
  display: block;
  margin-top: 1.5rem;
  color: var(--ohx-muted);
}

.ohx-form-shell {
  display: grid;
  gap: 1rem;
}

.ohx-form-shell label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.ohx-form-shell input,
.ohx-form-shell textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--ohx-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ohx-text);
  font-size: 1rem;
}

.ohx-form-shell textarea {
  min-height: 160px;
  resize: vertical;
}

.ohx-policy-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ohx-policy-list li {
  background: rgba(9, 9, 25, 0.95);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ohx-border);
}

.ohx-responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.ohx-responsive-table th,
.ohx-responsive-table td {
  border: 1px solid var(--ohx-border);
  padding: 0.9rem;
  text-align: left;
}

.ohx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ohx-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ohx-border);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.ohx-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ohx-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ohx-labeled-block {
  border: 1px solid var(--ohx-border);
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(10, 12, 24, 0.85);
  margin-top: 1.5rem;
}

.ohx-labeled-block h3 {
  margin-top: 0;
}

.ohx-hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  z-index: -1;
  filter: blur(35px);
  opacity: 0.5;
}

.ohx-floating-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ohx-floating-bubbles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: ohx-rise calc(12s + var(--i) * 1s) linear infinite;
}

@keyframes ohx-rise {
  from { transform: translateY(100vh) scale(0.5); opacity: 0; }
  to { transform: translateY(-10vh) scale(1); opacity: 1; }
}

.ohx-play-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.ohx-game-cabinet {
  border: 1px solid var(--ohx-border);
  border-radius: 32px;
  padding: 2rem;
  background: rgba(7, 8, 22, 0.9);
  box-shadow: var(--ohx-glow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ohx-game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.ohx-game-balance,
.ohx-game-bet {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ohx-border);
  background: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.05em;
}

.ohx-slot-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--ohx-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 2rem;
  text-align: center;
}

.ohx-slot-matrix span {
  padding: 0.9rem 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.ohx-game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.ohx-bet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ohx-bet-pill {
  border: 1px solid var(--ohx-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: transparent;
  color: var(--ohx-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ohx-bet-pill[aria-pressed="true"] {
  background: var(--ohx-gradient);
  color: #fff;
  box-shadow: var(--ohx-glow);
}

.ohx-feed-panel {
  border: 1px solid var(--ohx-border);
  border-radius: 28px;
  padding: 1.5rem;
  background: rgba(9, 10, 26, 0.9);
  display: grid;
  gap: 1rem;
}

.ohx-feed-panel h3 {
  margin: 0;
}

.ohx-feed-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ohx-muted);
}

.ohx-iframe-shell {
  border: 1px solid var(--ohx-border);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(5, 9, 20, 0.92);
  box-shadow: var(--ohx-glow);
  width: 100%;
}

.ohx-iframe-shell iframe {
  width: 100%;
  height: clamp(260px, 65vh, 760px);
  border: none;
  display: block;
  background: #03030b;
}

.ohx-success-layer {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 15, 0.85);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.ohx-success-layer--visible {
  opacity: 1;
  pointer-events: auto;
}

.ohx-success-card {
  background: rgba(10, 12, 30, 0.95);
  border: 1px solid var(--ohx-border);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  width: min(420px, 90%);
  box-shadow: var(--ohx-glow);
}

.ohx-success-card h3 {
  margin-top: 0;
}

.ohx-success-card p {
  color: var(--ohx-muted);
  margin-bottom: 1.5rem;
}

.ohx-game-layer {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.9);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
  padding: 1.5rem;
}

.ohx-game-layer--visible {
  opacity: 1;
  pointer-events: auto;
}

.ohx-game-card {
  width: min(1100px, 95%);
  background: rgba(5, 8, 20, 0.95);
  border-radius: 32px;
  border: 1px solid var(--ohx-border);
  padding: 1.5rem;
  box-shadow: var(--ohx-glow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 95vh;
}

.ohx-game-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ohx-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ohx-border);
  background: transparent;
  color: var(--ohx-text);
  position: relative;
  cursor: pointer;
}

.ohx-close-btn::before,
.ohx-close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ohx-text);
  transform-origin: center;
}

.ohx-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ohx-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.ohx-game-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .ohx-section {
    width: 90%;
  }
}

@media (max-width: 991px) {
  .ohx-menu-toggle {
    display: inline-flex;
  }

  .ohx-navigation {
    position: absolute;
    top: 100%;
    right: 2%;
    background: rgba(4, 3, 15, 0.95);
    border: 1px solid var(--ohx-border);
    border-radius: 22px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    min-width: 240px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .ohx-navigation[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .ohx-hero-grid {
    text-align: center;
  }

  .ohx-hero-subtext {
    margin: 0 auto;
  }

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

  .ohx-game-layer {
    padding: 1.25rem;
  }

  .ohx-game-card {
    padding: 1.25rem;
    width: 100%;
    max-height: 90vh;
  }
}

@media (max-width: 600px) {
  .ohx-hero-title {
    font-size: 2rem;
  }

  .ohx-section {
    padding: 3rem 0;
  }

  .ohx-game-stage {
    padding: 1.5rem;
    grid-template-columns: 1fr;
  }

  .ohx-slot-window {
    font-size: 1.1rem;
  }

  .ohx-slot-action {
    flex-direction: column;
  }

  .ohx-slot-action > * {
    width: 100%;
    text-align: center;
  }

  .ohx-btn-primary,
  .ohx-btn-secondary {
    width: 100%;
  }

  .ohx-play-layout {
    grid-template-columns: 1fr;
  }

  .ohx-article,
  .ohx-game-card {
    border-radius: 24px;
  }

  .ohx-game-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ohx-game-layer {
    padding: 1rem;
  }

  .ohx-iframe-shell iframe {
    height: clamp(220px, 60vh, 420px);
  }
}

@media (max-width: 360px) {
  body {
    font-size: 0.95rem;
  }

  .ohx-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ohx-hero-title {
    font-size: 1.65rem;
  }

  .ohx-section {
    padding: 2.5rem 0;
  }

  .ohx-article {
    padding: 1.25rem;
  }

  .ohx-chip-row {
    flex-direction: column;
  }

  .ohx-chip {
    width: 100%;
    text-align: center;
  }

  .ohx-slot-window {
    font-size: 1rem;
  }

  .ohx-slot-window span {
    padding: 0.6rem 0;
  }

  .ohx-policy-list li {
    padding: 0.8rem;
  }

  .ohx-iframe-shell iframe {
    height: clamp(200px, 60vh, 320px);
  }

  .ohx-game-card {
    padding: 0.9rem;
  }

  .ohx-game-layer {
    padding: 0.75rem;
  }

  .ohx-game-card__head {
    gap: 0.5rem;
  }

  .ohx-close-btn {
    width: 36px;
    height: 36px;
  }
}
