:root {
  color-scheme: light;
  --ink: #10151b;
  --muted: #5d6670;
  --paper: #f4f7f8;
  --panel: #ffffff;
  --soft: #eaf1f5;
  --line: #cbd7df;
  --aqua: #22a9d8;
  --aqua-dark: #0874a8;
  --green: #58c66a;
  --green-dark: #237e43;
  --gold: #f0b72a;
  --coral: #ed5d54;
  --plum: #604b91;
  --black: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(34, 169, 216, 0.08) 0 26px, transparent 26px 56px),
    var(--paper);
}

a {
  color: inherit;
}

.topbar {
  max-width: none;
  margin: 0;
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(22px, calc((100vw - 1160px) / 2 + 22px)) 18px;
  color: white;
  background: #0c0f12;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.24);
}

.brand span {
  font-size: 1.38rem;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 9px 12px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.nav a[aria-current="page"] {
  background: var(--aqua);
  border-color: var(--aqua);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px 92px;
}

.hero {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: center;
  padding: 54px 0 46px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  bottom: 22px;
  width: 48%;
  min-width: 380px;
  background: url("launcher-icon.png") right center / contain no-repeat;
  opacity: 0.18;
  filter: saturate(1.1);
  pointer-events: none;
}

.hero.crossy-hero::before {
  background-image: url("crossy-road-cheats.png");
  opacity: 0.2;
}

.hero.poptropica-hero::before {
  background-image: url("poptropica-cheats.png");
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--gold);
  color: #312100;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(144, 96, 0, 0.22);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: 4.65rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 1000;
}

.lead {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--aqua);
  color: white;
  box-shadow: 0 6px 0 var(--aqua-dark);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
}

.button.secondary {
  background: var(--green);
  color: #06250f;
  box-shadow: 0 6px 0 var(--green-dark);
}

.button.neutral {
  background: #20262d;
  color: white;
  box-shadow: 0 6px 0 #090b0d;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: translateY(3px);
  box-shadow: none;
}

section {
  margin-top: 26px;
}

.band {
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 0 rgba(16, 20, 24, 0.12);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.section-note {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
  font-weight: 700;
}

.download-grid,
.game-grid,
.game-selector,
.status-grid,
.choice-grid,
.form-grid,
.cheat-grid {
  display: grid;
  gap: 12px;
}

.download-grid {
  grid-template-columns: minmax(0, 1fr) 190px 190px 190px;
  align-items: stretch;
}

.download-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.download-main img,
.game-card img,
.game-select-card img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(16, 20, 24, 0.12);
}

.stat {
  padding: 13px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid #d5e1e8;
}

.stat span,
.small-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat b {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.2;
}

.checksum {
  margin-top: 12px;
  padding: 12px;
  border-radius: 7px;
  background: var(--black);
  color: #d7f5ff;
  font: 0.78rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.install-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 750;
}

.install-steps li + li {
  margin-top: 9px;
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-browser {
  display: grid;
  gap: 16px;
}

.game-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card,
.game-select-card,
.status-card,
.choice-card,
.cheat-card {
  padding: 16px;
  border-radius: 8px;
  background: white;
  border: 2px solid rgba(16, 20, 24, 0.1);
}

.game-card,
.game-select-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  min-height: 178px;
}

.game-link {
  color: inherit;
  text-decoration: none;
}

.game-link:hover,
.game-link:focus-visible {
  border-color: var(--aqua);
  box-shadow: 0 5px 0 rgba(8, 116, 168, 0.22);
}

.game-link:focus-visible {
  outline: 3px solid rgba(34, 169, 216, 0.24);
}

.game-select-card {
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.game-select-card:hover,
.game-select-card:focus-visible {
  border-color: var(--aqua);
}

.game-select-card:focus-visible {
  outline: 3px solid rgba(34, 169, 216, 0.24);
}

.game-select-card.is-active {
  border-color: var(--aqua);
  box-shadow: 0 5px 0 rgba(8, 116, 168, 0.24);
}

.game-detail {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.game-detail[hidden] {
  display: none;
}

.detail-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #10151b;
  color: white;
}

.detail-head img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  background: white;
}

.detail-head .small-label,
.detail-head p {
  color: rgba(255, 255, 255, 0.72);
}

.detail-head h3 {
  margin-top: 3px;
  font-size: 1.45rem;
}

.game-card h3,
.game-select-card h3,
.choice-card h3,
.status-card h3,
.cheat-card h3 {
  font-size: 1.08rem;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 1000;
}

.title-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.inline-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: none;
}

.game-card p,
.game-select-card p,
.choice-card p,
.status-card p,
.form-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
  font-weight: 700;
}

.cheat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cheat-card {
  min-height: 188px;
}

.cheat-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.cheat-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
  font-weight: 700;
}

.cheat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
  font-weight: 700;
}

.cheat-card li + li {
  margin-top: 6px;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 6px;
  background: #20262d;
  color: white;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.tag.aqua {
  background: var(--aqua-dark);
}

.tag.green {
  background: var(--green-dark);
}

.tag.gold {
  background: #a16d00;
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-card.warning {
  background: #fff4d8;
  border-color: #efc85e;
}

.status-card.good {
  background: #edf9ef;
  border-color: #9cd8a5;
}

.status-card.notice {
  background: #f1eefb;
  border-color: #bdb0e1;
}

.status-card.beta {
  background: #e9f8fb;
  border-color: #9bd8e7;
}

.status-card ul,
.detail-list {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
  font-weight: 700;
}

.status-card li + li,
.detail-list li + li {
  margin-top: 6px;
}

.callout {
  padding: 16px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--soft);
}

.callout.warning {
  border-color: #efc85e;
  background: #fff4d8;
}

.callout p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 750;
}

.back-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--aqua-dark);
  font-size: 0.9rem;
  font-weight: 1000;
  text-transform: uppercase;
  text-decoration: none;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  min-height: 188px;
}

.choice-card strong {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--aqua);
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.choice-card.flashpoint strong {
  background: var(--plum);
}

.choice-card.vaulted strong {
  background: #20262d;
}

.choice-card.powers strong {
  background: var(--green-dark);
}

.choice-card.realms strong {
  background: #a16d00;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 11px 12px;
}

select:disabled {
  color: var(--muted);
  background: #edf2f5;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(34, 169, 216, 0.25);
  border-color: var(--aqua);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-status[data-type="success"] {
  color: var(--green-dark);
}

.form-status[data-type="error"] {
  color: #b92f27;
}

.footer {
  margin-top: 34px;
  padding: 22px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .download-grid,
  .game-selector,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background:
      repeating-linear-gradient(90deg, rgba(34, 169, 216, 0.08) 0 22px, transparent 22px 48px),
      var(--paper);
  }

  .topbar {
    min-height: 154px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 20px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 420px;
    padding-top: 40px;
  }

  .hero::before {
    width: 78%;
    min-width: 260px;
    opacity: 0.12;
  }

  h1 {
    font-size: 3.15rem;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .download-grid,
  .game-grid,
  .game-selector,
  .status-grid,
  .choice-grid,
  .form-grid,
  .cheat-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .wrap,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .band {
    padding: 18px;
  }

  .download-main,
  .game-card,
  .game-select-card,
  .detail-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .download-main img,
  .game-card img,
  .game-select-card img,
  .detail-head img {
    width: 58px;
    height: 58px;
  }
}
