﻿:root {
  --bg-top: #f8f4e3;
  --bg-bottom: #cfe3c8;
  --panel: #fffdf7;
  --ink: #000000;
  --muted: #888196;
  --accent: #1c7c54;
  --accent-strong: #ceebdd;
  --warm: #d17b2d;
  --correct: #2e8b57;
  --wrong: #b23a48;
  --border: rgba(19, 42, 19, 0.15);
  --card-shadow: 0 20px 45px rgba(19, 42, 19, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      70% 70% at 15% 10%,
      rgba(155, 83, 151, 0.2),
      transparent 60%
    ),
    radial-gradient(
      55% 55% at 85% 0%,
      rgba(242, 109, 76, 0.22),
      transparent 55%
    ),
    radial-gradient(70% 80% at 80% 90%, rgba(31, 56, 70, 0.4), transparent 60%),
    linear-gradient(180deg, #0c1114 0%, #0f1418 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    transparent 94%,
    rgba(19, 42, 19, 0.04) 100%
  );
  background-size: 100% 20px;
  opacity: 0.4;
}

.app {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.2rem 3.2rem;
  border-radius: 26px;
}

.app::after {
  content: none;
}

.app.app-daily-mode .game-area {
  border-color: rgba(223, 177, 66, 0.95);
  box-shadow:
    0 0 0 1px rgba(253, 227, 153, 0.42),
    0 0 42px rgba(223, 177, 66, 0.32),
    inset 0 0 28px rgba(223, 177, 66, 0.1);
}

.app.app-unlimited-mode .game-area {
  border-color: rgba(206, 235, 221, 0.24);
  box-shadow: 0 0 0 1px rgba(206, 235, 221, 0.08);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.topbar-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.mode-indicator {
  position: absolute;
  top: -0.72rem;
  left: 0.92rem;
  z-index: 6;
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  border: 1px solid rgba(206, 235, 221, 0.45);
  background: rgba(15, 20, 24, 0.84);
  color: #f4f8f6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-indicator-daily {
  border-color: rgba(223, 177, 66, 0.95);
  color: #ffecbd;
  box-shadow:
    0 0 0 1px rgba(253, 227, 153, 0.35),
    0 8px 18px rgba(223, 177, 66, 0.24);
}

.mode-indicator-unlimited {
  border-color: rgba(101, 168, 139, 0.62);
  color: #d8f0e4;
  box-shadow: 0 0 0 1px rgba(101, 168, 139, 0.22);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 0.75rem;
  margin-left: auto;
}

.scoreboard-primary {
  grid-template-columns: minmax(84px, 1fr);
}

.meta-scorebar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.65rem;
}

.scoreboard-secondary {
  margin-left: 0;
}

.current-score-tile {
  position: fixed;
  left: 50%;
  top: 2.9rem;
  z-index: 24;
  transform: translateX(-50%);
  min-width: 116px;
  text-align: center;
  border-color: rgba(223, 177, 66, 0.65);
  box-shadow:
    0 0 0 1px rgba(253, 227, 153, 0.26),
    0 16px 30px rgba(223, 177, 66, 0.22);
}

.current-score-value {
  display: block;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.lives {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 235, 221, 0.35);
  background: rgba(15, 20, 24, 0.48);
  padding: 0.36rem 0.72rem;
  min-height: 2rem;
  min-width: 7.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.life-heart {
  font-size: 1.38rem;
  line-height: 1;
  color: #ff6a77;
  text-shadow: 0 0 10px rgba(255, 106, 119, 0.5);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.life-heart.lost {
  opacity: 0.3;
  filter: grayscale(0.9);
  text-shadow: none;
  transform: scale(0.92);
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 235, 221, 0.35);
  background: rgba(15, 20, 24, 0.48);
  padding: 0.35rem 0.65rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}

.audio-toggle input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--warm);
}

.score-tile {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  padding: 0.55rem 0.8rem;
  min-width: 84px;
}

