/* ==========================================================================
   TOASTED STUDIOS - OFFICIAL STYLESHEET
   Authentic Indie Dev Aesthetic | Terrance Toast Mascot | Warm Crunchy Palette
   ========================================================================== */

:root {
  --bg-dark: #12100e;
  --bg-card: #1c1814;
  --bg-card-hover: #26201a;
  
  --toast-crust: #8a5832;
  --toast-gold: #f59e0b;
  --toast-butter: #fbbf24;
  --toast-light: #fef3c7;
  --accent-cyan: #38bdf8;
  
  --text-main: #fdfaf6;
  --text-muted: #b8aba0;
  --text-dim: #7d7268;
  
  --border: rgba(255, 235, 210, 0.1);
  --border-glow: rgba(245, 158, 11, 0.35);

  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);
  --font-arcade: 'Chakra Petch', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(138, 88, 50, 0.12) 0%, transparent 50%);
}

/* ==========================================================================
   TERRANCE TOAST PIXEL ART RENDERING (CRISP & SIZED UP PROMINENTLY)
   ========================================================================== */
.pixel-toast-mini,
.brand-mascot-img,
.mascot-giant-pixel,
.about-pixel-avatar,
.cta-toast-mascot,
.footer-toast-img,
.chat-toggle-mascot,
.chat-header-avatar,
.chat-bot-avatar {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  object-fit: contain;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Announcement Banner */
.top-banner {
  background: linear-gradient(90deg, #8a5832 0%, #b45309 50%, #d97706 100%);
  color: #fff;
  font-size: 0.88rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pixel-toast-mini {
  width: 24px;
  height: 24px;
}

.banner-cta {
  color: var(--toast-light);
  font-weight: 800;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.banner-cta:hover {
  color: #fff;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(18, 16, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-mascot-box {
  width: 58px;
  height: 58px;
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 14px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-mascot-box {
  transform: rotate(-6deg) scale(1.08);
}

.brand-mascot-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-naming {
  display: flex;
  flex-direction: column;
}

.studio-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.1;
}

.brand-pop {
  color: var(--toast-gold);
}

.studio-tag {
  font-family: var(--font-arcade);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover {
  color: var(--toast-butter);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-steam-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #171a21;
  color: #66c0f4;
  border: 1px solid #2a475e;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-steam-nav:hover {
  background: #2a475e;
  color: #fff;
  border-color: #66c0f4;
  box-shadow: 0 0 14px rgba(102, 192, 244, 0.4);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.indie-sticker-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.sticker {
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.sticker-steam {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.4);
}

.sticker-godot {
  background: rgba(71, 140, 191, 0.18);
  color: #7abeff;
  border: 1px solid rgba(71, 140, 191, 0.5);
}

.sticker-solo {
  background: rgba(245, 158, 11, 0.15);
  color: var(--toast-butter);
  border: 1px solid var(--border-glow);
}

.hero-title-wrap {
  margin-bottom: 1rem;
}

.hero-banner-art {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.hero-subtitle {
  font-family: var(--font-arcade);
  font-size: 1.1rem;
  color: var(--toast-butter);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.15rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-intro strong {
  color: #fff;
}

.release-countdown {
  width: fit-content;
  max-width: 100%;
  margin: -0.45rem 0 1.8rem;
  padding: 1rem 1.2rem 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 24, 20, 0.82));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
}

.countdown-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--toast-butter);
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.countdown-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9f1c;
  box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.13), 0 0 12px rgba(255, 159, 28, 0.65);
}

.countdown-units {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.countdown-unit {
  display: grid;
  justify-items: center;
  min-width: 3.4rem;
  gap: 0.12rem;
}

.countdown-unit strong {
  color: #fff;
  font-family: var(--font-arcade);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-unit span,
.countdown-date {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.countdown-separator {
  align-self: start;
  padding-top: 0.05rem;
  color: rgba(245, 158, 11, 0.75);
  font-family: var(--font-arcade);
  font-size: 1.2rem;
}

.countdown-date {
  margin: 0.65rem 0 0;
}

.countdown-date span {
  padding-inline: 0.2rem;
  color: var(--toast-butter);
}

.release-countdown.is-released .countdown-heading {
  color: #9ee6a0;
}

@media (max-width: 420px) {
  .release-countdown {
    width: 100%;
    padding-inline: 0.85rem;
  }

  .countdown-units {
    justify-content: space-between;
    gap: 0.25rem;
  }

  .countdown-unit {
    min-width: 2.8rem;
  }

  .countdown-unit strong {
    font-size: 1.45rem;
  }
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-steam-big {
  background: #20374b;
  color: #fff;
  border-color: rgba(102, 192, 244, 0.55);
}

.btn-steam-big:hover {
  background: #2a475e;
  transform: translateY(-1px);
}

.btn-demo-big {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--toast-gold);
  color: var(--toast-butter);
}

.btn-demo-big:hover {
  background: var(--toast-gold);
  color: #12100e;
  transform: translateY(-1px);
}

.btn-itch-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-itch-link:hover {
  border-color: #fa5c5c;
  color: #fa5c5c;
}

/* Quick Facts */
.quick-facts-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.fact-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* ==========================================================================
   HERO RIGHT: TERRANCE TOAST MASCOT (SIZED UP TO FILL THE FRAME)
   ========================================================================== */
.mascot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mascot-card:hover {
  border-color: var(--toast-gold);
}

.mascot-display-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.16), #171310 72%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.08);
  overflow: hidden;
}

.mascot-giant-pixel {
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.mascot-card:hover .mascot-giant-pixel {
  transform: scale(1.05);
}

.mascot-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.mascot-name-plate h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
}

.mascot-name-plate p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mascot-status-pill {
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--toast-butter);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--toast-gold);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   SECTIONS & TITLES
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-label {
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  color: var(--toast-gold);
  letter-spacing: 0.12em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.title-main {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.badge-steam-btn {
  color: #66c0f4;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.badge-steam-btn:hover {
  text-decoration: underline;
  color: #fff;
}

/* ==========================================================================
   SCREENSHOT SHOWCASE
   ========================================================================== */
.game-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  margin-bottom: 2.5rem;
}

.screen-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screen-stage:hover .stage-image {
  transform: scale(1.015);
}

.stage-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 16, 14, 0.95) 60%);
  padding: 1.5rem 1.5rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stage-tag {
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--toast-gold);
  color: #12100e;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.stage-caption {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 600;
  flex-grow: 1;
}

.stage-zoom-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-arcade);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.stage-zoom-btn:hover {
  background: var(--toast-gold);
  color: #12100e;
}

