/* ==========================================================================
   TOURNAMENT BRACKET STYLES (10 TEAMS SINGLE ELIMINATION) - YABIDEV
   ========================================================================== */

/* ---------- Page Layout & Containers ---------- */
body.bracket-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: default !important;
}

body.bracket-page * {
  cursor: inherit;
}

body.bracket-page a,
body.bracket-page button,
body.bracket-page select,
body.bracket-page [role="button"],
body.bracket-page .tool-btn,
body.bracket-page .match-card,
body.bracket-page .champion-showcase-card,
body.bracket-page .podium-rank-item,
body.bracket-page .winner-choice-btn,
body.bracket-page .score-stepper-btn,
body.bracket-page .modal-close-icon-btn,
body.bracket-page .celebration-btn,
body.bracket-page .celebration-sound-toggle,
body.bracket-page .celebration-close-icon-btn {
  cursor: pointer !important;
}

body.bracket-page input,
body.bracket-page textarea {
  cursor: text !important;
}

body.bracket-page #cursor-dot,
body.bracket-page #cursor-ring {
  display: none !important;
}

.bracket-hero {
  padding-top: 120px;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.bracket-header-card {
  background: rgba(20, 18, 36, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.bracket-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-brand);
}

.bracket-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bracket-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bracket-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.bracket-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 24px;
}

/* Stats Pill Strip */
.bracket-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.b-stat-card {
  background: rgba(14, 12, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.b-stat-label {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.b-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* ---------- Bracket Control Toolbar ---------- */
.bracket-toolbar-wrap {
  position: sticky;
  top: 76px;
  z-index: 10;
  margin-bottom: 24px;
}

.bracket-toolbar {
  background: rgba(14, 12, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.tool-btn.active {
  background: rgba(69, 232, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(69, 232, 212, 0.25);
}

.tool-btn-danger {
  border-color: rgba(255, 92, 138, 0.3);
  color: #ff85a1;
}

.tool-btn-danger:hover {
  background: rgba(255, 92, 138, 0.15);
  border-color: var(--pink);
  color: #fff;
}

.tool-btn-primary {
  background: var(--grad-neon-btn);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.tool-btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.tool-btn-shuffle {
  background: linear-gradient(135deg, rgba(155, 107, 255, 0.22), rgba(255, 184, 77, 0.22));
  border: 1px solid rgba(155, 107, 255, 0.45);
  color: #eeddff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(155, 107, 255, 0.2);
}

.tool-btn-shuffle:hover {
  background: linear-gradient(135deg, rgba(155, 107, 255, 0.38), rgba(255, 184, 77, 0.38));
  border-color: #c4a7ff;
  color: #fff;
  box-shadow: 0 0 22px rgba(155, 107, 255, 0.4);
  transform: translateY(-1px);
}

.tool-btn-export {
  background: linear-gradient(135deg, rgba(69, 232, 212, 0.15), rgba(155, 107, 255, 0.2));
  border: 1px solid rgba(69, 232, 212, 0.4);
  color: #e6fffa;
  box-shadow: 0 0 12px rgba(69, 232, 212, 0.18);
  font-weight: 700;
}

.tool-btn-export:hover {
  background: linear-gradient(135deg, rgba(69, 232, 212, 0.28), rgba(155, 107, 255, 0.35));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(69, 232, 212, 0.35);
  transform: translateY(-1px);
}

@keyframes bracketShufflePulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(0.985); filter: brightness(1.2) hue-rotate(15deg); }
  100% { transform: scale(1); filter: brightness(1); }
}

.bracket-shuffling {
  animation: bracketShufflePulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.admin-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(155, 107, 255, 0.12);
  border: 1px solid rgba(155, 107, 255, 0.35);
  color: #c4a7ff;
}

.admin-mode-pill.active {
  background: rgba(69, 232, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(69, 232, 212, 0.3);
}

.bracket-format-select-wrap {
  display: flex;
  align-items: center;
}

.bracket-format-select {
  background: rgba(20, 18, 36, 0.85);
  border: 1px solid rgba(69, 232, 212, 0.35);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bracket-format-select:focus,
.bracket-format-select:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(69, 232, 212, 0.3);
}

.bracket-format-select option {
  background: #141224;
  color: #fff;
  padding: 8px;
}

/* ---------- Bracket Interactive Viewport ---------- */
.bracket-viewport-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  background: rgba(10, 8, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-bottom: 40px;
}

.bracket-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 30px 60px 30px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) rgba(20, 18, 36, 0.5);
  user-select: none;
}

.bracket-scroll-container:active {
  cursor: grabbing;
}

.bracket-scroll-container::-webkit-scrollbar {
  height: 10px;
}

.bracket-scroll-container::-webkit-scrollbar-track {
  background: rgba(14, 12, 27, 0.8);
  border-radius: 10px;
}

.bracket-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 10px;
}

.bracket-canvas {
  position: relative;
  min-width: max-content;
  transform-origin: top left;
  /* Hindari transition transform agar koordinat SVG & kartu selalu 100% sinkron saat zoom/fit */
}

/* SVG Line Overlay */
.bracket-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.connector-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.connector-path.active {
  stroke: var(--cyan);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 5px rgba(69, 232, 212, 0.6));
}

.connector-path.winner-path {
  stroke: url(#grad-connector-active);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(255, 92, 138, 0.7));
}

.connector-path.loser-path {
  stroke: rgba(255, 184, 77, 0.4);
  stroke-dasharray: 6 4;
  stroke-width: 2;
}

.connector-path.loser-path.active {
  stroke: var(--amber);
  stroke-dasharray: none;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(255, 184, 77, 0.6));
}

/* Dynamic Flex / Grid for Bracket Stages */
.bracket-stages-grid {
  display: flex;
  flex-direction: row;
  gap: 48px;
  position: relative;
  z-index: 2;
  align-items: stretch;
  min-width: max-content;
}

.bracket-stage-col {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  width: 320px;
  flex-shrink: 0;
}

.bracket-stage-col.stage-champion {
  width: 360px;
}

.stage-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: rgba(20, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
}

.stage-header.final-header {
  border-color: rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.08);
}

.stage-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.stage-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.stage-matches-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
  gap: 20px;
}

