/* ============== D0C STUDIO V4 — bold playful indie game studio ============== */

:root {
  --ink:        #0F172A;
  --paper:      #FFF8E7;
  --paper-2:    #FFE9B0;
  --red:        #FF5757;
  --orange:     #FF8A3D;
  --yellow:     #FFD93D;
  --yellow-cream:#FFE066;
  --pink:       #FF80B5;
  --magenta:    #E91E63;
  --purple:     #7C3AED;
  --blue:       #1E3A8A;
  --mint:       #06D6A0;
  --shadow:     6px 6px 0 var(--ink);
  --shadow-sm:  3px 3px 0 var(--ink);
  --shadow-lg:  10px 10px 0 var(--ink);
  --rad:        18px;
  --rad-lg:     28px;
  --rad-xl:     40px;

  --font-display: 'Bagel Fat One', 'Bowlby One', system-ui, sans-serif;
  --font-display-2: 'Bowlby One', 'Bagel Fat One', system-ui, sans-serif;
  --font-cute:  'Fredoka', system-ui, sans-serif;
  --font-body:  'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,128,181,.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(6,214,160,.20), transparent 45%),
    radial-gradient(circle at 95% 20%, rgba(255,217,61,.30), transparent 35%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: .5px;
}
.nav-logo-svg { width: 42px; height: 42px; transition: transform .3s; }
.nav-logo:hover .nav-logo-svg { transform: rotate(-12deg) scale(1.08); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .2s;
  font-family: var(--font-cute);
  font-size: 16px;
}
.nav-links a:hover {
  background: var(--ink);
  color: var(--yellow);
  transform: rotate(-2deg);
}

.lang-switch {
  display: flex;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--yellow);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 60px 32px 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--yellow);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-cute);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}
.kicker .dot {
  width: 10px; height: 10px;
  background: var(--mint);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .65; }
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 196px);
  line-height: .88;
  letter-spacing: -2px;
  margin: 0 0 28px;
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--red), 12px 12px 0 var(--yellow);
}
.w-line { display: block; }
.w-letter {
  display: inline-block;
  animation: letter-pop .6s var(--d, 0s) cubic-bezier(.2,1.6,.4,1) backwards;
}
.w-letter-zero {
  color: var(--red);
  text-shadow: 6px 6px 0 var(--ink), 12px 12px 0 var(--yellow);
  animation: letter-pop .6s var(--d, 0s) cubic-bezier(.2,1.6,.4,1) backwards, spin-zero 8s linear infinite 1s;
  transform-origin: 50% 50%;
}
@keyframes letter-pop {
  0% { transform: translateY(40px) scale(.4) rotate(-15deg); opacity: 0; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}
@keyframes spin-zero {
  0%, 92%, 100% { transform: rotate(0); }
  95% { transform: rotate(360deg); }
}

.tagline {
  font-family: var(--font-cute);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  max-width: 560px;
  margin: 0 0 32px;
  line-height: 1.35;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 20px;
  text-decoration: none;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .5px;
}
.btn:hover {
  transform: translate(-3px, -3px) rotate(-1.5deg);
  box-shadow: 9px 9px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-big { font-size: 22px; padding: 18px 32px; }
.btn-blue { background: var(--mint); }
.btn-ghost {
  background: transparent;
  box-shadow: var(--shadow-sm);
}
.btn-mega {
  font-size: clamp(20px, 3.2vw, 38px);
  padding: 26px 44px;
  background: var(--red);
  color: var(--paper);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-lg);
}
.btn-mega:hover {
  transform: translate(-4px, -4px) rotate(-2deg);
  box-shadow: 14px 14px 0 var(--ink);
}
.btn-arr {
  display: inline-block;
  transition: transform .25s;
}
.btn:hover .btn-arr { transform: translateX(6px) rotate(-12deg); }

/* ============== FLOATING STICKERS ============== */
.sticker {
  position: absolute;
  width: clamp(60px, 7vw, 110px);
  height: auto;
  z-index: 1;
  transform: rotate(var(--rot));
  animation: float 5s ease-in-out infinite;
}
.sticker svg { width: 100%; height: auto; filter: drop-shadow(4px 4px 0 rgba(15,23,42,.20)); }
.sticker.s1 { top: 8%;  left: 4%;  animation-delay: 0s; }
.sticker.s2 { top: 18%; right: 38%; animation-delay: .8s; }
.sticker.s3 { top: 65%; left: 8%;  animation-delay: 1.6s; }
.sticker.s4 { top: 6%;  right: 6%; animation-delay: .4s; }
.sticker.s5 { bottom: 8%; right: 10%; animation-delay: 1.2s; }
.sticker.s6 { top: 50%; left: 46%; animation-delay: 2s; opacity: .85;}

@keyframes float {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(calc(var(--rot) + 6deg)) translateY(-14px); }
}