.scoreboard .score-tile:not(.current-score-tile) {
  padding: 0.42rem 0.62rem;
  min-width: 76px;
}

.scoreboard .score-tile:not(.current-score-tile) .score-label {
  font-size: 0.64rem;
  margin-bottom: 0.08rem;
}

.scoreboard .score-tile:not(.current-score-tile) .score-value {
  font-size: 1.12rem;
  font-weight: 650;
}

.score-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.score-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.loading-message,
.error-message {
  margin: 0.4rem 0 0;
  font-weight: 700;
}

.error-message {
  color: var(--wrong);
}

.hidden {
  display: none !important;
}

.game-area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 1rem 0.95rem 0.9rem;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.prompt {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #f4f8f6;
  text-align: center;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.prompt-criterion {
  display: inline-block;
  margin-top: 0.15em;
  font-size: 1.28em;
  font-weight: 900;
  color: var(--warm);
  text-shadow: 0 0 18px rgba(209, 123, 45, 0.35);
}

.criterion-description {
  margin: -0.15rem 0 0.15rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.arena {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.center-controls {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.sound-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--warm);
  color: #fff;
  padding: 0;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 14px 30px rgba(209, 123, 45, 0.42);
}

.sound-button:hover {
  background: #be6d28;
  transform: translateY(-2px) scale(1.02);
}

.sound-button.playing {
  background: var(--accent);
  box-shadow: 0 14px 32px rgba(28, 124, 84, 0.45);
}

.versus {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.animal-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.animal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 124, 84, 0.32);
}

.animal-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(28, 124, 84, 0.2);
}

.animal-card.disabled {
  cursor: not-allowed;
  opacity: 0.9;
  transform: none;
}

.animal-card.correct {
  border-color: var(--correct);
  animation: correct-hit 650ms ease-out;
  box-shadow:
    0 0 0 0 rgba(46, 139, 87, 0.5),
    0 24px 55px rgba(46, 139, 87, 0.32);
}

.animal-card.correct.revealed .image-frame::after {
  background: rgba(8, 44, 28, 0.5);
}

.animal-card.wrong {
  border-color: var(--wrong);
}

.image-frame {
  position: relative;
  height: clamp(250px, 33vw, 350px);
  background: linear-gradient(135deg, #e8dbba, #c8dcc0);
  overflow: hidden;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.2s ease;
}

.animal-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: filter 0.2s ease;
}

.image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(19, 42, 19, 0.08),
      rgba(19, 42, 19, 0.08) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(145deg, #f3e7ca, #d7e6cf);
  transition: filter 0.2s ease;
}

.life-loss-indicator {
  position: absolute;
  top: 24%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%) scale(0.62);
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.life-loss-indicator.show {
  animation: life-loss-pop 760ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.animal-card.revealed .image-frame::after {
  background: rgba(0, 0, 0, 0.42);
}

.animal-card.revealed .animal-image {
  filter: brightness(0.54) blur(1.5px);
}

.animal-card.revealed .image-fallback {
  filter: brightness(0.58) blur(1px);
}

.card-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name name"
    "scientific learn";
  align-items: center;
  column-gap: 0.48rem;
  row-gap: 0.18rem;
  padding: 0.66rem 0.82rem 0.74rem;
}

.animal-name {
  grid-area: name;
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
}

