﻿:root {
  --bg-900: #05202c;
  --bg-800: #093244;
  --bg-700: #0f4a60;
  --surface: rgba(4, 31, 43, 0.72);
  --surface-soft: rgba(10, 52, 69, 0.5);
  --line: rgba(120, 235, 222, 0.28);
  --text: #e9fbfb;
  --muted: #b7dfe0;
  --accent: #26d4b8;
  --accent-strong: #17bea3;
  --danger: #ffcf83;
  --radius: 16px;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.33);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(46, 197, 177, 0.24) 0, rgba(46, 197, 177, 0) 28%),
    radial-gradient(circle at 85% 15%, rgba(33, 136, 176, 0.22) 0, rgba(33, 136, 176, 0) 26%),
    linear-gradient(120deg, var(--bg-900) 5%, var(--bg-800) 48%, var(--bg-700) 100%);
  min-height: 100vh;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(130deg, rgba(82, 207, 194, 0.17) 1px, transparent 1px),
    linear-gradient(50deg, rgba(82, 207, 194, 0.14) 1px, transparent 1px);
  background-size: 170px 170px;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.age-banner {
  text-align: center;
  background: #f2c66f;
  color: #1f1f1f;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(3, 24, 35, 0.74);
  border-bottom: 1px solid rgba(117, 213, 208, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
  line-height: 1;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(7, 46, 61, 0.88);
  border: 1px solid rgba(122, 236, 222, 0.34);
  padding: 4px;
}

.brand span {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(117, 224, 212, 0.35);
  background: rgba(6, 45, 59, 0.88);
  color: #d9fbf7;
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: #d9fbf7;
  border-radius: 2px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  right: 0;
  width: 18px;
  height: 2px;
  background: #d9fbf7;
  border-radius: 2px;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: 0.2s ease;
  font-size: 0.97rem;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(38, 212, 184, 0.08);
}

.hero {
  padding: 58px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(145deg, rgba(7, 40, 54, 0.72), rgba(5, 32, 44, 0.58));
  border: 1px solid rgba(120, 229, 217, 0.22);
  border-radius: 18px;
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.image-slot {
  margin: 0;
}

.image-slot img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(114, 225, 213, 0.34);
  background: rgba(7, 45, 60, 0.7);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.hero-image img {
  aspect-ratio: 16 / 11;
}

.tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d3f4ef;
  background: rgba(14, 95, 111, 0.36);
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  max-width: 18ch;
  letter-spacing: 0.2px;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: #d5f4f6;
  font-size: 1.1rem;
}

.brand-inline {
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
}

.hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-right: 24px;
  color: #cdeff1;
}

.hero-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 236, 210, 1) 0%, rgba(54, 236, 210, 0.1) 70%);
  box-shadow: 0 0 0 4px rgba(59, 205, 184, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #08342b;
  box-shadow: 0 8px 18px rgba(24, 180, 156, 0.3);
}

.btn-outline {
  border: 1px solid rgba(98, 237, 222, 0.4);
  background: rgba(4, 42, 56, 0.62);
  color: #d5f7f4;
}

.stats-card,
.panel,
.info-card,
.game-card,
.legal-card {
  background: var(--surface);
  border: 1px solid rgba(112, 218, 210, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-card {
  padding: 22px;
  background: linear-gradient(160deg, rgba(8, 49, 65, 0.75), rgba(4, 32, 45, 0.84));
}

.stats-card h2 {
  margin-bottom: 14px;
}

.stats-card ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.stats-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d2f2f3;
}

.stats-card span {
  min-width: 52px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(38, 212, 184, 0.14);
  border: 1px solid rgba(111, 229, 216, 0.4);
  text-align: center;
  font-weight: 800;
}

.section {
  padding: 52px 0;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(3, 27, 38, 0.44) 0%, rgba(4, 34, 46, 0.7) 100%);
  border-top: 1px solid rgba(98, 222, 214, 0.16);
  border-bottom: 1px solid rgba(98, 222, 214, 0.16);
}

