/* ALOA WorldCup Contest - centralised production stylesheet */
:root {
      --aloa-red: #d70d2f;
      --aloa-red-dark: #a90725;
      --aloa-green: #59aa43;
      --aloa-green-dark: #32762d;
      --sun: #ffd36d;
      --sky: #62c7d8;
      --night: #251724;
      --night-2: #3a2030;
      --sand: #ffe8b8;
      --cream: #fff9ee;
      --card: rgba(255, 250, 238, .92);
      --card-2: rgba(255, 255, 255, .88);
      --ink: #2f2430;
      --muted: #7a6974;
      --line: rgba(75, 42, 50, .13);
      --shadow: 0 18px 42px rgba(42, 18, 27, .22);
      --shadow-soft: 0 10px 24px rgba(42, 18, 27, .12);
      --radius-xl: 30px;
      --radius-lg: 24px;
      --radius-md: 18px;
    }

    * { box-sizing: border-box; }

    body {
      min-height: 100vh;
      margin: 0;
      color: var(--ink);
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at 18% 0%, rgba(255,211,109,.35), transparent 25%),
        radial-gradient(circle at 90% 14%, rgba(89,170,67,.28), transparent 24%),
        radial-gradient(circle at 22% 90%, rgba(215,13,47,.23), transparent 24%),
        linear-gradient(180deg, #321d2d 0%, #4b2636 30%, #fff1c7 31%, #fff8e8 58%, #e8f8dc 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      opacity: .34;
      background:
        radial-gradient(circle at 20px 20px, rgba(255,255,255,.34) 0 2px, transparent 2px),
        radial-gradient(circle at 80px 80px, rgba(255,211,109,.30) 0 2px, transparent 2px);
      background-size: 120px 120px;
      mix-blend-mode: screen;
    }

    a { color: inherit; text-decoration: none; }

    .wc-shell {
      position: relative;
      z-index: 1;
      width: min(100%, 1120px);
      margin: 0 auto;
      padding: 8px 10px 42px;
    }

    .wc-topbar { margin-bottom: 12px; }

    .wc-topbar-inner {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 52px;
      padding: 6px 8px;
      border-radius: 18px;
      background: rgba(255, 249, 238, .84);
      border: 1px solid rgba(255,255,255,.7);
      box-shadow: 0 8px 22px rgba(42,18,27,.16);
      backdrop-filter: blur(14px);
    }

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

    .wc-brand-logo-wrap {
      width: 104px;
      height: 40px;
      flex: 0 0 104px;
      display: flex;
      align-items: center;
    }

    .wc-brand-logo {
      max-width: 104px;
      max-height: 40px;
      object-fit: contain;
      display: block;
    }

    .wc-brand-text { display: none; min-width: 0; }
    .wc-brand-title { display: block; font-size: .85rem; line-height: 1; font-weight: 950; letter-spacing: -.04em; }
    .wc-brand-sub { display: block; margin-top: 2px; font-size: .66rem; font-weight: 850; color: var(--muted); white-space: nowrap; }

    .wc-nav {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .wc-nav a,
    .wc-nav button {
      width: 38px;
      height: 38px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--ink);
      background: #fff8ed;
      border: 1px solid rgba(75,42,50,.10);
      box-shadow: 0 5px 12px rgba(42,18,27,.08);
      font-weight: 900;
      transition: transform .16s ease, background .16s ease, color .16s ease;
    }

    .wc-nav a:hover,
    .wc-nav a:focus-visible,
    .wc-nav button:hover,
    .wc-nav button:focus-visible {
      transform: translateY(-1px) rotate(-1deg);
      background: var(--aloa-red);
      color: white;
    }

    .wc-nav-label { display: none; }

    .wc-card,
    .wc-soft-card {
      background: var(--card);
      border: 1px solid rgba(255,255,255,.68);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .wc-card { border-radius: var(--radius-xl); }
    .wc-soft-card {
      border-radius: var(--radius-lg);
      background: var(--card-2);
      border-color: var(--line);
      box-shadow: var(--shadow-soft);
    }

    .wc-card-inner,
    .wc-soft-card-inner { padding: 18px; }

    .wc-hero {
      position: relative;
      color: var(--ink);
      background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.7), transparent 18%),
        radial-gradient(circle at 92% 10%, rgba(255,211,109,.38), transparent 22%),
        linear-gradient(135deg, #fff8e7 0%, #ffd8de 46%, #dff4d4 100%);
    }

    .wc-hero::after {
      content: "";
      position: absolute;
      right: -46px;
      bottom: -46px;
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 50% 50%, #fff 0 24%, transparent 25%),
        conic-gradient(from 0deg, #26323b 0 10%, #fff 10% 20%, #26323b 20% 30%, #fff 30% 40%, #26323b 40% 50%, #fff 50% 60%, #26323b 60% 70%, #fff 70% 80%, #26323b 80% 90%, #fff 90% 100%);
      opacity: .10;
      pointer-events: none;
    }

    .wc-display {
      margin: 0;
      font-weight: 950;
      letter-spacing: -.075em;
      line-height: .94;
      color: var(--ink);
    }

    .wc-title {
      margin: 0;
      font-weight: 950;
      letter-spacing: -.05em;
      line-height: .98;
      color: var(--ink);
    }

    .wc-muted { color: var(--muted); }

    .wc-pill {
      display: inline-flex;
      align-items: center;
      gap: .42rem;
      padding: .46rem .76rem;
      border-radius: 999px;
      font-size: .75rem;
      font-weight: 950;
      line-height: 1;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
    }

    .wc-pill.red { background: rgba(215,13,47,.12); color: var(--aloa-red); }
    .wc-pill.green { background: rgba(89,170,67,.15); color: var(--aloa-green-dark); }
    .wc-pill.sand { background: rgba(255,211,109,.25); color: #8c5e15; }
    .wc-pill.ink { background: rgba(47,36,48,.08); color: var(--ink); }

    .wc-btn {
      min-height: 50px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .52rem;
      padding: .8rem 1rem;
      border-radius: 18px;
      border: 0;
      font-weight: 950;
      text-decoration: none;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .wc-btn:hover,
    .wc-btn:focus-visible { transform: translateY(-1px) scale(1.01); }

    .wc-btn-primary {
      color: white;
      background: linear-gradient(135deg, var(--aloa-red), #f05a70);
      box-shadow: 0 12px 24px rgba(215,13,47,.25);
    }
    .wc-btn-primary:hover,
    .wc-btn-primary:focus-visible { color: white; }

    .wc-btn-secondary {
      color: white;
      background: linear-gradient(135deg, var(--aloa-green), #83ca70);
      box-shadow: 0 12px 24px rgba(89,170,67,.22);
    }
    .wc-btn-secondary:hover,
    .wc-btn-secondary:focus-visible { color: white; }

    .wc-btn-light {
      color: var(--ink);
      background: #fff8ed;
      border: 1px solid var(--line);
      box-shadow: 0 8px 18px rgba(42,18,27,.10);
    }

    .wc-btn-ghost {
      color: var(--ink);
      background: rgba(255,255,255,.55);
      border: 1px dashed rgba(47,36,48,.20);
    }

    .wc-grid,
    .wc-grid-2,
    .wc-grid-3,
    .wc-grid-4 { display: grid; gap: 12px; }

    .wc-section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .wc-section-title {
      margin: 0;
      font-size: 1.15rem;
      font-weight: 950;
      letter-spacing: -.04em;
    }

    .wc-stat-card {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      padding: 14px;
      background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,248,237,.86));
      border: 1px solid var(--line);
      box-shadow: var(--shadow-soft);
    }

    .wc-stat-card::after {
      content: "";
      position: absolute;
      right: -22px;
      top: -22px;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      background: rgba(215,13,47,.10);
    }

    .wc-stat-label {
      position: relative;
      z-index: 1;
      color: var(--muted);
      font-size: .76rem;
      font-weight: 850;
      margin-bottom: 4px;
    }

    .wc-stat-value {
      position: relative;
      z-index: 1;
      display: block;
      font-size: 1.85rem;
      font-weight: 950;
      line-height: 1;
      letter-spacing: -.06em;
    }

    .wc-rule-card,
    .wc-row-card {
      border-radius: 22px;
      padding: 15px;
      background: rgba(255,248,237,.90);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-soft);
    }

    .wc-rule-score {
      font-size: 1.9rem;
      font-weight: 950;
      letter-spacing: -.07em;
      color: var(--aloa-red);
      line-height: 1;
      margin-bottom: 7px;
    }

    .wc-badge-icon {
      width: 44px;
      height: 44px;
      border-radius: 16px;
      background: #fff8ed;
      border: 1px solid var(--line);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 18px rgba(42,18,27,.08);
    }

    .wc-badge-icon img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      display: block;
    }

    .wc-empty {
      padding: 18px;
      text-align: center;
      border-radius: 20px;
      border: 1px dashed rgba(47,36,48,.16);
      color: var(--muted);
      background: rgba(255,255,255,.48);
    }

    .wc-form-shell { display: grid; gap: 12px; }

    .form-control,
    .form-select {
      min-height: 52px;
      border-radius: 16px;
      border: 1px solid rgba(47,36,48,.14);
      box-shadow: none;
      background: #fffdf8;
    }

    .form-control:focus,
    .form-select:focus {
      border-color: rgba(215,13,47,.42);
      box-shadow: 0 0 0 .25rem rgba(215,13,47,.11);
    }

    .form-check-input:checked {
      background-color: var(--aloa-red);
      border-color: var(--aloa-red);
    }

    .alert {
      border: 0;
      border-radius: 18px;
    }

    .wc-ticker {
      overflow: hidden;
      border-radius: 20px;
      background: rgba(255,248,237,.82);
      border: 1px solid var(--line);
      padding: 9px 0;
    }

    .wc-ticker-track {
      display: flex;
      width: max-content;
      gap: 9px;
      padding-left: 10px;
      animation: ticker 32s linear infinite;
    }

    .wc-ticker:hover .wc-ticker-track { animation-play-state: paused; }

    .wc-ticker-item {
      display: inline-flex;
      align-items: center;
      gap: .42rem;
      white-space: nowrap;
      border-radius: 999px;
      padding: .56rem .84rem;
      background: #fffdf8;
      border: 1px solid var(--line);
      box-shadow: 0 7px 16px rgba(42,18,27,.08);
      font-weight: 850;
      font-size: .8rem;
    }

    .wc-score-input {
      text-align: center;
      font-size: 1.12rem;
      font-weight: 950;
      padding-left: .35rem;
      padding-right: .35rem;
    }

    .wc-score-separator {
      text-align: center;
      color: var(--muted);
      font-weight: 950;
    }

    .wc-toast {
      position: fixed;
      left: 50%;
      bottom: 18px;
      z-index: 90;
      transform: translateX(-50%) translateY(20px);
      opacity: 0;
      pointer-events: none;
      max-width: calc(100vw - 24px);
      padding: .75rem 1rem;
      border-radius: 999px;
      background: var(--night);
      color: white;
      box-shadow: 0 14px 30px rgba(0,0,0,.25);
      font-weight: 900;
      transition: opacity .2s ease, transform .2s ease;
      text-align: center;
      font-size: .9rem;
    }

    .wc-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .wc-confetti {
      position: fixed;
      top: -10px;
      width: 8px;
      height: 14px;
      border-radius: 3px;
      pointer-events: none;
      z-index: 80;
      animation: confettiFall 900ms ease-in forwards;
    }

    .wc-offcanvas {
      background:
        radial-gradient(circle at 90% 10%, rgba(255,211,109,.32), transparent 24%),
        linear-gradient(180deg, #fff8e7, #ffe3e8 58%, #e4f5da);
      color: var(--ink);
    }

    .wc-menu-list {
      display: grid;
      gap: 10px;
    }

    .wc-menu-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px;
      border-radius: 20px;
      background: rgba(255,255,255,.72);
      border: 1px solid var(--line);
      font-weight: 950;
      box-shadow: var(--shadow-soft);
    }

    .wc-menu-link i {
      width: 40px;
      height: 40px;
      border-radius: 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--aloa-red);
      color: white;
      flex-shrink: 0;
    }

    .wc-rule-link {
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .5rem;
      padding: .7rem .9rem;
      border-radius: 16px;
      background: rgba(255,248,237,.72);
      border: 1px solid var(--line);
      color: var(--ink);
      font-weight: 900;
      box-shadow: var(--shadow-soft);
    }

    .wc-rule-link:hover,
    .wc-rule-link:focus-visible {
      color: var(--aloa-red);
      background: #fff8ed;
    }

    .wc-footer {
      position: relative;
      z-index: 1;
      width: min(100%, 1120px);
      margin: 4px auto 0;
      padding: 0 10px 16px;
    }

    .wc-footer-inner {
      border-radius: 22px;
      padding: 14px 16px;
      background: rgba(255,249,238,.78);
      border: 1px solid rgba(255,255,255,.64);
      box-shadow: 0 8px 22px rgba(42,18,27,.12);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: .86rem;
      font-weight: 750;
      text-align: center;
    }

    .wc-footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 18px;
    }

    .wc-footer-links a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 850;
    }

    .wc-footer-links a:hover,
    .wc-footer-links a:focus-visible {
      color: var(--aloa-red);
    }

    .wc-fade-up { animation: fadeUp .38s ease both; }
    .wc-pop { animation: pop .28s ease both; }
    .fw-black { font-weight: 950 !important; }
    .min-w-0 { min-width: 0; }

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

    @keyframes pop {
      0% { transform: scale(.96); }
      55% { transform: scale(1.03); }
      100% { transform: scale(1); }
    }

    @keyframes ticker {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    @keyframes confettiFall {
      to { transform: translateY(105vh) rotate(360deg); opacity: 0; }
    }



    .wc-hero-grid {
      display: grid;
      gap: 16px;
      align-items: center;
    }

    .wc-premium-art {
      position: relative;
      z-index: 1;
    }

    .wc-premium-art img {
      display: block;
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
      border-radius: 26px;
      border: 1px solid rgba(255,255,255,.68);
      box-shadow: 0 18px 34px rgba(42,18,27,.18);
      object-fit: cover;
      aspect-ratio: 4 / 3;
    }

    .wc-premium-art.small img {
      max-width: 340px;
    }

    @media (min-width: 768px) {
      .wc-hero-grid {
        grid-template-columns: 1.08fr .92fr;
      }
    }

    @media (min-width: 576px) {
      .wc-shell { padding: 10px 12px 46px; }
      .wc-brand-text { display: block; }
      .wc-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .wc-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
      .wc-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    }

    @media (min-width: 768px) {
      .wc-shell { padding: 12px 16px 58px; }
      .wc-topbar-inner { min-height: 56px; }
      .wc-brand-logo-wrap { width: 124px; flex-basis: 124px; }
      .wc-brand-logo { max-width: 124px; max-height: 46px; }
      .wc-nav a,
      .wc-nav button {
        width: auto;
        min-width: 90px;
        padding: 0 .76rem;
        gap: .42rem;
      }
      .wc-nav-label { display: inline; font-size: .76rem; }
      .wc-card-inner, .wc-soft-card-inner { padding: 22px; }
      .wc-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
    }

    @media (prefers-reduced-motion: reduce) {
      .wc-fade-up,
      .wc-pop,
      .wc-ticker-track,
      .wc-confetti { animation: none !important; }
      .wc-btn,
      .wc-nav a,
      .wc-nav button,
      .wc-toast { transition: none; }
    }

/* ===== calendar.html ===== */
.calendar-card { padding:15px; }
  .calendar-date {
    width:54px; height:54px; border-radius:18px; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:linear-gradient(135deg, var(--aloa-red), #f05a70); color:white; box-shadow:var(--shadow-soft); flex-shrink:0;
  }
  .calendar-date .day { font-size:1.2rem; font-weight:950; line-height:1; }
  .calendar-date .month { font-size:.66rem; font-weight:900; text-transform:uppercase; opacity:.9; margin-top:3px; }
  .calendar-title { font-weight:950; letter-spacing:-.03em; line-height:1.05; }
  .calendar-meta { color:var(--muted); font-size:.8rem; font-weight:750; margin-top:3px; }


/* ===== landing.html ===== */
.home-hero { display: grid; gap: 16px; }
  .home-actions { display: grid; gap: 10px; }

  .home-art-frame {
    position: relative;
    border-radius: 30px;
    padding: 8px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.28)),
      radial-gradient(circle at 20% 12%, rgba(255,211,109,.38), transparent 30%),
      radial-gradient(circle at 92% 92%, rgba(215,13,47,.18), transparent 34%);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 18px 34px rgba(42,18,27,.20);
    overflow: hidden;
  }

  .home-art-frame::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
      radial-gradient(circle, rgba(255,255,255,.55) 0 2px, transparent 2px);
    background-size: 34px 34px;
    opacity: .22;
    transform: rotate(-8deg);
    pointer-events: none;
  }

  .home-art img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 28px rgba(42,18,27,.22));
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.72);
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .contest-banner {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 12% 20%, rgba(255,255,255,.42), transparent 24%),
      linear-gradient(135deg, rgba(215,13,47,.98), rgba(255,83,110,.94) 48%, rgba(89,170,67,.92));
    color: #fff;
    box-shadow: 0 16px 30px rgba(215,13,47,.22);
    border: 1px solid rgba(255,255,255,.28);
    overflow: hidden;
    position: relative;
  }

  .contest-banner::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -52px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background:
      radial-gradient(circle at center, #fff 0 22%, transparent 23%),
      conic-gradient(from 0deg, #26323b 0 10%, #fff 10% 20%, #26323b 20% 30%, #fff 30% 40%, #26323b 40% 50%, #fff 50% 60%, #26323b 60% 70%, #fff 70% 80%, #26323b 80% 90%, #fff 90% 100%);
    opacity: .14;
  }

  .contest-banner-title {
    position: relative;
    z-index: 1;
    font-size: 1.02rem;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: 0;
  }

  .contest-banner-text {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.88);
    font-size: .88rem;
    font-weight: 760;
    line-height: 1.45;
    margin: 0;
  }

  .contest-banner .wc-pill {
    position: relative;
    z-index: 1;
    width: fit-content;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
  }

  .worldcup-info { display: grid; gap: 10px; }

  .home-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-stats-row .wc-stat-card {
    min-height: 118px;
  }

  .home-stats-row .wc-stat-label {
    font-size: .72rem;
    line-height: 1.15;
  }

  .home-stats-row .wc-stat-value {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
  }

  .info-chip-card {
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,248,237,.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .info-number {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.06em;
    color: var(--aloa-red);
  }

  .mini-match { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 14px; }
  .mini-match-title { font-weight: 950; letter-spacing: -.03em; }

  .rule-intro-card {
    padding: 16px;
    border-radius: 24px;
    background:
      radial-gradient(circle at 94% 8%, rgba(255,211,109,.26), transparent 28%),
      rgba(255,248,237,.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .rule-intro-title {
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin: 0 0 6px 0;
  }

  .wc-rule-card {
    min-height: 176px;
    cursor: default;
    transition: transform .16s ease, box-shadow .16s ease;
    position: relative;
    overflow: hidden;
  }

  .wc-rule-card:hover { transform: translateY(-2px) rotate(-.4deg); }

  .wc-rule-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(215,13,47,.08);
    pointer-events: none;
  }

  .how-title { display:flex; align-items:center; gap:10px; position: relative; z-index: 1; }

  .rule-example {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 10px;
    padding: .42rem .6rem;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(47,36,48,.10);
    color: var(--ink);
    font-size: .76rem;
    font-weight: 850;
    position: relative;
    z-index: 1;
  }

  .podium-feature {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,239,170,.72), transparent 28%),
      radial-gradient(circle at 12% 84%, rgba(215,13,47,.22), transparent 28%),
      radial-gradient(circle at 94% 70%, rgba(89,170,67,.25), transparent 28%),
      linear-gradient(135deg, #fff8e2 0%, #ffd9aa 38%, #ffe4ea 74%, #e5f8dd 100%);
    box-shadow: 0 22px 46px rgba(42,18,27,.24);
    border: 1px solid rgba(255,255,255,.72);
  }

  .podium-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 14% 22%, rgba(255,255,255,.88) 0 2px, transparent 2px),
      radial-gradient(circle at 54% 12%, rgba(255,211,109,.78) 0 3px, transparent 3px),
      radial-gradient(circle at 86% 36%, rgba(215,13,47,.24) 0 2px, transparent 2px),
      radial-gradient(circle at 32% 74%, rgba(89,170,67,.28) 0 2px, transparent 2px);
    background-size: 64px 64px;
    opacity: .44;
    pointer-events: none;
  }

  .podium-feature::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -70px;
    width: 540px;
    height: 220px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.58), transparent 68%);
    pointer-events: none;
  }

  .podium-feature-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    padding: 18px;
  }

  .podium-feature-head {
    display: grid;
    gap: 10px;
  }

  .podium-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    padding: .5rem .78rem;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.72);
    color: #8c5e15;
    font-weight: 950;
    font-size: .78rem;
    box-shadow: 0 8px 18px rgba(42,18,27,.08);
  }

  .podium-feature-title {
    margin: 0;
    font-size: clamp(1.75rem, 7vw, 3.35rem);
    font-weight: 950;
    letter-spacing: -.075em;
    line-height: .88;
    color: var(--ink);
  }

  .podium-feature-text {
    margin: 0;
    max-width: 620px;
    color: rgba(47,36,48,.74);
    font-size: .98rem;
    font-weight: 780;
    line-height: 1.5;
  }

  .podium-arena {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 9px;
    align-items: end;
    min-height: 250px;
  }

  .podium-player {
    position: relative;
    text-align: center;
    min-width: 0;
  }

  .podium-glow {
    position: absolute;
    left: 50%;
    bottom: 38px;
    width: 118px;
    height: 118px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.8), rgba(255,211,109,.18) 56%, transparent 70%);
    pointer-events: none;
  }

  .podium-player.first .podium-glow {
    width: 170px;
    height: 170px;
    bottom: 54px;
    background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,211,109,.35) 52%, transparent 72%);
  }

  .podium-medal {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #fff4f4);
    border: 4px solid rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 1.05rem;
    box-shadow: 0 12px 26px rgba(42,18,27,.16);
    overflow: hidden;
  }

  .podium-player.first .podium-medal {
    width: 94px;
    height: 94px;
    border-color: rgba(255,211,109,.95);
    box-shadow: 0 18px 34px rgba(255,166,55,.34);
  }

  .podium-crown {
    width: 54px;
    height: 54px;
  }

  .podium-step {
    position: relative;
    z-index: 1;
    padding: 14px 9px;
    border-radius: 26px 26px 14px 14px;
    border: 1px solid rgba(255,255,255,.64);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,232,238,.94));
    box-shadow: 0 14px 26px rgba(42,18,27,.14);
    overflow: hidden;
  }

  .podium-step::after {
    content: "";
    position: absolute;
    inset: auto -20px -40px -20px;
    height: 76px;
    background: rgba(255,255,255,.26);
    border-radius: 50%;
    pointer-events: none;
  }

  .podium-player.first .podium-step {
    min-height: 210px;
    background: linear-gradient(180deg, #fffdf1, #ffd982);
    box-shadow: 0 18px 34px rgba(255,166,55,.28);
  }

  .podium-player.second .podium-step { min-height: 170px; }
  .podium-player.third .podium-step { min-height: 150px; }

  .podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    margin-bottom: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--ink);
    font-weight: 950;
    font-size: .86rem;
    position: relative;
    z-index: 1;
  }

  .podium-name {
    position: relative;
    z-index: 1;
    font-size: .98rem;
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.02;
    word-break: break-word;
  }

  .podium-player.first .podium-name {
    font-size: 1.12rem;
  }

  .podium-points {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: var(--aloa-red);
    font-size: 1.08rem;
    font-weight: 950;
  }

  .podium-extra {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: rgba(47,36,48,.64);
    font-size: .76rem;
    font-weight: 800;
  }

  .podium-feature-cta {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,255,255,.52);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 10px 22px rgba(42,18,27,.10);
  }

  .podium-feature-cta strong {
    display: block;
    font-weight: 950;
    letter-spacing: -.03em;
  }

  .podium-feature-cta span {
    display: block;
    color: rgba(47,36,48,.72);
    font-size: .86rem;
    font-weight: 760;
    margin-top: 2px;
  }

  .podium-empty {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.58);
    border: 1px dashed rgba(47,36,48,.16);
    color: rgba(47,36,48,.72);
    font-weight: 800;
    text-align: center;
  }

  @media (min-width: 768px) {
    .home-hero { grid-template-columns: 1.08fr .92fr; align-items: center; }
    .home-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .contest-banner { grid-template-columns: 1fr auto; align-items: center; }
    .worldcup-info { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .podium-feature-inner { grid-template-columns: .72fr 1.28fr; align-items: center; padding: 24px; }
    .podium-feature-cta { grid-template-columns: 1fr auto; align-items: center; }
  }

  @media (max-width: 390px) {
    .podium-arena { gap: 5px; }
    .podium-medal { width: 56px; height: 56px; }
    .podium-player.first .podium-medal { width: 78px; height: 78px; }
    .podium-step { padding: 12px 6px; }
    .podium-name { font-size: .82rem; }
    .podium-player.first .podium-name { font-size: .92rem; }
    .podium-points { font-size: .9rem; }
  }


/* ===== leaderboard.html ===== */
.rank-hero { display: grid; gap: 14px; }
  .rank-hero-art {
    display: flex;
    justify-content: center;
  }
  .rank-hero-frame {
    width: min(100%, 310px);
    border-radius: 28px;
    padding: 8px;
    background: rgba(255,248,237,.72);
    border: 1px solid rgba(255,255,255,.68);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }
  .rank-hero-frame img {
    display: block;
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(42,18,27,.10);
  }
  .my-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
  .big-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
  .tower { text-align: center; }
  .avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px;
    background: linear-gradient(135deg, #fff, #fff2f4);
    border: 5px solid rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-soft); font-weight: 950; font-size: 1.16rem; overflow: hidden;
  }
  .avatar.first { width: 90px; height: 90px; border-color: rgba(255,205,110,.68); }
  .pedestal {
    border-radius: 28px 28px 14px 14px; padding: 13px 9px;
    background: linear-gradient(180deg, #fff, #fff0f2);
    border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  }
  .pedestal.first { min-height: 205px; background: linear-gradient(180deg, #fff8ea, #ffe1a4); }
  .pedestal.second { min-height: 160px; }
  .pedestal.third { min-height: 142px; }
  .pedestal-rank {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 52px; height: 32px; border-radius: 999px;
    background: rgba(255,255,255,.74); font-weight: 950; font-size: .84rem; margin-bottom: 8px;
  }
  .pedestal-name { font-weight: 950; letter-spacing: -.03em; line-height: 1.04; word-break: break-word; }
  .pedestal-points { font-weight: 950; color: var(--aloa-red); margin-top: 6px; }
  .rank-row {
    display: grid; grid-template-columns: 52px minmax(0,1fr) auto;
    gap: 11px; align-items: center; padding: 12px;
  }
  .rank-position {
    width: 42px; height: 42px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(215,13,47,.09); color: var(--aloa-red); font-weight: 950;
  }
  .rank-name { font-weight: 950; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rank-meta { color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: 2px; }
  .rank-points { text-align: right; font-weight: 950; color: var(--aloa-red); }
  .rank-points span { display: block; color: var(--muted); font-size: .72rem; }
  @media (min-width: 768px) { .rank-hero { grid-template-columns: 1.08fr .82fr; align-items: center; } }


/* ===== player_home.html ===== */
.player-top { display: grid; gap: 14px; }
  .player-hero { display: grid; gap: 14px; }
  .player-art img { display: block; width: 100%; max-width: 380px; margin: 0 auto; filter: drop-shadow(0 16px 26px rgba(42,18,27,.18)); border-radius: 26px; border: 1px solid rgba(255,255,255,.68); aspect-ratio: 4 / 3; object-fit: cover; }
  .match-card { padding: 15px; transition: transform .16s ease, box-shadow .16s ease; }
  .match-card:hover { transform: translateY(-2px); }
  .match-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .match-title { font-weight: 950; font-size: 1.04rem; letter-spacing: -.04em; line-height: 1.02; }
  .match-meta { color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: 4px; }
  .score-row { display: grid; grid-template-columns: minmax(0,1fr) 58px 14px 58px minmax(0,1fr); gap: .38rem; align-items: center; }
  .team-name { font-weight: 900; line-height: 1.05; font-size: .86rem; }
  .team-name.right { text-align: right; }
  .match-footer { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  @media (min-width: 768px) {
    .player-top { grid-template-columns: 1.12fr .9fr; align-items: start; }
    .player-hero { grid-template-columns: 1.1fr .82fr; align-items: center; }
  }


/* ===== prizes.html ===== */
.prize-hero { display:grid; gap:14px; }
  .prize-art img { width:100%; max-width:380px; display:block; margin:0 auto; filter: drop-shadow(0 18px 28px rgba(42,18,27,.18)); border-radius:26px; border:1px solid rgba(255,255,255,.68); aspect-ratio:4 / 3; object-fit:cover; }
  .prize-card {
    position: relative;
    padding: 18px;
    min-height: 170px;
    background:
      radial-gradient(circle at 90% 10%, rgba(255,211,109,.28), transparent 26%),
      linear-gradient(135deg, rgba(255,248,237,.96), rgba(255,226,232,.86));
  }
  .prize-ribbon {
    display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .7rem; border-radius:999px;
    background: var(--aloa-red); color:white; font-weight:950; font-size:.78rem; margin-bottom:12px;
  }
  .prize-icon { width:64px; height:64px; border-radius:22px; background:#fff8ed; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-soft); margin-bottom:12px; }
  .prize-icon i { font-size:1.8rem; color:var(--aloa-red); }
  @media (min-width:768px){ .prize-hero{grid-template-columns:1.1fr .8fr; align-items:center;} }


/* ===== rules.html ===== */
.rules-list { display:grid; gap:12px; }
  .rule-block { padding:16px; }
  .rule-number {
    width:38px; height:38px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center;
    background:var(--aloa-red); color:white; font-weight:950; flex-shrink:0;
  }


/* ===== teams.html ===== */
.team-grid { display:grid; gap:12px; }
  .team-card { padding:14px; position:relative; overflow:hidden; }
  .team-card::after {
    content:""; position:absolute; right:-24px; top:-24px; width:86px; height:86px; border-radius:50%;
    background:rgba(215,13,47,.08);
  }
  .team-badge {
    width:54px; height:54px; border-radius:18px; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg, #fff, #ffe5e9); color:var(--aloa-red); font-weight:950; font-size:1.2rem;
    box-shadow:var(--shadow-soft); flex-shrink:0;
  }
  .team-name { font-weight:950; letter-spacing:-.03em; line-height:1.05; }
  .team-meta { color:var(--muted); font-size:.8rem; font-weight:750; margin-top:3px; }
  @media (min-width:576px){ .team-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
  @media (min-width:992px){ .team-grid{grid-template-columns:repeat(3,minmax(0,1fr));} }


/* ===== verify_sent.html ===== */
.rank-hero { display: grid; gap: 14px; }
  .rank-hero-art img { display: block; width: 100%; max-width: 380px; margin: 0 auto; border-radius: 26px; border: 1px solid rgba(255,255,255,.68); box-shadow: 0 18px 34px rgba(42,18,27,.18); aspect-ratio: 4 / 3; object-fit: cover; }
  .my-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
  .big-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
  .tower { text-align: center; }
  .avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px;
    background: linear-gradient(135deg, #fff, #fff2f4);
    border: 5px solid rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-soft); font-weight: 950; font-size: 1.16rem; overflow: hidden;
  }
  .avatar.first { width: 90px; height: 90px; border-color: rgba(255,205,110,.68); }
  .pedestal {
    border-radius: 28px 28px 14px 14px; padding: 13px 9px;
    background: linear-gradient(180deg, #fff, #fff0f2);
    border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  }
  .pedestal.first { min-height: 205px; background: linear-gradient(180deg, #fff8ea, #ffe1a4); }
  .pedestal.second { min-height: 160px; }
  .pedestal.third { min-height: 142px; }
  .pedestal-rank {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 52px; height: 32px; border-radius: 999px;
    background: rgba(255,255,255,.74); font-weight: 950; font-size: .84rem; margin-bottom: 8px;
  }
  .pedestal-name { font-weight: 950; letter-spacing: -.03em; line-height: 1.04; word-break: break-word; }
  .pedestal-points { font-weight: 950; color: var(--aloa-red); margin-top: 6px; }
  .rank-row {
    display: grid; grid-template-columns: 52px minmax(0,1fr) auto;
    gap: 11px; align-items: center; padding: 12px;
  }
  .rank-position {
    width: 42px; height: 42px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(215,13,47,.09); color: var(--aloa-red); font-weight: 950;
  }
  .rank-name { font-weight: 950; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rank-meta { color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: 2px; }
  .rank-points { text-align: right; font-weight: 950; color: var(--aloa-red); }
  .rank-points span { display: block; color: var(--muted); font-size: .72rem; }
  @media (min-width: 768px) { .rank-hero { grid-template-columns: 1.08fr .82fr; align-items: center; } }


/* ===== Production unified additions ===== */
.hero-art-frame,
.wc-image-frame {
  position: relative;
  border-radius: 30px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.28)),
    radial-gradient(circle at 20% 12%, rgba(255,211,109,.38), transparent 30%),
    radial-gradient(circle at 92% 92%, rgba(215,13,47,.18), transparent 34%);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 18px 34px rgba(42,18,27,.20);
  overflow: hidden;
}
.hero-art-frame::before,
.wc-image-frame::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0 2px, transparent 2px);
  background-size: 34px 34px;
  opacity: .22;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-art-frame img,
.wc-image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.72);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.home-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.home-stats-row .wc-stat-card { min-height: 118px; }
.home-stats-row .wc-stat-label { font-size: .72rem; line-height: 1.15; }
.home-stats-row .wc-stat-value { font-size: clamp(1.55rem, 9vw, 2.25rem); }

/* Leaderboard V2 */
.leader-hero-grid { display: grid; gap: 16px; align-items: center; }
.leader-hero-art { display: flex; justify-content: center; }
.leader-hero-art .wc-image-frame { width: min(100%, 360px); }
.leader-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.leader-podium-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,239,170,.72), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(215,13,47,.22), transparent 28%),
    radial-gradient(circle at 94% 70%, rgba(89,170,67,.25), transparent 28%),
    linear-gradient(135deg, #fff8e2 0%, #ffd9aa 38%, #ffe4ea 74%, #e5f8dd 100%);
  box-shadow: 0 22px 46px rgba(42,18,27,.24);
  border: 1px solid rgba(255,255,255,.72);
}
.leader-podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.88) 0 2px, transparent 2px),
    radial-gradient(circle at 54% 12%, rgba(255,211,109,.78) 0 3px, transparent 3px),
    radial-gradient(circle at 86% 36%, rgba(215,13,47,.24) 0 2px, transparent 2px),
    radial-gradient(circle at 32% 74%, rgba(89,170,67,.28) 0 2px, transparent 2px);
  background-size: 64px 64px;
  opacity: .44;
  pointer-events: none;
}
.leader-podium-inner { position: relative; z-index: 1; padding: 18px; }
.leader-podium-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.leader-podium-title { margin: 0; font-size: clamp(1.45rem, 5vw, 2.6rem); font-weight: 950; letter-spacing: -.06em; line-height: .95; }
.leader-podium-sub { margin-top: 6px; color: rgba(47,36,48,.72); font-size: .9rem; font-weight: 760; line-height: 1.45; }
.leader-arena { display: grid; grid-template-columns: 1fr 1.13fr 1fr; gap: 9px; align-items: end; min-height: 250px; }
.leader-player { position: relative; text-align: center; min-width: 0; }
.leader-glow { position: absolute; left: 50%; bottom: 38px; width: 118px; height: 118px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.8), rgba(255,211,109,.18) 56%, transparent 70%); pointer-events: none; }
.leader-player.first .leader-glow { width: 170px; height: 170px; bottom: 54px; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,211,109,.35) 52%, transparent 72%); }
.leader-medal { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(135deg, #fff, #fff4f4); border: 4px solid rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-weight: 950; font-size: 1.05rem; box-shadow: 0 12px 26px rgba(42,18,27,.16); overflow: hidden; }
.leader-player.first .leader-medal { width: 94px; height: 94px; border-color: rgba(255,211,109,.95); box-shadow: 0 18px 34px rgba(255,166,55,.34); }
.leader-crown { width: 54px; height: 54px; }
.leader-step { position: relative; z-index: 1; padding: 14px 9px; border-radius: 26px 26px 14px 14px; border: 1px solid rgba(255,255,255,.64); background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,232,238,.94)); box-shadow: 0 14px 26px rgba(42,18,27,.14); overflow: hidden; }
.leader-player.first .leader-step { min-height: 210px; background: linear-gradient(180deg, #fffdf1, #ffd982); box-shadow: 0 18px 34px rgba(255,166,55,.28); }
.leader-player.second .leader-step { min-height: 170px; }
.leader-player.third .leader-step { min-height: 150px; }
.leader-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 32px; margin-bottom: 9px; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--ink); font-weight: 950; font-size: .86rem; position: relative; z-index: 1; }
.leader-name { position: relative; z-index: 1; font-size: .98rem; font-weight: 950; letter-spacing: -.04em; line-height: 1.02; word-break: break-word; }
.leader-player.first .leader-name { font-size: 1.12rem; }
.leader-points { position: relative; z-index: 1; margin-top: 8px; color: var(--aloa-red); font-size: 1.08rem; font-weight: 950; }
.leader-extra { position: relative; z-index: 1; margin-top: 7px; color: rgba(47,36,48,.64); font-size: .76rem; font-weight: 800; }
.leader-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px; }
.leader-position { width: 42px; height: 42px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(215,13,47,.09); color: var(--aloa-red); font-weight: 950; }
.leader-row-name { font-weight: 950; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-row-meta { color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: 2px; }
.leader-row-points { text-align: right; font-weight: 950; color: var(--aloa-red); }
.leader-row-points span { display: block; color: var(--muted); font-size: .72rem; }
.auth-card-image img { width: 100%; max-width: 340px; border-radius: 26px; }
@media (min-width: 768px) { .leader-hero-grid { grid-template-columns: 1.08fr .82fr; } }
@media (max-width: 390px) {
  .leader-arena { gap: 5px; }
  .leader-medal { width: 56px; height: 56px; }
  .leader-player.first .leader-medal { width: 78px; height: 78px; }
  .leader-step { padding: 12px 6px; }
  .leader-name { font-size: .82rem; }
  .leader-player.first .leader-name { font-size: .92rem; }
  .leader-points { font-size: .9rem; }
}



/* =========================================================
   Premium SVG flags
   ========================================================= */
.wc-team-line {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
  vertical-align: middle;
}

.wc-match-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: .22rem;
  color: var(--muted);
  font-weight: 950;
  opacity: .75;
}

