/* The studio site: index.html (studio), game.html, apps.html. The legal pages keep style.css. */
@font-face {
  font-family: "Fredoka";
  src: url("assets/fredoka-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Cinnamon frame for the studio; the candy colours stay for the game's own parts. */
:root {
  --bg: #fbf1e4;
  --bg-2: #f6e1c9;
  --card: #fffaf3;
  --text: #3d2418;
  --muted: #7a5c4b;
  --cinnamon: #b5562b;
  --cinnamon-deep: #8a3d1c;
  --caramel: #e0a15b;
  --link: #9a4520;
  --line: #ecd5bb;
  --ray: rgba(224, 161, 91, 0.22);
  --shadow: 0 18px 40px rgba(110, 55, 25, 0.16);
  --phone: #2b2030;
  --paw: #fff4e6;
  --candy-a: #ffe3ea;
  --candy-b: #fff0dc;
  --flight-a: #dcebff;
  --flight-b: #f2e6ff;
  --market-a: #e2f4d9;
  --market-b: #fff1d6;
  --pink: #e8507e;
  --pink-deep: #b8365c;
  --green: #5cc46a;
  --green-deep: #3d9a4b;
  --yellow: #ffc83d;
  --sky: #3f7fd8;
  --leaf: #4f9a3c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1410;
    --bg-2: #2b1c15;
    --card: #33231b;
    --text: #f6e9dc;
    --muted: #cbae99;
    --cinnamon: #e07a45;
    --cinnamon-deep: #b5562b;
    --caramel: #e6ae6a;
    --link: #f0975f;
    --line: #4a3428;
    --ray: rgba(224, 161, 91, 0.10);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --phone: #120c10;
    --paw: #fff4e6;
    --candy-a: #3d2230;
    --candy-b: #3b2a1d;
    --flight-a: #1f2c40;
    --flight-b: #2e2340;
    --market-a: #1f3320;
    --market-b: #3b2e1a;
    --pink: #ff6f97;
    --pink-deep: #c6456b;
    --sky: #7fb0f5;
    --leaf: #8cd075;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1410;
  --bg-2: #2b1c15;
  --card: #33231b;
  --text: #f6e9dc;
  --muted: #cbae99;
  --cinnamon: #e07a45;
  --cinnamon-deep: #b5562b;
  --caramel: #e6ae6a;
  --link: #f0975f;
  --line: #4a3428;
  --ray: rgba(224, 161, 91, 0.10);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --phone: #120c10;
  --paw: #fff4e6;
  --candy-a: #3d2230;
  --candy-b: #3b2a1d;
  --flight-a: #1f2c40;
  --flight-b: #2e2340;
  --market-a: #1f3320;
  --market-b: #3b2e1a;
  --pink: #ff6f97;
  --pink-deep: #c6456b;
  --sky: #7fb0f5;
  --leaf: #8cd075;
}

* { box-sizing: border-box; }
/* The sunbursts reach past the screen edge; clip them rather than let the page scroll sideways. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  /* The bottom strip stays free for Netlify's badge. */
  padding-bottom: 56px;
  background:
    radial-gradient(900px 600px at 85% -10%, var(--bg-2), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, var(--bg-2), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, .brand, .btn, .tabs a { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; }
h1, h2, h3 { line-height: 1.1; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header and tabs */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 21px; white-space: nowrap; }
.paw-mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 4px 8px rgba(110, 55, 25, 0.25)); }
.paw-mark .tile { fill: var(--cinnamon); }
.paw-mark .paw { fill: var(--paw); }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--card); border-radius: 999px; box-shadow: 0 3px 0 var(--line); }
.tabs a { color: var(--muted); text-decoration: none; font-size: 17px; padding: 7px 18px; border-radius: 999px; text-align: center; transition: background 0.15s, color 0.15s; }
.tabs a:hover { color: var(--text); background: var(--bg-2); }
.tabs a[aria-current="page"] { color: #fff; background: var(--cinnamon); box-shadow: 0 3px 0 var(--cinnamon-deep); }

/* Shared bits */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cinnamon-deep); background: var(--card); padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 0 var(--line); }
:root[data-theme="dark"] .eyebrow { color: var(--caramel); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--caramel); } }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; text-decoration: none; color: #fff; padding: 14px 26px; border-radius: 18px; transition: transform 0.12s, box-shadow 0.12s; }
.btn svg { width: 22px; height: 22px; }
.btn-play { background: var(--green); box-shadow: 0 6px 0 var(--green-deep), 0 12px 24px rgba(61, 154, 75, 0.3); }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-deep), 0 16px 28px rgba(61, 154, 75, 0.35); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-deep); }
.btn-warm { background: var(--cinnamon); box-shadow: 0 6px 0 var(--cinnamon-deep), 0 12px 24px rgba(138, 61, 28, 0.25); }
.btn-warm:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: var(--card); box-shadow: 0 5px 0 var(--line); }
.btn-ghost:hover { transform: translateY(-2px); }
.soon { font-size: 15px; color: var(--muted); line-height: 1.4; }
.soon strong { color: var(--text); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--caramel); color: #3d2418; }
.badge.live { background: var(--green); color: #fff; }

section { padding: 48px 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

.hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-size: clamp(42px, 8.5vw, 72px); margin: 16px 0 12px; letter-spacing: -0.01em; }
.hero h1 span { color: var(--cinnamon); }
.game-page .hero h1 span { color: var(--pink); }

/* Sunburst behind a hero picture */
.stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.stage::before {
  content: ""; position: absolute; inset: -10% -20%;
  background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 10deg, transparent 10deg 20deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0 20%, transparent 62%);
          mask: radial-gradient(circle at 50% 50%, #000 0 20%, transparent 62%);
  animation: spin 80s linear infinite;
}
.game-page { --ray: rgba(255, 200, 61, 0.22); }

/* Studio hero: the paw with the three things we make around it */
.emblem { position: relative; z-index: 1; width: min(250px, 60vw); aspect-ratio: 1; }
.emblem .paw-mark { width: 100%; height: 100%; filter: drop-shadow(0 22px 34px rgba(110, 55, 25, 0.3)); transform: rotate(-6deg); }
.orbit { position: absolute; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.orbit img { width: 64px; height: 64px; border-radius: 16px; }
.orbit svg { width: 44px; height: 44px; }
.o1 { left: 4%; top: 12%; transform: rotate(-8deg); }
.o2 { right: 4%; top: 22%; animation-delay: -1.7s; }
.o3 { left: 12%; bottom: 8%; animation-delay: -3.2s; }
.o2 svg { color: var(--sky); }
.o3 svg { color: var(--leaf); }

/* Game hero */
.phone {
  position: relative; width: min(250px, 62vw); aspect-ratio: 1320 / 2868;
  border: 9px solid var(--phone); border-radius: 38px; overflow: hidden;
  background: var(--phone); box-shadow: var(--shadow), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.stage .phone { transform: rotate(-4deg); z-index: 1; }
.app-icon { position: absolute; z-index: 2; width: 116px; right: 6%; bottom: 8%; border-radius: 26px; box-shadow: var(--shadow); transform: rotate(9deg); }
.float { position: absolute; z-index: 2; width: 74px; filter: drop-shadow(0 8px 10px rgba(120, 50, 60, 0.25)); animation: bob 5s ease-in-out infinite; }
.f1 { left: 8%; top: 10%; }
.f2 { right: 10%; top: 4%; width: 60px; animation-delay: -1.5s; }
.f3 { left: 4%; bottom: 14%; width: 64px; animation-delay: -3s; }
.f4 { right: 0; top: 42%; width: 52px; animation-delay: -2.2s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) {
  .stage::before, .float, .orbit { animation: none; }
  .btn, .tabs a { transition: none; }
}

/* "Our first game" spotlight on the studio page */
.spotlight {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--candy-a), var(--candy-b)); border-radius: 32px; padding: 28px 22px 0;
  box-shadow: var(--shadow);
}
.spotlight .title { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.spotlight .title img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 14px rgba(120, 50, 60, 0.25); }
.spotlight h2 { font-size: clamp(32px, 6vw, 46px); }
.spotlight h2 span { color: var(--pink); }
.spotlight p { color: var(--muted); margin: 0 0 22px; max-width: 32em; }
.spotlight .shots { position: relative; display: flex; justify-content: center; gap: 14px; height: 300px; }
.spotlight .shots .phone { width: 170px; border-width: 7px; border-radius: 28px; align-self: flex-start; }
.spotlight .shots .phone + .phone { margin-top: 36px; transform: rotate(4deg); }
.spotlight .shots .phone:first-child { transform: rotate(-4deg); }

/* Cards with an icon */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: 0 4px 0 var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; align-content: start; }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--bg-2); color: var(--cinnamon); }
.icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card img.icon { padding: 0; background: none; width: 64px; height: 64px; }
.card.has-img { grid-template-columns: 64px 1fr; }

