/* ==========================================================================
   Biniray Festival 2027 · unified look
   Deep sea navy (fluvial procession night), Sr. Sto. Nino crimson, festival gold,
   Romblon marble ivory. Loaded LAST on every page; layout and behaviour stay in the
   older stylesheets, this file only restyles them.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --bf-ink-950:#0a1120;
  --bf-ink-900:#101a2e;
  --bf-ink-850:#142036;
  --bf-ink-800:#1a2842;
  --bf-ink-700:#26375a;
  --bf-ink-500:#4b5d80;
  --bf-crimson:#b4233f;
  --bf-crimson-dark:#8e1630;
  --bf-crimson-soft:#fbe9ec;
  --bf-gold:#e9a919;
  --bf-gold-bright:#f6c447;
  --bf-gold-soft:#fff4d6;
  --bf-gold-ink:#7a5500;
  --bf-teal:#0f8b7d;
  --bf-teal-soft:#e2f4f1;
  --bf-marble:#f5f2ec;
  --bf-surface:#ffffff;
  --bf-line:#e6e0d6;
  --bf-line-strong:#d8d0c3;
  --bf-text:#1b2333;
  --bf-muted:#687387;
  --bf-radius:16px;
  --bf-shadow:0 1px 2px rgba(16,24,40,.04),0 10px 28px rgba(16,24,40,.07);
  --bf-shadow-lg:0 2px 4px rgba(16,24,40,.05),0 22px 50px rgba(16,24,40,.12);
  --bf-sans:'Plus Jakarta Sans',Inter,'Segoe UI',Arial,sans-serif;
  --bf-serif:'Fraunces',Georgia,'Times New Roman',serif;
}

body{font-family:var(--bf-sans)!important;-webkit-font-smoothing:antialiased}
input,select,textarea,button{font-family:inherit}

/* ==========================================================================
   ADMIN
   ========================================================================== */
body.theme-admin{background:var(--bf-marble)!important;color:var(--bf-text)}
/* Quiet marble backdrop instead of busy artwork behind data screens. */
body.theme-admin::before{
  background:
    radial-gradient(1200px 500px at 85% -10%,rgba(233,169,25,.10),transparent 60%),
    radial-gradient(900px 420px at -10% 10%,rgba(180,35,63,.06),transparent 60%),
    linear-gradient(115deg,transparent 40%,rgba(120,105,85,.05) 41%,transparent 43%),
    linear-gradient(160deg,transparent 62%,rgba(120,105,85,.04) 63%,transparent 64%)!important;
  opacity:1!important;
}
body.theme-admin::after{background:none!important}

