@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2d402f;
  --ink-soft: #56644f;
  --forest: #2e5738;
  --forest-deep: #1f3d2a;
  --leaf: #5e9f4e;
  --leaf-bright: #7cbc60;
  --cream: #fff5dc;
  --cream-deep: #f1e3c0;
  --gold: #efbc58;
  --gold-deep: #c88932;
  --coral: #df6a4f;
  --danger: #c7533e;
  --glass: rgba(22, 49, 33, 0.86);
  --glass-soft: rgba(28, 60, 40, 0.72);
  --line: rgba(255, 243, 214, 0.25);
  --display: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --body: "Nunito", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #132d20;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid #ffe08b;
  outline-offset: 3px;
}

ul,
h1,
h2,
h3,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

#game {
  position: fixed;
  inset: 0;
  isolation: isolate;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 44%, transparent 48%, rgba(15, 35, 22, 0.19) 100%),
    linear-gradient(180deg, rgba(14, 36, 22, 0.15), transparent 18%, transparent 82%, rgba(14, 34, 21, 0.22));
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: clamp(18px, 3vw, 44px) clamp(18px, 4vw, 64px) clamp(16px, 2.4vw, 30px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 43, 27, 0.31) 0%, rgba(18, 43, 27, 0.03) 30%, rgba(18, 43, 27, 0.08) 56%, rgba(16, 38, 24, 0.28) 100%);
  animation: screen-in 0.7s ease both;
}

.menu::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%, transparent 36%, rgba(12, 32, 19, 0.32) 115%);
  z-index: -1;
}

.menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.logo-block {
  max-width: 900px;
  filter: drop-shadow(0 18px 24px rgba(17, 34, 22, 0.24));
}

.logo-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff3cf;
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 900;
  letter-spacing: 0.30em;
  text-shadow: 0 2px 8px rgba(15, 32, 21, 0.5);
}

.logo-kicker span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 9px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(78, 60, 27, 0.13);
}

.game-logo {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.7vw, 13px);
  margin: 7px 0 4px -0.055em;
  color: #fff5d6;
  font-family: var(--display);
  font-size: clamp(62px, 8.7vw, 132px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-shadow:
    0 2px 0 #fff0bf,
    0 5px 0 #99b36a,
    0 10px 0 #4d7647,
    0 16px 22px rgba(19, 44, 27, 0.45);
}

.game-logo em {
  display: grid;
  place-items: center;
  width: 0.81em;
  height: 0.81em;
  margin: 0 0.02em;
  color: #fff8df;
  font-style: normal;
  font-size: 0.59em;
  line-height: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #f38a63 0%, #dd664d 52%, #b94638 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 227, 177, 0.42),
    inset 0 -6px 0 rgba(129, 52, 40, 0.35),
    0 7px 0 #8d3e33,
    0 12px 18px rgba(38, 25, 19, 0.28);
  text-shadow: 0 3px 0 rgba(127, 54, 42, 0.5);
  transform: rotate(-7deg);
}

.logo-sub {
  margin-top: 12px;
  color: #fff2c9;
  font-size: clamp(13px, 1.12vw, 17px);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 5px rgba(13, 31, 18, 0.65);
}

.menu-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgba(255, 244, 211, 0.27);
  border-radius: 999px;
  color: #fff1c9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  background: rgba(29, 59, 39, 0.58);
  box-shadow: 0 8px 22px rgba(14, 34, 21, 0.22);
  backdrop-filter: blur(10px);
}

.note-pin {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #4b3b22;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(145deg, #ffe79a, #eab353);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #bc883b;
}

.menu-panel {
  position: relative;
  display: grid;
  margin-top: auto;
  align-self: center;
  max-width: 1280px;
  grid-template-columns: minmax(215px, 1fr) minmax(430px, 2.15fr) minmax(175px, 0.84fr);
  gap: clamp(14px, 1.8vw, 26px);
  align-items: stretch;
  width: 100%;
  padding: clamp(13px, 1.5vw, 20px);
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 29px;
  background:
    radial-gradient(ellipse at 65% -20%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.955), rgba(244, 231, 201, 0.955));
  box-shadow:
    0 30px 70px rgba(17, 39, 24, 0.34),
    0 4px 0 rgba(112, 91, 53, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  animation: panel-in 0.8s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-panel::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -6px;
  height: 14px;
  border-radius: 50%;
  background: rgba(66, 51, 27, 0.16);
  filter: blur(9px);
  z-index: -1;
}

