.sr-ui,
.sr-admin {
  --sr-ink: #24483f;
  --sr-muted: #59766b;
  --sr-leaf: #3a8154;
  --sr-leaf-deep: #266544;
  --sr-sun: #f0b638;
  --sr-peach: #f8d6a0;
  --sr-paper: #fff9eb;
  --sr-border: #dfc989;
  --sr-card: #fffdf6;
  color: var(--sr-ink);
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.45;
}

.sr-ui *,
.sr-admin * { box-sizing: border-box; }

.sr-ui {
  min-height: 100dvh;
  padding: clamp(12px, 3vw, 30px);
  background: #f8edcf;
}

.sr-shell {
  width: min(100%, 1050px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e3c77d;
  border-radius: 28px;
  background: var(--sr-paper);
  box-shadow: 0 14px 42px #7156281c;
}

.sr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px clamp(16px, 3vw, 30px);
  background: #fff9ea;
  border-bottom: 1px solid #ead9a9;
}

.sr-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 1.1rem ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: .01em;
}

.sr-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 13px 4px;
  color: #fff8df;
  background: var(--sr-leaf);
  font: 700 1rem "DM Sans", sans-serif;
}

.sr-round {
  color: var(--sr-muted);
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sr-progress {
  width: 88px;
  height: 8px;
  margin-left: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9ddb8;
  vertical-align: middle;
}

.sr-progress > span {
  display: block;
  width: var(--sr-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--sr-leaf);
}

.sr-main { padding: clamp(16px, 3vw, 28px); }

.sr-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 31%);
  align-items: end;
  min-height: clamp(220px, 35vw, 340px);
  overflow: hidden;
  padding: 20px clamp(16px, 5vw, 52px) 0;
  border: 1px solid #d6c376;
  border-radius: 23px;
  background: #a7e3ef url("../assets/savanna-run/parallax_sky.svg") center 40% / cover no-repeat;
}

