:root {
  color-scheme: dark;
  --bg: #0f1011;
  --panel: #17191b;
  --panel-soft: #202326;
  --line: #30353a;
  --text: #f7f1ec;
  --muted: #b8b0aa;
  --heal: #7bb889;
  --heal-deep: #1b3528;
  --hurt: #d2646b;
  --hurt-deep: #4a171d;
  --gold: #d9b46a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 180, 106, 0.11), transparent 30rem),
    linear-gradient(180deg, #0f1011 0%, #151211 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  min-height: min(820px, 100vh);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.intro {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 9vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.rose-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.life-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(217, 180, 106, 0.4);
  border-radius: 50%;
  background: rgba(15, 16, 17, 0.84);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  z-index: 3;
  margin-bottom: -70px;
}

.life-ring span {
  display: block;
  font-size: 2.3rem;
  font-weight: 900;
}

.life-ring small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.image-container {
  position: relative;
  width: min(100%, 430px);
  max-height: min(72vh, 720px);
  aspect-ratio: 2 / 3;
}

.rose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out, filter 1.5s ease-in-out;
  z-index: 0;
  filter: saturate(0.96);
}

.rose.visible {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.state-line,
.choice-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.buttons {
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.buttons button {
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 1.22rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.buttons button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#healBtn {
  background: var(--heal-deep);
  border-color: rgba(123, 184, 137, 0.58);
}

#hurtBtn {
  background: var(--hurt-deep);
  border-color: rgba(210, 100, 107, 0.66);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin: 10px 0 64px;
}

.metrics article,
.country-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metrics span {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
}

.metrics small,
.country-card span {
  color: var(--muted);
}

.world-section,
.about {
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.country-card strong {
  font-size: 1rem;
}

.empty {
  color: var(--muted);
}

.about {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.72;
}

.about strong,
.about a {
  color: var(--text);
}

.about a {
  text-decoration-color: rgba(217, 180, 106, 0.7);
  text-underline-offset: 4px;
}

.dedication {
  color: #d7d0ca;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

  .intro {
    max-width: 720px;
  }

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

@media (max-width: 550px) {
  .page-shell {
    width: min(100% - 22px, 480px);
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(3.25rem, 20vw, 5rem);
  }

  .life-ring {
    width: 112px;
    height: 112px;
    margin-bottom: -56px;
  }

  .image-container {
    width: min(100%, 360px);
    max-height: 62vh;
  }

  .life-ring span {
    font-size: 1.95rem;
  }

  .buttons button {
    height: 58px;
    font-size: 1rem;
  }

  .metrics,
  .country-grid {
    grid-template-columns: 1fr;
  }
}
