:root {
  --bg-top: #fff4dd;
  --bg-bottom: #f7c6c7;
  --card: rgba(255, 250, 245, 0.78);
  --card-border: rgba(116, 44, 58, 0.14);
  --text: #432534;
  --muted: #7a5261;
  --accent: #c84c6f;
  --accent-strong: #95294c;
  --shadow: 0 24px 60px rgba(109, 34, 54, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 224, 177, 0.65), transparent 20%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.35;
  pointer-events: none;
}

body::before {
  top: 4rem;
  right: -4rem;
  background: #ffd86b;
}

body::after {
  bottom: 3rem;
  left: -5rem;
  background: #ef7d96;
}

.shell {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero,
.message {
  padding: 1.5rem;
}

.hero::after,
.message::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 107, 0.65), transparent 70%);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-strong);
}

h1,
h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.lead,
.message p {
  max-width: 50rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(149, 41, 76, 0.1);
}

.stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff9f7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 24px rgba(149, 41, 76, 0.24);
}

.button:hover {
  transform: translateY(-1px) scale(1.01);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-strong);
  box-shadow: none;
}

.game {
  padding: 1rem;
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.25rem 1rem;
}

.status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.whale-note {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

.board {
  position: relative;
  height: min(62vh, 540px);
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(149, 41, 76, 0.14);
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 35%),
    linear-gradient(180deg, #ffd7ba, #ffc1cf 52%, #f7b7c1);
}

.board::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 246, 201, 0.8), transparent 24%),
    radial-gradient(circle at 35% 100%, rgba(255, 246, 201, 0.65), transparent 28%),
    radial-gradient(circle at 70% 100%, rgba(255, 246, 201, 0.7), transparent 25%),
    linear-gradient(180deg, rgba(250, 184, 114, 0.08), rgba(236, 122, 136, 0.14));
}

.board::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  font-size: 2rem;
  letter-spacing: 2.8rem;
  opacity: 0.4;
  pointer-events: none;
}

.heart,
.whale,
.orca {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.heart {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  animation: floatUp 900ms ease-out forwards;
}

.heart::before {
  content: "💖";
  font-size: 1.8rem;
  filter: drop-shadow(0 8px 10px rgba(149, 41, 76, 0.22));
}

.whale {
  width: 92px;
  height: 92px;
  animation: whaleIn 1s ease-out forwards;
}

.whale::before {
  content: "🐋";
  font-size: 3.2rem;
  filter: drop-shadow(0 10px 12px rgba(67, 37, 52, 0.2));
}

.whale::after,
.orca::after {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.whale::after {
  content: "memschmem";
  background: rgba(255, 250, 245, 0.92);
  color: var(--accent-strong);
}

.orca {
  width: 96px;
  height: 96px;
  animation: whaleIn 0.9s ease-out forwards;
}

.orca::before {
  content: "🐋";
  font-size: 3.35rem;
  filter: grayscale(1) contrast(1.35) brightness(0.72)
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
}

.orca::after {
  content: "Arco";
  background: rgba(33, 33, 40, 0.9);
  color: #fff;
}

.message {
  animation: reveal 700ms ease forwards;
}

.hidden {
  display: none;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 35%) scale(0.88);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10%) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 820px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 1rem, 38rem);
    padding-top: 0.5rem;
  }

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

  .board {
    height: 56vh;
    min-height: 320px;
  }

  .whale-note {
    font-size: 0.9rem;
    white-space: normal;
  }
}