.wc-flag {
  --flag-w: 30px;
  --flag-h: 20px;
  width: var(--flag-w);
  height: var(--flag-h);
  border-radius: 6px;
  object-fit: cover;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow:
    0 4px 10px rgba(42, 18, 27, .14),
    inset 0 0 0 1px rgba(255,255,255,.38);
  border: 1px solid rgba(47,36,48,.10);
  background: #fff;
}

.wc-flag-small {
  --flag-w: 24px;
  --flag-h: 16px;
  border-radius: 5px;
}

.wc-flag-large {
  --flag-w: 54px;
  --flag-h: 36px;
  border-radius: 12px;
}

.wc-flag-orb {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.72), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,248,237,.66));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(42,18,27,.12);
  overflow: hidden;
}

.wc-flag-orb .wc-flag {
  width: 52px;
  height: 34px;
}

.wc-flag-wave {
  transform-origin: left center;
  animation: wcFlagWave 3.2s ease-in-out infinite;
  will-change: transform;
}

.wc-flag-wave:nth-child(2n) {
  animation-delay: .35s;
}

.wc-team-name {
  min-width: 0;
  word-break: break-word;
}

@keyframes wcFlagWave {
  0%, 100% {
    transform: perspective(240px) rotateY(0deg) translateY(0);
  }
  20% {
    transform: perspective(240px) rotateY(-8deg) translateY(-1px);
  }
  40% {
    transform: perspective(240px) rotateY(5deg) translateY(0);
  }
  60% {
    transform: perspective(240px) rotateY(-5deg) translateY(-1px);
  }
  80% {
    transform: perspective(240px) rotateY(3deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-flag-wave {
    animation: none !important;
  }
}


/* =========================================================
   HOTFIX — Player home + premium flags
   À coller à la fin de static/aloa_worldcup/css/contest.css
   ========================================================= */

.pronos-hero {
  display: grid;
  gap: 16px;
}

.pronos-hero-art {
  position: relative;
  border-radius: 28px;
  padding: 8px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,211,109,.38), transparent 30%),
    radial-gradient(circle at 92% 92%, rgba(215,13,47,.18), transparent 34%),
    rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 18px 34px rgba(42,18,27,.18);
  overflow: hidden;
}