/* App teasers and app cards */
.teasers { display: grid; grid-template-columns: 1fr; gap: 16px; }
.teaser { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--text); background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 4px 0 var(--line); transition: transform 0.12s; }
.teaser:hover { transform: translateY(-3px); }
.teaser h3 { font-size: 21px; margin: 4px 0 2px; }
.teaser p { margin: 0; color: var(--muted); font-size: 15px; }
.app-tile { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; }
.app-tile svg { width: 40px; height: 40px; }
.tile-flight { background: linear-gradient(135deg, var(--flight-a), var(--flight-b)); color: var(--sky); }
.tile-market { background: linear-gradient(135deg, var(--market-a), var(--market-b)); color: var(--leaf); }
.more { text-align: center; margin-top: 24px; }

.app { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: 32px; padding: 26px 22px; box-shadow: var(--shadow); }
.app + .app { margin-top: 28px; }
.app h2 { font-size: clamp(30px, 5.5vw, 42px); margin: 12px 0 10px; }
.app .what { color: var(--muted); margin: 0 0 14px; }
.app .note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.art { position: relative; display: grid; place-items: center; height: 280px; border-radius: 26px; overflow: hidden; }
.art-flight { background: linear-gradient(135deg, var(--flight-a), var(--flight-b)); }
.art-market { background: linear-gradient(135deg, var(--market-a), var(--market-b)); }

