:root {
  color-scheme: light;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #283027;
  --paper: #f7f0df;
  --cream: #fffaf0;
  --line: #514936;
  --pink: #f062a6;
  --green: #4f682f;
  --radius: 32px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgb(255 255 255 / 0.84) 0 4.5%, transparent 4.8%),
    radial-gradient(circle at 94% 84%, rgb(226 205 158 / 0.4) 0 7%, transparent 7.3%),
    var(--paper);
}

.launcher {
  width: min(1180px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}

.hero {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.maker {
  margin: 0 0 10px;
  color: #665b43;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 900;
}

h1 {
  max-width: 10em;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  margin: 20px 0 0;
  color: #5b624f;
  font-size: clamp(20px, 2.5vw, 29px);
  font-weight: 800;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
}

.game-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 0 rgb(81 73 54 / 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  box-shadow: 0 20px 0 rgb(81 73 54 / 0.16);
}

.game-card:active {
  transform: translateY(5px);
  box-shadow: 0 8px 0 rgb(81 73 54 / 0.2);
}

.game-card:focus-visible {
  outline: 6px solid #2f77e5;
  outline-offset: 6px;
}

.tank-card {
  margin-top: clamp(20px, 5vw, 64px);
}

.preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 4px solid var(--line);
  pointer-events: none;
}

.preview iframe {
  position: absolute;
  inset: 0;
  width: 208.3334%;
  height: 208.3334%;
  border: 0;
  transform: scale(0.48);
  transform-origin: top left;
  pointer-events: none;
}

.card-copy {
  display: flex;
  min-height: 124px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.hide-card .card-copy {
  background: #ffe0ee;
}

.tank-card .card-copy {
  background: #dbe9c6;
}

.card-copy span {
  min-width: 0;
}

.card-copy strong,
.card-copy small {
  display: block;
}

.card-copy strong {
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.card-copy small {
  margin-top: 8px;
  color: #505947;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
}

.card-copy b {
  display: inline-flex;
  min-width: 92px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 17px;
  color: #fffaf0;
  background: var(--pink);
  border-radius: 18px;
  box-shadow: 0 6px 0 #b83d78;
  font-size: 18px;
}

.tank-card .card-copy b {
  background: var(--green);
  box-shadow: 0 6px 0 #34451f;
}

@media (max-width: 760px) {
  .launcher {
    width: min(100% - 24px, 580px);
    padding: 24px 0 34px;
  }

  .hero {
    margin: 0 8px 24px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 62px);
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .tank-card {
    margin-top: 0;
  }

  .card-copy {
    min-height: 112px;
    padding: 18px;
  }

  .card-copy b {
    min-width: 80px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .game-card {
    animation: arrive 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .game-card:nth-child(1) {
    animation-delay: 80ms;
  }

  .game-card:nth-child(2) {
    animation-delay: 160ms;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
