@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400..700;1,400..700&family=Fredoka:wght@400..700&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES / TOKENS
   ========================================================================== */
:root {
  /* Color System */
  --bg-page: #FAFDF9;
  --bg-surface: #FFFFFF;
  --bg-surface-tint: #F2F8F4;
  --bg-sky: #EBF5FC;
  --bg-sky-deep: #D5ECFA;
  
  --text-primary: #14291F;
  --text-secondary: #2B4738;
  --text-muted: #3D614E;
  --text-inverse: #FFFFFF;
  
  --meadow-deep: #22543D;
  --meadow-primary: #2F855A;
  --meadow-light: #48BB78;
  --meadow-soft: #E6F5EC;
  
  --sky-primary: #1E6091;
  --sky-hover: #184E77;
  --sky-light: #52B69A;
  --sky-soft: #E8F4F8;
  
  --bloom-pink: #E53E3E;
  --bloom-pink-soft: #FED7E2;
  --bloom-pink-deep: #97266D;
  --bloom-sun: #C05621;
  --bloom-sun-soft: #FEFCBF;
  --bloom-sun-deep: #744210;
  
  --border-subtle: #D8EAE0;
  --border-card: #C7DFD2;
  
  /* Typography */
  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  
  /* Neutral Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(20, 41, 31, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 41, 31, 0.08);
  --shadow-lg: 0 12px 28px rgba(20, 41, 31, 0.10);
  --shadow-float: 0 16px 36px rgba(20, 41, 31, 0.12);
  
  /* Radii */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-squircle: 60px;
  --radius-pill: 9999px;
  
  /* Spacing */
  --container-max: 1120px;
}

/* ==========================================================================
   RESET & BROWSER SURFACES CRAFT
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
}

/* Themed Browser Surfaces */
::selection {
  background-color: #BEE3F8;
  color: #14291F;
}

caret-color {
  color: var(--sky-primary);
}

:focus-visible {
  outline: 3px solid var(--sky-primary);
  outline-offset: 3px;
}

/* Custom Themed Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #A0C4B0;
  border-radius: 5px;
  border: 2px solid var(--bg-page);
}
::-webkit-scrollbar-thumb:hover {
  background: #7DAA90;
}

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

button, input {
  font-family: inherit;
  font-size: inherit;
}

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

/* ==========================================================================
   CONTAINERS & SHARED UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 253, 249, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-primary);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--sky-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--sky-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--meadow-deep);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-header-cta:hover {
  background: var(--meadow-primary);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

/* ==========================================================================
   PAGE BANNER / SUBPAGE HEADER
   ========================================================================== */
.page-banner {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #EAF4FC 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.page-banner-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================================================
   STUDIO HOME HERO (index.html)
   ========================================================================== */
.studio-hero {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #EAF4FC 0%, var(--bg-page) 100%);
  z-index: -1;
  pointer-events: none;
}

.studio-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.studio-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #E6F3EB;
  color: var(--meadow-deep);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.studio-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.studio-hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.studio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sky-primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary-action:hover {
  background: var(--sky-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-tint);
  border-color: var(--meadow-primary);
  color: var(--meadow-deep);
  transform: translateY(-2px);
}

/* ==========================================================================
   GAME HERO SECTION (games/nimbus/index.html & games/index.html)
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #E6F3EB;
  color: var(--meadow-deep);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--meadow-primary);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-pitch {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-visual-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-cloud-badge {
  margin-top: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.125rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-icon-frame {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-squircle);
  box-shadow: var(--shadow-float);
  border: 3px solid #FFFFFF;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  background: #FFFFFF;
}

@media (min-width: 640px) {
  .app-icon-frame {
    width: 270px;
    height: 270px;
    border-radius: var(--radius-squircle);
  }
}

.app-icon-frame:hover {
  transform: translateY(-4px);
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   FEATURED RELEASE SHOWCASE CARD (NIMBUS ON HOME)
   ========================================================================== */
.featured-showcase-section {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.featured-game-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .featured-game-card {
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    padding: 3.5rem;
  }
}

.game-icon-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.featured-game-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-badge-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #C6F6D5;
  color: #22543D;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 700;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.featured-game-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.featured-game-pitch {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.featured-game-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.feature-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.feature-pill {
  background: var(--bg-surface-tint);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.featured-game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.app-store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  background: #111827;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-height: 52px;
}

.app-store-badge-btn:hover {
  background: #1F2937;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-store-apple-logo {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.badge-text-cluster {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.9;
  line-height: 1.35;
}

