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

:root {
  --bg: #f7f2ea;
  --bg-alt: #eef7f6;
  --card: #ffffff;
  --text: #24323f;
  --muted: #607080;
  --border: rgba(26, 40, 58, 0.12);

  --primary: #163754;
  --secondary: #009688;
  --accent: #ff8f5c;
  --accent-2: #f4c95d;
  --hero-overlay: rgba(17, 33, 52, 0.62);

  --shadow: 0 18px 40px rgba(28, 49, 66, 0.09);
  --radius: 22px;
  --radius-sm: 14px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  background: linear-gradient(90deg, #294868, #3a7a77);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(41, 72, 104, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 16px rgba(41, 72, 104, 0.18);
}

.brand-text strong {
  display: block;
  font-size: 15px;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #4d5c6b;
}

.main-nav a {
  transition: color var(--transition);
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--secondary);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.pill-btn,
.cta-btn,
.wide-btn,
.play-btn,
.timer-btn {
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.pill-btn.light {
  background: #fff;
  border: 1px solid rgba(26, 40, 58, 0.12);
}

.pill-btn.accent {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.pill-btn.secondary {
  background: #fff;
  border: 1px solid rgba(26, 40, 58, 0.12);
}

.hero {
  padding: 64px 0;
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    url("accets/img/hero.png") center/cover no-repeat;
}

.hero-card {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 42px 32px;
  border-radius: 26px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px rgba(16, 18, 49, 0.24);
  backdrop-filter: blur(10px);
}

.eyebrow,
.panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-btn,
.wide-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
}

.cta-btn {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 150, 136, 0.25);
}

.section {
  padding: 76px 0;
}

.section.light {
  background: var(--bg);
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.safety-panel,
.step-card,
.game-card,
.review-card,
.checklist-card,
.timer-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card,
.safety-panel {
  border-radius: var(--radius);
  padding: 22px;
}

.info-card {
  min-height: 150px;
}

.info-card.highlight {
  border-color: rgba(0, 150, 136, 0.34);
  box-shadow: 0 16px 32px rgba(0, 150, 136, 0.12);
}

.info-card h3,
.safety-panel h3,
.step-card h3,
.game-body h3,
.checklist-card h3,
.timer-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-card p,
.safety-panel p,
.step-card p,
.game-body p,
.review-card p,
.checklist-card p,
.timer-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 143, 92, 0.15), rgba(0, 150, 136, 0.18));
  position: relative;
}

.icon.shield::before,
.icon.spark::before,
.icon.cross::before,
.icon.info::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 5px;
  background: var(--secondary);
  opacity: 0.72;
}

.icon.spark::before {
  background: var(--accent-2);
}

.icon.cross::before {
  background: #f06d6d;
}

.icon.info::before {
  background: #94b8c7;
}

.safety-panel {
  grid-row: span 2;
  background: linear-gradient(180deg, #163754, #21526d);
  color: #fff;
}

.safety-panel p,
.safety-panel small,
.safety-panel .meter span {
  color: rgba(255, 255, 255, 0.9);
}

.meter {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.meter span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, #ffd36d, #57d9c1);
}

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

.step-card {
  border-radius: 18px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--border);
}

.game-grid,
.review-grid,
.support-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  overflow: hidden;
  border-radius: 18px;
}

.game-art {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.art-joker {
  background:
    linear-gradient(135deg, rgba(255, 143, 92, 0.25), rgba(22, 55, 84, 0.15)),
    url("accets/img/game1.png") center/cover no-repeat;
}

.art-dragon {
  background:
    linear-gradient(135deg, rgba(244, 201, 93, 0.25), rgba(0, 150, 136, 0.2)),
    url("accets/img/game2.png") center/cover no-repeat;
}

.art-cock {
  background:
    linear-gradient(135deg, rgba(0, 150, 136, 0.18), rgba(255, 143, 92, 0.18)),
    url("accets/img/game3.png") center/cover no-repeat;
}

.game-body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 150, 136, 0.12);
  color: #276a62;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.play-btn,
.timer-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
}

.play-btn {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  color: #fff;
  box-shadow: 0 12px 20px rgba(0, 150, 136, 0.18);
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  border-radius: 16px;
  padding: 18px;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #fff;
}

.support-grid {
  grid-template-columns: 1.3fr 1fr;
}

.checklist-card,
.timer-card {
  border-radius: 20px;
  padding: 22px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(232, 247, 244, 0.86);
  border: 1px solid rgba(26, 40, 58, 0.1);
  margin-top: 10px;
  color: var(--text);
}

.check-item input {
  accent-color: var(--secondary);
}

.check-progress {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.timer-display {
  margin: 18px 0 14px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.timer-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.timer-btn {
  background: #edf8f6;
  color: var(--primary);
}

.wide-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
}

.faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-item {
  border-radius: 18px;
  padding: 22px;
}

.site-footer {
  background: #e9efef;
  padding: 38px 0;
  border-top: 1px solid rgba(26, 40, 58, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.age-overlay.hidden {
  display: none;
}

.age-modal {
  width: min(100%, 520px);
  padding: 36px 28px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, #163754, #21526d);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.age-badge {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 800;
  border: 3px solid #fff;
  color: #fff;
}

.age-modal h2 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.age-modal p {
  margin: 0 0 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.exit-link {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(9, 10, 18, 0.76);
  backdrop-filter: blur(4px);
}

.game-modal.open {
  display: grid;
}

.game-modal-panel {
  width: min(100%, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 48px rgba(7, 10, 30, 0.28);
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(90deg, #163754, #009688);
  color: #fff;
}

.game-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.game-frame-wrap {
  background: #fff;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

#gameFrame {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-note {
  margin: 0;
  padding: 12px 20px 18px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 68px 0 44px;
  background: linear-gradient(135deg, #163754, #ff8f5c, #009688);
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
}

.content {
  padding: 44px 0 80px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 18px;
}

.content-card h2 {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.7;
}

.content-card ul {
  padding-left: 22px;
}

@media (hover: hover) {
  .pill-btn:hover,
  .cta-btn:hover,
  .wide-btn:hover,
  .play-btn:hover,
  .timer-btn:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 980px) {
  .header-inner,
  .section-head.split,
  .footer-grid,
  .support-grid,
  .safety-grid,
  .game-grid,
  .review-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .safety-panel {
    grid-row: auto;
  }

  .top-strip-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .hero-card {
    padding: 28px 20px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .main-nav {
    gap: 14px;
    font-size: 13px;
  }

  .timer-buttons {
    flex-wrap: wrap;
  }

  .game-modal-panel {
    max-height: 95vh;
  }

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