:root {
  --navy: #07396f;
  --navy-dark: #052b55;
  --blue: #0f6fdc;
  --sky: #eaf4ff;
  --gold: #f5b942;
  --green: #1f9d73;
  --red: #d84b4b;
  --text: #132238;
  --muted: #68778d;
  --line: #dbe5f0;
  --surface: #ffffff;
  --bg: #f3f7fb;
  --shadow: 0 18px 50px rgba(7, 57, 111, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 111, 220, 0.12), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(245, 185, 66, 0.14), transparent 25%),
    var(--bg);
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: white;
  background: rgba(7, 57, 111, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(5, 43, 85, 0.18);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: white;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-copy strong { display: block; }
.brand-copy span { display: block; opacity: 0.78; font-size: 0.82rem; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.hero-panel, .panel, .login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 229, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-panel { padding: clamp(24px, 4vw, 44px); }
.hero-panel h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.045em; }
.hero-panel p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: 0.86rem; margin-bottom: 18px; }

.status-panel { padding: 24px; display: grid; align-content: center; gap: 14px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.status-open { background: #e2f7ef; color: #0d7955; }
.status-closed { background: #fbe9e9; color: #a52f2f; }
.event-code { text-align: center; font-size: 2.2rem; font-weight: 900; letter-spacing: 0.12em; color: var(--navy); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { padding: 24px; }
.panel h2, .panel h3 { margin-top: 0; }
.panel-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.panel-title h2, .panel-title h3 { margin: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 111, 220, 0.12); }
.textarea { min-height: 110px; resize: vertical; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 800;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(7, 57, 111, 0.22); }
.btn-blue { background: var(--blue); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-gold { background: var(--gold); color: #3b2a03; }
.btn-soft { background: var(--sky); color: var(--navy); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid var(--line); }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f9fbfd); }
.metric span { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.metric strong { font-size: 1.8rem; color: var(--navy); }

.switch-row { display: flex; align-items: center; gap: 10px; }
.switch-row input { width: 18px; height: 18px; }

.qr-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.qr-wrap img { width: 180px; height: 180px; border-radius: 18px; border: 1px solid var(--line); background: white; padding: 8px; }
.url-box { word-break: break-all; padding: 12px; background: var(--sky); border-radius: 12px; color: var(--navy); font-weight: 700; }

.category-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: #fff; }
.category-card + .category-card { margin-top: 16px; }
.category-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.category-head h3 { margin: 0; }
.rank-list { display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 34px minmax(110px, 1fr) 3fr 70px; align-items: center; gap: 10px; }
.rank-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--sky); color: var(--navy); font-weight: 900; }
.bar-track { height: 12px; background: #e9eef4; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--blue)); transition: width 0.5s ease; }
.rank-score { text-align: right; font-weight: 900; color: var(--navy); }

.winner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.winner-card { padding: 26px; border-radius: 22px; color: white; background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; overflow: hidden; }
.winner-card::after { content: ''; position: absolute; width: 160px; height: 160px; right: -50px; bottom: -70px; background: rgba(255,255,255,0.12); border-radius: 50%; }
.winner-card .icon { font-size: 2rem; }
.winner-card h3 { margin: 12px 0 4px; font-size: 1rem; opacity: 0.82; }
.winner-card strong { font-size: 1.8rem; display: block; }
.winner-card span { opacity: 0.86; }

.notice { padding: 14px 16px; border-radius: 14px; margin-top: 14px; font-weight: 700; }
.notice-info { background: var(--sky); color: var(--navy); }
.notice-success { background: #e4f7ef; color: #0d7955; }
.notice-error { background: #fdecec; color: #9d2f2f; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); padding: 34px; }
.login-card h1 { margin-top: 0; }

.vote-intro { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.vote-intro h1 { margin-bottom: 10px; }
.vote-intro p { color: var(--muted); }
.score-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.legend-chip { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: white; font-weight: 800; }

.vote-category { margin-top: 24px; }
.vote-category h2 { display: flex; align-items: center; gap: 10px; }
.vote-table { display: grid; gap: 14px; }
.vote-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) repeat(3, minmax(76px, 0.7fr)); gap: 10px; align-items: stretch; }
.vote-group { display: flex; align-items: center; font-weight: 800; padding: 12px; border-radius: 14px; background: var(--sky); color: var(--navy); }
.score-option { position: relative; }
.score-option input { position: absolute; opacity: 0; pointer-events: none; }
.score-option label {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 900;
  transition: 0.18s ease;
}
.score-option label span { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.score-option input:checked + label { border-color: var(--blue); background: var(--sky); color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 111, 220, 0.11); transform: translateY(-1px); }

.results-public { margin-top: 24px; }
.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 43, 85, 0.9);
  color: white;
}
.countdown-number { font-size: clamp(5rem, 18vw, 12rem); font-weight: 1000; }

.confetti { position: fixed; pointer-events: none; inset: 0; z-index: 99; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 20px; background: var(--gold); animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 860px) {
  .hero, .grid-2, .grid-3, .winner-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .qr-wrap { grid-template-columns: 1fr; }
  .qr-wrap img { margin: auto; }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .brand-copy span { display: none; }
  .container { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .panel, .hero-panel { padding: 18px; border-radius: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .vote-row { grid-template-columns: 1fr repeat(3, 1fr); }
  .vote-group { grid-column: 1 / -1; }
  .rank-item { grid-template-columns: 30px minmax(95px, 1fr) 1.6fr 56px; font-size: 0.86rem; }
}

/* Administrator display controls */
.announcement-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.announcement-control-grid .btn { width: 100%; }
.screen-tip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px dashed #bcd1e7;
  color: var(--muted);
  line-height: 1.55;
}
.screen-tip strong { color: var(--navy); }

/* Dedicated projector displays */
.display-body {
  min-height: 100vh;
  color: white;
  background:
    radial-gradient(circle at 12% 10%, rgba(22, 119, 231, 0.28), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(245, 185, 66, 0.18), transparent 28%),
    linear-gradient(145deg, #031b35 0%, #062d58 58%, #041d39 100%);
  overflow-x: hidden;
}
.display-shell { min-height: 100vh; }
.display-access {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.display-access-card {
  width: min(700px, 100%);
  text-align: center;
  padding: 48px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 30px 90px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
}
.display-access-card h1 { font-size: clamp(2rem, 6vw, 4.2rem); margin: 12px 0; }
.display-access-card p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }
.display-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(22px, 4vw, 58px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(3, 27, 53, 0.82);
  backdrop-filter: blur(18px);
}
.display-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.display-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #062d58;
  background: white;
  font-weight: 950;
  flex: 0 0 auto;
}
.display-brand strong { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.display-brand span { display: block; margin-top: 2px; color: rgba(255,255,255,0.62); font-size: 0.78rem; }
.display-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.display-mini-button,
.display-status {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 13px;
  color: white;
  background: rgba(255,255,255,0.08);
  font-size: 0.82rem;
  font-weight: 800;
}
.display-mini-button { cursor: pointer; }
.display-mini-button:hover { background: rgba(255,255,255,0.14); }
.display-status-open { color: #95f0ca; border-color: rgba(71, 216, 157, 0.38); background: rgba(31, 157, 115, 0.14); }
.display-status-closed { color: #ffb7b7; border-color: rgba(216, 75, 75, 0.4); background: rgba(216, 75, 75, 0.14); }
.display-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd777;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.display-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: rgba(255,255,255,0.56);
  font-size: 0.82rem;
}

/* Live presentation screen */
.live-screen-main {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 34px;
}
.live-screen-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}
.live-screen-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(2.3rem, 5.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.live-screen-hero p { margin: 0; color: rgba(255,255,255,0.65); font-size: clamp(0.95rem, 1.5vw, 1.2rem); }
.live-code-card {
  min-width: 210px;
  padding: 20px 26px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
}
.live-code-card span { display: block; color: rgba(255,255,255,0.58); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.live-code-card strong { display: block; margin-top: 6px; color: #ffd777; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: 0.12em; }
.live-progress-panel {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.live-progress-copy span { display: block; color: rgba(255,255,255,0.58); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.live-progress-copy strong { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.live-progress-copy strong b:first-child { color: #ffd777; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 0.95; }
.live-progress-copy strong b:last-child { color: white; font-size: clamp(1.5rem, 2.8vw, 2.6rem); }
.live-progress-copy strong em { font-style: normal; color: rgba(255,255,255,0.28); font-size: 2rem; }
.live-progress-copy small { display: block; margin-top: 6px; color: rgba(255,255,255,0.54); }
.live-progress-track { height: 18px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.live-progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1a82ef, #52d5a4, #ffd777); transition: width 0.8s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 24px rgba(82,213,164,0.42); }
.live-connected { color: rgba(255,255,255,0.7); font-weight: 800; white-space: nowrap; }
.live-waiting-stage {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  text-align: left;
}
.live-waiting-stage h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 4rem); }
.live-waiting-stage p { margin: 0; color: rgba(255,255,255,0.58); font-size: 1.1rem; }
.live-orbit { position: relative; width: 210px; height: 210px; display: grid; place-items: center; flex: 0 0 auto; }
.live-orbit-core {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #062d58;
  background: linear-gradient(135deg, white, #ffd777);
  font-size: 4rem;
  font-weight: 1000;
  box-shadow: 0 0 65px rgba(245,185,66,0.34);
  animation: orbitPulse 1.8s ease-in-out;
}
.live-orbit i { position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); animation: orbitSpin 5s linear ; }
.live-orbit i:nth-child(2) { inset: 28px; border-style: dashed; animation-duration: 3.8s; animation-direction: reverse; }
.live-orbit i:nth-child(3) { inset: 0; border-color: rgba(245,185,66,0.18); animation-duration: 7s; }
@keyframes orbitPulse { 50% { transform: scale(1.07); box-shadow: 0 0 90px rgba(245,185,66,0.48); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.live-charts { margin-top: 26px; }
.live-chart-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.live-chart-heading h2 { margin: 5px 0 0; font-size: clamp(1.8rem, 3vw, 3rem); }
.freeze-badge { padding: 9px 14px; border-radius: 999px; color: #cde9ff; background: rgba(15,111,220,0.18); border: 1px solid rgba(117,186,255,0.26); font-weight: 850; }
.live-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.live-chart-grid.single { grid-template-columns: minmax(0, 1fr); }
.live-chart-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-category-panel {
  min-width: 0;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.055));
  box-shadow: 0 24px 70px rgba(0,0,0,0.14);
}
.live-category-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.live-category-title > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,0.1); font-size: 1.7rem; }
.live-category-title small { display: block; color: rgba(255,255,255,0.48); letter-spacing: 0.13em; font-size: 0.67rem; }
.live-category-title h3 { margin: 3px 0 0; font-size: 1.35rem; }
.live-bars { display: grid; gap: 14px; }
.live-bar-row { display: grid; grid-template-columns: minmax(90px, 0.9fr) minmax(170px, 2.4fr) 58px; align-items: center; gap: 12px; }
.live-bar-name { font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar-track { height: 18px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.09); }
.live-bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1479df, #52d5a4, #ffd777); transition: width 0.9s cubic-bezier(.18,.82,.18,1); box-shadow: 0 0 20px rgba(20,121,223,0.26); }
.live-bar-score { text-align: right; color: #ffd777; font-size: 1.2rem; font-weight: 950; font-variant-numeric: tabular-nums; }
.live-bar-score.score-masked { color: rgba(255,255,255,0.38); letter-spacing: 0.14em; font-size: 0.9rem; }
.display-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  background: radial-gradient(circle, rgba(15,111,220,0.34), transparent 38%), rgba(2,18,36,0.96);
  backdrop-filter: blur(18px);
}
.display-countdown-caption { color: #ffd777; font-weight: 950; letter-spacing: 0.18em; font-size: clamp(0.8rem, 1.5vw, 1.2rem); }
.display-countdown-number { font-size: clamp(8rem, 24vw, 18rem); line-height: 0.9; font-weight: 1000; letter-spacing: -0.08em; text-shadow: 0 0 80px rgba(15,111,220,0.48); }
.display-pulse-overlay { position: fixed; inset: 0; z-index: 80; pointer-events: none; border: 10px solid rgba(245,185,66,0.72); box-shadow: inset 0 0 100px rgba(245,185,66,0.18); animation: screenPulse 0.65s ease-out forwards; }
@keyframes screenPulse { from { opacity: 1; transform: scale(0.995); } to { opacity: 0; transform: scale(1.02); } }

/* Announcement screen */
.announcement-display-body {
  background:
    radial-gradient(circle at 50% 18%, rgba(245,185,66,0.22), transparent 34%),
    radial-gradient(circle at 15% 80%, rgba(15,111,220,0.25), transparent 34%),
    linear-gradient(145deg, #020f20, #052b55 58%, #020f20);
}
.announcement-main {
  width: min(1480px, calc(100% - 48px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 28px 0 18px;
}
.announcement-stage {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: stageIn 0.65s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes stageIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.award-crown { font-size: clamp(5rem, 10vw, 9rem); filter: drop-shadow(0 0 38px rgba(245,185,66,0.3)); animation: crownFloat 2.4s ease-in-out; }
@keyframes crownFloat { 50% { transform: translateY(-12px) rotate(2deg); } }
.announcement-stage > h1 {
  max-width: 1200px;
  margin: 12px 0 10px;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.announcement-stage > p { max-width: 820px; margin: 0 0 26px; color: rgba(255,255,255,0.62); font-size: clamp(1rem, 1.6vw, 1.28rem); }
.locked-awards { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 18px; width: min(900px, 100%); margin-top: 16px; }
.locked-award { position: relative; padding: 28px; border-radius: 28px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.07); overflow: hidden; }
.locked-award span { display: block; font-size: 2.6rem; }
.locked-award strong { display: block; margin-top: 8px; font-size: 1.3rem; }
.locked-award em { position: absolute; right: 18px; top: 12px; color: rgba(255,255,255,0.12); font-size: 6rem; font-style: normal; font-weight: 1000; }
.announcement-awards-grid { width: min(1400px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.announcement-award-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border-radius: 34px;
  color: white;
  border: 1px solid rgba(255,255,255,0.17);
  background:
    radial-gradient(circle at 50% 0%, rgba(245,185,66,0.18), transparent 42%),
    linear-gradient(150deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  box-shadow: 0 30px 100px rgba(0,0,0,0.24);
  overflow: hidden;
}
.announcement-award-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(245,185,66,0); transition: 0.4s; }
.announcement-award-card.featured { border-color: rgba(245,185,66,0.52); box-shadow: 0 30px 110px rgba(245,185,66,0.16), 0 30px 100px rgba(0,0,0,0.24); animation: featuredReveal 0.9s cubic-bezier(.2,.85,.2,1) both; }
.announcement-award-card.featured::before { border-color: rgba(245,185,66,0.42); box-shadow: inset 0 0 65px rgba(245,185,66,0.08); }
@keyframes featuredReveal { from { opacity: 0; transform: scale(.88) rotateX(12deg); filter: blur(7px); } to { opacity: 1; transform: scale(1) rotateX(0); filter: blur(0); } }
.announcement-award-card.compact { opacity: 0.72; transform: scale(0.94); }
.announcement-award-card.locked { filter: saturate(.55); background: rgba(255,255,255,0.045); }
.announcement-award-icon { font-size: clamp(3rem, 6vw, 5.6rem); filter: drop-shadow(0 0 28px rgba(245,185,66,0.26)); }
.announcement-award-label { margin-top: 12px; color: #ffd777; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; }
.announcement-winner-name { display: block; max-width: 95%; margin-top: 10px; font-size: clamp(2.1rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; }
.announcement-score-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 20px; color: rgba(255,255,255,0.66); }
.announcement-score-line b { color: #ffd777; font-size: 2rem; }
.announcement-score-line small { color: rgba(255,255,255,0.44); }
.announcement-lock { margin-top: 20px; font-size: 2.4rem; opacity: 0.5; }
.announcement-footer { display: flex; justify-content: space-between; gap: 18px; padding-top: 16px; color: rgba(255,255,255,0.44); font-size: 0.8rem; }
.announcement-countdown { background: radial-gradient(circle at center, rgba(245,185,66,0.26), transparent 36%), rgba(2,15,32,0.97); }
.announcement-flash { position: fixed; inset: 0; z-index: 118; pointer-events: none; background: white; animation: announcementFlash .65s ease-out forwards; }
@keyframes announcementFlash { from { opacity: .9; } to { opacity: 0; } }

@media (max-width: 980px) {
  .display-header { align-items: flex-start; }
  .display-header-actions { max-width: 50%; }
  .live-screen-hero { grid-template-columns: 1fr; }
  .live-code-card { width: 100%; }
  .live-progress-panel { grid-template-columns: 1fr; gap: 14px; }
  .live-connected { white-space: normal; }
  .live-chart-grid, .live-chart-grid.two { grid-template-columns: 1fr; }
  .locked-awards, .announcement-awards-grid { grid-template-columns: 1fr; }
  .announcement-stage { min-height: 560px; }
}

@media (max-width: 720px) {
  .announcement-control-grid { grid-template-columns: 1fr; }
  .display-header { position: relative; flex-direction: column; }
  .display-header-actions { max-width: none; width: 100%; justify-content: flex-start; }
  .display-brand strong { max-width: 76vw; }
  .live-screen-main, .announcement-main { width: min(100% - 24px, 1500px); }
  .live-screen-hero h1 { font-size: 2.55rem; }
  .live-waiting-stage { min-height: 360px; flex-direction: column; gap: 24px; text-align: center; }
  .live-orbit { width: 160px; height: 160px; }
  .live-orbit-core { width: 88px; height: 88px; font-size: 3rem; }
  .live-bar-row { grid-template-columns: 86px minmax(120px, 1fr) 48px; gap: 8px; font-size: 0.86rem; }
  .live-category-panel { padding: 16px; }
  .display-footer, .announcement-footer { flex-direction: column; }
  .locked-awards, .announcement-awards-grid { grid-template-columns: 1fr; }
  .announcement-stage { min-height: 650px; }
  .announcement-award-card.compact { transform: none; }
}
