/* Triple Eh? -- site styles
   Palette: ink #383850, purple #6858A8, cyan #10C0D8, lime #D0D828, paper #FBFAF5 */

:root {
  --ink: #383850;
  --ink-soft: #42425C;
  --ink-deep: #2C2C42;
  --purple: #6858A8;
  --cyan: #10C0D8;
  --lime: #D0D828;
  --paper: #FBFAF5;
  --line: #C7C7D4;
  --line-soft: #DEDEE6;
  --muted: #7A7A96;
  --shadow-sm: 0 2px 6px rgba(56, 56, 80, 0.08);
  --shadow-lg: 0 6px 20px rgba(56, 56, 80, 0.10);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.mono { font-family: 'Space Mono', ui-monospace, monospace; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
}
.site-header .wrap {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header .logo img { height: 44px; width: auto; }
.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
@media (max-width: 700px) {
  .site-header .wrap { gap: 10px; }
  .site-header .logo img { height: 36px; }
  .header-right { width: 100%; justify-content: space-between; }
  .site-nav { flex: 1; gap: 0; }
  .site-nav a { padding: 8px 7px; font-size: 14px; }
}
@media (max-width: 420px) {
  .site-nav { order: 2; width: 100%; justify-content: flex-start; }
  .btn-lime { order: 1; }
  .header-right { flex-wrap: wrap; }
}
.site-nav a {
  padding: 8px 11px;
  font-size: 15px;
  font-weight: 700;
  color: #F2F1EA;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--lime); }
.site-nav a[data-accent="cyan"]:hover { background: var(--cyan); }
.site-nav a[data-accent="purple"]:hover { background: var(--purple); color: var(--paper); }
.site-nav a[aria-current="page"] { background: rgba(251, 250, 245, 0.12); color: #fff; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-lime { background: var(--lime); color: var(--ink); border: 2px solid var(--lime); box-shadow: 0 2px 8px rgba(0,0,0,.22); padding: 10px 20px; font-size: 15px; }
.btn-lime:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-hero { background: var(--cyan); color: var(--ink); border: 2px solid var(--paper); box-shadow: 0 3px 12px rgba(0,0,0,.28); padding: 18px 32px; font-size: clamp(17px, 2vw, 21px); }
.btn-hero:hover { color: var(--ink); }
.btn-buy { background: var(--lime); color: var(--ink); border: 2px solid var(--paper); box-shadow: 0 3px 12px rgba(0,0,0,.28); padding: 18px 32px; font-size: clamp(17px, 2vw, 21px); }
.btn-buy:hover { color: var(--ink); }
.btn-ghost-light { background: none; color: var(--paper); border: 2px solid #6E6E8C; padding: 16px 24px; font-size: 16px; font-weight: 800; }
.btn-ghost-light:hover { border-color: var(--lime); color: var(--lime); }
.btn-ink { background: var(--ink); color: var(--lime); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); padding: 15px 26px; font-size: 17px; }
.btn-ink:hover { color: var(--lime); background: var(--purple); border-color: var(--purple); }
.btn-ghost-ink { background: none; color: var(--ink); border: 2px solid var(--ink); padding: 13px 22px; font-size: 16px; font-weight: 800; }
.btn-ghost-ink:hover { background: var(--ink); color: var(--paper); }
.btn-lime-ink { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); padding: 15px 26px; font-size: 17px; }
.btn-lime-ink:hover { color: var(--ink); background: var(--paper); }

/* ---------- pills & rules ---------- */

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-ink { background: var(--ink); color: var(--lime); }
.pill-sm { padding: 3px 10px; font-size: 11px; letter-spacing: 0; }
.pill-cyan { background: var(--cyan); color: var(--ink); }
.pill-purple { background: var(--purple); color: var(--paper); }
.pill-slate { background: var(--ink); color: var(--paper); }

.tribar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; }
.tribar span { flex: 1; }
.tribar span:nth-child(1) { background: var(--purple); }
.tribar span:nth-child(2) { background: var(--cyan); }
.tribar span:nth-child(3) { background: var(--lime); }
.tribar-sm { width: 72px; height: 6px; }

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

.hero {
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.hero-copy {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--paper);
}
.hero-copy p.lede { margin: 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.45; color: #CFCFE0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-platforms { margin: 0; font-size: 12.5px; color: #8E8EAA; }

/* video */

.media { position: relative; background: var(--ink-deep); min-height: 280px; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(56, 56, 80, .15);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* trailer block on the game pages -- .media is normally clipped by .hero, so it
   carries its own frame when it stands alone */
.media-card { border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.play span {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--ink);
  padding-left: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
}
.play:hover span { background: var(--paper); }

/* ---------- eggnob teaser ---------- */

.teaser {
  background: var(--lime);
  border: 2px solid var(--lime);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.teaser-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.teaser-copy h2 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: .96; font-weight: 900; letter-spacing: -.02em; }
.teaser-copy p { margin: 0; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.45; max-width: 44ch; font-weight: 600; }
.teaser-art { animation: bob 5s ease-in-out infinite; }
.teaser-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .teaser-art { animation: none; } }

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

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { color: var(--ink); border-color: var(--ink); box-shadow: 0 10px 26px rgba(56, 56, 80, .16); transform: translateY(-3px); }
.card.is-soon { border-style: dashed; }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--line-soft); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 26px; font-weight: 900; }
.card-body p { margin: 0; font-size: 16px; line-height: 1.45; color: #55556E; flex: 1; }
.card-more { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 15px; font-weight: 900; }
.card-more i {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: normal;
}

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

.section { padding-top: clamp(32px, 5vw, 60px); }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3.5vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.section-head .note { font-size: 13px; color: var(--muted); }
.kicker { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 4vw, 48px); align-items: start; }
.about-label { display: flex; flex-direction: column; gap: 12px; max-width: 26ch; }
.about-body { grid-column: span 2; max-width: 70ch; }
.about-body p { margin: 0 0 20px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-soft); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quotes blockquote {
  margin: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quotes p { margin: 0; flex: 1; font-size: 18px; line-height: 1.45; font-weight: 600; }
.quotes cite { font-family: 'Space Mono', ui-monospace, monospace; font-size: 12.5px; font-style: normal; color: var(--muted); text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a {
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-deep);
  display: block;
  transition: border-color .15s;
}
.gallery a:hover { border-color: var(--cyan); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.videos a {
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-deep);
  display: block;
  position: relative;
  transition: border-color .15s;
}
.videos a:hover { border-color: var(--cyan); }
.videos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.videos span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
}

.band {
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.band-purple { background: var(--purple); border: 2px solid var(--purple); box-shadow: var(--shadow-lg); }
.band-purple h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--paper); }
.band-purple p { margin: 0; font-size: 17px; color: #E4E0F4; font-weight: 600; }
.band-white { background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-lg); }
.band-white h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.band-white p { margin: 0; font-size: 17px; line-height: 1.5; color: #55556E; font-weight: 600; max-width: 52ch; }

.closer {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.closer h2 { margin: 0; font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; color: var(--paper); text-wrap: balance; }

.notes { border: 2px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); background: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.notes p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; font-weight: 600; }

.back-link { display: inline-block; padding: 0 0 16px; font-family: 'Space Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }

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

.site-footer { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 40px; }
.footer-top { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.footer-id { display: flex; flex-direction: column; gap: 12px; }
.footer-id img { width: 190px; height: auto; }
.footer-id p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.copyright { margin: 26px 0 0; font-size: 12px; color: #9A9AB2; }

/* ---------- buy sheet ---------- */

.sheet[hidden] { display: none; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(44, 44, 66, .6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px;
  animation: fadeIn .18s ease-out;
}
.sheet-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 14px 22px 34px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(44, 44, 66, .3);
  animation: sheetUp .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet-grab { width: 44px; height: 5px; border-radius: 999px; background: var(--line-soft); margin: 0 auto 16px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sheet-head h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.sheet-title { display: flex; flex-direction: column; gap: 8px; }
.sheet-title .tribar { width: 56px; height: 5px; }
.sheet-close {
  background: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
}
.sheet-close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sheet-blurb { margin: 10px 0 20px; font-family: 'Space Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.stores { display: flex; flex-direction: column; gap: 8px; }
.stores a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  min-height: 60px;
  transition: border-color .15s;
}
.stores a:hover { border-color: var(--ink); color: var(--ink); }
.stores .store-name { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.stores .store-name b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.stores .store-name small { font-family: 'Space Mono', ui-monospace, monospace; font-size: 11.5px; color: #8A8AA0; }
.stores i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  font-style: normal;
}
.sheet-else { margin-top: 22px; padding-top: 18px; border-top: 2px solid #E7E7EE; }
.sheet-else p { margin: 0 0 10px; font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9A9AB2; }
.sheet-else div { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-else a {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.sheet-else a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- lightbox ---------- */

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(56, 56, 80, .92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 74vh; border: 2px solid var(--paper); border-radius: 12px; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: 12px; }
.lightbox-bar button {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  width: 56px;
  height: 56px;
  font-size: 20px;
  font-weight: 900;
}
.lightbox-bar .count { font-family: 'Space Mono', ui-monospace, monospace; font-size: 13px; color: var(--paper); min-width: 64px; text-align: center; }
.lightbox-bar .close { width: auto; padding: 15px 20px; font-size: 15px; font-weight: 800; background: none; color: var(--paper); border-color: #8E8EAA; }
