:root {
  color-scheme: light;
  --bg: #fbf1e8;
  --ink: #43323a;
  --muted: #755f66;
  --pink: #d45b83;
  --orange: #fb9827;
  --green: #39c777;
  --blue: #79b9ee;
  --purple: #9a74e7;
  --cream: #fffaf5;
  --shadow: 0 18px 45px rgba(78, 48, 40, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 126, 0.35), transparent 32rem),
    linear-gradient(180deg, #fff7ee 0%, var(--bg) 100%);
}

a {
  color: #a84a67;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 56px 0 36px;
}

.eyebrow,
.updated {
  color: var(--pink);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 12px 22px rgba(251, 152, 39, 0.28);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.phone {
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 900;
}

.tuna::before {
  content: "🐱 ";
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  box-shadow: inset 0 -4px rgba(55, 31, 24, 0.08);
}

.cell.green {
  background: var(--green);
}

.cell.blue {
  background: var(--blue);
}

.cell.purple {
  background: var(--purple);
}

.cell.orange {
  background: #ff8135;
}

.cell.x::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 62px;
  font-weight: 900;
}

.cell.cat::after {
  content: "🐱";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 48px;
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 64px;
}

.rules article,
.card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(78, 48, 40, 0.08);
}

.rules strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.rules p,
.card p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.page {
  max-width: 860px;
  padding: 56px 0 28px;
}

.page h1 {
  margin: 18px 0;
  font-size: clamp(44px, 8vw, 78px);
}

.back-link {
  font-weight: 900;
  text-decoration: none;
}

.card {
  margin: 18px 0;
}

footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 26px;
}

footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 28px, 620px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 34px;
  }

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