/* ═══════════════════════════════════════════════════════════════
   style.css — Daily Pilgrimage
   ═══════════════════════════════════════════════════════════════ */

/* ── Palette ─────────────────────────────────────────────────── */
:root {
  --black:       #000;    /* headings, active states, filled buttons  */
  --grey-dark:   #555;    /* body text, strong secondary elements      */
  --grey-mid:    #999;    /* muted labels, dates, nav links, icons     */
  --grey-light:  #d0d0d0; /* borders, dividers, subtle UI              */
  --white:       #fff;    /* page background, card fills               */

  --text-primary:   var(--black);
  --text-secondary: var(--grey-dark);
  --text-muted:     var(--grey-mid);
  --border:         var(--grey-light);
  --bg-subtle:      #f7f7f7;
  --bg-hover:       #f2f2f2;

  /* ── Fibonacci type scale ──────────────────────────────────────
     Built on 16px base. Steps use Fibonacci numbers (8,13,21,34,55)
     converted to rem. Ratios between steps ≈ golden ratio (1.618).
     Use these variables for ALL font-size declarations.
  ────────────────────────────────────────────────────────────── */
  --text-micro:    0.5rem;      /*  8px — dots, tiny indicators        */
  --text-xs:       0.625rem;    /* 10px — copyright, footer            */
  --text-sm:       0.8125rem;   /* 13px — labels, dates, caps, nav     */
  --text-base:     1rem;        /* 16px — body text, base              */
  --text-md:       1.0625rem;   /* 17px — notes body, modal body       */
  --text-lg:       1.3125rem;   /* 21px — card titles, sidebar title   */
  --text-xl:       2.125rem;    /* 34px — page h1 headings             */
  --text-display:  3.4375rem;   /* 55px — hero / display (future use)  */

  /* ── Spacing scale (also Fibonacci-derived) ────────────────────
     Used for padding, gap, margin — consistent spatial rhythm.
  ────────────────────────────────────────────────────────────── */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.8125rem; /* 13px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.3125rem; /* 21px */
  --space-6:  2.125rem;  /* 34px */
  --space-7:  3.4375rem; /* 55px */
  --space-8:  5.5rem;    /* 88px */
}

/* ── Reset ───────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* ── Base ────────────────────────────────────────────────────── */
body {
  background-color: var(--white);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/IMGs/background.svg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* ── Wave background ─────────────────────────────────────────── */
#wave-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6) var(--space-7);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;        /* centers all children in the available column */
}

/* Every child stretches to the content column — all left edges align */
.page-content > * {
  width: 100%;
  max-width: 1280px;
}

/* Page titles and subtitles centered — keep prose narrower for readability */
.page-content h1,
.page-content > p,
.page-content .about-intro {
  max-width: 960px;
  text-align: center;
}

