*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #FAF8F4;
  --ink: #2A1F1A;
  --midnight: #1E1428;
  --tint: #F0EBF8;
  --ash: #8A7C72;
  --border: #DDD5E8;
  --tangerine: #E07B45;
  --lavender: #9E7EC8;
  --indigo: #6264A0;
  --sage: #6E9E78;
  --rose: #C4788E;
  --midnight-soft: #2A2035;
  --gradient-dark: linear-gradient(180deg, #2A2035 0%, #3D2E4A 50%, #5C4A6A 100%);
  --gradient-dark-fade: linear-gradient(180deg, #2A2035 0%, #3D2E4A 40%, var(--tint) 100%);
  --bg: var(--white);
  --bg-alt: var(--tint);
  --text: var(--ink);
  --text-muted: var(--ash);
  --surface: var(--white);
  --ff-display: 'Fredoka', sans-serif;
  --ff-body: 'Nunito', sans-serif;
  --fs-hero: clamp(48px, 8vw, 96px);
  --fs-hero-sub: clamp(20px, 3vw, 28px);
  --fs-section: clamp(28px, 4vw, 44px);
  --fs-card: clamp(20px, 2vw, 24px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;
  --fs-label: 11px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(42, 31, 26, 0.06);
  --shadow-md: 0 4px 20px rgba(42, 31, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(158, 126, 200, 0.18);
  --shadow-lift: 0 16px 48px rgba(158, 126, 200, 0.25);
  --shadow-glow: 0 0 60px rgba(224, 123, 69, 0.3);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.25s;
  --dur-slow: 0.5s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.label {
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.label--section {
  color: var(--lavender);
  margin-bottom: var(--space-sm);
  display: block;
}

.label--sm {
  font-size: var(--fs-xs);
  color: var(--white);
  opacity: 0.8;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--tint);
  color: var(--ash);
}

.pill--lavender {
  background: rgba(158, 126, 200, 0.15);
  color: var(--lavender);
}

.pill--tangerine {
  background: rgba(224, 123, 69, 0.15);
  color: var(--tangerine);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn__arrow {
  transition: transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--tangerine);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--lavender);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(250, 248, 244, 0.3);
}

.btn--ghost:hover {
  border-color: var(--tangerine);
  color: var(--tangerine);
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 14px 36px;
  font-size: var(--fs-body);
}

.btn:active {
  transform: scale(0.97);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.preloader__mascot {
  width: 80px;
  height: 80px;
  animation: preloaderBounce 1s var(--ease-spring) infinite;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: rgba(250, 248, 244, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tangerine), var(--lavender));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.preloader__text {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.5);
  letter-spacing: 0.05em;
}

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

.cursor-glow {
  position: fixed;
  top: -160px;
  left: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 126, 200, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

.cursor-glow.active {
  opacity: 1;
}

.cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender);
  pointer-events: none;
  z-index: 9001;
  opacity: 0;
  transition: width var(--dur) var(--ease-spring),
              height var(--dur) var(--ease-spring),
              background var(--dur),
              border var(--dur),
              border-color var(--dur);
  mix-blend-mode: difference;
}

.cursor-dot.active {
  opacity: 1;
}

.cursor-dot.hovering {
  width: 40px;
  height: 40px;
  top: -20px;
  left: -20px;
  background: transparent;
  border: 2px solid var(--tangerine);
  mix-blend-mode: normal;
}

.cursor-dot.morph-hero {
  width: 16px;
  height: 16px;
  top: -8px;
  left: -8px;
  background: var(--tangerine);
}

.cursor-dot.morph-games {
  width: 24px;
  height: 24px;
  top: -12px;
  left: -12px;
  background: var(--sage);
}

.cursor-dot.morph-about {
  width: 12px;
  height: 12px;
  top: -6px;
  left: -6px;
  background: var(--indigo);
}

.cursor-dot.morph-devlog {
  width: 10px;
  height: 10px;
  top: -5px;
  left: -5px;
  background: var(--rose);
}

.cursor-dot.morph-press {
  width: 14px;
  height: 14px;
  top: -7px;
  left: -7px;
  background: var(--lavender);
}

.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8999;
  overflow: hidden;
}

.cursor-trail__dot {
  position: absolute;
  border-radius: 50%;
  animation: trailFade 0.8s var(--ease-out) forwards;
}

@keyframes trailFade {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.2) translateY(-20px); }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: var(--color);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat var(--dur) linear infinite;
  animation-delay: var(--delay);
  bottom: -20px;
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(var(--drift)); opacity: 0; }
}