.pronos-hero-art img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.72);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pronos-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.pronos-dashboard .wc-stat-card {
  min-height: 112px;
}

.pronos-dashboard .wc-stat-label {
  font-size: .72rem;
  line-height: 1.15;
}

.pronos-dashboard .wc-stat-value {
  font-size: clamp(1.55rem, 8vw, 2.2rem);
}

.pronos-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.pronos-progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(47,36,48,.10);
}

.pronos-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aloa-red), var(--sun));
  transition: width .35s ease;
}

.pronos-progress-text {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 6%, rgba(255,211,109,.22), transparent 28%),
    rgba(255,248,237,.92);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 12px 26px rgba(42,18,27,.11);
}

.match-card.is-validated {
  background:
    radial-gradient(circle at 96% 6%, rgba(89,170,67,.20), transparent 28%),
    rgba(238,250,230,.94);
}

.match-card.is-urgent {
  box-shadow: 0 14px 30px rgba(215,13,47,.20);
}

.match-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.match-title {
  margin: 0;
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-size: 1rem;
}

.match-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.match-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .62rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(47,36,48,.08);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
}

.match-side {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.mini-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  padding: 0 .7rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.62), transparent 32%),
    rgba(47,36,48,.08);
  color: var(--ink);
  border: 1px solid rgba(47,36,48,.10);
  font-weight: 950;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mini-timer.is-soon {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.62), transparent 32%),
    rgba(255,211,109,.28);
  color: #8a5c0f;
}

