:root {
  --lime: #c3f53c;
  --lime-dark: #83b812;
  --red: #ee2b2f;
  --red-dark: #b71922;
  --ink: #171a15;
  --cream: #fff8dc;
  --white: #ffffff;
  --sky: #dff9ff;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --safe-top: max(12px, env(safe-area-inset-top));
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #1d2319;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
}

button {
  font: inherit;
}

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

.app {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 10%, rgba(168, 238, 37, 0.35), transparent 30%),
    #1d2319;
}

.game-shell {
  position: relative;
  width: min(100%, 520px);
  height: 100%;
  max-height: 960px;
  overflow: hidden;
  background: var(--lime);
  isolation: isolate;
}

.topbar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: calc(68px + var(--safe-top));
  padding: var(--safe-top) 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--lime);
  border-bottom: var(--line);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -1px;
  transform: skew(-5deg);
}

.brand-mark span:last-child {
  padding-top: 2px;
}

.brand-ears {
  position: relative;
  width: 33px;
  height: 33px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.brand-ears::before,
.brand-ears::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 20px;
  top: -17px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 99px 99px 30px 30px;
  z-index: -1;
}

.brand-ears::before {
  left: 2px;
  transform: rotate(-9deg);
}

.brand-ears::after {
  right: 2px;
  transform: rotate(9deg);
}

.topbar-actions,
.best-pill {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
}

.best-pill {
  height: 39px;
  gap: 8px;
  padding: 4px 11px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.best-pill span {
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 1px;
}

.best-pill strong {
  min-width: 22px;
  color: var(--red);
  font-size: 21px;
  text-align: right;
}

.icon-btn,
.pause-btn {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.icon-btn {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 1000;
}

.profile-trigger {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.profile-trigger-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(145deg, #fff 0%, #dff88c 100%);
  color: var(--ink);
  font-size: 17px;
  font-weight: 1000;
}

.profile-trigger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.icon-btn.is-muted::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(-45deg);
}

.game-stage {
  position: absolute;
  inset: calc(68px + var(--safe-top)) 0 0;
  overflow: hidden;
  background: var(--sky);
  touch-action: none;
}

#game-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.hud {
  position: absolute;
  z-index: 8;
  inset: 12px 12px auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.score-badge,
.carrot-badge {
  min-height: 50px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 3px 3px 0 var(--ink);
}

.score-badge {
  min-width: 84px;
  padding: 5px 11px;
  border-radius: 12px;
}

.score-badge span {
  display: block;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1px;
}

.score-badge strong {
  display: block;
  margin-top: -2px;
  color: var(--red);
  font-size: 27px;
  line-height: 1;
}

.carrot-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 21px;
}

.carrot-badge strong {
  font-size: 20px;
}

.pause-btn {
  width: 46px;
  height: 46px;
  margin-left: auto;
  border-radius: 50%;
  font-size: 17px;
  pointer-events: auto;
}

.overlay,
.loading-screen {
  position: absolute;
  z-index: 10;
  inset: 0;
}

.start-overlay {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(85, 132, 17, 0.18)),
    var(--lime);
}

.start-overlay::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 130%;
  height: 37%;
  left: -15%;
  bottom: -13%;
  border: var(--line);
  border-radius: 50% 50% 0 0;
  background: #7dcf22;
  transform: rotate(-3deg);
}

.sunburst {
  position: absolute;
  width: 570px;
  aspect-ratio: 1;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  opacity: 0.17;
  background: repeating-conic-gradient(#fff 0deg 10deg, transparent 10deg 22deg);
  animation: slow-spin 30s linear infinite;
}

@keyframes slow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.start-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(26px, 5vh, 48px) 20px var(--safe-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 8px;
  padding: 5px 11px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 1.25px;
  transform: rotate(-1deg);
}

.eyebrow.dark {
  color: var(--cream);
  background: var(--ink);
}

h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: clamp(54px, 15vw, 84px);
  font-weight: 1000;
  line-height: 0.75;
  letter-spacing: -5px;
  text-align: center;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(4px 5px 0 var(--ink));
}

h1 span {
  display: inline-block;
  color: var(--red);
  letter-spacing: -6px;
  transform: skew(-8deg) rotate(-2deg);
  -webkit-text-stroke: 3px var(--ink);
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: min(94%, 390px);
  height: clamp(170px, 28vh, 260px);
  margin-top: -4px;
  flex: 0 0 auto;
}

.hero-buck {
  position: relative;
  width: min(98%, 250px);
  height: min(98%, 250px);
  max-width: 98%;
  max-height: 98%;
  aspect-ratio: 1;
  margin: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  animation: hero-float 1.6s ease-in-out infinite alternate;
}

.hero-buck img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(8px 10px 0 rgba(23, 26, 21, 0.94));
}

@keyframes hero-float {
  to { transform: translateY(calc(-50% - 8px)) rotate(-2deg); }
}

.leaderboard-launch {
  position: relative;
  z-index: 3;
  width: min(100%, 390px);
  min-height: 62px;
  margin-top: 10px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: var(--line);
  border-radius: 17px;
  background: rgba(255, 248, 220, 0.98);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  text-align: left;
}