.progress {
  position: fixed;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.progress__track {
  width: 2px;
  height: 120px;
  background: rgba(42, 31, 26, 0.1);
  border-radius: 1px;
  position: relative;
}

.progress__fill {
  width: 100%;
  background: var(--tangerine);
  border-radius: 1px;
  transition: height 0.3s var(--ease);
}

.progress__dots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 0;
  right: -5px;
}

.progress__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.progress__dot.active {
  border-color: var(--tangerine);
  background: var(--tangerine);
  box-shadow: 0 0 12px rgba(224, 123, 69, 0.4);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--space-sm) 0;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: 100%;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__mascot {
  width: 32px;
  height: 32px;
}

.nav__wordmark {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
}

.nav__links a {
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur);
  position: relative;
  padding: 4px 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tangerine);
  transition: width var(--dur) var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--tangerine);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: var(--lavender);
  top: -100px;
  right: -100px;
  opacity: 0.25;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: var(--tangerine);
  bottom: -50px;
  left: -100px;
  opacity: 0.2;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: var(--indigo);
  top: 50%;
  left: 40%;
  opacity: 0.18;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__title {
  font-family: var(--ff-display);
  color: var(--white);
}

.hero__title-line {
  display: block;
}

.hero__title-line--top {
  font-size: var(--fs-hero-sub);
  font-weight: 500;
  opacity: 0.9;
}

.hero__title-accent {
  font-size: var(--fs-hero);
  font-weight: 700;
  background: linear-gradient(135deg, var(--tangerine), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero__tagline {
  font-size: var(--fs-hero-sub);
  color: var(--ash);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.hero__featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

.hero-mascot {
  position: relative;
  cursor: grab;
  user-select: none;
}

.hero-mascot:active {
  cursor: grabbing;
}

.hero-mascot.dragging {
  animation: none !important;
}

.hero-mascot__glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 126, 200, 0.3), transparent 70%);
  animation: mascotGlow 3s ease-in-out infinite alternate;
}

@keyframes mascotGlow {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.hero-mascot svg {
  animation: mascotFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  25% { transform: translateY(-15px) rotateY(5deg); }
  50% { transform: translateY(-8px) rotateY(0deg); }
  75% { transform: translateY(-20px) rotateY(-5deg); }
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ash);
}

.hero__scroll-text {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--tangerine), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

.pixel-transition {
  height: 48px;
  overflow: hidden;
  background: var(--white);
}

.pixel-transition__svg {
  width: 100%;
  height: 100%;
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 2px;
  background: var(--lavender);
  border-radius: 1px;
  transition: transform 0.6s var(--ease);
}

.section.in-view::before {
  transform: translateX(-50%) scaleX(1);
}

.section--dark {
  background: var(--gradient-dark-fade);
  color: var(--ink);
}

.section--alt {
  background: var(--tint);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-family: var(--ff-display);
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.section--dark .section__title {
  color: var(--white);
}

.section__desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.games {
  overflow: visible;
  padding-bottom: var(--space-lg);
}

.games__scroll-wrap {
  position: relative;
  margin-top: var(--space-lg);
}

.games__scroll {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-bottom: var(--space-sm);
}

.games__scroll::-webkit-scrollbar {
  display: none;
}

.games__scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.game-card {
  flex: 0 0 clamp(320px, 40vw, 440px);
  scroll-snap-align: center;
}

.game-card__inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
  transform-style: preserve-3d;
  perspective: 800px;
  position: relative;
}

.game-card__inner:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lift);
}

.game-card__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--dur);
  z-index: 2;
  pointer-events: none;
}

.game-card__inner:hover::before {
  opacity: 1;
}

.game-card__art {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
}

.game-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.game-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-card);
  font-weight: 700;
}

.game-card__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.5;
}

.games__scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
  color: var(--ash);
  font-size: var(--fs-xs);
  opacity: 0.6;
}

