@charset "UTF-8";

:root {
  --bg: #0a0a0a;
  --card: #0f0f0f;
  --line: #1c1c1c;
  --line-hover: #2e2e2e;
  --text: #e8e8e8;
  --muted: #6a6a6a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Verdana, "DejaVu Sans", Geneva, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 96px 24px 56px;
}

.wrap {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.sep {
  color: var(--muted);
  font-weight: 300;
  margin: 0 .15em;
}

/* the phrase grows and shrinks in normal flow so the whole line stays
   centred while it types */
.type,
.type-line {
  display: inline;
  white-space: pre;
}

.caret {
  display: inline-block;
  width: 2px;
  height: .95em;
  margin-left: .06em;
  vertical-align: -.1em;
  background: var(--muted);
  animation: caret-blink 1.05s step-end infinite;
}

.type.static .caret { display: none; }

@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}

.tagline {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.plans {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color .15s ease;
}

.card:hover {
  border-color: var(--line-hover);
}

.card h2 {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  margin: 14px 0 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.cur {
  font-size: 1.1rem;
  font-weight: 400;
  vertical-align: super;
  color: var(--muted);
}

.per {
  margin: 8px 0 20px;
  font-size: .82rem;
  color: var(--muted);
}

.feats {
  list-style: none;
  margin: 0 0 22px;
  padding: 18px 0 0;
  width: 100%;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  font-size: .78rem;
}

.feats li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feats li::before {
  flex: none;
  width: 12px;
  text-align: center;
  font-size: .78rem;
  line-height: 1;
}

.feats .on::before {
  content: "✓";
  color: var(--text);
}

.feats .off::before {
  content: "–";
  color: #333;
}

.feats .off {
  color: #3f3f3f;
}

.buy {
  margin-top: auto;
  width: 100%;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.buy:hover {
  background: #171717;
  border-color: var(--line-hover);
}

.foot {
  color: #3a3a3a;
  font-size: .78rem;
}


/* ---------- supported games grid ---------- */

.sec-title {
  margin: 0 0 22px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.games {
  width: 100%;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.game-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

.shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #151515;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* status dot - colour comes from db.json */
.status {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, #6a6a6a);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .45), 0 0 9px 1px var(--dot, transparent);
}

.status.green { --dot: #4ac16a; }
.status.red { --dot: #e5484d; }
.status.yellow { --dot: #e0b341; }
.status.purple { --dot: #9b6ce8; }
.status.grey { --dot: #6a6a6a; }

.spec-v .status {
  position: static;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px 1px var(--dot, transparent);
}

.shot-letter {
  font-size: 2rem;
  font-weight: 500;
  color: #363636;
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  flex: 1;
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-name {
  font-size: 1.02rem;
  font-weight: 700;
}

.pill {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-desc {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}

.game-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .74rem;
  color: #4f4f4f;
}

.arrow {
  font-family: inherit;
  transition: transform .15s ease;
}

.game-card:hover .arrow {
  transform: translateX(3px);
  color: var(--text);
}

/* ---------- game detail page ---------- */

.page {
  align-items: stretch;
  gap: 40px;
}

.back {
  align-self: flex-start;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.game-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
}

.hero-shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-meta h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero-meta .tagline {
  text-align: left;
  font-size: .92rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.btn:hover {
  background: #171717;
  border-color: var(--line-hover);
}

.btn.primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0a0a;
}

.btn.primary:hover {
  background: #c9c9c9;
  border-color: #c9c9c9;
}

.btn.disabled {
  color: #3f3f3f;
  pointer-events: none;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.spec {
  flex: 1 1 180px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.spec-k {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-v {
  font-size: .95rem;
  font-weight: 700;
}

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px 30px;
}

.group h4 {
  margin: 0 0 12px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .79rem;
  line-height: 1.45;
  color: #b9b9b9;
}

.group li {
  display: flex;
  gap: 9px;
}

.group li::before {
  content: "";
  flex: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3a3a3a;
  margin-top: .55em;
}

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

@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-hero { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* ---------- interactive menu ---------- */

.menu-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-note {
  margin: -8px 0 22px;
  max-width: 520px;
  text-align: center;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}

.menu-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 26px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.menu-stage > div { max-width: 100%; }

/* ---------- sellers ---------- */

.sellers {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.seller {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.seller:not(.soon):hover {
  border-color: var(--line-hover);
  transform: translateY(-3px);
}

.seller-shot {
  position: absolute;
  inset: 0;
  display: block;
  background: #141414;
}

.seller-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* keeps the name legible over any artwork */
.seller::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
  pointer-events: none;
}

.seller-name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  z-index: 2;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 10, .78);
  border: 1px solid rgba(245, 205, 60, .5);
  color: #f5cd3c;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.seller-badge svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex: none;
}

.seller.soon {
  cursor: default;
  border-style: dashed;
}

.seller.soon .seller-shot { background: #101010; }
.seller.soon .seller-name { color: #4f4f4f; font-weight: 400; }
.seller.soon::after { display: none; }

/* ---------- modal ---------- */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 30px 28px 26px;
  background: var(--card);
  border: 1px solid var(--line-hover);
  border-radius: 14px;
  text-align: center;
}

.modal-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-sub {
  margin: 0 0 22px;
  font-size: .84rem;
  color: var(--muted);
}

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

.modal-actions .btn { min-width: 116px; text-align: center; }
.modal-actions .btn[hidden] { display: none; }

.modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: 400 20px/1 Tahoma, sans-serif;
  cursor: pointer;
}

.modal-x:hover { color: var(--text); background: #1a1a1a; }

@media (max-width: 1000px) {
  .sellers { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 780px) {
  .sellers { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .sellers { grid-template-columns: repeat(2, 1fr); }
}
