.egg-battles .stat-title {
  letter-spacing: 0.02em;
}

.egg-battles {
  min-height: calc(100dvh - 170px);
  font-family: var(--font-family);
}

.live-announcement.is-visible + .egg-battles {
  margin-top: 10px;
}

.egg-battles .match-list {
  max-height: calc(100dvh - 350px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.5) rgba(15, 13, 24, 0.45);
}

.egg-battles .match-list::-webkit-scrollbar {
  width: 8px;
}

.egg-battles .match-list::-webkit-scrollbar-track {
  background: rgba(15, 13, 24, 0.45);
}

.egg-battles .match-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.72), rgba(192, 132, 252, 0.72));
  border-radius: 999px;
}

.egg-battles .stats-row { --gap: 12px; }
.egg-battles .statbox{
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,15,29,.85), rgba(11,10,18,.80));
  border: 1px solid rgba(139,92,246,.30);
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
  overflow:hidden;
  position:relative;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease;
}

.egg-battles .statbox.statbox--dropdown{
  overflow: visible;
  z-index: 30;
}

.egg-battles .statbox::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.14), transparent 65%);
  transform: translateX(-140%);
  opacity:0;
  pointer-events:none;
}
.egg-battles .statbox:hover{
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(192,132,252,.55);
  filter: brightness(1.04);
}

.egg-battles .statboxbody{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 14px;
}

.egg-battles .statbox.statbox--dropdown .statboxbody{
  flex-wrap: nowrap !important;
}
.egg-battles .stat-ico{
  width:46px; height:46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(17,15,26,.92));
  border: 1px solid rgba(139,92,246,.55);
  box-shadow: 0 10px 25px rgba(139,92,246,.25);
  flex:0 0 auto;
}

.egg-battles .stat-ico i {
  font-size: 20px;
  color: #e7ddff;
}

.egg-battles .stat-title{
  font-weight:900;
  letter-spacing:.2px;
  margin:0;
  font-size: 18px;
  line-height:1.1;
}

.egg-battles .stat-sub{
  opacity:.85;
  font-weight:800;
  letter-spacing:.2px;
  font-size: 12.5px;
}

.egg-battles .btn-cf {
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(17, 15, 26, 0.92));
  color: #eee8ff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.18);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.egg-battles .btn-cf:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.egg-battles .btn-cf:active {
  transform: translateY(0px) scale(0.99);
}

.egg-battles .btn-cf.secondary {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.18), rgba(17, 15, 26, 0.92));
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 10px 25px rgba(192, 132, 252, 0.14);
}

.egg-battles .btn-cf.danger {
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(17, 15, 26, 0.92));
  border-color: rgba(255, 59, 59, 0.35);
  box-shadow: 0 10px 25px rgba(255, 59, 59, 0.12);
}

.egg-battles .btn-cf:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.egg-board {
  margin-top: 14px;
  border: 1px solid rgba(90, 86, 140, 0.45);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 11, 26, 0.92), rgba(10, 8, 18, 0.9));
}

.egg-board-head {
  display: grid;
  grid-template-columns: 110px minmax(360px, 1fr) 180px 150px 160px 190px;
  gap: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(90, 86, 140, 0.35);
  color: rgba(212, 202, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.69rem;
  font-weight: 700;
}

.egg-board-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.egg-battles .egg-board-list.is-booting {
  visibility: hidden;
  animation: egg-board-boot-fallback 0s linear 1.2s forwards;
}

@keyframes egg-board-boot-fallback {
  to {
    visibility: visible;
  }
}

.egg-row {
  display: grid;
  grid-template-columns: 110px minmax(360px, 1fr) 180px 150px 160px 190px;
  align-items: center;
  border: 1px solid rgba(92, 88, 144, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 14, 34, 0.92), rgba(12, 9, 24, 0.92));
  overflow: hidden;
  min-height: 118px;
}

.egg-col-round,
.egg-col-details,
.egg-col-value,
.egg-col-players,
.egg-col-action {
  padding: 10px 12px;
}

/* Override legacy global egg styles that force fixed-height column behavior. */
.egg-battles .egg-col-round,
.egg-battles .egg-col-scenario,
.egg-battles .egg-col-details,
.egg-battles .egg-col-value,
.egg-battles .egg-col-players,
.egg-battles .egg-col-action {
  min-height: 0;
}

.egg-col-round {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid rgba(92, 88, 144, 0.28);
  background: linear-gradient(180deg, rgba(15, 25, 42, 0.65), rgba(16, 14, 35, 0.65));
  position: relative;
}

.egg-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62ffd7;
  box-shadow: 0 0 0 3px rgba(98, 255, 215, 0.15);
  position: absolute;
  top: 10px;
  left: 8px;
}

.egg-live {
  color: #61ffd6;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.egg-round-pill {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(85, 249, 203, 0.45);
  background: radial-gradient(circle at top, rgba(53, 215, 178, 0.18), rgba(18, 26, 48, 0.34));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f3f7ff;
}

.egg-round-label {
  font-size: 0.63rem;
  color: rgba(189, 183, 232, 0.55);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.egg-battles .egg-col-scenario {
  --egg-item-size: 74px;
  --egg-item-gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
}

.egg-battles .egg-scenario-viewport {
  width: 100%;
  max-width: calc((var(--egg-item-size) * 12) + (var(--egg-item-gap) * 11));
  overflow: hidden;
}

.egg-battles .egg-scenario-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--egg-item-gap);
  grid-template-columns: none !important;
  width: max-content;
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.egg-battles .egg-item {
  flex: 0 0 var(--egg-item-size);
  width: var(--egg-item-size);
  min-width: var(--egg-item-size);
  max-width: var(--egg-item-size);
  box-sizing: border-box;
  padding: 3px 3px 6px;
  border-radius: 10px;
  position: relative;
  z-index: 0;
  text-align: center;
  opacity: 0.82;
  overflow: visible;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.egg-battles .egg-item.is-hidden-round {
  display: none;
}

.egg-battles .egg-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  border: 1px solid rgba(97, 255, 214, 0);
  background: radial-gradient(circle at 50% 35%, rgba(84, 246, 211, 0.24), rgba(22, 38, 68, 0.22) 60%, rgba(10, 14, 30, 0.18) 100%);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  pointer-events: none;
  z-index: 1;
}

.egg-battles .egg-item-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(92, 88, 144, 0.3);
  background-color: rgba(255, 255, 255, 0.03);
}

.egg-battles .egg-item-name {
  display: none;
}