.panel-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px 8px 9px;
}

.panel-kicker,
.modal-kicker {
  color: #9c7d47;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.panel-intro h2 {
  margin: 6px 0 4px;
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: clamp(24px, 2vw, 33px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.panel-intro p {
  max-width: 255px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.42;
}

.selected-stats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
}

.stat-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
}

.stat-label {
  color: #85724f;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.pips {
  display: flex;
  gap: 4px;
}

.pip {
  width: 18px;
  height: 7px;
  border-radius: 8px;
  background: #ddd0b0;
  box-shadow: inset 0 1px 2px rgba(104, 84, 47, 0.16);
}

.pip.on {
  background: linear-gradient(180deg, #7db658, #4f853e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  align-self: stretch;
}

.breed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  padding: 7px 7px 10px;
  overflow: hidden;
  border: 2px solid rgba(120, 99, 60, 0.16);
  border-radius: 19px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 251, 239, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.breed-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  opacity: 0.2;
  background: radial-gradient(ellipse at 50% 20%, var(--fur, #8b6a49), transparent 70%);
  pointer-events: none;
}

.breed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 128, 73, 0.38);
  background: #fffdf3;
  box-shadow: 0 9px 16px rgba(70, 58, 32, 0.1);
}

.breed-card.selected {
  border-color: #5f8a4d;
  background: #fffbee;
  box-shadow:
    0 7px 0 rgba(68, 103, 51, 0.18),
    0 11px 18px rgba(70, 58, 32, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
}

.breed-tick {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #fffbe6;
  font-size: 11px;
  font-weight: 900;
  background: #588246;
  box-shadow: 0 2px 0 #3e6131;
  opacity: 0;
  transform: scale(0.65);
  transition: 160ms ease;
}

.breed-card.selected .breed-tick {
  opacity: 1;
  transform: scale(1);
}

.breed-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 82px);
  aspect-ratio: 1;
  margin: 2px 0 1px;
  filter: drop-shadow(0 5px 4px rgba(66, 46, 25, 0.12));
}

.breed-portrait svg {
  width: 100%;
  height: 100%;
}

.breed-name {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.08;
}

.breed-name small {
  color: #958365;
  font-family: var(--body);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.menu-start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 3px 2px 3px 0;
}

.start-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 98px;
  width: 100%;
  padding: 15px 17px;
  overflow: hidden;
  border-radius: 21px;
  color: #fff7df;
  text-align: left;
  background:
    radial-gradient(ellipse at 90% -10%, rgba(255, 252, 204, 0.3), transparent 40%),
    linear-gradient(155deg, #6ba955 0%, #467d3e 62%, #356534 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 214, 0.3),
    inset 0 -8px 0 rgba(32, 75, 36, 0.3),
    0 8px 0 #2a532c,
    0 16px 24px rgba(39, 63, 31, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.start-button::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  bottom: -55px;
  border-radius: 50%;
  border: 18px solid rgba(255, 244, 191, 0.12);
}

.start-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 214, 0.32),
    inset 0 -8px 0 rgba(32, 75, 36, 0.3),
    0 10px 0 #2a532c,
    0 19px 27px rgba(39, 63, 31, 0.25);
}

.start-button:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 214, 0.25),
    inset 0 -5px 0 rgba(32, 75, 36, 0.25),
    0 4px 0 #2a532c,
    0 8px 15px rgba(39, 63, 31, 0.22);
}

.start-small {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  opacity: 0.75;
}

.start-big {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-family: var(--display);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.start-big i {
  font-style: normal;
  font-size: 0.9em;
  transition: transform 180ms ease;
}

.start-button:hover .start-big i {
  transform: translateX(4px);
}

.menu-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: #7b765f;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.menu-controls span {
  white-space: nowrap;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid rgba(55, 70, 49, 0.22);
  border-radius: 5px;
  color: #506249;
  font-family: var(--body);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 252, 237, 0.85);
  box-shadow: 0 2px 0 rgba(72, 76, 51, 0.12);
}