/* Dynamic stage specific alignments */
.stage-playin .stage-matches-container {
  justify-content: space-between;
  padding: 30px 0;
}

.stage-champion .stage-matches-container {
  justify-content: center;
}

/* ---------- Match Card Styles ---------- */
.match-card {
  background: rgba(20, 18, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 107, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(155, 107, 255, 0.15);
}

.match-card.is-live {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(69, 232, 212, 0.25);
  animation: pulseLiveCard 2.5s infinite ease-in-out;
}

.match-card.is-finished {
  border-color: rgba(255, 255, 255, 0.12);
}

@keyframes pulseLiveCard {
  0%, 100% { border-color: rgba(69, 232, 212, 0.5); }
  50% { border-color: var(--cyan); box-shadow: 0 0 26px rgba(69, 232, 212, 0.4); }
}

.match-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-id-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.match-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-MENUNGGU {
  background: rgba(151, 147, 168, 0.12);
  color: var(--muted);
  border: 1px solid rgba(151, 147, 168, 0.25);
}

.status-MATCH-READY, .status-READY {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.status-BERLANGSUNG {
  background: rgba(69, 232, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(69, 232, 212, 0.4);
}

.status-SELESAI {
  background: rgba(155, 107, 255, 0.15);
  color: #c4a7ff;
  border: 1px solid rgba(155, 107, 255, 0.35);
}

/* Match Team Slot Rows */
.match-teams-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 9px 12px;
  background: rgba(14, 12, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
  min-height: 52px;
  box-sizing: border-box;
}

.team-slot-row.winner {
  background: rgba(69, 232, 212, 0.08);
  border-color: rgba(69, 232, 212, 0.4);
}

.team-slot-row.winner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
}

.team-slot-row.loser {
  opacity: 0.55;
}

.team-slot-row.empty-slot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
}

.team-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.team-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  justify-content: center;
  gap: 3px;
}

.team-seed-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}

.team-seed-pill.winner-seed {
  background: rgba(69, 232, 212, 0.15);
  color: var(--cyan);
}

.team-name-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: block;
  padding-bottom: 1px;
}

.team-name-text.placeholder {
  color: var(--muted-2);
  font-style: italic;
  font-weight: 400;
}

.team-players-text {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  padding-bottom: 2px;
}

.team-players-text .players-icon {
  font-size: 10px;
  opacity: 0.85;
  flex-shrink: 0;
}

