﻿/* ==========================================================================
   Sudut Panahan — event/pendaftaran/live-score theme layer
   Sits on top of the existing Canvas-based site assets (style.css, css/custom.css,
   css/font-icons.css, css/swiper.css) — same shell (header/footer),
   new content system for events, registration and live scoring.
   Palette is sampled directly from the Sudut Panahan logo (logo_hijau.png):
   deep forest green target/bow icon and wordmark, gold as the CTA accent.
   ========================================================================== */

:root {
    --sp-green: #02643e;
    --sp-green-deep: #012a1a;
    --sp-green-light: #0f9d5c;
    --sp-green-lighter: #6fd9a8;
    --sp-gold: #fdbd00;
    --sp-gold-light: #ffd24d;
    --sp-ink: #1a2433;
    --sp-muted: #61697a;
    --sp-line: #e5e9f0;
    --sp-soft: #f2f6fb;
    --sp-danger: #c0392b;
}

* { letter-spacing: 0 !important; }
html { scroll-behavior: smooth; }
body.sp-body { font-family: Inter, sans-serif; color: var(--sp-ink); background: #fff; font-size: 15px; overflow-x: hidden; }
.sp-body a { color: var(--sp-green-light); }

/* Header / nav — same dark green as the footer, light text -------------- */
#sp-header { position: sticky; top: 0; z-index: 999; background: linear-gradient(180deg, #f4faf6, #e6f2eb); backdrop-filter: blur(8px); box-shadow: 0 8px 28px rgba(2,100,62,.12); }
/* thin brand-gradient rule under the header — the light header carries the colored logo (see CLAUDE.md), this keeps it from reading as a flat white bar */
#sp-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--sp-green), var(--sp-green-light) 60%, var(--sp-gold)); }
.sp-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(18px, 4vw, 34px); }
.sp-logo { display: flex; align-items: center; text-decoration: none; }
.sp-logo img { height: clamp(56px, 7.5vw, 80px); width: auto; max-width: 100%; display: block; }
.sp-nav { display: flex; align-items: center; gap: 28px; }
.sp-nav a { display: flex; align-items: center; color: #23443a; font-weight: 700; font-size: 13.5px; text-decoration: none; letter-spacing: .02em !important; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.sp-nav a:hover { color: var(--sp-green-light); border-bottom-color: rgba(15,157,92,.35); }
.sp-nav a.active { color: var(--sp-green); border-bottom-color: var(--sp-gold); }
.sp-nav a i { display: none; }
.sp-nav-cta { background: var(--sp-gold); color: var(--sp-green) !important; padding: 10px 20px; border-radius: 999px; }
.sp-nav-cta:hover { background: var(--sp-gold-light); }
.sp-nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,.75); border: 1px solid rgba(2,100,62,.25); border-radius: 10px; font-size: 20px; color: var(--sp-green); flex-shrink: 0; }
.sp-nav-backdrop { display: none; }

@media (max-width: 991px) {
    .sp-header-row { padding: 8px clamp(18px, 4vw, 34px); }
    .sp-logo img { height: 52px; }
    .sp-nav-toggle { display: flex; }
    .sp-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #f1f8f4;
        padding: 10px clamp(18px, 4vw, 34px) 18px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        border-top: 1px solid rgba(2,100,62,.14);
        box-shadow: 0 20px 40px rgba(2,100,62,.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .sp-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .sp-nav a { gap: 12px; padding: 14px 4px; font-size: 15px; border-bottom: 1px solid rgba(2,100,62,.12); }
    .sp-nav a:hover { border-bottom-color: rgba(2,100,62,.12); }
    .sp-nav a.active { border-bottom-color: rgba(2,100,62,.12); background: linear-gradient(90deg, rgba(255,255,255,.85), transparent); }
    .sp-nav a:last-child { border-bottom: none; }
    .sp-nav a i { display: inline-flex; width: 20px; font-size: 17px; color: var(--sp-green-light); flex-shrink: 0; }
    .sp-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(1,30,18,.42);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s;
    }
    .sp-nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* Buttons --------------------------------------------------------------- */
.sp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.sp-btn-primary { background: var(--sp-gold); color: var(--sp-green); }
.sp-btn-primary:hover { background: var(--sp-gold-light); color: var(--sp-green); }
.sp-btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.sp-btn-outline-dark { border-color: var(--sp-green); color: var(--sp-green); }
.sp-btn-ghost { background: var(--sp-soft); color: var(--sp-green); }
.sp-btn-sm { padding: 9px 16px; font-size: 12.5px; }
.sp-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Section shell ----------------------------------------------------------- */
.sp-section { padding: clamp(50px, 8vw, 96px) 0; }
.sp-section-soft { background: var(--sp-soft); }
.sp-section .container { padding-left: clamp(18px, 4vw, 34px); padding-right: clamp(18px, 4vw, 34px); }
.sp-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-green-light); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em !important; margin-bottom: 10px; }
.sp-kicker::before { content: ''; width: 22px; height: 2px; background: var(--sp-gold); display: inline-block; }
.sp-section-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; color: var(--sp-green); margin: 0 0 14px; }
.sp-section-lead { color: var(--sp-muted); max-width: 640px; margin: 0 0 34px; line-height: 1.7; }

