/* Smudged Cat Games — shared stylesheet */

:root {
  --bg: #0c0b10;
  --bg-raised: #16141c;
  --bg-raised-2: #1e1b26;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eeebf5;
  --muted: #a7a2b6;
  --accent: #f2c14e;
  --accent-ink: #17130a;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.theme-shuggy   { --accent: #9dff4a; --accent-ink: #10200a; --tint: #8a5cf0; }
.theme-gateways { --accent: #ffa42b; --accent-ink: #221300; --tint: #19c37d; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none; overflow: hidden; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
/* crop the paw-print square out of the full logo */
.brand-mark img { width: 62px; max-width: none; margin: -6px 0 0 -11px; }
.brand-name { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.86rem; line-height: 1.2; }
.brand-name span { display: block; font-weight: 600; letter-spacing: 0.5em; font-size: 0.62rem; color: var(--muted); }

.nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.96rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- Home hero ---------- */

.home-hero { position: relative; padding: clamp(64px, 11vw, 140px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(138, 92, 240, 0.28), transparent 70%),
    radial-gradient(55% 65% at 92% 10%, rgba(25, 195, 125, 0.2), transparent 70%);
}
.home-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 14ch; }
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero .lede { max-width: 56ch; margin: 24px 0 32px; font-size: 1.15rem; color: var(--muted); }

.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-cast { grid-column: 2; grid-row: 1; position: relative; width: clamp(220px, 30vw, 380px); }
.cast-shuggy { width: 100%; filter: drop-shadow(0 24px 40px rgba(138, 92, 240, 0.45)); }
.cast-ed { position: absolute; left: -8%; bottom: 2%; width: 26%; image-rendering: pixelated; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-cast { display: none; } }

/* ---------- Home game cards ---------- */

.game-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
}
.game-card + .game-card { margin-top: 28px; }
.game-card:nth-of-type(even) .game-art { order: 2; }

.game-art { position: relative; display: block; min-height: 340px; overflow: hidden; background: #000; }
.game-art > img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-art:hover > img.fill { transform: scale(1.04); }
.game-art .logo-over {
  position: absolute; inset: 0; margin: auto; width: min(62%, 340px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
}

.game-body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.game-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.game-body p { margin: 0; color: var(--muted); }
.game-body .quote { color: var(--text); font-style: italic; border-left: 3px solid var(--accent); padding-left: 14px; }
.game-body .quote cite { display: block; font-style: normal; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- New game strip ---------- */

.next {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 6px);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: linear-gradient(120deg, rgba(242, 193, 78, 0.1), rgba(255, 255, 255, 0.02));
}
.next p { margin: 10px 0 0; color: var(--muted); max-width: 58ch; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about p { color: var(--muted); }
.about p strong { color: var(--text); font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline time { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.timeline b { font-weight: 700; }
.timeline span { display: block; font-size: 0.86rem; color: var(--muted); }
.timeline a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Game page hero ---------- */

.game-hero { position: relative; isolation: isolate; overflow: hidden; }
.game-hero .backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 11, 16, 0.35) 0%, rgba(12, 11, 16, 0.55) 55%, var(--bg) 100%);
}
.game-hero .wrap { padding: clamp(48px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.game-hero .logo { width: min(440px, 78%); filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.65)); }
.theme-gateways .game-hero .logo { width: min(640px, 94%); }
.game-hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.game-hero .tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; max-width: 30ch; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); text-wrap: balance; }
.game-hero .btn-row, .game-hero .chips { justify-content: center; }
.game-hero .chips li { background: rgba(12, 11, 16, 0.6); color: var(--text); }

/* ---------- Overview ---------- */

.overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.overview .prose p { color: var(--muted); }
.overview .prose p:first-of-type { color: var(--text); font-size: 1.16rem; }

.facts { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; text-align: right; font-weight: 600; font-size: 0.94rem; }