.leaderboard-launch:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.leaderboard-launch-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-status {
  display: block;
  color: var(--lime-dark);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1.15px;
}

.leaderboard-launch-copy strong {
  font-size: 16px;
  letter-spacing: 0.35px;
}

.leaderboard-launch-trophy {
  margin-left: auto;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(1px 2px 0 rgba(23, 26, 21, 0.25));
}

.leaderboard-launch b,
.leaderboard-refresh,
.leaderboard-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.leaderboard-launch b {
  flex: 0 0 30px;
  font-size: 26px;
}

.carrot-info-card {
  position: relative;
  z-index: 3;
  width: min(100%, 390px);
  min-height: 88px;
  margin-top: 9px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  border: var(--line);
  border-radius: 17px;
  background: rgba(255, 248, 220, 0.98);
  box-shadow: 4px 4px 0 var(--ink);
}

.carrot-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 33px;
  line-height: 1;
  transform: rotate(-6deg);
}

.carrot-info-copy {
  min-width: 0;
}

.carrot-info-copy strong,
.carrot-info-copy small {
  display: block;
}

.carrot-info-copy strong {
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.2px;
}

.carrot-info-copy small {
  margin-top: 5px;
  color: #3d472b;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.22;
}

.leaderboard-refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}

.leaderboard-refresh:not(:disabled):active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.leaderboard-overlay {
  z-index: 20;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(23, 26, 21, 0.62);
  backdrop-filter: blur(6px);
  touch-action: pan-y;
}

.profile-overlay {
  z-index: 20;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(23, 26, 21, 0.62);
  backdrop-filter: blur(6px);
}

.leaderboard-modal-card {
  width: min(100%, 420px);
  max-height: min(720px, calc(100% - 32px));
  min-height: 0;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  border: var(--line);
  border-radius: 23px;
  box-shadow: 8px 8px 0 var(--ink);
}

.profile-modal-card {
  width: min(100%, 420px);
  padding: 18px 16px 14px;
  color: var(--ink);
  background: var(--cream);
  border: var(--line);
  border-radius: 23px;
  box-shadow: 8px 8px 0 var(--ink);
}

.leaderboard-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 13px;
  border-bottom: 2px solid rgba(23, 26, 21, 0.18);
}

.profile-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 14px;
  border-bottom: 2px solid rgba(23, 26, 21, 0.18);
}

.leaderboard-modal-header h2 {
  margin: 3px 0 0;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.8px;
}

.profile-modal-header h2 {
  margin: 3px 0 0;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.8px;
}

