/* Suspiciously Good Games — studio site. No external fonts or requests. */

:root {
  --bg: #14100d;
  --bg-2: #1b1511;
  --panel: #221a14;
  --panel-2: #2b2119;
  --ink: #fbf1dc;
  --muted: #cdbb9d;
  --gold: #f6b324;
  --gold-2: #ffc94a;
  --orange: #f08a1c;
  --pink: #e9837a;
  --black: #0b0807;
  --fur: #2a201d;
  --green: #6bd69a;
  --line: rgba(251, 241, 220, 0.1);
  --night-1: #2e2350;
  --night-2: #1c1733;
  --display: "Arial Rounded MT Bold", ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

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

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 16, 13, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; transition: transform 0.3s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span { font-family: var(--display); font-size: 1.02rem; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(251, 241, 220, 0.07); }
.lang {
  margin-left: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(246, 179, 36, 0.55); background: transparent; color: var(--gold);
  font: 700 0.85rem/1 var(--sans); letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.lang:hover { background: var(--gold); color: var(--black); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - 64px), 900px);
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: 56px 0 88px;
  background:
    radial-gradient(120% 80% at 75% 0%, var(--night-1) 0%, var(--night-2) 45%, rgba(20, 16, 13, 0) 80%),
    linear-gradient(180deg, var(--night-2) 0%, var(--bg) 100%);
}
.sky { position: absolute; inset: 0; z-index: -2; }
.star {
  position: absolute; width: 3px; height: 3px; background: var(--ink); opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite;
}
.star.big { width: 4px; height: 4px; background: var(--gold-2); box-shadow: 0 0 8px rgba(255, 201, 74, 0.8); }
@keyframes twinkle { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.15; } }

.hero-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -30%; width: 120%; height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(240, 138, 28, 0.28), rgba(240, 138, 28, 0) 70%);
  pointer-events: none;
}

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(620px, 100%); margin: 0 auto 8px; }
.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-10px) rotate(0.6deg); } }

.tagline {
  font-family: var(--display); color: var(--gold);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); margin: 0 0 10px;
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 34em; margin-bottom: 28px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font: 700 1.05rem/1.1 var(--display); text-decoration: none;
  border: 3px solid var(--black);
  box-shadow: 0 5px 0 var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--black); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--black); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(251, 241, 220, 0.06); color: var(--ink); border-color: rgba(251, 241, 220, 0.85); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.6); }
.btn-ghost:hover { background: rgba(251, 241, 220, 0.14); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.6); }
.btn-dark { background: var(--black); color: var(--ink); border-color: var(--black); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); word-break: break-all; }
.btn-dark:hover { background: #241b16; box-shadow: 0 7px 0 rgba(0, 0, 0, 0.35); }

/* ---------- Ticker ---------- */

.ticker-wrap { position: relative; z-index: 2; margin-top: -48px; padding: 22px 0 30px; overflow: hidden; }
.ticker {
  position: relative;
  margin: 0 -2%; width: 104%;
  background: var(--gold); color: var(--black);
  border-block: 3px solid var(--black);
  transform: rotate(-1.6deg);
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
}
.ticker-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  padding: 12px 0;
  font: 700 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em;
  animation: ticker 40s linear infinite;
}
.ticker-track i { font-style: normal; font-size: 0.9rem; color: #7a4a00; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px;
}
.kicker .paw { width: 18px; height: 18px; fill: currentColor; transform: rotate(-14deg); }
.kicker-dark { color: var(--black); }

h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 40px; max-width: 18em; }

/* ---------- Games ---------- */

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.game {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(246, 179, 36, 0); transition: box-shadow 0.25s ease;
}
.game:hover { transform: translateY(-5px); box-shadow: 0 15px 0 rgba(0, 0, 0, 0.45); }
.game:hover::after { box-shadow: inset 0 0 0 2px rgba(246, 179, 36, 0.75); }

.game-media { aspect-ratio: 7 / 4; overflow: hidden; background: var(--black); border-bottom: 3px solid var(--black); }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game:hover .game-media img { transform: scale(1.04); }
.game-media.pixel img { image-rendering: pixelated; }

.game-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1.8rem; margin-bottom: 8px; }
.game-body > p:not(.status) { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips li {
  padding: 4px 11px; border-radius: 999px;
  background: rgba(251, 241, 220, 0.08); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em;
}

.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; margin-bottom: 12px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--green); }
.status-live .dot { animation: pulse 2s ease-out infinite; }
.status-dev { color: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 214, 154, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(107, 214, 154, 0); } }

.game-links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.link-arrow, .link-plain { font-weight: 700; text-decoration: none; }
.link-arrow { color: var(--gold); }
.link-arrow span:last-child { display: inline-block; transition: transform 0.2s; }
.link-arrow:hover span:last-child { transform: translateX(4px); }
.link-arrow:hover span:first-child, .link-plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-plain { color: var(--ink); }
.link-soon { color: var(--muted); font-weight: 600; font-style: italic; }

/* The classified one */
.game-secret { grid-column: 1 / -1; flex-direction: row; align-items: stretch; background: var(--bg-2); }
.secret-dark {
  flex: 0 0 42%; display: grid; place-items: center; padding: 36px 24px;
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(246, 179, 36, 0.09), rgba(0, 0, 0, 0) 70%),
    repeating-linear-gradient(135deg, #0d0a08 0 14px, #100c0a 14px 28px);
  border-right: 3px solid var(--black);
}
.eyes-glow { width: min(240px, 70%); overflow: visible; filter: drop-shadow(0 0 10px rgba(246, 179, 36, 0.55)); }
.game-secret .game-body { justify-content: center; padding: 32px 36px; }
.game-secret .chips li { background: rgba(240, 138, 28, 0.15); border-color: rgba(240, 138, 28, 0.4); color: var(--gold-2); text-transform: uppercase; letter-spacing: 0.12em; }
.game-secret h3 { font-size: 2.1rem; }
.game-secret p { font-size: 1.08rem; margin: 0; }