.games__scroll-arrow {
  font-size: 14px;
}

.game-detail {
  padding: var(--space-2xl) 0;
}

.game-detail--alt {
  background: var(--tint);
}

.game-detail__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.game-detail__art {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.game-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.game-detail__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

.game-detail__logline {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 400px;
}

.game-detail__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.game-detail__section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-card);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  padding-left: 20px;
  position: relative;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
}

.game-detail--alt .feature-list li::before {
  background: var(--tangerine);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.media-placeholder {
  border-radius: var(--radius-md);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.media-placeholder--wide {
  grid-column: 1 / -1;
  height: 180px;
}

.game-detail__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.about {
  background: var(--gradient-dark-fade);
  color: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__subtitle {
  font-size: var(--fs-body);
  color: rgba(250, 248, 244, 0.75);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: rgba(250, 248, 244, 0.9);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.about__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--tangerine);
}

.stat__label {
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__card {
  background: rgba(158, 126, 200, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  backdrop-filter: blur(10px);
}

.about__mascot {
  animation: mascotFloat 4s ease-in-out infinite;
}

.about__card-text {
  font-family: var(--ff-display);
  font-size: var(--fs-body);
  color: rgba(250, 248, 244, 0.75);
  text-align: center;
}

.devlog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.devlog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.devlog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.devlog-card:nth-child(2) {
  transform: translateY(20px);
}

.devlog-card:nth-child(2):hover {
  transform: translateY(16px);
}

.devlog-card__date {
  font-size: var(--fs-xs);
  color: var(--tangerine);
  font-weight: 600;
}

.devlog-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-card);
  font-weight: 600;
}

.devlog-card__excerpt {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.devlog-card__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--tangerine);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow {
  transition: transform var(--dur) var(--ease);
}

.devlog-card__link:hover .link-arrow {
  transform: translateX(4px);
}

.press {
  background: var(--tint);
}

.press__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.press__panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.press__panel--dark {
  background: var(--midnight);
  color: var(--white);
}

.press__panel-title {
  font-family: var(--ff-display);
  font-size: var(--fs-card);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.press__boilerplate {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.press__panel--dark .press__boilerplate {
  color: rgba(250, 248, 244, 0.6);
}

.press__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.press__contact-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.press__contact-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ash);
  min-width: 60px;
}

.press__contact-link {
  font-size: var(--fs-small);
  color: var(--tangerine);
  transition: opacity var(--dur);
}

.press__contact-link:hover {
  opacity: 0.8;
}

.press__assets {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.press-asset {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid rgba(250, 248, 244, 0.1);
  transition: all var(--dur) var(--ease);
}

.press-asset:hover {
  border-color: var(--tangerine);
  background: rgba(224, 123, 69, 0.05);
}

.press-asset__icon {
  color: var(--lavender);
  flex-shrink: 0;
}

.press-asset__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.press-asset__name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--white);
}

.press-asset__meta {
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.4);
}

.press-asset__arrow {
  color: rgba(250, 248, 244, 0.3);
  transition: all var(--dur) var(--ease);
  font-size: 14px;
}

.press-asset:hover .press-asset__arrow {
  color: var(--tangerine);
  transform: translateX(4px);
}

.newsletter {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.newsletter__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--tangerine) 0%,
    var(--lavender) 35%,
    var(--indigo) 65%,
    var(--sage) 100%);
  animation: meshShift 8s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg); }
}

.newsletter__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.newsletter__title {
  font-family: var(--ff-display);
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.newsletter__desc {
  font-size: var(--fs-body);
  color: rgba(250, 248, 244, 0.8);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter__input-wrap {
  flex: 1;
}

.newsletter__input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(250, 248, 244, 0.3);
  background: rgba(250, 248, 244, 0.1);
  color: var(--white);
  font-size: var(--fs-small);
  backdrop-filter: blur(10px);
  transition: all var(--dur) var(--ease);
}

.newsletter__input::placeholder {
  color: rgba(250, 248, 244, 0.5);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 20px rgba(250, 248, 244, 0.15);
}

.newsletter .btn--primary {
  background: var(--white);
  color: var(--tangerine);
}

.newsletter .btn--primary:hover {
  background: var(--ink);
  color: var(--white);
}

.terminal,
.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 20, 40, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  color: var(--tangerine);
  gap: var(--space-md);
}