.badge-main {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.btn-game-details {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sky-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, color 0.15s ease;
}

.btn-game-details:hover {
  color: var(--sky-hover);
  transform: translateX(3px);
}

/* ==========================================================================
   GAMEPLAY SECTION & NARRATIVE STEPS
   ========================================================================= */
.gameplay-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.gameplay-narrative-flow {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.narrative-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.narrative-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 840px) {
  .narrative-step {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    padding: 3rem;
  }
  
  .narrative-step.reverse {
    grid-template-columns: 0.75fr 1.25fr;
  }
  
  .narrative-step.reverse .step-text-col {
    order: 2;
  }
  .narrative-step.reverse .step-visual-col {
    order: 1;
  }
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.badge-morning {
  background: #EBF8FF;
  color: #1A6EAC;
}

.badge-sunset {
  background: #FEFCBF;
  color: #744210;
}

.badge-cats {
  background: #FED7E2;
  color: #97266D;
}

.step-heading {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.step-takeaway {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--meadow-deep);
}

.step-visual-col {
  background: var(--bg-surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}

.step-visual-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
}

.step-visual-note {
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   GAMES CATALOG PAGE (`games.html`) STYLES
   ========================================================================== */
.games-catalog-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.game-full-entry {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .game-full-entry {
    padding: 3.5rem;
  }
}

.game-entry-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 860px) {
  .game-entry-main-grid {
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
  }
}

.game-story-loop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .game-story-loop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.loop-beat-item {
  display: flex;
  flex-direction: column;
}

.loop-beat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.loop-beat-item h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.loop-beat-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pipeline / Workshop Grid */
.pipeline-header {
  margin-top: 4.5rem;
  margin-bottom: 2rem;
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .workshop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.workshop-card {
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workshop-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background: #E2E8F0;
  color: #4A5568;
}

.workshop-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.workshop-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Quick Notify Form */
.notify-cluster {
  width: 100%;
  max-width: 460px;
  margin-top: 1.5rem;
}

.notify-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
}

.notify-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface);
  transition: border-color 0.15s ease;
}

.notify-input:focus {
  outline: none;
  border-color: var(--sky-primary);
}

.btn-notify-submit {
  background: var(--sky-primary);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 0.625rem 1.125rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-notify-submit:hover {
  background: var(--sky-hover);
}

.notify-msg {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--meadow-deep);
  display: none;
  font-weight: 500;
}

/* ==========================================================================
   PHILOSOPHY & STUDIO PRINCIPLES
   ========================================================================== */
