/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #000202;
  --stripe-width: 32px; /* 8 + 4 + 8 + 4 + 8 */
  --header-height: clamp(72px, 14vw, 160px);
}

/* =========================
   BASE RESET
========================= */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: #FDFDFD;
  font-family: Verdana, Arial, sans-serif;
}

/* Page column layout (for footer) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   FONT
========================= */
@font-face {
  font-family: 'IperiosFont';
  src:
    url('fonts/TTOctosquaresCond-XBold.woff') format('woff'),
    url('fonts/TTOctosquaresCond-XBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body,
h1, h2, h3 {
  font-family: 'IperiosFont', sans-serif;
}

/* =========================
   STRIPES
========================= */
.stripe-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  z-index: 30;
}

.stripe { width: 8px; }
.gap { width: 4px; background: var(--bg); }

.red    { background: #FD0054; color: #FD0054; }
.pink   { background: #EF03D7; color: #EF03D7; }
.yellow { background: #FEFE00; color: #FEFE00; }

.stripe {
  animation: stripeGlow 3s ease-in-out infinite alternate;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: var(--stripe-width);
  width: calc(100% - var(--stripe-width));
  height: var(--header-height);
  z-index: 20;

  background: var(--bg);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);

  font-size: clamp(32px, 8vw, 120px);
  letter-spacing: clamp(0.14em, 1.5vw, 0.45em);
  text-transform: uppercase;

  animation: headerGlow 4s ease-in-out infinite;
  box-sizing: border-box;
}

.site-title {
  display: block;
}

.site-logo {
  height: clamp(36px, 6vw, 96px);
  width: auto;
  object-fit: contain;
  object-position: center 60%;
  transform: translateY(calc(var(--header-height) * 0.03));
  filter:
    drop-shadow(0 0 6px #FD0054)
    drop-shadow(0 0 12px #EF03D7);
}

/* =========================
   CONTENT (shared)
========================= */
.content {
  flex: 1;
  margin-left: var(--stripe-width);
  width: calc(100% - var(--stripe-width));
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

/* =========================
   HOME PAGE
========================= */
/* HOME: reserve space for fixed header so centering is real */
body.page-home{
  height: 100vh;               /* key */
  box-sizing: border-box;      /* key */
  padding-top: var(--header-height);
}

/* HOME content: no top padding (body handles it), center for real */
body.page-home .content{
  flex: 1;
  padding-top: calc(var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(-60px);
}


/* =========================
   RULES PAGE
========================= */
body.page-rules .content {
  padding-top: calc(var(--header-height) + 40px);
  display: block;
}

.rules-wrap {
  max-width: 70ch;
  margin: 0 auto;
  width: 100%;
}

.rules-wrap h1 {
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.2em;
}

.rules-section {
  padding-bottom: 48px;
}

.rules-list {
  text-align: left;
  line-height: 1.7;
  padding-left: 1.2em;
}

.rules-list li {
  margin: 12px 0;
}

.rules-list ul {
  margin: 10px 0;
}

.rules-divider {
  width: min(70ch, 90%);
  margin: 48px auto;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.rules-note {
  opacity: 0.85;
  line-height: 1.6;
}

.rules-end {
  opacity: 0.9;
  margin-top: 18px;
}

.back-link {
  text-align: center;
  margin-top: 28px;
}

.back-link a {
  color: #FEFE00;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

/* =========================
   BUTTONS
========================= */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.rules-button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #FEFE00;
  color: #FEFE00;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.rules-button:hover {
  background: #FEFE00;
  color: #000;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: auto;
  margin-left: var(--stripe-width);
  width: calc(100% - var(--stripe-width));
  padding: 24px 16px;
  text-align: center;
}

.footer-text {
  font-size: clamp(12px, 2.5vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FEFE00;
  text-shadow: 0 0 6px rgba(254,254,0,0.6);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes headerGlow {
  0% {
    text-shadow:
      0 0 6px #FD0054,
      0 0 12px #EF03D7,
      0 0 18px #FEFE00;
  }
  50% {
    text-shadow:
      0 0 12px #FD0054,
      0 0 24px #EF03D7,
      0 0 36px #FEFE00;
  }
  100% {
    text-shadow:
      0 0 6px #FD0054,
      0 0 12px #EF03D7,
      0 0 18px #FEFE00;
  }
}

@keyframes stripeGlow {
  from { box-shadow: 0 0 6px currentColor; }
  to   { box-shadow: 0 0 16px currentColor; }
}

body.page-home .content{
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-home .home-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ===== HOME: true center under fixed header ===== */
body.page-home{
  /* reserve space for the fixed header */
  padding-top: var(--header-height) !important;
  box-sizing: border-box;
}

/* remove any push-down on content and center it */
body.page-home .content{
  flex: 1;

  /* IMPORTANT: cancel any previous offsets */
  padding-top: 0 !important;
  margin-top: 0 !important;

  /* keep your stripe offset */
  margin-left: var(--stripe-width);
  width: calc(100% - var(--stripe-width));
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;

  /* center the content */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