.terminal {
  display: none;
}

.terminal.active {
  display: flex;
}

.terminal__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(224, 123, 69, 0.2);
}

.terminal__title {
  font-size: var(--fs-xs);
  opacity: 0.6;
}

.terminal__close {
  color: var(--tangerine);
  font-size: 18px;
  cursor: pointer;
}

.terminal__body {
  padding: var(--space-xl) var(--space-md);
  font-size: var(--fs-small);
  line-height: 1.8;
}

.terminal__line {
  opacity: 0;
  animation: terminalFadeIn 0.3s var(--ease) forwards;
}

.terminal__line:nth-child(2) { animation-delay: 0.5s; }
.terminal__line:nth-child(3) { animation-delay: 1s; }

@keyframes terminalFadeIn {
  to { opacity: 1; }
}

.terminal__cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.easter-egg {
  gap: var(--space-lg);
  text-align: center;
}

.easter-egg__text {
  font-size: 14px;
  line-height: 2;
  color: var(--tangerine);
  max-width: 500px;
}

.easter-egg__close {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  color: rgba(224, 123, 69, 0.5);
  cursor: pointer;
  transition: color var(--dur);
  background: none;
  border: none;
}

.easter-egg__close:hover {
  color: var(--tangerine);
}

.footer__cta {
  background: var(--gradient-dark);
  padding: var(--space-2xl) 0;
}

.footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer__cta-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer__cta-desc {
  font-size: var(--fs-body);
  color: rgba(250, 248, 244, 0.6);
}

