/* ============================================
   Dynexoria - Main Stylesheet
   Midnight Teal & Violet Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #24d5c0;
  --accent-light: #63eedf;
  --accent-dark: #0fa59d;
  --accent-glow: rgba(36, 213, 192, 0.22);
  --violet: #7d5cff;
  --violet-dark: #4e34ca;
  --night: #05070d;
  --night-1: #090d16;
  --night-2: #0d1320;
  --night-3: #111a2b;
  --night-4: #162238;
  --night-5: #22314f;
  --white: #ffffff;
  --gray-1: #eff4fb;
  --gray-2: #d6deed;
  --gray-3: #9bacc7;
  --gray-4: #7688a3;
  --gold: #ffd770;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-accent: 0 0 20px rgba(36, 213, 192, 0.35);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--night-1);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
.inner-body { background: linear-gradient(180deg, var(--night-1), var(--night)); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; }
.container, .container-narrow { margin: 0 auto; padding: 0 20px; }
.container { max-width: 1200px; }
.container-narrow { max-width: 900px; }

/* AGE GATE */
.age-gate-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px);
  z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: ageGateFadeIn 0.4s ease;
}
@keyframes ageGateFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ageGateSlideUp { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.age-gate-card {
  position: relative; width: 100%; max-width: 440px;
  background: linear-gradient(145deg, var(--night-3), var(--night-2));
  border: 1px solid rgba(36, 213, 192, 0.18); border-radius: var(--radius-xl); padding: 48px 40px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(36, 213, 192, 0.08); overflow: hidden;
  animation: ageGateSlideUp 0.5s ease 0.15s both;
}
.age-gate-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--violet), var(--accent)); }
.age-gate-glow { position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; background: radial-gradient(circle, rgba(36, 213, 192, 0.12) 0%, transparent 70%); pointer-events: none; }
.age-gate-content { position: relative; text-align: center; }
.age-gate-title { font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.age-gate-text { font-size: 17px; color: var(--gray-3); margin-bottom: 16px; }
.age-gate-disclaimer { font-size: 13px; color: var(--gray-4); line-height: 1.7; margin-bottom: 28px; }
.age-gate-btn {
  display: inline-block; width: 100%; background: linear-gradient(135deg, var(--accent), var(--violet)); color: var(--white);
  border: none; padding: 14px 32px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-size: 16px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(36, 213, 192, 0.25);
}
.age-gate-btn:hover { background: linear-gradient(135deg, var(--accent-light), var(--violet)); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(36, 213, 192, 0.4); }
.age-gate-btn:active { transform: translateY(0) scale(0.97); }

/* HEADER */
#site-header {
  background: var(--night); border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(36, 213, 192, 0.22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1200px; margin: 0 auto; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent), var(--violet)); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-accent); flex-shrink: 0;
}
.logo-text { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.logo-text span { color: var(--accent); }
#main-nav ul { list-style: none; display: flex; align-items: center; gap: 30px; }
#main-nav a { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-2); }
#main-nav a:hover { color: var(--accent); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.btn-login, .btn-register {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 50px; font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition);
}
.btn-login { color: var(--gray-2); border: 1px solid var(--night-5); background: transparent; }
.btn-login:hover { color: var(--white); border-color: var(--accent); }
.btn-register {
  color: var(--white); background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 6px 18px rgba(36, 213, 192, 0.22);
}
.btn-register:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36, 213, 192, 0.28); }
.btn-register-small { padding: 10px 16px; font-size: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background:none; border:none; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; transition: var(--transition); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); z-index: 1100; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; background: linear-gradient(180deg, var(--night-2), var(--night));
  z-index: 1200; padding: 20px; border-left: 1px solid rgba(36,213,192,.18); transition: var(--transition); display:flex; flex-direction:column;
}
.mobile-menu.active { right: 0; }
.mobile-menu-close { display:flex; justify-content:flex-end; margin-bottom: 10px; }
.mobile-menu-close button { background:none; border:none; color: var(--white); font-size: 36px; cursor:pointer; line-height:1; }
.mobile-menu nav ul { list-style:none; display:grid; gap: 14px; }
.mobile-menu nav a { color: var(--gray-2); font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.mobile-menu-btn { margin-top: auto; width: 100%; }

/* HERO */
.hero-section {
  background: linear-gradient(160deg, #080a12 0%, #101a28 42%, #0a0915 100%);
  padding: 80px 20px 70px; text-align: center; position: relative; overflow: hidden;
}
.hero-section::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 820px; height: 820px; background: radial-gradient(circle, rgba(36, 213, 192, 0.12) 0%, transparent 70%); pointer-events: none; }
.hero-section::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(36, 213, 192, 0.08); border: 1px solid rgba(36, 213, 192, 0.25);
  color: var(--accent-light); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
}
.hero-title { font-family: var(--font-heading); font-size: clamp(36px, 6vw, 60px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-title span { color: var(--accent); display: block; }
.hero-subtitle { font-size: 17px; color: var(--gray-3); max-width: 620px; margin: 0 auto 40px; line-height: 1.7; }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.feature-card {
  background: linear-gradient(145deg, var(--night-3), var(--night-2)); border: 1px solid var(--night-5); border-radius: var(--radius-md); padding: 28px 22px;
  text-align: left; position: relative; overflow: hidden; transition: var(--transition);
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--violet)); opacity: 0; transition: var(--transition); }
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-accent); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 44px; height: 44px; background: rgba(36, 213, 192, 0.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; border: 1px solid rgba(36, 213, 192, 0.2); }
.feature-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.feature-card p { font-size: 14px; color: var(--gray-3); line-height: 1.6; }

