:root {
  --yellow: #fbbf24;
  --orange: #f97316;
  --cyan: #38bdf8;
  --green: #10b981;
  --pink: #f43f5e;
  --navy: #0f172a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #4ea8ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
}

#game-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

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

.hidden {
  display: none !important;
}

/* FX Overlay */
.fx-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.fx-overlay.stumble {
  opacity: 1;
  background: radial-gradient(circle at center, transparent 52%, rgba(244, 63, 94, 0.42) 100%);
}

.fx-overlay.jetpack {
  opacity: 1;
  background: radial-gradient(circle at center, transparent 58%, rgba(56, 189, 248, 0.28) 100%);
}

.fx-overlay.blast {
  opacity: 1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.65) 0%, rgba(56, 189, 248, 0.35) 55%, transparent 100%);
}

/* Floating Callouts */
.callout-container {
  position: absolute;
  top: calc(16% + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.callout-toast {
  font-size: clamp(15px, 4vw, 21px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  animation: calloutPop 1.3s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  white-space: nowrap;
}

.callout-toast.cyan {
  background: rgba(14, 116, 144, 0.88);
  border-color: rgba(125, 211, 252, 0.7);
}

.callout-toast.gold {
  background: rgba(180, 83, 9, 0.88);
  border-color: rgba(253, 224, 71, 0.8);
}

@keyframes calloutPop {
  0% { opacity: 0; transform: translateY(14px) scale(0.85); }
  18% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  30% { transform: translateY(0) scale(1); }
  78% { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.95); }
}

/* HUD */
.hud {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.hud button {
  pointer-events: auto;
  touch-action: manipulation;
}

.hud-top-left {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: calc(14px + var(--safe-left));
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  transition: transform 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.93);
}

.hud-top-right {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: calc(14px + var(--safe-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 5px 13px 5px 7px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.mult-pill {
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #1e293b;
  font-weight: 900;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 9px;
  min-width: 36px;
  text-align: center;
}

.mult-pill.boosted {
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  color: #fff;
}

.score-value {
  font-size: clamp(19px, 5vw, 27px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.coin-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(251, 191, 36, 0.65);
  border-radius: 999px;
  padding: 3px 12px;
}

.coin-icon {
  font-size: 15px;
}

.coin-value {
  color: #fde047;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.best-pill {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.45);
  padding: 2px 9px;
  border-radius: 999px;
}

/* Active Power-up Timers */
.powerup-stack {
  position: absolute;
  left: calc(14px + var(--safe-left));
  top: calc(68px + var(--safe-top));
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 150px;
}

.pu-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  padding: 6px 9px;
  animation: slideInLeft 0.22s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.pu-icon {
  font-size: 19px;
  line-height: 1;
}

.pu-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pu-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.pu-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.pu-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.08s linear;
}

/* Bottom Left Hoverboard Button */
.hud-bottom-left {
  position: absolute;
  left: calc(14px + var(--safe-left));
  bottom: calc(18px + var(--safe-bottom));
}

.hoverboard-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition: transform 0.1s ease, background 0.2s ease;
}

.hoverboard-btn:active {
  transform: scale(0.95);
}

.hoverboard-btn.active {
  background: rgba(2, 132, 199, 0.85);
  border-color: #7dd3fc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}

.hoverboard-btn.empty {
  opacity: 0.5;
}

.hb-emoji {
  font-size: 24px;
}

.hb-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.hb-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.hb-count {
  font-size: 18px;
  font-weight: 800;
}

.hb-key {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 7px;
  border-radius: 7px;
}

.hud-bottom-right {
  position: absolute;
  right: calc(14px + var(--safe-right));
  bottom: calc(18px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.pet-hud-badge {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.speed-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.speed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

/* SCREENS & OVERLAYS */
.screen-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + var(--safe-top)) calc(16px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

.screen-overlay button {
  touch-action: manipulation;
}

.start-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, transparent 32%, transparent 56%, rgba(15, 23, 42, 0.68) 100%);
  pointer-events: auto;
}

.title-header {
  text-align: center;
  margin-top: 2px;
}

.title-badge {
  display: inline-block;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.game-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-line1 {
  font-size: clamp(32px, 8.5vw, 54px);
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(15, 23, 42, 0.38);
}

.logo-line2 {
  font-size: clamp(32px, 8.5vw, 54px);
  color: #fde047;
  text-shadow: 0 4px 18px rgba(15, 23, 42, 0.38);
}

.logo-sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
}

.start-bottom {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

/* Sleek Glassmorphic Pet Card */
.active-pet-pill {
  width: min(360px, 92vw);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  padding: 8px 10px 8px 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
}

.ap-emoji {
  font-size: 28px;
  line-height: 1;
}

.ap-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ap-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.ap-perk {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.3;
  white-space: normal;
}

.ap-switch-btn {
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.stats-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-chip {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.stat-chip strong {
  color: #fde047;
  margin-left: 3px;
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(300px, 86vw);
  padding: 14px 24px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.42);
  transition: transform 0.12s ease;
}

.play-btn:active {
  transform: scale(0.97);
}

.play-triangle {
  font-size: 17px;
}

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

.sub-btn {
  padding: 8px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.sub-btn:active {
  transform: scale(0.96);
}

.controls-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 10px;
}

/* MODALS */
.modal-overlay {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
}

.modal-card {
  position: relative;
  width: min(390px, 92vw);
  max-height: calc(100% - 20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 20px 18px;
  color: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.wide-card {
  width: min(560px, 94vw);
  text-align: left;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.close-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
}

.newbest-ribbon {
  display: inline-block;
  background: linear-gradient(90deg, #fde047, #f59e0b);
  color: #1e293b;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gameover-reason {
  margin-top: 5px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.gameover-score-box {
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
}

.go-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.go-score-num {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.modal-stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-stat span {
  font-size: 11px;
  color: #94a3b8;
}

.modal-stat strong {
  font-size: 17px;
  color: #fde047;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.btn-primary, .btn-secondary, .btn-ghost {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-primary:active, .btn-secondary:active, .btn-ghost:active {
  transform: scale(0.98);
}

/* Wallet Bar */
.wallet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.wallet-bar strong {
  color: #fde047;
}

.wallet-tip {
  font-size: 11.5px;
  color: #7dd3fc;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.filter-tab.active {
  background: #38bdf8;
  border-color: #bae6fd;
  color: #0f172a;
}

/* Pet Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 34px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.cat-card.selected {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

.pet-species-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.pet-voice-btn {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.pet-voice-btn:active {
  transform: scale(0.92);
  background: rgba(56, 189, 248, 0.45);
}

.cat-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.cat-name {
  font-size: 14px;
  font-weight: 800;
}

.cat-breed {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.pet-perk-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #cbd5e1;
  flex: 1;
}

.pet-perk-box strong {
  color: #fde047;
  display: block;
  font-size: 11.5px;
  margin-bottom: 2px;
}

.cat-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.cat-btn.equip {
  background: #38bdf8;
  color: #0f172a;
}

.cat-btn.equipped {
  background: #10b981;
  color: #ffffff;
  cursor: default;
}

.cat-btn.buy {
  background: #fbbf24;
  color: #1e293b;
}

/* Shop List */
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px;
}

.shop-emoji {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-info {
  flex: 1;
  min-width: 0;
}

.shop-info h4 {
  font-size: 13.5px;
  font-weight: 800;
}

.shop-info p {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.lvl-dots {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.lvl-dot {
  width: 16px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.lvl-dot.filled {
  background: #34d399;
}

.shop-buy-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: #fbbf24;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.shop-buy-btn:disabled {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

/* Help Modal */
.help-section {
  margin-bottom: 14px;
}

.help-section h3 {
  font-size: 13.5px;
  color: #7dd3fc;
  margin-bottom: 7px;
}

.help-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

.help-list code {
  background: rgba(255, 255, 255, 0.14);
  padding: 1px 5px;
  border-radius: 5px;
  color: #fde047;
  font-weight: 700;
}

.help-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.help-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px;
  border-radius: 12px;
  font-size: 11.5px;
}

.help-item span {
  font-size: 19px;
}

.help-item p {
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

@media (max-width: 540px) {
  .help-items {
    grid-template-columns: 1fr;
  }
  .powerup-stack {
    width: 140px;
  }
  .hb-key {
    display: none;
  }
}