.egg-battles .egg-item.is-opening {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.2) saturate(1.15);
  opacity: 1;
  background: linear-gradient(180deg, rgba(72, 228, 194, 0.3), rgba(24, 40, 70, 0.28)) !important;
  box-shadow:
    0 0 0 1px rgba(97, 255, 214, 0.55),
    0 0 24px rgba(97, 255, 214, 0.44),
    inset 0 0 18px rgba(97, 255, 214, 0.16) !important;
}

.egg-battles .egg-item.is-opening::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(97, 255, 214, 0.92);
  box-shadow: 0 0 0 1px rgba(97, 255, 214, 0.34), 0 0 26px rgba(97, 255, 214, 0.56);
}

.egg-battles .egg-item.is-opening .egg-item-img {
  border-color: rgba(97, 255, 214, 0.95);
  box-shadow: 0 0 0 2px rgba(97, 255, 214, 0.26), 0 0 22px rgba(97, 255, 214, 0.46);
  animation: egg-item-open-pulse 1.2s ease-in-out infinite;
}

.egg-battles .egg-item.is-opening .egg-item-name {
  color: #d4ffef;
  text-shadow: 0 0 12px rgba(97, 255, 214, 0.38);
}

@keyframes egg-item-open-pulse {
  0% {
    box-shadow: 0 0 0 2px rgba(97, 255, 214, 0.18), 0 0 6px rgba(97, 255, 214, 0.22);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(97, 255, 214, 0.34), 0 0 20px rgba(97, 255, 214, 0.5);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(97, 255, 214, 0.18), 0 0 6px rgba(97, 255, 214, 0.22);
  }
}

.egg-row[data-status="waiting"] .egg-live {
  color: #f3b86b;
}

.egg-row[data-status="ended"] .egg-live {
  color: #b8b6ca;
}

.egg-col-details {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-left: 1px solid rgba(92, 88, 144, 0.2);
  border-right: 1px solid rgba(92, 88, 144, 0.2);
  background: linear-gradient(180deg, rgba(63, 48, 114, 0.35), rgba(30, 24, 64, 0.4));
  height: 100%;
  padding: 8px 10px;
}
.egg-wagers-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.egg-wager-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.15;
}
.egg-wager-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eee8ff;
}
.egg-wager-value {
  display: block;
  flex: 0 0 auto;
  margin-top: 0;
  margin-left: auto;
  color: #60ffd6;
  white-space: nowrap;
}

.egg-col-details span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #d7d0ff;
  font-weight: 700;
}

.egg-col-value {
  text-align: center;
  border-right: 1px solid rgba(92, 88, 144, 0.2);
}

.egg-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #63ffd6;
  line-height: 1;
}

.egg-col-value small {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #67ffd9;
  text-transform: uppercase;
}

.egg-col-value .egg-mode-crazy {
  color: #ff4f4f;
  font-weight: 800;
}

.egg-col-value .egg-value-base,
.egg-col-value .egg-value-range {
  margin-top: 3px;
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(210, 243, 255, 0.86);
  line-height: 1.2;
}

.egg-col-value .egg-value-range {
  color: rgba(145, 223, 255, 0.95);
}

.egg-col-players {
  text-align: center;
  background:
    radial-gradient(80% 110% at 50% 0%, rgba(22, 94, 86, 0.34), transparent 65%),
    radial-gradient(80% 100% at 50% 100%, rgba(54, 29, 92, 0.35), transparent 68%),
    linear-gradient(180deg, rgba(14, 18, 40, 0.9), rgba(12, 15, 33, 0.88));
  border-right: 1px solid rgba(92, 88, 144, 0.2);
}

.egg-players-top {
  font-weight: 800;
  color: #ff5f92;
}

.egg-players-detail-btn {
  appearance: none;
  border: 1px solid rgba(255, 95, 146, 0.45);
  background: linear-gradient(180deg, rgba(58, 22, 48, 0.82), rgba(38, 16, 34, 0.9));
  color: #ffc8db;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  min-height: 21px;
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.egg-players-detail-btn:hover {
  border-color: rgba(255, 138, 177, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 122, 167, 0.26);
  transform: translateY(-1px);
}

.egg-avatars {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.egg-avatars.is-two,
.egg-avatars.is-four {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.egg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(213, 198, 255, 0.55);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.06);
}

.egg-avatar--team-1 {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.32);
}

.egg-avatar--team-2 {
  border-color: rgba(251, 113, 133, 0.9);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.32);
}

.egg-avatar--empty {
  border-style: dashed;
  border-color: rgba(213, 198, 255, 0.28);
  background-image: none !important;
  background-color: rgba(255, 255, 255, 0.02);
}

.egg-players-mode {
  margin-top: 6px;
  color: #6fffdc;
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.egg-col-action {
  display: flex;
  justify-content: center;
  align-items: center;
}

.egg-action-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.egg-col-action .btn-cf {
  min-width: 124px;
}

.egg-battles .egg-item[data-egg-inspect] {
  cursor: pointer;
}

.egg-battles .egg-item[data-egg-inspect]:hover {
  border-color: rgba(176, 148, 249, 0.8);
}

#eggBattleInspectModal .modal-content {
  border: 1px solid rgba(126, 100, 196, 0.6);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(181, 136, 255, 0.16), rgba(14, 10, 26, 0.98) 48%),
    linear-gradient(180deg, #120e20, #0f0b1a);
  color: #f2ecff;
}

#eggBattleInspectModal .modal-header {
  border-bottom: 1px solid rgba(126, 100, 196, 0.4);
}

.egg-inspect-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.egg-inspect-preview {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(140, 114, 214, 0.66);
  background: rgba(20, 15, 34, 0.85) center/cover no-repeat;
  flex: 0 0 54px;
}

.egg-inspect-copy small {
  color: rgba(214, 198, 255, 0.78);
}

.egg-inspect-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 90px;
  gap: 10px;
  padding: 0 2px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(202, 182, 250, 0.82);
}

.egg-inspect-rewards {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.egg-inspect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 90px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(126, 100, 196, 0.45);
  background: linear-gradient(180deg, rgba(36, 27, 58, 0.82), rgba(20, 14, 35, 0.92));
}

.egg-inspect-pet {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.egg-inspect-pet-img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  border: 1px solid rgba(142, 117, 213, 0.58);
  background: rgba(15, 10, 29, 0.75) center/cover no-repeat;
}

.egg-inspect-pet-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: #efe8ff;
}

.egg-inspect-value,
.egg-inspect-odds {
  text-align: right;
  font-weight: 800;
}

.egg-inspect-odds {
  color: #c7b3ff;
}

.egg-inspect-empty {
  border: 1px dashed rgba(126, 100, 196, 0.45);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  color: rgba(214, 198, 255, 0.78);
}