/* A stack of swipe cards */
.swipe { position: relative; width: 170px; height: 210px; }
.swipe .sc { position: absolute; inset: 0; border-radius: 22px; background: var(--card); box-shadow: 0 12px 26px rgba(30, 50, 90, 0.18); display: grid; place-items: center; }
.swipe .sc:nth-child(1) { transform: rotate(-9deg) translateX(-26px); opacity: 0.7; }
.swipe .sc:nth-child(2) { transform: rotate(6deg) translateX(22px); opacity: 0.85; }
.swipe .sc:nth-child(3) { transform: rotate(-2deg); }
.swipe .sc svg { width: 72px; height: 72px; color: var(--sky); }
.swipe .sc .route { position: absolute; bottom: 22px; left: 22px; right: 22px; height: 10px; border-radius: 5px; background: var(--bg-2); }
.swipe .sc .route::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 55%; border-radius: 5px; background: var(--caramel); }
.choice { position: absolute; bottom: 18px; display: flex; gap: 70px; }
.choice span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: 0 8px 16px rgba(30, 50, 90, 0.18); }
.choice svg { width: 24px; height: 24px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.choice .no svg { stroke: #d9534f; }
.choice .yes svg { stroke: var(--pink); fill: var(--pink); }
.art-flight .swipe { margin-top: -30px; }

/* A shopping list with store prices */
.receipt { width: 220px; background: var(--card); border-radius: 18px; padding: 18px; box-shadow: 0 12px 26px rgba(40, 70, 30, 0.18); transform: rotate(-3deg); }
.receipt .head { display: flex; align-items: center; gap: 8px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.receipt .head svg { width: 26px; height: 26px; color: var(--leaf); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.receipt .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 2px dashed var(--line); }
.receipt .row i { display: block; height: 9px; border-radius: 5px; background: var(--bg-2); margin-top: 7px; }
.receipt .row b { display: block; width: 34px; height: 9px; border-radius: 5px; background: var(--caramel); margin-top: 7px; }
.receipt .row.best b { background: var(--green); }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--muted); }
.list li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--caramel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233d2418' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.list strong { color: var(--text); }

/* Game page */
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 24px; margin: 0 -16px;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 190px; border-width: 7px; border-radius: 30px; }
.gallery figcaption { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 17px; margin-top: 12px; max-width: 190px; }

.meet { background: var(--card); border-radius: 32px; padding: 28px 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.meet .mascot { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 60%; justify-self: center; box-shadow: 0 0 0 6px var(--bg-2); }
.meet h2 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 10px; }
.meet p { margin: 0 0 12px; color: var(--muted); }

/* Contact and footer */
.contact { text-align: center; }
.contact .mail { display: inline-block; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: clamp(20px, 5vw, 30px); color: var(--link); text-decoration: none; border-bottom: 3px solid currentColor; word-break: break-all; }
.contact p { color: var(--muted); }

footer { border-top: 2px dashed var(--line); margin-top: 24px; padding: 24px 0 16px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }

@media (max-width: 559px) {
  .brand { font-size: 19px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; padding: 8px 6px; }
  .app-icon { width: 84px; border-radius: 20px; right: 6%; bottom: 4%; }
  .float { width: 56px; }
  .orbit { width: 70px; height: 70px; border-radius: 22px; }
  .orbit img { width: 54px; height: 54px; }
  .orbit svg { width: 36px; height: 36px; }
  .spotlight .shots .phone { width: 140px; }
  .spotlight .shots { height: 250px; }
}
@media (min-width: 700px) {
  .cards, .teasers { grid-template-columns: 1fr 1fr; }
  .meet { grid-template-columns: 200px 1fr; padding: 40px; }
  .meet .mascot { width: 200px; height: 200px; }
  .app { grid-template-columns: 1fr 1fr; padding: 40px; }
  .app.flip .art { order: 2; }
  .art { height: 340px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding: 40px 0 72px; }
  .stage { min-height: 560px; }
  .emblem { width: 300px; }
  .phone { width: 280px; }
  .app-icon { width: 140px; right: 2%; }
  .float { width: 88px; }
  .orbit { width: 100px; height: 100px; border-radius: 30px; }
  .orbit img { width: 76px; height: 76px; border-radius: 18px; }
  .orbit svg { width: 52px; height: 52px; }
  .spotlight { grid-template-columns: 1.1fr 1fr; padding: 44px 44px 0; }
  .spotlight > div:first-child { padding-bottom: 44px; }
  .spotlight .shots { height: 360px; }
  .spotlight .shots .phone { width: 190px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards .card { grid-template-columns: 1fr; }
  .cards.two .card { grid-template-columns: 64px 1fr; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .gallery { justify-content: center; overflow: visible; margin: 0; padding: 8px 0 24px; }
  .gallery figure:nth-child(odd) { transform: translateY(18px); }
}
