:root {
  --bg-deep: #060913;
  --bg-surface: #0d1326;
  --bg-card: #121a33;
  --bg-card-hover: #182344;
  --bg-glass: rgba(13, 19, 38, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(34, 211, 238, 0.42);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --amber: #f59e0b;
  --emerald: #10b981;
  --rose: #f43f5e;
  --blue: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 24px rgba(34, 211, 238, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(168, 85, 247, 0.14), transparent 36%),
    radial-gradient(circle at 88% 15%, rgba(34, 211, 238, 0.12), transparent 38%),
    radial-gradient(circle at 50% 95%, rgba(245, 158, 11, 0.08), transparent 40%);
  background-attachment: fixed;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* ==================== Shell & Top Bar ==================== */
.app-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.top-bar {
  height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(6, 9, 19, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(34, 211, 238, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, #f8fafc 0%, #67e8f9 55%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.coin-pill {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
  color: #fde68a;
  transition: transform 0.15s ease, background 0.15s ease;
}

.coin-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.streak-chip {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

/* ==================== Preset Bar ==================== */
.preset-bar {
  background: rgba(10, 15, 30, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 10px;
}

.preset-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.preset-scroll::-webkit-scrollbar {
  display: none;
}

.preset-pill {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.preset-pill:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
}

.preset-pill.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.28));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.28);
}

.preset-pill.math-pill {
  border-color: rgba(56, 189, 248, 0.32);
}

/* ==================== Main Workspace Layout ==================== */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 10px 24px;
  min-width: 0;
}

.stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

/* ==================== Live VS HP Strip ==================== */
.vs-strip {
  width: 100%;
  max-width: 560px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.vs-strip-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vs-fighter {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vs-fighter.right {
  align-items: flex-end;
}

.vs-fighter-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.vs-fighter.right .vs-fighter-head {
  flex-direction: row-reverse;
}

.vs-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-hp-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e2e8f0;
  flex-shrink: 0;
}

.vs-hp-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.vs-hp-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.12s linear;
}

.vs-fighter.right .vs-hp-track {
  display: flex;
  justify-content: flex-end;
}

.vs-center-tag {
  font-size: 11px;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 0.6px;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.14);
}

.vs-multi-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.vs-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.vs-chip > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.vs-chip.dead {
  opacity: 0.38;
  text-decoration: line-through;
}

.vs-chip-hp {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ==================== Arena Canvas Container ==================== */
.arena-frame {
  position: relative;
  width: 100%;
  max-width: min(calc(100vw - 20px), 540px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #070b18;
  border: 1.5px solid rgba(34, 211, 238, 0.34);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.18),
    0 12px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 30px rgba(34, 211, 238, 0.08);
  touch-action: manipulation;
}

.arena-frame.aiming {
  cursor: crosshair;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5), 0 0 28px rgba(245, 158, 11, 0.25);
}

#arenaCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arena-badges-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 4;
}

.hud-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 9, 19, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  backdrop-filter: blur(6px);
}

.timer-badge {
  font-family: var(--font-mono);
  margin-left: auto;
  color: var(--cyan);
}

.danger-badge {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.7);
  color: #fecdd3;
  animation: pulseGlow 1s ease-in-out infinite;
}

.wave-badge {
  background: rgba(245, 158, 11, 0.26);
  border-color: rgba(245, 158, 11, 0.7);
  color: #fde68a;
}

.arena-bet-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  z-index: 4;
}

.aim-banner {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #090d16;
  font-size: 12px;
  font-weight: 800;
  z-index: 8;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.aim-cancel-btn {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Ready Overlay — positioned at lower-middle so center balls remain completely visible */
.ready-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(to top, rgba(6, 9, 19, 0.78) 0%, rgba(6, 9, 19, 0.14) 48%, transparent 100%);
  z-index: 6;
}

.ready-card {
  width: 100%;
  max-width: 340px;
  background: rgba(11, 16, 32, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.ready-matchup {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ready-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.paused-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 9, 19, 0.42);
  pointer-events: none;
  z-index: 5;
}

.paused-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.5);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ==================== Buttons ==================== */
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-ghost,
.btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-glow {
  animation: btnPulse 2.2s ease-in-out infinite;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.btn-accent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(244, 63, 94, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.btn-accent:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(244, 63, 94, 0.35));
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde68a;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 8px;
}

.full-width {
  width: 100%;
}

/* ==================== Control Bar & Ticker ==================== */
.control-bar {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.control-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.speed-btn {
  padding: 4px 8px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.14s ease;
}

.speed-btn:hover {
  color: #fff;
}

.speed-btn.active {
  background: rgba(34, 211, 238, 0.24);
  color: #67e8f9;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45);
}

.ticker-bar {
  width: 100%;
  max-width: 560px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.ticker-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  flex-shrink: 0;
}

.ticker-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==================== God-Hand Bar ==================== */
.god-bar {
  width: 100%;
  max-width: 560px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.god-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.god-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.4px;
}

.aim-toggle-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.aim-toggle-btn.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.65);
  color: #fde68a;
}

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