.team-players-text .players-names-wrap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.team-slot-row.winner .team-players-text {
  color: rgba(69, 232, 212, 0.95);
}

.team-slot-row.loser .team-players-text {
  color: rgba(151, 147, 168, 0.6);
}

.team-score-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.team-score-badge.winner-score {
  background: rgba(69, 232, 212, 0.2);
  color: var(--cyan);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(69, 232, 212, 0.25);
}

.match-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.quick-edit-hint {
  font-size: 11px;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-card:hover .quick-edit-hint {
  opacity: 1;
}

/* ---------- Champion Podium Card ---------- */
.champion-showcase-card {
  background: linear-gradient(145deg, rgba(30, 24, 56, 0.92), rgba(20, 18, 36, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 184, 77, 0.5);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 184, 77, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.champion-showcase-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.85);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.75), 0 0 55px rgba(255, 184, 77, 0.5), 0 0 85px rgba(255, 92, 138, 0.3);
}

.champion-showcase-card:active {
  transform: translateY(-2px) scale(0.99);
}

.champion-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 184, 77, 0.22), transparent 70%);
  pointer-events: none;
}

.champion-showcase-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.champion-showcase-card:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.trophy-glow-wrap {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-glow-ring {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.4) 0%, transparent 70%);
  animation: pulseGlow 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; }
}

.trophy-icon {
  font-size: 56px;
  filter: drop-shadow(0 0 20px rgba(255, 184, 77, 0.8));
  animation: floatTrophy 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes floatTrophy {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-8px) scale(1.06) rotate(2deg); }
}

.champion-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 4px 12px;
  background: rgba(255, 184, 77, 0.15);
  border: 1px solid rgba(255, 184, 77, 0.4);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.champion-team-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(255, 184, 77, 0.3);
}

.champion-members {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.champion-prize-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.2), rgba(255, 92, 138, 0.2));
  border: 1px solid rgba(255, 184, 77, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #ffe180;
  margin-bottom: 12px;
}

.champion-celebrate-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ffb84d, #ff5c8a);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 92, 138, 0.4);
  animation: celebrateBadgePulse 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.champion-showcase-card:hover .champion-celebrate-hint {
  transform: scale(1.06);
}

@keyframes celebrateBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 92, 138, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 4px 22px rgba(255, 184, 77, 0.7); }
}

/* Bronze Match Card Specific Style */
.match-card.is-bronze-card {
  border-color: rgba(205, 127, 50, 0.45);
  background: linear-gradient(145deg, rgba(26, 20, 32, 0.92), rgba(20, 18, 28, 0.95));
}

.match-card.is-bronze-card:hover {
  border-color: #e59866;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(205, 127, 50, 0.25);
}

.match-card.is-bronze-card .match-id-badge {
  color: #e59866;
}

/* ---------- Top 3 Podium Rankings Box ---------- */
.podium-rankings-box {
  margin-top: 20px;
  width: 100%;
  background: rgba(14, 12, 27, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podium-rank-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c4a7ff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.podium-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.podium-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  min-height: 52px;
  box-sizing: border-box;
}

.podium-rank-item.rank-gold {
  cursor: pointer;
}

.podium-rank-item.rank-gold:hover {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.25);
}

.podium-rank-item.rank-gold:active {
  transform: scale(0.98);
}

.podium-rank-item.rank-gold.has-winner {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

.podium-rank-item.rank-silver.has-winner {
  background: rgba(192, 192, 192, 0.08);
  border-color: rgba(192, 192, 192, 0.4);
}

.podium-rank-item.rank-bronze.has-winner {
  background: rgba(205, 127, 50, 0.12);
  border-color: rgba(205, 127, 50, 0.45);
  box-shadow: 0 0 16px rgba(205, 127, 50, 0.2);
}

.rank-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.rank-badge-gold {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.rank-badge-silver {
  background: rgba(220, 220, 230, 0.2);
  color: #e2e8f0;
  border: 1px solid rgba(220, 220, 230, 0.4);
}

.rank-badge-bronze {
  background: rgba(205, 127, 50, 0.2);
  color: #e59866;
  border: 1px solid rgba(205, 127, 50, 0.4);
}

.rank-team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.rank-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.rank-team-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: block;
  padding-bottom: 1px;
}

.rank-roster-text {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-top: 1px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rank-roster-text .players-icon {
  flex-shrink: 0;
}

.rank-roster-text .players-names-wrap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.podium-rank-item.rank-gold .rank-roster-text {
  color: rgba(255, 215, 0, 0.85);
}

.podium-rank-item.rank-silver .rank-roster-text {
  color: rgba(220, 220, 230, 0.85);
}

.podium-rank-item.rank-bronze .rank-roster-text {
  color: rgba(229, 152, 102, 0.85);
}

.rank-prize-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--amber);
  background: rgba(255, 184, 77, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 184, 77, 0.35);
  flex-shrink: 0;
}