/* Eyes, used by the classified card and the footer cat */
.eye { transform-box: fill-box; transform-origin: center; transition: transform 0.09s ease-in; }
.blink .eye { transform: scaleY(0.08); }

/* ---------- Studio ---------- */

.studio { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.studio-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.studio-grid h2 { margin-bottom: 24px; }
.studio-grid > div > p { color: var(--muted); font-size: 1.1rem; max-width: 30em; }

.values { display: grid; gap: 16px; }
.values li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.values li:hover { border-color: rgba(246, 179, 36, 0.5); transform: translateX(4px); }
.values h3 { font-size: 1.2rem; margin-bottom: 4px; }
.values p { margin: 0; color: var(--muted); }
.value-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold); border: 3px solid var(--black); box-shadow: 0 4px 0 var(--black);
}
.value-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--black); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact ---------- */

.contact { padding-bottom: 150px; background: var(--bg-2); }
.contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 0; align-items: center;
  background: var(--gold); color: var(--black);
  border: 3px solid var(--black); border-radius: 28px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.contact-main { padding: 44px 44px 40px; }
.contact-main h2 { margin-bottom: 14px; }
.contact-main > p { font-size: 1.12rem; max-width: 28em; }
.contact-main .btn { margin: 6px 0 22px; }
.contact-manager { font-size: 1rem !important; margin: 0 0 10px; }
.contact-manager a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact-manager a:hover { text-decoration-style: wavy; }
.contact-note { font-size: 0.95rem !important; margin: 0; opacity: 0.8; }

.contact-art { display: grid; place-items: center; padding: 28px 56px 28px 0; }
.contact-art img {
  width: 230px; height: auto;
  transform: rotate(8deg);
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}
.contact-card:hover .contact-art img { transform: rotate(-4deg) scale(1.04); }

/* ---------- Footer and its cat ---------- */

.foot { position: relative; background: #0e0b09; border-top: 4px solid var(--gold); padding: 40px 0 36px; }

.cat-perch { position: absolute; right: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); bottom: 100%; width: 190px; height: 112px; pointer-events: none; }
.cat-clip { position: absolute; inset: 0; overflow: hidden; }
.cat {
  position: absolute; left: 0; right: 0; bottom: -2px;
  padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cat svg { width: 100%; display: block; overflow: visible; }
.js .cat { transform: translateY(105%); }
.js .cat-perch.seen .cat { transform: translateY(0); }
.js .cat-perch.seen .cat.duck { transform: translateY(35%); transition-duration: 0.12s; }
.cat:focus-visible { outline-offset: -6px; }

.cat .rim { fill: none; stroke: var(--gold); stroke-width: 11; stroke-linejoin: round; }
.cat .fur { fill: var(--fur); stroke: var(--black); stroke-width: 5; stroke-linejoin: round; }
.cat .ear { fill: var(--pink); stroke: var(--black); stroke-width: 2.5; stroke-linejoin: round; }
.cat .tuft { fill: none; stroke: var(--black); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.cat .whisker { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.cat .brow { fill: none; stroke: var(--black); stroke-width: 5; stroke-linecap: round; }
.cat .nose { fill: var(--pink); stroke: var(--black); stroke-width: 2; stroke-linejoin: round; }
.cat .mouth { fill: none; stroke: var(--black); stroke-width: 3; stroke-linecap: round; }
.cat .toe { fill: none; stroke: var(--black); stroke-width: 3; stroke-linecap: round; }
.cat .eye-line { fill: none; stroke: var(--black); stroke-width: 5; }

.bubble {
  position: absolute; right: 70%; bottom: 82%; z-index: 2;
  margin: 0; padding: 8px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--ink); color: var(--black); border: 3px solid var(--black);
  font: 700 0.95rem/1.25 var(--display);
  width: max-content; max-width: 280px;
  opacity: 0; transform: translateY(6px) scale(0.9); transform-origin: bottom right;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.bubble.show { opacity: 1; transform: translateY(0) scale(1); }

.foot-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot-note, .foot-copy { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- 404 ---------- */

.lost { min-height: calc(100svh - 64px - 120px); display: grid; place-items: center; text-align: center; padding: 72px 0 140px; }
.lost .eyes-glow { width: 200px; margin: 0 auto 28px; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.lost p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-art img { width: 180px; }
  .contact-art { padding-right: 36px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .contact { padding-bottom: 140px; }
  .brand span { display: none; }
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
  .games { grid-template-columns: 1fr; gap: 24px; }
  .game-secret { flex-direction: column; }
  .secret-dark { flex-basis: auto; border-right: 0; border-bottom: 3px solid var(--black); padding: 30px 20px; }
  .game-secret .game-body { padding: 22px 24px 26px; }
  .hero { min-height: 0; padding: 44px 0 96px; }
  .ticker-track { font-size: 1rem; padding: 10px 0; }
  .contact-main { padding: 32px 24px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-art { display: none; }
  h2 { margin-bottom: 28px; }
  .cat-perch { width: 150px; height: 88px; }
  .bubble { right: 28%; max-width: min(260px, calc(100vw - 80px)); }
  .foot-row { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .nav a { padding: 8px 6px; font-size: 0.85rem; }
  .lang { margin-left: 2px; padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