/* ---------- Feature grid ---------- */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.features-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .num { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; color: var(--accent); }
.feature h3 { margin: 10px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature .swatch { width: 34px; height: 6px; border-radius: 3px; background: var(--c, var(--accent)); margin-bottom: 16px; }

/* ---------- Trailer ---------- */

.trailer {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #000; cursor: pointer; color: #fff; font: inherit;
}
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.2s ease, transform 0.5s ease; }
.trailer:hover img { opacity: 0.9; transform: scale(1.02); }
.trailer .play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.trailer .play svg { width: 34px; height: 34px; margin-left: 5px; }
.trailer .label { position: absolute; left: 20px; bottom: 16px; font-weight: 700; text-shadow: 0 2px 10px #000; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fineprint { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gallery button {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(5, 4, 8, 0.94); padding: 20px 64px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 80px #000; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 10px; top: 50%; margin-top: -24px; }

/* ---------- Split feature (level pack / map) ---------- */

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split p { color: var(--muted); }
.split .art { display: grid; place-items: center; }
.split .art img.badge { width: min(360px, 80%); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6)); }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); background: #000; padding: 14px; cursor: zoom-in; width: 100%; }
.map-frame img { width: 100%; }

.overview > *, .split > *, .about > * { min-width: 0; }
.sprites { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-top: 22px; }
.sprites img { image-rendering: pixelated; height: 72px; width: auto; }
.sprites img.ed { height: 96px; }

/* ---------- Reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.review { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.reviews-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review .score { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.review blockquote { margin: 0; font-size: 0.98rem; }
.review figcaption { margin-top: auto; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.award { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--bg-raised)); }
.award svg { width: 34px; height: 34px; flex: none; color: var(--accent); }
.award b { display: block; }
.award span { font-size: 0.88rem; color: var(--muted); }
.award a, .review figcaption a { color: var(--accent); text-decoration: none; }
.award a:hover, .review figcaption a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */

.cta { text-align: center; }
.cta .panel {
  padding: clamp(36px, 6vw, 64px) 24px; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--tint, var(--accent)) 30%, transparent), transparent 70%),
    var(--bg-raised);
}
.cta p { color: var(--muted); max-width: 52ch; margin: 14px auto 26px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: #09080c; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.site-footer .blurb { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-top: 14px; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .game-card, .about, .overview, .split, .next { grid-template-columns: 1fr; }
  .game-card:nth-of-type(even) .game-art { order: 0; }
  .game-art { min-height: 0; aspect-ratio: 16 / 10; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .lightbox { padding: 64px 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; margin: 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name span { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- The Far Reaches ---------- */

.theme-farreaches { --accent: #8fe6ff; --accent-ink: #03222c; --tint: #2f6fd0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.fr-hero { position: relative; background: #000; }
.fr-hero picture { display: block; position: relative; }
.fr-hero picture img { width: 100%; max-height: 62vh; object-fit: cover; }
.fr-hero picture::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.fr-hero .wrap {
  position: relative; margin-top: clamp(-56px, -4vw, -20px); padding-bottom: clamp(44px, 6vw, 80px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.fr-hero { background: var(--bg); }
.fr-hero .eyebrow { margin: 0; }
.fr-hero .tagline { margin: 0; max-width: 24ch; font-size: clamp(1.7rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.fr-hero .sub { margin: 0; max-width: 58ch; color: var(--muted); font-size: 1.1rem; }
.fr-hero .btn-row, .fr-hero .chips { justify-content: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.gallery-vr { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 640px) { .gallery-vr { grid-template-columns: 1fr 1fr; } }
.gallery-vr button { aspect-ratio: 6 / 5; }
.shot-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.shot-strip img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.section-foot { margin-top: 28px; }

.split .shot { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.steps b { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }

.statement { text-align: center; }
.statement p.big { font-size: clamp(1.6rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 auto; max-width: 20ch; text-wrap: balance; }
.statement p.big span { color: var(--muted); }
.statement p.small { color: var(--muted); max-width: 52ch; margin: 22px auto 0; }

@media (max-width: 640px) {
  .brand-name { display: none; }
  .shot-strip { grid-template-columns: 1fr 1fr; }
  .shot-strip img:nth-child(3) { display: none; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
}

.nav a { white-space: nowrap; }
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav a { font-size: 0.8rem; }
}