.rank-status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}

.rank-status-tag.bronze {
  color: #e59866;
  background: rgba(205, 127, 50, 0.15);
}

/* ---------- Admin / Edit Match Modal ---------- */
.bracket-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.bracket-modal.open {
  opacity: 1;
  visibility: visible;
}

.bracket-modal-card {
  background: rgba(20, 18, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px 32px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(155, 107, 255, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bracket-modal.open .bracket-modal-card {
  transform: translateY(0) scale(1);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-group h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.modal-title-group p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.modal-close-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-icon-btn:hover {
  background: rgba(255, 92, 138, 0.2);
  color: #fff;
  border-color: var(--pink);
}

/* Modal Team Allocation Helper Box */
.modal-team-allocation-box {
  background: rgba(14, 12, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.allocation-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.allocation-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.allocation-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(69, 232, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(69, 232, 212, 0.35);
}

.allocation-badge.all-assigned {
  background: rgba(155, 107, 255, 0.15);
  color: #c4a7ff;
  border-color: rgba(155, 107, 255, 0.35);
}

.allocation-desc-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.allocation-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 115px;
  overflow-y: auto;
  padding-right: 4px;
}

.allocation-chip {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.allocation-chip.available {
  background: rgba(69, 232, 212, 0.09);
  border-color: rgba(69, 232, 212, 0.28);
  color: #e6fffa;
}

.allocation-chip.available:hover {
  background: rgba(69, 232, 212, 0.22);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.allocation-chip.assigned {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  opacity: 0.65;
  cursor: default;
}

.allocation-chip.current-match {
  background: rgba(155, 107, 255, 0.15);
  border-color: rgba(155, 107, 255, 0.4);
  color: #e9d5ff;
}

.allocation-warning-msg {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 92, 138, 0.12);
  border: 1px solid rgba(255, 92, 138, 0.35);
  color: #ff94b8;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* Match Edit Score Duel Box */
.edit-duel-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(14, 12, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
}

.edit-team-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-team-header {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.edit-team-select {
  width: 100%;
  background: rgba(20, 18, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.edit-team-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(69, 232, 212, 0.2);
}

.score-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.score-stepper-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
}

.score-input-number {
  flex: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  outline: none;
  width: 50px;
}

.score-input-number:focus {
  border-color: var(--cyan);
}

.edit-vs-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--pink);
}

/* Winner Selection Controls */
.modal-field-group {
  margin-bottom: 16px;
}

.modal-label {
  display: block;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.winner-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.winner-choice-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.winner-choice-btn.selected {
  background: rgba(69, 232, 212, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(69, 232, 212, 0.3);
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Toast / Live Banner */
.bracket-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  background: rgba(20, 18, 36, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(69, 232, 212, 0.4);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(69, 232, 212, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13px;
  color: #fff;
}

.bracket-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1024px) {
  .bracket-hero {
    padding-top: 100px;
  }
  .bracket-header-card {
    padding: 24px 20px;
  }
  .bracket-toolbar {
    padding: 10px 14px;
  }
}

@media (max-width: 768px) {
  .bracket-stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .edit-duel-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .edit-vs-separator {
    display: none;
  }
}

/* ==========================================================================
   EPIC CHAMPION VICTORY CELEBRATION MODAL & ANIMATIONS (KEREN LUAR BIASA)
   ========================================================================== */

.champion-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(18, 12, 38, 0.94), rgba(4, 3, 10, 0.98));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px;
}

.champion-celebration-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Background Rotating Sunburst Light Rays */
.celebration-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250vmax;
  height: 250vmax;
  transform: translate(-50%, -50%) rotate(0deg);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 184, 77, 0.06) 0deg 12deg,
    transparent 12deg 24deg,
    rgba(255, 92, 138, 0.04) 24deg 36deg,
    transparent 36deg 48deg,
    rgba(69, 232, 212, 0.05) 48deg 60deg,
    transparent 60deg 72deg
  );
  pointer-events: none;
  animation: rotateSunburst 60s linear infinite;
  z-index: 1;
}

@keyframes rotateSunburst {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ambient Radial Glow Blobs */
.celebration-ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.25) 0%, rgba(255, 92, 138, 0.15) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: ambientFloat 8s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes ambientFloat {
  0% { transform: translate(-10%, -10%) scale(0.9); }
  100% { transform: translate(10%, 10%) scale(1.15); }
}

/* Fullscreen Particle & Fireworks Canvas */
.celebration-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Stage Wrapper */
.celebration-stage-container {
  position: relative;
  z-index: 10;
  max-width: 680px;
  width: 100%;
  margin: auto;
  perspective: 1200px;
}

/* Main Luxury Trophy Card */
.celebration-stage-card {
  position: relative;
  background: linear-gradient(155deg, rgba(32, 22, 60, 0.94), rgba(16, 12, 32, 0.97));
  border: 2px solid rgba(255, 215, 0, 0.65);
  border-radius: 32px;
  padding: 44px 32px 36px;
  text-align: center;
  box-shadow: 
    0 35px 90px rgba(0, 0, 0, 0.85),
    0 0 70px rgba(255, 184, 77, 0.4),
    0 0 120px rgba(255, 92, 138, 0.25),
    inset 0 0 50px rgba(255, 184, 77, 0.12);
  transform: translateY(30px) scale(0.92) rotateX(10deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  overflow: hidden;
}

.champion-celebration-overlay.active .celebration-stage-card {
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
  animation: celebrationCardPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes celebrationCardPop {
  0% { transform: translateY(50px) scale(0.85) rotateX(14deg); opacity: 0; }
  60% { transform: translateY(-8px) scale(1.03) rotateX(-2deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotateX(0deg); opacity: 1; }
}

/* Animated Card Light Sweep */
.celebration-stage-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 215, 0, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 54%,
    transparent 58%
  );
  transform: rotate(20deg);
  animation: shimmerSweep 6s linear infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { transform: rotate(20deg) translateY(-120%); }
  35%, 100% { transform: rotate(20deg) translateY(120%); }
}

/* Top Action Controls inside Card */
.celebration-top-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
}

.celebration-sound-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.celebration-sound-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffe180;
}

.celebration-close-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-close-icon-btn:hover {
  background: rgba(255, 92, 138, 0.3);
  border-color: var(--pink);
  transform: rotate(90deg) scale(1.1);
}

/* Trophy Stage & Energy Halo */
.celebration-trophy-stage {
  position: relative;
  margin: 12px auto 20px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-halo-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.5);
  animation: rotateHalo 12s linear infinite;
  pointer-events: none;
}

.celebration-halo-ring-2 {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 92, 138, 0.35);
  animation: rotateHaloRev 18s linear infinite;
  pointer-events: none;
}

@keyframes rotateHalo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateHaloRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.celebration-trophy-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.55) 0%, rgba(255, 92, 138, 0.25) 50%, transparent 75%);
  filter: blur(15px);
  animation: pulseTrophyHalo 2.5s ease-in-out infinite;
}

