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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

#game-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#game-container:active {
  cursor: grabbing;
}

/* ================= TOP MINECRAFT HUD ================= */
.hud-top {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
}

.hud-left, .hud-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.brand-badge {
  background: linear-gradient(180deg, #16a34a, #15803d);
  border: 2px solid #86efac;
  border-bottom: 4px solid #14532d;
  border-radius: 8px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.brand-badge span {
  color: #fde047;
}

.zone-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12.5px;
  color: #f8fafc;
}

.stat-box, .hud-btn, .hud-select {
  background: rgba(15, 23, 42, 0.86);
  border: 2px solid #475569;
  border-bottom: 3px solid #1e293b;
  color: #f8fafc;
  border-radius: 8px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 12px;
}

.hud-btn, .hud-select {
  cursor: pointer;
  transition: transform 0.08s, filter 0.12s;
}
.hud-btn:hover { filter: brightness(1.15); }
.hud-btn:active { transform: translateY(1px); }

.hud-btn.green { background: #15803d; border-color: #4ade80; }
.hud-btn.green.live { background: #059669; border-color: #fde047; box-shadow: 0 0 12px rgba(74, 222, 128, 0.6); }
.hud-btn.blue { background: #1d4ed8; border-color: #60a5fa; }
.hud-btn.amber { background: #b45309; border-color: #fbbf24; }
.hud-btn.purple { background: #7e22ce; border-color: #c084fc; }

/* ================= MINIMAP & CONTROLS ================= */
.minimap-box {
  position: fixed;
  top: 62px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 3px solid #64748b;
  border-radius: 10px;
  padding: 5px;
  z-index: 18;
  text-align: center;
}
#minimap-canvas {
  display: block;
  border-radius: 6px;
  border: 1px solid #334155;
}
.minimap-legend {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  margin-top: 3px;
}

.controls-card {
  position: fixed;
  top: 62px;
  left: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2e8f0;
  z-index: 18;
  pointer-events: none;
}

/* ================= PROXIMITY PROMPT & TOAST ================= */
.interact-prompt {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #92400e, #78350f);
  border: 3px solid #fde047;
  color: #fef9c3;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 25;
  display: none;
  pointer-events: none;
  text-align: center;
}
.interact-prompt.show {
  display: block;
  animation: popBounce 0.25s ease-out;
}

.toast-banner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid #4ade80;
  color: #dcfce7;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  z-index: 40;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.toast-banner.show {
  display: block;
}

/* ================= BOTTOM XP BAR & BIOME HOTBAR ================= */
.hud-bottom {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 20;
  width: min(640px, calc(100% - 20px));
}

.xp-bar-wrap {
  position: relative;
  width: 100%;
  height: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #334155;
  border-radius: 6px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #a3e635);
  transition: width 0.35s ease;
}
.xp-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
}

.hotbar-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  background: rgba(15, 23, 42, 0.86);
  border: 3px solid #475569;
  border-radius: 10px;
  padding: 5px;
}

.hotbar-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #334155;
  border: 2px solid #64748b;
  border-radius: 7px;
  padding: 5px 4px;
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
.hotbar-slot:hover { transform: translateY(-2px); border-color: #fde047; }
.hotbar-slot.active {
  background: #1e40af;
  border-color: #fde047;
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.45);
}
.hotbar-slot.done {
  border-color: #4ade80;
}
.slot-num {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 9px;
  font-weight: 900;
  color: #cbd5e1;
}
.slot-emoji { font-size: 18px; line-height: 1.1; }
.slot-name { font-size: 10.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.slot-count { font-size: 10px; font-weight: 900; color: #fde047; }
.hotbar-slot.done .slot-count { color: #86efac; }

/* ================= MODALS ================= */
.mc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 60;
}
.mc-modal-backdrop.open {
  display: flex;
}

.mc-modal {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #f8fafc;
  color: #0f172a;
  border: 4px solid #334155;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: popBounce 0.2s ease-out;
}

.oak-sign-modal {
  background: linear-gradient(180deg, #deb887 0%, #c89b62 100%);
  border: 5px solid #5c3a1b;
  color: #1f1207;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.modal-head h2 {
  font-size: 20px;
  font-weight: 900;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zone-tag {
  display: inline-block;
  background: #1e293b;
  color: #fde047;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.close-x {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background: #ef4444;
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

.clue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.clue-pill {
  background: #fef08a;
  border: 2px solid #a16207;
  color: #422006;
  font-weight: 900;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.solved-pill {
  background: #bbf7d0;
  border: 2px solid #15803d;
  color: #14532d;
  font-weight: 900;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.prompt-pt {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.mode-tab {
  border: 2px solid #6b4423;
  background: rgba(255, 255, 255, 0.55);
  color: #3b200a;
  font-weight: 900;
  font-size: 12.5px;
  padding: 7px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.mode-tab.active {
  background: #1e293b;
  color: #fde047;
  border-color: #fde047;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-choice-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 3px solid #5c3a1b;
  background: #fffbeb;
  color: #1f1207;
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform 0.08s;
}
.mc-choice-btn:hover { background: #fef3c7; transform: translateX(3px); }
.mc-choice-btn.correct { background: #bbf7d0; border-color: #16a34a; color: #14532d; }
.mc-choice-btn.wrong { background: #fecaca; border-color: #dc2626; color: #7f1d1d; }

/* Word Tile Builder */
.builder-slots {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.72);
  border: 3px dashed #6b4423;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.slot-placeholder {
  font-size: 13px;
  font-weight: 700;
  color: #6b4423;
}
.builder-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.tile-chip {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #334155;
  border-bottom: 4px solid #1e293b;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}
.tile-chip.picked {
  background: #dbeafe;
  border-color: #2563eb;
}
.tile-chip.used {
  opacity: 0.35;
  cursor: default;
}

.write-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.write-label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}
.mc-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: 3px solid #475569;
  background: #ffffff;
  color: #0f172a;
  font-size: 15.5px;
  font-weight: 800;
  user-select: text;
  -webkit-user-select: text;
}
.mc-input.sm { padding: 8px 11px; font-size: 14px; }
.mc-input.center { text-align: center; text-transform: uppercase; letter-spacing: 2px; }

.write-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-btn {
  padding: 9px 14px;
  border-radius: 9px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-bottom: 4px solid rgba(0, 0, 0, 0.35);
  font-weight: 900;
  font-size: 13.5px;
  color: #ffffff;
  cursor: pointer;
}
.mc-btn.sm { padding: 6px 10px; font-size: 12.5px; }
.mc-btn.full { width: 100%; }
.mc-btn.green { background: #16a34a; }
.mc-btn.blue { background: #2563eb; }
.mc-btn.amber { background: #d97706; }
.mc-btn.purple { background: #7e22ce; }
.mc-btn.stone { background: #475569; }

.sign-feedback {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.4;
}
.sign-feedback.show { display: block; }
.sign-feedback.ok { background: #dcfce7; border: 2px solid #16a34a; color: #14532d; }
.sign-feedback.err { background: #fee2e2; border: 2px solid #dc2626; color: #7f1d1d; }
.sign-feedback.info { background: #fef9c3; border: 2px solid #ca8a04; color: #713f12; }

/* Wall, Grammar, Map, MP */
.wall-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.wall-list-title {
  font-size: 14px;
  font-weight: 900;
  margin: 12px 0 6px;
}
.wall-posts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}
.wall-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #e2e8f0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
}
.mini-speak-btn {
  border: none;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.grammar-sub { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.grammar-formula {
  background: #1e293b;
  color: #fde047;
  font-weight: 900;
  padding: 10px;
  border-radius: 9px;
  text-align: center;
  margin-bottom: 10px;
}
.grammar-table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.grammar-row {
  display: grid;
  grid-template-columns: 95px 115px 1fr auto;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 8px;
  font-size: 12.5px;
}
.g-subj { font-weight: 900; color: #0f172a; }
.g-be { font-weight: 800; color: #1d4ed8; }
.g-ex b { display: block; color: #15803d; }
.g-ex small { color: #475569; }
.grammar-tips {
  background: #fef9c3;
  border: 2px solid #eab308;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
}
.grammar-tips ul { margin: 6px 0 0 18px; }

.map-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.map-zone-card {
  text-align: left;
  background: #f1f5f9;
  border: 3px solid #64748b;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: #0f172a;
}
.map-zone-card:hover { background: #e2e8f0; }
.mz-top { display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 4px; }
.mz-badge { font-size: 12px; color: #15803d; }
.map-zone-card p { font-size: 12px; color: #475569; }

.swatch-row { display: flex; gap: 8px; margin-bottom: 12px; }
.swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 3px solid #cbd5e1;
  cursor: pointer;
}
.swatch-btn.active { border-color: #0f172a; transform: scale(1.1); }
.mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mp-card {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-card h3 { font-size: 14.5px; }
.mp-card p { font-size: 12px; color: #475569; }
.mp-error { color: #dc2626; font-weight: 800; font-size: 12.5px; margin-top: 8px; }
.room-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
}
.room-code { font-size: 26px; font-weight: 900; color: #fde047; letter-spacing: 3px; }
.copy-fb { font-size: 12px; font-weight: 800; color: #16a34a; min-height: 18px; margin: 6px 0; }
.mp-roster { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.mp-player-row {
  display: flex;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.victory-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.v-stat {
  background: #ecfdf5;
  border: 2px solid #22c55e;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.v-stat strong { display: block; font-size: 22px; color: #15803d; }
.v-stat span { font-size: 12px; font-weight: 800; color: #334155; }

/* ================= MOBILE CONTROLS & RESPONSIVE ================= */
.mobile-stick-zone, .mobile-action-btn {
  display: none;
}

@media (max-width: 920px), (pointer: coarse) {
  .controls-card { display: none; }
  .minimap-box { display: none; }
  .mobile-stick-zone {
    display: flex;
    position: fixed;
    bottom: 94px;
    left: 16px;
    width: 110px;
    height: 110px;
    align-items: center;
    justify-content: center;
    z-index: 24;
    touch-action: none;
  }
  .stick-base {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    border: 3px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .stick-knob {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
  }
  .mobile-action-btn {
    display: flex;
    position: fixed;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.7);
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    z-index: 24;
  }
  .mobile-action-btn.jump { bottom: 96px; }
  .mobile-action-btn.use { bottom: 170px; opacity: 0.55; }
  .mobile-action-btn.use.ready {
    opacity: 1;
    background: #b45309;
    border-color: #fde047;
  }
}

@media (max-width: 720px) {
  .brand-badge, .hide-sm, .hide-xs { display: none; }
  .zone-badge { font-size: 11px; padding: 5px 8px; }
  .grammar-row { grid-template-columns: 1fr; gap: 3px; }
  .map-zones-grid, .mp-grid { grid-template-columns: 1fr; }
  .hotbar-slot .slot-name { display: none; }
}

@keyframes popBounce {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ================= HUB LINK, RANKING & WELCOME MODAL ================= */
.hud-btn.hub-link {
  text-decoration: none;
  background: #1e293b;
  border-color: #94a3b8;
  color: #f8fafc;
}
.hud-btn.gold {
  background: linear-gradient(180deg, #ca8a04, #a16207);
  border-color: #fde047;
  color: #ffffff;
}

.welcome-modal {
  width: min(470px, 100%);
}
.welcome-offline-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: #64748b;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
}
.welcome-offline-link:hover { color: #0f172a; }

.ranking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.online-pill {
  background: #dcfce7;
  border: 2px solid #16a34a;
  color: #14532d;
  font-weight: 900;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 330px;
  overflow-y: auto;
}
.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
}
.ranking-row.me {
  background: #eff6ff;
  border-color: #3b82f6;
}
.ranking-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-medal {
  font-size: 17px;
  min-width: 26px;
  text-align: center;
  font-weight: 900;
}
.rank-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}
.rank-dot.on {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.ranking-stats {
  font-weight: 900;
  color: #0f172a;
  font-size: 13px;
}

/* ================= TEAM TOWER RACE BAR & BACKPACK ================= */
.hud-btn.backpack-btn {
  background: linear-gradient(180deg, #b45309, #78350f);
  border-color: #fbbf24;
  color: #fef3c7;
}
.hud-btn.backpack-btn.has-items {
  animation: pulseGlow 1.3s infinite ease-in-out;
}
.boots-badge {
  background: linear-gradient(180deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #e0f2fe;
}

.team-race-bar {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid #475569;
  border-radius: 10px;
  padding: 5px 12px;
  z-index: 19;
  width: min(460px, calc(100% - 310px));
  pointer-events: none;
}
.race-team {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 11.5px;
  font-weight: 800;
}
.race-track {
  flex: 1;
  height: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  overflow: hidden;
}
.race-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}
.race-fill.red { background: linear-gradient(90deg, #dc2626, #f87171); }
.race-fill.blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.race-vs {
  font-size: 10px;
  font-weight: 900;
  color: #fde047;
}

.team-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.team-pick-btn {
  padding: 10px;
  border-radius: 9px;
  border: 3px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
}
.team-pick-btn.red.active {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}
.team-pick-btn.blue.active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e3a8a;
}

.backpack-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
}
.backpack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .team-race-bar {
    top: 48px;
    width: min(440px, calc(100% - 20px));
    padding: 4px 8px;
  }
  .race-team span { display: none; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.75); }
}