@media (max-width: 575.98px) {
  .egg-inspect-table-head,
  .egg-inspect-row {
    grid-template-columns: minmax(0, 1fr) 86px 72px;
    gap: 8px;
  }
}
.egg-empty {
  border: 1px dashed rgba(112, 108, 170, 0.55);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: #e9e2ff;
}

.egg-empty small {
  color: rgba(214, 204, 255, 0.72);
}

@media (max-width: 1399.98px) {
  .egg-board-head,
  .egg-row {
    grid-template-columns: 96px minmax(270px, 1fr) 150px 126px 150px 172px;
  }

  .egg-battles .egg-col-scenario {
    --egg-item-size: 64px;
  }
}

@media (max-width: 1199.98px) {
  .egg-battles .match-list {
    max-height: calc(100dvh - 300px);
  }

  .egg-board-head {
    display: none;
  }

  .egg-row {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    align-items: stretch;
  }

  .egg-battles .egg-col-round,
  .egg-battles .egg-col-details,
  .egg-battles .egg-col-value,
  .egg-battles .egg-col-players,
  .egg-battles .egg-col-action,
  .egg-battles .egg-col-scenario {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(92, 88, 144, 0.2);
  }

  .egg-battles .egg-col-round {
    border-top: 0;
    border-right: 0;
  }

  .egg-battles .egg-col-details {
    display: none;
  }

  .egg-battles .egg-col-scenario {
    --egg-item-size: 72px;
  }

  .egg-battles .egg-action-stack {
    flex-direction: row;
    width: 100%;
  }

  .egg-battles .egg-col-action .btn-cf {
    min-width: 0;
    flex: 1 1 0;
  }

  .egg-battles .egg-col-round,
  .egg-battles .egg-col-scenario,
  .egg-battles .egg-col-value,
  .egg-battles .egg-col-players,
  .egg-battles .egg-col-action {
    height: auto;
    min-height: 0;
  }
}


.egg-wagers-modal {
  --egg-wager-p1: #8b5cf6;
  --egg-wager-p2: #c084fc;
  --egg-wager-ink: #0f0d18;
  --egg-wager-ink-soft: #171322;
  --egg-wager-line: rgba(139, 92, 246, 0.36);
}

.egg-wagers-modal .modal-dialog {
  max-width: min(94vw, 1120px);
  transition: max-width 0.24s ease;
}

.egg-wagers-modal[data-seat-count="2"] .modal-dialog {
  max-width: min(94vw, 860px);
}

.egg-wagers-modal[data-seat-count="3"] .modal-dialog {
  max-width: min(95vw, 1080px);
}

.egg-wagers-modal[data-seat-count="4"] .modal-dialog {
  max-width: min(96vw, 1320px);
}

.egg-wagers-modal .modal-content {
  border: 1px solid var(--egg-wager-line);
  border-radius: 18px;
  overflow: hidden;
  color: #efe8ff;
  background:
    radial-gradient(140% 120% at 20% 0%, rgba(139, 92, 246, 0.2), transparent 52%),
    radial-gradient(130% 110% at 80% 100%, rgba(192, 132, 252, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(18, 15, 29, 0.97), rgba(11, 10, 18, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(192, 132, 252, 0.1) inset;
  animation: egg-wager-shell-glow 4.8s ease-in-out infinite;
}

@keyframes egg-wager-shell-glow {
  0%, 100% {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(192, 132, 252, 0.1) inset;
  }
  50% {
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(192, 132, 252, 0.2) inset, 0 0 30px rgba(139, 92, 246, 0.14);
  }
}

.egg-wagers-modal .modal-header {
  position: absolute;
  inset: 8px 8px auto auto;
  z-index: 20;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

.egg-wagers-modal .egg-wagers-head-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.egg-wagers-modal .btn-close {
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background:
    linear-gradient(180deg, rgba(28, 22, 46, 0.66), rgba(14, 12, 24, 0.74));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23d9cbff' stroke-width='2' stroke-linecap='round' d='M3.2 3.2l9.6 9.6M12.8 3.2l-9.6 9.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  filter: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
  opacity: 1;
}

.egg-wagers-modal .btn-close:hover {
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12), 0 6px 12px rgba(0, 0, 0, 0.34);
  transform: translateY(-0.5px);
}

.egg-wagers-modal .modal-body {
  max-height: min(80vh, 860px);
  overflow-y: auto;
  padding: 18px 14px 14px;
}

.egg-wagers-modal .modal-body::-webkit-scrollbar {
  width: 10px;
}

.egg-wagers-modal .modal-body::-webkit-scrollbar-track {
  background: rgba(10, 9, 16, 0.8);
  border-radius: 999px;
}

.egg-wagers-modal .modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.86), rgba(192, 132, 252, 0.86));
  border-radius: 999px;
  border: 2px solid rgba(10, 9, 16, 0.8);
}

.egg-wagers-grid {
  align-items: stretch;
  row-gap: 12px;
}

.egg-wager-loading {
  min-height: 180px;
  color: rgba(235, 228, 255, 0.94);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.egg-wager-empty-alert {
  color: rgba(229, 213, 255, 0.95);
  border-radius: 14px;
  border-color: rgba(139, 92, 246, 0.4) !important;
  background:
    linear-gradient(180deg, rgba(23, 19, 38, 0.94), rgba(12, 10, 20, 0.96)) !important;
}

.egg-wager-seat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border-color: rgba(139, 92, 246, 0.46) !important;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.16), transparent 56%),
    radial-gradient(120% 90% at 100% 100%, rgba(192, 132, 252, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(18, 15, 29, 0.95), rgba(12, 10, 20, 0.95));
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: egg-wager-card-enter 0.42s ease both;
}

.egg-wagers-grid > .col:nth-child(1) .egg-wager-seat-card { animation-delay: 0.03s; }
.egg-wagers-grid > .col:nth-child(2) .egg-wager-seat-card { animation-delay: 0.08s; }
.egg-wagers-grid > .col:nth-child(3) .egg-wager-seat-card { animation-delay: 0.13s; }
.egg-wagers-grid > .col:nth-child(4) .egg-wager-seat-card { animation-delay: 0.18s; }

@keyframes egg-wager-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.egg-wager-seat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.96), rgba(192, 132, 252, 0.96));
  opacity: 0.85;
}

.egg-wager-seat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.74) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(139, 92, 246, 0.22);
}

.egg-wager-seat-head {
  min-height: 62px;
  background:
    linear-gradient(180deg, rgba(30, 24, 50, 0.82), rgba(19, 16, 31, 0.72));
  border-bottom-color: rgba(139, 92, 246, 0.4) !important;
}