.philosophy-section {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  background: #F4F9F5;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   THE STUDIO: ABOUT & PROMISE
   ========================================================================== */
.studio-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.studio-intro-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .studio-intro-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.studio-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.studio-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.studio-manifesto-box {
  background: var(--meadow-soft);
  border: 1.5px solid #C4E2D0;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--meadow-deep);
  margin-bottom: 1rem;
}

.manifesto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.manifesto-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.manifesto-check {
  color: var(--meadow-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
  line-height: 1.4;
}

/* ==========================================================================
   PRESS & CONTACT SECTION
   ========================================================================== */
.press-contact-section {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  background: var(--bg-surface-tint);
  border-top: 1px solid var(--border-subtle);
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .press-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.fact-sheet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.fact-sheet-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
}

.fact-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.fact-table tr:last-child {
  border-bottom: none;
}

.fact-table th {
  text-align: left;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-muted);
  width: 35%;
}

.fact-table td {
  padding: 0.625rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.btn-contact-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sky-primary);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.btn-contact-mail:hover {
  background: var(--sky-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--sky-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   GAME BREADCRUMB BAR (games/nimbus/index.html)
   ========================================================================== */
.game-breadcrumb-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.game-breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--meadow-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-back-link:hover {
  color: var(--meadow-deep);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   GAMEPLAY CHAPTERS (FLAT, OPEN EDITORIAL LAYOUT - NO NESTED CARDS)
   ========================================================================== */
.gameplay-chapter-flow {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3.5rem;
}

.gameplay-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.gameplay-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 860px) {
  .gameplay-chapter {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
  
  .gameplay-chapter.reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }
  
  .gameplay-chapter.reverse .step-text-col {
    order: 2;
  }
  .gameplay-chapter.reverse .chapter-visual-col {
    order: 1;
  }
}

.chapter-visual-col {
  width: 100%;
}

/* ==========================================================================
   MOISTURE BALANCE GAUGE (CHAPTER 1)
   ========================================================================== */
.moisture-gauge-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gauge-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gauge-live-badge {
  background: var(--meadow-soft);
  color: var(--meadow-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.gauge-bar-track {
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #D69E2E 0%, #D69E2E 28%, #2F855A 32%, #2F855A 82%, #2B6CB0 86%, #2B6CB0 100%);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(20, 41, 31, 0.1);
}

.gauge-needle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 64%;
  width: 4px;
  background: var(--text-primary);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
}

.gauge-zones-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.gauge-zone-col {
  padding: 0.875rem 0.5rem;
  text-align: center;
}

.gauge-zone-col.target-zone .zone-label {
  color: var(--meadow-deep);
  font-weight: 800;
}

.zone-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.zone-dry { color: var(--bloom-sun-deep); }
.zone-nimbus { color: var(--meadow-deep); }
.zone-flood { color: var(--sky-primary); }

.zone-effect {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   TWILIGHT BLUEPRINTS (CHAPTER 2)
   ========================================================================== */
.blueprints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.blueprint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.blueprint-card:hover {
  transform: translateY(-2px);
  border-color: var(--meadow-primary);
}

.blueprint-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEFCBF;
  color: #744210;
  margin-bottom: 0.25rem;
}

.blueprint-card h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.blueprint-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.blueprint-cost {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #1E6091;
  background: #E8F4F8;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-top: auto;
}

/* ==========================================================================
   ISLAND COMPANIONS (CHAPTER 3)
   ========================================================================== */
.companions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  width: 100%;
}

@media (min-width: 540px) {
  .companions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.companion-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  box-shadow: var(--shadow-sm);
}

.companion-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.avatar-cat-calico {
  background: var(--bloom-pink-soft);
  color: var(--bloom-pink-deep);
}

.avatar-cat-ginger {
  background: var(--bloom-sun-soft);
  color: var(--bloom-sun-deep);
}

.avatar-bird {
  background: var(--bg-sky);
  color: var(--sky-primary);
}

.companion-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.companion-role {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.companion-bio {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* ==========================================================================
   SPECIFICATIONS SECTION
   ========================================================================== */
.specs-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: var(--bg-surface-tint);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.spec-detail {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   LAUNCH ALERT SECTION
   ========================================================================== */
.launch-alert-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.launch-alert-card {
  background: linear-gradient(135deg, #E6F4EA 0%, #E8F4F8 100%);
  border: 1.5px solid #C3E6D2;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.launch-alert-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--meadow-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.launch-alert-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.launch-alert-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.launch-alert-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .launch-alert-form {
    flex-direction: row;
  }
}

.launch-alert-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  background: #FFFFFF;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.launch-alert-input:focus {
  outline: none;
  border-color: var(--meadow-primary);
}

.btn-launch-alert {
  background: var(--meadow-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-launch-alert:hover {
  background: var(--meadow-deep);
  transform: translateY(-2px);
}

.launch-privacy-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   APP STORE BADGE: COMING SOON STATE (A PLATE, NOT A LINK YET)
   ========================================================================== */
.app-store-badge-btn.coming-soon {
  background: transparent;
  color: #111827;
  border: 1.5px solid rgba(17, 24, 39, 0.4);
  box-shadow: none;
  cursor: default;
}

.app-store-badge-btn.coming-soon:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   COMPACT APP ICON FRAMES (SECOND TITLE ON HOME, games/knot/index.html)
   ========================================================================== */
.app-icon-frame.icon-medium {
  width: 150px;
  height: 150px;
  border-radius: 34px;
}

.app-icon-frame.icon-small {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.launch-alert-card .app-icon-frame.icon-small {
  margin: 0 auto 1.25rem auto;
}

/* ==========================================================================
   GAME HERO LOCKUP (games/knot/index.html): THE APP ICON WITH THE NAME
   ========================================================================== */
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-lockup .app-icon-frame.icon-small {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.hero-lockup .hero-title {
  /* On a phone the name sits beside the icon: sized so that its longer line
     ("Draw the Loop") holds one line in the width that is left. */
  font-size: clamp(1.625rem, calc((100vw - 140px) / 6.4), 2.5rem);
  margin-bottom: 0;
}

/* The jump to the gameplay section is one swipe away on a phone */
.hero-actions .btn-secondary.from-tablet {
  display: none;
}

@media (min-width: 640px) {
  .hero-actions .btn-secondary.from-tablet {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .hero-lockup {
    display: block;
  }

  .hero-lockup .app-icon-frame.icon-small {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
  }

  .hero-lockup .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
  }
}

/* ==========================================================================
   GAME PICTURES (games/knot/index.html)
   ========================================================================== */
.game-picture {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--bg-surface-tint);
  /* The white frame of the app icon, drawn outside the picture's own box */
  box-shadow: 0 0 0 3px #FFFFFF, var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-picture:hover {
  transform: translateY(-4px);
}

.game-picture.hero-picture {
  max-width: 272px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 3px #FFFFFF, var(--shadow-float);
}

.game-picture-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
}

/* Takeaways under a chapter, as a list: the ticks keep their size when a line wraps */
.takeaway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.takeaway-list svg {
  flex-shrink: 0;
}

/* ==========================================================================
   GOOGLE PLAY BADGE (GOOGLE'S OWN PICTURE, USED AS IT IS)
   ========================================================================== */
/* The picture carries its own clear space: a quarter of the badge's height on
   every side, so it is one and a half badges tall. The negative margin lets that
   space lie over the row's gap, and the badge itself stands as tall as the
   App Store button next to it. */
.google-play-badge-link {
  --play-badge-height: 64px;
  display: inline-flex;
  flex-shrink: 0;
  margin: calc(var(--play-badge-height) * -0.25);
  border-radius: var(--radius-md);
  transition: transform 0.15s ease;
}

.google-play-badge-link:hover {
  transform: translateY(-2px);
}

.google-play-badge {
  display: block;
  height: calc(var(--play-badge-height) * 1.5);
  width: auto;
  max-width: none;
}