/* Hero -------------------------------------------------------------------- */
.sp-hero { position: relative; background: linear-gradient(135deg, var(--sp-green) 0%, var(--sp-green-light) 130%); color: #fff; overflow: hidden; }
.sp-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 18%, rgba(253,189,0,.28), transparent 55%); pointer-events: none; }
.sp-hero-inner { position: relative; padding: clamp(64px, 10vw, 120px) clamp(18px, 4vw, 34px) clamp(50px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }
.sp-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 22px; }
.sp-hero-badge .sp-dot { width: 8px; height: 8px; border-radius: 50%; background: #38d970; box-shadow: 0 0 0 0 rgba(56,217,112,.6); animation: sp-pulse 1.8s infinite; }
.sp-hero h1 { font-size: clamp(30px, 5.2vw, 58px); font-weight: 800; line-height: 1.12; margin: 0 0 20px; max-width: 780px; }
.sp-hero h1 span { color: var(--sp-gold-light); }
.sp-hero p.sp-hero-lead { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.86); max-width: 620px; margin: 0 0 34px; line-height: 1.7; }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.sp-hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; max-width: 720px; }
.sp-hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 18px 20px; }
.sp-hero-stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--sp-gold-light); }
.sp-hero-stat span { font-size: 12.5px; color: rgba(255,255,255,.8); }

@keyframes sp-pulse { 0% { box-shadow: 0 0 0 0 rgba(56,217,112,.55); } 70% { box-shadow: 0 0 0 8px rgba(56,217,112,0); } 100% { box-shadow: 0 0 0 0 rgba(56,217,112,0); } }

/* Search bar — sits directly under the header on every page --------------- */
.sp-search-bar { background: #fff; border-bottom: 1px solid var(--sp-line); padding: 18px 0; }
.sp-search-bar .container { padding-left: clamp(18px, 4vw, 34px); padding-right: clamp(18px, 4vw, 34px); }

/* Homepage only: search bar sits on the same fixed photo backdrop as the
   hero right below it, so the two sections read as one continuous image
   instead of two separately-cropped backgrounds. */
.sp-search-bar-photo {
    position: relative;
    border-bottom: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.4) 100%),
        url('../gambar/source/bg_depan.jpeg') center 35% / cover fixed;
}
@media (max-width: 900px) {
    .sp-search-bar-photo { background-attachment: scroll; }
}
.sp-search-form { display: flex; align-items: stretch; gap: 10px; background: var(--sp-soft); border: 1px solid var(--sp-line); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: 0 10px 30px rgba(2,100,62,.07); }
.sp-search-field { display: flex; align-items: center; gap: 8px; }
.sp-search-field-main { flex: 1 1 auto; color: var(--sp-muted); }
.sp-search-field-main i { color: var(--sp-green); font-size: 16px; }
.sp-search-field-main input { border: none; background: transparent; outline: none; font-size: 14px; width: 100%; color: var(--sp-ink); font-family: inherit; }
.sp-search-field select { border: none; background: transparent; outline: none; font-size: 13.5px; font-weight: 700; color: var(--sp-green); padding: 8px 6px; font-family: inherit; cursor: pointer; }
.sp-search-divider { width: 1px; align-self: center; height: 26px; background: var(--sp-line); }
.sp-search-submit.sp-btn-primary { border-radius: 999px; white-space: nowrap; background: var(--sp-green-light); color: #fff; }
.sp-search-submit.sp-btn-primary:hover { background: var(--sp-green-lighter); color: #fff; }
@media (max-width: 760px) {
    .sp-search-form { flex-wrap: wrap; border-radius: 22px; padding: 14px; }
    .sp-search-field-main { flex-basis: 100%; }
    .sp-search-divider { display: none; }
    .sp-search-field select { flex: 1; }
    .sp-search-submit { flex-basis: 100%; justify-content: center; }
}

/* Homepage hero slider — open-registration events, on the same fixed photo
   backdrop as the search bar above it (soft white wash for readability). */
.sp-hero-slider-wrap {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,.75) 100%),
        url('../gambar/source/bg_depan.jpeg') center 35% / cover fixed;
    padding: clamp(14px, 2vw, 20px) 0 clamp(18px, 2.4vw, 26px);
}
@media (max-width: 900px) {
    .sp-hero-slider-wrap { background-attachment: scroll; }
}
.sp-hero-slider-wrap .container { position: relative; z-index: 1; padding-left: clamp(18px, 4vw, 34px); padding-right: clamp(18px, 4vw, 34px); }
.sp-hero-slider-wrap .sp-strong-title { text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 2px 14px rgba(255,255,255,.5); }