.mini-timer.is-hot {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(135deg, var(--aloa-red), #f05a70);
  color: #fff;
  box-shadow: 0 10px 20px rgba(215,13,47,.22);
  animation: timerPulse 1s ease-in-out infinite;
}

.mini-timer.is-closed {
  background: rgba(47,36,48,.10);
  color: var(--muted);
  animation: none;
  box-shadow: none;
}

.toggle-prono-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: var(--aloa-red);
  color: #fff;
  box-shadow: 0 10px 20px rgba(215,13,47,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-prono-btn i {
  transition: transform .18s ease;
}

.match-card.is-open .toggle-prono-btn i {
  transform: rotate(90deg);
}

.prono-panel {
  display: none;
  padding: 0 14px 14px;
}

.match-card.is-open .prono-panel {
  display: block;
}

.prono-panel-inner {
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,211,109,.22), transparent 30%),
    rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(47,36,48,.04);
}

.prediction-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.prediction-team {
  position: relative;
  min-width: 0;
  border-radius: 24px;
  padding: 12px 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,211,109,.26), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,248,237,.78));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(42,18,27,.10);
  text-align: center;
  overflow: hidden;
}

.prediction-team::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(215,13,47,.07);
  pointer-events: none;
}

.team-card-head {
  position: relative;
  z-index: 1;
}