/* Sidebar */
body.admin-console .ac-sidebar{
  background:linear-gradient(185deg,var(--bf-ink-900),var(--bf-ink-950) 70%)!important;
  border-right:1px solid rgba(255,255,255,.06)!important;
  box-shadow:8px 0 30px rgba(10,17,32,.18)!important;
}
body.admin-console .ac-sidebar::before{background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold),var(--bf-crimson))!important;height:3px!important}
body.admin-console .ac-brand{border-bottom-color:rgba(255,255,255,.08)!important}
body.admin-console .ac-brand img{border-color:var(--bf-gold)!important;box-shadow:0 0 0 4px rgba(233,169,25,.10)!important}
body.admin-console .ac-brand-title{font-family:var(--bf-serif);font-weight:700;font-size:18px!important;letter-spacing:.2px}
body.admin-console .ac-brand-sub{color:var(--bf-gold-bright)!important;font-weight:700}
body.admin-console .ac-group{color:#7f8db0!important;font-size:10.5px!important}
body.admin-console .ac-link{color:#c9d3e8!important;font-weight:600!important;border-radius:10px!important}
body.admin-console .ac-link:hover{background:rgba(255,255,255,.06)!important;border-color:transparent!important;color:#fff!important}
body.admin-console .ac-link.active{background:rgba(233,169,25,.12)!important;border:1px solid rgba(233,169,25,.28)!important;color:#fff!important}
body.admin-console .ac-link.active::before{background:var(--bf-gold)!important;box-shadow:none!important}
body.admin-console .ac-icon{color:#8f9cbd!important}
body.admin-console .ac-link.active .ac-icon{color:var(--bf-gold-bright)!important}
body.admin-console .ac-footer{color:#7381a3!important}
body.admin-console .ac-toggle{background:var(--bf-ink-900)!important;border:1px solid rgba(233,169,25,.45)!important}

/* Top bar */
body.admin-console .header,body.theme-admin:not(.led-board) .header{
  background:rgba(255,255,255,.88)!important;background-image:none!important;
  color:var(--bf-text)!important;border-bottom:1px solid var(--bf-line)!important;
  box-shadow:0 1px 0 rgba(16,24,40,.02),0 8px 24px rgba(16,24,40,.05)!important;
  backdrop-filter:saturate(1.4) blur(14px);padding-left:28px!important;min-height:64px;
}
body.theme-admin:not(.admin-console):not(.led-board) .header{padding-left:24px!important}
body.admin-console .header::after{background:linear-gradient(90deg,transparent,var(--bf-crimson) 20%,var(--bf-gold) 50%,var(--bf-crimson) 80%,transparent)!important;opacity:.55!important;height:2px!important}
body.theme-admin .header strong{font-family:var(--bf-serif);font-weight:700;font-size:19px;color:var(--bf-ink-900)}
body.theme-admin .header strong::after{color:var(--bf-muted)!important;font-family:var(--bf-sans);font-weight:600;letter-spacing:.3px}
body.theme-admin .header>div{color:var(--bf-muted);font-weight:600;font-size:14px}
body.theme-admin .header a{color:var(--bf-crimson)!important;font-weight:700}
@media(max-width:960px){body.admin-console.theme-admin:not(.led-board) .header{padding-left:66px!important}}

/* Content */
body.theme-admin .container{padding-top:26px!important}
body.theme-admin h1,body.theme-admin h2{font-family:var(--bf-serif);font-weight:700;letter-spacing:-.2px;color:var(--bf-ink-900)!important}
body.theme-admin h3{font-weight:800;color:var(--bf-ink-900)!important}
body.theme-admin .card{
  background:var(--bf-surface)!important;border:1px solid var(--bf-line)!important;
  border-radius:var(--bf-radius)!important;box-shadow:var(--bf-shadow)!important;
}
body.theme-admin .card::before{display:none!important}
body.theme-admin .card.soft{background:#fffdf9!important}
body.theme-admin .muted{color:var(--bf-muted)!important}
body.theme-admin .helper{color:#8790a1!important}
body.theme-admin .kicker,body.theme-admin .ac-page-kicker{
  background:var(--bf-gold-soft)!important;color:var(--bf-gold-ink)!important;
  border:1px solid rgba(233,169,25,.35)!important;font-weight:800!important;letter-spacing:.9px!important;
}
body.theme-admin .back{
  background:transparent!important;color:var(--bf-ink-700)!important;box-shadow:none!important;
  border:1px solid var(--bf-line-strong);padding:9px 14px!important;font-weight:700;font-size:13px;
}
body.theme-admin .back:hover{background:#fff!important;border-color:var(--bf-ink-500)}
body.theme-admin .empty-state{border-color:var(--bf-line-strong)!important;background:#fffdf9!important}
body.theme-admin .big{font-family:var(--bf-serif);color:var(--bf-ink-900)}

/* Buttons */
body.theme-admin .btn{
  background:var(--bf-ink-900)!important;color:#fff!important;border:1px solid var(--bf-ink-900)!important;
  border-radius:11px!important;font-weight:700!important;box-shadow:0 1px 2px rgba(16,24,40,.08),0 6px 14px rgba(16,24,40,.12)!important;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease;
}
body.theme-admin .btn:hover{background:var(--bf-ink-800)!important;transform:translateY(-1px);filter:none!important}
body.theme-admin .btn-green{background:var(--bf-teal)!important;border-color:var(--bf-teal)!important}
body.theme-admin .btn-green:hover{background:#0c7569!important}
body.theme-admin .btn-red{background:var(--bf-crimson)!important;border-color:var(--bf-crimson)!important}
body.theme-admin .btn-red:hover{background:var(--bf-crimson-dark)!important}
body.theme-admin .btn-blue{background:#2453a6!important;border-color:#2453a6!important}
body.theme-admin .btn-blue:hover{background:#1c4389!important}
body.theme-admin .btn-gray{background:#fff!important;color:var(--bf-ink-800)!important;border:1px solid var(--bf-line-strong)!important;box-shadow:0 1px 2px rgba(16,24,40,.05)!important}
body.theme-admin .btn-gray:hover{background:#faf7f2!important;border-color:var(--bf-ink-500)!important}

/* Alerts and badges */
body.theme-admin .success,body.theme-admin .error,body.theme-admin .notice{border-radius:12px!important;border-width:1px 1px 1px 4px!important;font-weight:500}
body.theme-admin .success{background:var(--bf-teal-soft)!important;border-color:#b6e2da #b6e2da #b6e2da var(--bf-teal)!important;color:#0b5a51!important}
body.theme-admin .error{background:var(--bf-crimson-soft)!important;border-color:#f2c4cd #f2c4cd #f2c4cd var(--bf-crimson)!important;color:#7d1028!important}
body.theme-admin .notice{background:var(--bf-gold-soft)!important;border-color:#f2dc9e #f2dc9e #f2dc9e var(--bf-gold)!important;color:#5f4300!important}
body.theme-admin .badge{font-weight:800!important;letter-spacing:.2px}
body.theme-admin .badge-ok{background:var(--bf-teal-soft)!important;color:#0b5a51!important}
body.theme-admin .badge-warn{background:var(--bf-gold-soft)!important;color:var(--bf-gold-ink)!important}
body.theme-admin .badge-off{background:#efece6!important;color:#5c6577!important}

/* Forms */
body.theme-admin label{color:var(--bf-ink-800);font-weight:700;font-size:13.5px}
body.theme-admin input,body.theme-admin select,body.theme-admin textarea{
  background:#fff!important;border:1px solid var(--bf-line-strong)!important;color:var(--bf-text)!important;border-radius:10px!important;
}
body.theme-admin input:focus,body.theme-admin select:focus,body.theme-admin textarea:focus{
  border-color:var(--bf-gold)!important;box-shadow:0 0 0 4px rgba(233,169,25,.18)!important;
}

/* Tables */
body.theme-admin .table-wrap{border:1px solid var(--bf-line)!important;border-radius:14px!important;box-shadow:none!important;background:#fff}
body.theme-admin table{background:#fff!important}
body.theme-admin th{background:#f8f5ef!important;color:#5a6476!important;font-size:11px!important;font-weight:800!important;letter-spacing:.7px!important;border-bottom:1px solid var(--bf-line)!important}
body.theme-admin td{border-bottom-color:#efeae2!important}
body.theme-admin tr:hover td{background:#fffaf0!important}

/* Dashboard */
body.admin-console .ac-dashboard-hero{
  background:
    radial-gradient(520px 260px at 92% 0%,rgba(233,169,25,.28),transparent 70%),
    radial-gradient(420px 260px at 0% 100%,rgba(180,35,63,.30),transparent 70%),
    linear-gradient(140deg,var(--bf-ink-900),var(--bf-ink-950))!important;
  border:1px solid var(--bf-ink-800)!important;color:#e7ecf7;
}
body.admin-console .ac-dashboard-hero h1{color:#fff!important}
body.admin-console .ac-dashboard-hero::after{color:rgba(255,255,255,.04)!important;font-family:var(--bf-serif)}
body.admin-console .ac-dashboard-hero .ac-page-kicker{background:rgba(233,169,25,.16)!important;color:var(--bf-gold-bright)!important;border-color:rgba(233,169,25,.4)!important}
body.admin-console .ac-event-heading{color:var(--bf-gold-bright)!important;font-family:var(--bf-serif);font-weight:700}
body.admin-console .ac-event-meta{color:#aab5cd!important}
body.admin-console .ac-festival-chip{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.14)!important;color:#dfe6f5!important}
body.admin-console .ac-festival-chip.gold{background:rgba(233,169,25,.14)!important;border-color:rgba(233,169,25,.35)!important;color:var(--bf-gold-bright)!important}
body.admin-console .ac-progress-box{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.12)!important}
body.admin-console .ac-progress-head strong{color:#fff!important}
body.admin-console .ac-progress-value{color:var(--bf-gold-bright)!important}
body.admin-console .ac-dashboard-hero .helper{color:#9aa6c0!important}
body.admin-console .ac-festival-progress{background:rgba(255,255,255,.10)!important;border:0!important}
body.admin-console .ac-festival-progress span{background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold))!important;box-shadow:none!important}
body.admin-console .ac-stat{background:#fff!important;border:1px solid var(--bf-line)!important;box-shadow:var(--bf-shadow)!important;border-radius:14px!important}
body.admin-console .ac-stat::after{width:4px!important;background:var(--bf-ink-700)!important}
body.admin-console .ac-stat:nth-child(2)::after{background:var(--bf-teal)!important}
body.admin-console .ac-stat:nth-child(3)::after{background:var(--bf-gold)!important}
body.admin-console .ac-stat:nth-child(4)::after{background:var(--bf-crimson)!important}
body.admin-console .ac-stat-label{color:var(--bf-muted)!important;font-weight:800!important}
body.admin-console .ac-stat-value{color:var(--bf-ink-900)!important;font-family:var(--bf-serif);font-weight:700!important}
body.admin-console .ac-quick a{background:#fff!important;border:1px solid var(--bf-line)!important;color:var(--bf-ink-800)!important;font-weight:700!important}
body.admin-console .ac-quick a:hover{border-color:var(--bf-gold)!important;background:#fffaf0!important;box-shadow:0 8px 18px rgba(16,24,40,.06)}
body.admin-console .ac-arrow{color:var(--bf-crimson)!important}
body.theme-admin .menu{background:#fff!important;border:1px solid var(--bf-line)!important;box-shadow:var(--bf-shadow)!important}
body.theme-admin .menu:hover{border-color:var(--bf-gold)!important}
body.theme-admin .menu strong{color:var(--bf-ink-900)!important}
body.admin-console .ac-activity-main strong{color:var(--bf-ink-900)!important}
body.admin-console .ac-entry-card{background:#fff!important;border-color:var(--bf-line)!important;box-shadow:var(--bf-shadow)!important}
body.admin-console .ac-entry-card:hover{border-color:var(--bf-gold)!important}
body.admin-console .ac-photo,body.admin-console .ac-photo-lg{border-color:var(--bf-line-strong)!important}
body.admin-console .ac-upload-zone{background:#fffdf9!important;border-color:var(--bf-line-strong)!important}

/* Results / engine / tabulation pages (page-level styles) */
body.theme-admin .bar,body.theme-admin .board,body.theme-admin .toolbar,body.theme-admin .print-section{background:#fff!important;border:1px solid var(--bf-line)!important;box-shadow:var(--bf-shadow)!important}
body.theme-admin .status,body.theme-admin .chip{background:var(--bf-gold-soft)!important;color:var(--bf-gold-ink)!important;border:1px solid rgba(233,169,25,.35)!important}
body.theme-admin .place,body.theme-admin .final,body.theme-admin .final-score,body.theme-admin .rank,body.theme-admin .judge-rank{color:var(--bf-crimson)!important}
body.theme-admin .final,body.theme-admin .final-score{font-family:var(--bf-serif)}
body.theme-admin .preview{background:var(--bf-gold-soft)!important;color:var(--bf-gold-ink)!important}
body.theme-admin .engine-hero{
  background:radial-gradient(520px 240px at 95% 0%,rgba(233,169,25,.25),transparent 70%),linear-gradient(140deg,var(--bf-ink-900),var(--bf-ink-950))!important;
  border:1px solid var(--bf-ink-800)!important;
}
body.theme-admin .engine-hero h1{color:#fff!important}
body.theme-admin .engine-stat{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.12)!important}
body.theme-admin .engine-stat small{color:#9aa6c0!important}
body.theme-admin .formula{background:#fffdf9!important;border:1px solid var(--bf-line)!important;border-left:4px solid var(--bf-gold)!important;color:var(--bf-text)!important}
body.theme-admin .score-matrix{border-color:var(--bf-line)!important}
body.theme-admin .score-matrix th{background:#f8f5ef!important;color:#5a6476!important}
body.theme-admin .btn-release{background:var(--bf-teal)!important;border-radius:11px!important}
body.theme-admin .btn-unrelease{border-color:var(--bf-gold)!important;color:var(--bf-gold-ink)!important;border-radius:11px!important}
body.theme-admin .notice2{background:var(--bf-teal-soft)!important;border-color:#b6e2da!important;color:#0b5a51!important}
body.theme-admin .error2{background:var(--bf-crimson-soft)!important;border-color:#f2c4cd!important;color:#7d1028!important}
body.theme-admin .award-filter a{background:#fff!important;border-color:var(--bf-line-strong)!important;color:var(--bf-ink-800)!important}
body.theme-admin .award-filter a.on{background:var(--bf-ink-900)!important;border-color:var(--bf-ink-900)!important;color:#fff!important}
body.theme-admin .award-row td,body.theme-admin .section-row td{background:#f8f5ef!important;color:var(--bf-crimson)!important}
body.theme-admin .award-tag{background:var(--bf-gold-soft)!important;color:var(--bf-gold-ink)!important}
body.theme-admin .judge-pick{background:#fffdf9!important;border-color:var(--bf-line)!important}
body.theme-admin .calc-note{background:#fffdf9!important;border-color:var(--bf-line)!important}
body.theme-admin .overall-card{background:#fffdf9!important;border-color:var(--bf-line)!important}
body.theme-admin .overall-card.final{background:var(--bf-gold-soft)!important;border-color:rgba(233,169,25,.45)!important}
body.theme-admin .overall-note{background:#fffdf9!important;border-color:var(--bf-line)!important;color:var(--bf-text)!important}
body.theme-admin .live-pill{background:var(--bf-teal-soft)!important;color:#0b5a51!important}
body.theme-admin .progressbar>span{background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold))!important}
body.theme-admin .rank-no{color:var(--bf-crimson)!important;font-family:var(--bf-serif)}
body.theme-admin .mode-card,body.theme-admin .engine-panel{background:#fffdf9!important;border-color:var(--bf-line)!important}

@media print{
  body.theme-admin::before{display:none!important}
  body.theme-admin .card,body.theme-admin .print-section{box-shadow:none!important;border:0!important}
}

/* ==========================================================================
   LOGIN
   ========================================================================== */
body.theme-auth{background:var(--bf-ink-950)!important;min-height:100vh}
body.theme-auth::before{opacity:1!important;filter:blur(3px) saturate(1.1);transform:scale(1.04)}
body.theme-auth::after{
  background:
    linear-gradient(90deg,rgba(10,17,32,.95) 0%,rgba(10,17,32,.88) 45%,rgba(10,17,32,.62) 100%),
    radial-gradient(700px 400px at 15% 85%,rgba(180,35,63,.38),transparent 70%),
    radial-gradient(600px 360px at 80% 10%,rgba(233,169,25,.16),transparent 70%)!important;
}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,460px);align-items:center;gap:48px;max-width:1180px;margin:0 auto;padding:40px 28px}
.auth-hero{color:#fff}
.auth-hero .login-brand{width:92px;height:92px;padding:0!important;margin:0 0 26px!important;border-radius:50%!important;background-color:#fff!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;border:3px solid var(--bf-gold)!important;box-shadow:0 0 0 8px rgba(233,169,25,.14),0 18px 40px rgba(0,0,0,.35)!important;backdrop-filter:none!important}
.auth-kicker{display:inline-flex;align-items:center;gap:10px;color:var(--bf-gold-bright);font-weight:800;font-size:12px;letter-spacing:2.6px;text-transform:uppercase}
.auth-kicker::before{content:"";width:28px;height:2px;background:var(--bf-gold)}
.auth-hero h1{font-family:var(--bf-serif);font-weight:700;font-size:clamp(38px,5vw,64px);line-height:1.02;letter-spacing:-.8px;margin:14px 0 14px;color:#fff;text-shadow:0 4px 30px rgba(0,0,0,.35)}
.auth-hero h1 em{font-style:normal;color:var(--bf-gold-bright)}
.auth-theme{font-family:var(--bf-serif);font-style:italic;font-size:clamp(18px,1.8vw,24px);color:#f3e6c6;margin:0 0 26px}
.auth-meta{display:flex;flex-wrap:wrap;gap:10px}
.auth-meta span{padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);font-size:12.5px;font-weight:700;color:#e3e9f6;backdrop-filter:blur(6px)}
.auth-panel .login-card{background:#fff!important;border:1px solid rgba(255,255,255,.6)!important;border-radius:22px!important;padding:34px 32px 28px!important;box-shadow:0 30px 70px rgba(0,0,0,.35)!important;backdrop-filter:none!important;position:relative;overflow:hidden}
.auth-panel .login-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold),var(--bf-crimson))}
.auth-panel .kicker{background:var(--bf-gold-soft)!important;color:var(--bf-gold-ink)!important;border:1px solid rgba(233,169,25,.35);font-weight:800!important;letter-spacing:.9px!important}
.auth-panel h2{font-family:var(--bf-serif);font-weight:700;font-size:32px;color:var(--bf-ink-900);margin:14px 0 6px!important}
.auth-panel .muted{color:var(--bf-muted)!important;font-size:14px;line-height:1.55}
.auth-panel label{color:var(--bf-ink-800);font-weight:700;font-size:13.5px;margin-top:2px}
.auth-panel input{height:50px;border:1px solid var(--bf-line-strong)!important;border-radius:12px!important;font-size:16px!important;background:#fffdf9!important}
.auth-panel input:focus{border-color:var(--bf-gold)!important;box-shadow:0 0 0 4px rgba(233,169,25,.2)!important;background:#fff!important}
.auth-panel .btn{height:52px;width:100%;border-radius:12px!important;font-size:16px!important;font-weight:800!important;letter-spacing:.3px;background:var(--bf-crimson)!important;border:0!important;box-shadow:0 12px 26px rgba(180,35,63,.32)!important;transition:transform .12s ease,background .12s ease}
.auth-panel .btn:hover{background:var(--bf-crimson-dark)!important;transform:translateY(-1px)}
.auth-panel .error{border-radius:12px!important;background:var(--bf-crimson-soft)!important;color:#7d1028!important;border:1px solid #f2c4cd!important;border-left:4px solid var(--bf-crimson)!important}
.auth-panel .foot-note{text-align:center;color:#8790a1;margin-top:18px}
.auth-pass{position:relative}
.auth-pass input{padding-right:64px!important}
.auth-pass button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--bf-ink-700);font-weight:800;font-size:12.5px;padding:8px 10px;border-radius:8px;cursor:pointer}
.auth-pass button:hover{background:#f3efe7}
.auth-footer{grid-column:1 / -1;color:#97a3bd;font-size:12px;text-align:center;margin-top:8px}
/* Older auth pages (first admin setup) */
body.theme-auth .login-shell .login-brand{background-color:rgba(10,17,32,.72)!important;border-color:rgba(233,169,25,.35)!important}
body.theme-auth .login-shell .login-brand h1{font-family:var(--bf-serif)}
body.theme-auth .login-shell .login-card{background:#fff!important}
@media(max-width:900px){
  .auth-wrap{grid-template-columns:1fr;gap:26px;padding:28px 18px;align-content:start}
  .auth-hero{text-align:center}
  .auth-hero .login-brand{margin:6px auto 18px!important;width:78px;height:78px}
  .auth-kicker::before{display:none}
  .auth-theme{margin-bottom:16px}
  .auth-meta{justify-content:center}
  .auth-panel .login-card{padding:28px 22px 22px!important}
  body.theme-auth::after{background:linear-gradient(180deg,rgba(10,17,32,.88),rgba(10,17,32,.72))!important}
}

/* ==========================================================================
   JUDGE (dark "procession night" console)
   ========================================================================== */
body.theme-judge{background:var(--bf-ink-950)!important;color:#eaf0fb!important}
body.theme-judge::before{opacity:.18!important}
body.theme-judge::after{background:
  radial-gradient(900px 420px at 100% 0%,rgba(233,169,25,.10),transparent 60%),
  radial-gradient(800px 420px at 0% 100%,rgba(180,35,63,.14),transparent 60%),
  linear-gradient(180deg,rgba(10,17,32,.90),rgba(10,17,32,.96))!important}
body.theme-judge .header{background:linear-gradient(90deg,var(--bf-ink-900),var(--bf-ink-950))!important;border-bottom:1px solid rgba(233,169,25,.35)!important;box-shadow:0 10px 30px rgba(0,0,0,.35)!important}
body.theme-judge .header::after{background:linear-gradient(90deg,transparent,var(--bf-crimson) 20%,var(--bf-gold) 50%,var(--bf-crimson) 80%,transparent)!important;opacity:.85!important;height:2px!important}
body.theme-judge .brand-title{font-family:var(--bf-serif);font-weight:700!important;letter-spacing:0!important}
body.theme-judge .brand-sub{color:var(--bf-gold-bright)!important}
body.theme-judge .event-pill,body.theme-judge .category-pill{background:rgba(233,169,25,.12)!important;border:1px solid rgba(233,169,25,.45)!important;color:var(--bf-gold-bright)!important;box-shadow:none!important}
body.theme-judge .event-pill .dot,body.theme-judge .category-pill .dot{background:#38d39f!important;box-shadow:0 0 10px #38d39f!important}
body.theme-judge .judge-chip{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.12)!important}
body.theme-judge .judge-avatar{background:linear-gradient(145deg,var(--bf-crimson),var(--bf-crimson-dark))!important;border-color:var(--bf-gold)!important}
body.theme-judge .judge-tabs,body.theme-judge .category-nav{background:rgba(16,26,46,.92)!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
body.theme-judge .judge-tabs a,body.theme-judge .category-nav a{background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.10)!important;color:#c4cee3!important}
body.theme-judge .judge-tabs a:hover,body.theme-judge .category-nav a:hover{border-color:rgba(233,169,25,.5)!important;background:rgba(233,169,25,.08)!important;color:#fff!important}
body.theme-judge .judge-tabs a.active,body.theme-judge .category-nav a.active{background:linear-gradient(180deg,var(--bf-gold-bright),var(--bf-gold))!important;color:var(--bf-ink-950)!important;border-color:var(--bf-gold-bright)!important;box-shadow:0 6px 18px rgba(233,169,25,.25)!important}
body.theme-judge .minor-subnav{background:rgba(20,32,54,.96)!important}
body.theme-judge .minor-subnav a{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.12)!important;color:#c4cee3!important}
body.theme-judge .minor-subnav a.active{background:var(--bf-crimson)!important;border-color:var(--bf-crimson)!important;color:#fff!important}
body.theme-judge .panel,body.theme-judge .tab-card,body.theme-judge .console-panel{background:linear-gradient(180deg,var(--bf-ink-850),var(--bf-ink-900))!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 18px 40px rgba(0,0,0,.30)!important}
body.theme-judge .panel::before,body.theme-judge .tab-card::before{background:linear-gradient(90deg,transparent,var(--bf-gold),transparent)!important;opacity:.55!important}
body.theme-judge .tab-card.gimik-card{border-left:4px solid var(--bf-gold)!important}
body.theme-judge .tab-card.sadsad-card{border-left:4px solid var(--bf-crimson)!important}
body.theme-judge .tab-card.minor-card{border-left:4px solid #5aa7e0!important}
body.theme-judge .tab-card:hover{border-color:rgba(233,169,25,.55)!important}
body.theme-judge .welcome h1,body.theme-judge .tab-card h2{font-family:var(--bf-serif);font-weight:700!important}
body.theme-judge .eyebrow,body.theme-judge .tab-kicker{color:var(--bf-gold-bright)!important}
body.theme-judge .notice2{background:rgba(233,169,25,.08)!important;border-color:rgba(233,169,25,.35)!important;color:#f4e1aa!important}
body.theme-judge .stat{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.10)!important}
body.theme-judge .stat .label{color:#9fb0d0!important}
body.theme-judge .progress-ring{background:conic-gradient(var(--bf-gold) calc(var(--p)*1%),rgba(255,255,255,.10) 0)!important}
body.theme-judge .progress-ring::before{background:var(--bf-ink-900)!important}
body.theme-judge .bar{background:rgba(255,255,255,.08)!important}
body.theme-judge .bar span,body.theme-judge .score-progress span{background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold))!important}
body.theme-judge .minor-pill{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.10)!important}
body.theme-judge .category-icon{background:rgba(233,169,25,.10)!important;border-color:rgba(233,169,25,.35)!important;color:var(--bf-gold-bright)!important}
body.theme-judge .sadsad-card .category-icon{background:rgba(180,35,63,.14)!important;border-color:rgba(180,35,63,.45)!important;color:#f19aac!important}
body.theme-judge .minor-card .category-icon{background:rgba(90,167,224,.12)!important;border-color:rgba(90,167,224,.4)!important;color:#a6d1f2!important}
body.theme-judge .panel-head,body.theme-judge .score-head{background:transparent!important;border-bottom-color:rgba(255,255,255,.08)!important}
body.theme-judge .tribe-item:hover{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.12)!important}
body.theme-judge .tribe-item.active{background:linear-gradient(90deg,rgba(233,169,25,.16),rgba(233,169,25,.03))!important;border-color:rgba(233,169,25,.7)!important;box-shadow:inset 4px 0 0 var(--bf-gold)!important}
body.theme-judge .entry-badge{background:linear-gradient(145deg,var(--bf-ink-700),var(--bf-ink-800))!important;border-color:rgba(255,255,255,.25)!important}
body.theme-judge .tribe-item.active .entry-badge{border-color:var(--bf-gold)!important;color:var(--bf-gold-bright)!important}
body.theme-judge .mini-status.submitted{background:rgba(56,211,159,.14)!important;color:#7fe6c2!important}
body.theme-judge .mini-status.draft{background:rgba(233,169,25,.14)!important;color:var(--bf-gold-bright)!important}
body.theme-judge .tribe-hero{background:radial-gradient(circle at 50% 18%,rgba(180,35,63,.30),transparent 55%),linear-gradient(150deg,var(--bf-ink-800),var(--bf-ink-900))!important;border-color:rgba(255,255,255,.10)!important}
body.theme-judge .hero-emblem{background:rgba(10,17,32,.6)!important;border-color:rgba(233,169,25,.55)!important;color:var(--bf-gold-bright)!important;font-family:var(--bf-serif)}
body.theme-judge .profile-name{font-family:var(--bf-serif);font-weight:700!important}
body.theme-judge .profile-sub{color:var(--bf-gold-bright)!important}
body.theme-judge .info-card{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.10)!important}
body.theme-judge .score-total{color:var(--bf-gold-bright)!important;font-family:var(--bf-serif);font-weight:700!important}
body.theme-judge .score-progress{background:rgba(255,255,255,.08)!important}
body.theme-judge .weight-circle{background:rgba(233,169,25,.10)!important;border-color:rgba(233,169,25,.6)!important;color:var(--bf-gold-bright)!important}
body.theme-judge .criterion-name{font-weight:800!important}
body.theme-judge .criterion-card{border-bottom-color:rgba(255,255,255,.08)!important}
body.theme-judge .score-input{background:rgba(10,17,32,.65)!important;border:2px solid rgba(255,255,255,.18)!important;color:#fff!important;font-family:var(--bf-sans)}
body.theme-judge .score-input:focus{border-color:var(--bf-gold)!important;box-shadow:0 0 0 4px rgba(233,169,25,.18)!important}
body.theme-judge .quick-score{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.14)!important;color:#d6deef!important}
body.theme-judge .quick-score:hover{background:var(--bf-gold)!important;color:var(--bf-ink-950)!important;border-color:var(--bf-gold-bright)!important}
body.theme-judge .action-zone{background:rgba(10,17,32,.92)!important;border-top-color:rgba(255,255,255,.08)!important}
body.theme-judge .action-btn{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.16)!important}
body.theme-judge .action-btn.save{background:var(--bf-ink-700)!important;border-color:var(--bf-ink-500)!important}
body.theme-judge .action-btn.submit{background:linear-gradient(180deg,var(--bf-gold-bright),var(--bf-gold))!important;color:var(--bf-ink-950)!important;border-color:var(--bf-gold-bright)!important;box-shadow:0 10px 24px rgba(233,169,25,.25)}
body.theme-judge .submitted-box{background:rgba(56,211,159,.10)!important;border-color:rgba(56,211,159,.45)!important;color:#8ff0cc!important}
body.theme-judge .success{background:rgba(56,211,159,.12)!important;color:#9af2d2!important;border:1px solid rgba(56,211,159,.4)!important}
body.theme-judge .error{background:rgba(180,35,63,.18)!important;color:#ffc2cd!important;border:1px solid rgba(180,35,63,.55)!important}
body.theme-judge .offline-bar.pending{background:rgba(233,169,25,.12)!important;border-color:rgba(233,169,25,.55)!important}

/* ==========================================================================
   LED WALL / PUBLIC TRANSPARENCY BOARD
   ========================================================================== */
body.led-board{background:var(--bf-ink-950)!important;color:#eef2fb}
body.led-board::before{opacity:.10!important}
body.led-board::after{background:
  radial-gradient(1100px 520px at 100% 0%,rgba(233,169,25,.14),transparent 60%),
  radial-gradient(900px 520px at 0% 100%,rgba(180,35,63,.20),transparent 60%),
  linear-gradient(180deg,rgba(10,17,32,.86),rgba(10,17,32,.95))!important}
body.led-board .projector-head{background:linear-gradient(90deg,var(--bf-ink-900),var(--bf-ink-850))!important;border:1px solid rgba(233,169,25,.35);box-shadow:0 18px 50px rgba(0,0,0,.45)!important;position:relative;overflow:hidden}
body.led-board .projector-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold),var(--bf-crimson))}
body.led-board .projector-head img{border:3px solid var(--bf-gold);box-shadow:0 0 0 6px rgba(233,169,25,.12)}
body.led-board .projector-head h1{font-family:var(--bf-serif);font-weight:700;color:#fff!important;letter-spacing:-.3px}
body.led-board .projector-head .sub{color:var(--bf-gold-bright)!important;opacity:1!important;font-weight:700}
body.led-board .live{background:var(--bf-crimson)!important;color:#fff!important;letter-spacing:1px;box-shadow:0 0 0 4px rgba(180,35,63,.25)}
body.led-board .board{background:linear-gradient(180deg,rgba(20,32,54,.94),rgba(16,26,46,.96))!important;border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px rgba(0,0,0,.45)!important}
body.led-board .board-title h2{font-family:var(--bf-serif);font-weight:700;color:#fff!important}
body.led-board .progress-note,body.led-board .legend,body.led-board .muted{color:#9fb0d0!important}
body.led-board .result-tag{background:rgba(56,211,159,.14)!important;color:#7fe6c2!important;border:1px solid rgba(56,211,159,.35)}
body.led-board .partial-warning,body.led-board .preview-tag{background:rgba(233,169,25,.14)!important;color:var(--bf-gold-bright)!important;border:1px solid rgba(233,169,25,.45)}
body.led-board .public-table th{background:rgba(255,255,255,.05)!important;color:var(--bf-gold-bright)!important;letter-spacing:1px;border-bottom:1px solid rgba(233,169,25,.35)!important}
body.led-board .public-table td{border-bottom:1px solid rgba(255,255,255,.07)!important;background:transparent!important}
body.led-board .public-table tbody tr:nth-child(even) td{background:rgba(255,255,255,.025)!important}
body.led-board .entry{color:#fff!important}
body.led-board .judge-cell .raw{color:#fff!important}
body.led-board .judge-cell .rank{color:#8fb4e6!important}
body.led-board .public-table td:last-child .raw{color:var(--bf-gold-bright)!important;font-family:var(--bf-serif)}
body.led-board .single-title .entry-no{color:var(--bf-gold-bright)!important;letter-spacing:3px;font-weight:800}
body.led-board .single-title h2{font-family:var(--bf-serif);color:#fff!important}
body.led-board .judge-card{background:linear-gradient(180deg,var(--bf-ink-800),var(--bf-ink-900))!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 14px 34px rgba(0,0,0,.35)!important}
body.led-board .judge-card .jlabel{color:var(--bf-gold-bright)!important;letter-spacing:2px}
body.led-board .judge-card .jscore{color:#fff!important;font-family:var(--bf-serif)}
body.led-board .judge-card .jrank{color:#8fb4e6!important}
body.led-board .result-card{background:linear-gradient(90deg,var(--bf-ink-800),var(--bf-ink-900))!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 14px 34px rgba(0,0,0,.35)!important}
body.led-board .result-card:first-child{border-color:rgba(233,169,25,.7)!important;box-shadow:0 0 0 2px rgba(233,169,25,.25),0 18px 40px rgba(0,0,0,.45)!important}
body.led-board .result-place{color:var(--bf-gold-bright)!important;font-family:var(--bf-serif);letter-spacing:.5px}
body.led-board .result-name{color:#fff!important}
body.led-board .result-score{border-left-color:rgba(255,255,255,.12)!important}
body.led-board .result-score .label{color:#9fb0d0!important}
body.led-board .result-score .value{color:var(--bf-gold-bright)!important;font-family:var(--bf-serif)}
body.led-board .result-score .denom{color:#9fb0d0!important}
body.led-board .standby h2{font-family:var(--bf-serif);font-weight:700;color:#fff!important}
body.led-board .standby p{color:#a9b6d2!important}
body.led-board .foot{color:#7f8db0!important}
body.led-board .single-title h2[style]{color:var(--bf-gold-bright)!important}

/* ==========================================================================
   MOTION: loader, intro animations, hover effects
   ========================================================================== */
#bf-loader{position:fixed;inset:0;z-index:9999;pointer-events:none}
#bf-loader .bf-progress{position:fixed;left:0;top:0;height:3px;width:0;background:linear-gradient(90deg,var(--bf-crimson),var(--bf-gold-bright));box-shadow:0 0 12px rgba(233,169,25,.6);opacity:0}
#bf-loader.bar .bf-progress{opacity:1;animation:bf-progress 2.4s cubic-bezier(.2,.8,.2,1) forwards}
#bf-loader .bf-loader-box{position:fixed;inset:0;display:grid;place-items:center;align-content:center;gap:14px;background:rgba(10,17,32,.42);backdrop-filter:blur(3px);opacity:0;transition:opacity .2s ease}
#bf-loader.show{pointer-events:auto}
#bf-loader.show .bf-loader-box{opacity:1}
/* Spinner: Romblon seal in the middle, rotating gold-crimson ring around it. */
.bf-spinner{width:84px;height:84px;border-radius:50%;position:relative;display:grid;place-items:center}
.bf-spinner::before{content:"";position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 0deg,transparent 0 25%,var(--bf-gold-bright) 60%,var(--bf-crimson));
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));
  animation:bf-spin .9s linear infinite}
.bf-spinner img{width:62px;height:62px;border-radius:50%;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.35);animation:bf-breathe 1.6s ease-in-out infinite}
.bf-spinner::after{content:"";position:absolute;inset:-14px;border-radius:50%;border:1px solid rgba(233,169,25,.25);animation:bf-pulse 1.6s ease-out infinite}
@keyframes bf-breathe{50%{transform:scale(.94)}}
@media (prefers-reduced-motion:reduce){.bf-spinner::before,.bf-spinner img,.bf-spinner::after{animation:none}}
.bf-loader-text{color:#fff;font-weight:800;letter-spacing:2px;text-transform:uppercase;font-size:12px;text-shadow:0 2px 10px rgba(0,0,0,.5)}
@keyframes bf-spin{to{transform:rotate(360deg)}}
@keyframes bf-pulse{0%{transform:scale(.8);opacity:.9}100%{transform:scale(1.25);opacity:0}}
@keyframes bf-progress{0%{width:0}60%{width:72%}100%{width:90%}}

/* Entrance: soft rise, staggered by --bf-i (set by biniray_ui.js) */
@keyframes bf-rise{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes bf-fade{from{opacity:0}to{opacity:1}}
@keyframes bf-slide-in{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
body.bf-intro .card,body.bf-intro .ac-stat,body.bf-intro .tab-card,body.bf-intro .console-panel,body.bf-intro .panel,
body.bf-intro .menu,body.bf-intro .ac-entry-card,body.bf-intro .judge-card,body.bf-intro .result-card,body.bf-intro .engine-hero,
body.bf-intro .board,body.bf-intro .bar,body.bf-intro .toolbar{animation:bf-rise .55s cubic-bezier(.2,.75,.25,1) both;animation-delay:calc(var(--bf-i,0) * 55ms)}
body.bf-intro .public-table tbody tr{animation:bf-slide-in .45s ease both;animation-delay:calc(120ms + var(--bf-i,0) * 40ms)}
body.bf-intro .header,body.bf-intro .projector-head{animation:bf-fade .4s ease both}
body.bf-intro.admin-console .ac-sidebar .ac-link{animation:bf-slide-in .4s ease both}
.auth-hero>*{animation:bf-rise .7s cubic-bezier(.2,.75,.25,1) both}
.auth-hero>*:nth-child(2){animation-delay:.08s}.auth-hero>*:nth-child(3){animation-delay:.16s}.auth-hero>*:nth-child(4){animation-delay:.24s}.auth-hero>*:nth-child(5){animation-delay:.32s}
.auth-panel .login-card{animation:bf-rise .7s .15s cubic-bezier(.2,.75,.25,1) both}

/* Hover and press effects */
body.theme-admin .card,body.theme-admin .menu,body.admin-console .ac-stat,body.admin-console .ac-entry-card,body.admin-console .ac-quick a{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
body.admin-console .ac-stat:hover,body.theme-admin .menu:hover,body.admin-console .ac-entry-card:hover{transform:translateY(-3px);box-shadow:var(--bf-shadow-lg)!important}
body.admin-console .ac-quick a:hover .ac-arrow{transform:translateX(4px)}
body.admin-console .ac-arrow{transition:transform .18s ease}
.btn,.action-btn,.quick-score,.auth-pass button,.award-filter a{transition:transform .12s ease,box-shadow .15s ease,background .15s ease,filter .15s ease}
.btn:active,.action-btn:active,.quick-score:active{transform:scale(.97)!important}
body.theme-judge .tribe-item{transition:background .15s ease,border-color .15s ease,transform .15s ease}
body.theme-judge .tribe-item:hover{transform:translateX(3px)}
body.theme-judge .tab-card{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
body.theme-judge .score-total{transition:color .2s ease}
body.led-board .result-card:first-child .result-place{animation:bf-glow 2.4s ease-in-out infinite}
@keyframes bf-glow{0%,100%{text-shadow:0 0 0 rgba(246,196,71,0)}50%{text-shadow:0 0 22px rgba(246,196,71,.55)}}
body.led-board .live{animation:bf-live 2s ease-in-out infinite}
@keyframes bf-live{0%,100%{box-shadow:0 0 0 4px rgba(180,35,63,.25)}50%{box-shadow:0 0 0 9px rgba(180,35,63,.05)}}

/* Navigation bars */
body.admin-console .ac-link{position:relative;transition:background .16s ease,color .16s ease,transform .16s ease!important}
body.admin-console .ac-link:hover{transform:translateX(3px)}
body.admin-console .ac-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.04);transition:background .16s ease,color .16s ease}
body.admin-console .ac-link:hover .ac-icon{background:rgba(255,255,255,.08);color:#fff!important}
body.admin-console .ac-link.active .ac-icon{background:rgba(233,169,25,.18)}
body.admin-console .ac-sidebar{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
body.admin-console .ac-overlay{backdrop-filter:blur(2px);transition:opacity .2s ease}
body.admin-console .ac-sidebar.open{box-shadow:20px 0 60px rgba(0,0,0,.4)!important}
body.theme-judge .judge-tabs a,body.theme-judge .category-nav a{position:relative;overflow:hidden}
body.theme-judge .judge-tabs a.active::after,body.theme-judge .category-nav a.active::after{content:"";position:absolute;left:20%;right:20%;bottom:3px;height:2px;border-radius:2px;background:rgba(10,17,32,.45)}
body.theme-judge .minor-subnav a{transition:background .15s ease,border-color .15s ease}

/* Busy state for the judge save buttons (background saves) */
#scoreForm.bf-busy .action-btn.submit,#scoreForm.bf-busy .action-btn.save{position:relative;color:transparent!important}
#scoreForm.bf-busy .action-btn.submit::after,#scoreForm.bf-busy .action-btn.save::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:bf-spin .7s linear infinite}
#scoreForm.bf-busy .action-btn.submit::after{border-color:rgba(10,17,32,.25);border-top-color:var(--bf-ink-950)}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* LED overall results: Champion spans the full width, the rest in two columns; sized by screen
   height so all 10 tribes always fit on one screen. */
body.led-board .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1.1vh 1.1vw!important;margin-top:1.2vh!important}
body.led-board .result-card{grid-template-columns:minmax(110px,16%) minmax(0,1fr) auto!important;gap:1vw!important;padding:.9vh 1.2vw!important;border-radius:16px!important;min-height:0}
body.led-board .result-card:first-child{grid-column:1 / -1;padding:1.4vh 1.6vw!important;background:linear-gradient(90deg,rgba(233,169,25,.20),var(--bf-ink-800) 45%,var(--bf-ink-900))!important}
body.led-board .result-place{font-size:clamp(13px,min(1.15vw,2.1vh),28px)!important;line-height:1.1}
body.led-board .result-name{font-size:clamp(15px,min(1.55vw,2.7vh),36px)!important;line-height:1.12;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.led-board .result-score{padding-left:1vw!important;min-width:0}
body.led-board .result-score .label{font-size:clamp(9px,min(.65vw,1.2vh),14px)!important}
body.led-board .result-score .value{font-size:clamp(20px,min(2.1vw,3.7vh),50px)!important;white-space:nowrap}
body.led-board .result-card:first-child .result-place{font-size:clamp(18px,min(1.7vw,3vh),40px)!important}
body.led-board .result-card:first-child .result-name{font-size:clamp(20px,min(2.3vw,4vh),54px)!important}
body.led-board .result-card:first-child .result-score .value{font-size:clamp(26px,min(2.9vw,5vh),68px)!important}
body.led-board .result-card .progress-note{font-size:clamp(10px,min(.75vw,1.4vh),16px)!important;margin-top:.2vh}
/* The LED board reuses theme-admin; keep its tables dark (admin tables are white). */
body.led-board table,body.led-board .public-table{background:transparent!important}
body.led-board tr:hover td{background:transparent!important}
body.led-board .public-table tbody tr:nth-child(even):hover td{background:rgba(255,255,255,.025)!important}
@media(max-width:520px){.auth-meta{display:none}.auth-hero h1{font-size:34px;margin:10px 0}.auth-hero .login-brand{width:66px;height:66px;margin-bottom:12px!important}.auth-wrap{gap:18px;padding-top:20px}}

/* Official seal: always shown in its true round shape, never stretched. */
body.admin-console .ac-brand img{object-fit:contain!important;background:transparent!important;padding:0}
body.led-board .projector-head img{object-fit:contain;background:transparent!important;padding:0!important}
.auth-hero .login-brand{background-color:transparent!important;border-width:2px!important}
body.theme-auth .login-shell .login-brand{background-size:76px auto!important;background-position:center 14px!important}
.auth-hero .login-brand{width:112px!important;height:112px!important}
@media(max-width:900px){.auth-hero .login-brand{width:84px!important;height:84px!important}}
@media(max-width:520px){.auth-hero .login-brand{width:68px!important;height:68px!important}}
/* Seal fills its round frame edge to edge. */
.auth-hero .login-brand{background-size:cover!important;background-position:center!important}
body.admin-console .ac-brand img{object-fit:cover!important;border-radius:50%!important}
body.led-board .projector-head img{object-fit:cover!important;border-radius:50%!important}
/* Only the seal's own ring: no extra border or halo around it. */
.auth-hero .login-brand{border:0!important;box-shadow:0 12px 32px rgba(0,0,0,.45)!important;background-color:transparent!important}
body.admin-console .ac-brand img{border:0!important;box-shadow:0 6px 16px rgba(0,0,0,.35)!important}
body.led-board .projector-head img{border:0!important;box-shadow:0 8px 22px rgba(0,0,0,.45)!important}

/* ==========================================================================
   FESTIVAL TOUCHES (Nov 2026): banderitas bunting under every header, banig weave
   backgrounds. Two fonts only: Fraunces (titles, big numbers) + Plus Jakarta Sans (all text).
   ========================================================================== */
:root{--bf-bunting:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='30' viewBox='0 0 132 30'%3E%3Cpath d='M0 4 Q66 16 132 4' fill='none' stroke='%23c8a24a' stroke-width='1.3'/%3E%3Cpath d='M5 6.2 L27 8 L16 24 Z' fill='%23b4233f'/%3E%3Cpath d='M38 10 L60 10.6 L49 27 Z' fill='%23f6c447'/%3E%3Cpath d='M72 10.6 L94 10 L83 27 Z' fill='%230f8b7d'/%3E%3Cpath d='M105 8 L127 6.2 L116 24 Z' fill='%23fffaf0' stroke='%23e2d3b3' stroke-width='.9'/%3E%3C/svg%3E")}

/* Banderitas hanging under the page header (admin, judge, LED wall) */
body.admin-console .header,body.theme-judge .header,body.led-board .projector-head{position:relative}
body.led-board .projector-head{overflow:visible!important}
body.admin-console .header::before,body.theme-judge .header::before{
  content:"";position:absolute;left:0;right:0;top:100%;height:30px;pointer-events:none;z-index:30;
  background:var(--bf-bunting) repeat-x 0 0/132px 30px;filter:drop-shadow(0 3px 3px rgba(16,24,40,.12))}
body.theme-judge .header::before{filter:drop-shadow(0 3px 4px rgba(0,0,0,.35))}
body.led-board .projector-head::before{
  content:"";position:absolute;left:24px;right:24px;top:100%;height:30px;pointer-events:none;z-index:2;
  background:var(--bf-bunting) repeat-x 0 0/132px 30px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35))}
/* Login page: bunting across the top of the screen */
body.theme-auth .auth-wrap::before{
  content:"";position:fixed;left:0;right:0;top:0;height:34px;pointer-events:none;z-index:5;
  background:var(--bf-bunting) repeat-x 0 0/150px 34px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35))}
/* Leave room so the bunting never covers the first line of content */
body.admin-console .container{padding-top:34px!important}
body.theme-judge .judge-tabs{padding-top:22px!important}

/* Banig weave: very light woven texture behind the admin pages */
body.theme-admin::after{content:""!important;position:fixed;inset:0;pointer-events:none;z-index:-1!important;opacity:1!important;
  background:
    repeating-linear-gradient(45deg,rgba(185,133,16,.045) 0 10px,transparent 10px 20px),
    repeating-linear-gradient(-45deg,rgba(180,35,63,.035) 0 10px,transparent 10px 20px)!important}
/* Judge pages: the same weave in gold on the night-blue background */
body.theme-judge::before{
  background:
    repeating-linear-gradient(45deg,rgba(246,196,71,.035) 0 10px,transparent 10px 20px),
    repeating-linear-gradient(-45deg,rgba(246,196,71,.025) 0 10px,transparent 10px 20px)!important;opacity:1!important}

/* Festival ribbon on the admin sidebar brand */
body.admin-console .ac-brand{position:relative}
body.admin-console .ac-brand::after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,#b4233f 0 25%,#f6c447 25% 50%,#0f8b7d 50% 75%,#fffaf0 75%)}

/* One heading font everywhere */
h1,h2,h3,.panel-title h2,.card h1,.card h2{font-family:var(--bf-serif)}
.stat .value,.ac-stat-value{font-variant-numeric:tabular-nums}

@media (max-width:700px){
  body.admin-console .header::before,body.theme-judge .header::before{height:22px;background-size:98px 22px}
  body.theme-auth .auth-wrap::before{height:26px;background-size:112px 26px}
}
@media print{body .header::before,body .projector-head::before,body .auth-wrap::before{display:none!important}}