.egg-wager-seat-head img {
  border-color: rgba(192, 132, 252, 0.64) !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.14);
}

.egg-wager-seat-name {
  color: #f7f2ff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.egg-wager-seat-sub {
  color: rgba(197, 179, 245, 0.88);
  font-weight: 700;
}

.egg-wager-seat-total {
  border: 1px solid rgba(139, 92, 246, 0.58);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.94), rgba(114, 68, 230, 0.95));
  color: #f7f2ff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  animation: egg-wager-value-pulse 2.4s ease-in-out infinite;
}

@keyframes egg-wager-value-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.26), 0 0 18px rgba(192, 132, 252, 0.38);
  }
}

.egg-wager-slot-empty {
  border-style: dashed !important;
  border-color: rgba(139, 92, 246, 0.36) !important;
  opacity: 0.84;
  background: linear-gradient(180deg, rgba(16, 13, 26, 0.95), rgba(10, 9, 18, 0.96)) !important;
}

.egg-wager-slot-empty .egg-wager-seat-name {
  color: rgba(201, 186, 237, 0.82);
}

.egg-wager-slot-empty .egg-wager-seat-sub {
  color: rgba(165, 149, 207, 0.84);
}

.egg-wager-slot-empty .egg-wager-seat-total {
  background: linear-gradient(180deg, rgba(70, 83, 128, 0.92), rgba(54, 64, 102, 0.94));
  border-color: rgba(113, 127, 178, 0.55);
  color: rgba(228, 236, 255, 0.9);
  animation: none;
}

.egg-wager-seat-items {
  flex: 1 1 auto;
  max-height: clamp(180px, 40vh, 360px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(12, 10, 21, 0.7), rgba(10, 9, 18, 0.82));
}

.egg-wagers-modal[data-seat-count="2"] .egg-wager-seat-items {
  max-height: clamp(220px, 46vh, 430px);
}

.egg-wager-seat-items::-webkit-scrollbar {
  width: 8px;
}

.egg-wager-seat-items::-webkit-scrollbar-track {
  background: rgba(15, 13, 24, 0.7);
}

.egg-wager-seat-items::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.88), rgba(192, 132, 252, 0.86));
  border-radius: 999px;
}

.egg-wager-render-item {
  border-color: rgba(93, 74, 142, 0.74) !important;
  background:
    linear-gradient(180deg, rgba(17, 14, 28, 0.84), rgba(12, 10, 22, 0.92)) !important;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.egg-wager-render-item:hover {
  border-color: rgba(192, 132, 252, 0.76) !important;
  background:
    linear-gradient(180deg, rgba(24, 20, 39, 0.9), rgba(14, 12, 25, 0.92)) !important;
}

.egg-wager-render-item img {
  border-color: rgba(139, 92, 246, 0.55) !important;
  background-color: rgba(16, 14, 26, 0.72);
}

.egg-wager-render-item--empty {
  color: rgba(191, 171, 231, 0.92) !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  min-height: 86px;
}

.egg-wager-item-name {
  color: #f3edff;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 700;
}

.egg-wager-item-value {
  color: rgba(192, 132, 252, 0.96);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .egg-wagers-modal .modal-content,
  .egg-wager-seat-card,
  .egg-wager-seat-total {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .egg-wagers-modal .modal-body {
    padding: 14px 10px 10px;
  }

  .egg-wager-seat-items {
    max-height: clamp(160px, 34vh, 300px);
  }
}

@media (max-width: 575.98px) {
  .egg-wagers-modal .modal-dialog {
    max-width: calc(100vw - 0.8rem);
  }

  .egg-wagers-modal .modal-body {
    max-height: 82vh;
    padding: 12px 8px 8px;
  }

  .egg-wager-seat-head {
    min-height: 56px;
    padding: 8px 9px !important;
  }

  .egg-wager-seat-items {
    max-height: clamp(152px, 32vh, 270px);
  }

  .egg-wager-render-item {
    padding: 8px 9px;
  }
}

.egg-wager-modal-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.egg-wager-modal-list.is-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.egg-wager-player-card {
  border: 1px solid #2a2140;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(17, 15, 26, 0.96), rgba(15, 13, 24, 0.96)),
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 62%);
  padding: 10px;
}

.egg-wager-player-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.egg-wager-player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, 0.75);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.egg-wager-player-copy strong {
  display: block;
  color: #f6f2ff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.egg-wager-player-copy small {
  color: rgba(158, 201, 255, 0.8);
  font-size: 0.72rem;
}

.egg-wager-player-total {
  font-weight: 800;
  color: #c084fc;
  font-size: 0.92rem;
}

.egg-wager-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.egg-wager-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(42, 33, 64, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.17), rgba(15, 13, 24, 0.96));
  min-height: 48px;
  padding: 6px 8px;
}

.egg-wager-item-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(192, 132, 252, 0.44);
}

.egg-wager-item-copy strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #f3edff;
}

.egg-wager-item-copy small {
  display: block;
  margin-top: 1px;
  color: rgba(192, 132, 252, 0.92);
  font-size: 0.7rem;
}

.egg-wager-items-empty {
  border: 1px dashed rgba(42, 33, 64, 0.95);
  border-radius: 10px;
  padding: 10px;
  color: rgba(221, 205, 255, 0.92);
  font-size: 0.77rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.11), rgba(15, 13, 24, 0.96));
}

.egg-watch-modal .modal-dialog {
  max-width: 1280px;
}

.egg-watch-modal .modal-content {
  border: 1px solid #2a2140;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(139, 92, 246, 0.2), rgba(17, 15, 26, 0.98) 48%),
    linear-gradient(180deg, #110f1a, #0f0d18);
  color: #eee8ff;
}

.egg-watch-modal .modal-header {
  border-bottom: 1px solid #2a2140;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
}

.egg-watch-head-left {
  min-width: 0;
}

.egg-watch-head-left .modal-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f6f9ff;
}

.egg-watch-subline {
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.87rem;
  font-weight: 700;
}

.egg-watch-sub-sep {
  color: rgba(192, 132, 252, 0.5);
}

.egg-watch-head-right {
  text-align: right;
  min-width: 120px;
}

.egg-watch-cost-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.7);
}

.egg-watch-head-right strong {
  color: #c084fc;
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 800;
}