.god-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.god-btn:hover:not(.cooling) {
  border-color: var(--god-color, var(--cyan));
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.god-btn.armed {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.god-btn.cooling {
  opacity: 0.62;
  cursor: not-allowed;
}

.god-btn-icon {
  font-size: 16px;
  line-height: 1;
}

.god-btn-name {
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.god-cd-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 19, 0.72);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #fde68a;
}

/* ==================== Right / Bottom Panel ==================== */
.panel-col {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(6, 9, 19, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  position: relative;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.2));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.42);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

.panel-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-pane.active {
  display: flex;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.count-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan);
}

.hint-text {
  font-size: 11px;
  color: var(--text-muted);
}

.mini-btn {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-btn:hover {
  color: #fff;
  border-color: var(--border-glow);
}

.mini-link-btn {
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
}

.mini-link-btn:hover {
  background: rgba(34, 211, 238, 0.28);
}

/* ==================== Mode Grid & Slots ==================== */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mode-card {
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s ease;
}

.mode-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.mode-card.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(34, 211, 238, 0.18));
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
}

.mode-card-top {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}

.mode-card-desc {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slot-target-bar {
  display: flex;
  gap: 6px;
}

.target-pill {
  flex: 1;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.target-pill.active-a {
  background: rgba(59, 130, 246, 0.24);
  border-color: #60a5fa;
  color: #dbeafe;
}

.target-pill.active-b {
  background: rgba(244, 63, 94, 0.24);
  border-color: #fb7185;
  color: #ffe4e6;
}

.slots-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(6, 9, 19, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  min-height: 46px;
  align-items: center;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1.5px solid var(--slot-color, var(--cyan));
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.slot-chip .slot-team-tag {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.slot-chip .slot-remove {
  margin-left: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.85;
}

.slot-chip:hover .slot-remove {
  color: var(--rose);
}

.slot-vs-sep {
  font-size: 11px;
  font-weight: 900;
  color: var(--amber);
  padding: 0 2px;
}

/* ==================== Ball Inspector & Gallery ==================== */
.ball-detail-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 26, 51, 0.95), rgba(11, 16, 32, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.detail-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
}

.detail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
  border: 2px solid var(--ball-accent, #fff);
  box-shadow: 0 0 14px var(--ball-color, rgba(34, 211, 238, 0.4));
}

.detail-meta {
  flex: 1;
  min-width: 0;
}

.detail-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.detail-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
}

.detail-stats {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.detail-skill {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.detail-skill strong {
  color: #fde68a;
}

.category-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cat-tab.active {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--cyan);
  color: #fff;
}

.ball-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ball-card {
  position: relative;
  padding: 8px 6px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: transform 0.13s ease, border-color 0.15s ease, background 0.15s ease;
}

.ball-card:hover {
  transform: translateY(-1px);
  border-color: var(--ball-color, var(--cyan));
  background: var(--bg-card-hover);
}

.ball-card.selected {
  border-color: var(--ball-color, var(--cyan));
  box-shadow: inset 0 0 0 1px var(--ball-color, var(--cyan)), 0 0 12px rgba(34, 211, 238, 0.16);
}

.ball-card.inspected {
  background: rgba(34, 211, 238, 0.1);
}

.ball-card-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  border: 1.5px solid var(--ball-accent, rgba(255, 255, 255, 0.5));
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.ball-card-name {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ball-card-sub {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ball-card-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cyan);
  color: #060913;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* ==================== Betting Tab ==================== */
.wallet-card {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.36);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-label {
  font-size: 11px;
  color: #fde68a;
  font-weight: 600;
}

.wallet-amount {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
}

.wallet-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-stat {
  font-size: 11px;
  color: var(--text-secondary);
}

.wallet-stat strong {
  color: #fff;
  font-family: var(--font-mono);
}

.wallet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-tip {
  font-size: 11px;
  color: var(--text-secondary);
}

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

.wager-btn {
  padding: 7px 4px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
}

.wager-btn.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--amber);
  color: #fde68a;
}

.wager-all {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #fda4af;
}

.bet-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.bet-option-card {
  padding: 9px 10px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  transition: all 0.14s ease;
}

.bet-option-card:hover:not(:disabled) {
  border-color: var(--opt-color, var(--amber));
  background: var(--bg-card-hover);
}

.bet-option-card.picked {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.22);
}

.bet-option-card:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bet-opt-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bet-opt-name {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bet-opt-odds {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #fde68a;
  flex-shrink: 0;
}

.active-bet-box {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-size: 12px;
  font-weight: 700;
  color: #a7f3d0;
}

.bet-history-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bet-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--bg-card);
  font-size: 11px;
}

.bet-hist-win {
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-weight: 800;
}

.bet-hist-lose {
  color: #fda4af;
  font-family: var(--font-mono);
  font-weight: 800;
}

/* ==================== Lab Settings Tab ==================== */
.terrain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.terrain-card {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terrain-card.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.15);
}

