/* Wise Guy Games — shared styles */

:root {
  --bg: #0c0c10;
  --bg-alt: #15151b;
  --card: #1b1b23;
  --border: #2b2b35;
  --text: #eceef2;
  --text-dim: #a7a9b4;
  --accent: #ff3b4e;
  --accent-dim: #b8202f;
  --accent-glow: rgba(255, 59, 78, 0.35);
  --focus: #7fd4ff;
  --radius: 14px;
  --max-width: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-social img {
  height: 22px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.header-social a:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(1.1);
  transform: scale(1.03);
}

.hero-inner {
  position: relative;
  padding: 5.5rem 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: #ff5064;
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
}

/* Sections */
main section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head .eyebrow { margin-bottom: 0.75rem; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

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

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
}

.game-card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card .body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.badge {
  align-self: flex-start;
  background: var(--accent-glow);
  color: #ff8a94;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.badge.muted {
  background: rgba(167, 169, 180, 0.15);
  color: var(--text-dim);
}

.game-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.game-card p {
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}

.game-card .card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.coming-soon-card {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  min-height: 220px;
  padding: 1.5rem;
}

/* Store badges */
.store-badges {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.store-badges img {
  height: 54px;
  width: auto;
}

/* Screenshot gallery */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.screens img {
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Feature graphic */
.feature-graphic {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* Legal / content pages */
.legal {
  padding: 4rem 0 6rem;
}

.legal .wrap {
  max-width: 780px;
}

.legal h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
  color: #fff;
}

.legal p, .legal li {
  color: var(--text-dim);
}

.legal ul { padding-left: 1.25rem; }

.legal a.inline-link {
  color: var(--accent);
  text-decoration: underline;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.deletion-option {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.deletion-option h3 {
  margin-top: 0;
  color: #fff;
}

.deletion-option ol {
  color: var(--text-dim);
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.footer-brand img { height: 32px; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    z-index: 90;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .header-social { display: none; }
  .hero-inner { padding: 3.5rem 1.25rem 3rem; }
}
