/* 3managames — multi-game studio site.
   Deep violet-navy, one accent gradient, large visual cards. */

:root {
  --bg:      #08060f;
  --bg-alt:  #0d0a1c;
  --panel:   #14102b;
  --panel-2: #1a1440;
  --border:  #2a2150;
  --fg:      #f2f0fa;
  --muted:   #9c94bd;
  --violet:  #8b5cf6;
  --violet-2:#c084fc;
  --grad:    linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #c084fc 100%);

  --wrap: 1200px;
  --r:    16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Real key art: set to url("/art/hero.jpg") and drop the file in site/art/. */
  --hero-image: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { letter-spacing: -.025em; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 200;
  background: var(--violet); color: #fff;
  padding: 10px 16px; border-radius: 8px;
}
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }

.label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--violet-2);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { border-color: var(--border); color: var(--fg); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: var(--panel-2); }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.topbar.is-solid {
  background: rgba(8, 6, 15, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(168,85,247,.45);
}

.topnav { display: flex; gap: 26px; font-size: 15px; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.topnav a:hover { color: var(--fg); }

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.burger span { display: block; width: 17px; height: 2px; background: var(--fg); }

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

.hero { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-art {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #0b0820;
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(124,58,237,.55);
}



.hero-art-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(8,6,15,.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.04;
  font-weight: 800;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--muted);
  max-width: 46ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: clamp(32px, 5vw, 52px) 0 0;
  padding: 24px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
}
.stats li { text-align: center; }
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* -------------------------------------------------------------- sections */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 30px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
}

/* --------------------------------------------------------------- filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.filter:hover { color: var(--fg); border-color: var(--violet); }
.filter.is-active { background: var(--grad); border-color: transparent; color: #fff; }

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
  box-shadow: 0 22px 50px -24px rgba(124,58,237,.7);
}

.card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.card { display: block; text-decoration: none; color: inherit; }
.card-tag {
  margin: 0 0 11px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.theme-violet .card-art { background-image: radial-gradient(80% 80% at 30% 25%, #7c3aed, #150f30 72%); }
.theme-ember  .card-art { background-image: radial-gradient(80% 80% at 70% 30%, #f97316, #2a1220 72%); }
.theme-jade   .card-art { background-image: radial-gradient(80% 80% at 40% 70%, #10b981, #0d2420 72%); }
.theme-rose   .card-art { background-image: radial-gradient(80% 80% at 60% 40%, #f43f5e, #2a1024 72%); }
.theme-azure  .card-art { background-image: radial-gradient(80% 80% at 35% 60%, #3b82f6, #0f1a33 72%); }

.ribbon {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(8,6,15,.82);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.card-body { padding: 15px 16px 17px; }
.card-title { margin: 0 0 9px; font-size: 18px; font-weight: 700; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid;
}
.pill.is-live { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); }
.pill.is-dev  { color: var(--violet-2); border-color: rgba(192,132,252,.4); background: rgba(192,132,252,.1); }
.pill.is-soon { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }

.rating { font-size: 13px; font-weight: 700; color: #fbbf24; }

.card-plat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.plat {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  letter-spacing: .04em;
}
.card-cat { margin-left: auto; letter-spacing: .14em; text-transform: uppercase; }

.empty { color: var(--muted); }

/* ----------------------------------------------------------- coming soon */

.soon-panel {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
}


.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(192,132,252,.4);
  background: rgba(192,132,252,.1);
  color: var(--violet-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.soon-body h3 { margin: 0 0 10px; font-size: clamp(23px, 3.4vw, 32px); font-weight: 800; }
.soon-body p { margin: 0 0 20px; color: var(--muted); max-width: 52ch; }

/* ----------------------------------------------------------------- tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tile {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--violet); transform: translateY(-3px); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 17px;
}
.tile h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.tile p  { margin: 0; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- support */

.support { text-align: center; }
.support h2 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 40px); font-weight: 800; }
.support-lede { margin: 0 auto 28px; color: var(--muted); max-width: 46ch; }

.email {
  display: inline-block;
  font-size: clamp(19px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
  word-break: break-word;
}
.email:hover { border-bottom-color: var(--violet); }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(34px, 5vw, 52px);
  border-bottom: 1px solid var(--border);
}
.footer-cta h2 { margin: 0 0 4px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; }
.footer-cta p  { margin: 0; color: var(--muted); }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { color: var(--fg); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art  { order: 2; aspect-ratio: 16 / 10; }
  .hero-copy { order: 1; }
  .soon-panel { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .topbar-inner > .btn { display: none; }
  .topnav {
    position: absolute;
    inset: 70px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 18px;
    background: rgba(8,6,15,.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    display: none;
  }
  .topbar.nav-open .topnav { display: flex; }
  .topnav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-title { font-size: 15px; }
  .card-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .card:hover, .tile:hover { transform: none; }
}


/* ====================================================== game detail page = */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: .4; }
.crumbs [aria-current] { color: var(--fg); }

.detail { padding: clamp(24px, 4vw, 44px) 0 clamp(48px, 7vw, 80px); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 800;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  align-items: center;
}

.detail-body p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 54ch;
}


.detail-media { position: sticky; top: 92px; }

.stage {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background-color: #0b0820;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px -34px rgba(124,58,237,.6);
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #0b0820;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}
.thumb:hover { opacity: .85; transform: translateY(-2px); }
.thumb.is-active { opacity: 1; border-color: var(--violet); }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { position: static; order: -1; }
}
