/* =========================================================================
   Tiny Rocket Waterfall — Studio Stylesheet
   A cozy indie game studio: tiny rockets, endless waterfalls, big feelings.
   Last updated: 2026
   ========================================================================= */

:root {
  /* Twilight sky */
  --bg:            #0e1030;
  --bg-2:          #141640;
  --bg-3:          #1b1e56;
  --panel:         #1c1f4f;
  --panel-2:       #23276a;
  --border:        #35398f;
  --border-soft:   #2a2e73;

  --text:          #f3f1ff;
  --text-soft:     #c3c2ec;
  --muted:         #8f8fc7;

  /* Rocket + waterfall palette */
  --rocket:        #ff7a59;   /* warm coral flame */
  --rocket-2:      #ffb057;   /* amber */
  --water:         #46d6e6;   /* waterfall cyan */
  --water-2:       #6ce7c9;   /* mint spray */
  --star:          #ffd76b;   /* golden star */
  --aurora:        #a97bff;   /* purple aurora */
  --pink:          #ff8fc7;

  --grad-sky:      linear-gradient(180deg, #0e1030 0%, #221a4d 55%, #123a52 100%);
  --grad-rocket:   linear-gradient(135deg, #ff7a59 0%, #ffb057 100%);
  --grad-water:    linear-gradient(180deg, #6ce7c9 0%, #46d6e6 50%, #4a8bff 100%);
  --grad-aurora:   linear-gradient(120deg, #a97bff 0%, #ff8fc7 40%, #46d6e6 100%);
  --grad-hero:     radial-gradient(1000px 500px at 20% -5%, rgba(169,123,255,.35), transparent 60%),
                   radial-gradient(900px 500px at 85% 5%, rgba(70,214,230,.25), transparent 55%),
                   radial-gradient(700px 600px at 60% 40%, rgba(255,122,89,.14), transparent 60%);

  --radius:        20px;
  --radius-sm:     14px;
  --radius-lg:     34px;
  --shadow:        0 26px 60px -24px rgba(0,0,0,.65);
  --shadow-glow:   0 0 50px -8px rgba(70,214,230,.45);

  --maxw:          1160px;
  --font:          "Nunito", "Quicksand", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono:          "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--grad-sky);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* twinkling stars + aurora */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(2px 2px at 15% 20%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 65% 15%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 80% 30%, rgba(255,215,107,.8), transparent),
    radial-gradient(1px 1px at 40% 40%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 25% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 90% 55%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 55% 70%, rgba(255,143,199,.6), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity:.55 } to { opacity:.95 } }
body::after {
  content: ""; position: fixed; inset: -10% -10% auto -10%; height: 80vh; z-index: -2;
  background: var(--grad-hero); pointer-events: none;
}

a { color: var(--water); text-decoration: none; transition: color .2s; }
a:hover { color: var(--water-2); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--text-soft); }

.grad-text { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rocket-text { background: var(--grad-rocket); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--star); padding: 7px 16px; border: 2px solid var(--border);
  border-radius: 999px; background: rgba(255,215,107,.08);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .16s, box-shadow .22s, background .2s;
  white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-3px) rotate(-.5deg); }
.btn-primary { background: var(--grad-rocket); color: #2a1400; box-shadow: 0 14px 30px -10px rgba(255,122,89,.6); }
.btn-water { background: var(--grad-water); color: #05263a; box-shadow: 0 14px 30px -10px rgba(70,214,230,.55); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text); }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); background: rgba(14,16,48,.72); border-bottom: 2px solid var(--border-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand .logo { width: 40px; height: 40px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-soft); padding: 9px 15px; border-radius: 999px; font-size: .96rem; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--border); border-radius: 12px; color: var(--text); width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; }

/* Hero */
.hero { padding: 84px 0 60px; text-align: center; position: relative; }
.hero .lead { font-size: 1.28rem; color: var(--text-soft); max-width: 640px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 42px; font-size: .9rem; color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }

/* Hero scene: waterfall + rocket */
.scene { position: relative; height: 320px; margin: 40px auto 0; max-width: 760px; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--border); background: linear-gradient(180deg,#141640,#123a52); box-shadow: var(--shadow); }
.scene .fall { position: absolute; top: 0; bottom: 0; width: 42%; left: 50%; transform: translateX(-50%); background: var(--grad-water); opacity: .5; filter: blur(1px); border-radius: 0 0 40% 40%/0 0 8% 8%; }
.scene .streak { position: absolute; top: -20%; width: 3px; height: 40%; background: linear-gradient(180deg, transparent, var(--water-2), transparent); border-radius: 3px; animation: pour 1.6s linear infinite; opacity: .8; }
@keyframes pour { from { transform: translateY(-20%); } to { transform: translateY(320px); } }
.scene .rocket { position: absolute; left: 50%; bottom: 40px; width: 54px; margin-left: -27px; animation: bob 3s ease-in-out infinite; z-index: 3; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(-3deg);} 50%{ transform: translateY(-16px) rotate(3deg);} }
.scene .cloud { position: absolute; border-radius: 50%; background: rgba(108,231,201,.18); filter: blur(8px); }

/* Sections */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-head p { font-size: 1.1rem; }

/* Grids + cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card { background: var(--panel); border: 2px solid var(--border-soft); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow); }
.card .emoji { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse .split-media { order: -1; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; color: var(--text-soft); }
.feature-list li .b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-water); color: #05263a; display: grid; place-items: center; font-weight: 900; font-size: .8rem; margin-top: 2px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat { padding: 26px 16px; border: 2px solid var(--border-soft); border-radius: var(--radius); background: var(--panel); }
.stat .num { font-size: 2.5rem; font-weight: 900; display: block; }
.stat .lbl { color: var(--muted); font-size: .92rem; }

/* Game cards */
.game-card { border: 2px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border); }
.game-card .art { height: 190px; position: relative; display: grid; place-items: center; font-size: 3.6rem; }
.game-card .art.a1 { background: var(--grad-water); } .game-card .art.a2 { background: var(--grad-rocket); }
.game-card .art.a3 { background: var(--grad-aurora); } .game-card .art.a4 { background: linear-gradient(135deg,#a97bff,#46d6e6); }
.game-card .art.a5 { background: linear-gradient(135deg,#ff8fc7,#ffb057); } .game-card .art.a6 { background: linear-gradient(135deg,#6ce7c9,#4a8bff); }
.game-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.game-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.game-card h3 { margin-bottom: 6px; }
.game-card p { font-size: .93rem; flex: 1; }
.chip { padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(70,214,230,.14); color: var(--water); border: 1px solid var(--border-soft); }
.chip.hot { background: rgba(255,122,89,.16); color: var(--rocket); }
.chip.new { background: rgba(255,215,107,.16); color: var(--star); }

/* Badge / pills */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: rgba(169,123,255,.18); color: var(--aurora); border: 1px solid var(--border-soft); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 9px 16px; border: 2px solid var(--border-soft); border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--text-soft); background: var(--panel); }

/* Testimonials / quotes */
.quote { border: 2px solid var(--border-soft); border-radius: var(--radius); padding: 26px; background: var(--panel); }
.quote p { color: var(--text); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-aurora); flex: none; }
.quote .who strong { display: block; font-size: .9rem; }
.quote .who small { color: var(--muted); }
.stars { color: var(--star); letter-spacing: 2px; }

/* FAQ */
.faq-item { border: 2px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 1.05rem; font-weight: 800; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: inherit; }
.faq-q .chev { transition: transform .25s; color: var(--water); font-size: 1.4rem; line-height: 1; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-soft); }

/* CTA band */
.cta-band { text-align: center; padding: 70px 40px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); background-image: var(--grad-hero); }

/* Footer */
.site-footer { border-top: 2px solid var(--border-soft); padding: 60px 0 30px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4,1fr); gap: 30px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--text-soft); font-size: .93rem; }
.footer-grid ul li a:hover { color: var(--water-2); }
.footer-about p { font-size: .93rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--border-soft); color: var(--muted); font-size: .86rem; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { color: var(--muted); } .footer-bottom .socials a:hover { color: var(--water-2); }