.animal-scientific {
  grid-area: scientific;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.learn-more-button {
  grid-area: learn;
  width: fit-content;
  justify-self: end;
  align-self: center;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.learn-more-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.animal-value {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: calc(100% - 2rem);
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.animal-value-label {
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.animal-value-number {
  font-size: clamp(1.75rem, 4.8vw, 3.8rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings:
    "tnum" 1,
    "lnum" 1;
}

.animal-value-number.counting {
  color: #fff7cf;
  text-shadow:
    0 0 10px rgba(255, 247, 207, 0.7),
    0 0 26px rgba(255, 197, 95, 0.55);
  animation: value-count-pulse 240ms ease-in-out infinite alternate;
}

.restart-button {
  width: fit-content;
  border: none;
  font-size: 2.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 3rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.restart-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 25;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.restart-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.restart-overlay:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.daily-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 25;
  transform: translate(-50%, -50%);
  min-width: min(92vw, 380px);
  border-radius: 18px;
  border: 1px solid rgba(206, 235, 221, 0.38);
  background: rgba(15, 20, 24, 0.92);
  color: #f4f8f6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  padding: 1rem;
}

.daily-menu-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.daily-menu-actions {
  display: grid;
  gap: 0.55rem;
}

.daily-menu-button {
  border: none;
  border-radius: 12px;
  padding: 0.68rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.daily-menu-button:hover {
  transform: translateY(-1px);
}

.daily-menu-primary {
  background: var(--accent);
  color: #fff;
}

.daily-menu-primary:hover {
  background: #1a6d4b;
}

.daily-menu-secondary {
  background: rgba(206, 235, 221, 0.16);
  color: #f4f8f6;
  border: 1px solid rgba(206, 235, 221, 0.22);
}

.daily-menu-secondary:hover {
  background: rgba(206, 235, 221, 0.24);
}

.daily-menu-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.animal-card.entering-left {
  animation: card-in-left 560ms cubic-bezier(0.2, 0.84, 0.2, 1);
}

.animal-card.entering-right {
  animation: card-in-right 560ms cubic-bezier(0.2, 0.84, 0.2, 1);
}

@keyframes correct-hit {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(46, 139, 87, 0.5),
      0 20px 45px rgba(19, 42, 19, 0.12);
  }
  45% {
    transform: scale(1.02);
    box-shadow:
      0 0 0 12px rgba(46, 139, 87, 0.25),
      0 28px 60px rgba(46, 139, 87, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(46, 139, 87, 0),
      0 24px 55px rgba(46, 139, 87, 0.32);
  }
}

@keyframes value-count-pulse {
  from {
    transform: translateY(0);
    opacity: 0.92;
  }
  to {
    transform: translateY(-1px);
    opacity: 1;
  }
}

@keyframes card-in-left {
  0% {
    opacity: 0;
    transform: translateX(-90px) scale(0.97);
  }
  62% {
    opacity: 1;
    transform: translateX(10px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes life-loss-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-22deg);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16) rotate(8deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.96) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes card-in-right {
  0% {
    opacity: 0;
    transform: translateX(90px) scale(0.97);
  }
  62% {
    opacity: 1;
    transform: translateX(-10px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 900px) {
  .app {
    padding: 3.5rem 0.85rem 2.3rem;
  }

  .mode-indicator {
    top: -0.62rem;
    left: 0.78rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-controls {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .meta-scorebar {
    margin-bottom: 0.5rem;
  }

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

  .sound-button {
    width: 76px;
    height: 76px;
    font-size: 0.92rem;
  }

  .versus {
    width: 58px;
    height: 58px;
    margin: 0 auto;
  }

  .animal-card {
    min-height: 340px;
  }
}

@media (max-width: 900px) and (max-aspect-ratio: 3/4) {
  body {
    overflow: hidden;
  }

  .app {
    height: 100dvh;
    padding: 0.45rem 0.5rem;
  }

  .topbar {
    position: absolute;
    top: 0.18rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 28;
    gap: 0;
    margin: 0;
  }

  .topbar-controls {
    width: auto;
    gap: 0.24rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
  }

  .audio-toggle {
    padding: 0.24rem 0.46rem;
    font-size: 0.62rem;
  }

  .mode-indicator {
    top: -0.54rem;
    left: 0.62rem;
    font-size: 0.56rem;
    padding: 0.15rem 0.3rem;
  }

  .audio-toggle input {
    width: 0.74rem;
    height: 0.74rem;
  }

  .meta-scorebar {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
  }

  .scoreboard-secondary {
    position: fixed;
    right: 0.18rem;
    top: 0.18rem;
    bottom: auto;
    z-index: 23;
    gap: 0.06rem;
    justify-items: end;
    grid-template-columns: 1fr;
    pointer-events: auto;
  }

  #game-area:not(.hidden) {
    position: absolute;
    inset: calc(3.2rem + env(safe-area-inset-top)) 0.5rem 0.36rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.42rem;
    padding-top: 5rem;
  }

  .current-score-tile {
    top: 1.95rem;
    min-width: 88px;
    padding: 0.2rem 0.42rem;
    border-radius: 10px;
  }

  .score-tile {
    border-radius: 8px;
    padding: 0.24rem 0.34rem;
    min-width: 56px;
  }

  .scoreboard-secondary .score-tile:not(.current-score-tile) {
    border-radius: 5px;
    padding: 0.08rem 0.14rem;
    min-width: 34px;
    box-shadow: none;
  }

  .scoreboard-secondary .score-tile:not(.current-score-tile) .score-label {
    font-size: 0.46rem;
    margin-bottom: 0.01rem;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .scoreboard-secondary .score-tile:not(.current-score-tile) .score-value {
    font-size: 0.72rem;
    line-height: 1;
  }

  .score-label {
    font-size: 0.5rem;
    margin-bottom: 0.03rem;
  }

  .score-value {
    font-size: 0.8rem;
  }

  .current-score-value {
    font-size: 1.02rem;
  }

  .lives {
    top: 0.3rem;
    gap: 0.12rem;
    padding: 0.16rem 0.34rem;
    min-height: 1.34rem;
    min-width: 4.85rem;
  }

  .life-heart {
    font-size: 0.88rem;
  }

  .game-area {
    gap: 0.42rem;
  }

  .prompt {
    font-size: clamp(1.34rem, 6.4vw, 1.95rem);
    line-height: 1.08;
  }

  .prompt-criterion {
    margin-top: 0.08em;
    font-size: 1.15em;
  }

  .criterion-description {
    margin: -0.02rem 0 0.03rem;
    font-size: 0.7rem;
  }

  .arena {
    gap: 0.3rem;
    justify-items: center;
  }

  .center-controls {
    flex-direction: row;
    gap: 0.3rem;
  }

  .sound-button {
    width: 48px;
    height: 48px;
    font-size: 0.64rem;
  }

  .versus {
    width: 32px;
    height: 32px;
    margin: 0;
    font-size: 0.6rem;
    border-width: 1px;
  }

  .animal-card {
    width: min(100%, 18rem);
    min-height: 0;
    border-radius: 12px;
  }

  .image-frame {
    height: clamp(150px, 10vh, 180px);
  }

  .animal-image {
    object-fit: stretch;
  }

  .card-body {
    column-gap: 0.34rem;
    row-gap: 0.08rem;
    padding: 0.34rem 0.46rem 0.38rem;
  }

  .animal-name {
    font-size: clamp(0.7rem, 3.8vw, 1rem);
  }

  .animal-scientific {
    font-size: 0.62rem;
  }

  .learn-more-button {
    padding: 0.2rem 0.44rem;
    font-size: 0.58rem;
  }

  .animal-value {
    width: calc(100% - 0.9rem);
    border-radius: 7px;
    padding: 0.28rem 0.34rem;
    gap: 0.08rem;
  }

  .animal-value-label {
    font-size: 0.48rem;
  }

  .animal-value-number {
    font-size: clamp(0.9rem, 6vw, 1.35rem);
  }

  .life-loss-indicator {
    font-size: clamp(1.45rem, 10vw, 2.35rem);
  }

  .status-message {
    min-height: 1em;
    margin-top: 0;
    font-size: 0.74rem;
  }

  .restart-button {
    font-size: 0.9rem;
    padding: 0.72rem 0.64rem;
  }

  .daily-menu {
    min-width: min(94vw, 290px);
    padding: 0.6rem;
  }

  .daily-menu-title {
    font-size: 0.74rem;
    margin-bottom: 0.44rem;
  }

  .daily-menu-button {
    font-size: 0.68rem;
    padding: 0.44rem 0.58rem;
  }
}