.terrain-name {
  font-size: 12px;
  font-weight: 800;
}

.terrain-desc {
  font-size: 10px;
  color: var(--text-secondary);
}

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toggle-name {
  font-size: 12px;
  font-weight: 700;
}

.toggle-desc {
  font-size: 10px;
  color: var(--text-secondary);
}

.neon-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #334155;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.16s ease;
}

.neon-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.neon-switch:checked {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.neon-switch:checked::after {
  transform: translateX(16px);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.slider-label strong {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.sandbox-box {
  padding: 10px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.sandbox-controls {
  display: flex;
  gap: 7px;
}

.neon-select {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: #f8fafc;
}

/* ==================== Live Tab ==================== */
.live-roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-ball-row {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.live-ball-row.dead {
  opacity: 0.45;
}

.live-ball-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.live-ball-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.live-ball-stats {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.live-hp-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.live-hp-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.12s linear;
}

.live-buff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.buff-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: #a5f3fc;
}

.event-log-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 260px;
  overflow-y: auto;
}

.event-row {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-card);
  border-left: 3px solid var(--evt-color, var(--cyan));
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.empty-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 14px 8px;
}

.tourney-mini-card {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: 12px;
  color: #fde68a;
}

/* ==================== Modals ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 15, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 14px;
  z-index: 60;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0d1428;
  border: 1.5px solid rgba(34, 211, 238, 0.42);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 32px rgba(168, 85, 247, 0.22);
  animation: modalPop 0.22s ease-out;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.28);
  color: #fff;
}

.victory-header {
  text-align: center;
  margin-bottom: 12px;
}

.victory-crown {
  font-size: 26px;
  line-height: 1;
}

.victory-avatar {
  width: 58px;
  height: 58px;
  margin: 6px auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  border: 2.5px solid #fde047;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
}

.victory-title {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, #fff, #fde047, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.victory-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.bet-result-banner {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.bet-result-banner.win {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.bet-result-banner.lose {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.mvp-card {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rankings-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.rankings-table th,
.rankings-table td {
  padding: 6px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.rankings-table th {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.rankings-table td {
  font-family: var(--font-mono);
}

.rankings-table td:nth-child(2) {
  font-family: var(--font-sans);
  font-weight: 700;
}

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

/* ==================== Tournament Bracket Modal ==================== */
.bracket-card {
  max-width: 720px;
}

.bracket-header {
  margin-bottom: 12px;
}

.bracket-header h2 {
  font-size: 17px;
  font-weight: 900;
}

.bracket-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.bracket-tree {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bracket-round-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12);
}

.bracket-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 8px;
}

.bracket-match {
  padding: 7px 8px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bracket-match.current {
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.bracket-match.done {
  border-color: rgba(16, 185, 129, 0.45);
}

.bracket-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(6, 9, 19, 0.55);
}

.bracket-slot.winner {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.bracket-slot.loser {
  opacity: 0.45;
}

/* ==================== Guide Modal & Toast ==================== */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.guide-item {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.guide-item h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 4px;
}

.guide-item p {
  font-size: 12px;
  color: #cbd5e1;
}

.guide-item code {
  font-family: var(--font-mono);
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.16);
  color: #a5f3fc;
}

.toast-container {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 80;
  pointer-events: none;
}

.toast {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.2s ease-out;
}

/* ==================== Keyframes ==================== */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(6, 182, 212, 0.36); }
  50% { box-shadow: 0 4px 24px rgba(168, 85, 247, 0.62); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Desktop Responsive (>= 1024px) ==================== */
@media (min-width: 640px) {
  .brand-sub {
    display: inline;
  }

  .ball-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .app-shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .top-bar {
    height: 44px;
    padding: 0 18px;
    flex-shrink: 0;
  }

  .preset-bar {
    padding: 5px 18px;
    flex-shrink: 0;
  }

  .workspace {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    overflow: hidden;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    padding: 8px 18px 10px;
  }

  .stage-col {
    flex: 1 1 560px;
    max-width: 620px;
    min-height: 0;
    height: 100%;
    justify-content: flex-start;
    gap: 5px;
  }

  .vs-strip {
    min-height: 38px;
    padding: 5px 10px;
    flex-shrink: 0;
  }

  .arena-frame {
    width: min(460px, calc(100vh - 356px));
    max-width: 460px;
    flex-shrink: 0;
  }

  .control-bar,
  .ticker-bar,
  .god-bar {
    flex-shrink: 0;
  }

  .ticker-bar {
    height: 30px;
  }

  .god-bar {
    padding: 6px 8px;
    gap: 4px;
  }

  .god-btn {
    padding: 5px 4px;
  }

  .vs-strip,
  .control-bar,
  .ticker-bar,
  .god-bar {
    max-width: 560px;
  }

  .panel-col {
    width: 455px;
    flex: 0 0 455px;
    min-height: 0;
    height: 100%;
  }

  .panel-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
  }

  .ball-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .panel-col {
    width: 495px;
    flex: 0 0 495px;
  }

  .ball-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