.menu-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 11px;
  padding: 0 10px;
  color: rgba(255, 247, 218, 0.84);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 4px rgba(13, 31, 18, 0.4);
  pointer-events: none;
}

.text-button {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  pointer-events: auto;
}

.menu-footer .text-button {
  color: #fff1c7;
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px clamp(16px, 2.4vw, 34px) 18px;
  pointer-events: none;
  animation: hud-in 0.45s ease both;
}

.hud-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}

.hud-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  justify-self: start;
  pointer-events: auto;
}

.level-card {
  min-width: 292px;
  padding: 11px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(30, 63, 43, 0.93), rgba(21, 45, 31, 0.82));
  box-shadow: 0 10px 28px rgba(11, 30, 17, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #edc87b;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 242, 201, 0.48);
}

.level-card h2 {
  margin: 2px 0 5px;
  color: #fff6dd;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.objective-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 248, 226, 0.84);
  font-size: 10.5px;
  font-weight: 700;
}

.objective-line b {
  color: #ffe28d;
  font-size: 12px;
}

.sheep-icon {
  width: 20px;
  height: 20px;
  color: #f3dfa4;
  flex: none;
  filter: drop-shadow(0 1px 0 rgba(49, 32, 14, 0.3));
}

.distance {
  margin-left: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 241, 203, 0.13);
  border-radius: 8px;
  color: rgba(255, 243, 211, 0.62);
  font-size: 9px;
  white-space: nowrap;
  background: rgba(7, 22, 12, 0.16);
}

.round-button {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(27, 55, 37, 0.8);
  box-shadow: 0 7px 20px rgba(11, 30, 17, 0.18);
  backdrop-filter: blur(10px);
  transition: background 150ms ease, transform 150ms ease;
}

.round-button:hover {
  background: rgba(49, 85, 55, 0.9);
  transform: translateY(-1px);
}

.pause-bars {
  display: block;
  width: 12px;
  height: 13px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.timer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  min-width: 116px;
  padding: 7px 19px 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--cream);
  background: rgba(24, 51, 34, 0.82);
  box-shadow: 0 8px 22px rgba(11, 30, 17, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(13px);
}

.timer-label {
  color: rgba(255, 232, 167, 0.64);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

#timer {
  color: #fff6dd;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.map-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  pointer-events: auto;
}

.minimap-shell {
  position: relative;
  width: clamp(124px, 11vw, 156px);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 246, 214, 0.84);
  border-radius: 50%;
  background: #cddd9b;
  box-shadow:
    0 0 0 5px rgba(35, 68, 44, 0.76),
    0 11px 24px rgba(12, 30, 18, 0.26),
    inset 0 0 0 1px rgba(55, 78, 42, 0.18);
}

#minimap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.compass {
  position: absolute;
  top: -12px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 246, 212, 0.82);
  border-radius: 50%;
  color: #fff7dc;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  background: #355c3e;
  box-shadow: 0 3px 0 rgba(34, 66, 43, 0.28);
}

.map-button {
  position: absolute;
  right: -8px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 244, 213, 0.3);
  border-radius: 50%;
  color: #fff4d5;
  background: rgba(27, 56, 37, 0.9);
  box-shadow: 0 5px 12px rgba(14, 33, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 150ms ease, transform 150ms ease;
}

.map-button:hover {
  background: rgba(49, 87, 57, 0.95);
  transform: translateY(-1px);
}

.map-button svg {
  width: 18px;
  height: 18px;
}

.mute-slash {
  display: none;
}

.map-button.muted .mute-slash {
  display: block;
}

.map-button.muted .sound-waves {
  display: none;
}

.map-button.muted .speaker-body {
  opacity: 0.66;
}

.threat-hud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 218px;
  margin-top: 11px;
}

.threat-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 228, 197, 0.22);
  border-left: 3px solid #df8755;
  border-radius: 11px;
  color: var(--cream);
  background: rgba(53, 40, 31, 0.84);
  box-shadow: 0 7px 18px rgba(27, 20, 13, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  animation: threat-in 260ms ease both;
}

.threat-chip.is-hidden {
  display: none;
}

