:root {
  color-scheme: dark;
  --bg: #05141e;
  --panel: #0b2531;
  --line: #244552;
  --text: #d8eaef;
  --muted: #94b1bd;
  --cyan: #20e1ce;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 0, #123f4b 0, transparent 45%), var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    sans-serif;
}
header,
main,
footer {
  max-width: 1260px;
  margin: auto;
  padding: 24px 36px;
}

header,
nav,
.row {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}
header {
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--cyan);
  text-decoration: none;
}
.brand {
  font-size: 24px;
  letter-spacing: 5px;
  color: var(--text);
  font-weight: 750;
}
button,
.button {
  border: 1px solid var(--line);
  background: #10303d;
  border-radius: 7px;
  color: var(--text);
  padding: 11px 18px;
  cursor: pointer;
  font: inherit;
}
button:hover {
  border-color: var(--cyan);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.primary {
  background: var(--cyan);
  color: #00242a;
  font-weight: 750;
}
.notice {
  font-size: 13px;
  border: 1px solid #625834;
  color: #ead896;
  background: #292919;
  padding: 10px 16px;
  border-radius: 7px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 650;
}
h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 16px 0;
}
h2 {
  line-height: 1.2;
}
p {
  color: var(--muted);
}
.intro {
  max-width: 660px;
  font-size: 19px;
}
.hero {
  padding: 40px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.card,
.panel {
  background: linear-gradient(145deg, #102e3b, #081d28);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.card button {
  margin: 0 22px 22px;
}
.card-body,
.panel {
  padding: 24px;
}
.cover {
  height: 190px;
  background: linear-gradient(120deg, #155563, #071e2a);
  position: relative;
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stamp {
  position: absolute;
  right: 18px;
  bottom: 16px;
  border: 2px solid #59efe1aa;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #08212ba8;
  color: var(--cyan);
  font-size: 36px;
}
.badge {
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 32px;
}
.detail .cover {
  height: 310px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
}
.plan {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-heading {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  margin: 20px 0 24px;
}
.product-heading .cover {
  height: 160px;
  border-radius: 10px;
}
.product-heading .cover img {
  object-fit: contain;
}
.product-heading h1 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 8px 0;
  letter-spacing: -1px;
}
.product-heading p {
  margin: 6px 0;
}
.offer-section h2 {
  font-size: 24px;
  margin: 0;
}
.offer-section h3 {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 8px;
}
.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.sale-pill {
  border-radius: 4px;
  padding: 2px 6px;
  background: var(--cyan);
  color: #00242a;
  font-size: 12px;
  font-weight: 800;
}
.plan.on-sale {
  border-color: #26bbaa;
}
.plan .price {
  font-size: 25px;
  line-height: 1.25;
}
.plan del {
  font-size: 13px;
  white-space: nowrap;
}
.plan small {
  font-size: 12px;
  line-height: 1.4;
  display: block;
}
.plan .badge {
  font-size: 11px;
  margin: 0;
}
.plan button {
  margin-top: auto;
  padding: 7px 10px;
  font-size: 13px;
}
.subscription-plans {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-section {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.feature-section video {
  max-width: 720px;
}
.media-preview {
  display: block;
  margin-top: 10px;
}
.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #041721;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.upload-feedback {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--cyan);
}
button:disabled,
input:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 600px) {
  .product-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-heading .cover {
    height: 150px;
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subscription-plans {
    grid-template-columns: 1fr;
  }
  .offer-section .row {
    gap: 4px;
  }
  .offer-top {
    flex-wrap: wrap;
  }
}
.price {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
small {
  color: var(--muted);
}
del {
  font-size: 16px;
  color: var(--muted);
  margin-right: 8px;
}
video {
  width: 100%;
  max-height: 440px;
  border-radius: 10px;
  background: #000;
}
.markdown h2 {
  margin-top: 32px;
}
.markdown li {
  margin: 8px 0;
  color: var(--muted);
}
label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
  color: var(--muted);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: #041721;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  color: var(--text);
  font: inherit;
}
input[type='checkbox'] {
  display: inline;
  width: auto;
}
textarea {
  min-height: 140px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(480px, 94vw);
  padding: 30px;
}
dialog::backdrop {
  background: #000b;
}
.close {
  float: right;
  padding: 4px 12px;
}
.editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wide {
  grid-column: 1/-1;
}
.plan-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  margin: 12px 0;
}
.plan-editor label {
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
#status,
#login-error {
  color: #ffc195;
  white-space: pre-wrap;
}
.order {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 760px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  header {
    align-items: flex-start;
  }
  .brand {
    font-size: 18px;
  }
  nav {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .detail,
  .editor {
    grid-template-columns: 1fr;
  }
  .plan-editor {
    grid-template-columns: 1fr 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  h1 {
    letter-spacing: -1px;
  }
}

/* A full-width banner keeps product identity separate from the compact comparison. */
.product-heading {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.product-heading .cover {
  height: 220px;
  border-radius: 0;
}
.product-heading .cover img {
  object-fit: cover;
}
.product-heading .cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #04141eeb, #04141e35), linear-gradient(0deg, #04141ec9, transparent);
}
.product-heading > div:last-child {
  position: absolute;
  left: 26px;
  right: 90px;
  bottom: 22px;
  z-index: 1;
}
.product-heading h1 {
  color: #f3fcff;
  text-shadow: 0 2px 8px #0009;
}
.product-heading p:not(.eyebrow) {
  color: #d5e8ee;
  max-width: 740px;
}
.product-heading .stamp {
  z-index: 2;
}
.option-card {
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: start;
  gap: 9px;
  padding: 12px;
  cursor: pointer;
}
.option-card input[type='radio'] {
  margin: 4px 0 0;
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
}
.option-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.option-card .price {
  font-size: 23px;
}
.option-card .offer-top {
  font-size: 13px;
  min-height: 23px;
}
.option-card.is-selected {
  border-color: var(--cyan);
  background: #103e47;
  box-shadow: 0 0 0 1px var(--cyan);
}
.option-card:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 14px;
  background: var(--panel);
}
.checkout-bar small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.checkout-bar button {
  min-width: 175px;
  flex-shrink: 0;
}
.markdown {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.markdown ul,
.markdown ol {
  padding-left: 24px;
  margin: 10px 0 18px;
}
.markdown li {
  margin: 5px 0;
}
.markdown li > p {
  margin: 5px 0;
}
.markdown li:has(> input[type='checkbox']) {
  list-style: none;
}
.markdown input[type='checkbox'] {
  appearance: auto;
  width: 14px;
  height: 14px;
  margin: 0 8px 0 -20px;
  accent-color: var(--cyan);
  opacity: 1;
  cursor: default;
  vertical-align: middle;
}
.markdown blockquote {
  border-left: 3px solid var(--cyan);
  padding: 4px 18px;
  margin-left: 0;
  background: #0b2531;
}
.markdown pre {
  overflow: auto;
  padding: 16px;
  background: #03101a;
  border-radius: 6px;
  white-space: pre;
}
.markdown code {
  font-size: 0.9em;
  background: #03101a;
  padding: 2px 4px;
  border-radius: 3px;
}
.markdown table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
  margin: 18px 0;
}
.markdown th,
.markdown td {
  padding: 8px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.markdown th {
  background: var(--panel);
}
.markdown img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.markdown hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
@media (max-width: 600px) {
  .product-heading .cover {
    height: 210px;
  }
  .product-heading > div:last-child {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }
  .product-heading h1 {
    font-size: 28px;
  }
  .product-heading .stamp {
    display: none;
  }
  .checkout-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .option-card {
    padding: 10px;
    gap: 6px;
  }
  .option-card .price {
    font-size: 21px;
  }
}

/* Compact membership collection matches the desktop game library. */
.membership-library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:20px; margin:24px 0 48px; }
.library-game { overflow:hidden; min-width:0; }
.library-game-art { position:relative; aspect-ratio:4/3; background:linear-gradient(145deg,#125365,#061a26); }
.library-game-art img { width:100%; height:100%; object-fit:cover; display:block; }
.library-game-art::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,#071b27); pointer-events:none; }
.library-tier { position:absolute; z-index:1; top:12px; right:12px; display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid #49818b; border-radius:24px; background:#061b27ee; font-size:12px; font-weight:700; }
.library-game .card-body { padding:16px; }
.library-game h2 { font-size:17px; margin:0 0 8px; }
.library-game p,.library-game small { font-size:12px; color:var(--muted); }
.library-art-placeholder { display:grid; place-items:center; height:100%; letter-spacing:.25em; }
@media(min-width:1100px) { .membership-library-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