.page-content h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.page-content p {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR LEFT (nav)
   ═══════════════════════════════════════════════════════════════ */
.sidebar-left {
  width: 22%;
  min-width: 280px;
  max-width: 360px;
  padding: var(--space-6);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
}

body:not(#homepage) .sidebar-left {
  border-right: 1px solid var(--border);
}

/* Title block */
.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo-link:hover .menu-title {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.menu-title {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-align: center;
  line-height: 1.1;
  white-space: normal;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Tagline */
.tagline {
  font-weight: 300;
  font-size: var(--text-sm);
  font-style: italic;
  text-align: center;
  color: var(--text-primary);
  margin-top: var(--space-4);
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── Nav items ────────────────────────────────────────────────── */
.nav-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
}

.nav-items li {
  list-style: none;
  width: 100%;
  text-align: center;
}

.nav-items a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-primary);
  padding: var(--space-3) var(--space-1);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

/* Animated underline on hover — grows from center */
.nav-items a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}

.nav-items a:hover::after {
  width: 100%;
}

.nav-items a:hover {
  color: var(--text-primary);
}

/* Active indicator — clean single underline, slightly heavier */
.nav-items a.active-link {
  font-weight: 600;
  color: var(--text-primary);
}

.nav-items a.active-link::after {
  width: 100%;
  height: 1.5px;
}

/* Suppress the ::after underline animation on active (it's always shown) */
.nav-items a.active-link:hover::after {
  width: 100%;
}

/* ── Dropdown ─────────────────────────────────────────────────── */
.has-dropdown .dropdown {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  margin: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.has-dropdown.hover-active .dropdown {
  max-height: 500px;
  opacity: 1;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.has-dropdown .dropdown li {
  list-style: none;
}

.has-dropdown .dropdown li a {
  display: block;
  font-style: italic;
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: var(--space-2) var(--space-2);
  color: var(--text-muted);
  transition: color 0.25s;
}

/* No underline animation on dropdown children */
.has-dropdown .dropdown li a::after {
  display: none;
}

.has-dropdown .dropdown li a:hover {
  color: var(--text-primary);
}

.has-dropdown .dropdown li a.active-link {
  color: var(--text-primary);
  font-weight: 500;
  font-style: normal;
}

/* ── Shop link — always prominent ────────────────────────────── */
.nav-items a.nav-shop {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.nav-items a.nav-shop::after {
  display: none;
}

/* ── Social block wrapper ─────────────────────────────────────── */
.social-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.social-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ── Social icons ─────────────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--space-4) var(--space-3);
}

.social-icons a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: var(--space-2);
}

.social-icons a svg {
  display: block;
  width: 41px;
  height: 41px;
  flex-shrink: 0;
  transition: width 0.2s ease, height 0.2s ease;
}

.social-icons a:hover {
  color: var(--text-muted);
}

/* ── Sidebar footer ───────────────────────────────────────────── */
.site-footer {
  width: 100%;
  padding: var(--space-2) 0;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CENTER LOGO (homepage)
   ═══════════════════════════════════════════════════════════════ */
.center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;          /* rings stay clipped within the column */
  padding: var(--space-6) var(--space-5) var(--space-7);
  min-width: 0;
}

/* Logo sits in its own flex container that fills the upper space,
   keeping it visually centered between the top and the notes card */
.hud-circle {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin 30s linear infinite;
  width: 50%;
  margin-top: auto;
  margin-bottom: auto;
}

/* Decorative ring layers on the spinning wrapper */
.hud-circle::before,
.hud-circle::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Outer dashed ring */
.hud-circle::before {
  inset: -18px;
  border: 1px dashed var(--border);
  animation: spin-reverse 45s linear infinite;
}

/* Inner fine ring */
.hud-circle::after {
  inset: -8px;
  border: 1px solid var(--border);
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo-circle {
  background: var(--white);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 0 40px 8px rgba(0, 0, 0, 0.07),
    0 12px 48px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
}

#logo {
  width: clamp(18rem, 22vw, 28rem);
  padding: var(--space-7);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR RIGHT — updates widget (homepage)
   ═══════════════════════════════════════════════════════════════ */
.sidebar-right {
  width: 18%;
  min-width: 0;
  max-width: 320px;
  padding: var(--space-6);
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-2);
}

/* Thin vertical divider between center and right sidebar */
.sidebar-right {
  border-left: 1px solid var(--border);
}

/* Mobile updates panel — hidden on desktop, shown on mobile */
.mobile-updates-panel {
  display: none;
}

.updates-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.updates-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Shared button style for notes nav */
.notes-nav button {
  background: none;
  border: none;
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.1rem 0.2rem;
  transition: color 0.2s;
  line-height: 1;
}

.notes-nav button:hover {
  color: var(--text-primary);
}

.notes-nav button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.updates-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.updates-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.updates-list li {
  border-left: 2px solid var(--border);
  transition: border-color 0.2s;
}

.updates-list li.highlight {
  border-left-color: var(--text-primary);
}

.updates-list li:hover {
  border-left-color: var(--text-primary);
}

/* Clickable update entry */
.update-entry {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  width: 100%;
  transition: background 0.2s;
}

.update-entry:hover {
  background: var(--bg-subtle);
}

.update-date {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.update-text {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-primary);
}

.updates-list li.highlight .update-date {
  color: var(--text-muted);
}

.updates-list li.highlight .update-text {
  font-weight: 500;
}

/* See all button */
.see-all-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  text-align: left;
  transition: color 0.2s;
  width: 100%;
}