.threat-chip.boss {
  border-left-color: #d4573f;
  background: linear-gradient(100deg, rgba(75, 42, 30, 0.92), rgba(50, 36, 29, 0.84));
}

.threat-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #efae6b;
  box-shadow: 0 0 0 4px rgba(237, 170, 103, 0.1);
}

.threat-chip.boss .threat-dot {
  background: #f0785e;
  box-shadow: 0 0 0 4px rgba(220, 89, 62, 0.12);
}

.threat-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.threat-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  color: #fff0d0;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}

.threat-name small {
  color: rgba(255, 235, 196, 0.48);
  font-family: var(--body);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nerve-track {
  height: 3px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 232, 197, 0.17);
}

.nerve-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e0a152, #f1d27a);
  transition: width 180ms ease;
}

.threat-chip.boss .nerve-fill {
  background: linear-gradient(90deg, #d15e48, #efae6b);
}

.toast {
  position: absolute;
  top: 100px;
  left: 50%;
  z-index: 13;
  max-width: min(520px, 82vw);
  padding: 8px 15px;
  border: 1px solid rgba(255, 242, 206, 0.2);
  border-radius: 999px;
  color: #fff5dc;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  background: rgba(28, 56, 38, 0.9);
  box-shadow: 0 8px 25px rgba(11, 26, 16, 0.22);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hud-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dog-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(255, 243, 212, 0.2);
  border-radius: 16px;
  color: var(--cream);
  background: rgba(24, 52, 34, 0.82);
  box-shadow: 0 8px 21px rgba(11, 30, 17, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.dog-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: none;
  overflow: hidden;
  border: 2px solid rgba(255, 240, 199, 0.3);
  border-radius: 50%;
  background: rgba(247, 232, 198, 0.17);
}

.dog-avatar svg {
  width: 55px;
  height: 55px;
}

.dog-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.micro-label {
  color: rgba(239, 203, 123, 0.7);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.dog-meta strong {
  color: #fff2d5;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.stamina-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.stamina-track {
  width: 102px;
  height: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 245, 214, 0.16);
}

#stamina-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ecbf62, #8bc567);
  transition: width 80ms linear;
}

.stamina-line span {
  color: rgba(255, 245, 219, 0.5);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.control-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 245, 215, 0.14);
  border-radius: 999px;
  color: rgba(255, 246, 222, 0.62);
  font-size: 8.5px;
  font-weight: 800;
  background: rgba(23, 49, 32, 0.48);
  backdrop-filter: blur(8px);
}

.control-strip span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.control-strip kbd {
  min-width: 16px;
  height: 16px;
  color: rgba(255, 247, 224, 0.8);
  border-color: rgba(255, 244, 207, 0.22);
  background: rgba(255, 250, 230, 0.12);
  box-shadow: none;
}

.bark-button {
  --cooldown: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(94px, 8.2vw, 112px);
  aspect-ratio: 1;
  flex: none;
  border: 3px solid rgba(255, 248, 220, 0.9);
  border-radius: 50%;
  color: #395b3d;
  background:
    radial-gradient(circle at 36% 27%, #fffdf0 0%, #fff1ca 45%, #ebc777 100%);
  box-shadow:
    0 8px 0 #a56e30,
    0 14px 24px rgba(20, 35, 19, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  pointer-events: auto;
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.bark-button:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}

.bark-button:active {
  transform: translateY(5px);
  box-shadow:
    0 3px 0 #a56e30,
    0 8px 14px rgba(20, 35, 19, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.bark-button.ready::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255, 228, 145, 0.55);
  border-radius: 50%;
  animation: ready-pulse 2.1s ease-out infinite;
  pointer-events: none;
}

.bark-paw {
  position: relative;
  z-index: 2;
  width: 31px;
  height: 31px;
  margin-bottom: 1px;
}

.bark-paw svg {
  width: 100%;
  height: 100%;
}

.bark-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.bark-copy b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.bark-copy span {
  color: #8a6a3c;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cooldown-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(rgba(85, 64, 32, 0.25) calc(var(--cooldown) * 1turn), transparent 0);
  pointer-events: none;
}

.bark-button.cooling {
  filter: saturate(0.65);
}

.bark-button.cooling .bark-paw {
  opacity: 0.5;
}

.level-banner {
  position: absolute;
  left: 50%;
  top: 17%;
  z-index: 16;
  width: min(620px, 88vw);
  padding: 0 20px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  animation: banner-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 13px 24px rgba(17, 36, 22, 0.25));
}

.level-banner > span {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(255, 243, 202, 0.32);
  border-radius: 999px;
  color: #fff0bf;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.19em;
  background: rgba(29, 60, 39, 0.78);
  backdrop-filter: blur(8px);
}

.level-banner h2 {
  margin: 9px 0 10px;
  color: #fff7df;
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-shadow:
    0 3px 0 #5f7850,
    0 7px 0 #315135,
    0 13px 22px rgba(20, 40, 22, 0.33);
}

.banner-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 510px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 246, 213, 0.2);
  border-radius: 15px;
  color: rgba(255, 246, 220, 0.88);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  background: rgba(28, 56, 38, 0.84);
  backdrop-filter: blur(10px);
}

