/* Football Club — tournament team betting */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Teko:wght@600;700&display=swap');

.game-shell.fc-mode {
  max-width: 480px;
  margin: 0 auto;
  background: #061428;
}
.game-shell.fc-mode .game-top {
  display: none;
}
.game-shell.fc-mode .game-stage {
  padding: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100dvh;
  display: block;
}

.fc-screen {
  position: relative;
  min-height: 100dvh;
  color: #fff;
  font-family: Teko, 'Trebuchet MS', sans-serif;
  overflow: hidden;
}
.fc-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fc-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 20, 40, 0.35) 0%, rgba(6, 40, 20, 0.15) 40%, rgba(4, 16, 32, 0.82) 100%);
}
.fc-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: max(6px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  gap: 4px;
}

.fc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fc-top-l,
.fc-top-r {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fc-ico {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.fc-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}
.fc-round {
  font-size: 0.95rem;
  color: #e8f0ff;
}
.fc-ping {
  font-size: 0.78rem;
  color: #4ade80;
}
.fc-locale {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #f5c518;
  background: #0b3d91;
  cursor: pointer;
}

.fc-logo {
  width: min(260px, 78vw);
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.fc-bracket {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.fc-bracket-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fc-flag-sm {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent !important;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.fc-flag-sm.win {
  outline: 2px solid #f5c518;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.7);
}
.fc-trophy-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.fc-trophy-wrap > img:first-child {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent !important;
}
.fc-q {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a7a32;
  border: 2px solid #f5c518;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #f5c518;
  bottom: 0;
  right: 0;
}
.fc-winner-flag {
  position: absolute;
  width: 32px;
  height: 32px;
  bottom: -2px;
  right: -2px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent !important;
  border: 2px solid #f5c518;
}

.fc-timer {
  align-self: center;
  margin-top: 4px;
  padding: 4px 14px;
  border-radius: 8px;
  background: rgba(10, 30, 60, 0.75);
  border: 2px solid #f5c518;
  color: #f5c518;
  font-family: 'Russo One', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.fc-timer.urgent {
  color: #ff5e5e;
  border-color: #ff5e5e;
  animation: fc-pulse 0.6s ease infinite;
}
@keyframes fc-pulse {
  50% {
    transform: scale(1.05);
  }
}

.fc-history {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cfe0ff;
  overflow: hidden;
}
.fc-hist-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 2px;
}
.fc-hist-item {
  position: relative;
  flex: 0 0 auto;
}
.fc-hist-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent !important;
}
.fc-hist-item i {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.5rem;
  background: #ef4444;
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 900;
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.fc-tile {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: #fff;
}
.fc-tile:disabled {
  cursor: default;
  opacity: 0.92;
}
.fc-goal {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0a7a32;
  border: 2px solid #86efac;
  aspect-ratio: 1.05;
  display: grid;
  place-items: center;
}
.fc-goal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  background: transparent !important;
}
.fc-flag {
  position: relative;
  z-index: 1;
  width: 58%;
  height: 58%;
  object-fit: contain;
  background: transparent !important;
  border-radius: 8px;
}
.fc-mult {
  position: absolute;
  z-index: 2;
  bottom: 2px;
  right: 4px;
  font-size: 0.95rem;
  color: #f5c518;
  text-shadow: 0 1px 2px #000;
  font-family: 'Russo One', sans-serif;
}
.fc-tile-pool,
.fc-tile-mine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.78rem;
  margin-top: 2px;
  background: rgba(10, 20, 40, 0.65);
  border-radius: 6px;
  padding: 2px 4px;
}
.fc-tile-mine {
  background: rgba(88, 28, 135, 0.75);
  border: 1px solid #c084fc;
}
.fc-tile-pool img,
.fc-tile-mine img {
  width: 12px;
  height: 12px;
  background: transparent !important;
}
.fc-tile.has-bet .fc-goal {
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.55);
  border-color: #f5c518;
}
.fc-tile.won .fc-goal {
  outline: 2px solid #f5c518;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.7);
}

.fc-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-totals {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
}
.fc-totals img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  background: transparent !important;
}
.fc-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fc-chip {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid #60a5fa;
}
.fc-chip.on {
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #1e3a8a;
  border-color: #fff;
}
.fc-auto {
  margin-left: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #5eead4;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  color: #fff;
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45);
}
.fc-auto.on {
  outline: 2px solid #fff;
  background: linear-gradient(180deg, #f472b6, #be185d);
}
.fc-userbar {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}
.fc-user,
.fc-revenue {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 40, 20, 0.75);
  border: 1px solid #4ade80;
  border-radius: 999px;
  padding: 4px 8px;
}
.fc-user img:first-child {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent !important;
}
.fc-user small,
.fc-revenue small {
  display: block;
  font-size: 0.68rem;
  color: #bbf7d0;
  line-height: 1;
}
.fc-user b,
.fc-revenue b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  color: #fde68a;
}
.fc-user b img,
.fc-revenue b img {
  width: 14px;
  height: 14px;
  background: transparent !important;
}
.fc-plus {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #f5c518;
  color: #1e3a8a;
  font-weight: 900;
  cursor: pointer;
}
.fc-revenue {
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 14px;
}

.fc-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(4, 12, 28, 0.78);
  padding: 16px;
}
.fc-card {
  width: min(92vw, 360px);
  max-height: 80vh;
  overflow: auto;
  background: linear-gradient(180deg, #1e3a8a, #0f172a);
  border: 2px solid #f5c518;
  border-radius: 16px;
  padding: 14px;
}
.fc-card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.fc-card-h h3 {
  margin: 0;
  font-family: 'Russo One', sans-serif;
  color: #f5c518;
}
.fc-card-h button {
  border: none;
  background: #ef4444;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.fc-rules {
  margin: 0;
  padding-left: 18px;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.fc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #e2e8f0;
}
.fc-field select {
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #60a5fa;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
}
.fc-apply {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #1e3a8a;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
}

.fc-result-card {
  width: min(92vw, 360px);
  text-align: center;
  background: linear-gradient(180deg, #1e3a8a, #0f172a);
  border: 2px solid #f5c518;
  border-radius: 18px;
  padding: 16px;
  animation: fc-pop 0.4s ease;
}
.fc-result-trophy {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: transparent !important;
}
.fc-result-flag {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent !important;
  margin: -10px auto 6px;
  display: block;
  border-radius: 50%;
  border: 2px solid #f5c518;
}
.fc-result-card h3 {
  margin: 0 0 10px;
  font-family: 'Russo One', sans-serif;
  color: #f5c518;
}
.fc-result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(30, 58, 138, 0.7);
  border-radius: 12px;
  padding: 10px;
}
.fc-result-stats small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}
.fc-result-stats b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fde68a;
  font-size: 1.1rem;
}
.fc-result-stats img {
  width: 14px;
  height: 14px;
  background: transparent !important;
}
.fc-rank-title {
  margin: 12px 0 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.fc-podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 6px;
  align-items: end;
  height: 90px;
}
.fc-podium > div {
  border-radius: 10px 10px 4px 4px;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  font-family: 'Russo One', sans-serif;
  color: #0f172a;
}
.fc-podium .p1 {
  height: 100%;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
}
.fc-podium .p2 {
  height: 72%;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
}
.fc-podium .p3 {
  height: 58%;
  background: linear-gradient(180deg, #fdba74, #c2410c);
  color: #fff;
}
@keyframes fc-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-height: 720px) {
  .fc-logo {
    width: min(200px, 65vw);
  }
  .fc-bracket {
    max-width: 300px;
  }
  .fc-trophy-wrap {
    width: 56px;
    height: 56px;
  }
}