.leaderboard-modal-copy {
  margin: 6px 0 0;
  color: #65753b;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.leaderboard-modal-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.leaderboard-close {
  color: #fff;
  background: var(--red);
  font-size: 27px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 4px;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 18px;
  font-weight: 1000;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.profile-identity strong {
  display: block;
  overflow: hidden;
  max-width: 250px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat-grid > div {
  min-width: 0;
  min-height: 80px;
  padding: 11px 10px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: #fff;
}

.profile-stat-grid span {
  display: block;
  overflow: hidden;
  color: #66753e;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.85px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
  text-overflow: ellipsis;
}

.profile-carrot-stat strong {
  color: var(--red);
}

.profile-status {
  margin: 13px 3px 0;
  color: var(--lime-dark);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1px;
  text-align: center;
}

.leaderboard-column-head {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 11px 8px 6px;
  color: #788c43;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.9px;
}

.leaderboard-column-head span:last-child {
  text-align: right;
}

.leaderboard-list {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-color: var(--lime-dark) rgba(23, 26, 21, 0.12);
  scrollbar-width: thin;
  touch-action: pan-y;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 30px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 4px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.68);
}

.leaderboard-rank {
  color: #788c43;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
}

.leaderboard-rank.rank-1 { color: #b88600; }
.leaderboard-rank.rank-2 { color: #66717a; }
.leaderboard-rank.rank-3 { color: #a56335; }

.leaderboard-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--red);
  font-size: 10px;
  font-weight: 1000;
}

.leaderboard-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.leaderboard-name {
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  min-width: 24px;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 15px;
  text-align: right;
}

.leaderboard-status {
  padding: 9px 3px 0;
  border-top: 1px solid rgba(23, 26, 21, 0.14);
  font-size: 7px;
}

.leaderboard-empty {
  padding: 6px 0 4px;
  color: #65753b;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.speed-line {
  position: absolute;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  transform: skew(-22deg);
}

.line-a { width: 62px; left: 3%; top: 39%; }
.line-b { width: 40px; left: 12%; top: 57%; }

.hero-jet-flame {
  position: absolute;
  z-index: 1;
  left: -22%;
  width: 35%;
  height: 8%;
  background: linear-gradient(90deg, #ee2b2f 0%, #ff8b1f 40%, #fff59a 86%);
  clip-path: polygon(0 50%, 42% 4%, 100% 25%, 100% 75%, 42% 96%);
  filter: drop-shadow(0 0 6px rgba(255, 139, 31, 0.85));
  transform-origin: right center;
  animation: hero-thrust 130ms ease-in-out infinite alternate;
}

.hero-jet-flame::after {
  content: "";
  position: absolute;
  inset: 5px 0 5px 34%;
  background: #f3ffaf;
  clip-path: polygon(0 50%, 40% 0, 100% 18%, 100% 82%, 40% 100%);
}

.flame-top { top: 53.5%; }
.flame-bottom { top: 62%; animation-delay: -70ms; }

@keyframes hero-thrust {
  from { transform: scaleX(0.72) scaleY(0.84); }
  to { transform: scaleX(1.08) scaleY(1.08); }
}

.primary-btn,
.secondary-btn,
.text-btn {
  border: 0;
  cursor: pointer;
}

.primary-btn {
  position: relative;
  z-index: 3;
  width: min(100%, 390px);
  min-height: 62px;
  margin-top: 15px;
  padding: 0 12px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--red);
  border: var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  font-size: 19px;
  font-weight: 1000;
  letter-spacing: 0.6px;
  transition: transform 100ms, box-shadow 100ms;
}

.primary-btn b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.primary-btn:active,
.secondary-btn:active,
.icon-btn:active,
.profile-trigger:active,
.pause-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.control-hint {
  position: relative;
  z-index: 3;
  min-height: 38px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 1px;
}

.community-note {
  position: relative;
  z-index: 3;
  margin: -5px 0 5px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
  opacity: 0.72;
}

.tap-icon {
  font-size: 21px;
  animation: tap 0.9s ease-in-out infinite alternate;
}

@keyframes tap {
  to { transform: translateY(-4px); }
}

.panel-overlay {
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 26, 21, 0.58);
  backdrop-filter: blur(5px);
}

.result-card {
  position: relative;
  width: min(100%, 390px);
  padding: 30px 20px 22px;
  text-align: center;
  background: var(--cream);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}

.compact-card {
  padding-top: 26px;
}

.result-avatar {
  position: absolute;
  width: 142px;
  height: 92px;
  top: -58px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  filter: drop-shadow(4px 5px 0 var(--ink));
}

.result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-card h2 {
  margin: 3px 0 8px;
  color: var(--red);
  font-size: clamp(42px, 13vw, 66px);
  line-height: 0.9;
  letter-spacing: -3px;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(3px 4px 0 var(--ink));
}

.result-copy {
  margin: 5px 0 20px;
  font-size: 14px;
  font-weight: 700;
}

.new-record {
  width: fit-content;
  margin: 10px auto 12px;
  padding: 6px 12px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1px;
  transform: rotate(-2deg);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 20px 0 3px;
}

.result-stats > div {
  min-width: 0;
  padding: 10px 4px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 13px;
}

.result-stats span {
  display: block;
  overflow: hidden;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 0.8px;
  text-overflow: ellipsis;
}

.result-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 27px;
  line-height: 1;
}

.result-card .primary-btn {
  width: 100%;
}

.secondary-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 11px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.8px;
}

.text-btn {
  margin-top: 17px;
  padding: 5px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

.loading-screen {
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink);
  background: var(--lime);
  font-size: 12px;
  letter-spacing: 1.2px;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.loading-screen.is-ready {
  opacity: 0;
  visibility: hidden;
}

.loader-rabbit {
  position: relative;
  width: 62px;
  height: 62px;
  border: var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  animation: loading-hop 0.65s ease-in-out infinite alternate;
}

.loader-rabbit::before,
.loader-rabbit::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 42px;
  top: -30px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 99px;
  z-index: -1;
}

.loader-rabbit::before { left: 8px; transform: rotate(-9deg); }
.loader-rabbit::after { right: 8px; transform: rotate(9deg); }

.loader-rabbit span,
.loader-rabbit span::after {
  position: absolute;
  width: 8px;
  height: 12px;
  top: 23px;
  border-radius: 50%;
  background: var(--ink);
}

.loader-rabbit span { left: 14px; }
.loader-rabbit span::after { content: ""; left: 23px; top: 0; }

@keyframes loading-hop {
  to { transform: translateY(-8px) rotate(4deg); }
}

.hidden {
  display: none !important;
}

@media (min-width: 521px) {
  .game-shell {
    border-inline: 3px solid var(--ink);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
  }
}

@media (max-height: 690px) {
  .start-content { padding-top: 17px; }
  .hero-wrap { height: 155px; }
  .leaderboard-launch { min-height: 54px; margin-top: 6px; }
  .carrot-info-card { min-height: 68px; margin-top: 6px; padding-block: 6px; }
  .carrot-info-icon { flex-basis: 46px; width: 46px; height: 46px; font-size: 27px; }
  .carrot-info-copy strong { font-size: 12px; }
  .carrot-info-copy small { margin-top: 3px; font-size: 10px; }
  .primary-btn { min-height: 54px; margin-top: 10px; }
  .control-hint { margin-top: 7px; }
  .leaderboard-modal-card { max-height: calc(100% - 24px); }
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