.egg-watch-modal .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.egg-watch-modal .modal-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.egg-watch-stage {
  display: grid;
  grid-template-columns: repeat(var(--egg-watch-stage-columns, 2), minmax(0, 1fr));
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.egg-watch-lane {
  border: 1px solid #2a2140;
  border-radius: 12px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 64%),
    linear-gradient(180deg, #171322, #0f0d18);
  padding: 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.egg-watch-stage.is-split-layout {
  row-gap: 10px;
}

.egg-watch-stage.is-split-layout .egg-watch-lane {
  display: contents;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  min-height: 0;
}

.egg-watch-stage.is-split-layout .egg-watch-player {
  grid-row: 1;
  border: 1px solid #2a2140;
  border-radius: 10px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(139, 92, 246, 0.14), transparent 64%),
    linear-gradient(180deg, #171322, #0f0d18);
  padding: 8px 10px;
}

.egg-watch-stage.is-split-layout .egg-watch-drop {
  grid-row: 2;
}

.egg-watch-stage.is-split-layout .egg-watch-lane.is-winner .egg-watch-player,
.egg-watch-stage.is-split-layout .egg-watch-lane.is-winner .egg-watch-drop {
  border-color: rgba(74, 222, 128, 0.76);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2), inset 0 0 10px rgba(74, 222, 128, 0.1);
}

.egg-watch-lane.is-winner {
  border-color: rgba(74, 222, 128, 0.76);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.26), inset 0 0 14px rgba(74, 222, 128, 0.12);
}

.egg-watch-lane.is-eliminated .egg-watch-player,
.egg-watch-lane.is-eliminated .egg-watch-drop {
  opacity: 0.5;
  filter: saturate(0.65);
}

.egg-watch-lane.is-eliminated .egg-watch-drop-label,
.egg-watch-lane.is-eliminated .egg-watch-drop-value {
  color: rgba(203, 213, 225, 0.86);
}

.egg-watch-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.egg-watch-seat-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.egg-watch-player-subrow {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.egg-watch-seat-join {
  border: 1px solid rgba(192, 132, 252, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.95), rgba(91, 33, 182, 0.95));
  color: #f8f9ff;
  padding: 3px 8px;
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.34);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.egg-watch-seat-join:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.44);
}

.egg-watch-seat-join:active {
  transform: translateY(0);
}

.egg-watch-seat-join:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.9);
  outline-offset: 2px;
}

.egg-watch-seat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.44);
  background: rgba(15, 13, 24, 0.78);
  color: #dbe7ff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.egg-watch-seat-pill.is-self {
  border-color: rgba(74, 222, 128, 0.62);
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.45);
}

.egg-watch-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, 0.55);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.07);
}

.egg-watch-player-meta {
  min-width: 0;
}


.egg-watch-stage.is-team-layout .egg-watch-player.is-team-1,
.egg-watch-stage.is-team-layout .egg-watch-drop.is-team-1 {
  border-color: rgba(96, 165, 250, 0.58);
}

.egg-watch-stage.is-team-layout .egg-watch-player.is-team-2,
.egg-watch-stage.is-team-layout .egg-watch-drop.is-team-2 {
  border-color: rgba(251, 113, 133, 0.58);
}

.egg-watch-player-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f4f8ff;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egg-watch-player-wager {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c084fc;
}

.egg-watch-drop {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #2a2140;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(139, 92, 246, 0.14), transparent 64%),
    linear-gradient(180deg, rgba(17, 15, 26, 0.92), rgba(15, 13, 24, 0.96));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.egg-watch-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(192, 132, 252, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.egg-watch-lane.is-opening .egg-watch-drop::before {
  opacity: 1;
}

.egg-watch-egg-box {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 1px solid rgba(192, 132, 252, 0.42);
  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.22), rgba(17, 15, 26, 0.4)),
    linear-gradient(180deg, #171322, #0f0d18);
  overflow: hidden;
}

.egg-watch-winner-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.35), rgba(17, 15, 26, 0.95));
  border: 1px solid rgba(74, 222, 128, 0.62);
  color: #dcfce7;
}

.egg-watch-egg-img,
.egg-watch-egg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.egg-watch-egg-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  transform: scale(2);
  transform-origin: center center;
}

.egg-watch-lane.is-opening .egg-watch-egg-video {
  opacity: 1;
}

.egg-watch-lane.is-revealed .egg-watch-egg-video {
  opacity: 0;
}

.egg-watch-lane.is-opening .egg-watch-egg-img {
  opacity: 0;
  animation: none;
  filter: none;
}

@keyframes egg-watch-egg-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(192, 132, 252, 0.22));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.62));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(192, 132, 252, 0.22));
  }
}

.egg-watch-box-reward {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.28s ease, transform 0.28s ease;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(17, 15, 26, 0.96), rgba(15, 13, 24, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
}

.egg-watch-box-reward.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.egg-watch-box-reward-img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(192, 132, 252, 0.42);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.3);
}

.egg-watch-box-reward-name {
  font-size: 0.84rem;
  color: #edf5ff;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.egg-watch-box-reward-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c084fc;
}

.egg-watch-drop-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.egg-watch-drop-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #c084fc;
}

.egg-watch-confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  overflow: hidden;
}

.egg-watch-confetti-piece {
  position: absolute;
  top: -16px;
  width: 7px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: egg-watch-confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes egg-watch-confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 520px, 0) rotate(740deg);
    opacity: 0;
  }
}

.egg-watch-history {
  display: grid;
  grid-template-columns: repeat(var(--egg-watch-history-columns, 2), minmax(0, 1fr));
  gap: 10px;
}

.egg-watch-board {
  border: 1px solid #2a2140;
  border-radius: 12px;
  background: rgba(17, 15, 26, 0.82);
  overflow: hidden;
}

.egg-watch-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #2a2140;
  background: rgba(139, 92, 246, 0.14);
}

.egg-watch-board-name {
  font-weight: 800;
  color: #f0f6ff;
  font-size: 0.84rem;
}