/* Strong section title — reused wherever a bold single-line heading replaces
   the old small-kicker + big-title + lead-paragraph combo. */
.sp-strong-title {
    margin: 4px 0 16px;
    font-size: clamp(19px, 2.6vw, 26px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .01em !important;
    color: var(--sp-green);
}
@media (max-width: 640px) {
    .sp-strong-title { margin-bottom: 12px; }
}
.sp-hero-swiper { padding-bottom: 26px; margin-top: 2px; }
.sp-slide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-slide-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; border-left: 4px solid var(--sp-gold); box-shadow: 0 10px 26px rgba(2,100,62,.1); padding: 14px 18px; min-height: 118px; }
.sp-slide-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--sp-green), var(--sp-green-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.sp-slide-content { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.sp-slide-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: var(--sp-soft); color: var(--sp-green); border: 1px solid var(--sp-line); padding: 2px 10px; border-radius: 999px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em !important; }
.sp-slide-content h2 { font-size: clamp(13.5px, 1.3vw, 16px); font-weight: 800; color: var(--sp-green); margin: 0; line-height: 1.28; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-slide-content .sp-event-meta { color: var(--sp-muted); font-size: 10.5px; gap: 8px; flex-wrap: nowrap; overflow: hidden; }
.sp-slide-content .sp-event-meta span { white-space: nowrap; }
.sp-slide-content .sp-slide-meta-loc { overflow: hidden; text-overflow: ellipsis; }
.sp-slide-content .sp-hero-actions { margin: 3px 0 0; gap: 6px; }
.sp-slide-content .sp-hero-actions .sp-btn { padding: 6px 13px; font-size: 11px; }
.sp-hero-swiper .swiper-pagination { bottom: 0; }
.sp-hero-swiper .swiper-pagination-bullet { background: var(--sp-green); opacity: .25; width: 6px; height: 6px; transition: width .25s ease, border-radius .25s ease; }
.sp-hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--sp-gold); width: 16px; border-radius: 4px; }
.sp-hero-swiper .swiper-button-next, .sp-hero-swiper .swiper-button-prev {
    width: 30px; height: 30px; background: #fff; border-radius: 50%; box-shadow: 0 6px 16px rgba(2,100,62,.18); color: var(--sp-green); --swiper-navigation-size: 12px; top: 42%;
}
.sp-hero-swiper .swiper-button-next:hover, .sp-hero-swiper .swiper-button-prev:hover { background: var(--sp-gold); color: var(--sp-green); }
@media (max-width: 900px) {
    .sp-slide-content .sp-event-meta span:not(:first-child) { display: none; }
}
@media (max-width: 640px) {
    .sp-slide-pair { grid-template-columns: 1fr; gap: 10px; }
    .sp-slide-card { min-height: auto; padding: 12px 14px; }
    .sp-slide-icon { width: 38px; height: 38px; font-size: 16px; }
    .sp-slide-content h2 { font-size: 12.5px; }
    .sp-hero-swiper .swiper-button-next, .sp-hero-swiper .swiper-button-prev { display: none; }
}