.team-label {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.team-name {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1.04;
  word-break: break-word;
}

.score-control {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 34px;
  gap: 5px;
  align-items: center;
}

.score-btn {
  width: 34px;
  height: 36px;
  border: 0;
  border-radius: 13px;
  background: var(--aloa-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(215,13,47,.20);
  transition: transform .12s ease, box-shadow .12s ease;
}

.score-btn:active {
  transform: scale(.94);
}

.score-btn.score-minus {
  background: rgba(47,36,48,.12);
  color: var(--ink);
  box-shadow: none;
}

.score-input-game {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 17px;
  background: #fff8ed;
  color: var(--ink);
  text-align: center;
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -.06em;
  box-shadow:
    inset 0 0 0 1px rgba(47,36,48,.08),
    0 8px 16px rgba(42,18,27,.06);
}

.score-input-game:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 2px rgba(215,13,47,.35),
    0 0 0 .25rem rgba(215,13,47,.10);
}

.prediction-versus {
  display: flex;
  align-items: center;
  justify-content: center;
}

.versus-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.92), transparent 28%),
    linear-gradient(135deg, #2f2430, #4b2636);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(42,18,27,.20),
    inset 0 0 0 3px rgba(255,255,255,.18);
  border: 2px solid rgba(255,211,109,.7);
}

