/* ========== CSS Variables & Base Styles ========== */
:root {
  --font-main: 'Segoe UI', sans-serif;
  --font-heading: 'Segoe UI', sans-serif;
  --color-primary: #ff3366;
  --color-secondary: #0b1020;
  --color-third: #1c0f10;
  --color-fourth: #ffffff;
  --color-bg: radial-gradient(circle at top, #1d2b64 0, #090b22 55%, #02030a 100%);
  --color-text: #f5f5ff;
  --color-accent: #32f5ff;
  --spacing-section: 80px;
  --max-width: 900px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ========== Typography ========== */
.fp-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 35px;
  text-align: center;
  color: var(--color-fourth);
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.3vw, 2.3rem);
  font-weight: 500;
  color: var(--color-secondary);
  margin-top: 50px;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2vw, 2rem);
  font-weight: 500;
  color: var(--color-third);
  margin-top: 20px;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 1.7vw, 1.7rem);
  font-weight: 500;
  color: var(--color-third);
  padding-bottom: 1px;
}

h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-third);
  margin-top: 20px;
}

p {
  font-family: var(--font-heading);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-white { color: var(--color-secondary); }
.text-accent { color: var(--color-primary); }
 
/* ========== Layout Helpers ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ========== Header ========== */
.site-header {
  background: rgba(3, 5, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

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

.branding {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-fourth);
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.9);
}

.tagline {
  margin: 4px 0 0;
  font-size: 0.80rem;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background-color: rgba(50, 245, 255, 0.16);
  color: var(--color-fourth);
  box-shadow: 0 0 10px rgba(50, 245, 255, 0.4);
}

/* ========== Hero ========== */
.hero {
  padding: 30px 0 30px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 2.4rem);
  color: var(--color-fourth);
}

.hero-copy p {
  margin: 0 0 20px;
  max-width: 32rem;
  font-size: 0.98rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff3366, #ff8a3d);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 51, 102, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 51, 102, 0.9);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(50, 245, 255, 0.6);
  color: var(--color-accent);
}

.btn-ghost:hover {
  background: rgba(50, 245, 255, 0.12);
  box-shadow: 0 0 16px rgba(50, 245, 255, 0.7);
}

/* ========== Games Grid ========== */
.games-section {
  padding: 10px 0 40px;
}

.games-section h2 {
  color: var(--color-fourth);
  margin-bottom: 35px;
  text-align: center;
}

.section-intro {
  margin-top: 0;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: center;
}

/* ========== Embedded Game Section ========== */
.game-section {
  padding: 10px 0 50px;
}

.game-section h2 {
  color: var(--color-fourth);
  text-align: center;
  margin-bottom: 18px;
}

.game-frame-wrapper {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.game-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: none;
  background: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.grid-item {
  position: relative;
  padding: 16px 14px;
  min-height: 130px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, rgba(50, 245, 255, 0.16), rgba(5, 10, 30, 0.95));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.grid-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 51, 102, 0.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
}

.game-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--color-fourth);
}

.game-meta {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.88;
}

.grid-item--disabled {
  cursor: default;
  opacity: 0.7;
  background: radial-gradient(circle at top, rgba(150, 150, 150, 0.18), rgba(5, 10, 25, 0.9));
}

.grid-item--disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

/* ========== About & Footer ========== */
.about-section {
  padding: 40px 0 30px;
  text-align: center;
}

.about-section p {
  width: 100%;
  font-size: 0.95rem;
  opacity: 0.9;
  margin-left: auto;
  margin-right: auto;
}

.ad-banner {
  width: 100%;
  max-width: 900px;
  height: 229px;
  margin: 0 auto;
  border-radius: 0px;
  border: 0px dashed rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-fourth);
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.25);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 20px;
  background: rgba(3, 5, 20, 0.95);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.85;
}

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

/* ========== Responsive Tweaks ========== */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-content {
    min-height: 0;
  }

}
