/* Game board. Composition only: floodlights, pedestal, glossy tiles, podium, rank bars. */

.is-home::before {
  background:
    radial-gradient(70px 28px at 8% 6%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(180px 70px at 6% 11%, rgba(150, 210, 255, 0.75), transparent 72%),
    radial-gradient(46px 18px at 18% 9%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(60px 22px at 93% 5%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(160px 64px at 96% 10%, rgba(80, 160, 255, 0.55), transparent 72%),
    radial-gradient(1.5px 1.5px at 22% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 16%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 62% 24%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 38%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 36%, rgba(255, 255, 255, 0.7), transparent),
    #050811;
}
.is-home::after { content: none; }
.pitch-hero { position: relative; overflow: hidden; border-radius: 20px; }
.hero-stadium {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
  pointer-events: none;
}
.pitch-hero > :not(.hero-stadium) { position: relative; z-index: 1; }
.art-boots {
  width: min(240px, 78%);
  height: auto;
  display: block;
  margin: 0 auto 8px;
  border-radius: 16px;
}
.art-tile {
  width: auto;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
  background: transparent;
}
.art-glove {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
}
.scene {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  margin: 0 0 12px;
}
h1 .art-glove { vertical-align: middle; margin-inline-end: 6px; }
.is-league::before,
.is-inner::before {
  background:
    radial-gradient(1.5px 1.5px at 12% 14%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 24% 32%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 48% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 26%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 86% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 36% 58%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(640px 280px at 50% -10%, rgba(0, 72, 179, 0.4), transparent 70%),
    #050811;
}
.is-admin::before { background: none; }
.is-admin::after { content: none; }

.is-home .top {
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.15), rgba(5, 8, 17, 0.72));
  box-shadow: none;
}
.is-home .brand-logo { height: 48px; box-shadow: 0 0 12px var(--gold-glow); }
.is-home .hero { padding-top: 0; }
.is-home .hero-logo {
  width: auto;
  max-width: min(280px, 72%);
  max-height: 72px;
  margin-bottom: 8px;
  border-width: 1px;
}
.is-home .slogan { font-size: 22px; margin-bottom: 10px; }
.is-home .hero-actions { align-items: center; gap: 6px; }
.is-home .btn-play {
  width: min(100%, 560px);
  min-height: 78px;
  font-size: 30px;
  border-radius: 22px;
  border: 2px solid #d9f8ff;
  background: linear-gradient(180deg, #e8fbff 0%, #7af4ff 55%, #3ec8ff 100%);
  color: #041428;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    0 6px 0 #0a3f9a,
    0 16px 28px rgba(0, 180, 255, 0.5);
}
.watch-link {
  color: var(--ice);
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.prize-stage { max-width: 440px; margin: 16px auto 0; text-align: center; }
.boot-float { position: relative; z-index: 1; margin-bottom: -22px; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.5)); }
.boot-pair { width: min(250px, 78%); height: auto; display: block; margin: 0 auto; }
.plinth {
  position: relative;
  padding: 36px 16px 14px;
  border-radius: 20px;
  border: 2px solid rgba(122, 244, 255, 0.85);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(0, 210, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #1d4ed8 0%, #0b1d66 58%, #071433 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 0 #06102a,
    0 0 28px rgba(0, 120, 255, 0.45);
}
.prize-stage .prize-kicker { margin: 0; letter-spacing: 0.08em; }
.prize-num {
  margin: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 0.95;
  color: #e8fbff;
  text-shadow: 0 3px 0 #06305f, 0 0 16px rgba(122, 244, 255, 0.75);
}
.prize-num span { font-size: 18px; margin-inline-start: 4px; }
.prize-stage h2 { margin: 2px 0 0; font-size: 22px; }
.prize-rule { margin: 10px 0 0; color: var(--ice); font-weight: 700; }

.is-home .tile-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.gloss-tile {
  min-height: 156px;
  padding: 10px 6px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b438c 0%, #0d2260 58%, #081433 100%);
  border: 2px solid #7af4ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -10px 16px rgba(0, 0, 0, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.35);
}
.gloss-tile h2 { font-size: 14px; line-height: 1.2; }
.gloss-tile p { font-size: 11px; line-height: 1.35; margin: 0; }
.tile-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}
.tile-icon .game-icon { width: 58px; height: 58px; }
.tile-icon .star-glyph {
  font-size: 58px;
  line-height: 1;
  color: #e8fbff;
  text-shadow: 0 0 12px #7af4ff, 0 0 22px rgba(26, 108, 255, 0.9);
}
.tile-icon .crown svg { width: 58px; height: 44px; }

.contest-list { display: grid; gap: 10px; }
.contest-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d5fe0 0%, #0c318a 100%);
  border: 1px solid rgba(160, 210, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 14px rgba(0, 0, 0, 0.35);
}
.contest-row.is-move { background: linear-gradient(180deg, #1460c8, #0a2a78); }
.contest-row.is-save {
  background: linear-gradient(180deg, #2a3548, #141a24);
  border-color: #6d7c90;
}
.contest-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.contest-copy strong { font-size: 16px; line-height: 1.25; }
.contest-art { display: flex; align-items: center; gap: 4px; color: #d7ecff; }
.contest-art .game-icon { width: 40px; height: 40px; }
.contest-row.is-save .contest-art { color: #7ec8ff; }
.shield {
  width: 46px;
  height: 52px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: #0b0f19;
  background: linear-gradient(180deg, #e8fbff, #1a6cff);
  clip-path: polygon(50% 0, 100% 16%, 88% 78%, 50% 100%, 12% 78%, 0 16%);
}
.shield-2 { background: linear-gradient(180deg, #f7f9fc, #9eacbe); }
.shield-3 { background: linear-gradient(180deg, #d5dbe3, #6e7a8a); }

.stage {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 8px;
  margin: 8px 0 16px;
}
.pedestal { text-align: center; min-width: 0; }
.pedestal-2 { grid-column: 1; }
.pedestal-1 { grid-column: 2; }
.pedestal-3 { grid-column: 3; }
.medal {
  width: 74px;
  height: 74px;
  margin: 26px auto 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, #d5dde8 42%, #8d9aab);
  box-shadow: 0 0 0 4px #d5dde8, 0 8px 14px rgba(0, 0, 0, 0.4);
}
.medal-1 {
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at 35% 30%, #e8fbff, #3ec8ff 46%, #0a4ea8);
  box-shadow: 0 0 0 4px #7af4ff, 0 0 20px rgba(0, 210, 255, 0.7);
}
.medal-3 {
  background: radial-gradient(circle at 35% 30%, #d9e2ff, #6a7cff 50%, #24306a);
  box-shadow: 0 0 0 4px #6a7cff, 0 8px 14px rgba(0, 0, 0, 0.4);
}
.medal .crown {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}
.medal .player-mark { width: 62px; height: 62px; color: #fff; }
.medal-1 .player-mark { color: #041428; }
.pedestal-score { margin: 0; font-size: 18px; font-weight: 900; }
.pedestal-name { margin: 0; }
.pedestal .who-name { font-size: 13px; }
.pedestal .shnaton, .pedestal-role { font-size: 11px; }
.pedestal-role { margin: 2px 0 0; }
.stem {
  margin-top: 8px;
  border-radius: 14px 14px 8px 8px;
  padding: 8px 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  font-weight: 900;
  font-size: 13px;
}
.pedestal-1 .stem {
  min-height: 104px;
  color: #0b0f19;
  background: linear-gradient(180deg, #9af6ff, #1a6cff);
  box-shadow: 0 10px 0 #08306e, inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.pedestal-2 .stem {
  min-height: 76px;
  color: #151a22;
  background: linear-gradient(180deg, #f4f7fb, #aeb8c6);
  box-shadow: 0 10px 0 #667488, inset 0 1px 0 #fff;
}
.pedestal-3 .stem {
  min-height: 58px;
  color: #fff;
  background: linear-gradient(180deg, #8ea0ff, #2a3d9a);
  box-shadow: 0 10px 0 #15204f, inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.stem .total-gold { color: inherit; text-shadow: none; font-size: 12px; }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-bar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #17356e, #0a1736);
  border: 1px solid rgba(110, 180, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 14px rgba(0, 100, 220, 0.22);
}
.rank-bar.is-first {
  background: linear-gradient(90deg, #1d4ed8, #102a62);
  box-shadow: 0 0 18px rgba(40, 140, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.rank-bar.is-second { border-color: rgba(224, 230, 237, 0.7); }
.rank-bar.is-third { border-color: rgba(205, 127, 50, 0.8); }
.rank-bar .shield {
  width: 36px;
  height: 36px;
  clip-path: none;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  background: #10284f;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.rank-bar.is-first .shield { background: linear-gradient(180deg, #e8fbff, #1a6cff); color: #041428; }
.rank-who { display: flex; gap: 8px; align-items: center; min-width: 0; }
.rank-who strong { display: block; font-size: 15px; }
.rank-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; color: var(--ice); font-size: 11px; }
.rank-bar .star-count { font-size: 20px; white-space: nowrap; }
.rank-bar .mini-avatar { flex: 0 0 auto; }
.rank-bar .player-mark { width: 28px; height: 28px; color: var(--gold); }
.avatar.placeholder .player-mark { width: 72px; height: 72px; color: var(--gold); }
.is-league .board-top {
  background: rgba(6, 14, 36, 0.78);
  border: 1px solid rgba(122, 244, 255, 0.45);
  box-shadow: 0 0 28px rgba(0, 160, 255, 0.22);
}
.is-league .lock-banner,
.is-league .bonus-legend { box-shadow: none; }

body:not(.is-admin) .panel,
body:not(.is-admin) .clip {
  background: linear-gradient(180deg, #10244f, #0a1329);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 18px rgba(0, 0, 0, 0.28);
}
.share .star-count.big { font-size: 64px; }
.share .btn.gold,
.share .recruit .btn {
  width: 100%;
  min-height: 64px;
  font-size: 22px;
  border-radius: 18px;
}
.share .recruit { text-align: center; }
.share-card { border: 1px solid rgba(122, 244, 255, 0.45); }
.is-admin .btn.gold {
  background: #16325c;
  color: #fff;
  border: 1px solid #3d6ea5;
  box-shadow: none;
}
.sky {
  position: absolute;
  inset: -8px 0 auto;
  height: 150px;
  pointer-events: none;
  z-index: 0;
}
.sky svg { width: 100%; height: 140px; filter: drop-shadow(0 0 12px rgba(122, 244, 255, 0.85)); }
.pitch-hero { position: relative; }
.pitch-hero > :not(.sky) { position: relative; z-index: 1; }

.is-admin .top { background: #0a1329; box-shadow: inset 0 -1px 0 #243656; }
.is-admin .panel,
.is-admin .kpi,
.is-admin .clip {
  background: #0a1329;
  box-shadow: none;
  border-color: #243656;
}

@media (min-width: 800px) {
  .is-home .slogan { font-size: 32px; }
  .is-home .btn-play { font-size: 34px; min-height: 84px; }
  .gloss-tile h2 { font-size: 18px; }
  .gloss-tile p { font-size: 13px; }
  .stage { max-width: 720px; margin-inline: auto; }
}

/* One surface: same metal, same light, same radius, objects in the content. */
.pitch-hero,
.stage-scene {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(186, 230, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 28px rgba(0, 0, 0, 0.32);
}
.hero-stadium,
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  z-index: 0;
  pointer-events: none;
}
.stage-copy {
  position: relative;
  z-index: 1;
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.12) 0%, rgba(5, 10, 24, 0.62) 78%, rgba(5, 10, 24, 0.82) 100%);
}
.pitch-hero > :not(.hero-stadium) { position: relative; z-index: 1; }
body:not(.is-admin) .gloss-tile,
body:not(.is-admin) .contest-row,
body:not(.is-admin) .contest-row.is-move,
body:not(.is-admin) .contest-row.is-save,
body:not(.is-admin) .rank-bar,
body:not(.is-admin) .rank-bar.is-first,
body:not(.is-admin) .plinth,
body:not(.is-admin) .panel,
body:not(.is-admin) .clip,
body:not(.is-admin) .star-hero,
body:not(.is-admin) .winners li,
body:not(.is-admin) .share-card,
.is-league .board-top {
  border-radius: 20px;
  border: 1px solid rgba(186, 230, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 52, 120, 0.94), rgba(8, 18, 44, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(0, 0, 0, 0.28);
}
body:not(.is-admin) .btn { border-radius: 20px; }
.art-boots,
.art-tile,
.art-glove,
.art-lock,
.crown img,
.spin-star img {
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 12px 14px rgba(0, 12, 32, 0.55)) drop-shadow(0 0 12px rgba(122, 244, 255, 0.32));
}
.art-boots { width: min(210px, 72%); margin: 8px auto -16px; }
.crown { position: relative; }
.crown img { width: 72px; height: 72px; object-fit: contain; display: block; }
.art-lock { width: 48px; height: 48px; object-fit: contain; display: block; }
.chip .art-lock { width: 28px; height: 28px; }
.medal,
.medal-1,
.medal-3 {
  width: auto;
  height: auto;
  margin: 40px auto 4px;
  background: transparent;
  box-shadow: none;
}
.medal .player-mark,
.avatar.placeholder .player-mark,
.mini-avatar.placeholder .player-mark {
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 8px 10px rgba(0, 12, 32, 0.45));
}
.medal .player-mark { width: 76px; height: 76px; box-shadow: 0 0 0 2px rgba(186, 230, 255, 0.75); }
.avatar.placeholder { background: transparent; box-shadow: 0 0 0 2px rgba(186, 230, 255, 0.75); }
.avatar.placeholder .player-mark { width: 100px; height: 100px; }
.mini-avatar.placeholder { background: transparent; overflow: hidden; }
.mini-avatar.placeholder .player-mark { width: 36px; height: 36px; }
.medal .crown { top: -46px; }
.load-cover {
  background:
    radial-gradient(circle at 50% 42%, rgba(90, 190, 255, 0.28), transparent 26%),
    rgba(5, 8, 17, 0.9);
}
.load-cover-text { margin: 0; color: #e8fbff; font-weight: 900; font-size: 18px; }
.pitch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.12), rgba(5, 8, 17, 0.5));
}
.is-admin .panel,
.is-admin .kpi,
.is-admin .clip {
  background: #0a1329;
  border-color: #243656;
  box-shadow: none;
}
.is-admin .btn.gold {
  background: #16325c;
  color: #fff;
  border: 1px solid #3d6ea5;
  box-shadow: none;
}