.versus-orb span {
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.match-card.is-open .prediction-team {
  animation: predictionPop .22s ease both;
}

.match-card.is-open .prediction-team:nth-child(3) {
  animation-delay: .04s;
}

.prono-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.prono-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prono-hint {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(47,36,48,.08);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}

.save-prono-btn {
  width: 100%;
}

.live-strip-card {
  background:
    radial-gradient(circle at 92% 10%, rgba(255,211,109,.26), transparent 28%),
    rgba(255,248,237,.88);
}

.history-card {
  padding: 14px;
}

.history-grid {
  display: grid;
  gap: 10px;
}

.result-score-line {
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

/* Premium SVG flags */
.wc-team-line {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
  vertical-align: middle;
}

.wc-match-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: .22rem;
  color: var(--muted);
  font-weight: 950;
  opacity: .75;
}

.wc-flag {
  --flag-w: 30px;
  --flag-h: 20px;
  width: var(--flag-w);
  height: var(--flag-h);
  border-radius: 6px;
  object-fit: cover;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow:
    0 4px 10px rgba(42, 18, 27, .14),
    inset 0 0 0 1px rgba(255,255,255,.38);
  border: 1px solid rgba(47,36,48,.10);
  background: #fff;
}

.wc-flag-small {
  --flag-w: 24px;
  --flag-h: 16px;
  border-radius: 5px;
}

.wc-flag-large {
  --flag-w: 54px;
  --flag-h: 36px;
  border-radius: 12px;
}

.wc-flag-orb {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.72), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,248,237,.66));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(42,18,27,.12);
  overflow: hidden;
}