/* ============== MASCOT ============== */
.mascot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-bg-blob {
  position: absolute;
  inset: -10% -10% -5% -10%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 65%);
  filter: blur(8px);
  z-index: 0;
}
.mascot {
  width: 100%;
  max-width: 420px;
  height: auto;
  position: relative;
  z-index: 1;
  animation: mascot-bob 4s ease-in-out infinite;
  filter: drop-shadow(8px 8px 0 rgba(15,23,42,.18));
}
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
.m-head {
  transform-origin: 160px 90px;
  animation: head-tilt 6s ease-in-out infinite;
}
@keyframes head-tilt {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.m-eye, .m-pupil {
  transform-origin: 160px 90px;
  animation: blink 5s infinite;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(.1); }
}
.m-arm-r {
  transform-origin: 255px 170px;
  animation: wave 2.4s ease-in-out infinite;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(12deg); }
}
.m-sparkle {
  animation: sparkle-twinkle 2s ease-in-out infinite;
  transform-origin: center;
}
.m-sparkle.s-b { animation-delay: .6s; }
.m-sparkle.s-c { animation-delay: 1.2s; }
@keyframes sparkle-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.4) rotate(180deg); opacity: .3; }
}

/* ============== MARQUEE ============== */
.marquee {
  background: var(--ink);
  color: var(--yellow);
  padding: 18px 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
}
.marquee-track span:nth-child(odd) { color: var(--yellow); }
.marquee-track span:nth-child(even) { color: var(--pink); }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============== GAMES SECTION ============== */
.games {
  padding: 100px 32px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.games-head {
  text-align: center;
  margin-bottom: 60px;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transform: rotate(-2deg);
}
.badge-pink { background: var(--pink); }
.badge-yellow { background: var(--yellow); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 18px;
  line-height: 1;
  letter-spacing: -1px;
}
.section-sub {
  font-family: var(--font-cute);
  font-size: 20px;
  max-width: 540px;
  margin: 0 auto;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--paper-2);
  border: 4px solid var(--ink);
  border-radius: var(--rad-xl);
  box-shadow: var(--shadow-lg);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.game-card-art {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .55;
  z-index: 0;
}
.b-pink   { width: 280px; height: 280px; background: var(--pink);   top: 10%; left: -10%; }
.b-blue   { width: 240px; height: 240px; background: var(--mint);   bottom: 5%; right: -5%; }
.b-yellow { width: 200px; height: 200px; background: var(--yellow); top: 40%; right: 30%; }

.phone {
  position: relative;
  width: 260px;
  height: 520px;
  background: var(--ink);
  border-radius: 38px;
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
  z-index: 2;
  animation: phone-tilt 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes phone-tilt {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 3;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-sticker {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(4px 4px 0 rgba(15,23,42,.25));
  animation: float 4s ease-in-out infinite;
}
.art-sticker.as1 { top: 12%; right: 5%; width: 130px; transform: rotate(8deg); animation-delay: .3s; }
.art-sticker.as2 { bottom: 18%; left: 5%; width: 70px; transform: rotate(-12deg); animation-delay: 1s; }
.art-sticker.as3 { bottom: -3%; right: 8%; width: 110px; transform: rotate(-5deg); animation-delay: 1.7s; }

.game-card-info {
  position: relative;
  z-index: 1;
}
.game-name {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 96px);
  margin: 0 0 12px;
  line-height: .95;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  letter-spacing: -1px;
}
.game-tag {
  font-family: var(--font-cute);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 24px;
}
.game-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}
.game-bullets li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-cute);
  font-size: 17px;
  font-weight: 500;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.game-bullets li:hover { transform: translateX(6px) rotate(-1deg); }
.b-emoji { font-size: 22px; }

.coming-soon {
  margin-top: 80px;
  text-align: center;
  border: 4px solid var(--ink);
  background: var(--purple);
  color: var(--paper);
  padding: 32px;
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  overflow: hidden;
}
.cs-tape {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: 1.5px;
  white-space: nowrap;
  animation: marquee-scroll 18s linear infinite;
}