.egg-watch-board-grid {
  display: grid;
  grid-template-columns: repeat(var(--egg-watch-round-columns, 3), minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.egg-watch-history.is-multi-layout {
  gap: 8px;
}

.egg-watch-history.is-multi-layout .egg-watch-board-grid {
  gap: 6px;
  padding: 8px;
}

.egg-watch-tile {
  min-height: 86px;
  border: 1px solid #2a2140;
  border-radius: 10px;
  background: linear-gradient(180deg, #171322, #0f0d18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.egg-watch-tile.is-eliminated {
  opacity: 0.52;
  border-style: dashed;
}

.egg-watch-tile.is-current {
  border-color: rgba(192, 132, 252, 0.88);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.34);
  transform: translateY(-1px);
}

.egg-watch-tile-round {
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(203, 216, 242, 0.85);
}

.egg-watch-tile.is-revealed .egg-watch-tile-round {
  color: rgba(218, 186, 255, 0.92);
}

.egg-watch-tile-reward {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background-color: rgba(255, 255, 255, 0.04);
  opacity: 0.2;
}

.egg-watch-tile.is-revealed .egg-watch-tile-reward {
  opacity: 1;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.3);
}

.egg-watch-tile-value {
  font-size: 0.72rem;
  font-weight: 800;
  color: #c084fc;
  line-height: 1;
  opacity: 0;
}

.egg-watch-tile.is-revealed .egg-watch-tile-value {
  opacity: 1;
}


@media (max-width: 1199px) {
  .egg-battles {
    min-height: auto;
  }

  .egg-battles .stats-row {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.6rem;
  }

  .egg-battles .statbox {
    border-radius: 12px;
    min-height: 78px;
  }

  .egg-battles .statboxbody {
    min-height: 78px;
    padding: 9px 10px;
    gap: 8px;
  }

  .egg-battles .stat-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .egg-battles .stat-title {
    font-size: 1.02rem;
    line-height: 1.1;
  }

  .egg-battles .stat-sub {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .egg-battles .match-list {
    max-height: none;
    overflow-y: visible;
    padding: 8px;
    gap: 7px;
  }

  .egg-battles .egg-row {
    border-radius: 11px;
    min-height: 0;
  }

  .egg-battles .egg-col-round,
  .egg-battles .egg-col-scenario,
  .egg-battles .egg-col-value,
  .egg-battles .egg-col-players,
  .egg-battles .egg-col-action {
    padding: 8px 9px;
  }

  .egg-battles .egg-col-round {
    gap: 5px;
  }

  .egg-battles .egg-live-dot {
    top: 8px;
    left: 7px;
  }

  .egg-battles .egg-round-pill {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .egg-battles .egg-round-label,
  .egg-battles .egg-live {
    font-size: 0.6rem;
  }

  .egg-battles .egg-col-scenario {
    --egg-item-size: 64px;
    --egg-item-gap: 5px;
  }

  .egg-battles .egg-item-name {
    font-size: 0.68rem;
  }

  .egg-battles .egg-value {
    font-size: 1.2rem;
  }

  .egg-battles .egg-value-base,
  .egg-battles .egg-value-range {
    font-size: 0.58rem;
  }

  .egg-battles .egg-avatar {
    width: 22px;
    height: 22px;
  }

  .egg-battles .egg-players-top {
    font-size: 0.74rem;
  }

  .egg-battles .egg-players-detail-btn {
    min-height: 20px;
    padding: 2px 8px;
  }

  .egg-battles .egg-players-mode {
    font-size: 0.66rem;
    margin-top: 4px;
  }

  .egg-battles .egg-action-stack {
    gap: 6px;
  }

  .egg-battles .egg-col-action .btn-cf {
    padding: 7px 8px;
    font-size: 0.74rem;
    min-height: 34px;
  }.egg-watch-modal .modal-header {
    grid-template-columns: 1fr;
    padding-right: 42px;
  }

  .egg-watch-head-right {
    text-align: left;
  }

  .egg-watch-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .egg-battles .stats-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .egg-battles .statboxbody {
    padding: 8px 9px;
  }

  .egg-battles .egg-col-scenario {
    --egg-item-size: 56px;
    --egg-item-gap: 4px;
  }

  .egg-battles .egg-col-action .btn-cf {
    font-size: 0.7rem;
    padding: 7px 6px;
  }
}

@media (max-width: 767.98px) {.egg-wager-modal-list.is-grid-2x2 {
    grid-template-columns: 1fr;
  }.egg-watch-modal .modal-body {
    padding: 10px;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Prevent split-layout overlap on mobile: stack lanes as regular cards. */
  .egg-watch-stage.is-split-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
    column-gap: 8px;
  }

  .egg-watch-stage.is-trio-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
    column-gap: 6px;
  }

  .egg-watch-stage.is-split-layout .egg-watch-lane {
    display: flex;
    border: 1px solid #2a2140;
    border-radius: 10px;
    background:
      radial-gradient(100% 120% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 64%),
      linear-gradient(180deg, #171322, #0f0d18);
    padding: 7px;
    min-height: 172px;
  }

  .egg-watch-stage.is-split-layout .egg-watch-player {
    grid-row: auto;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0;
  }

  .egg-watch-stage.is-split-layout .egg-watch-drop {
    grid-row: auto;
    min-height: 110px;
  }

  /* Quad mobile layout order: 1|3 then 2|4 for stage + history. */
  .egg-watch-stage.is-split-layout .egg-watch-lane[data-seat="1"],
  .egg-watch-history.is-quad-layout .egg-watch-board[data-seat="1"] {
    order: 1;
  }

  .egg-watch-stage.is-split-layout .egg-watch-lane[data-seat="3"],
  .egg-watch-history.is-quad-layout .egg-watch-board[data-seat="3"] {
    order: 2;
  }

  .egg-watch-stage.is-split-layout .egg-watch-lane[data-seat="2"],
  .egg-watch-history.is-quad-layout .egg-watch-board[data-seat="2"] {
    order: 3;
  }

  .egg-watch-stage.is-split-layout .egg-watch-lane[data-seat="4"],
  .egg-watch-history.is-quad-layout .egg-watch-board[data-seat="4"] {
    order: 4;
  }

  .egg-watch-history.is-quad-layout .egg-watch-board {
    min-height: 218px;
  }

  .egg-watch-lane {
    min-height: 160px;
    padding: 7px;
  }

  .egg-watch-drop {
    padding: 7px;
    gap: 6px;
  }

  .egg-watch-egg-box {
    width: 104px;
    height: 104px;
  }

  .egg-watch-player-name {
    font-size: 0.82rem;
  }

  .egg-watch-player-wager {
    font-size: 0.72rem;
  }

  .egg-watch-seat-pill,
  .egg-watch-seat-join {
    font-size: 0.54rem;
    padding: 2px 6px;
  }

  .egg-watch-board {
    padding: 7px;
  }

  .egg-watch-board-head {
    margin-bottom: 6px;
  }

  .egg-watch-board-name {
    font-size: 0.74rem;
  }

  .egg-watch-board-grid {
    gap: 5px;
    padding: 6px;
  }

  .egg-watch-tile {
    min-height: 68px;
    padding: 4px;
  }

  .egg-watch-tile-round {
    font-size: 0.65rem;
  }

  .egg-watch-tile-reward {
    width: 24px;
    height: 24px;
  }

  .egg-watch-tile-value {
    font-size: 0.62rem;
  }

  .egg-wager-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .egg-watch-stage,
  .egg-watch-history {
    grid-template-columns: 1fr;
  }

  /* Keep 1v1 side-by-side on narrow phones. */
  .egg-watch-stage.is-duel-layout {
    height: 210px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .egg-watch-history.is-duel-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  /* Keep 1v1v1/1v1v1v1/2v2 side-by-side on narrow phones. */
  .egg-watch-stage.is-split-layout,
  .egg-watch-history.is-quad-layout,
  .egg-watch-history.is-multi-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .egg-watch-stage.is-split-layout .egg-watch-lane {
    min-height: 162px;
    padding: 8px;
  }

  .egg-watch-stage.is-split-layout .egg-watch-drop {
    min-height: 104px;
  }

  .egg-watch-history.is-quad-layout .egg-watch-board {
    min-height: 206px;
  }

  .egg-watch-history.is-quad-layout .egg-watch-board-grid {
    gap: 6px;
    padding: 6px;
  }

  .egg-watch-history.is-quad-layout .egg-watch-tile {
    min-height: 72px;
  }

  .egg-watch-stage.is-trio-layout,
  .egg-watch-history.is-trio-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-lane {
    padding: 4px;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-avatar {
    width: 22px;
    height: 22px;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-player-name {
    font-size: 0.62rem;
    line-height: 1;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-player-wager {
    font-size: 0.54rem;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-seat-pill,
  .egg-watch-stage.is-trio-layout .egg-watch-seat-join {
    font-size: 0.48rem;
    padding: 1px 4px;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-drop {
    padding: 4px;
    gap: 3px;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-egg-box {
    width: 62px;
    height: 62px;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-drop-label {
    font-size: 0.52rem;
    letter-spacing: 0.03em;
  }

  .egg-watch-stage.is-trio-layout .egg-watch-drop-value {
    font-size: 0.56rem;
  }

  .egg-watch-history.is-trio-layout .egg-watch-board {
    padding: 4px;
  }

  .egg-watch-history.is-trio-layout .egg-watch-board-head {
    padding: 5px 6px;
    margin-bottom: 4px;
  }

  .egg-watch-history.is-trio-layout .egg-watch-board-name,
  .egg-watch-history.is-trio-layout .egg-watch-player-wager {
    font-size: 0.6rem;
  }

  .egg-watch-history.is-trio-layout .egg-watch-board-grid {
    gap: 3px;
    padding: 3px;
  }

  .egg-watch-history.is-trio-layout .egg-watch-tile {
    min-height: 52px;
    padding: 3px;
  }

  .egg-watch-history.is-trio-layout .egg-watch-tile-round {
    font-size: 0.56rem;
  }

  .egg-watch-history.is-trio-layout .egg-watch-tile-reward {
    width: 18px;
    height: 18px;
  }

  .egg-watch-history.is-trio-layout .egg-watch-tile-value {
    font-size: 0.52rem;
  }

  .egg-watch-stage.is-duel-layout .egg-watch-lane {
    min-height: 0;
    padding: 6px;
  }

  .egg-watch-stage.is-duel-layout .egg-watch-egg-box {
    width: 88px;
    height: 88px;
  }

  .egg-watch-stage.is-duel-layout .egg-watch-player-name {
    font-size: 0.74rem;
  }

  .egg-watch-stage.is-duel-layout .egg-watch-player-wager {
    font-size: 0.66rem;
  }

  .egg-watch-history.is-duel-layout .egg-watch-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egg-watch-player-subrow {
    gap: 4px;
    flex-wrap: wrap;
  }
}

/* Clean Egg Selection rebuild using Profile page palette */
#eggBattleCreateModal {
  --eb-bg: #0b0a12;
  --eb-surface: #110f1a;
  --eb-surface-2: #0f0d18;
  --eb-border: #2a2140;
  --eb-text: #eee8ff;
  --eb-muted: #b9a7f4;
  --eb-accent: #8b5cf6;
  --eb-accent-2: #c084fc;
  --eb-radius: 16px;
}

#eggBattleCreateModal .modal-dialog {
  max-width: min(1140px, calc(100vw - 1.2rem));
}

#eggBattleCreateModal .egg-create-modal-content {
  border-radius: 20px;
  border: 1px solid var(--eb-border);
  background:
    radial-gradient(110% 90% at 100% -5%, rgba(192, 132, 252, 0.2), transparent 58%),
    radial-gradient(110% 90% at -10% 110%, rgba(139, 92, 246, 0.18), transparent 62%),
    linear-gradient(180deg, var(--eb-surface), var(--eb-surface-2));
  color: var(--eb-text);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.52);
}

#eggBattleCreateModal .modal-body {
  padding: 0;
}

#eggBattleCreateModal .egg-create-shell--clean {
  display: flex;
  flex-direction: column;
  min-height: min(78dvh, 860px);
}

#eggBattleCreateModal .egg-create-head-copy small {
  display: block;
  margin-top: 4px;
  color: var(--eb-muted);
  font-size: 0.8rem;
}

#eggBattleCreateModal .egg-create-layout--clean {
  display: grid;
  grid-template-columns: minmax(290px, 330px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  min-height: 0;
  flex: 1;
}

#eggBattleCreateModal .egg-create-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr);
  gap: 12px;
  min-height: 0;
}

#eggBattleCreateModal .egg-create-block {
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  background: linear-gradient(180deg, rgba(21, 18, 33, 0.94), rgba(14, 12, 25, 0.96));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#eggBattleCreateModal .egg-create-step {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.14);
  color: #d9cbff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#eggBattleCreateModal .egg-create-section-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eb-text);
}

#eggBattleCreateModal .form-label {
  margin-bottom: 7px;
  color: #cab9fa;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

#eggBattleCreateModal .egg-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#eggBattleCreateModal .egg-mode-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(17, 15, 26, 0.92);
  color: #ddd1ff;
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

#eggBattleCreateModal .egg-mode-btn:hover {
  border-color: rgba(192, 132, 252, 0.8);
  color: #fff;
}

#eggBattleCreateModal .egg-mode-btn.is-active {
  border-color: rgba(192, 132, 252, 0.9);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.36), rgba(18, 15, 27, 0.95));
  color: #fff;
}