@keyframes pulseTrophyHalo {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

.celebration-trophy-icon {
  font-size: 82px;
  filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.9));
  animation: epicTrophyFloat 3.5s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

@keyframes epicTrophyFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-10px) scale(1.08) rotate(-3deg); }
  75% { transform: translateY(-6px) scale(1.05) rotate(3deg); }
}

/* Crown & Grand Title Tag */
.celebration-crown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 92, 138, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  margin-bottom: 14px;
}

.celebration-crown-icon {
  font-size: 18px;
  animation: crownBob 1.5s ease-in-out infinite;
}

@keyframes crownBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-6deg); }
}

.celebration-crown-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffd700;
  text-transform: uppercase;
}

/* Epic Team Champion Title (Keren Luar Biasa) */
.celebration-team-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffe79a 20%,
    #ffc72c 45%,
    #ff608c 70%,
    #45e8d4 95%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGoldShimmer 4s ease infinite;
  filter: drop-shadow(0 4px 18px rgba(255, 215, 0, 0.5));
  word-break: break-word;
}

@keyframes textGoldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Lineup / Roster Card */
.celebration-lineup-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 90%;
}

.celebration-lineup-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.celebration-lineup-names {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.celebration-lineup-names b {
  color: #ffe180;
}

/* Extra Meta Pills (Discord, Game ID, Win Stats) */
.celebration-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.celebration-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.celebration-pill-badge b {
  color: #fff;
}

/* Luxury Prize Pool Showcase */
.celebration-prize-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.18), rgba(255, 92, 138, 0.18));
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 20px;
  padding: 16px 24px;
  margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(255, 184, 77, 0.18);
  overflow: hidden;
}

