@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400;700;800&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --bg: #0a090e;
  --accent: #f200e6;
  --text: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.07);
  /* Container outer width = content (1200px) + 2× gutter (84px each side) */
  --container-width: 1368px;
  --container-padding: 84px;
  --font: 'Martian Mono', monospace;
  --font-variation: 'wdth' 100;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-variation-settings: var(--font-variation);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  padding: 20px 0;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 400;
}

.nav-links a {
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  padding: 70px var(--container-padding) 80px;
}

.hero-box {
  background: linear-gradient(239.28deg, rgb(111, 60, 13) 0%, rgb(59, 20, 89) 100%);
  border-radius: 40px;
  overflow: hidden;
  height: 648px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 713px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 80px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 359px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 50px;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 60px;
  font-family: var(--font);
  font-variation-settings: var(--font-variation);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  box-shadow: 0 4px 20px 0 rgba(242, 0, 230, 0.7);
  white-space: nowrap;
  width: fit-content;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.hero-stats-col {
  width: 309px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0;
  white-space: nowrap;
}

.stat-item {
  font-size: 0;
}

.stat-number {
  display: block;
  font-size: 40px;
  line-height: 1.7;
}

.stat-label {
  display: block;
  font-size: 14px;
  line-height: 1.7;
}

.hero-wave {
  width: 237px;
  height: 40px;
  transform: rotate(180deg) scaleY(-1);
}

.hero-char-wrap {
  position: absolute;
  bottom: 0;
  left: calc(50% + 57.5px);
  transform: translateX(-50%);
  width: 583px;
  height: 492px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-char-wrap img {
  position: absolute;
  width: 105.59%;
  height: 163.04%;
  left: -3.42%;
  top: -4.46%;
  max-width: none;
  object-fit: cover;
}

/* ===========================
   SECTION COMMON STYLES
   =========================== */
.section-heading {
  font-size: 80px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-text {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.7;
}

.accent {
  color: var(--accent);
}

/* ===========================
   MAELRIONASH EDGE SECTION
   =========================== */
.edge-section {
  padding: 80px 0;
}

.edge-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.edge-text-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1098px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-col {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.feature-row {
  display: flex;
  gap: 20px;
}

.feature-card {
  border: 3px solid var(--accent);
  overflow: hidden;
  padding: 17px;
  position: relative;
  flex: 1;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 146px;
  height: 132px;
  background-image: url(/wp-content/themes/maelrionash/assets/images/ellipse-corner.png);
  background-size: cover;
  pointer-events: none;
}

.feature-card-title {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 16px;
}

.feature-card-desc {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 245px;
  position: relative;
  z-index: 1;
}

.feature-wave-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-wave {
  width: 413px;
  height: auto;

}

.feature-wave-sm {
  width: 433px;
  height: 50px;
  transform: rotate(180deg) scaleY(-1);
}

/* ===========================
   TRENDING NOW SECTION
   =========================== */
.trending-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.trending-inner {
  max-width: 1284px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: block;
}

.trending-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 792px;
}

.trending-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.games-row {
  display: flex;
  gap: 20px;
}

.game-thumb {
  width: 200px;
  height: 200px;
  border: 4px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.game-thumb::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  background: rgba(242, 0, 230, 0.92);
  border-radius: 16px;
  color: #fff;
  font-family: var(--font);
  font-variation-settings: var(--font-variation);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  padding: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-thumb:hover::after {
  opacity: 1;
}

.game-thumb:hover img {
  transform: scale(1.05);
}

.trending-char {
  width: 462px;
  height: 571px;
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 0;
}

.trending-char img {
  position: absolute;
  width: 121.21%;
  height: 100.28%;
  left: 0;
  top: -0.14%;
  max-width: none;
  object-fit: cover;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section {
  padding: 80px 0;
}

.faq-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  gap: 30px;
  align-items: center;
}

.faq-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 580px;
  flex-shrink: 0;
}

.faq-char-wrap {
  width: 100%;
  height: 507px;
  overflow: hidden;
  position: relative;
}

.faq-char-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 24px;
  padding: 20px;
  overflow: hidden;
}

.faq-item-inner {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.faq-item-text {
  flex: 1;
  min-width: 0;
}

.faq-question {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
  line-height: 1.2;
}

.faq-answer {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}

.faq-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
}

/* ===========================
   JOIN THE MOVEMENT SECTION
   =========================== */
.cta-section {
  padding: 0 0 80px;
}

.cta-box {
  background: linear-gradient(248.767deg, rgb(111, 60, 13) 0%, rgb(59, 20, 89) 100%);
  border-radius: 40px;
  padding: 60px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-heading {
  font-size: 80px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  max-width: 919px;
}

.cta-desc {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.7;
  max-width: 919px;
}

.cta-contact {
  border: 3px solid var(--accent);
  border-radius: 60px;
  height: 91px;
  width: 482px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-contact::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 169px;
  height: 91px;
  background-image: url(/wp-content/themes/maelrionash/assets/images/ellipse-corner.png);
  background-size: cover;
  pointer-events: none;
}

.cta-contact::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 169px;
  height: 91px;
  background-image: url(/wp-content/themes/maelrionash/assets/images/ellipse-corner.png);
  background-size: cover;
  transform: rotate(180deg);
  pointer-events: none;
}

.cta-contact-text {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-img-wrap {
  width: 283px;
  height: 255px;
  flex-shrink: 0;
}

.cta-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-size: 14px;
}

.footer-nav a {
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-link {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.8;
}

.social-link img {
  width: 100%;
  height: 100%;
}

.footer-copyright {
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   RESPONSIVE — TABLET 1024px
   =========================== */
@media (max-width: 1100px) {
  :root {
    --container-padding: 40px;
  }

  .hero {
    padding: 50px var(--container-padding) 60px;
  }

  .hero-box {
    height: auto;
    min-height: 578px;
    padding: 30px;
  }

  .hero-title,
  .section-heading,
  .cta-heading {
    font-size: 56px;
  }

  .hero-char-wrap {
    width: 420px;
    height: 360px;
    left: calc(55% + 30px);
  }

  .hero-stats-col {
    width: 240px;
    gap: 60px;
  }

  .feature-wave {
    width: 100%;
    max-width: 413px;
  }

  .feature-wave-sm {
    width: 100%;
    max-width: 433px;
  }

  .trending-char {
    width: 360px;
    height: 450px;
  }

  .cta-section {
    padding: 0 0 60px;
  }

  .cta-box {
    margin: 0 var(--container-padding);
  }

  .game-thumb {
    width: 170px;
    height: 170px;
  }

  .game-detail-heading {
    font-size: 48px;
  }

  .game-screenshot {
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 700 / 340;
  }
}

/* ===========================
   RESPONSIVE — MOBILE 768px
   =========================== */
@media (max-width: 768px) {
  :root {
    --container-padding: 15px;
  }

  /* Header */
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 15px;
  }

  /* Hero */
  .hero {
    padding: 20px 15px 40px;
  }

  .hero-box {
    height: auto;
    min-height: 900px;
    border-radius: 24px;
    padding: 20px 20px 260px;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-text {
    max-width: 100%;
    gap: 20px;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-stats-col {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .stat-number {
    font-size: 28px;
  }

  .hero-wave {
    display: none;
  }

  .hero-char-wrap {
    width: 290px;
    height: 245px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

  .hero-char-wrap img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: center bottom;
  }

  /* Edge Section */
  .edge-section {
    padding: 40px 0;
  }

  .section-heading {
    font-size: 32px;
  }

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

  .feature-col {
    gap: 20px;
  }

  .feature-row {
    flex-direction: column;
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-card-title {
    font-size: 20px;
  }

  .feature-card-desc {
    max-width: 100%;
  }

  .feature-wave,
  .feature-wave-sm {
    display: none;
  }

  /* Trending */
  .trending-section {
    padding: 40px 0;
  }

  .trending-left {
    max-width: 100%;
    width: 100%;
  }

  .games-grid {
    max-width: 100%;
  }

  .games-row {
    gap: 15px;
  }

  .game-thumb {
    width: 157px;
    height: 157px;
    flex: 1;
    max-width: 157px;
  }

  .trending-char {
    width: 240px;
    height: 300px;
  }

  .trending-char img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }

  /* FAQ */
  .faq-section {
    padding: 40px 0;
  }

  .faq-inner {
    flex-direction: column;
    gap: 30px;
  }

  .faq-left {
    width: 100%;
  }

  .faq-char-wrap {
    height: 300px;
  }

  .faq-question {
    font-size: 16px;
  }

  /* CTA Section */
  .cta-section {
    padding: 0 0 40px;
  }

  .cta-box {
    margin: 0 15px;
    border-radius: 24px;
  }

  .cta-heading {
    font-size: 38px;
  }

  .cta-contact {
    width: 100%;
    max-width: 290px;
    height: auto;
    min-height: 91px;
    padding: 20px;
  }

  .cta-img-wrap {
    width: 172px;
    height: 155px;
  }

  /* Game Detail */
  .game-hero {
    padding: 40px 0;
  }

  .game-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-hero-thumb {
    width: 240px;
    height: 240px;
  }

  .game-detail-heading {
    font-size: 32px;
  }

  .game-screenshot {
    width: 100%;
    height: 240px;
    max-width: 100%;
    aspect-ratio: unset;
  }

  .game-detail-section {
    padding: 0 0 40px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-social {
    gap: 20px;
  }
}

/* ===========================
   POLICY PAGES
   =========================== */
.policy-section {
  padding: 70px 0 80px;
}

.policy-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (max-width: 768px) {
  .policy-section {
    padding: 40px 0;
  }
}

/* ===========================
   GAME DETAIL PAGE
   =========================== */
.game-hero {
  padding: 70px 0 80px;
}

.game-hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: 30px;
}

.game-hero-thumb {
  width: 286px;
  height: 286px;
  flex-shrink: 0;
  border: 4px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
}

.game-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-stars {
  width: 237px;
  height: 39px;
  flex-shrink: 0;
}

.game-detail-section {
  padding: 0 0 80px;
}

.game-detail-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.game-detail-heading {
  font-size: 60px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}

.game-detail-desc {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.7;
  text-align: center;
}

.game-screenshot {
  width: 700px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   RESPONSIVE — SMALL MOBILE 480px
   =========================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .section-heading,
  .cta-heading {
    font-size: 28px;
  }

  .games-row {
    flex-wrap: wrap;
  }

  .game-thumb {
    width: calc(50% - 8px);
    max-width: none;
    height: 140px;
    flex: none;
  }
}

/* ===========================
   COOKIE BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(600px, calc(100vw - 32px));
  background: #131118;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 0 32px rgba(242, 0, 230, 0.35);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__icon {
  width: 56px;
  height: 56px;
}

.cookie-banner__title {
  font-family: var(--font);
  font-variation-settings: var(--font-variation);
  font-weight: 800;
  font-size: clamp(20px, 4vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.1;
}

.cookie-banner__text {
  font-family: var(--font);
  font-variation-settings: var(--font-variation);
  font-size: clamp(11px, 1.5vw, 13px);
  line-height: 1.65;
  color: var(--text);
}

.cookie-banner__btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-variation-settings: var(--font-variation);
  font-weight: 700;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cookie-banner__btn:hover {
  opacity: 0.85;
}

.cookie-banner__btn--allow {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 16px;
    padding: 20px 18px 18px;
  }
}