/* Utilities */
.text-center { text-align: center; }
.mt-1{margin-top:12px}.mt-2{margin-top:24px}.mt-3{margin-top:40px}.mb-0{margin-bottom:0}
.divider { height: 2px; background: var(--border-soft); margin: 40px 0; border: none; }

/* Page hero */
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero p { max-width: 620px; margin: 16px auto 0; font-size: 1.12rem; }

/* Prose */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { margin-top: 40px; } .prose h3 { margin-top: 26px; }
.prose ul, .prose ol { color: var(--text-soft); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 4px solid var(--water); padding: 8px 20px; margin: 24px 0; color: var(--text); background: var(--panel); border-radius: 0 14px 14px 0; }
.prose code { font-family: var(--mono); background: var(--panel-2); padding: 2px 7px; border-radius: 6px; font-size: .88em; color: var(--water-2); }

/* Devlog cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 2px solid var(--border-soft); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card .cover { height: 160px; display: grid; place-items: center; font-size: 3rem; }
.post-card .cover.c1 { background: var(--grad-water); } .post-card .cover.c2 { background: var(--grad-rocket); }
.post-card .cover.c3 { background: var(--grad-aurora); } .post-card .cover.c4 { background: linear-gradient(135deg,#ff8fc7,#a97bff); }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.16rem; margin-bottom: 8px; } .post-card p { font-size: .93rem; flex: 1; }

/* Forms */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 800; margin-bottom: 7px; color: var(--text-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--border);
  background: var(--bg-2); color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 4px rgba(70,214,230,.16); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { padding: 13px 16px; border-radius: 14px; font-size: .92rem; display: none; }
.form-status.ok { display: block; background: rgba(108,231,201,.12); border: 2px solid rgba(108,231,201,.4); color: var(--water-2); }
.form-status.err { display: block; background: rgba(255,122,89,.12); border: 2px solid rgba(255,122,89,.4); color: var(--rocket); }

/* ---- Playable game ---- */
.game-stage { max-width: 480px; margin: 0 auto; }
.game-frame { position: relative; border: 3px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0c1030; }
#game-canvas { display: block; width: 100%; height: auto; touch-action: none; background: linear-gradient(180deg,#141640 0%,#1b2a66 55%,#123a52 100%); }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(10,12,40,.78); backdrop-filter: blur(3px); padding: 20px; transition: opacity .25s; }
.game-overlay.hide { opacity: 0; pointer-events: none; }
.game-overlay h3 { font-size: 1.6rem; }
.game-hud { display: flex; justify-content: space-between; align-items: center; margin: 14px auto 0; max-width: 480px; font-weight: 800; }
.game-hud .score { color: var(--star); } .game-hud .best { color: var(--water); }
.game-help { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 2px solid var(--border); color: var(--text); padding: 13px 22px; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 300; font-weight: 700; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 940px) {
  .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 2px solid var(--border); padding: 14px 24px; gap: 4px; }
  .nav-links.open a { width: 100%; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; } .section { padding: 58px 0; }
  h1 { font-size: 2.3rem; } .scene { height: 240px; }
}