/* Registrasi steps ---------------------------------------------------------- */
.sp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.sp-step { background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; padding: 26px 22px; position: relative; }
.sp-step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--sp-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }
.sp-step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--sp-green); }
.sp-step p { margin: 0; color: var(--sp-muted); font-size: 13.5px; line-height: 1.6; }
.sp-registrasi-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #eaf3ff 0%, var(--sp-soft) 55%, #fdf6e8 100%);
    border: 1px solid var(--sp-line);
    border-radius: 20px;
    padding: 34px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sp-registrasi-pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sp-registrasi-cta-body { position: relative; z-index: 1; }
.sp-registrasi-cta-body h1, .sp-registrasi-cta-body h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--sp-green); }
.sp-registrasi-cta-body p { margin: 0; color: var(--sp-muted); max-width: 480px; }
.sp-live-page-banner { padding: 22px 28px; gap: 16px; }
.sp-live-page-banner .sp-live-badge, .sp-live-page-banner .sp-slide-badge { margin-bottom: 10px; }
.sp-registrasi-cta-btn { position: relative; z-index: 1; }
@media (max-width: 900px) { .sp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sp-steps { grid-template-columns: 1fr; } }

/* Event cards ---------------------------------------------------------------- */
.sp-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.sp-event-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.sp-event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,100,62,.14); }
.sp-event-cover { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sp-green), var(--sp-green-light)); overflow: hidden; }
.sp-event-cover img { width: 100%; height: 100%; object-fit: cover; }
.sp-event-type { position: absolute; top: 14px; left: 14px; background: rgba(2,100,62,.7); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.sp-event-status { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.sp-event-status-buka { background: #d7f5e0; color: #0f6b34; }
.sp-event-status-tutup { background: #fde8d7; color: #a1530a; }
.sp-event-status-selesai { background: #e4e6ea; color: #444; }
.sp-event-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sp-event-title { font-size: 17px; font-weight: 800; color: var(--sp-green); margin: 0; line-height: 1.35; }
.sp-event-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--sp-muted); }
.sp-event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sp-event-meta i { color: var(--sp-gold); }
.sp-event-countdown { font-size: 12.5px; font-weight: 700; color: var(--sp-danger); }
.sp-event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.sp-event-empty { border: 1px dashed var(--sp-line); border-radius: 16px; padding: 50px 24px; text-align: center; color: var(--sp-muted); }

/* Live score --------------------------------------------------------------- */
.sp-live-panel { background: #fff; border: 1px solid var(--sp-line); border-radius: 20px; padding: 26px clamp(16px,3vw,30px); }
.sp-live-panel-full { width: 100%; background: var(--sp-soft); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); padding: 28px 0 34px; }
.sp-live-inner { width: 100%; margin: 0; padding: 0 clamp(18px, 3vw, 40px); }
.sp-live-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.sp-live-head h3 { margin: 0 0 4px; color: var(--sp-green); font-weight: 800; font-size: 19px; }
.sp-live-badge { display: inline-flex; align-items: center; gap: 8px; background: #fdeaea; color: var(--sp-danger); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.sp-live-badge .sp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-danger); animation: sp-pulse 1.4s infinite; }
.sp-live-updated { font-size: 13px; font-weight: 600; color: var(--sp-muted); display: inline-flex; align-items: center; gap: 6px; }
.sp-live-updated .sp-live-refresh-dot { width: 6px; height: 6px; border-radius: 50%; background: #0f9d5c; animation: sp-pulse 1.4s infinite; }
.sp-live-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--sp-muted); margin: 0 0 20px; }
.sp-live-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sp-live-meta i { color: var(--sp-green); }
.sp-kategori-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.sp-kategori-tab { padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--sp-green); font-weight: 700; font-size: 13.5px; border: 1.5px solid var(--sp-line); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.sp-kategori-tab:hover { box-shadow: 0 4px 12px rgba(2,100,62,.12); }
.sp-kategori-tab.active { background: var(--sp-green); color: #fff; border-color: var(--sp-green); box-shadow: 0 6px 16px rgba(2,100,62,.25); }

/* Babak/periode tabs (Semifinal, Final, ...) — deliberately styled apart
   from the kategori pills above (gold instead of green) so switching
   "which round" reads as a visually distinct action from switching "which
   category," and the "there are more periods here" signal is impossible
   to miss even at a glance. */
.sp-periode-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 18px; }
.sp-periode-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em !important; color: #a97b00; }
.sp-periode-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-periode-tab {
    padding: 7px 16px; border-radius: 999px; background: #fff8e1; color: #8a6d00; font-weight: 800;
    font-size: 12.5px; border: 1.5px solid #ffe58a; cursor: pointer; transition: transform .12s ease;
}
.sp-periode-tab:hover { transform: translateY(-1px); }
.sp-periode-tab.active { background: linear-gradient(135deg, #fdbd00, #e0a800); color: #4a3800; border-color: #e0a800; box-shadow: 0 6px 16px rgba(224,168,0,.3); }

.sp-live-table-card { border: 1px solid var(--sp-line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(2,100,62,.08); background: #fff; }
.sp-leaderboard { width: 100%; border-collapse: collapse; }
.sp-leaderboard th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em !important; color: var(--sp-muted); padding: 12px; background: var(--sp-soft); border-bottom: 2px solid var(--sp-line); }
.sp-leaderboard td { padding: 13px 12px; border-bottom: 1px solid var(--sp-line); font-size: 14px; }
.sp-leaderboard tr:last-child td { border-bottom: none; }
.sp-leaderboard tbody tr.sp-lb-row:nth-of-type(4n+3) { background: var(--sp-soft); }
.sp-leaderboard tbody tr.sp-lb-row:nth-of-type(4n+3):hover { background: #f4f9f6; }
.sp-rank { width: 34px; height: 34px; border-radius: 50%; background: var(--sp-soft); color: var(--sp-green); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.sp-rank-1 { background: linear-gradient(150deg, #fff3c4, #fdbd00); color: #4a3800; box-shadow: 0 0 0 3px rgba(253,189,0,.22); }
.sp-rank-2 { background: #d9dee2; color: #2d3436; }
.sp-rank-3 { background: #e2b58a; color: #4a2c05; }
.sp-score { font-weight: 800; color: var(--sp-green); font-size: 16px; }
.sp-live-empty { text-align: center; padding: 40px 20px; color: var(--sp-muted); }
.sp-lb-peserta strong { display: block; }
.sp-lb-peserta small { display: block; color: var(--sp-muted); font-size: 12px; margin-top: 2px; }

@media (max-width: 480px) {
    .sp-live-inner { padding: 0 clamp(12px, 3vw, 40px); }
    .sp-leaderboard th, .sp-leaderboard td { padding: 10px 8px; font-size: 12.5px; }
    .sp-score { font-size: 14px; }
    .sp-rank { width: 28px; height: 28px; font-size: 12.5px; }
    .sp-kategori-tab { padding: 8px 14px; font-size: 12.5px; }
    .sp-periode-tab { padding: 6px 13px; font-size: 11.5px; }
}

/* ---- Per-arrow breakdown (2026-09-14): each leaderboard row can expand
   to show its individual arrow values — e.g. 10 shots, each a small
   colored box (gold for 10, green for 9, neutral otherwise). Built as a
   plain <tr> injected right after the peserta row, toggled via a chevron
   button in the last cell — no extra table structure needed. ---- */
.sp-leaderboard tbody tr.sp-lb-row { cursor: pointer; transition: background .15s ease; }
.sp-leaderboard tbody tr.sp-lb-row:hover { background: #f4f9f6; }
.sp-lb-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--sp-soft); color: var(--sp-green); border: 1px solid var(--sp-line);
    transition: transform .2s ease, background .2s ease;
}
.sp-lb-row.is-open .sp-lb-toggle { background: var(--sp-green); color: #fff; transform: rotate(180deg); }
.sp-lb-detail-row td { padding: 0 !important; border-bottom: 1px solid var(--sp-line); }
.sp-lb-detail { max-height: 0; overflow: hidden; transition: max-height .28s ease; background: linear-gradient(180deg, #f7fbf9, #fff); }
.sp-lb-detail.is-open { max-height: 240px; }
.sp-lb-detail-inner { padding: 16px clamp(12px, 3vw, 22px) 20px; }
.sp-lb-detail-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em !important; color: var(--sp-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.sp-lb-arrow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; max-width: 620px; }
.sp-lb-arrow-box {
    aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; background: #fff; border: 1.5px solid var(--sp-line); color: var(--sp-ink);
    position: relative;
}
.sp-lb-arrow-box::before {
    content: attr(data-n); position: absolute; top: 2px; left: 4px; font-size: 8px; font-weight: 700;
    color: var(--sp-muted); letter-spacing: 0 !important;
}
.sp-lb-arrow-box.v10 { background: linear-gradient(150deg, #fff3c4, #fdbd00); border-color: #e0a800; color: #4a3800; }
.sp-lb-arrow-box.v9 { background: linear-gradient(150deg, #d7f5e0, #6fd9a8); border-color: #0f9d5c; color: #0f4a2c; }
.sp-lb-arrow-box.empty { background: var(--sp-soft); border-style: dashed; color: #c2c9d1; }
.sp-lb-arrow-total { margin-top: 12px; font-size: 13px; color: var(--sp-muted); }
.sp-lb-arrow-total b { color: var(--sp-green); font-size: 15px; }
@media (max-width: 480px) {
    .sp-lb-arrow-grid { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
    .sp-lb-arrow-box { font-size: 13px; border-radius: 8px; }
    .sp-lb-detail.is-open { max-height: 320px; }
}

/* Super table — full participant/schedule sheet on the dedicated live page */
.sp-table-search { display: flex; align-items: center; gap: 10px; background: var(--sp-soft); border: 1px solid var(--sp-line); border-radius: 999px; padding: 12px 20px; margin-bottom: 18px; max-width: 560px; }
.sp-table-search i { color: var(--sp-green); font-size: 16px; }
.sp-table-search input { border: none; background: transparent; outline: none; font-size: 14.5px; width: 100%; font-family: inherit; color: var(--sp-ink); }
.sp-super-table-full { width: 100%; border: 1px solid var(--sp-line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(2,100,62,.08); }
.sp-super-table { width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; }
.sp-super-table thead th {
    background: var(--sp-green);
    color: #fff;
    text-align: left;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .05em !important;
    font-weight: 800;
    padding: 16px 14px;
    border-right: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
}
.sp-super-table thead th:last-child { border-right: none; }
.sp-super-table tbody td {
    padding: 14px;
    font-size: 14.5px;
    line-height: 1.4;
    border-right: 1px solid var(--sp-line);
    border-bottom: 1px solid var(--sp-line);
    word-break: break-word;
    color: var(--sp-ink);
}
.sp-super-table tbody td:last-child { border-right: none; }
.sp-super-table tbody tr:nth-child(even) { background: var(--sp-soft); }
.sp-super-table tbody tr:hover { background: #eaf1ff; }
.sp-super-table .sp-col-rank { width: 44px; text-align: center; }
.sp-super-table .sp-col-skor { text-align: right; }
.sp-super-table .sp-col-skor.sp-score { font-size: 17px; }
.sp-super-table .sp-rank { width: 36px; height: 36px; font-size: 14px; }

/* Progressive column hiding keeps the table at 100% width with zero
   horizontal scroll — least-critical columns drop first as space runs out.
   Breakpoints are pushed higher than the column count alone would need,
   because each cell now carries bigger, more legible padding/type. */
@media (max-width: 1440px) { .sp-col-provinsi { display: none; } }
@media (max-width: 1280px) { .sp-col-kota { display: none; } }
@media (max-width: 1140px) { .sp-col-sesi { display: none; } }
@media (max-width: 1000px) { .sp-col-kloter, .sp-col-lokasi { display: none; } }
@media (max-width: 860px)  { .sp-col-posisi, .sp-col-bantalan { display: none; } }
@media (max-width: 700px)  { .sp-col-klub { display: none; } .sp-super-table thead th, .sp-super-table tbody td { padding: 10px 8px; font-size: 12.5px; } }
@media (max-width: 540px)  { .sp-col-nopeserta, .sp-col-kategori { display: none; } .sp-super-table thead th, .sp-super-table tbody td { padding: 8px 6px; font-size: 11.5px; } .sp-super-table .sp-col-skor.sp-score { font-size: 14px; } }

.sp-kat-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.sp-kat-0 { background: #e6edff; color: var(--sp-green); }
.sp-kat-1 { background: #dceeff; color: #0d5fc9; }
.sp-kat-2 { background: #fff3d6; color: #8a5a00; }
.sp-kat-3 { background: #e3f8ec; color: #0f6b34; }
.sp-kat-4 { background: #f4e4ff; color: #6a1fa8; }

.sp-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.sp-status-belum { background: #eceff3; color: #565f6b; }
.sp-status-menembak { background: #dceeff; color: #0d5fc9; }
.sp-status-menembak::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #0f9d5c; animation: sp-pulse 1.4s infinite; }
.sp-status-selesai { background: #e3f8ec; color: #0f6b34; }

.sp-table-count { margin: 12px 2px 0; font-size: 12px; color: var(--sp-muted); }

@media (max-width: 760px) {
    .sp-table-search { max-width: 100%; }
}

/* Footer ------------------------------------------------------------------- */
.sp-footer { position: relative; background: linear-gradient(180deg, #f4faf6, #e6f2eb); color: #34473e; padding: 56px 0 0; margin-top: 0; }
.sp-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--sp-green), var(--sp-green-light) 60%, var(--sp-gold)); }
.sp-footer .container { padding-left: clamp(18px, 4vw, 34px); padding-right: clamp(18px, 4vw, 34px); }
.sp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(2,100,62,.16); }
.sp-footer-brand img { height: clamp(64px, 8vw, 96px); width: auto; margin-bottom: 16px; }
.sp-footer-brand p { color: var(--sp-muted); line-height: 1.7; max-width: 300px; }
.sp-footer h4 { color: var(--sp-green); font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.sp-footer a { display: block; color: #3d5247; text-decoration: none; margin-bottom: 10px; font-size: 13.5px; transition: color .15s ease; }
.sp-footer a:hover { color: var(--sp-green-light); }
.sp-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.sp-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--sp-green); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0; transition: background .15s ease, transform .15s ease; }
.sp-footer-social a:hover { background: var(--sp-green-light); color: #fff; transform: translateY(-2px); }
.sp-copyright { text-align: center; padding: 20px 0; font-size: 12.5px; color: var(--sp-muted); }
@media (max-width: 900px) { .sp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sp-footer-grid { grid-template-columns: 1fr; } }

/* Forms (pendaftaran) -------------------------------------------------------- */
.sp-form-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 18px; padding: clamp(16px,3vw,28px); }
.sp-form-group { margin-bottom: 13px; }
.sp-form-group label { display: block; font-weight: 700; color: var(--sp-green); margin-bottom: 5px; font-size: 13px; }
.sp-form-group input, .sp-form-group select, .sp-form-group textarea {
    width: 100%; padding: 10px 13px; border: 1px solid var(--sp-line); border-radius: 9px; font-size: 13.5px; font-family: inherit; background: #fbfcfe;
}
.sp-form-group input:focus, .sp-form-group select:focus, .sp-form-group textarea:focus { outline: none; border-color: var(--sp-green-light); }
.sp-form-hint { font-size: 11.5px; color: var(--sp-muted); margin-top: 5px; }
.sp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 640px) { .sp-form-row { grid-template-columns: 1fr; } }
.sp-kategori-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; margin-bottom: 6px; }
.sp-kategori-option { border: 2px solid var(--sp-line); border-radius: 11px; padding: 11px 14px; cursor: pointer; }
.sp-kategori-option.selected { border-color: var(--sp-green); background: var(--sp-soft); }
.sp-kategori-option strong { display: block; color: var(--sp-green); font-size: 13.5px; }
.sp-kategori-option span { font-size: 12px; color: var(--sp-muted); }
.sp-alert { border-radius: 11px; padding: 13px 16px; margin-bottom: 16px; font-size: 13px; }
.sp-alert-success { background: #d7f5e0; color: #0f6b34; }
.sp-alert-error { background: #fde2e2; color: #a12626; }
.sp-rekening-box { background: var(--sp-soft); border-left: 4px solid var(--sp-gold); border-radius: 10px; padding: 12px 15px; font-size: 13px; color: var(--sp-ink); white-space: pre-line; margin-bottom: 14px; }

/* Prominent "already have an account? log in" call-to-action — placed
   above the registration form (not buried inside it or below it) so a
   returning peserta sees it before re-typing data they already have on
   file. Distinct green-tinted card + a real button, not just inline text,
   since that's what got missed before. */
.sp-login-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    background: linear-gradient(135deg, #e6f5ee, #ffffff);
    border: 1.5px solid var(--sp-green-light); border-radius: 14px;
    padding: 16px 20px; margin-bottom: 16px;
}
.sp-login-banner-text { min-width: 0; }
.sp-login-banner-text strong { display: flex; align-items: center; gap: 7px; font-size: 15.5px; color: var(--sp-green); margin-bottom: 3px; }
.sp-login-banner-text span { font-size: 13px; color: var(--sp-muted); }
.sp-login-banner .sp-btn { flex-shrink: 0; }
@media (max-width: 560px) {
    .sp-login-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .sp-login-banner-text strong { justify-content: center; }
    .sp-login-banner .sp-btn { justify-content: center; width: 100%; }
}
.sp-form-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em !important;
    color: var(--sp-green); margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--sp-soft);
}
.sp-form-section-title:first-child { margin-top: 0; }
.sp-form-section-title i { font-size: 16px; color: var(--sp-gold); }

/* Required-field markers: a red "*" next to the label, and — once a field
   has been touched and left empty (.sp-field-empty, toggled by JS on blur,
   and on every submit attempt) — a soft pink border/background so an
   unfilled required field stands out without shaming the whole form on
   first load. */
.sp-req { color: #dc2626; font-weight: 800; }
.sp-form-group input.sp-field-empty,
.sp-form-group select.sp-field-empty,
.sp-form-group textarea.sp-field-empty {
    border-color: #f472b6; background: #fdeef5;
}
.sp-form-group input.sp-field-empty::placeholder,
.sp-form-group textarea.sp-field-empty::placeholder {
    color: #db2777;
}

/* Contact page ------------------------------------------------------------- */
.sp-contact-grid { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
.sp-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-contact-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; padding: 18px; box-shadow: 0 10px 26px rgba(2,100,62,.08); transition: transform .2s ease, border-color .2s ease; }
.sp-contact-card:hover { transform: translateY(-3px); border-color: var(--sp-green-light); }
.sp-contact-card i { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; background: var(--sp-soft); color: var(--sp-green); font-size: 18px; margin-bottom: 10px; }
.sp-contact-card h2 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em !important; color: var(--sp-muted); font-weight: 800; }
.sp-contact-card p, .sp-contact-card a { margin: 0; color: var(--sp-ink); font-size: 13.5px; font-weight: 700; line-height: 1.5; word-break: break-word; }
.sp-map-panel { background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(2,100,62,.08); }
.sp-map-box { height: 260px; background: var(--sp-soft); }
.sp-map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.sp-map-caption { padding: 16px; }
.sp-map-caption strong { display: block; color: var(--sp-green); font-size: 14px; margin-bottom: 6px; }
.sp-map-caption p { margin: 0 0 12px; color: var(--sp-muted); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 900px) { .sp-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sp-contact-cards { grid-template-columns: 1fr; } }

/* WhatsApp float button ------------------------------------------------------ */
.sp-wa-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.22); z-index: 998; color: #fff; font-size: 26px; }

/* Gallery ---------------------------------------------------------------- */
.sp-gallery-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 10px; font-weight: 800; }
.sp-kategori-tab.active .sp-gallery-count { background: rgba(255,255,255,.25); }
.sp-gallery-grid { columns: 4; column-gap: 18px; }
.sp-gallery-item { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--sp-soft); box-shadow: 0 8px 24px rgba(2,100,62,.1); transition: transform .25s ease, box-shadow .25s ease; }
.sp-gallery-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,100,62,.18); }
.sp-gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.sp-gallery-item:hover img { transform: scale(1.05); }
.sp-gallery-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 14px; background: linear-gradient(to top, rgba(1,42,26,.78) 0%, transparent 55%); opacity: 0; transition: opacity .25s ease; }
.sp-gallery-item:hover .sp-gallery-overlay { opacity: 1; }
.sp-gallery-item-album { color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.sp-gallery-zoom { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
@media (max-width: 1100px) { .sp-gallery-grid { columns: 3; } }
@media (max-width: 767px)  { .sp-gallery-grid { columns: 2; column-gap: 12px; } .sp-gallery-item { margin-bottom: 12px; border-radius: 12px; } }
@media (max-width: 480px)  { .sp-gallery-grid { columns: 1; } }

/* Lightbox ----------------------------------------------------------------- */
.sp-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(4,11,26,.96); display: none; align-items: center; justify-content: center; }
.sp-lightbox.is-open { display: flex; }
.sp-lightbox-box { position: relative; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.sp-lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.sp-lightbox-caption { margin-top: 14px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); text-align: center; padding: 0 60px; }
.sp-lightbox-close { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10000; }
.sp-lightbox-close:hover { background: var(--sp-danger); border-color: transparent; }
.sp-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10000; }
.sp-lightbox-nav:hover { background: var(--sp-green-light); border-color: transparent; }
.sp-lightbox-prev { left: 18px; }
.sp-lightbox-next { right: 18px; }
.sp-lightbox-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); padding: 6px 16px; border-radius: 999px; z-index: 10000; }
@media (max-width: 640px) { .sp-lightbox-nav { display: none; } }