.celebration-prize-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  animation: shinePrize 3s ease-in-out infinite;
}

@keyframes shinePrize {
  0%, 40% { left: -100%; }
  80%, 100% { left: 200%; }
}

.celebration-prize-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd700;
  margin-bottom: 4px;
}

.celebration-prize-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Action Buttons Group */
.celebration-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.celebration-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.celebration-btn-firework {
  background: linear-gradient(135deg, #ff5c8a, #9b6bff);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 92, 138, 0.4);
}

.celebration-btn-firework:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(255, 92, 138, 0.6);
}

.celebration-btn-firework:active {
  transform: translateY(-1px) scale(0.98);
}

.celebration-btn-audio {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.celebration-btn-audio:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffe180;
  transform: translateY(-2px);
}

.celebration-btn-share {
  background: rgba(69, 232, 212, 0.12);
  border: 1px solid rgba(69, 232, 212, 0.4);
  color: var(--cyan);
}

.celebration-btn-share:hover {
  background: rgba(69, 232, 212, 0.25);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 232, 212, 0.3);
}

.celebration-btn-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted);
}

.celebration-btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.celebration-hint-tap {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
}

/* Responsive adjustments for celebration card */
@media (max-width: 640px) {
  .celebration-stage-card {
    padding: 36px 18px 28px;
    border-radius: 24px;
  }
  .celebration-trophy-stage {
    width: 100px;
    height: 100px;
    margin: 8px auto 14px;
  }
  .celebration-trophy-icon {
    font-size: 60px;
  }
  .celebration-team-title {
    font-size: 26px;
  }
  .celebration-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .celebration-btn {
    width: 100%;
  }
}

/* ==========================================================================
   HD POSTER EXPORT OVERRIDES (ELIMINATE CLIPPED TEXT IN DOWNLOADED IMAGE)
   ========================================================================== */
#tournamentPosterExport {
  box-sizing: border-box !important;
}

#tournamentPosterExport * {
  box-sizing: border-box !important;
}

#tournamentPosterExport .team-name-text,
#tournamentPosterExport .team-players-text,
#tournamentPosterExport .players-names-wrap,
#tournamentPosterExport .rank-team-name,
#tournamentPosterExport .rank-roster-text,
#tournamentPosterExport .team-seed-pill,
#tournamentPosterExport .match-status-pill,
#tournamentPosterExport .match-id-badge,
#tournamentPosterExport .stage-title,
#tournamentPosterExport .stage-subtitle,
#tournamentPosterExport .champion-team-title,
#tournamentPosterExport .champion-members {
  overflow: visible !important;
  text-overflow: clip !important;
  clip-path: none !important;
  word-break: keep-all !important;
}

#tournamentPosterExport .team-name-text {
  line-height: 1.45 !important;
  padding-bottom: 2px !important;
  display: block !important;
}

#tournamentPosterExport .team-players-text {
  line-height: 1.5 !important;
  padding-bottom: 3px !important;
  margin-top: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #94a3b8 !important;
}

#tournamentPosterExport .team-slot-row {
  overflow: visible !important;
  min-height: 52px !important;
  padding: 8px 12px 9px 12px !important;
}

#tournamentPosterExport .team-info-col {
  overflow: visible !important;
  gap: 3px !important;
  justify-content: center !important;
}

#tournamentPosterExport .team-meta-left {
  overflow: visible !important;
  gap: 8px !important;
}

#tournamentPosterExport .match-card {
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #141224 !important;
}