.level-banner.leaving {
  animation: banner-out 0.55s ease both;
}

.floaters {
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
}

.floater {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  pointer-events: none;
  will-change: transform, opacity;
}

.floater.woof {
  padding: 4px 12px 5px;
  border-radius: 12px;
  color: #fff8e2;
  font-size: 19px;
  letter-spacing: 0.02em;
  background: #c65b42;
  box-shadow: 0 4px 0 #8c3e2e, 0 8px 14px rgba(56, 29, 20, 0.18);
  transform-origin: 50% 100%;
}

.floater.baa {
  padding: 2px 8px;
  border: 1px solid rgba(86, 79, 47, 0.16);
  border-radius: 9px;
  color: #516044;
  font-size: 11px;
  background: rgba(255, 249, 231, 0.9);
  box-shadow: 0 2px 6px rgba(31, 45, 26, 0.12);
}

.floater.alert {
  padding: 3px 9px;
  border-radius: 9px;
  color: #fff7df;
  font-size: 12px;
  background: #b84b39;
  box-shadow: 0 3px 0 #7f3128;
}

.floater.happy {
  color: #fff5ca;
  font-size: 16px;
  text-shadow: 0 2px 0 #9a7434, 0 4px 7px rgba(35, 45, 22, 0.25);
}

.modal {
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
  background: rgba(14, 36, 22, 0.44);
  backdrop-filter: blur(7px) saturate(0.92);
  animation: fade-in 0.25s ease both;
}

