/* ===== Heck Studios — shared styles ===== */
:root {
  /* Palette pulled from the logo: shiba gold, cream lettering, olive green */
  --bg: #12130f;
  --bg-raised: #1b1d16;
  --bg-card: #22251c;
  --border: #363a2c;
  --text: #f8eed2;
  --muted: #aeab95;
  --accent: #f2b33d;
  --accent-2: #f7dc96;
  --green: #7d9a5c;
  --radius: 14px;
  --max: 1100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--accent-2); }
a:hover { color: var(--accent); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 13, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo img { width: 44px; height: 44px; }
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--bg-raised); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-card); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
}

/* ----- Hero ----- */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(125, 154, 92, 0.28), transparent 60%);
}
.hero-logo {
  width: min(320px, 70vw);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.hero h1 .flame {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1b1d16;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #f7c45e; color: #1b1d16; transform: translateY(-1px); }
.btn.secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { color: var(--text); }
.btn.secondary:hover { background: var(--border); }

/* ----- Sections ----- */
.section { padding: 3.5rem 0; }
.page-header { padding: 3.5rem 0 1rem; }
.page-header h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 0.5rem; }
.page-header p { color: var(--muted); margin: 0; max-width: 640px; }
.section-title { font-size: 1.8rem; margin: 0 0 1.5rem; }

/* ----- Games grid ----- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.game-art {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #3d4a2c, #4a3a1c);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; }

.game-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.game-body p { color: var(--muted); margin: 0 0 1rem; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--muted);
}
.tag.status { color: var(--accent); border-color: rgba(242, 179, 61, 0.45); }

.game-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.game-links a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.game-links a:hover { border-color: var(--accent); }

/* ----- Cards / panels ----- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.contact-grid .panel h3 { margin: 0 0 0.4rem; }
.contact-grid .panel p { margin: 0; color: var(--muted); }
.contact-grid .panel a { word-break: break-all; }
.contact-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

/* ----- Forms ----- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
label .optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.rating { display: flex; gap: 0.35rem; flex-direction: row-reverse; justify-content: flex-end; }
.rating input { position: absolute; opacity: 0; width: 0; }
.rating label {
  font-size: 1.8rem;
  color: var(--border);
  cursor: pointer;
  margin: 0;
  transition: color 0.1s;
}
.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label { color: var(--accent-2); }
.rating input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }

.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #6fdc8c; }
.form-status.err { color: #ff6b6b; }

/* ----- Privacy / prose ----- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.prose p, .prose li { color: #ddd6c0; }
.prose ul { padding-left: 1.25rem; }
.prose .meta { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