#tournamentPosterExport .podium-rankings-box {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #0e0c1b !important;
}

#tournamentPosterExport .podium-rank-item {
  overflow: visible !important;
  min-height: 54px !important;
  padding: 10px 14px !important;
}

#tournamentPosterExport .quick-edit-hint {
  display: none !important;
}

/* ==========================================================================
   ADMIN PASSWORD GATEWAY & LOCK SCREEN STYLES
   ========================================================================== */
body.admin-locked {
  overflow: hidden !important;
}

body.admin-locked main,
body.admin-locked header,
body.admin-locked footer,
body.admin-locked .blob {
  filter: blur(12px) brightness(0.5);
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.4s ease;
}

.admin-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(30, 24, 54, 0.94) 0%, rgba(7, 5, 16, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.admin-lock-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-lock-card {
  width: 100%;
  max-width: 460px;
  background: rgba(20, 18, 36, 0.92);
  border: 1px solid rgba(255, 92, 138, 0.3);
  border-radius: 28px;
  padding: 38px 32px 32px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(155, 107, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: lockCardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-lock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
}

@keyframes lockCardEntrance {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.admin-lock-card.shake {
  animation: lockShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes lockShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 0, 0); }
  40%, 60% { transform: translate3d(7px, 0, 0); }
}

.admin-lock-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-lock-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.35) 0%, transparent 70%);
  animation: lockGlowPulse 2.5s infinite ease-in-out;
}

@keyframes lockGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.9; }
}

.admin-lock-icon {
  font-size: 40px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(255, 92, 138, 0.6));
  transition: transform 0.3s ease;
}

.admin-lock-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff5c8a;
  background: rgba(255, 92, 138, 0.12);
  border: 1px solid rgba(255, 92, 138, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.admin-lock-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.admin-lock-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 24px;
}

.admin-lock-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-lock-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-lock-input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  opacity: 0.6;
  pointer-events: none;
}

.admin-lock-input {
  width: 100%;
  background: rgba(10, 8, 20, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 44px 13px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.admin-lock-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(69, 232, 212, 0.25);
  background: rgba(14, 12, 27, 0.95);
}

.admin-lock-input.is-error {
  border-color: #ff5c8a !important;
  box-shadow: 0 0 16px rgba(255, 92, 138, 0.3) !important;
}

.admin-lock-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 15px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.admin-lock-eye-btn:hover {
  opacity: 1;
}

.admin-lock-error {
  background: rgba(255, 92, 138, 0.15);
  border: 1px solid rgba(255, 92, 138, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #ff80a5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  animation: fadeIn 0.25s ease;
}

.admin-lock-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9333ea 0%, #e11d48 55%, #f43f5e 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
}

.admin-lock-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.5);
  filter: brightness(1.08);
}

.admin-lock-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-lock-footer-text {
  font-size: 12px;
  color: #64748b;
}

.admin-lock-public-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(69, 232, 212, 0.08);
  border: 1px solid rgba(69, 232, 212, 0.25);
  transition: all 0.2s ease;
}

.admin-lock-public-link:hover {
  background: rgba(69, 232, 212, 0.16);
  border-color: rgba(69, 232, 212, 0.45);
  transform: translateY(-1px);
}

/* ---------- SPECTATOR PUBLIC VIEW OVERRIDES ---------- */
.bracket-public-page .match-card {
  cursor: default !important;
}

.bracket-public-page .match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 107, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bracket-public-page .quick-edit-hint {
  display: none !important;
}

.bracket-public-page .champion-showcase-card {
  cursor: pointer !important;
}

.spectator-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(69, 232, 212, 0.12);
  border: 1px solid rgba(69, 232, 212, 0.35);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.spectator-sync-time {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 8px;
}

.tool-btn-public-link {
  border-color: rgba(69, 232, 212, 0.35);
  color: var(--cyan);
  background: rgba(69, 232, 212, 0.08);
}

.tool-btn-public-link:hover {
  background: rgba(69, 232, 212, 0.18);
  border-color: var(--cyan);
}

.tool-btn-lock {
  border-color: rgba(255, 92, 138, 0.35);
  color: #ff5c8a;
  background: rgba(255, 92, 138, 0.08);
}

.tool-btn-lock:hover {
  background: rgba(255, 92, 138, 0.2);
  border-color: #ff5c8a;
}