.footer__cta-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.footer__main {
  background: var(--gradient-dark);
  border-top: 1px solid rgba(250, 248, 244, 0.06);
  padding: var(--space-xl) 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__wordmark {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer__tagline {
  font-size: var(--fs-small);
  color: rgba(250, 248, 244, 0.4);
}

.footer__clock {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__clock-time {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-small);
  color: var(--tangerine);
  letter-spacing: 0.05em;
}

.footer__clock-label {
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.3);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  color: rgba(250, 248, 244, 0.4);
  transition: color var(--dur);
}

.footer__social a:hover {
  color: var(--tangerine);
}

.footer__col-title {
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__list a {
  font-size: var(--fs-small);
  color: rgba(250, 248, 244, 0.4);
  transition: color var(--dur);
}

.footer__list a:hover {
  color: var(--white);
}

.footer__bottom {
  background: var(--gradient-dark);
  border-top: 1px solid rgba(250, 248, 244, 0.06);
  padding: var(--space-md) 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.3);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer__bottom-links a {
  color: rgba(250, 248, 244, 0.3);
  transition: color var(--dur);
}

.footer__bottom-links a:hover {
  color: var(--white);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .preloader {
    display: none;
  }

  .hero-mascot svg,
  .about__mascot {
    animation: none;
  }

  .hero__blob {
    animation: none;
  }

  .particle {
    display: none;
  }

  .cursor-glow,
  .cursor-dot,
  .cursor-trail {
    display: none;
  }

  .games__scroll {
    overflow-x: auto;
  }
}

@media (max-width: 960px) {
  .progress {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__featured {
    order: -1;
  }

  .hero-mascot svg {
    width: 140px;
    height: 140px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__stats {
    justify-content: center;
  }

  .game-detail__hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .game-detail__art {
    margin: 0 auto;
  }

  .game-detail__content {
    grid-template-columns: 1fr;
  }

  .newsletter__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur) var(--ease);
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__toggle {
    display: flex;
  }

  .games__scroll {
    scroll-snap-type: none;
  }

  .game-card {
    flex: 0 0 calc(100vw - 48px);
  }

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

  .devlog-card:nth-child(2) {
    transform: none;
  }

  .devlog-card:nth-child(2):hover {
    transform: translateY(-4px);
  }

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

  .newsletter__form {
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ==========================================================
   PREMIUM WORLD-CLASS COZY ENHANCEMENTS
   ========================================================== */

/* About Accent Title */
.about .section__title {
  color: var(--white);
}
.about__title-accent {
  background: linear-gradient(135deg, var(--tangerine), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 700;
}

/* Audio Toggle Button in Nav */
.nav__audio-toggle {
  margin-left: var(--space-md);
}
.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.sound-btn:hover {
  background: var(--tint);
  border-color: var(--lavender);
}
.sound-btn--active {
  background: var(--lavender);
  color: var(--white);
  border-color: var(--lavender);
  box-shadow: 0 0 10px rgba(158, 126, 200, 0.3);
}

/* Holographic Shine Overlay */
.game-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(158, 126, 200, 0.1) 50%,
    rgba(224, 123, 69, 0.05) 60%,
    transparent 80%
  );
  background-size: 200% 200%;
  background-position: var(--shine-x, 0%) var(--shine-y, 0%);
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
}
.game-card__inner:hover .game-card__shine {
  opacity: 1;
}

/* Tea Mood Widget */
.tea-widget {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(250, 248, 244, 0.05);
  border: 1px solid rgba(250, 248, 244, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.tea-widget__title {
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.6);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}
.tea-widget__options {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.tea-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(250, 248, 244, 0.1);
  border: 1.5px solid rgba(250, 248, 244, 0.15);
  color: rgba(250, 248, 244, 0.85);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.tea-btn:hover {
  background: rgba(250, 248, 244, 0.2);
  border-color: var(--white);
}
.tea-btn.active {
  background: var(--white);
  color: var(--midnight);
  border-color: var(--white);
}
.tea-widget__status {
  font-size: var(--fs-xs);
  color: rgba(250, 248, 244, 0.5);
  margin-top: var(--space-xs);
  font-style: italic;
}

/* Glassmorphic Modal Detail Drawer */
.modal-drawer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.modal-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(30, 20, 40, 0.55);
}
.modal-drawer__content {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}
.modal-drawer.open .modal-drawer__content {
  transform: translateX(0);
}
.modal-drawer__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all var(--dur);
}
.modal-drawer__close:hover {
  background: var(--tangerine);
  color: var(--white);
}

/* Day-Night Themes */
body[data-theme="sunrise"] {
  --bg: #FDF9F6;
  --bg-alt: #FCEBE6;
  --border: #F7DCD3;
  --text: #4A2820;
}
body[data-theme="sunset"] {
  --bg: #F6F1FB;
  --bg-alt: #EBE1F0;
  --border: #CDBED4;
  --text: #331C42;
}
body[data-theme="midnight"] {
  --bg: #1A1423;
  --bg-alt: #2D243A;
  --border: #4D3D5D;
  --text: #FAF8F4;
}

/* Costume Styles on Mascot */
.hero-mascot {
  position: relative;
  cursor: grab;
  user-select: none;
}
.costume {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.hero-mascot[data-costume="holdout"] .costume--holdout,
.hero-mascot[data-costume="tbodt"] .costume--tbodt,
.hero-mascot[data-costume="inherited"] .costume--inherited {
  opacity: 1 !important;
  visibility: visible !important;
}
.costume-selector {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--space-md);
  width: max-content;
}
.costume-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(250, 248, 244, 0.1);
  border: 1px solid rgba(250, 248, 244, 0.2);
  color: var(--white);
  font-size: var(--fs-xs);
  transition: all var(--dur);
}
.costume-btn:hover {
  background: rgba(250, 248, 244, 0.25);
  border-color: var(--white);
}
.costume-btn.active {
  background: var(--tangerine);
  color: var(--white);
  border-color: var(--tangerine);
}

/* Lint Trap Mini Game */
.lint-trap-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1.5px dashed rgba(250, 248, 244, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  min-height: 160px;
  background: rgba(30, 20, 40, 0.25);
}
.lint-trap-basket {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  transition: transform 0.2s var(--ease-spring);
  z-index: 2;
}
.lint-trap-basket.pulse {
  transform: scale(1.15);
  background: var(--sage);
}
.lint-spawn-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 160px;
  pointer-events: none;
  z-index: 10;
}
.lint-ball {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform 0.1s;
  z-index: 999 !important;
  display: block !important;
}
.lint-ball:active {
  cursor: grabbing;
  transform: scale(1.2);
}
.lint-ball.dragging {
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
  .nav__audio-toggle {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
}