/* GAMES */
.games-section { padding: 80px 20px; background: var(--night-2); position: relative; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; }
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.section-title span { color: var(--accent); }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.games-grid-single { grid-template-columns: 1fr; max-width: 960px; }
.game-card { background: var(--night-3); border: 1px solid var(--night-5); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); position: relative; }
.game-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(36, 213, 192, 0.22); }
.game-card-large .game-thumbnail { height: 320px; }
.game-thumbnail { width: 100%; height: 240px; overflow: hidden; position: relative; }
.game-thumbnail-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; font-family: var(--font-heading); font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.game-thumbnail-placeholder.southern-lights { background: linear-gradient(135deg, #07111f 0%, #102742 40%, #150d28 100%); color: var(--accent-light); text-shadow: 0 0 20px rgba(99, 238, 223, 0.4); }
.slot-preview { width: min(86%, 650px); border: 1px solid rgba(99,238,223,.12); border-radius: 24px; background: linear-gradient(180deg, rgba(8,16,31,.88), rgba(15,21,37,.92)); padding: 22px 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 40px rgba(0,0,0,.28); }
.slot-preview-top { font-size: 24px; margin-bottom: 16px; }
.slot-preview-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slot-preview-reels span { display:flex; align-items:center; justify-content:center; min-height:110px; border-radius:20px; font-size:48px; background: linear-gradient(180deg, rgba(19,34,59,.92), rgba(12,21,40,.92)); border:1px solid rgba(99,238,223,.12); }
.slot-preview-bottom { margin-top: 16px; font-size: 15px; color: var(--gray-2); letter-spacing: 1px; }
.game-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.28); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.game-card:hover .game-overlay { opacity: 1; }
.game-info { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 100%); }
.game-info-wide { flex-direction: row; justify-content: space-between; align-items: center; gap: 18px; }
.game-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; display: block; }
.game-description { font-size: 14px; color: var(--gray-3); line-height: 1.65; max-width: 620px; margin-top: 6px; }
.btn-play { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: var(--white); padding: 12px 32px; border-radius: 50px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); box-shadow: 0 4px 16px rgba(36, 213, 192, 0.28); border: none; cursor: pointer; text-decoration: none; }
.btn-play:hover { background: linear-gradient(135deg, var(--accent-light), var(--violet)); transform: scale(1.05); box-shadow: 0 6px 24px rgba(36, 213, 192, 0.4); color: var(--white); }