#eggBattleCreateModal .egg-rule-panel {
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 11px;
  background: rgba(12, 10, 20, 0.7);
  padding: 10px;
}

#eggBattleCreateModal .egg-rule-panel small {
  display: block;
  margin-top: 7px;
  color: var(--eb-muted);
  font-size: 0.74rem;
}

#eggBattleCreateModal .form-check-label {
  color: var(--eb-text);
  font-size: 0.86rem;
  font-weight: 700;
}

#eggBattleCreateModal .egg-create-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#eggBattleCreateModal .egg-create-summary-item {
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 12px;
  padding: 10px;
  background: rgba(13, 11, 21, 0.8);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#eggBattleCreateModal .egg-create-summary-item span {
  color: var(--eb-muted);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#eggBattleCreateModal .egg-create-summary-item strong {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
}

#eggBattleCreateModal .egg-rounds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#eggBattleCreateModal .egg-round-count {
  border: 1px solid rgba(139, 92, 246, 0.48);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(139, 92, 246, 0.12);
  color: #e7deff;
  font-size: 0.72rem;
  font-weight: 800;
}

#eggBattleCreateModal .egg-round-limit {
  margin: 8px 0 8px;
  color: var(--eb-muted);
  font-size: 0.74rem;
}

#eggBattleCreateModal .egg-round-limit.is-limit-reached {
  color: #ff9caf;
}

