/* Green Cat Games — site styles. Colours match brand/build_brand.py. */
:root {
  --bg: #0b140e;
  --bg-2: #0f1c13;
  --card: #142419;
  --card-2: #193020;
  --line: #24402c;
  --text: #ecf7e8;
  --muted: #a3bfa8;
  --lime: #b4f04f;
  --leaf: #6fd13a;
  --grass: #2fae35;
  --forest: #13852b;
  --pumpkin: #ff8a1f;
  --pumpkin-2: #ffb347;
  --night: #241a3d;
  --night-2: #3a2a63;
  --radius: 18px;
  --wrap: 1120px;
  --head: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.kicker {
  display: inline-block; font: 600 .8rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 14px;
}
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--lime); color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 600 1.05rem/1 var(--head); text-decoration: none; letter-spacing: .01em;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn-green { background: var(--lime); color: #0b1a0d; box-shadow: 0 6px 24px -8px rgba(180, 240, 79, .7); }
.btn-pumpkin { background: linear-gradient(180deg, var(--pumpkin-2), var(--pumpkin)); color: #2a1400; box-shadow: 0 6px 24px -8px rgba(255, 138, 31, .8); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--leaf); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 20, 14, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 64, 44, .6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font: 500 1rem var(--head);
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--card); }
.nav .btn { padding: 10px 16px; font-size: .95rem; color: #2a1400; margin-left: 6px; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 30px; }
}

/* ---- hero ---- */
.hero { position: relative; padding: 72px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -55% -15% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(111, 209, 58, .18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.hero h1 span { color: var(--lime); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mark { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(19, 133, 43, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mark img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { order: -1; max-width: 200px; justify-self: start; }
}

/* ---- featured game (Cat-o'-Lantern) ---- */
.featured { padding: 56px 0; }
.feature-card {
  position: relative; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, var(--night-2), var(--night) 55%, #160f26);
  border: 1px solid #3d2f66;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; }
.feature-copy { padding: 44px 40px; }
.feature-copy .kicker { color: var(--pumpkin-2); }
.game-title {
  font-family: 'Creepster', var(--head); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--pumpkin); letter-spacing: .02em; text-shadow: 0 3px 0 #7a2e00, 0 0 30px rgba(255, 138, 31, .45);
  margin-bottom: .25em;
}
.beta { font: 700 .72rem/1 var(--head); letter-spacing: .08em; color: #2a1400; background: #ffd23f; padding: 4px 8px; border-radius: 6px; margin-left: 8px; vertical-align: 2px; }
.game-title small { font-size: .45em; vertical-align: super; color: #2a1400; background: #ffd23f; font-family: var(--head); font-weight: 700; padding: 3px 9px; border-radius: 8px; text-shadow: none; letter-spacing: .05em; }
.feature-copy p { color: #d8cdee; }
.halloween {
  display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--head);
  background: rgba(255, 138, 31, .14); color: var(--pumpkin-2); border: 1px solid rgba(255, 138, 31, .35);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.halloween[hidden] { display: none; }
.powers { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 8px; }
.powers li { display: flex; gap: 10px; align-items: baseline; color: #e9e1f7; }
.powers b { font-family: var(--head); font-weight: 600; min-width: 112px; }
.p-witch b { color: #c792ff; } .p-vamp b { color: #ff6b7a; } .p-frank b { color: #b8ec5a; }
.p-skel b { color: #8fa8ff; } .p-gill b { color: #4fe0c0; }
.feature-shot { position: relative; min-height: 100%; }
.feature-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.feature-shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, transparent 22%); pointer-events: none; }
.facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #3d2f66; }
.facts div { font: 500 .85rem var(--head); color: #b9acd6; }
.facts strong { display: block; font-size: 1.5rem; color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-shot { order: -1; aspect-ratio: 16 / 9; }
  .feature-shot::after { background: linear-gradient(0deg, var(--night) 0%, transparent 30%); }
  .feature-copy { padding: 28px 22px 32px; }
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { font: 500 .85rem var(--head); color: var(--muted); padding: 10px 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
/* feature cards under the Cat-o'-Lantern card: screenshot on top, text below */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature div { padding: 16px 20px 20px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---- games grid ---- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 46ch; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.game {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.game:hover { transform: translateY(-3px); border-color: var(--leaf); }
.game .thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--bg-2); }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game h3 { margin-bottom: .3em; }
.game p { color: var(--muted); font-size: .95rem; flex: 1; }
.tag {
  position: absolute; top: 12px; left: 12px; font: 600 .75rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 8px; background: var(--lime); color: #0b1a0d;
}
.tag.soon { background: #2a3a2e; color: var(--muted); border: 1px solid var(--line); }
.game .btn { align-self: flex-start; padding: 11px 18px; font-size: .95rem; }
.mystery {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(111, 209, 58, .16), transparent 60%),
    repeating-linear-gradient(135deg, #102016 0 14px, #0d1a12 14px 28px);
}
.mystery img { width: 34%; height: auto; opacity: .2; filter: grayscale(.3); }
.mystery span { position: absolute; bottom: 12px; right: 14px; font: 500 .8rem var(--head); color: var(--muted); }
@media (max-width: 640px) { .games { grid-template-columns: 1fr; } }

/* ---- about ---- */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.value .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(180, 240, 79, .12); color: var(--lime); }
.value .ico svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.05rem; margin-bottom: .2em; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---- follow ---- */
.follow-card {
  text-align: center; padding: 52px 24px; border-radius: 28px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(111, 209, 58, .22), transparent 70%), var(--card);
  border: 1px solid var(--line);
}
.follow-card p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  font: 500 1rem var(--head); background: var(--bg-2); border: 1px solid var(--line);
  padding: 11px 16px; border-radius: 12px; transition: border-color .15s ease, transform .15s ease;
}
.socials a:hover { border-color: var(--leaf); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.socials a span:first-child { font-weight: 600; }
.socials .handle { color: var(--muted); font-weight: 500; }
.socials .soon-note { color: var(--muted); font: 500 .95rem var(--head); }

/* ---- footer ---- */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer img { height: 28px; width: auto; opacity: .9; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }

/* ---- press page ---- */
.press h2 { margin-top: 1.6em; font-size: 1.6rem; }
.fact-table { width: 100%; border-collapse: collapse; }
.fact-table th, .fact-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 180px; color: var(--muted); font: 500 .95rem var(--head); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.logo-grid a { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid var(--line); padding: 18px; text-decoration: none; }
.logo-grid a.light { background: #f4fbef; }
.logo-grid a.dark { background: var(--bg-2); }
.logo-grid img { max-height: 100%; width: auto; }
.press-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
@media (max-width: 820px) { .press-cols { grid-template-columns: 1fr; } }
.press .gallery { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .press .gallery { grid-template-columns: 1fr; } }