.section-intro {
  margin-top: -4px;
  margin-bottom: 24px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.info-card {
  padding: 18px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.game-card {
  margin-top: 0;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(13, 68, 87, 0.5) 0%, rgba(6, 37, 49, 0.76) 70%);
  border-color: rgba(118, 233, 221, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(37, 207, 186, 0.95), rgba(154, 247, 234, 0.8));
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(149, 247, 236, 0.52);
  box-shadow: 0 20px 40px rgba(1, 14, 20, 0.45);
}

.game-card header {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(125, 223, 215, 0.28);
}

.game-image {
  margin-bottom: 12px;
}

.game-image img {
  aspect-ratio: 16 / 9;
}

.game-card header h3 {
  margin-bottom: 8px;
}

.game-card header p {
  color: var(--muted);
  margin-top: 0;
}

.game-card h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #dcfcf6;
}

.game-card ul,
.steps,
.responsible-list,
.legal-card ul {
  margin: 0;
  padding-right: 20px;
}

.game-card .btn {
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
}

.steps {
  display: grid;
  gap: 10px;
}

.responsible-list {
  margin: 12px 0 24px;
  display: grid;
  gap: 8px;
}

.page-main {
  min-height: calc(100vh - 220px);
}

.narrow {
  width: min(650px, 92vw);
}

.section-image {
  margin: 8px 0 18px;
}

.section-image img {
  aspect-ratio: 21 / 9;
}

.form-cover {
  margin-bottom: 14px;
}

.form-cover img {
  aspect-ratio: 16 / 7;
}

.form-panel {
  padding: 22px;
  display: grid;
  gap: 10px;
}

label {
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(108, 219, 210, 0.34);
  background: rgba(5, 46, 62, 0.85);
  color: var(--text);
  font: inherit;
  outline: none;
}

select option {
  background: #e6fbf8;
  color: #11303d;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(134, 245, 232, 0.7);
  box-shadow: 0 0 0 3px rgba(44, 184, 166, 0.22);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-message {
  margin: 4px 0 0;
  min-height: 26px;
  color: #9df2e3;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.legal-head {
  max-width: 900px;
}

.legal-meta {
  margin-top: -10px;
  color: #d3f5ef;
  font-weight: 700;
}

.legal-cover {
  margin-top: 14px;
}

.legal-cover img {
  aspect-ratio: 21 / 8;
}

.legal-layout {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 22px;
}

.legal-card h2 {
  margin-bottom: 10px;
  color: #ddfaf7;
}

.legal-card h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  color: #d1f2f1;
}

.legal-card p,
.legal-card li {
  color: #d6edf0;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(111, 227, 214, 0.2);
  background: rgba(2, 20, 30, 0.84);
}

.footer-grid {
  padding: 26px 0 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-col h3 {
  margin-bottom: 10px;
  font-size: 1.07rem;
}

.footer-col p {
  margin: 0;
  color: #cde4e8;
}

.footer-col a {
  display: block;
  margin: 7px 0;
  color: #bde8e5;
  transition: color 0.2s ease;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #e8ffff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(9, 63, 80, 0.82);
  border: 1px solid rgba(126, 234, 221, 0.34);
  padding: 5px;
}

.footer-col a:hover {
  color: #e9ffff;
}

.footer-brand {
  padding-inline-end: 10px;
}

.footer-badge {
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(120, 229, 214, 0.32);
  background: rgba(9, 64, 80, 0.5);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(110, 223, 210, 0.15);
  padding: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.footer-bottom p {
  margin: 0;
  color: #accfd3;
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    max-width: 24ch;
  }

  .hero-copy {
    padding: 20px 18px;
  }

  .hero-points li {
    padding-right: 22px;
  }
}

@media (max-width: 900px) {
  .brand {
    font-size: 1.15rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(110, 225, 211, 0.16);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(113, 221, 208, 0.2);
    background: rgba(5, 37, 50, 0.6);
  }
}

@media (max-width: 760px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .section-image img,
  .form-cover img,
  .legal-cover img {
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand {
    font-size: 1.03rem;
  }

  .section {
    padding: 38px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