.modal-card {
  position: relative;
  width: min(92vw, 520px);
  padding: 30px 34px 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 29px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(255, 255, 255, 0.92), transparent 52%),
    linear-gradient(165deg, #fff8e4, #f2e2bd);
  box-shadow:
    0 35px 80px rgba(11, 30, 16, 0.37),
    0 5px 0 rgba(111, 86, 45, 0.2),
    inset 0 1px 0 white;
  animation: modal-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-card::before,
.modal-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.modal-card::before {
  width: 220px;
  height: 220px;
  top: -142px;
  right: -83px;
  border: 30px solid rgba(150, 174, 105, 0.14);
}

.modal-card::after {
  width: 110px;
  height: 110px;
  bottom: -74px;
  left: -44px;
  border: 18px solid rgba(213, 172, 93, 0.13);
}

.modal-card h2 {
  position: relative;
  margin: 5px 0 5px;
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 53px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.modal-kicker {
  position: relative;
  color: #a57837;
}

.modal-sub {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  color: #6e725d;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.small-card {
  width: min(92vw, 455px);
}

.stars {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 17px 0 8px;
}

.star {
  position: relative;
  width: 49px;
  height: 49px;
  background: #d7c8a5;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
  transform: scale(0.85);
  opacity: 0.6;
  filter: drop-shadow(0 4px 0 rgba(132, 105, 58, 0.26));
}

.star.on {
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(160deg, #ffe49b, #eeb34d 62%, #d7922f);
  filter: drop-shadow(0 4px 0 #b77a2c) drop-shadow(0 8px 9px rgba(157, 103, 30, 0.18));
  animation: star-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.star:nth-child(2) {
  animation-delay: 0.08s;
}

.star:nth-child(3) {
  animation-delay: 0.16s;
}

.star-caption {
  position: relative;
  margin: 0 0 17px;
  color: #9c8456;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 11px 20px;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button.primary {
  color: #fff8e2;
  background: linear-gradient(155deg, #68a452, #40783b);
  box-shadow: 0 5px 0 #2c572f, 0 9px 17px rgba(57, 85, 38, 0.18), inset 0 1px 0 rgba(255, 255, 225, 0.35);
}

.button.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(155deg, #72af5a, #477f40);
  box-shadow: 0 6px 0 #2c572f, 0 12px 20px rgba(57, 85, 38, 0.2), inset 0 1px 0 rgba(255, 255, 225, 0.35);
}

.button.ghost {
  color: #596a4e;
  border: 1px solid rgba(91, 94, 59, 0.18);
  background: rgba(255, 252, 239, 0.65);
  box-shadow: 0 4px 0 rgba(135, 109, 66, 0.13);
}

.button.ghost:hover {
  background: #fffcf0;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 rgba(44, 87, 47, 0.18) !important;
}

.button span {
  font-size: 1.15em;
}

.text-button.subtle {
  position: relative;
  margin-top: 13px;
  color: #9b8b6a;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
}

.modal-actions.row {
  flex-wrap: nowrap;
}

.modal-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: #9b917a;
  font-size: 9px;
  font-weight: 800;
}

.modal-controls span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.final-card {
  width: min(92vw, 540px);
  background:
    radial-gradient(ellipse at 50% -15%, rgba(255, 251, 230, 0.98), transparent 47%),
    radial-gradient(ellipse at 8% 105%, rgba(234, 194, 110, 0.2), transparent 36%),
    linear-gradient(165deg, #fff8e2, #efdfb8);
}

.final-stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 46px;
  margin: 21px 0 12px;
  padding: 15px 10px;
  border-top: 1px solid rgba(133, 113, 72, 0.18);
  border-bottom: 1px solid rgba(133, 113, 72, 0.18);
}

.final-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.final-stats span {
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.final-stats small {
  color: #9e8a65;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.final-dog-line {
  position: relative;
  color: #8b7752;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tutorial-card {
  position: absolute;
  left: 50%;
  bottom: 125px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 246, 215, 0.72);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 248, 229, 0.95);
  box-shadow: 0 14px 32px rgba(16, 37, 23, 0.22), inset 0 1px 0 white;
  transform: translateX(-50%);
  pointer-events: none;
  animation: tutorial-in 0.5s ease both;
}

.tutorial-icon {
  width: 40px;
  height: 40px;
  flex: none;
}

.tutorial-icon svg {
  width: 100%;
  height: 100%;
}

.tutorial-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.tutorial-card p {
  color: #656e57;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}

.tutorial-card.leaving {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.loading-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  z-index: 100;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 248, 215, 0.95), transparent 50%),
    linear-gradient(160deg, #f9f0d2, #e8daaf);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.loading-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 0 #c2b47e;
}

.loading-logo em {
  color: var(--coral);
  font-style: normal;
}

.loading-sheep {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-top: 3px;
}

.loading-sheep span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.35;
  animation: sheep-bounce 0.9s infinite ease-in-out;
}

.loading-sheep span:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-sheep span:nth-child(3) {
  animation-delay: 0.24s;
}

.loading-screen p {
  color: #80724f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes screen-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hud-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes threat-in {
  from { opacity: 0; transform: translateX(9px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ready-pulse {
  0% { transform: scale(0.96); opacity: 0.55; }
  70% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

@keyframes banner-in {
  from { opacity: 0; transform: translate(-50%, 14px) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes banner-out {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to { opacity: 0; transform: translate(-50%, -10px) scale(0.985); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(17px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes star-pop {
  from { transform: scale(0.3) rotate(-12deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes sheep-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-8px); opacity: 0.95; }
}

@keyframes tutorial-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1160px) {
  .menu-panel {
    grid-template-columns: minmax(190px, 0.9fr) minmax(370px, 2fr) minmax(158px, 0.78fr);
    gap: 13px;
    border-radius: 24px;
  }

  .panel-intro p {
    font-size: 11.5px;
  }

  .breed-card {
    padding-inline: 5px;
  }

  .breed-name {
    font-size: 11px;
  }

  .breed-name small {
    font-size: 7px;
  }

  .start-button {
    min-height: 88px;
    padding: 12px 13px;
  }

  .start-big {
    font-size: 21px;
  }

  .control-strip {
    gap: 8px;
    padding: 5px 9px;
  }

  .control-strip span {
    font-size: 8px;
  }
}

@media (max-width: 930px) {
  .menu {
    overflow-y: auto;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 28px;
    background: linear-gradient(180deg, rgba(17, 42, 26, 0.28), rgba(15, 36, 23, 0.64));
  }

  .menu-panel {
    margin-top: 18px;
  }

  .menu-note {
    display: none;
  }

  .game-logo {
    font-size: clamp(54px, 13vw, 92px);
  }

  .menu-panel {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .panel-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
    align-items: end;
    padding: 3px 4px;
  }

  .panel-kicker,
  .panel-intro p,
  .selected-stats {
    grid-column: 1 / -1;
  }

  .panel-intro h2 {
    margin: 4px 0 0;
  }

  .selected-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px 19px;
    margin-top: 10px;
  }

  .stat-row {
    grid-template-columns: 38px 1fr;
  }

  .breed-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .menu-start {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .start-button {
    min-height: 73px;
  }

  .menu-controls {
    justify-content: flex-end;
    max-width: 150px;
  }

  .menu-footer {
    order: 3;
  }

  .hud {
    padding-top: 11px;
  }

  .level-card {
    min-width: 235px;
    padding: 9px 12px 10px;
  }

  .level-card h2 {
    font-size: 19px;
  }

  .timer-card {
    min-width: 95px;
    padding-inline: 12px;
  }

  #timer {
    font-size: 22px;
  }

  .map-column {
    width: 125px;
  }

  .threat-hud {
    width: 190px;
  }

  .control-strip {
    display: none;
  }

  .dog-card {
    padding-right: 9px;
  }
}

@media (max-width: 680px) {
  .menu {
    padding: 16px;
  }

  .logo-sub {
    font-size: 11px;
  }

  .logo-kicker {
    font-size: 8px;
  }

  .menu-panel {
    padding: 11px;
    border-radius: 22px;
  }

  .breed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .breed-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 7px;
    padding: 7px;
    border-radius: 15px;
  }

  .breed-portrait {
    width: 48px;
    flex: none;
  }

  .breed-name {
    align-items: flex-start;
    margin: 0;
    font-size: 12px;
  }

  .breed-tick {
    top: 5px;
    right: 5px;
  }

  .menu-start {
    display: flex;
  }

  .menu-controls {
    justify-content: flex-start;
    max-width: none;
  }

  .hud-top {
    grid-template-columns: 1fr auto;
  }

  .timer-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .map-column {
    width: 110px;
  }

  .minimap-shell {
    width: 106px;
  }

  .level-card {
    min-width: 0;
    width: 218px;
  }

  .level-card h2 {
    font-size: 17px;
  }

  .objective-line {
    font-size: 9px;
  }

  .distance {
    display: none;
  }

  .hud-left {
    gap: 6px;
  }

  .round-button {
    width: 34px;
    height: 34px;
  }

  .threat-hud {
    display: none;
  }

  .dog-card {
    max-width: 210px;
  }

  .dog-avatar {
    width: 36px;
    height: 36px;
  }

  .dog-avatar svg {
    width: 44px;
    height: 44px;
  }

  .bark-button {
    width: 82px;
  }

  .bark-copy b {
    font-size: 14px;
  }

  .floater.woof {
    font-size: 16px;
  }

  .modal-card {
    padding: 25px 18px 20px;
    border-radius: 24px;
  }

  .stars {
    gap: 9px;
  }

  .star {
    width: 39px;
    height: 39px;
  }

  .completion-actions,
  .modal-actions.row {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .completion-actions .button,
  .modal-actions .button {
    width: 100%;
  }

  .final-stats {
    gap: 22px;
  }

  .final-stats span {
    font-size: 27px;
  }

  .level-banner {
    top: 20%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bark-button.ready::after,
  .loading-sheep span {
    animation: none;
  }

  .menu,
  .menu-panel,
  .modal-card,
  .level-banner,
  .breed-card,
  .button {
    animation: none !important;
    transition: none !important;
  }
}
