@font-face { font-family: "Fredoka"; src: url("assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #1d1b33;
  --ink-soft: #4a4766;
  --cream: #fff7ea;
  --paper: #fdf3e4;
  --sun: #ffb35c;
  --coral: #ff7f6a;
  --rose: #f28fae;
  --sky: #7cc4f2;
  --jade: #a8f0cc;
  --dc-deep: #160f33;
  --dc-mid: #2b1e5c;
  --dc-violet: #7e6be0;
  --dc-teal: #2bb8a8;
  --dc-lime: #98d639;
  --ww-deep: #121c16;
  --ww-mid: #233528;
  --radius: 28px;
  --shadow: 0 30px 60px -20px rgba(29, 27, 51, .35);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1100px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 18px; border-radius: 999px;
  background: rgba(255, 247, 234, .28);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: #fff; transition: background .35s, color .35s, box-shadow .35s;
}
.nav.solid { background: rgba(255, 247, 234, .86); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(29,27,51,.3); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; }
.links { display: flex; gap: 4px; }
.links a { text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 999px; transition: background .2s; }
.links a:hover { background: rgba(255,255,255,.35); }
.nav.solid .links a:hover { background: rgba(29,27,51,.07); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: #fff; isolation: isolate; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { text-align: center; padding: 120px 20px 90px; max-width: 900px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .28em; font-size: .82rem; font-weight: 600; margin: 0 0 14px; opacity: .95; }
.eyebrow.dark { color: var(--coral); }
.hero-title { font-family: var(--display); font-weight: 650; font-size: clamp(3.3rem, 12vw, 9.5rem); line-height: .9; margin: 0; letter-spacing: -.01em; text-shadow: 0 10px 40px rgba(120, 50, 40, .25); }
.hero-title .word { display: block; }
.hero-title .ch { display: inline-block; animation: sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.22s); transform-origin: 50% 90%; }
.hero-title .word:last-child .ch { background: linear-gradient(180deg, #fff 30%, #ffe2b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sway { 0%,100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-6px) rotate(-2deg); } 75% { transform: translateY(3px) rotate(1.5deg); } }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 620px; margin: 22px auto 34px; font-weight: 600; text-shadow: 0 2px 16px rgba(120, 50, 40, .3); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, #ffcf6e, #ff8a63); color: #3a1d14; box-shadow: 0 14px 30px -10px rgba(255, 120, 80, .7), inset 0 2px 0 rgba(255,255,255,.55); }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.3); }
.btn.big { font-size: clamp(1rem, 2.6vw, 1.3rem); padding: 18px 34px; word-break: break-all; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 30px; height: 48px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 5px; height: 9px; margin-left: -2.5px; border-radius: 3px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- SECTIONS ---------- */
section { position: relative; }
.games, .studio { padding: 110px 20px 40px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2, .contact h2 { font-family: var(--display); font-weight: 650; font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1; margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.wip { display: inline-block; margin: 16px 0 0; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: #9a5a2c; background: #ffe9cf; }

/* ---------- GAME CARDS ---------- */
.game { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; margin-bottom: 56px; box-shadow: var(--shadow); isolation: isolate; }
.game-copy { position: relative; z-index: 3; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px; background: var(--dc-lime); color: #1c2a07; display: inline-flex; align-items: center; gap: 8px; }
.badge.jade { background: var(--jade); color: #0f2d1f; }
.badge.soft { background: rgba(255,255,255,.12); color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.2); }
.badge.pulse::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.game-pitch { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 520px; margin: 18px 0 22px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { font-weight: 800; font-size: .9rem; padding: 7px 14px; border-radius: 12px; background: rgba(126, 107, 224, .22); color: #d9d2ff; border: 1px solid rgba(160, 145, 255, .35); }
.chips.jade li { background: rgba(168, 240, 204, .1); color: var(--jade); border-color: rgba(168, 240, 204, .3); }

/* Dreadcube */
.game-dc {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px 40px; align-items: center;
  padding: clamp(28px, 5vw, 60px);
  background: radial-gradient(120% 90% at 85% 15%, #4b3596 0%, var(--dc-mid) 45%, var(--dc-deep) 100%);
  color: #fff;
}
.dc-stars { position: absolute; inset: 0; z-index: -1; background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 68%, #cfc6ff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 44%, #b8f3ea 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 90% 78%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 88%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 82%, #cfc6ff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 58%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate; opacity: .8; }
@keyframes twinkle { to { opacity: .35; } }
.dc-logo { width: min(100%, 520px); filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.dc-stage { position: relative; height: 340px; }
.dc-ground { position: absolute; left: -10%; right: -10%; bottom: 40px; height: 16px; border-radius: 8px; background: linear-gradient(#5a4fb8, #3a2f86); box-shadow: 0 12px 40px rgba(43,184,168,.35), inset 0 2px 0 rgba(255,255,255,.25); }
.cube-runner { position: absolute; bottom: 56px; left: 50%; width: 54px; height: 54px; margin-left: -27px; animation: hop 1.1s cubic-bezier(.3,.0,.4,1) infinite; }
.cube { width: 100%; height: 100%; border-radius: 9px; background: linear-gradient(135deg, #b7ef5c, var(--dc-lime) 55%, #6fb02a); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 0 30px rgba(152,214,57,.55); animation: flip 1.1s cubic-bezier(.45,0,.3,1) infinite; }
.cube-shadow { position: absolute; left: 6px; right: 6px; bottom: -14px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.35); animation: shadow 1.1s cubic-bezier(.3,.0,.4,1) infinite; }
@keyframes hop { 0%,100% { transform: translateY(0) scale(1.12, .88); } 12% { transform: translateY(-8px) scale(.92, 1.1); } 50% { transform: translateY(-120px) scale(1); } 88% { transform: translateY(-6px) scale(.95, 1.06); } }
@keyframes flip { 0%,12% { transform: rotate(0); } 88%,100% { transform: rotate(180deg); } }
@keyframes shadow { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: translateY(120px) scale(.45); opacity: .3; } }

.foe { position: absolute; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); animation: bob 4s ease-in-out infinite; }
.f1 { width: 92px; left: 2%; bottom: 52px; animation-delay: -.6s; }
.f2 { width: 92px; right: 4%; top: 6px; animation: buzz 3.2s ease-in-out infinite; }
.f3 { width: 54px; right: 12%; bottom: 54px; animation-delay: -1.4s; }
.f4 { width: 46px; left: 18%; top: 34px; animation-duration: 3.4s; }
.f5 { width: 58px; left: 26%; bottom: 54px; animation-delay: -2.2s; }
.f6 { width: 140px; left: 32%; top: -6px; opacity: .9; animation: spinfoe 5s linear infinite; }
.f7 { width: 62px; right: 30%; top: 40px; animation-delay: -.9s; }
.f8 { width: 58px; right: 26%; bottom: 56px; animation: squish 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
.f9 { width: 44px; left: 0; top: 120px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes buzz { 0%,100% { transform: translate(0,0) rotate(-4deg); } 25% { transform: translate(-14px,10px) rotate(3deg); } 50% { transform: translate(-4px,-8px) rotate(-6deg); } 75% { transform: translate(10px,6px) rotate(2deg); } }
@keyframes spinfoe { 0% { transform: translateX(-30px); } 50% { transform: translateX(30px); } 100% { transform: translateX(-30px); } }
@keyframes squish { 50% { transform: scale(1.12, .86); } }

.dc-shots { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.shot { margin: 0; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.15); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 70%; transition: transform .6s; }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--display); font-weight: 600; font-size: .9rem; padding: 5px 12px; border-radius: 999px; background: rgba(22,15,51,.7); backdrop-filter: blur(6px); }
.tilt-l { transform: rotate(-1.6deg); } .tilt-r { transform: rotate(1.6deg); }
.shot:hover { transform: rotate(0) translateY(-6px) scale(1.02); }
.shot:hover img { transform: scale(1.06); }

/* Wildwhirl */
.game-ww {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 60px);
  background: radial-gradient(110% 100% at 10% 0%, #34503a 0%, var(--ww-mid) 40%, var(--ww-deep) 100%);
  color: #fff;
}
.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ww-gallery { position: relative; z-index: 2; }
.ww-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -18px rgba(0,0,0,.7), 0 0 0 2px rgba(168,240,204,.18); }
.ww-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 6s ease-out; }
.ww-slide.is-on { opacity: 1; transform: scale(1); }
.ww-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%,100% { background-position: -40% 0; } }
.ww-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.ww-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(168,240,204,.3); cursor: pointer; transition: width .3s, background .3s; }
.ww-dots button[aria-selected="true"] { width: 30px; background: var(--jade); }

.ww-title { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7vw, 4.8rem); line-height: 1; margin: 0; display: inline-flex; padding: 0 6px; }
.ww-title span { display: inline-block; background: linear-gradient(180deg, #fffbe9 20%, #ffdca0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #6b4a2a) drop-shadow(0 10px 24px rgba(0,0,0,.4)); animation: sway 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); }
.ww-title::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -10px; height: 12px; border-radius: 50%; border-bottom: 3px solid rgba(168, 240, 204, .55); }
.leaf { position: absolute; width: 34px; animation: rustle 3s ease-in-out infinite; transform-origin: 0 100%; }
.l1 { left: 30%; top: -18px; } .l2 { right: -14px; top: -14px; transform: scaleX(-1); animation-delay: -1.3s; }
@keyframes rustle { 50% { rotate: -14deg; } }

/* ---------- STUDIO ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 20px 40px -24px rgba(29,27,51,.35); transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.pillar:hover { transform: translateY(-8px) rotate(-.6deg); }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 14px 0 8px; }
.pillar p { margin: 0; color: var(--ink-soft); }
.p-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(135deg, #ffe3b0, #ffc2b0); }
.pillar:nth-child(2) .p-icon { background: linear-gradient(135deg, #d9d2ff, #b8f3ea); }
.pillar:nth-child(3) .p-icon { background: linear-gradient(135deg, #c8f5dc, #fff0b0); }

/* ---------- CONTACT ---------- */
.contact { padding: 90px 20px 120px; }
.contact-card { position: relative; max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(40px, 7vw, 70px) 24px; border-radius: 40px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #7cc4f2 0%, #f6b8a0 55%, #ff9d6e 100%); box-shadow: var(--shadow); }
.contact-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -70px; top: -90px; background: radial-gradient(circle, #ffe9a8 0%, #ffc56e 55%, transparent 70%); opacity: .9; }
.contact-card > * { position: relative; }
.contact-card p { font-size: 1.15rem; font-weight: 700; margin: 0 0 28px; }
.copy { display: block; margin: 16px auto 0; background: none; border: 0; color: #fff; font: 700 .95rem var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: .9; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 28px 20px; }
.foot-row { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .95rem; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { text-decoration: none; font-weight: 700; } .foot-links a:hover { color: #fff; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .game-dc, .game-ww { grid-template-columns: 1fr; }
  .game-ww .game-copy { order: -1; }
  .dc-stage { height: 280px; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .links a { padding: 8px 11px; }
  .dc-shots { grid-template-columns: 1fr; }
  .f6 { width: 100px; } .f1 { width: 70px; } .f2 { width: 70px; }
  .game { border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- PRIVACY PAGE ---------- */
.doc-hero { background: linear-gradient(160deg, #7cc4f2, #f6b8a0 60%, #ff9d6e); color: #fff; padding: 130px 20px 70px; text-align: center; }
.doc-hero h1 { font-family: var(--display); font-weight: 650; font-size: clamp(2.4rem, 7vw, 4rem); margin: 0; line-height: 1; }
.doc-hero p { margin: 12px 0 0; font-weight: 700; }
.doc { max-width: 760px; margin: -40px auto 80px; background: #fff; border-radius: 30px; padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow); position: relative; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 34px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); }
.doc a { color: #d9583f; font-weight: 700; }