/* ============== ABOUT ============== */
.about {
  padding: 80px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-family: var(--font-cute);
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 560px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tag {
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  transition: transform .25s;
}
.tag:hover { transform: translateY(-3px) rotate(-3deg); }
.tag.t1 { background: var(--yellow); }
.tag.t2 { background: var(--mint); }
.tag.t3 { background: var(--pink); }
.tag.t4 { background: var(--orange); color: var(--paper); }
.tag.t5 { background: var(--purple); color: var(--paper); }

.buddy-wrap {
  display: flex;
  justify-content: center;
}
.buddy {
  width: 100%;
  max-width: 320px;
  animation: mascot-bob 5s ease-in-out infinite reverse;
  filter: drop-shadow(6px 6px 0 rgba(15,23,42,.18));
}
.b-pupil-l, .b-pupil-r {
  animation: googly 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes googly {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5px, -3px); }
  50% { transform: translate(4px, 2px); }
  75% { transform: translate(-3px, 4px); }
}
.b-sp {
  animation: sparkle-twinkle 2.4s ease-in-out infinite;
  transform-origin: center;
}
.b-sp.s2 { animation-delay: 1s; }

/* ============== STATS ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: var(--ink);
}
.stat {
  padding: 50px 24px;
  text-align: center;
  border-right: 4px solid var(--paper);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.stat:nth-child(1) { background: var(--red); }
.stat:nth-child(2) { background: var(--yellow); }
.stat:nth-child(3) { background: var(--mint); }
.stat:nth-child(4) { background: var(--pink); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 130px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -2px;
}
.stat:nth-child(2) .stat-num,
.stat:nth-child(3) .stat-num { color: var(--ink); }
.stat-lbl {
  font-family: var(--font-cute);
  font-weight: 600;
  font-size: 15px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat:hover { transform: scale(1.04); }

/* ============== CONTACT BAND ============== */
.contact-band {
  padding: 100px 32px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(15,23,42,.03) 24px 48px),
    var(--paper);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.cb-inner { max-width: 880px; margin: 0 auto; }
.cb-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 76px);
  margin: 0 0 18px;
  line-height: 1;
  letter-spacing: -1px;
}
.cb-sub {
  font-family: var(--font-cute);
  font-size: 20px;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 50px 32px 30px;
}
.foot-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-mark {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--yellow);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a {
  text-decoration: none;
  font-family: var(--font-cute);
  font-weight: 600;
  font-size: 17px;
  color: var(--paper);
  transition: color .2s;
}
.foot-links a:hover { color: var(--yellow); }
.foot-bottom {
  border-top: 2px dashed rgba(255,248,231,.3);
  margin-top: 30px;
  padding-top: 20px;
  font-family: var(--font-cute);
  font-size: 14px;
  color: rgba(255,248,231,.7);
}
.foot-secret { font-style: italic; }

/* ============== KONAMI MODAL ============== */
.konami {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.konami.show { pointer-events: auto; opacity: 1; }
.konami-card {
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px;
  max-width: 460px;
  text-align: center;
  transform: rotate(-2deg) scale(.7);
  transition: transform .35s cubic-bezier(.2,1.6,.4,1);
}
.konami.show .konami-card { transform: rotate(-2deg) scale(1); }
.konami-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0 0 12px;
  line-height: 1;
}
.konami-card p {
  font-family: var(--font-cute);
  font-size: 17px;
  margin: 0 0 22px;
}

/* ============== CONFETTI ============== */
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ============== CURSOR STICKER ============== */
.cursor-sticker {
  position: fixed;
  pointer-events: none;
  width: 36px;
  height: 36px;
  z-index: 200;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  opacity: 0;
  mix-blend-mode: multiply;
}
.cursor-sticker svg { width: 100%; height: 100%; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-sticker { opacity: 1; }
}

/* ============== REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s, transform .7s cubic-bezier(.2,1,.4,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .game-card { grid-template-columns: 1fr; padding: 32px; }
  .game-card-art { height: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 4px solid var(--paper); }
}
@media (max-width: 640px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }
  .hero { padding: 40px 16px 60px; }
  .games, .about, .contact-band { padding-left: 16px; padding-right: 16px; }
  .marquee-track { font-size: 22px; gap: 32px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 4px solid var(--paper); }
  .stat:last-child { border-bottom: 0; }
  .sticker { display: none; }
  .sticker.s1, .sticker.s4 { display: block; width: 60px; }
  .cb-title { font-size: 36px; }
  .btn-mega { font-size: 18px; padding: 18px 24px; }
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
