:root {
  color-scheme: dark;
  --text: #f8f3ec;
  --muted: rgba(248, 243, 236, 0.68);
  --quiet: rgba(248, 243, 236, 0.42);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.36);
  --hot: #f08f62;
  --fresh: #77dec0;
  --cream: #ffe7a5;
  --berry: #d982b9;
  --danger: #b3aba2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #121116;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  letter-spacing: 0;
  touch-action: none;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.game-shell {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 143, 98, 0.24), transparent 28%),
    radial-gradient(circle at 83% 18%, rgba(119, 222, 192, 0.20), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(217, 130, 185, 0.16), transparent 34%),
    linear-gradient(135deg, #151318 0%, #1c1517 45%, #11191a 100%);
}

.game-shell::before {
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.10) 48%, transparent 60%),
    radial-gradient(circle, rgba(255, 231, 165, 0.12), transparent 38%);
  opacity: 0.55;
  transform: translateX(-35%) rotate(8deg);
  animation: lightSweep 8s ease-in-out infinite;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.hud {
  position: absolute;
  z-index: 3;
  top: clamp(10px, 1.6vw, 20px);
  left: clamp(10px, 1.6vw, 20px);
  right: clamp(10px, 1.6vw, 20px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.brand-block,
.metric,
.bars,
.control-row,
.toast,
.panel-content,
.result-grid article,
.guide-grid article,
.wallet-card,
.withdraw-grid article {
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 42px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.brand-block {
  min-width: 0;
  flex: 1 1 238px;
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 17px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96) 0 16%, transparent 17%),
    conic-gradient(from 210deg, var(--fresh), var(--cream), var(--hot), var(--berry), var(--fresh));
  box-shadow: 0 0 17px rgba(119, 222, 192, 0.36);
}

.brand-block h1,
.panel-content h2 {
  margin: 0;
  font-weight: 900;
  line-height: 0.95;
}

.brand-block h1 {
  font-size: clamp(17px, 1.45vw, 22px);
}

.brand-block p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.score-grid {
  flex: 1 1 364px;
  display: grid;
  align-self: flex-end;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 7px;
}

.metric,
.result-grid article,
.guide-grid article,
.wallet-card,
.withdraw-grid article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 14px;
}

.metric::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 50px;
  height: 50px;
  content: "";
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(1px);
}

.score-grid .metric:nth-child(1)::after {
  background: radial-gradient(circle, rgba(255, 231, 165, 0.70), transparent 68%);
}

.score-grid .metric:nth-child(2)::after {
  background: radial-gradient(circle, rgba(240, 143, 98, 0.54), transparent 68%);
}

.score-grid .metric:nth-child(3)::after {
  background: radial-gradient(circle, rgba(119, 222, 192, 0.58), transparent 68%);
}

.score-grid .metric:nth-child(4)::after {
  background: radial-gradient(circle, rgba(217, 130, 185, 0.54), transparent 68%);
}

.metric span,
.bar-row span,
.result-grid span,
.section-title span,
.guide-grid span,
.wallet-strip span,
.wallet-card span,
.withdraw-grid span {
  display: block;
  color: var(--quiet);
  font-size: 10px;
  white-space: nowrap;
}

.metric strong,
.result-grid strong,
.wallet-strip strong,
.wallet-card strong,
.withdraw-grid strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
}

.metric strong {
  overflow: visible;
  font-size: clamp(20px, 2.4vw, 34px);
  text-overflow: clip;
  white-space: nowrap;
}

#rankValue {
  font-size: clamp(17px, 1.65vw, 24px);
  white-space: nowrap;
}

.bars {
  min-width: 0;
  flex: 0 1 182px;
  align-self: flex-end;
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
}

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

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transition: width 180ms ease;
}

.bar-fill.hunger {
  background: linear-gradient(90deg, #f08f62, #ffe7a5 52%, #77dec0);
  box-shadow: 0 0 18px rgba(255, 231, 165, 0.38);
}

.bar-fill.level {
  background: linear-gradient(90deg, #d982b9, #77dec0);
  box-shadow: 0 0 18px rgba(119, 222, 192, 0.34);
}

.control-row {
  flex: 0 0 auto;
  align-self: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  pointer-events: auto;
}

.glass-btn,
.icon-btn,
.primary-btn,
.secondary-btn {
  position: relative;
  overflow: hidden;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.20);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.glass-btn {
  min-width: auto;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.icon-btn {
  width: 30px;
  padding: 0;
  border-radius: 50%;
}

.glass-btn:hover,
.icon-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.16);
}

.glass-btn:active,
.icon-btn:active,
.primary-btn:active,
.secondary-btn:active {
  transform: translateY(1px) scale(0.98);
}

#soundGlyph {
  position: absolute;
  inset: 8px 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(248, 243, 236, 0.86);
}