/* LEADERBOARD */
.leaderboard-section { padding: 80px 20px; background: var(--night-1); }
.leaderboard-wrapper { max-width: 800px; margin: 0 auto; background: var(--night-3); border: 1px solid var(--night-5); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.leaderboard-header { background: linear-gradient(135deg, var(--night-4), var(--night-3)); padding: 18px 24px; border-bottom: 1px solid var(--night-5); display: flex; align-items: center; gap: 10px; }
.leaderboard-header h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.trophy-icon { font-size: 20px; }
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table thead tr { background: var(--night-4); }
.leaderboard-table th { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 600; color: var(--gray-4); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--night-5); }
.leaderboard-table tbody tr { transition: var(--transition); border-bottom: 1px solid rgba(255,255,255,0.04); }
.leaderboard-table tbody tr:hover { background: rgba(36, 213, 192, 0.05); }
.leaderboard-table tbody tr:last-child { border-bottom: none; }
.leaderboard-table td { padding: 14px 20px; font-size: 14px; color: var(--gray-2); }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; font-weight: 700; }
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; } .rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; } .rank-3 { background: linear-gradient(135deg, #cd7f32, #a05a1f); color: #fff; }
.player-name { font-weight: 600; color: var(--white); font-family: var(--font-heading); font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.activity-text { color: var(--gray-4); font-size: 13px; }
.activity-text .time-highlight { color: var(--accent); font-weight: 600; }
.score-value { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }

/* HOWTO */
.howto-section { padding: 60px 20px; background: var(--night-2); }
.howto-wrapper { max-width: 800px; margin: 0 auto; background: var(--night-3); border: 1px solid var(--night-5); border-radius: var(--radius-lg); padding: 36px 40px; }
.howto-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 28px; display: flex; align-items: center; gap: 8px; }
.howto-label::after { content: ''; flex: 1; height: 1px; background: var(--night-5); }
.howto-step { margin-bottom: 24px; padding-left: 20px; border-left: 2px solid var(--night-5); transition: var(--transition); }
.howto-step:last-child { margin-bottom: 0; }
.howto-step:hover { border-left-color: var(--accent); }
.step-number { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.howto-step p { font-size: 14px; color: var(--gray-3); line-height: 1.6; }
.howto-step p strong { color: var(--accent); }

/* TRUST */
.trust-section { padding: 50px 20px; background: var(--night-1); border-top: 1px solid var(--night-4); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 12px; opacity: 0.82; transition: var(--transition); flex-direction: column; text-align: center; }
.trust-badge:hover { opacity: 1; }
.badge-18plus { display:flex; align-items:center; justify-content:center; border: 3px solid var(--accent); color: var(--accent); font-family: var(--font-heading); font-size: 24px; font-weight: 900; border-radius: 50%; width: 68px; height: 68px; }
.badge-pill { background: var(--night-3); border: 1px solid var(--night-5); padding: 10px 18px; border-radius: var(--radius-sm); min-width: 132px; }
.badge-text-main { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.badge-text-main .gamble { color: var(--gray-3); margin-right: 4px; } .badge-text-main .aware { color: var(--accent); }
.badge-text-sub { font-size: 10px; color: var(--gray-4); letter-spacing: 1px; text-transform: uppercase; }
.trust-caption { font-size:12px; color:var(--gray-4); text-transform:uppercase; letter-spacing:1px; }

/* FOOTER */
#site-footer { background: var(--night); border-top: 2px solid var(--night-4); padding: 50px 20px 28px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--night-4); margin-bottom: 30px; }
.footer-brand .logo-text { font-size: 24px; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; color: var(--gray-4); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; }
.footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--gray-4); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copyright { font-size: 13px; color: var(--gray-4); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--gray-4); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 12px; color: var(--gray-4); text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--night-4); line-height: 1.7; }

/* INNER PAGES */
.page-hero { background: linear-gradient(160deg, var(--night) 0%, #0f1b2b 50%, var(--night) 100%); padding: 60px 20px 50px; text-align: center; border-bottom: 1px solid var(--night-4); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, rgba(36, 213, 192, 0.08) 0%, transparent 60%); pointer-events: none; }
.compact-page-hero { padding-bottom: 36px; }
.page-hero-title { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; position: relative; }
.page-hero-subtitle { color: var(--gray-3); max-width: 720px; margin: 0 auto; position: relative; }
.page-content-wrap { padding: 48px 20px 70px; }
.content-card, .prose-card, .standalone-frame { background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--night-5); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.prose-card { padding: 36px; }
.prose-card h2 { font-family: var(--font-heading); font-size: 24px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; margin-top: 28px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p { color: var(--gray-2); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.contact-form { margin-top: 18px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-field { display:grid; gap:8px; margin-bottom:16px; }
.form-field label { font-size: 13px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1px; }
.form-field input, .form-field textarea {
  width:100%; background: rgba(255,255,255,.03); border:1px solid var(--night-5); color: var(--white); border-radius: 12px; padding: 14px 16px; font: inherit;
}
.form-field input:focus, .form-field textarea:focus { outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36,213,192,.08); }
.btn-submit { display:inline-flex; align-items:center; justify-content:center; padding: 12px 26px; border:none; border-radius:999px; background:linear-gradient(135deg,var(--accent),var(--violet)); color:#fff; font-weight:700; text-transform:uppercase; letter-spacing:1px; cursor:pointer; }
.alert { margin-top:14px; padding:12px 14px; border-radius:12px; font-size:14px; }
.alert-success { background: rgba(36,213,192,.1); border:1px solid rgba(36,213,192,.18); color: var(--accent-light); }
.alert-error { background: rgba(255,101,145,.08); border:1px solid rgba(255,101,145,.18); color: #ff9fbb; }
.play-page-main { padding: 36px 20px 70px; }
.standalone-frame { padding: 20px; }

/* MODAL / IFRAME */
.game-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.game-modal.active { display: block; }
.game-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.game-modal-dialog {
  position: relative; width: min(1200px, calc(100vw - 40px)); margin: 28px auto; background: linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid rgba(36,213,192,.16); border-radius: 26px; box-shadow: 0 30px 100px rgba(0,0,0,.48); overflow: hidden;
}
.game-modal-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding: 22px 24px 0; }
.modal-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; letter-spacing: 1px; line-height: 1; }
.game-frame-shell { padding: 20px 24px 24px; }
.game-frame-shell iframe { display:block; width:100%; height: min(76vh, 860px); border:none; border-radius: 20px; background: #060913; }
.large-frame-shell iframe { height: min(78vh, 900px); }
.game-modal-close { position:absolute; top:14px; right:18px; width:42px; height:42px; border:none; border-radius:50%; background: rgba(255,255,255,.06); color:#fff; font-size:28px; cursor:pointer; z-index: 2; }
.game-modal-close:hover { background: rgba(255,255,255,.12); }

@media (max-width: 980px) {
  #main-nav, .header-cta { display:none; }
  .hamburger { display:flex; }
  .hero-features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .game-info-wide { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .hero-section { padding-top: 62px; }
  .games-grid { grid-template-columns: 1fr; }
  .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { display:none; }
  .howto-wrapper, .prose-card { padding: 26px 20px; }
  .slot-preview-reels span { min-height: 80px; font-size: 38px; }
  .game-card-large .game-thumbnail { height: 280px; }
  .game-modal-dialog { width: calc(100vw - 20px); margin: 10px auto; }
  .game-modal-header { flex-direction: column; align-items:flex-start; padding-right: 52px; }
  .game-frame-shell { padding: 16px; }
  .game-frame-shell iframe { height: 74vh; }
  .form-grid { grid-template-columns:1fr; }
}
@media (max-width: 480px) {
  .age-gate-card { padding: 36px 24px; }
  .age-gate-title { font-size: 28px; }
  .header-inner { padding-inline: 14px; }
  .logo-text { font-size: 24px; }
  .modal-title { font-size: 28px; }
}


/* one-page landing cleanup */
.footer-links span{
  color: rgba(255,255,255,.75);
  font-size:14px;
  margin-right:16px;
  display:inline-block;
}
.footer-links span:last-child{margin-right:0;}

html {
  scroll-behavior: smooth;
}

.game-frame-shell {
  overflow: hidden;
}

.game-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

/* Fit iframe modal within viewport without scroll */
.modal-shell {
  width: min(960px, calc(100vw - 24px));
  max-height: min(92vh, 760px);
  overflow: hidden;
}

.game-frame-shell.large-frame-shell {
  height: min(78vh, 680px);
  overflow: hidden;
}

@media (max-width: 900px) {
  .modal-shell {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .game-frame-shell.large-frame-shell {
    height: calc(100vh - 92px);
    min-height: 500px;
    max-height: calc(100vh - 92px);
  }
}

@media (max-width: 680px) {
  .footer-links {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px 16px;
  }
  .footer-links span{
    margin-right:0;
  }
}

@media (max-width: 480px) {
  .modal-shell {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
    border-radius: 16px;
  }

  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 10px;
  }

  .modal-title {
    font-size: 22px;
    line-height: 1.1;
  }

  .modal-subtitle {
    font-size: 12px;
  }

  .game-frame-shell.large-frame-shell {
    height: calc(100vh - 84px);
    min-height: 430px;
    max-height: calc(100vh - 84px);
  }
}


/* Section navigation anchors */
#featured-title, #leaderboard, #how-it-works {
  scroll-margin-top: 90px;
}

/* Better embedded play sizing */
.embedded-play-card, .embedded-play, .game-preview-card {
  overflow: visible;
}

.game-frame-shell {
  overflow: hidden;
  padding: 16px 18px 18px;
}

.game-frame-shell iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: none;
  border-radius: 20px;
  background: #060913;
  overflow: hidden;
}

.large-frame-shell iframe {
  height: min(86vh, 760px);
}

@media (max-width: 991px) {
  .game-frame-shell iframe {
    height: 660px;
  }
  .large-frame-shell iframe {
    height: min(88vh, 700px);
  }
}

@media (max-width: 767px) {
  .game-frame-shell {
    padding: 12px;
  }
  .game-frame-shell iframe {
    height: 740px;
    border-radius: 16px;
  }
  .large-frame-shell iframe {
    height: min(92vh, 760px);
  }
    .card-mob {
    display: none;
  }
}

@media (max-width: 480px) {
  .game-frame-shell {
    padding: 10px;
  }
  .game-frame-shell iframe {
    height: 720px;
    border-radius: 14px;
  }
  .large-frame-shell iframe {
    height: min(92vh, 760px);
  }
}
