:root {
  --bg: #14161c;
  --bg-2: #1a1d25;
  --panel: #1f232d;
  --line: #2a2f3b;
  --text: #f2f2f2;
  --muted: #a3a9b8;
  --dim: #6f7688;
  --yellow: #ffc83d;
  --cream: #fff1c7;
  --luderra: #ff7a3d;
  --radius: 20px;
  --wrap: 1180px;
  --display: "Fredoka", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.hl { color: var(--yellow); }
::selection { background: var(--yellow); color: var(--bg); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  background: rgba(20, 22, 28, .82); backdrop-filter: blur(10px);
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--display); letter-spacing: .02em;
  padding: 16px 26px; border-radius: 999px;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--bg); }
.btn-primary:hover { background: var(--cream); }
.btn-ghost { border: 2px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-luderra { background: var(--luderra); color: #160a04; font-family: "Chakra Petch", var(--display); text-transform: uppercase; letter-spacing: .06em; border-radius: 10px; }
.btn-dark { background: var(--bg); color: var(--yellow); }
.btn-dark:hover { background: #000; }

.pill, .game-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; margin: 0;
  font: 500 14px/1.2 var(--body);
  color: var(--cream); background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 200, 61, .18); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 96px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
}
.hero h1 { font-size: clamp(48px, 7vw, 88px); margin: 26px 0 22px; }
.lead { color: var(--muted); font-size: 19px; max-width: 540px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-art { display: grid; place-items: center; }
.badge {
  position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(255, 200, 61, .16), transparent 65%), var(--bg-2);
  border: 1px solid var(--line);
}
.badge::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px dashed rgba(255, 200, 61, .22);
}
.mascot { width: 72%; overflow: visible; }
.mascot .head { transform-box: fill-box; transform-origin: 50% 90%; }
.mascot .eyes { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .mascot .head { animation: wag 5s ease-in-out infinite; }
  .mascot .eyes { animation: blink 4.2s infinite; }
  .hero-art:hover .mascot .head { animation-duration: 1.2s; }
}
@keyframes wag {
  0%, 62%, 100% { transform: rotate(0); }
  68% { transform: rotate(-7deg); }
  74% { transform: rotate(6deg); }
  80% { transform: rotate(-4deg); }
  86% { transform: rotate(2deg); }
  92% { transform: rotate(0); }
}
@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(.1); }
}

/* ---------- sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px 0; scroll-margin-top: 40px; }
.eyebrow { margin: 0 0 12px; color: var(--yellow); font: 600 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.section h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 44px; max-width: 820px; }

/* ---------- the game ---------- */
.game {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.game-art { position: relative; min-height: 100%; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.game-art:hover img { transform: scale(1.03); }
.game-body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.game-body p { margin: 0; color: var(--muted); }
.game-name { display: flex; align-items: center; gap: 12px; font: 700 34px/1 "Chakra Petch", var(--display); letter-spacing: .12em; }
.game-status { color: #ffd9c7; background: rgba(255, 122, 61, .1); border-color: rgba(255, 122, 61, .3); }
.game-status .dot { background: var(--luderra); box-shadow: 0 0 0 4px rgba(255, 122, 61, .18); }
.game-body .game-tag { font: 600 22px/1.2 "Chakra Petch", var(--display); color: var(--text); }
.game-tag em { font-style: normal; color: var(--luderra); }
.points { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.points li { padding-left: 20px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--luderra); }
.points b { color: var(--text); font-weight: 600; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.game + .shots + .game { margin-top: 56px; }
.game-flip { grid-template-columns: 1fr 1.25fr; }
.game-flip .game-art { order: 2; }
.game-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Vinewood keeps its own look: the magenta gradient and heavy italic titles of vinewood.ro */
.game-vinewood .game-name span {
  font: italic 900 34px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .02em;
  background: linear-gradient(115deg, #e05bff 0%, #c30aef 34%, #a379c9 66%, #8b3ff0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.game-vinewood .game-status { color: #ecd9ff; background: rgba(195, 10, 239, .1); border-color: rgba(195, 10, 239, .32); }
.game-vinewood .game-status .dot { background: #e05bff; box-shadow: 0 0 0 4px rgba(224, 91, 255, .18); }
.game-vinewood .game-tag { font: italic 800 22px/1.2 "Helvetica Neue", Arial, sans-serif; }
.game-vinewood .game-tag em { color: #e05bff; }
.game-vinewood .points li::before { background: #c30aef; }
.btn-vinewood, .btn-vinewood-ghost { font: italic 800 15px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; border-radius: 10px; }
.btn-vinewood { background: linear-gradient(115deg, #e05bff, #c30aef 45%, #8b3ff0); color: #fff; }
.btn-vinewood-ghost { border: 2px solid rgba(201, 169, 255, .35); color: #f3ecff; }
.btn-vinewood-ghost:hover { border-color: #e05bff; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }

/* ---------- studio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 200, 61, .12); color: var(--yellow); font: 700 16px/1 var(--display);
}
.card h3 { font-size: 24px; margin: 20px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- follow ---------- */
.follow {
  max-width: calc(var(--wrap) - 48px); margin: 110px auto 0; padding: 36px 40px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  background: var(--yellow); color: var(--bg); border-radius: 28px;
}
.follow-mark { width: 84px; height: 84px; padding: 10px; background: var(--bg); border-radius: 50%; }
.follow h2 { font-size: 32px; }
.follow p { margin: 6px 0 0; color: #3a3320; }

/* ---------- footer ---------- */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 48px; text-align: center; color: var(--dim); font-size: 14px; }
.footer img { margin: 0 auto 14px; }
.footer p { margin: 4px 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--yellow); }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- small screens ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-art { order: -1; }
  .badge { width: min(70vw, 320px); }
  .game, .game-flip { grid-template-columns: 1fr; }
  .game-flip .game-art { order: 0; }
  .game-art img { aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: 1fr; }
  .follow { grid-template-columns: 1fr; text-align: left; margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; }
  .nav-logo img { height: 32px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .hero, .section, .footer { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 72px; }
  .lead { font-size: 17px; }
  .game-body { padding: 26px 22px; }
  .game-name { font-size: 28px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots img:last-child { display: none; }
  .follow { margin: 80px 16px 0; padding: 28px 22px; }
}