#soundGlyph::before,
#soundGlyph::after {
  position: absolute;
  content: "";
}

#soundGlyph::before {
  left: -4px;
  top: 6px;
  width: 7px;
  height: 8px;
  border-radius: 2px;
  background: rgba(248, 243, 236, 0.86);
}

#soundGlyph::after {
  right: -7px;
  top: 7px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(248, 243, 236, 0.86);
  box-shadow: 0 -5px 0 rgba(248, 243, 236, 0.68), 0 5px 0 rgba(248, 243, 236, 0.68);
}

body.is-muted #soundGlyph::after {
  right: -3px;
  top: 8px;
  width: 16px;
  transform: rotate(45deg);
  box-shadow: none;
  background: #f08f62;
}

.toast {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(118px, 14vh, 180px);
  max-width: min(88vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

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

.objective-rail {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: clamp(14px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: clamp(138px, 12vw, 176px);
  transform: translateY(-36%);
  pointer-events: none;
}

.objective-card {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.objective-card::after {
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 62px;
  height: 62px;
  content: "";
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(2px);
}

.objective-card.eat::after {
  background: radial-gradient(circle, rgba(119, 222, 192, 0.56), transparent 68%);
}

.objective-card.avoid::after {
  background: radial-gradient(circle, rgba(179, 171, 162, 0.46), transparent 68%);
}

.objective-card.clear::after {
  background: radial-gradient(circle, rgba(255, 231, 165, 0.54), transparent 68%);
}

.objective-card.combo::after {
  background: radial-gradient(circle, rgba(217, 130, 185, 0.52), transparent 68%);
}

.objective-card span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.objective-card strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(248, 243, 236, 0.94);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.overlay-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 320ms ease, transform 320ms ease;
}

.overlay-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(18, 17, 22, 0.38);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.overlay-panel.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.panel-content {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border-radius: 32px;
  text-align: center;
  animation: panelFloat 4.8s ease-in-out infinite;
}

#startPanel .panel-content {
  width: min(700px, 100%);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  padding: clamp(20px, 4vh, 34px) clamp(20px, 4.6vw, 38px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 231, 165, 0.48) transparent;
}

#startPanel .panel-content::-webkit-scrollbar {
  width: 6px;
}

#startPanel .panel-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 231, 165, 0.42);
}

.panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.panel-close::before,
.panel-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: rgba(248, 243, 236, 0.88);
}

.panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.panel-close:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.16);
}

.panel-close:active {
  transform: translateY(1px) scale(0.96);
}

.panel-content::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 231, 165, 0.16), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(119, 222, 192, 0.18), transparent 34%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--fresh);
  font-size: 13px;
  font-weight: 800;
}

.panel-content h2 {
  font-size: clamp(58px, 11vw, 106px);
  text-wrap: balance;
}

#startPanel .panel-content h2 {
  font-size: clamp(46px, 9vh, 86px);
}

.summary {
  width: min(440px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.75;
}

#startPanel .summary {
  width: min(540px, 100%);
  margin-top: clamp(10px, 1.7vh, 16px);
  line-height: 1.62;
}

.mini-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 26px;
}

#startPanel .mini-rules {
  margin: clamp(14px, 2vh, 20px) 0 clamp(14px, 2.3vh, 22px);
}

.mini-rules span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 243, 236, 0.76);
  font-size: 13px;
  white-space: nowrap;
}

.primary-btn {
  min-width: 174px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 143, 98, 0.95), rgba(255, 231, 165, 0.88) 48%, rgba(119, 222, 192, 0.88));
  color: #191416;
  font-size: 17px;
  font-weight: 900;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.45);
  transform: none;
}

.secondary-btn {
  min-width: 138px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(248, 243, 236, 0.90);
  font-size: 15px;
  font-weight: 850;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.wallet-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 143, 98, 0.12), rgba(119, 222, 192, 0.09));
  text-align: left;
}

#startPanel .wallet-strip {
  margin-top: clamp(12px, 1.8vh, 16px);
}

.wallet-strip.compact {
  margin-top: 12px;
}

.wallet-strip strong {
  margin: 0;
  color: var(--cream);
  font-size: 22px;
}

.wallet-strip small,
.wallet-card small,
.legal-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 18px;
}

#endPanel .panel-content {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 38px);
}

#endPanel .panel-content h2 {
  font-size: clamp(42px, 8vw, 76px);
}

#endPanel .summary {
  margin-top: 14px;
  line-height: 1.55;
}

#endPanel .result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 14px;
}

.result-note {
  width: min(420px, 100%);
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.leaderboard-block {
  width: min(440px, 100%);
  margin: 22px auto 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  text-align: left;
}

#startPanel .leaderboard-block {
  margin-top: clamp(12px, 1.8vh, 16px);
}

