:root {
  --bg: #07131F;
  --section-bg: #0D1B2A;
  --surface: #13273B;
  --primary: #4CC9F0;
  --accent: #90F1EF;
  --text: #F4FBFF;
  --muted: #9FB7C8;
  --border: rgba(144, 241, 239, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: .25s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
iframe { border: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.center { text-align: center; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 19, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}
.header-row, .footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 700; color: var(--primary); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--primary));
  position: relative; box-shadow: 0 0 18px rgba(76, 201, 240, 0.35);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 2px solid rgba(7, 19, 31, 0.8);
}
.desktop-nav ul, .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 16px; }
.age-flag {
  border: 1px solid var(--primary); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: .9rem;
}
.hamburger, .close-menu {
  background: none; border: none; color: var(--text); font-size: 1.9rem; cursor: pointer;
}
.hamburger { display: none; }
.mobile-menu {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column;
  background: rgba(7, 19, 31, 0.98); z-index: 2000;
}
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 18px 0; font-size: 1.5rem; }
.close-menu { position: absolute; right: 24px; top: 18px; }

.hero {
  min-height: 80vh; display: flex; align-items: center; padding: 100px 0;
  background:
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.18), transparent 30%),
    linear-gradient(135deg, #07131F 0%, #0D1B2A 100%);
}
.hero-split { display: grid; grid-template-columns: 1.18fr .82fr; gap: 52px; align-items: center; }
.hero h1 { font-size: 3.45rem; line-height: 1.08; color: var(--text); margin-bottom: 24px; }
.hero p { font-size: 1.14rem; color: var(--muted); margin-bottom: 30px; }
.hero-visual, .card, .game-card, .contact-card, .iframe-shell, .modal-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
.hero-visual { padding: 28px; }
.visual-panel {
  height: 330px; border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(76, 201, 240, 0.25), rgba(144, 241, 239, 0.08)),
    radial-gradient(circle at 18% 20%, rgba(144, 241, 239, 0.55), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(76, 201, 240, 0.45), transparent 24%),
    linear-gradient(145deg, #0D1B2A, #13273B 60%, #0b1a28);
  position: relative; overflow: hidden;
}
.visual-panel::before, .visual-panel::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(244, 251, 255, 0.2);
}
.visual-panel::before { width: 200px; height: 200px; right: -40px; top: -30px; }
.visual-panel::after { width: 130px; height: 130px; left: 30px; bottom: 24px; }
.visual-copy { font-size: .92rem; color: var(--primary); margin-top: 18px; }
.btn-primary {
  display: inline-block; padding: 15px 38px; border-radius: 999px; font-weight: 700;
  background: var(--primary); color: #07131F; box-shadow: 0 10px 26px rgba(76, 201, 240, .28);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--accent); }
.badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.badge {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(144, 241, 239, 0.08); color: var(--text); font-weight: 700; font-size: .92rem;
}
.section { padding: 80px 0; }
.section.alt { background: var(--section-bg); }
.section-title { text-align: center; font-size: 2.4rem; color: var(--primary); margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card { padding: 30px; }
.card:hover, .game-card:hover { transform: translateY(-5px); border-color: rgba(76, 201, 240, 0.45); }
.card p, .section-copy, .contact-card p, .game-info p { color: var(--muted); }
.card h3, .game-info h3 { margin-bottom: 14px; color: var(--text); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 32px; }
.game-card { overflow: hidden; }
.game-image {
  height: 220px;
  background:
    linear-gradient(145deg, rgba(76, 201, 240, 0.28), rgba(19, 39, 59, 0.9)),
    radial-gradient(circle at 20% 25%, rgba(144, 241, 239, 0.45), transparent 20%),
    linear-gradient(160deg, #12263A, #091521);
}
.game-image.variant-2 {
  background:
    linear-gradient(160deg, rgba(144, 241, 239, 0.24), rgba(19, 39, 59, 0.92)),
    radial-gradient(circle at 80% 25%, rgba(76, 201, 240, 0.4), transparent 24%),
    linear-gradient(130deg, #13273B, #091521);
}
.game-image.variant-3 {
  background:
    linear-gradient(160deg, rgba(76, 201, 240, 0.15), rgba(144, 241, 239, 0.12)),
    radial-gradient(circle at 30% 80%, rgba(144, 241, 239, 0.25), transparent 18%),
    linear-gradient(145deg, #0F2132, #08131E);
}
.game-info { padding: 24px; text-align: center; }

.contact-card { padding: 28px; margin-top: 20px; }
.contact-card strong { color: var(--text); }
.inline-link { color: var(--accent); text-decoration: underline; }

.site-footer {
  margin-top: 50px; background: #08131E; border-top: 1px solid var(--border); padding: 60px 0 30px;
}
.footer-brand { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.footer-bottom {
  padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: .88rem;
}
.footer-bottom p { color: var(--muted); margin-bottom: 10px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(12px);
}
.modal-box { max-width: 520px; padding: 44px; text-align: center; }
.age-badge-large {
  width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--primary); color: var(--primary); font-size: 2rem; font-weight: 700;
}
.secondary-btn {
  background: transparent; color: var(--muted); border: none; margin-top: 14px; cursor: pointer;
}

.iframe-page { padding: 90px 0; min-height: calc(100vh - 220px); }
.iframe-shell { padding: 20px; }
.game-frame { width: 100%; height: 68vh; min-height: 540px; border-radius: 14px; background: #0A1723; }
.frame-note { color: var(--muted); margin-top: 14px; font-size: .96rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: 14px; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 72px 0; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero h1 { font-size: 2.55rem; }
  .hero p { font-size: 1.02rem; }
  .badges { justify-content: center; margin-top: 24px; }
  .visual-panel { height: 260px; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
  .container { padding: 0 16px; }
  .site-header { padding: 12px 0; }
  .header-row { align-items: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .header-right { width: 100%; justify-content: space-between; }
  .age-flag { font-size: .84rem; padding: 5px 10px; }
  .hero { padding: 58px 0 64px; }
  .hero h1 { font-size: 2.15rem; margin-bottom: 18px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.95rem; margin-bottom: 28px; }
  .card, .contact-card, .hero-visual { padding: 22px; }
  .game-grid, .grid-3 { grid-template-columns: 1fr; gap: 22px; }
  .game-image { height: 190px; }
  .footer-links { gap: 12px; }
  .game-frame { min-height: 420px; height: 58vh; }
}

html, body.frame-page { height: 100%; }
body.frame-page { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.mini-header {
  height: 68px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 10px 20px; border-bottom:1px solid var(--border); background: rgba(7,19,31,.96);
}
.mini-meta { color: var(--muted); font-size: .95rem; font-weight: 700; }
.launch-shell { min-height: 0; height: calc(100svh - 68px); padding: 10px; }
.game-frame.fixed-fit { width: 100%; height: 100%; min-height: 0; border-radius: 18px; background: #0A1723; }
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .logo { font-size: 1.15rem; gap: 10px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-right { gap: 10px; }
  .age-flag span { white-space: nowrap; }
  .hero { padding: 42px 0 52px; }
  .hero h1 { font-size: 1.84rem; }
  .hero p, .card p, .section-copy, .contact-card p, .game-info p { font-size: .97rem; }
  .visual-panel { height: 210px; }
  .btn-primary { width: 100%; text-align: center; padding: 14px 18px; }
  .badges { gap: 10px; }
  .badge { font-size: .82rem; }
  .mobile-menu li { margin: 14px 0; font-size: 1.24rem; }
  .site-footer { margin-top: 28px; padding: 40px 0 24px; }
  .mini-header { height: 56px; padding: 8px 12px; gap: 8px; }
  .mini-header .logo { font-size: .98rem; gap: 8px; }
  .mini-header .logo-mark { width: 28px; height: 28px; }
  .mini-meta { font-size: .72rem; }
  .launch-shell { height: calc(100svh - 56px); padding: 6px; }
}

.hero-visual{
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-image{
  display:block;
  width:100%;
  max-width:720px;
  height:auto;
  object-fit:cover;
  border-radius:24px;
  border:1px solid rgba(144,241,239,.14);
  box-shadow:0 18px 40px rgba(0,0,0,.24);
}

.game-thumb{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:20px 20px 0 0;
  border-bottom:1px solid rgba(144,241,239,.12);
}