.see-all-btn:hover {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   NOTES CARD (homepage)
   ═══════════════════════════════════════════════════════════════ */
.notes-card {
  position: relative;
  width: fit-content;
  min-width: min(320px, calc(100% - 2rem));
  max-width: min(480px, calc(100% - 2rem));
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--space-5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  animation: floatCard 5s ease-in-out infinite;
  z-index: 10;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.notes-card.minimized {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  overflow: hidden;
}

.notes-card.minimized .notes-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.notes-card.minimized .notes-content,
.notes-card.minimized .notes-indicator {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.3s ease;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  min-height: 1.5rem;
  transition: margin 0.3s ease, padding 0.3s ease, border-color 0.2s ease;
}

.notes-nav {
  display: flex;
  gap: var(--space-1);
}

.minimize-notes {
  background: none;
  border: none;
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.minimize-notes:hover {
  color: var(--text-primary);
}

.notes-content {
  position: relative;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.25s ease;
  margin-bottom: var(--space-4);
}

.note-page {
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

.note-page.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;  /* active page is in flow — drives the container height */
}

.notes-content h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.notes-content p {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-secondary);
}

.notes-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  max-height: 20px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.3s ease;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

.dot.active {
  background: var(--black);
}

/* Notes inline links */
.notes-content p a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.notes-content p a:hover {
  opacity: 0.6;
}

/* ── Coming Soon button ───────────────────────────────────────── */
.coming-soon-btn {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: none;
  border: 1px dashed var(--border);
  border-radius: 3px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.coming-soon-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ── Coming Soon carousel modal ──────────────────────────────── */
.cs-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(4px);
}

.cs-modal.open {
  display: flex;
}

.cs-modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.22s ease;
  display: flex;
  flex-direction: column;
}

.cs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cs-modal-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cs-modal-close {
  background: none;
  border: none;
  font-size: var(--text-base);
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.cs-modal-close:hover { color: var(--text-primary); }

/* Tabs */
.cs-tabs {
  display: flex;
  gap: 0;
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}

.cs-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.cs-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.cs-tab:hover:not(.active) {
  color: var(--grey-dark);
}

/* Carousel area */
.cs-carousel-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  min-height: 360px;
}

.cs-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  animation: csFadeIn 0.3s ease;
}

.cs-slide.active { display: flex; }

@keyframes csFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cs-slide-img {
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 3px;
  cursor: zoom-in;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cs-slide-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.cs-slide-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-placeholder-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.12;
  filter: grayscale(1);
}

.cs-slide-label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Carousel nav */
.cs-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-5) var(--space-5);
  flex-shrink: 0;
}

.cs-arrow {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s;
}

.cs-arrow:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.cs-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.cs-dots {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.cs-dot.active {
  background: var(--black);
  transform: scale(1.3);
}

/* ── Zoom lightbox ────────────────────────────────────────────── */
.cs-zoom {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: var(--space-6);
}

.cs-zoom.open { display: flex; }

.cs-zoom img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  animation: csFadeIn 0.2s ease;
}

.ai-prompt-box {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--black);
  background: var(--bg-subtle);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */
.about-intro {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.about-body {
  margin-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.about-block {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.about-block:last-of-type {
  border-bottom: 1px solid var(--border);
}

.about-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.2em;
}

.about-block p {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-sign {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-signature {
  font-size: var(--text-lg);
  margin-top: var(--space-1);
}

.about-cta {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.about-cta a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.about-cta a:hover {
  border-color: var(--black);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════ */
.contact-body {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

/* ── Info strip ──────────────────────────────────────────────── */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--bg-subtle);
}

.contact-method p {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-method a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.contact-method a:hover {
  border-color: var(--black);
}

/* ── Form section ────────────────────────────────────────────── */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.contact-form-header {
  background: var(--black);
  color: var(--white);
  padding: var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form-header h2 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

.contact-form-header p {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin: 0;
}

.contact-form-inner {
  padding: var(--space-6);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
}

.contact-form label {
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text-primary);
  transition: border-color 0.25s;
  resize: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--grey-light);
  font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--black);
  outline: none;
}

.contact-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: var(--space-3) var(--space-6);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: start;
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--grey-dark);
  transform: scale(1.02);
}


/* ═══════════════════════════════════════════════════════════════
   GAMES PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Card grid — 2 columns on desktop, fills content area ──── */
.archive-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  width: 100%;
}

/* ── Large screens: 4 columns so cards stay well-proportioned ─── */
@media (min-width: 1200px) {
  .archive-stack {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }

  .archive-card .border-frame,
  .archive-card-disabled .border-frame {
    height: 380px;
  }
}

/* ── Base card link ─────────────────────────────────────────── */
.archive-card,
.archive-card-disabled {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
  width: 100%;
}

/* ── Inner frame ─────────────────────────────────────────────── */
.archive-card .border-frame,
.archive-card-disabled .border-frame {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: visible;  /* let label sit cleanly outside any clip */
  width: 100%;
  height: 340px;
}

/* ── Image clip wrapper — overflow hidden lives HERE only ────── */
.card-img-clip {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 6px 6px 0 0; /* clip to card corners at top only */
  position: relative;
}

/* ── Float animation — staggered per card ────────────────────── */
.archive-card:nth-child(1) .border-frame { animation: floatCard 5.0s ease-in-out 0.0s infinite; }
.archive-card:nth-child(2) .border-frame { animation: floatCard 5.6s ease-in-out 0.4s infinite; }
.archive-card:nth-child(3) .border-frame { animation: floatCard 4.8s ease-in-out 0.8s infinite; }
.archive-card-disabled .border-frame     { animation: floatCard 5.3s ease-in-out 1.2s infinite; }

/* ── Hover ───────────────────────────────────────────────────── */
.archive-card:hover .border-frame {
  opacity: 0.70;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
  animation: none;
}

/* ── Disabled card ───────────────────────────────────────────── */
.archive-card-disabled {
  pointer-events: none;
}

.archive-card-disabled .border-frame {
  opacity: 0.40;
}

/* ── Image fill area ─────────────────────────────────────────── */
.card-img-wrap {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.archive-card:hover .card-img-wrap {
  transform: scale(1.0);
}

/* ── Label bar ───────────────────────────────────────────────── */
.svg-label {
  display: block;
  flex-shrink: 0;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  border-top: 1px solid var(--border);
  width: 100%;
  padding: var(--space-3) var(--space-5);
}

.archive-card-disabled .svg-label {
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* ── Page intro ──────────────────────────────────────────────── */
.page-content > p {
  margin-top: var(--space-2);
  max-width: 54ch;
}

/* ── Sidebar mini-footer ──────────────────────────────────────── */
.site-footer {
  width: 100%;
  padding: var(--space-2) 0;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   GAME PAGES — How to Play
   ═══════════════════════════════════════════════════════════════ */
.how-to-play-banner {
  background: var(--black);
  color: var(--white);
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  margin: var(--space-6) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
  animation: floatCard 5s ease-in-out infinite;
}

.how-to-play-banner:hover {
  background: var(--black);
  /* pause float on hover so it doesn't fight the cursor */
  animation-play-state: paused;
}

.how-to-play-text {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.how-to-play-subtext {
  font-size: var(--text-base);
  font-style: italic;
  font-weight: 300;
  margin-top: var(--space-2);
}

#instructionImage {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#instructionImage.fade-out { opacity: 0; }
#instructionImage.fade-in  { opacity: 1; }

.howto-fullscreen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  position: relative;
}

.howto-inner {
  background: var(--white);
  padding: var(--space-6);
  border-radius: 8px;
  max-width: 600px;
  width: 90vw;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  z-index: 10;
}

.howto-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

#howtoinstructionDots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.howto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  margin: 0 4px;
  transition: background 0.3s, transform 0.3s;
}

.howto-dot.active {
  background: var(--black);
  transform: scale(1.3);
}

.howto-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.howto-arrows button {
  background: none;
  border: none;
  font-size: var(--text-lg);
  font-weight: bold;
  cursor: pointer;
  color: var(--text-primary);
  transition: color 0.2s, transform 0.2s;
}

.howto-arrows button:hover:not(:disabled) {
  color: var(--grey-dark);
  transform: scale(1.15);
}

.howto-arrows button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */
.dp-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.dp-modal.open {
  display: flex;
}

.dp-modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: var(--text-base);
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
  padding: 0.2rem 0.4rem;
}

.dp-modal-close:hover {
  color: var(--text-primary);
}

.dp-modal-date {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.dp-modal-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.dp-modal-body {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Archive modal list */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--space-2);
  margin-top: var(--space-4);
}

.archive-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.archive-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-item .update-date {
  display: block;
  margin-bottom: var(--space-1);
}

.archive-item p {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.archive-detail {
  margin-top: var(--space-1) !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   HAMBURGER MENU BUTTON
   ═══════════════════════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  padding: 0;
}

.hamburger-btn:hover {
  background: var(--bg-hover);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to × when open */
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 149;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Shrinking desktop (max 1200px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .sidebar-left {
    width: 220px;
    min-width: 0;
    padding: var(--space-6) var(--space-4);
  }

  .sidebar-right {
    width: 200px;
    min-width: 0;
    padding: var(--space-6) var(--space-4);
  }

  #logo {
    width: clamp(14rem, 22vw, 26rem);
    padding: var(--space-6);
  }

  .hud-circle {
    width: 62%;
  }

  /* Social icons: slightly smaller to fit the narrower sidebar */
  .social-icons {
    gap: var(--space-4);
    padding: var(--space-3) var(--space-2);
  }

  .social-icons a svg {
    width: 34px;
    height: 34px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Narrow desktop (max 1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar-left {
    width: 200px;
    min-width: 0;
    padding: var(--space-5) var(--space-4);
  }

  .sidebar-right {
    width: 180px;
    min-width: 0;
    padding: var(--space-5) var(--space-3);
  }

  #logo {
    width: clamp(13rem, 22vw, 24rem);
    padding: var(--space-5);
  }

  .hud-circle {
    width: 68%;
  }

  /* Social icons: tighter gap, smaller icons for 200px sidebar */
  .social-icons {
    gap: var(--space-3);
    padding: var(--space-2) var(--space-1);
  }

  .social-icons a {
    padding: var(--space-1);
  }

  .social-icons a svg {
    width: 28px;
    height: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (max 900px) — right sidebar hides here
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hide right sidebar — content moves to mobile panel */
  .sidebar-right {
    display: none;
  }

  /* Unlock the fixed viewport height so content can scroll */
  .container,
  .layout {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    overflow-x: hidden;
  }

  /* Sidebar stays sticky so nav is always reachable */
  .sidebar-left {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    width: 210px;
    min-width: 0;
    padding: var(--space-6) var(--space-4);
  }

  /* Social icons: smallest comfortable size for 210px sidebar */
  .social-icons {
    gap: var(--space-2);
    padding: var(--space-2) 0;
  }

  .social-icons a {
    padding: var(--space-1);
  }

  .social-icons a svg {
    width: 26px;
    height: 26px;
  }

  .center-content {
    flex: 1;
    overflow: hidden;
    min-height: 100vh;
    padding: var(--space-5) var(--space-4);
  }

  .page-content {
    overflow-y: visible;
  }

  /* Show mobile updates panel */
  .mobile-updates-panel {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-5) var(--space-5);
    border-top: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
  }

  #logo {
    width: clamp(13rem, 30vw, 22rem);
    padding: var(--space-5);
  }

  .hud-circle {
    width: 72%;
  }

  /* Games: stay 2-col but shorter cards on tablet */
  .archive-stack {
    gap: var(--space-5);
  }

  .archive-card .border-frame,
  .archive-card-disabled .border-frame {
    height: 260px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile & narrow tablet (max 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Show hamburger button */
  .hamburger-btn {
    display: flex;
  }

  /* Full-height slide-in sidebar */
  .sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    max-width: 85vw;
    min-width: 0;
    z-index: 200;
    background: var(--white);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.10);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: var(--space-7) var(--space-5) var(--space-5);
  }

  .sidebar-left.nav-open {
    transform: translateX(0);
  }

  /* Overlay */
  .nav-overlay {
    display: block;
    pointer-events: none;
  }
  .nav-overlay.open {
    pointer-events: auto;
  }

  /* Main layout: single column, full width */
  .container,
  .layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    overflow-x: hidden;
  }

  /* Hide right sidebar completely */
  .sidebar-right {
    display: none;
  }

  /* Mobile updates panel */
  .mobile-updates-panel {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
  }

  /* Center content — tighter, centered column */
  .center-content {
    width: 100%;
    min-height: auto;
    padding: calc(var(--space-7) + 0.5rem) var(--space-4) var(--space-5);
    justify-content: center;
    align-items: center;
    gap: var(--space-7);
  }

  .page-content {
    width: 100%;
    padding: var(--space-5) var(--space-4);
    margin-left: 0;
    padding-top: calc(var(--space-7) + 1rem);
  }

  /* Logo scales down */
  #logo {
    width: clamp(7rem, 48vw, 13rem);
    padding: var(--space-4);
  }

  .hud-circle {
    width: 58%;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Notes card — full available width on mobile, height driven by content */
  .notes-card {
    width: calc(100% - 2rem);
    max-width: 480px;
    margin: 0 auto;
  }

  /* Modal: sheet from bottom */
  .dp-modal {
    padding: var(--space-4);
    align-items: flex-end;
  }

  .dp-modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: 8px 8px 0 0;
    padding: 1.5rem;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* Coming Soon modal */
  .cs-modal {
    padding: 0;
    align-items: flex-end;
  }

  .cs-modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
  }

  .cs-carousel-wrap {
    min-height: 280px;
    padding: var(--space-4);
  }

  /* Nav dropdown: tap-to-open on mobile */
  .has-dropdown .dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .has-dropdown.tap-open .dropdown {
    max-height: 400px;
    opacity: 1;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
  .nav-items a {
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-sm);
  }

  /* Games: single column on mobile */
  .archive-stack {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .archive-card .border-frame,
  .archive-card-disabled .border-frame {
    height: 240px;
  }

  /* How-to-play */
  .how-to-play-banner {
    padding: 2rem 1.25rem;
  }

  .how-to-play-text {
    font-size: var(--text-lg);
  }

  /* About section */
  .about-section {
    margin-top: var(--space-5);
    padding: 0 var(--space-3);
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (max 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hud-circle {
    width: 65%;
    max-width: 190px;
  }

  #logo {
    width: clamp(6rem, 55vw, 12rem);
    padding: var(--space-3);
  }

  .center-content {
    padding: calc(var(--space-7) + 0.25rem) var(--space-3) var(--space-4);
    gap: var(--space-6);
  }

  .notes-card {
    width: calc(100% - 1.5rem);
    max-width: 100%;
    padding: var(--space-3) var(--space-4);
    margin: 0 auto;
  }

  .mobile-updates-panel {
    padding: var(--space-3) var(--space-3) var(--space-4);
  }

  .menu-title {
    font-size: var(--text-base);
  }

  .tagline {
    font-size: 0.7rem;
  }

  .dp-modal {
    padding: var(--space-3);
  }

  .dp-modal-box {
    padding: 1.25rem;
  }

  .cs-carousel-wrap {
    min-height: 240px;
  }

  .cs-slide-placeholder {
    max-width: 200px;
  }

  /* Games: single col, shorter cards on small mobile */
  .archive-stack {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .archive-card .border-frame,
  .archive-card-disabled .border-frame {
    height: 180px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Touch device hover fix
   ═══════════════════════════════════════════════════════════════ */
@media (hover: none) {
  /* Disable hover dropdowns on touch devices — use tap instead */
  .has-dropdown.hover-active .dropdown {
    max-height: 0;
    opacity: 0;
  }
  .has-dropdown.tap-open .dropdown {
    max-height: 400px;
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO MESSAGE — Fade cycle overlay on center-content
   ═══════════════════════════════════════════════════════════════ */

/*
  .hero-message sits inside .center-content, absolutely positioned
  so it overlays the HUD circle without affecting layout flow.
  --hero-bottom is set by JS to the offsetTop of .notes-card so the
  hero zone ends exactly where the notes card begins — text is always
  centered in the space between the page top and the notes card.
  The JS cycle handles opacity on both the hero and the HUD wrapper.
*/

.hero-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--hero-bottom, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  opacity: 0;
  pointer-events: none;       /* never intercepts clicks while invisible */
  z-index: 5;                 /* above HUD rings (z-index 1), below notes card (z-index 10) */

  /* Transition controlled by JS adding/removing .hero-visible */
  transition: opacity 1.4s ease;
}

.hero-message.hero-visible {
  opacity: 1;
}

/* HUD blur-out — JS adds this class to .hud-circle */
.hud-circle.hero-dimmed {
  filter: blur(5px);
  opacity: 0.12;
  transition: filter 1.4s ease, opacity 1.4s ease;
}

/* Reset when hero retreats */
.hud-circle {
  transition: filter 1.4s ease, opacity 1.4s ease;
}

/* ── Typography ───────────────────────────────────────────────── */
.hero-message h1 {
  font-size: clamp(1.6rem, 3.5vw, var(--text-display));
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.hero-message p {
  font-size: clamp(var(--text-sm), 1.6vw, var(--text-lg));
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.hero-message span {
  font-size: clamp(var(--text-xs), 1.1vw, var(--text-sm));
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.9;
  display: block;
}

/* ── Responsive adjustments ───────────────────────────────────── */

/* Narrow desktop */
@media (max-width: 1024px) {
  .hero-message h1 {
    font-size: clamp(1.4rem, 4vw, 2.6rem);
    letter-spacing: 0.14em;
  }

  .hero-message span {
    max-width: 28ch;
  }
}

/* Tablet — right sidebar gone, center column is wider */
@media (max-width: 900px) {
  .hero-message {
    padding: var(--space-5) var(--space-5);
  }

  .hero-message h1 {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
  }
}

/* Mobile — hamburger layout, single column */
@media (max-width: 768px) {
  .hero-message {
    padding: var(--space-5) var(--space-4);
  }

  .hero-message h1 {
    font-size: clamp(1.2rem, 6.5vw, 1.9rem);
    letter-spacing: 0.12em;
  }

  .hero-message p {
    font-size: clamp(0.7rem, 3.5vw, 1rem);
    letter-spacing: 0.16em;
  }

  .hero-message span {
    font-size: clamp(0.6rem, 2.8vw, 0.8rem);
    max-width: 26ch;
    letter-spacing: 0.07em;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-message h1 {
    font-size: clamp(1.1rem, 7vw, 1.6rem);
    letter-spacing: 0.1em;
  }

  .hero-message p {
    font-size: clamp(0.65rem, 3.2vw, 0.9rem);
    letter-spacing: 0.13em;
  }

  .hero-message span {
    max-width: 22ch;
    letter-spacing: 0.06em;
  }
}