.leaderboard-block.compact {
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title strong {
  color: var(--cream);
  font-size: 13px;
}

.leaderboard-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(248, 243, 236, 0.82);
  font-size: 13px;
}

.leaderboard-list .empty-rank {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--quiet);
}

.rank-no {
  color: var(--fresh);
  font-weight: 900;
}

.rank-meta {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--cream);
  font-weight: 900;
  white-space: nowrap;
}

.wide-panel {
  width: min(780px, 100%);
}

.wallet-panel-content {
  width: min(620px, 100%);
}

.help-panel {
  place-items: start center;
}

.help-panel .panel-content {
  margin: auto 0;
}

.wide-panel h2 {
  font-size: clamp(34px, 6vw, 58px);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 26px;
  text-align: left;
}

.guide-grid article {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.20);
}

.guide-grid span {
  color: var(--fresh);
  font-weight: 900;
}

.guide-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.wallet-card {
  display: grid;
  gap: 10px;
  margin: 24px auto 12px;
  text-align: left;
}

.wallet-card strong {
  margin: 0;
  color: var(--cream);
  font-size: clamp(38px, 8vw, 64px);
}

.wallet-track {
  height: 11px;
}

.bar-fill.wallet {
  background: linear-gradient(90deg, #f08f62, #ffe7a5 45%, #77dec0);
  box-shadow: 0 0 20px rgba(255, 231, 165, 0.44);
}

.withdraw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
  text-align: left;
}

.withdraw-grid strong {
  margin-top: 6px;
  color: rgba(248, 243, 236, 0.94);
  font-size: clamp(19px, 3vw, 28px);
  white-space: nowrap;
}

.legal-note {
  width: min(470px, 100%);
  margin: 0 auto 22px;
}

.screen-pulse {
  animation: screenPulse 360ms ease;
}

@keyframes lightSweep {
  0%,
  100% {
    transform: translateX(-34%) rotate(8deg);
  }
  50% {
    transform: translateX(28%) rotate(8deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes screenPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  42% {
    filter: saturate(1.18) brightness(1.12);
  }
}

@media (max-width: 1040px) {
  .hud {
    align-items: flex-end;
  }

  .brand-block {
    flex: 1 1 calc(100% - 170px);
  }

  .score-grid {
    flex-basis: 100%;
  }

  .bars {
    flex: 1 1 182px;
  }

  .control-row {
    align-self: flex-end;
  }
}

@media (max-height: 760px) {
  #startPanel {
    align-items: start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #startPanel .panel-content {
    max-height: calc(100dvh - 24px);
    padding-top: 18px;
    padding-bottom: 18px;
  }

  #startPanel .eyebrow {
    margin-bottom: 8px;
  }

  #startPanel .panel-content h2 {
    font-size: clamp(40px, 8vh, 66px);
  }

  #startPanel .summary {
    font-size: 14px;
    line-height: 1.5;
  }

  #startPanel .mini-rules span {
    padding: 6px 10px;
    font-size: 12px;
  }

  #startPanel .leaderboard-list {
    gap: 5px;
  }

  #startPanel .leaderboard-list li {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 640px) {
  .hud {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }

  .brand-block {
    padding: 7px 8px;
    border-radius: 14px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-block h1 {
    font-size: 16px;
  }

  .brand-block p {
    margin-top: 2px;
    font-size: 10px;
  }

  .glass-btn {
    min-width: auto;
    min-height: 28px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 11px;
  }

  .icon-btn {
    width: 28px;
    min-height: 28px;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .metric {
    padding: 7px 8px;
    border-radius: 12px;
  }

  .metric strong {
    font-size: clamp(19px, 7vw, 28px);
  }

  #rankValue {
    font-size: clamp(16px, 5.8vw, 22px);
  }

  .bars {
    flex-basis: 100%;
  }

  .bars {
    padding: 7px 8px;
    border-radius: 12px;
  }

  .bar-row {
    grid-template-columns: 40px 1fr;
    gap: 6px;
  }

  .panel-content {
    border-radius: 26px;
  }

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

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

  .wallet-strip {
    grid-template-columns: 1fr auto;
  }

  .wallet-strip small {
    grid-column: 1 / -1;
  }

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

  .leaderboard-list li {
    grid-template-columns: 28px 1fr auto;
    gap: 7px;
    padding: 8px;
  }

  .objective-rail {
    top: auto;
    right: 10px;
    bottom: clamp(96px, 17vh, 138px);
    width: min(132px, 36vw);
    grid-template-columns: 1fr;
    gap: 6px;
    transform: none;
  }

  .objective-card {
    min-height: 46px;
    padding: 8px 9px;
    border-radius: 14px;
  }

  .objective-card span {
    font-size: 11px;
  }

  .objective-card strong {
    font-size: 13px;
  }
}
