/* Watch the Judging (watch_judging.php). Classes are lw-. Site accent #ab7442. */
.lw { --lw-accent: #ab7442; --lw-accent-soft: #f6ece2; --lw-ink: #222; --lw-muted: #6b6b6b; --lw-line: #e4e0db; --lw-bg: #faf8f5;
    --lw-gold: #c9a227; --lw-silver: #9aa3ab; --lw-bronze: #b0743f; --lw-fourth: #5f7d8c; --lw-fifth: #7d8f5c;
    padding: 50px 0 80px; font-family: 'Poppins', sans-serif; color: var(--lw-ink); }
.lw [hidden] { display: none !important; }
.lw-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.lw-intro > div { max-width: 760px; }
.lw-h2 { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.lw-intro p { margin: 0; color: var(--lw-muted); font-size: 15px; line-height: 1.6; }

@keyframes lw-pulse { 0% { box-shadow: 0 0 0 0 rgba(171, 116, 66, .5); } 70% { box-shadow: 0 0 0 8px rgba(171, 116, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(171, 116, 66, 0); } }
.lw-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lw-muted); white-space: nowrap; }
.lw-live i, .lw-status.is-live i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lw-accent); animation: lw-pulse 1.8s infinite; }
.lw-live.is-off i { background: #aaa; animation: none; }

.lw-off { padding: 40px 24px; border: 1px solid var(--lw-line); border-radius: 6px; background: var(--lw-bg); text-align: center; }
.lw-off h3 { font-family: 'Montserrat', sans-serif; font-size: 22px; margin: 0 0 8px; }
.lw-off p { margin: 0; color: var(--lw-muted); }

.lw-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--lw-line); border-radius: 6px; background: var(--lw-bg); margin-bottom: 24px; }
.lw-chosen { display: flex; gap: 8px; flex-wrap: wrap; }
.lw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border: 1px solid var(--lw-accent); border-radius: 20px; background: #fff; font-size: 13px; color: var(--lw-ink); }
.lw-chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--lw-accent-soft); color: var(--lw-accent); font-size: 16px; line-height: 1; cursor: pointer; }
.lw-chip button:hover { background: var(--lw-accent); color: #fff; }
.lw-add { flex: 1 1 260px; }
.lw-select { width: 100%; height: 40px; border: 1px solid var(--lw-line); border-radius: 6px; padding: 0 10px; background: #fff; font-size: 14px; color: var(--lw-ink); }
.lw-select:disabled { color: var(--lw-muted); background: #f3f1ee; }
.lw-hint { font-size: 13px; color: var(--lw-muted); }

.lw-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.lw-none, .lw-empty { color: var(--lw-muted); font-size: 14px; padding: 16px; margin: 0; }
.lw-board { border: 1px solid var(--lw-line); border-radius: 6px; background: #fff; overflow: hidden; }
.lw-board header { padding: 14px 16px 12px; border-bottom: 1px solid var(--lw-line); background: var(--lw-bg); position: relative; }
.lw-bdiv { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--lw-accent); }
.lw-board h3 { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 600; margin: 4px 0 8px; line-height: 1.3; }
.lw-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lw-muted); }
.lw-status.is-live { color: var(--lw-accent); }
.lw-status.is-final { color: #fff; background: var(--lw-accent); padding: 3px 10px; border-radius: 12px; }

.lw-congrats { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--lw-accent-soft); border-bottom: 1px solid var(--lw-line); font-size: 13px; line-height: 1.5; }
.lw-congrats strong { font-family: 'Montserrat', sans-serif; font-size: 15px; color: var(--lw-accent); }
.lw-congrats.lw-notfinal { background: var(--lw-bg); }
.lw-congrats.lw-notfinal strong { font-size: 14px; color: var(--lw-ink); }
.lw-congrats.lw-notfinal span { color: var(--lw-muted); }

.lw-list { list-style: none; margin: 0; padding: 0; }
.lw-row { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--lw-line); background: #fff; position: relative; will-change: transform; transition: background-color 1.2s; }
.lw-row:last-child { border-bottom: 0; }
.lw-place { flex: 0 0 42px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; color: var(--lw-accent); font-variant-numeric: tabular-nums; }
.lw-who { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lw-who b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-who span { font-size: 12px; color: var(--lw-muted); font-variant-numeric: tabular-nums; }
.lw-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--lw-accent); padding: 2px 8px; border-radius: 10px; }
.lw-judging { font-size: 11px; color: var(--lw-muted); font-style: italic; }
.lw-row.is-mine { background: var(--lw-accent-soft); }
.lw-row.is-up { background: #e9f3e7; transition: none; }
.lw-row.is-down { background: #f7ece6; transition: none; }
.lw-row.is-podium .lw-place { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 13px; margin-right: 4px; }
.lw-row.lw-p1 .lw-place { background: var(--lw-gold); }
.lw-row.lw-p2 .lw-place { background: var(--lw-silver); }
.lw-row.lw-p3 .lw-place { background: var(--lw-bronze); }
.lw-row.lw-p4 .lw-place { background: var(--lw-fourth); }
.lw-row.lw-p5 .lw-place { background: var(--lw-fifth); }
.lw-waithead { padding: 8px 16px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--lw-muted); background: var(--lw-bg); border-top: 1px solid var(--lw-line); border-bottom: 1px solid var(--lw-line); }
.lw-waiting .lw-place { color: #bbb; }
.lw-gap { text-align: center; color: var(--lw-muted); font-size: 18px; line-height: 1; padding: 4px 0 8px; border-top: 1px solid var(--lw-line); border-bottom: 1px solid var(--lw-line); background: var(--lw-bg); }
.lw-more { margin: 0; padding: 8px 16px; font-size: 12px; color: var(--lw-muted); border-top: 1px solid var(--lw-line); }

@media (prefers-reduced-motion: reduce) {
    .lw-row { transition: none; }
}
@media (max-width: 600px) {
    .lw { padding: 30px 0 60px; }
    .lw-h2 { font-size: 22px; }
}
