:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #151025;
  color: #fff6f0;
  --muted: #d8cde4;
  --accent: #f7bdff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ffdb78; outline-offset: 5px; }
.frame { width: min(100% - 2rem, 67rem); margin-inline: auto; }
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .75rem;
  border-bottom: 1px solid #4c3b61;
}
.header a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-weight: 900; text-decoration: none; }
.hero { padding-block: clamp(3.5rem, 10vw, 8rem); }
h1, h2, h3 { margin: 0; }
h1 {
  font-size: clamp(3.25rem, 12vw, 9rem);
  line-height: .93;
  letter-spacing: -.085em;
  font-weight: 900;
}
h1 em { color: var(--accent); }
p { color: var(--muted); line-height: 1.6; }
.hero p { max-width: 33rem; font-size: 1.125rem; margin-block: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #21112c;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: #ffd9ff; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
.game {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border-radius: 1.5rem;
  overflow: hidden;
  background: #291e3c;
}
.art {
  min-height: 14rem;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: radial-gradient(circle, #a867d3, #592a86);
}
.card {
  grid-area: 1 / 1;
  width: 5.5rem;
  aspect-ratio: 3 / 4;
  border: 3px solid #281633;
  border-radius: .75rem;
  box-shadow: .3rem .35rem #281633;
}
.card-back { transform: translateX(-25%) rotate(-17deg); background: #fc8cab; }
.card-front {
  display: grid;
  place-items: center;
  transform: translateX(25%) rotate(12deg);
  background: #ffdb78;
  color: #281633;
  font-size: 3.75rem;
  font-weight: 900;
}
.game-info { align-self: center; padding: clamp(1.25rem, 5vw, 3rem); }
.status { color: var(--accent); font-size: .875rem; font-weight: 700; }
h3 { margin-top: .25rem; font-size: clamp(2rem, 6vw, 3.75rem); letter-spacing: -.05em; }
.game-info p { margin-bottom: 0; }
.footer { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid #4c3b61; color: var(--muted); }
@media (max-width: 36rem) {
  .game { grid-template-columns: 1fr; }
  .art { min-height: 11rem; }
}