#eggBattleCreateModal .egg-round-progress {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(11, 10, 18, 0.95);
  overflow: hidden;
  margin-bottom: 10px;
}

#eggBattleCreateModal .egg-round-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--eb-accent), var(--eb-accent-2));
}

#eggBattleCreateModal .egg-round-picks {
  min-height: 180px;
  max-height: 34dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

#eggBattleCreateModal .egg-round-empty {
  border: 1px dashed rgba(139, 92, 246, 0.38);
  border-radius: 12px;
  color: var(--eb-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 16px 12px;
}

#eggBattleCreateModal .egg-round-chip {
  display: grid;
  grid-template-columns: 24px 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 12px;
  background: rgba(13, 11, 21, 0.9);
  padding: 7px;
}

#eggBattleCreateModal .egg-round-chip-index {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.44);
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

#eggBattleCreateModal .egg-round-chip-img {
  width: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#eggBattleCreateModal .egg-round-chip-title {
  color: #c6b5f6;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

#eggBattleCreateModal .egg-round-chip-name {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#eggBattleCreateModal .egg-round-chip-remove {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

#eggBattleCreateModal .egg-round-clear-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(17, 15, 26, 0.86);
  color: #eee8ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#eggBattleCreateModal .egg-create-block--picker {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#eggBattleCreateModal .egg-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

#eggBattleCreateModal .egg-picker-head-copy small {
  color: var(--eb-muted);
  font-size: 0.78rem;
}

#eggBattleCreateModal .egg-picker-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(139, 92, 246, 0.36);
  border-radius: 10px;
  background: rgba(12, 11, 19, 0.95);
  padding: 0 10px;
  min-height: 38px;
  min-width: 220px;
}

#eggBattleCreateModal .egg-picker-search i {
  color: #baa7ee;
}

#eggBattleCreateModal #eggBattleEggSearch {
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 0.84rem;
}

#eggBattleCreateModal .egg-picker-grid {
  flex: 1;
  min-height: 260px;
  max-height: 58dvh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding-right: 2px;
}

#eggBattleCreateModal .egg-picker-empty {
  border: 1px dashed rgba(139, 92, 246, 0.38);
  border-radius: 12px;
  color: var(--eb-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 18px 12px;
}

#eggBattleCreateModal .egg-pick-card {
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  background: rgba(13, 11, 21, 0.9);
  height: auto;
  min-height: 0;
  align-self: start;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

#eggBattleCreateModal .egg-pick-card:hover {
  border-color: rgba(192, 132, 252, 0.74);
  transform: translateY(-1px);
}

#eggBattleCreateModal .egg-pick-card.is-selected {
  border-color: rgba(192, 132, 252, 0.92);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
}

#eggBattleCreateModal .egg-pick-card.is-disabled {
  opacity: 0.56;
}

#eggBattleCreateModal .egg-pick-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

#eggBattleCreateModal .egg-pick-slug {
  color: #c7b7f6;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
}

#eggBattleCreateModal .egg-pick-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#eggBattleCreateModal .egg-pick-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

#eggBattleCreateModal .egg-pick-inspect-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(17, 15, 26, 0.74);
  color: #ddd1ff;
  display: grid;
  place-items: center;
  padding: 0;
}

#eggBattleCreateModal .egg-pick-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#eggBattleCreateModal .egg-pick-name {
  color: #f1ebff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#eggBattleCreateModal .egg-pick-footer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 5px;
}

#eggBattleCreateModal .egg-pick-qty-btn,
#eggBattleCreateModal .egg-pick-add-btn {
  min-height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.44);
  background: rgba(16, 14, 25, 0.88);
  color: #fff;
}

#eggBattleCreateModal .egg-pick-qty-btn:disabled,
#eggBattleCreateModal .egg-pick-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#eggBattleCreateModal .egg-pick-add-btn {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#eggBattleCreateModal .egg-create-actions {
  margin-top: 0;
  padding: 12px;
  border-top: 1px solid var(--eb-border);
  background: rgba(13, 11, 21, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#eggBattleCreateModal .egg-create-actions small {
  color: var(--eb-muted);
  font-size: 0.76rem;
}

#eggBattleCreateModal .egg-create-actions-buttons {
  display: inline-flex;
  gap: 8px;
}

#eggBattleCreateModal .egg-create-actions .btn {
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 120px;
}

#eggBattleCreateModal .egg-create-actions .btn-secondary {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(17, 15, 26, 0.95);
  color: #ebe3ff;
}

#eggBattleCreateModal .egg-create-actions .btn-primary {
  border-color: rgba(139, 92, 246, 0.68);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(18, 15, 27, 0.95));
  color: #fff;
}

@media (max-width: 991.98px) {
  #eggBattleCreateModal .egg-create-layout--clean {
    grid-template-columns: 1fr;
  }

  #eggBattleCreateModal .egg-create-sidebar {
    grid-template-rows: auto;
  }

  #eggBattleCreateModal .egg-round-picks {
    max-height: 25dvh;
  }
}

@media (max-width: 767.98px) {
  #eggBattleCreateModal .egg-create-layout--clean {
    padding: 10px;
    gap: 10px;
  }

  #eggBattleCreateModal .egg-picker-head {
    flex-direction: column;
    align-items: stretch;
  }

  #eggBattleCreateModal .egg-picker-search {
    min-width: 0;
    width: 100%;
  }

  #eggBattleCreateModal .egg-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 36dvh;
  }

  #eggBattleCreateModal .egg-create-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #eggBattleCreateModal .egg-create-actions-buttons {
    width: 100%;
  }

  #eggBattleCreateModal .egg-create-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  #eggBattleCreateModal .egg-mode-grid {
    grid-template-columns: 1fr;
  }

  #eggBattleCreateModal .egg-create-summary {
    grid-template-columns: 1fr;
  }
}