.wc-flag-orb .wc-flag {
  width: 52px;
  height: 34px;
}

.wc-flag-wave {
  transform-origin: left center;
  animation: wcFlagWave 3.2s ease-in-out infinite;
  will-change: transform;
}

.wc-flag-wave:nth-child(2n) {
  animation-delay: .35s;
}

.wc-team-name {
  min-width: 0;
  word-break: break-word;
}

@keyframes wcFlagWave {
  0%, 100% {
    transform: perspective(240px) rotateY(0deg) translateY(0);
  }
  20% {
    transform: perspective(240px) rotateY(-8deg) translateY(-1px);
  }
  40% {
    transform: perspective(240px) rotateY(5deg) translateY(0);
  }
  60% {
    transform: perspective(240px) rotateY(-5deg) translateY(-1px);
  }
  80% {
    transform: perspective(240px) rotateY(3deg) translateY(0);
  }
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes predictionPop {
  from {
    opacity: .65;
    transform: translateY(5px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-flag-wave {
    animation: none !important;
  }
}

@media (min-width: 768px) {
  .pronos-hero {
    grid-template-columns: 1.1fr .82fr;
    align-items: center;
  }

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

  .prono-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .save-prono-btn {
    width: auto;
    min-width: 220px;
  }
}

@media (max-width: 430px) {
  .match-summary {
    grid-template-columns: minmax(0,1fr);
  }

  .match-side {
    justify-items: start;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .prediction-game {
    grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr);
    gap: 5px;
  }

  .prediction-team {
    padding: 10px 6px;
    border-radius: 20px;
  }

  .team-name {
    font-size: .76rem;
    min-height: 34px;
  }

  .prediction-versus .versus-orb {
    width: 42px;
    height: 42px;
  }

  .score-control {
    grid-template-columns: 30px minmax(0,1fr) 30px;
    gap: 4px;
  }

  .score-btn {
    width: 30px;
    height: 34px;
    border-radius: 11px;
  }

  .score-input-game {
    min-height: 50px;
    font-size: 1.5rem;
  }

  .wc-flag-large {
    --flag-w: 42px;
    --flag-h: 28px;
    border-radius: 10px;
  }

  .wc-flag-orb {
    width: 50px;
    height: 40px;
    border-radius: 15px;
  }

  .wc-flag-orb .wc-flag {
    width: 42px;
    height: 28px;
  }
}


/* === ALOA World Cup: guided contest choice landing === */
.aloa-choice-hero {
  position: relative;
  overflow: hidden;
}

.aloa-choice-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215,13,47,.18), transparent 66%);
  pointer-events: none;
}

