/* CICS Fest — scoring desk for facilitators and the admin. Light, calm, built for fast entry. */
:root {
  --maroon: #7A1020;
  --maroon-2: #5E0B18;
  --gold: #F2B630;
  --bg: #F6F2F1;
  --surface: #FFFFFF;
  --ink: #2A0710;
  --ink-2: #5B4347;
  --muted: #8C7477;
  --line: #E8DEDD;
  --ok: #157A4A;
  --ok-bg: #E4F5EC;
  --err: #B3261E;
  --err-bg: #FCE9E7;
  --accent: #7A1020;
  --accent-ink: #fff;
  --accent-deep: #44080F;
  --accent-soft: #EFD3D7;
  --accent-wash: #F8ECEE;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

.bar { background: var(--maroon); color: #fff; }
.bar-in { width: min(1180px, 100% - 32px); margin: auto; display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.bar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.bar .brand b { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--gold); color: var(--maroon-2); font-family: var(--display); font-weight: 900; }
.bar nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.bar nav a { color: #F6DCDF; text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: 14px; }
.bar nav a:hover, .bar nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.bar .me { font-size: 13px; color: #F6DCDF; display: flex; gap: 12px; align-items: center; }
.bar .me a { color: #fff; }

main { width: min(1180px, 100% - 32px); margin: 24px auto 60px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: 40px; text-transform: uppercase; letter-spacing: .01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.flash { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--err-bg); color: var(--err); }
.flash ul { margin: 0; padding-left: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 400; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #D8CACA; border-radius: 8px; padding: 9px 11px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=color] { width: 54px; height: 40px; border: 1px solid #D8CACA; border-radius: 8px; padding: 3px; background: #fff; }
textarea { min-height: 80px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--maroon); }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--maroon); color: #fff;
}
.btn:hover { background: var(--maroon-2); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--accent-deep); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #D8CACA; }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.danger { background: #fff; color: var(--err); border-color: #F0C3BF; }
.btn.danger:hover { background: var(--err-bg); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #E2A51C; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.lg { padding: 12px 22px; font-size: 16px; }
.linkish { background: none; border: 0; padding: 0; color: var(--err); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; background: #FBF8F8; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* dashboard event list */
.ev-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ev-item {
  display: grid; grid-template-columns: 8px 1fr auto auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 0; overflow: hidden;
}
.ev-item .stripe { align-self: stretch; background: var(--accent); margin: -12px 0; }
.ev-item h3 { font-size: 16px; }
.ev-item h3 a { color: var(--ink); text-decoration: none; }
.ev-item h3 a:hover { text-decoration: underline; }
.ev-item .meta { font-size: 13px; color: var(--muted); }
.ev-item .act { display: flex; gap: 6px; }
.day-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 20px 0 8px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.upcoming { background: #F1EBEA; color: var(--ink-2); }
.pill.live { background: #D9F5E6; color: #0E5C35; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #18A35F; }
.pill.finished { background: #FFF3D6; color: #7A5300; }
.pill.mode { background: var(--accent-wash); color: var(--accent-deep); }

/* event scoring header */
.score-head { background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.score-head .crumb { font-size: 13px; opacity: .85; }
.score-head .crumb a { color: inherit; }
.score-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 58px); text-transform: uppercase; line-height: .9; margin: 6px 0 10px; }
.score-head .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; align-items: center; }
.score-head .facts span { opacity: .8; }
.score-head .pill.upcoming { background: color-mix(in srgb, var(--accent-ink) 18%, transparent); color: inherit; }
.score-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.score-head .btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.score-head select { width: auto; padding: 7px 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-selected="true"] { color: var(--accent-deep); border-bottom-color: var(--accent); }
.tabs a .n { font-weight: 500; color: var(--muted); }

.judges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.judges a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.judges a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.judges a .done { font-size: 12px; opacity: .8; }

.score-grid input[type=number] { width: 86px; text-align: right; padding: 8px; font-variant-numeric: tabular-nums; }
.score-grid input.over { border-color: var(--err); background: var(--err-bg); }
.score-grid .total-cell { font-family: var(--display); font-weight: 800; font-size: 22px; text-align: right; min-width: 80px; }
.score-grid th small { display: block; font-weight: 500; }
.sticky-save { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: 12px 0; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.dirty-note { font-size: 13px; color: var(--err); display: none; }
.is-dirty .dirty-note { display: inline; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .rk { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--muted); }
.rank-list .rk.r1 { color: #C48A00; } .rank-list .rk.r2 { color: #7E8691; } .rank-list .rk.r3 { color: #A8622C; }
.rank-list .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-list small { display: block; color: var(--muted); font-size: 12px; }

.publish-box { border: 2px dashed var(--accent-soft); background: var(--accent-wash); }
.published-box { border-color: #F3D78A; background: #FFF8E6; }

.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.preview-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }

.match-row { display: grid; grid-template-columns: minmax(0,1fr) 72px 14px 72px minmax(0,1fr); gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.match-row > .rnd { grid-row: 1; grid-column: 1; }
.match-row > .winner { grid-row: 1; grid-column: 2 / 5; }
.match-row > .st { grid-row: 1; grid-column: 5; }
.match-row > .nm, .match-row > input, .match-row > span { grid-row: 2; }
.match-row > .acts { grid-row: 3; grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.score-grid td:first-child { min-width: 170px; }
.match-row:last-child { border-bottom: 0; }
.match-row .nm { font-weight: 700; font-size: 15px; }
.match-row .nm.b { text-align: right; }
.match-row input[type=number] { text-align: center; }

.stat-strip { display: flex; gap: 20px; flex-wrap: wrap; }
.stat-strip div b { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.stat-strip div span { font-size: 13px; color: var(--muted); }

.mini-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-lanes li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.mini-lanes .track { grid-column: 1 / -1; height: 6px; background: #F1EBEA; border-radius: 99px; overflow: hidden; }
.mini-lanes .track span { display: block; height: 100%; border-radius: 99px; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--maroon); }
.auth .card { width: min(420px, 100%); padding: 28px; }
.auth h1 { font-family: var(--display); font-weight: 900; font-size: 44px; text-transform: uppercase; line-height: .9; color: var(--maroon); margin-bottom: 6px; }
.auth p.lead { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 900px) {
  .grid-side, .grid-2 { grid-template-columns: 1fr; }
  .match-row > .winner { grid-column: 1 / -1; grid-row: 4; }
  .match-row > .st { grid-column: 1 / -1; grid-row: 5; }
  .match-row > .rnd { grid-column: 1 / -1; }
  .match-row > .acts { grid-row: 6; }
}
@media (max-width: 640px) {
  .ev-item { grid-template-columns: 8px 1fr; }
  .ev-item .act, .ev-item > .pill { grid-column: 2; justify-self: start; }
  .page-head h1 { font-size: 32px; }
}

/* ---------- judged events: segments, progress, finals ---------- */
.seg-card { border-left: 6px solid var(--accent); }
.seg-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 10px; }
.seg-fields .field { flex: 1; min-width: 120px; margin-bottom: 0; }
.seg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.sub-fields { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 14px; }
.sub-fields legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 6px; }
.plain-list { margin: 0; padding-left: 18px; }
.seg-toggle { display: flex; gap: 6px; }
.seg-toggle label { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid #D8CACA; border-radius: 8px; padding: 9px; font-size: 14px; color: var(--ink); cursor: pointer; margin: 0; }
.seg-toggle label:has(input:checked) { border-color: var(--maroon); background: #F8ECEE; font-weight: 700; }
.seg-toggle input { accent-color: var(--maroon); }

.progress th small { display: block; font-weight: 500; color: var(--muted); }
.progress td { white-space: nowrap; font-size: 14px; }
.progress td a { text-decoration: none; font-weight: 600; }
.progress .cell-sub { background: #E9F7EF; } .progress .cell-sub a { color: var(--ok); }
.progress .cell-part { background: #FFF7E0; } .progress .cell-part a { color: #7A5300; }
.progress .cell-none a { color: var(--muted); }
.progress small, .muted { color: var(--muted); }
.sub { display: block; font-size: 12px; color: var(--muted); }
.pick-row { display: grid; gap: 4px; }
.finals-card { border: 2px solid var(--accent-soft); }
.finalist-chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.finalist-chips li { background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.finalist-chips small { color: var(--muted); margin-left: 4px; }
tr.is-finalist td { background: #FFFBEF; }
.award-list { list-style: none; padding: 0; margin: 0; }
.award-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 14px; }
.award-list li:last-child { border-bottom: 0; }
.award-list span { color: var(--ink-2); grid-column: 1 / -1; font-size: 12px; }
.award-list small { color: var(--muted); }

/* photos */
.photo-cell { display: grid; grid-template-columns: 52px auto; gap: 4px 10px; align-items: center; }
.photo-cell .thumb { grid-row: span 2; }
.thumb { width: 52px; height: 64px; border-radius: 8px; object-fit: cover; background: #F1EBEA; display: grid; place-items: center; font-size: 10px; color: var(--muted); text-align: center; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* coronation controls */
.reveal-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.reveal-steps button { width: 100%; text-align: left; font: inherit; font-size: 15px; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.reveal-steps button span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F1EBEA; font-weight: 700; font-size: 13px; flex: none; }
.reveal-steps button em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.reveal-steps li.done button { color: var(--muted); }
.reveal-steps li.done button span { background: var(--ok-bg); color: var(--ok); }
.reveal-steps li.now button { border: 2px solid var(--accent); background: var(--accent-wash); font-weight: 700; }
.reveal-steps li.now button span { background: var(--accent); color: var(--accent-ink); }
.reveal-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.reveal-controls form:last-child { flex: 1; }
.reveal-controls form:last-child .btn { width: 100%; }

/* ---------- judge score sheet (phone first) ---------- */
.judge-event { border-top: 6px solid var(--accent); }
.seg-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.seg-list a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 56px; }
.seg-list a:hover { border-color: var(--accent); }
.seg-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.judge-head h1 { font-size: clamp(30px, 8vw, 52px); }
.seg-tabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 14px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.seg-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: inherit; border: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); font-size: 14px; font-weight: 600; }
.seg-tabs a[aria-current="page"] { background: var(--accent-ink); color: var(--accent); border-color: transparent; }
.seg-intro { margin: 4px 0 14px; }
.seg-intro h2 { font-size: 24px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crit-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crit-legend li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--ink-2); }
.cand-list { display: grid; gap: 12px; }
.cand { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cand-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.cand-photo { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--accent-wash); }
.cand-num-only { display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--accent-deep); }
.cand-no { font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.cand h3 { font-size: 18px; }
.cand-team { font-size: 13px; color: var(--muted); }
.cand-total { text-align: right; }
.cand-total span { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.cand-total small { font-size: 11px; color: var(--muted); }
.cand-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cand-inputs label { margin: 0; display: grid; gap: 4px; }
.cand-inputs label span { font-size: 13px; }
.cand-inputs label small { color: var(--muted); font-weight: 500; }
.cand-inputs input { font-size: 22px; padding: 10px 12px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.cand-inputs input.over { border-color: var(--err); background: var(--err-bg); }
.judge-actions { gap: 10px; }
@media (max-width: 640px) {
  .judge-actions { justify-content: stretch; }
  .judge-actions .btn { flex: 1; }
  .cand-head { grid-template-columns: 56px 1fr auto; }
  .cand-photo { width: 56px; height: 70px; }
}
.tbl th small { display: block; font-weight: 500; }
.tbl td:nth-child(2) { min-width: 150px; }
.cand-inputs input::placeholder { color: #C9B9BA; font-weight: 400; font-size: 16px; }

.inline-edit { display: inline-block; position: relative; text-align: left; }
.inline-edit summary { list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 8px 24px rgba(42,7,16,.12); }

/* ---------- logos ---------- */
.bar-logos { display: inline-flex; gap: 6px; align-items: center; }
.bar-logos img { height: 34px; width: auto; max-width: 48px; object-fit: contain; }
.auth-logos { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.auth-logos img { height: 72px; width: auto; object-fit: contain; }
.auth .card h1, .auth .card p.lead { text-align: center; }
.logo-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logo-slot { display: grid; gap: 8px; justify-items: start; }
.logo-preview { width: 140px; height: 140px; border-radius: 14px; border: 1px dashed #D8CACA; display: grid; place-items: center; background: repeating-conic-gradient(#F4EEEE 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.logo-preview img { max-width: 120px; max-height: 120px; object-fit: contain; }
.logo-preview span { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .logo-uploads { grid-template-columns: 1fr; } }
.danger-card { border-color: #F0C3BF; }
.danger-card h2 { color: var(--err); }
.reset-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-weight: 400; color: var(--ink); }
.reset-option:has(input:checked) { border-color: var(--err); background: #FFF6F5; }
.reset-option input { margin-top: 4px; accent-color: var(--err); }
.reset-option b { display: block; margin-bottom: 2px; }
.reset-option span { font-size: 14px; color: var(--ink-2); }

/* ---------- texture ---------- */
body { background: var(--bg) url(brand/circuit-maroon.svg) 0 0 / 240px 240px repeat; background-blend-mode: normal; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(246,242,241,.95), rgba(246,242,241,.985)); pointer-events: none; }
.bar { position: relative; isolation: isolate; border-bottom: 3px solid var(--gold); background: linear-gradient(90deg, #6A0D1B, #8A1426 60%, #6A0D1B); }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(brand/circuit.svg) 0 0 / 200px 200px repeat; opacity: .12; }
.score-head { position: relative; isolation: isolate; overflow: hidden; }
.score-head::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 360px; aspect-ratio: 1; background: url(brand/gear.svg) center / contain no-repeat; opacity: .22; filter: brightness(4) saturate(0); }
.card { box-shadow: 0 1px 0 rgba(42,7,16,.04); }

/* dashboard banner */
.fest-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: #fff; border-radius: 16px; padding: 20px 24px; margin-bottom: 18px; background: radial-gradient(90% 140% at 0% 0%, #8A1426 0%, #4A0812 70%); }
.fest-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(brand/circuit.svg) 0 0 / 200px 200px repeat; opacity: .14; }
.fest-banner::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 300px; aspect-ratio: 1; background: url(brand/gear.svg) center / contain no-repeat; opacity: .25; }
.fest-banner .logos img { height: 64px; width: auto; }
.fest-banner .logos { display: flex; gap: 8px; }
.fest-banner h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .9; margin: 0; }
.fest-banner h1 span { color: var(--gold); }
.fest-banner p { margin: 4px 0 0; color: #F6DCDF; font-size: 14px; }
.fest-banner .meter { margin-left: auto; min-width: 200px; }
.fest-banner .meter b { font-family: var(--display); font-weight: 900; font-size: 34px; }
.fest-banner .meter small { color: #F6DCDF; }
.fest-banner .meter i { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); margin-top: 6px; overflow: hidden; }
.fest-banner .meter i span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

/* sign-in */
.auth { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(80% 80% at 50% 0%, #8A1426, #4A0812 75%); }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(brand/circuit.svg) 0 0 / 220px 220px repeat; opacity: .13; }
.auth::after { content: ""; position: absolute; z-index: -1; width: 700px; aspect-ratio: 1; right: -220px; bottom: -260px; background: url(brand/gear.svg) center / contain no-repeat; opacity: .14; animation: gearTurn 120s linear infinite; }
.auth .card { border-top: 4px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
@keyframes gearTurn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth::after { animation: none; } }