.sr-track {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sr-stage::before,
.sr-stage::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.sr-stage::before {
  background-image: url("../assets/savanna-run/parallax_hills.svg"), url("../assets/savanna-run/parallax_trees.svg");
}

.sr-stage::after {
  background-image: url("../assets/savanna-run/parallax_ground.svg"), url("../assets/savanna-run/parallax_foreground.svg");
}

.sr-scene-copy {
  align-self: start;
  max-width: 470px;
  padding: 8px 0 20px;
}

.sr-kicker {
  margin: 0 0 7px;
  color: #386d4b;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sr-scene-copy h1,
.sr-admin h1,
.sr-admin h2 {
  margin: 0;
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: -.025em;
}

.sr-scene-copy h1 { max-width: 14ch; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.06; }
.sr-scene-copy p { max-width: 39ch; margin: 10px 0 0; color: #345b4a; font-size: clamp(.92rem, 2vw, 1.04rem); }

.sr-character {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 270px);
  justify-self: center;
  align-self: end;
  filter: drop-shadow(0 8px 3px #59472a2b);
}

.sr-status {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 11px 15px;
  border: 1px solid #e9d69d;
  border-radius: 15px;
  background: #fff6dc;
  color: #496b54;
  font-size: .94rem;
  font-weight: 650;
}

.sr-status[data-kind="success"] { border-color: #a9cf9a; background: #edf6df; color: #32663f; }
.sr-status[data-kind="try"] { border-color: #e5b89a; background: #fff0e4; color: #875a3f; }
.sr-status-mark { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--sr-sun); }

.sr-play-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e8d8ae;
  border-radius: 20px;
  background: var(--sr-card);
}

.sr-listen-copy strong { display: block; font: 600 1.2rem "Fredoka", sans-serif; }
.sr-listen-copy span { display: block; margin-top: 3px; color: var(--sr-muted); font-size: .88rem; }
.sr-audio { width: min(100%, 350px); height: 42px; }
.sr-silent-note { margin: 9px 0 0; color: #846039; font-size: .82rem; font-weight: 650; }

.sr-options-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 12px;
}

.sr-options-head h2 { margin: 0; font: 600 1.2rem "Fredoka", sans-serif; }
.sr-options-head span { color: var(--sr-muted); font-size: .8rem; }

.sr-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
}

.sr-option {
  position: absolute;
  left: -100%;
  bottom: 13%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  width: clamp(100px, 14vw, 148px);
  height: clamp(102px, 14vw, 148px);
  padding: 18px 12px 14px;
  border: 0;
  border-radius: 0;
  background: url("/assets/savanna-run/collectible_empty.svg") center / contain no-repeat;
  color: var(--sr-ink);
  text-align: center;
  pointer-events: none;
  filter: drop-shadow(0 5px 3px #55442730);
}

.sr-option[data-current="true"] { filter: drop-shadow(0 0 10px #fff8a8) drop-shadow(0 5px 3px #55442730); }
.sr-option-label { padding: 2px 7px; border-radius: 99px; background: #fff9e8e8; font: 700 .84rem ui-rounded, "Trebuchet MS", system-ui, sans-serif; }
.sr-answer-art {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 76px;
  color: #41694b;
}
.sr-answer-art img { display: block; max-width: 100%; max-height: 90px; object-fit: contain; }
.sr-word-art { display: block; max-width: 100%; }
.sr-answer-art .emoji { color: #24483f; font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1; }
.sr-answer-art .sr-option-number { color: #24483f; font-size: 2.6rem; font-weight: 800; }

.sr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 2px;
}

.sr-button,
.sr-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid #d6c58e;
  border-radius: 15px;
  background: #fffdf7;
  color: var(--sr-ink);
  font: 700 .96rem "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}

.sr-button:hover, .sr-icon-button:hover { transform: translateY(-1px); background: #fff4d7; }
.sr-button-primary { border-color: var(--sr-leaf); background: var(--sr-leaf); color: #fffdf3; box-shadow: 0 3px 0 var(--sr-leaf-deep); }
.sr-button-primary:hover { background: var(--sr-leaf-deep); }
.sr-button-soft { background: #f5ebcd; }
.sr-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.sr-button-icon { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; }
[data-sr-action="jump"] { min-width: min(100%, 260px); min-height: 82px; font-size: 1.12rem; }
[data-sr-action="jump"] .sr-button-icon { width: 64px; height: 64px; }
.sr-icon-button { width: 48px; padding: 8px; }
.sr-button svg, .sr-icon-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.sr-dev-note { margin: 16px 0 0; padding: 10px 13px; border-left: 3px solid #c88d45; background: #fff3d9; color: #735833; font-size: .83rem; }
.sr-preview-copy { margin: 12px 0 0; padding: 13px 15px; border: 1px dashed #b6905a; border-radius: 14px; background: #fff8e8; color: #694d32; }
.sr-preview-copy small { display: block; margin-bottom: 4px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sr-stars { display: flex; align-items: center; gap: 5px; color: #8c692d; font-weight: 800; }
.sr-stars img { width: 24px; height: 24px; }
.sr-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-admin {
  min-height: 100dvh;
  padding: clamp(14px, 3vw, 34px);
  background: #f4f1e7;
}

.sr-admin-shell { width: min(100%, 1000px); margin: 0 auto; }
.sr-admin-crumb { margin: 0 0 8px; color: #647b6d; font-size: .83rem; font-weight: 650; }
.sr-admin-header { margin-bottom: 22px; }
.sr-admin-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sr-admin-header p { max-width: 64ch; margin: 7px 0 0; color: var(--sr-muted); }
.sr-admin-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: start; }
.sr-admin-card { padding: clamp(17px, 3vw, 25px); border: 1px solid #dcd6c4; border-radius: 21px; background: #fffdf7; box-shadow: 0 8px 26px #4f59400d; }
.sr-admin-card h2 { margin-bottom: 15px; font-size: 1.35rem; }
.sr-field { display: grid; gap: 7px; margin: 0 0 17px; }
.sr-field label, .sr-field-label { color: #38574a; font-size: .9rem; font-weight: 750; }
.sr-field select, .sr-field textarea, .sr-field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #c7c8b7;
  border-radius: 12px;
  background: #fffefa;
  color: var(--sr-ink);
  font: 500 .95rem "DM Sans", sans-serif;
}
.sr-field textarea { min-height: 126px; resize: vertical; line-height: 1.5; }
.sr-field-help { margin: -1px 0 0; color: #6c7d70; font-size: .8rem; }
.sr-recording-label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-weight: 750; }
.sr-recording-dot { width: 11px; height: 11px; border-radius: 50%; background: #c46b4c; box-shadow: 0 0 0 4px #f8e2d9; }
.sr-recording-dot[data-recording="true"] { background: #bd463d; }
.sr-audio-preview-box { padding: 13px; border: 1px solid #d9d3bd; border-radius: 15px; background: #f7f2e4; }
.sr-audio-preview-box strong { display: block; margin-bottom: 8px; font-size: .9rem; }
.sr-admin-audio { display: block; width: 100%; height: 42px; }
.sr-audio-placeholder { margin: 0; color: #687a6d; font-size: .86rem; }
.sr-parent-notice { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e4cd8f; border-radius: 13px; background: #fff5d9; color: #70552d; font-size: .85rem; }
.sr-admin-status { min-height: 44px; margin: 14px 0 0; color: #496d50; font-size: .88rem; font-weight: 700; }
.sr-admin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.sr-admin-actions .sr-button { min-height: 46px; }
.sr-file-control { display: grid; gap: 8px; margin-top: 13px; padding: 12px; border: 1px dashed #b9b7a4; border-radius: 13px; background: #fcfaf2; }
.sr-file-control label { font-size: .85rem; font-weight: 750; }
.sr-file-control input { max-width: 100%; min-height: 44px; color: #4b6255; }
.sr-status-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border-radius: 99px; background: #f1ead7; color: #655b43; font-size: .77rem; font-weight: 800; }
.sr-status-chip[data-status="published"] { background: #e5f1dc; color: #396746; }
.sr-status-chip[data-status="draft"] { background: #fff0d0; color: #856124; }
.sr-status-chip[data-status="hidden"] { background: #e9e8df; color: #5c655b; }
.sr-word-record { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #f5f0df; }
.sr-word-record strong { font: 600 1rem ui-rounded, "Trebuchet MS", system-ui, sans-serif; }
.sr-record-meta { color: #637568; font-size: .8rem; }
.sr-admin-visual { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 13px; margin-bottom: 16px; }
.sr-admin-visual-art { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 17px; background: #f0ead8; }
.sr-admin-visual-art img { max-width: 74px; max-height: 74px; object-fit: contain; }

.sr-ui button:focus-visible,
.sr-admin button:focus-visible,
.sr-admin select:focus-visible,
.sr-admin textarea:focus-visible,
.sr-admin input:focus-visible {
  outline: 3px solid #b57925;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .sr-ui { padding: 0; }
  .sr-shell { min-height: 100dvh; border: 0; border-radius: 0; }
  .sr-topbar { min-height: 58px; }
  .sr-main { padding: 12px; }
  .sr-stage { grid-template-columns: minmax(0, 1fr) minmax(110px, 34%); min-height: 218px; padding: 15px 13px 0; border-radius: 18px; }
  .sr-scene-copy { padding-top: 4px; }
  .sr-scene-copy h1 { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .sr-character { width: 128%; max-width: 190px; margin-left: -18%; }
  .sr-status { margin: 11px 0; }
  .sr-play-panel { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .sr-audio { width: 100%; }
  .sr-options-head { margin-top: 17px; }
  .sr-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sr-option { width: 108px; height: 110px; padding: 14px 8px 12px; }
  .sr-controls { gap: 8px; margin-top: 16px; }
  .sr-controls .sr-button { flex: 1 1 auto; }
  .sr-admin { padding: 14px; }
  .sr-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .sr-brand { font-size: 1rem; }
  .sr-round { font-size: .78rem; }
  .sr-progress { width: 54px; }
  .sr-stage { grid-template-columns: minmax(0, 1fr) 108px; min-height: 203px; }
  .sr-scene-copy p { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-ui *, .sr-admin * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

body.savanna-run-route .main-shell { width: 100%; max-width: none; margin: 0; }
body.savanna-run-route .main-shell > footer { display: none; }
body.savanna-run-route #main { width: 100%; max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* Savanna Chase child play surface — intentionally isolated from Admin. */
.sr-ui {
  --sr-ink: #31513b;
  --sr-leaf: #2f9b58;
  --sr-leaf-deep: #247744;
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  color: var(--sr-ink);
  background: #bce9db;
  line-height: 1.2;
}

.sr-ui .sr-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sr-ui .sr-topbar {
  position: absolute;
  z-index: 8;
  inset: max(12px, env(safe-area-inset-top)) clamp(16px, 3vw, 44px) auto;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.sr-ui .sr-brand { display: none; }
.sr-ui .sr-round { width: min(28vw, 220px); margin-left: auto; color: #315c40; }
.sr-ui .sr-progress { display: block; width: 100%; height: 12px; margin: 0; border: 2px solid #fff4cc; background: #76b36d; box-shadow: 0 2px 5px #42653542; }
.sr-ui .sr-progress > span { background: #f6bc39; transition: width .45s ease; }

.sr-ui .sr-main {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sr-ui .sr-stage {
  position: absolute;
  isolation: isolate;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #a7e3ef url("/assets/savanna-run/parallax_sky.svg") center / cover no-repeat;
}

.sr-ui .sr-stage::before,
.sr-ui .sr-stage::after {
  z-index: 0;
  background-position: center bottom;
  background-size: cover;
  will-change: transform;
}
.sr-ui .sr-stage::before { inset: 0 -2vw; animation: sr-parallax-far 24s ease-in-out infinite alternate; }
.sr-ui .sr-stage::after { inset: 0 -4vw; animation: sr-parallax-near 13s ease-in-out infinite alternate; }

.sr-ui .sr-scene-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sr-ui .sr-track {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.sr-ui:not([data-phase="playing"]) .sr-track,
.sr-ui:not([data-phase="playing"]) .sr-option { visibility: hidden; }

.sr-ui .sr-player {
  position: absolute;
  z-index: 4;
  left: clamp(8px, 3vw, 48px);
  bottom: clamp(42px, 8vh, 105px);
  width: min(46vw, 610px);
  aspect-ratio: 4 / 3;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 100%;
  will-change: transform;
  pointer-events: none;
}
.sr-ui .sr-character {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 5px #59472a36);
  animation: sr-run-bob 1.05s ease-in-out infinite alternate;
}
.sr-ui .sr-player-hitbox {
  position: absolute;
  left: 22%;
  top: 38%;
  width: 58%;
  height: 42%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.sr-ui .sr-player[data-flight-phase="takeoff"] .sr-character,
.sr-ui .sr-player[data-flight-phase="airborne"] .sr-character,
.sr-ui .sr-player[data-flight-phase="landing"] .sr-character { animation: none; }

.sr-ui .sr-option {
  position: absolute;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  left: auto;
  bottom: clamp(42px, 8vh, 105px);
  width: clamp(132px, 16vw, 220px);
  height: clamp(132px, 16vw, 220px);
  padding: 13px;
  border: 0;
  border-radius: 50%;
  background: url("/assets/savanna-run/collectible_empty.svg") center / contain no-repeat;
  color: #31513b;
  text-align: center;
  pointer-events: none;
  filter: drop-shadow(0 8px 5px #55442738);
  animation: sr-answer-float 2.8s ease-in-out infinite alternate;
}

.sr-ui .sr-option:nth-child(1) { left: 55%; }
.sr-ui .sr-option:nth-child(2) { left: 70%; animation-delay: -.7s; }
.sr-ui .sr-option:nth-child(3) { left: 85%; animation-delay: -1.4s; }
.sr-ui .sr-option[data-current="true"] { filter: drop-shadow(0 0 12px #fff3a2) drop-shadow(0 8px 5px #55442738); }
.sr-ui .sr-option[data-wrong-catch="true"] {
  animation: sr-wrong-wobble .48s ease both;
  filter: drop-shadow(0 0 14px #e85d42) drop-shadow(0 8px 5px #55442738);
}
.sr-ui[data-phase="feedback"] .sr-option,
.sr-ui[data-phase="retry"] .sr-option,
.sr-ui[data-phase="complete"] .sr-option { opacity: 0; }
.sr-ui .sr-wrong-mark {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: clamp(24px, 3.5vw, 34px);
  height: clamp(24px, 3.5vw, 34px);
  border: 2px solid #fff8e9;
  border-radius: 50%;
  background: #d84e43;
  color: #fff;
  box-shadow: 0 2px 5px #6333275c;
}
.sr-ui .sr-wrong-mark svg { width: 72%; height: 72%; }
.sr-ui .sr-answer-art { display: grid; place-items: center; width: 100%; min-height: 0; flex: 1; }
.sr-ui .sr-answer-art img { display: block; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.sr-ui .sr-word-art { display: block; max-width: 100%; max-height: 100%; }
.sr-ui .sr-option-label {
  max-width: 100%;
  padding: 4px 10px;
  border: 2px solid #f7d474;
  border-radius: 99px;
  background: #fff8e9ed;
  color: #294e35;
  font: 700 clamp(.95rem, 1.5vw, 1.3rem) ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  box-shadow: 0 2px 4px #694b1b20;
}

.sr-ui .sr-controls {
  position: absolute;
  z-index: 10;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(8px, 1.5vw, 18px);
  margin: 0;
  pointer-events: none;
}

.sr-ui .sr-controls > * { flex: 0 0 auto; pointer-events: auto; }
.sr-ui .sr-button {
  min-width: 58px;
  min-height: 58px;
  border: 2px solid #fff4d1;
  border-radius: 50%;
  background: #fff9e9ed;
  color: #31513b;
  box-shadow: 0 4px 0 #9a814a73, 0 8px 18px #35533832;
  transition: transform .18s ease, background-color .18s ease;
}
.sr-ui .sr-button:hover { transform: translateY(-2px); background: #fff4d7; }
.sr-ui .sr-button-primary { border-color: #fff0bd; background: #3b9e58; color: #fffdf3; box-shadow: 0 5px 0 #267744, 0 9px 18px #35533839; }
.sr-ui .sr-button-primary:hover { background: #2e8849; }
.sr-ui .sr-button:disabled { opacity: .52; }
.sr-ui .sr-icon-control { width: 58px; height: 58px; padding: 14px; }
.sr-ui .sr-audio-retry {
  flex: 1 1 220px;
  width: min(100%, 420px);
  min-width: 0;
  min-height: 78px;
  padding: 12px 20px;
  gap: 12px;
  border-radius: 24px;
  font-size: clamp(.98rem, 2.2vw, 1.16rem);
  line-height: 1.2;
}
.sr-ui .sr-audio-retry img { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.sr-ui .sr-icon-control svg,
.sr-ui .sr-icon-control img { width: 100%; height: 100%; object-fit: contain; }
.sr-ui .sr-jump-control {
  order: 5;
  width: clamp(112px, 13vw, 164px);
  height: clamp(112px, 13vw, 164px);
  min-width: 112px;
  min-height: 112px;
  padding: 9px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 5px 0 #26774462, 0 10px 22px #3553383d;
}
.sr-ui .sr-jump-control:hover { background: transparent; transform: none; }
.sr-ui .sr-jump-control .sr-button-icon { width: 100%; height: 100%; object-fit: contain; }
.sr-ui .sr-missing-notice {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(82vw, 380px);
  margin: 0;
  padding: 13px 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff1c8;
  border-radius: 22px;
  background: #fff9e9ed;
  color: #31513b;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 5px 18px #35533835;
}
.sr-ui .sr-audio-notice {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(82vw, 520px);
  margin: 0;
  padding: 15px 20px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff1c8;
  border-radius: 22px;
  background: #fff9e9ed;
  color: #31513b;
  font: 700 clamp(1rem, 2.2vw, 1.35rem) ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 22px #35533832;
}
.sr-ui .sr-celebration {
  position: absolute;
  z-index: 4;
  top: 21%;
  left: 50%;
  width: min(52vw, 460px);
  max-height: 36vh;
  transform: translateX(-50%);
  pointer-events: none;
}
.sr-ui .sr-complete-star {
  position: absolute;
  z-index: 5;
  top: 25%;
  left: 50%;
  width: clamp(58px, 10vw, 100px);
  transform: translateX(-50%);
  pointer-events: none;
}
.sr-ui .sr-catch-star {
  position: absolute;
  z-index: 5;
  top: 52%;
  left: 43%;
  width: clamp(62px, 8vw, 92px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: sr-catch-pop .8s ease-out both;
}
.sr-ui .sr-run-feedback {
  position: absolute;
  z-index: 9;
  top: 38%;
  left: 50%;
  width: min(84vw, 440px);
  margin: 0;
  padding: 12px 18px;
  transform: translateX(-50%);
  border: 2px solid #fff1c8;
  border-radius: 22px;
  background: #fff9e9ed;
  color: #31513b;
  font: 800 clamp(1rem, 2.2vw, 1.35rem) ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 22px #35533832;
  pointer-events: none;
  animation: sr-catch-pop .7s ease-out both;
}
.sr-ui .sr-run-feedback[data-kind="retry"] {
  border-color: #ffe5bd;
  color: #654c28;
  animation: none;
}
.sr-ui .sr-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sr-ui button:focus-visible { outline: 4px solid #fff4b5; outline-offset: 4px; }

@keyframes sr-run-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

@keyframes sr-answer-float {
  from { transform: translateY(2px); }
  to { transform: translateY(-8px); }
}
@keyframes sr-wrong-wobble {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-8px) rotate(-5deg); }
  50% { transform: translateX(8px) rotate(5deg); }
  75% { transform: translateX(-5px) rotate(-3deg); }
}
@keyframes sr-catch-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.75); }
}
@keyframes sr-parallax-far {
  from { transform: translate3d(1%, 0, 0); }
  to { transform: translate3d(-1%, 0, 0); }
}
@keyframes sr-parallax-near {
  from { transform: translate3d(1%, 0, 0); }
  to { transform: translate3d(-2%, 0, 0); }
}

@media (max-width: 767px) {
  .sr-ui .sr-topbar { inset: max(10px, env(safe-area-inset-top)) 16px auto; }
  .sr-ui .sr-round { width: min(34vw, 150px); }
  .sr-ui .sr-progress { height: 10px; }
  .sr-ui .sr-stage {
    background-image: url("/assets/savanna-run/savanne_portrait_samlet.svg");
    background-position: 50% center;
    animation: sr-portrait-pan 22s ease-in-out infinite alternate;
  }
  .sr-ui .sr-stage::before,
  .sr-ui .sr-stage::after { background-image: none; animation: none; }
  .sr-ui .sr-player {
    left: 1vw;
    bottom: max(116px, calc(16vh + env(safe-area-inset-bottom)));
    width: min(74vw, 380px);
    max-width: none;
    margin: 0;
  }
  .sr-ui .sr-option {
    bottom: max(156px, calc(21vh + env(safe-area-inset-bottom)));
    width: clamp(102px, 27vw, 142px);
    height: clamp(102px, 27vw, 142px);
    padding: 9px;
  }
  .sr-ui .sr-option:nth-child(1) { left: 48%; }
  .sr-ui .sr-option:nth-child(2) { left: 68%; }
  .sr-ui .sr-option:nth-child(3) { left: 81%; }
  .sr-ui .sr-option-label { padding: 3px 7px; font-size: clamp(.76rem, 3.6vw, .95rem); }
  .sr-ui .sr-controls {
    right: max(13px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(13px, env(safe-area-inset-left));
    gap: 7px;
  }
  .sr-ui .sr-icon-control { width: 46px; height: 46px; min-width: 46px; min-height: 46px; padding: 10px; }
  .sr-ui .sr-icon-control svg { width: 22px; height: 22px; }
  .sr-ui .sr-jump-control { width: 104px; height: 104px; min-width: 104px; min-height: 104px; margin-left: auto; }
  .sr-ui .sr-controls > .sr-button:not(.sr-icon-control):not(.sr-jump-control) { min-height: 58px; padding: 12px 20px; border-radius: 22px; }
  .sr-ui .sr-controls > .sr-audio-retry {
    flex: 1 1 0;
    min-width: 0;
    min-height: 70px;
    padding: 10px 12px;
    gap: 8px;
    font-size: .94rem;
  }
  .sr-ui .sr-audio-retry img { width: 34px; height: 34px; }
}

@media (max-width: 390px) {
  .sr-ui .sr-option { width: 96px; height: 96px; }
  .sr-ui .sr-option:nth-child(1) { left: 47%; }
  .sr-ui .sr-option:nth-child(2) { left: 68%; }
  .sr-ui .sr-option:nth-child(3) { left: 80%; }
  .sr-ui .sr-player { width: 74vw; }
  .sr-ui .sr-jump-control { width: 94px; height: 94px; min-width: 94px; min-height: 94px; }
}

@media (min-width: 768px) and (max-height: 700px) {
  .sr-ui .sr-player { width: min(40vw, 470px); bottom: 82px; }
  .sr-ui .sr-option { width: clamp(112px, 14vw, 170px); height: clamp(112px, 14vw, 170px); bottom: 150px; }
  .sr-ui .sr-option:nth-child(2) { bottom: 205px; }
  .sr-ui .sr-jump-control { width: 112px; height: 112px; min-width: 112px; min-height: 112px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sr-ui .sr-stage {
    background-image: url("/assets/savanna-run/savanne_tablet_samlet.svg");
    background-position: center;
  }
  .sr-ui .sr-stage::before,
  .sr-ui .sr-stage::after { background-image: none; animation: none; }
}

@media (min-width: 1200px) {
  .sr-ui .sr-stage {
    background-image: url("/assets/savanna-run/parallax_sky.svg");
    animation: none;
  }
}

@keyframes sr-portrait-pan {
  from { background-position: 46% center; }
  to { background-position: 54% center; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-ui .sr-character,
  .sr-ui .sr-option,
  .sr-ui .sr-stage,
  .sr-ui .sr-stage::before,
  .sr-ui .sr-stage::after { animation: none; }
  .sr-ui .sr-option[data-wrong-catch="true"],
  .sr-ui .sr-catch-star { animation: none; }
}

body.savanna-run-route {
  height: 100dvh;
  overflow: hidden;
  background: #bce9db;
}
body.savanna-run-route #app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
}
body.savanna-run-route .sidebar,
body.savanna-run-route .main-shell > .top,
body.savanna-run-route .main-shell > footer { display: none !important; }
body.savanna-run-route .main-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.savanna-run-route #main {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