.aloa-summary-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.aloa-summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215,13,47,.22);
  box-shadow: 0 18px 45px rgba(47,36,48,.12);
}

.aloa-choice-modal .modal-content,
.aloa-confirm-modal .modal-content {
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255,211,109,.26), transparent 36%),
    radial-gradient(circle at bottom right, rgba(89,170,67,.18), transparent 35%),
    #fff8ed;
  color: #2f2430;
  box-shadow: 0 30px 90px rgba(47,36,48,.28);
  overflow: hidden;
}

.aloa-choice-modal .modal-body {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
  gap: 18px;
}

.aloa-choice-grid {
  display: grid;
  gap: 14px;
}

.aloa-choice-card {
  width: 100%;
  text-align: left;
  border: 2px solid rgba(47,36,48,.1);
  background: rgba(255,255,255,.62);
  border-radius: 28px;
  padding: 18px;
  display: grid;
  gap: 6px;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.aloa-choice-card:hover,
.aloa-choice-card.is-selected {
  transform: scale(1.025);
  border-color: rgba(215,13,47,.45);
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 55px rgba(47,36,48,.16);
}

.aloa-choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #d70d2f, #ff7a45);
  box-shadow: 0 12px 25px rgba(215,13,47,.24);
  font-size: 1.35rem;
}

.aloa-choice-title {
  font-weight: 950;
  font-size: 1.2rem;
  line-height: 1.1;
}

.aloa-choice-subtitle,
.aloa-choice-mini {
  color: rgba(47,36,48,.68);
  font-size: .9rem;
}

.aloa-choice-mini {
  font-weight: 800;
}

.aloa-choice-detail {
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,237,.92));
  border: 1px solid rgba(47,36,48,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  display: grid;
  gap: 18px;
}

.aloa-choice-detail h3 {
  font-weight: 950;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: .95;
  margin: 0 0 10px;
}

.aloa-choice-detail p {
  color: rgba(47,36,48,.74);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.aloa-choice-warning {
  margin-top: 16px;
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(255,211,109,.22);
  border: 1px solid rgba(255,174,0,.28);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 800;
}

.aloa-choice-warning i {
  color: #b96d00;
}

.aloa-choice-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.aloa-choice-stats > div {
  border-radius: 22px;
  padding: 14px 12px;
  background: rgba(246,239,231,.75);
  border: 1px solid rgba(47,36,48,.08);
}

.aloa-choice-stats strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 950;
  line-height: 1;
}

.aloa-choice-stats span {
  display: block;
  margin-top: 5px;
  color: rgba(47,36,48,.62);
  font-size: .82rem;
  font-weight: 800;
}

.aloa-choice-prizes {
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(89,170,67,.12), rgba(255,211,109,.18));
  border: 1px solid rgba(89,170,67,.18);
}

.aloa-choice-prizes h4 {
  font-size: 1rem;
  font-weight: 950;
  margin: 0 0 10px;
}

.aloa-prize-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(47,36,48,.08);
}

.aloa-prize-row:first-of-type {
  border-top: 0;
}

.aloa-prize-row strong {
  border-radius: 999px;
  background: #2f2430;
  color: #fff8ed;
  padding: 5px 9px;
  text-align: center;
  font-size: .82rem;
}

.aloa-prize-row span {
  font-weight: 800;
}

@media (max-width: 900px) {
  .aloa-choice-modal .modal-body {
    grid-template-columns: 1fr;
  }

  .aloa-choice-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .aloa-choice-modal .modal-content,
  .aloa-confirm-modal .modal-content {
    border-radius: 24px;
  }

  .aloa-choice-card {
    border-radius: 22px;
    padding: 14px;
  }

  .aloa-choice-detail {
    border-radius: 24px;
    padding: 16px;
  }
}