.screen-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #14110f;
  border-top: 1px solid var(--border);
}

.screen-thumb-btn {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  transition: var(--transition);
}

.screen-thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.screen-thumb-btn span {
  display: block;
  font-family: var(--font-arcade);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.3rem 0.45rem;
  background: var(--bg-card);
}

.screen-thumb-btn.active {
  border-color: var(--toast-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.screen-thumb-btn.active span {
  color: var(--toast-butter);
  font-weight: 700;
}

/* Mechanics Grid */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.mech-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  transform: translateY(-2px);
}

.mech-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mech-num {
  font-family: var(--font-arcade);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--toast-gold);
}

.mech-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
}

.mech-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Specs Block */
.specs-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #14110f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.specs-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
}

.specs-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.specs-detail-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.specs-detail-list span {
  color: var(--text-dim);
  font-family: var(--font-arcade);
}

.specs-detail-list strong {
  color: var(--text-main);
}

.features-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-feat {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--toast-light);
}

/* ==========================================================================
   SECTION: MAJOR LEAGUE PHYSICS SHOWCASE
   ========================================================================== */
.section-mlp {
  background: linear-gradient(180deg, transparent 0%, rgba(36, 27, 20, 0.45) 50%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mlp-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  padding: 3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.mlp-cover-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.mlp-cover-img {
  width: 100%;
  height: auto;
  display: block;
}

.mlp-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fa5c5c;
  color: #fff;
  font-family: var(--font-arcade);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.badge-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge-retro {
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--toast-butter);
  border: 1px solid var(--border);
}

.mlp-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

.mlp-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.mlp-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.mlp-feat-item {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.mlp-feat-item strong {
  color: #fff;
}

.mlp-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-itch-primary {
  background: #fa5c5c;
  color: #fff;
}

.btn-itch-primary:hover {
  background: #e04b4b;
  transform: translateY(-1px);
}

.btn-itch-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-itch-secondary:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

/* ==========================================================================
   SECTION: ABOUT TERRANCE TOAST (LARGE PROMINENT MASCOT)
   ========================================================================== */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.about-mascot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 3rem;
}

.about-avatar-box {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, #171310 75%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--toast-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.about-pixel-avatar {
  width: 188px;
  height: 188px;
  object-fit: contain;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.about-title {
  font-size: 0.85rem;
  color: var(--toast-gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.about-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.about-tags span {
  font-family: var(--font-arcade);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.about-contact-btn {
  color: var(--toast-butter);
  font-size: 0.85rem;
  text-decoration: none;
  font-family: var(--font-arcade);
  transition: var(--transition);
}

.about-contact-btn:hover {
  text-decoration: underline;
}

.about-headline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.about-para {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-para strong {
  color: #fff;
}

.dev-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: #14110f;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.dev-stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-arcade);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--toast-butter);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   WISHLIST CTA SECTION
   ========================================================================== */
.section-cta {
  padding: 2.5rem 0;
}

.cta-card {
  background: linear-gradient(135deg, #241c15 0%, #16120e 100%);
  border: 2px solid var(--toast-crust);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
}

.cta-toast-mascot {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.cta-left h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.cta-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   CONTACT SECTION (REAL & FUNCTIONAL)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.contact-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.85rem;
}

.contact-box p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.email-direct-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: #14110f;
  border: 2px solid var(--toast-crust);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.email-direct-card:hover {
  border-color: var(--toast-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
}

.email-direct-card small {
  font-family: var(--font-arcade);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
}

.email-direct-card strong {
  color: var(--toast-butter);
  font-size: 1.15rem;
}

.community-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-comm {
  display: block;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.btn-comm-steam {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  color: #fff;
  border: 1px solid #66c0f4;
}

.btn-comm-steam:hover {
  background: #2a475e;
  transform: translateY(-2px);
}

.btn-comm-hub {
  background: #171a21;
  color: #66c0f4;
  border: 1px solid #2a475e;
}

.btn-comm-hub:hover {
  background: #232833;
}

.btn-comm-itch {
  background: #fa5c5c;
  color: #fff;
}

.btn-comm-itch:hover {
  background: #e04b4b;
  transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING "ASK TERRANCE" CHATBOT WIDGET
   ========================================================================== */
.chat-widget-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 995;
}

.chat-toggle-btn {
  background: var(--bg-card);
  border: 2px solid var(--toast-crust);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.25);
  transition: var(--transition);
  position: relative;
}

.chat-toggle-btn:hover {
  border-color: var(--toast-gold);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 22px rgba(245, 158, 11, 0.4);
}

.chat-toggle-mascot {
  width: 32px;
  height: 32px;
}

.chat-toggle-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.chat-unread-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* Chat Window Box */
.chat-box {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 360px;
  height: 520px;
  max-height: 80vh;
  background: #171310;
  border: 2px solid var(--toast-crust);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-box.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-box-header {
  background: #201a15;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-header-avatar {
  width: 28px;
  height: 28px;
}

.chat-header-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.1;
}

.chat-status {
  font-family: var(--font-arcade);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.chat-status.offline .chat-dot {
  background: #ef4444;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.chat-close-btn:hover {
  color: #fff;
}

/* Chat Messages Log */
.chat-log {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.chat-msg-row.user {
  justify-content: flex-end;
}

.chat-bot-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 12px;
}

.chat-msg-row.bot .chat-bubble {
  background: #241d18;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.chat-msg-row.user .chat-bubble {
  background: #a95208;
  color: #fff;
  border-bottom-right-radius: 2px;
}

:focus-visible {
  outline: 2px solid var(--toast-butter);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.chat-bubble-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.chat-bubble-link-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--toast-gold);
  color: var(--toast-butter);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-arcade);
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
}

.chat-bubble-link-pill:hover {
  background: var(--toast-gold);
  color: #12100e;
}

.chat-bubble-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.chat-bubble-sugg-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--toast-butter);
  font-size: 0.74rem;
  font-family: var(--font-arcade);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.chat-bubble-sugg-btn:hover {
  background: var(--toast-gold);
  color: #12100e;
}

/* Typing state */
.typing-bubble {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.typing-bubble span {
  width: 6px;
  height: 6px;
  background: var(--toast-gold);
  border-radius: 50%;
  animation: typing-dots 1.2s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dots {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Suggestions Strip */
.chat-suggestions-strip {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #1c1713;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}

.chat-suggestions-strip::-webkit-scrollbar {
  height: 4px;
}

.chat-suggestions-strip::-webkit-scrollbar-thumb {
  background: var(--toast-crust);
  border-radius: 4px;
}

.chat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--toast-light);
  font-size: 0.74rem;
  font-family: var(--font-arcade);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.chat-chip:hover {
  background: var(--toast-gold);
  color: #12100e;
  border-color: var(--toast-gold);
}

/* Chat Input Form */
.chat-form {
  display: flex;
  padding: 0.65rem 0.75rem;
  background: #14110f;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.chat-form input {
  flex-grow: 1;
  background: #1f1915;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--toast-gold);
}

.chat-send-btn {
  background: var(--toast-gold);
  color: #12100e;
  border: none;
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.chat-send-btn:hover {
  background: var(--toast-butter);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightboxImg {
  max-width: 86vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--toast-crust);
}

.lightbox-caption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(24, 20, 17, 0.9);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 24, 20, 0.85);
  border: 1px solid var(--toast-crust);
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--toast-gold);
  color: #12100e;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: #0d0c0a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.footer-toast-img {
  width: 28px;
  height: 28px;
}

.footer-studio {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--toast-butter);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .mlp-showcase-card,
  .about-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-mascot-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 2rem;
  }

  .mechanics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specs-block {
    grid-template-columns: 1fr;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #14110f;
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.85rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .quick-facts-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .mascot-giant-pixel {
    width: 100%;
    height: 100%;
  }

  .chat-box {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 60px;
    height: 480px;
  }
}

/* Final polish: consistent spacing, clearer focus states, and comfortable mobile layouts. */
html {
  scroll-padding-top: 96px;
}

main > section,
main > section[id] {
  scroll-margin-top: 96px;
}

.container {
  max-width: 1240px;
}

.hero-section {
  padding-block: clamp(3rem, 6vw, 5.25rem);
}

.hero-grid {
  gap: clamp(2rem, 5vw, 4rem);
}

.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section-title-bar {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 1rem;
}

.game-showcase-box,
.mech-card,
.specs-block,
.mlp-showcase-card,
.about-card,
.contact-box,
.cta-card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.btn,
.btn-comm,
.chat-toggle-btn,
.chat-send-btn,
.chat-chip,
.screen-thumb-btn,
.mobile-nav-toggle {
  min-height: 44px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.footer-links a:focus-visible,
.screen-thumb-btn:focus-visible,
.chat-chip:focus-visible,
.chat-close-btn:focus-visible,
.chat-send-btn:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 3px solid var(--toast-butter);
  outline-offset: 3px;
}

.nav-link {
  white-space: nowrap;
}

.stage-zoom-btn {
  min-height: 40px;
}

.screen-thumb-btn:hover {
  border-color: rgba(245, 158, 11, 0.65);
  transform: translateY(-2px);
}

.chat-box {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.58), 0 0 24px rgba(245, 158, 11, 0.14);
}

.chat-box-header,
.chat-suggestions-strip,
.chat-form {
  flex: 0 0 auto;
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.chat-suggestions-strip {
  min-height: 50px;
}

.chat-form input {
  min-width: 0;
  min-height: 44px;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 1rem;
  }

  .header-inner {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1rem;
  }

  .header-inner {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
    padding: 1rem;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  }

  .nav-link {
    padding: 0.65rem 0.25rem;
  }

  .hero-section {
    padding-block: 2.75rem 3.25rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .quick-facts-box {
    gap: 0.85rem;
  }

  .fact-val {
    white-space: normal;
  }

  .section-title-bar {
    align-items: flex-start;
  }

  .stage-info-bar {
    flex-wrap: wrap;
    padding: 1.1rem 1rem 0.85rem;
  }

  .stage-caption {
    flex-basis: 100%;
    order: 3;
  }

  .mlp-showcase-card,
  .about-card,
  .specs-block,
  .contact-box,
  .cta-card {
    padding: clamp(1.25rem, 5vw, 2rem);
  }

  .mlp-actions .btn,
  .cta-buttons .btn {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .chat-widget-wrapper {
    right: 14px;
    bottom: 14px;
  }

  .chat-box {
    width: min(390px, calc(100vw - 28px));
    right: -6px;
    height: min(540px, calc(100dvh - 104px));
    max-height: calc(100dvh - 104px);
  }
}
