/* Space Fruit Games — production stylesheet 2026-10-09-1 */
:root {
  --navy: #051c48; --navy-soft: #0d2d68; --purple: #7655ed; --purple-light: #b6a7ff;
  --green: #29c34a; --cream: #f7f8fc; --white: #fff; --muted: #6c7690; --line: rgba(5, 28, 72, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: var(--cream); font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; line-height: 1.5; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
[id] { scroll-margin-top: 100px; }

.site-header { width: 100%; height: 88px; padding-inline: max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 20; background: #fff; box-shadow: 0 5px 22px rgba(5, 28, 72, .07); }
.brand { width: 106px; justify-self: start; }
.brand img { width: 100%; mix-blend-mode: multiply; }
.primary-nav { display: flex; gap: 34px; font-size: 13px; font-weight: 700; }
.primary-nav a, .nav-cta { transition: color .2s ease; }
.primary-nav a:hover, .nav-cta:hover { color: var(--purple); }
.nav-cta { justify-self: end; font-size: 13px; font-weight: 800; }
.nav-cta span { margin-left: 5px; }
.menu-toggle { appearance: none; width: 48px; height: 48px; padding: 0; display: none; place-items: center; position: relative; border: 0; border-radius: 50%; color: white; background: var(--navy); cursor: pointer; }
.menu-toggle span { width: 19px; height: 2px; position: absolute; border-radius: 99px; background: currentColor; transition: transform .35s cubic-bezier(.2,.75,.25,1), opacity .2s ease, width .35s ease; }
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { width: 0; opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }
.menu-backdrop { position: fixed; z-index: 40; inset: 0; visibility: hidden; opacity: 0; background: rgba(3,13,34,.48); backdrop-filter: blur(4px); transition: opacity .3s ease, visibility .3s ease; }
.menu-open .menu-backdrop { visibility: visible; opacity: 1; }

.hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(40px, 6vw, 88px); padding: 52px 0 100px; }
.kicker { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.kicker > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2 { margin: 0; letter-spacing: -.07em; line-height: .9; }
h1 { margin-top: 30px; font-size: clamp(64px, 8vw, 116px); font-weight: 700; }
h1 em { color: var(--purple); font-family: Georgia, serif; font-weight: 400; }
.hero-intro { max-width: 480px; margin: 36px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.hero-actions > p { margin: 0; color: #8b93a8; font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .12em; }
.button { display: inline-flex; align-items: center; gap: 26px; padding: 15px 18px 15px 22px; border-radius: 100px; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(5, 28, 72, .16); }
.button-dark { color: white; background: var(--navy); }

.hero { perspective: 1200px; }
.hero-art { --art-y: 0px; --art-tilt: 0deg; --bg-y: 0px; --light-y: 0%; --ring-y: 0px; --apple-y: 0px; --apple-tilt: 0deg; aspect-ratio: .86; max-height: 620px; position: relative; overflow: hidden; border-radius: 46% 46% 32px 32px; background: linear-gradient(145deg, #dcd5ff 0%, #8064ee 52%, #5d3ed1 100%); box-shadow: 0 32px 70px rgba(78, 56, 170, .2); transform: translate3d(0, var(--art-y), 0) rotateX(var(--art-tilt)); transform-style: preserve-3d; will-change: transform; }
.hero-art::before { content: ""; position: absolute; z-index: 0; inset: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 44% 44% 22px 22px; background: radial-gradient(circle at 45% calc(38% + var(--light-y)), rgba(255,255,255,.48), transparent 5%), linear-gradient(150deg, rgba(255,255,255,.16), rgba(28,9,89,.14)); transform: translate3d(0, var(--bg-y), -30px) scale(1.04); }
.hero-art::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(20, 6, 71, .22)); pointer-events: none; }
.planet-ring { position: absolute; z-index: 2; width: 115%; height: 33%; left: -7%; top: 36%; border: 2px solid rgba(255,255,255,.44); border-radius: 50%; transform: translate3d(0, var(--ring-y), 20px) rotate(-15deg); }
.planet-ring::after { content: ""; position: absolute; inset: 18px -5px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.spark { position: absolute; z-index: 3; color: white; line-height: 1; }
.spark-one { top: 17%; left: 16%; font-size: 30px; }.spark-two { top: 28%; right: 13%; font-size: 13px; }.spark-three { bottom: 33%; left: 12%; color: #c9ff7a; font-size: 17px; }
.apple { position: absolute; z-index: 3; width: 56%; aspect-ratio: 1; left: 23%; top: 21%; transform: translate3d(0, var(--apple-y), 60px) rotate(calc(7deg + var(--apple-tilt))); filter: drop-shadow(0 32px 25px rgba(41, 18, 103, .25)); will-change: transform; }
.fruit { position: absolute; width: 88%; height: 78%; left: 6%; bottom: 0; border-radius: 48% 48% 46% 46% / 40% 40% 58% 58%; background: radial-gradient(circle at 32% 24%, #70f06d 0 4%, #35cb4e 24%, #12a73b 68%, #087b33); transform: rotate(-2deg); }
.fruit::after { content: ""; position: absolute; width: 18%; height: 12%; left: 41%; top: -3%; border-radius: 50%; background: #159939; }
.stem { position: absolute; z-index: 2; width: 6%; height: 24%; left: 51%; top: -1%; border-radius: 99px; background: #092652; transform: rotate(8deg); transform-origin: bottom; }
.leaf { position: absolute; z-index: 3; width: 38%; height: 21%; left: 52%; top: 2%; border-radius: 100% 0 100% 0; background: linear-gradient(140deg, #c8ff5d, #25bd42 70%); transform: rotate(-15deg); }
.shine { position: absolute; z-index: 4; width: 9%; height: 21%; left: 23%; top: 37%; border: 7px solid rgba(255,255,255,.8); border-width: 0 0 0 7px; border-radius: 50%; transform: rotate(18deg); }
.floating-note { position: absolute; z-index: 4; right: 0; bottom: 0; width: 54%; padding: 22px 26px; display: flex; gap: 22px; align-items: start; color: white; border-top: 1px solid rgba(255,255,255,.3); border-left: 1px solid rgba(255,255,255,.3); border-radius: 24px 0 0 0; background: rgba(54, 31, 147, .42); backdrop-filter: blur(14px); }
.floating-note span { font-size: 10px; color: #d9d1ff; }.floating-note strong { font-size: 13px; line-height: 1.35; }

.marquee { overflow: hidden; padding: 22px 0; color: white; background: var(--navy); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 34px; animation: scroll 26s linear infinite; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.marquee-track i { color: var(--green); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

.game-section { padding: 150px 0 80px; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 28px; }.section-number { margin: 0; color: #969eb1; font-size: 11px; letter-spacing: .15em; }
.game-card { min-height: 660px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 30px; color: white; background: var(--navy); }
.game-copy { padding: clamp(38px, 6vw, 78px); display: flex; flex-direction: column; align-items: flex-start; }
.status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 100px; color: #cbd6ec; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #58dc70; box-shadow: 0 0 0 4px rgba(88,220,112,.12); }
.game-copy h2 { margin-top: auto; font-size: clamp(72px, 9vw, 126px); color: white; }
.game-copy p { max-width: 370px; margin: 30px 0; color: #aebbd5; font-size: 17px; }
.game-copy > a { padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 13px; font-weight: 800; }.game-copy > a span { margin-left: 8px; }
.game-visual { margin: 16px; position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(#7558df 0%, #a697f3 50%, #eeebff 100%); }
.game-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 32%, transparent 0 28%, rgba(70,42,155,.12) 80%); }
.sun { position: absolute; z-index: 1; width: 220px; aspect-ratio: 1; top: 13%; left: 50%; border-radius: 50%; background: #d9ff78; transform: translateX(-50%); box-shadow: 0 0 70px rgba(220,255,123,.4); }
.island { position: absolute; z-index: 3; left: 50%; border-radius: 50% 45% 48% 52%; transform: translateX(-50%); }
.island-back { width: 75%; height: 25%; bottom: 25%; background: #8de05a; box-shadow: inset 0 -20px 0 #46ac52; }
.island-front { width: 98%; height: 27%; bottom: -7%; background: #41b952; box-shadow: inset 0 -50px 0 #0f7c46; }
.mini-apple { position: absolute; z-index: 4; left: 50%; top: 36%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 110px; filter: drop-shadow(0 18px 14px rgba(42,20,90,.25)); }
.cloud { position: absolute; z-index: 2; width: 90px; height: 28px; border-radius: 100px; background: rgba(255,255,255,.65); }.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }.cloud::before { width: 44px; height: 44px; left: 13px; }.cloud::after { width: 32px; height: 32px; right: 10px; }
.cloud-one { top: 18%; left: 8%; }.cloud-two { top: 28%; right: 7%; transform: scale(.7); }
.game-visual p { position: absolute; z-index: 4; right: 22px; bottom: 17px; margin: 0; text-align: right; color: rgba(255,255,255,.75); font-size: 9px; font-weight: 800; letter-spacing: .17em; }

.studio { padding: 120px 0 150px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: end; }
.studio-title h2 { margin-top: 28px; font-size: clamp(52px, 6vw, 84px); }
.studio-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.studio-card { min-height: 310px; padding: 30px; border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.studio-card p { margin: 0; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -.04em; }
.accent-card { color: white; background: var(--purple); }.card-icon { font-size: 34px; }
.plain-card { border: 1px solid var(--line); background: white; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-index { color: #929aad; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.studio-monogram { width: 66px; aspect-ratio: 1; border-radius: 17px; object-fit: cover; mix-blend-mode: multiply; }

.follow { min-height: 520px; padding: 76px clamp(28px, 6vw, 76px); position: relative; overflow: hidden; border-radius: 32px; color: white; background: var(--navy); }
.kicker.light { position: relative; z-index: 2; color: var(--purple-light); }
.follow-row { height: 310px; position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.follow h2 { font-size: clamp(60px, 8vw, 108px); }
.social-links { width: min(300px, 100%); }
.social-link { appearance: none; width: 100%; min-height: 58px; margin: 0; padding: 18px 2px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); border-radius: 0; color: white; background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 21px; text-align: left; cursor: pointer; transition: color .2s ease, padding .2s ease, border-color .2s ease; }
.social-link:hover { padding-left: 8px; border-color: rgba(182,167,255,.6); color: var(--purple-light); }
.social-link:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 4px; }
.social-link span { margin-left: 20px; font-size: 15px; }
.follow-orbit { width: 520px; height: 190px; position: absolute; right: 17%; top: 14%; border: 1px solid rgba(173,157,255,.25); border-radius: 50%; transform: rotate(-28deg); }.follow-orbit::before { content: "✦"; position: absolute; right: 8%; bottom: 4%; color: var(--green); font-size: 28px; }

.mail-dialog { inset: 0; width: min(540px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: clamp(30px, 5vw, 50px); overflow: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; color: white; background: radial-gradient(circle at 100% 0, rgba(118,85,237,.42), transparent 42%), var(--navy); box-shadow: 0 32px 100px rgba(2,12,35,.5); }
.mail-dialog[open] { animation: dialog-in .32s cubic-bezier(.2,.75,.25,1) both; }
.mail-dialog::backdrop { background: rgba(3, 13, 34, .72); backdrop-filter: blur(10px); animation: backdrop-in .25s ease both; }
.dialog-eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--purple-light); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.dialog-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mail-dialog h2 { margin-top: 42px; color: white; font-size: clamp(54px, 9vw, 78px); }
.dialog-intro { margin: 24px 0 10px; color: #aebbd5; font-size: 14px; }
.mail-address { display: inline-block; max-width: 100%; color: white; font-size: clamp(15px, 3vw, 19px); font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 5px; }
.dialog-close { appearance: none; position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; padding: 0 0 3px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: rgba(255,255,255,.06); font-family: inherit; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.dialog-close:hover { background: rgba(255,255,255,.14); transform: rotate(5deg); }
.dialog-actions { margin-top: 36px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-mail, .open-mail { min-height: 48px; padding: 13px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 100px; font-family: inherit; font-size: 13px; font-weight: 800; line-height: 20px; cursor: pointer; }
.copy-mail { border: 1px solid rgba(255,255,255,.2); color: white; background: transparent; }
.open-mail { border: 1px solid white; color: var(--navy); background: white; }
.copy-mail:hover { background: rgba(255,255,255,.08); }
.open-mail:hover { transform: translateY(-2px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.motion-ready .reveal-item { opacity: 0; transform: translateY(54px) scale(.985); transition: opacity .8s cubic-bezier(.2,.75,.25,1), transform 1s cubic-bezier(.2,.75,.25,1); }
.motion-ready .reveal-item.is-visible { opacity: 1; transform: none; }
.motion-ready .studio-card:nth-child(2) { transition-delay: .12s; }

.site-footer { padding: 36px 0 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #858ea3; font-size: 11px; }.site-footer img { width: 82px; mix-blend-mode: multiply; }.site-footer p { margin: 0; }.site-footer a { justify-self: end; font-weight: 700; color: var(--navy); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.marquee-track { animation: none; }* { transition: none !important; } }
@media (max-width: 900px) {
  [id] { scroll-margin-top: 92px; }
  .site-header { height: 76px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); grid-template-columns: 1fr auto; position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
  .brand { width: 96px; }
  .menu-toggle { display: grid; z-index: 2; }
  .nav-cta { display: none; }
  .primary-nav { width: min(390px, calc(100vw - 48px)); padding: 22px; display: flex; flex-direction: column; gap: 0; position: absolute; top: calc(100% + 12px); right: max(24px, env(safe-area-inset-right)); visibility: hidden; opacity: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; color: white; background: radial-gradient(circle at 100% 0, rgba(118,85,237,.5), transparent 46%), var(--navy); box-shadow: 0 26px 70px rgba(3,13,34,.32); transform: translateY(-14px) scale(.97); transform-origin: top right; clip-path: inset(0 0 100% 0 round 26px); pointer-events: none; transition: opacity .28s ease, transform .4s cubic-bezier(.2,.75,.25,1), clip-path .45s cubic-bezier(.2,.75,.25,1), visibility .4s; }
  .primary-nav::before { content: "Navigation"; padding: 4px 8px 16px; color: var(--purple-light); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
  .primary-nav a { padding: 17px 8px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); font-size: clamp(20px, 4vw, 28px); letter-spacing: -.04em; opacity: 0; transform: translateY(-8px); transition: color .2s ease, opacity .3s ease, transform .4s cubic-bezier(.2,.75,.25,1); }
  .primary-nav a::after { content: "↗"; color: var(--purple-light); font-size: 14px; }
  .primary-nav a:nth-child(2) { transition-delay: .04s; }
  .primary-nav a:nth-child(3) { transition-delay: .08s; }
  .menu-open .primary-nav { visibility: visible; opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 26px); pointer-events: auto; }
  .menu-open .primary-nav a { opacity: 1; transform: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 54px; padding: 64px 0 90px; }
  .hero-copy { max-width: 720px; }
  h1 { font-size: clamp(68px, 13vw, 106px); }
  .hero-art { width: min(560px, 86%); justify-self: center; }
  .game-section { padding: 118px 0 70px; }
  .game-card { grid-template-columns: 1fr; }
  .game-copy { min-height: 490px; }
  .game-visual { min-height: 500px; }
  .studio { padding: 100px 0 120px; grid-template-columns: 1fr; gap: 48px; }
  .studio-title { max-width: 650px; }
  .follow { min-height: 500px; }
}
@media (max-width: 760px) {
  .follow { padding: 58px 42px; }
  .follow-row { height: auto; min-height: 400px; align-items: flex-start; justify-content: flex-end; flex-direction: column; }
  .follow h2 { font-size: clamp(58px, 13vw, 88px); }
  .social-links { width: 100%; margin-top: 48px; }
  .follow-orbit { right: -12%; top: 8%; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { width: 100%; height: 72px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .brand { width: 88px; }
  .menu-toggle { width: 46px; height: 46px; }
  .primary-nav { width: auto; left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); top: calc(100% + 8px); padding: 18px; border-radius: 22px; }
  .hero { padding: 50px 0 76px; gap: 52px; }
  h1 { margin-top: 24px; font-size: clamp(54px, 17.5vw, 78px); }
  .hero-intro { margin-top: 25px; font-size: 16px; }
  .hero-actions { margin-top: 30px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-art { width: 100%; border-radius: 42% 42% 24px 24px; }
  .floating-note { width: 64%; padding: 17px; gap: 14px; }
  .floating-note strong { font-size: 12px; }
  .marquee { padding: 18px 0; }
  .marquee-track { gap: 25px; font-size: 10px; }
  .game-section { padding: 92px 0 54px; }
  .section-heading { margin-bottom: 20px; }
  .game-card { min-height: 0; border-radius: 24px; }
  .game-copy { min-height: 440px; padding: 28px; }
  .game-copy h2 { font-size: clamp(64px, 20vw, 78px); }
  .game-copy p { margin: 24px 0; font-size: 15px; }
  .game-visual { min-height: 390px; margin: 10px; border-radius: 17px; }
  .sun { width: 180px; }
  .mini-apple { font-size: 82px; }
  .studio { padding: 86px 0 96px; gap: 38px; }
  .studio-title h2 { font-size: clamp(50px, 14vw, 68px); }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card { min-height: 220px; padding: 26px; }
  .studio-card p { font-size: 27px; }
  .follow { min-height: 570px; padding: 42px 24px; border-radius: 24px; }
  .follow-row { min-height: 450px; }
  .follow h2 { font-size: clamp(52px, 15.5vw, 74px); }
  .social-links { margin-top: 42px; }
  .social-link { min-height: 60px; }
  .mail-dialog { width: calc(100% - 24px); padding: 30px 22px 24px; border-radius: 24px; }
  .mail-dialog h2 { margin-top: 38px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .copy-mail, .open-mail { width: 100%; }
  .site-footer { padding: 30px 0 36px; grid-template-columns: 1fr auto; row-gap: 20px; }
  .site-footer p { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 52px; }
  .button { gap: 18px; padding-inline: 18px; }
  .game-copy { min-height: 410px; padding: 24px; }
  .game-copy h2 { font-size: 62px; }
  .game-visual { min-height: 350px; }
  .follow { padding-inline: 20px; }
  .follow h2 { font-size: 50px; }
}
