:root {
  --navy: #071a36;
  --blue: #0476da;
  --cyan: #22c9f2;
  --yellow: #ffd24a;
  --green: #36dda0;
  --white: #f8fbff;
  --muted: #9db0c9;
  --card: #0a2244;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-touch-callout: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding:
    max(14px, env(safe-area-inset-top))
    12px
    max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 86% 8%, rgb(41 200 244 / 18%), transparent 28%),
    radial-gradient(circle at 0 78%, rgb(0 116 218 / 23%), transparent 34%),
    linear-gradient(145deg, #06142d, #092a50 56%, #07162d);
}

.app-shell::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: -120px;
  right: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid rgb(255 214 73 / 20%);
  background: radial-gradient(circle, rgb(255 214 73 / 25%), transparent 65%);
}

.ambient-two {
  bottom: 12%;
  left: -170px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgb(29 178 255 / 15%), transparent 68%);
}

.game-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 26px;
  background: rgb(6 24 50 / 91%);
  box-shadow: 0 25px 75px rgb(0 0 0 / 32%);
  backdrop-filter: blur(16px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 8px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 24px rgb(2 135 218 / 25%);
  color: #04182f;
  font-size: 22px;
  font-weight: 950;
  font-style: italic;
}

.brand-row p,
.brand-row span {
  margin: 0;
}

.brand-row p {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-row span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.rank-link {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 999px;
  color: #cfe7f6;
  font-size: 11px;
  text-decoration: none;
}

.hero {
  padding: 24px 20px 18px;
}

.overline {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(31px, 9vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy {
  margin: 10px 0 0;
  color: #c3d3e6;
  font-size: 14px;
}

.race-stage {
  position: relative;
  height: 232px;
  overflow: hidden;
  border-block: 1px solid rgb(255 255 255 / 7%);
  background:
    linear-gradient(to bottom, rgb(9 86 143 / 75%), rgb(7 48 82 / 94%) 61%, #123443 62%);
}

.sun {
  position: absolute;
  top: 24px;
  left: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 34px rgb(255 210 74 / 55%);
}

.cloud {
  position: absolute;
  width: 58px;
  height: 13px;
  border-radius: 20px;
  background: rgb(255 255 255 / 13%);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 2px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 10px;
  width: 24px;
  height: 24px;
}

.cloud::after {
  right: 8px;
  width: 18px;
  height: 18px;
}

.cloud-a {
  top: 48px;
  left: 38%;
}

.cloud-b {
  top: 90px;
  right: 12%;
  scale: 0.72;
}

.sky-energy {
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 3;
  text-align: right;
}

.sky-energy span,
.sky-energy strong {
  display: block;
}

.sky-energy span {
  color: #bfe0f3;
  font-size: 10px;
}

.sky-energy strong {
  color: var(--yellow);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.city {
  position: absolute;
  right: 18px;
  bottom: 70px;
  display: flex;
  align-items: end;
  gap: 3px;
  opacity: 0.4;
}

.city i {
  width: 12px;
  border: 1px solid rgb(120 210 255 / 42%);
  background:
    repeating-linear-gradient(to bottom, transparent 0 6px, rgb(255 214 74 / 60%) 7px 8px),
    rgb(7 38 73 / 90%);
}

.city i:nth-child(1),
.city i:nth-child(4) {
  height: 28px;
}

.city i:nth-child(2),
.city i:nth-child(6) {
  height: 43px;
}

.city i:nth-child(3),
.city i:nth-child(5) {
  height: 56px;
}

.city i:nth-child(7) {
  height: 36px;
}

.solar-panels {
  position: absolute;
  bottom: 65px;
  left: 17px;
  display: flex;
  gap: 5px;
  transform: skewY(-7deg);
}

.solar-panels i {
  width: 40px;
  height: 27px;
  border: 1px solid #66caff;
  background:
    linear-gradient(90deg, transparent 47%, rgb(118 207 255 / 55%) 48% 52%, transparent 53%),
    linear-gradient(transparent 47%, rgb(118 207 255 / 55%) 48% 52%, transparent 53%),
    linear-gradient(145deg, #0b4d8a, #071c48);
  box-shadow: 0 5px 10px rgb(0 0 0 / 22%);
}

.solar-panels i:nth-child(2) {
  translate: 0 5px;
}

.solar-panels i:nth-child(3) {
  translate: 0 10px;
}

.track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 66px;
  background: linear-gradient(150deg, #193f4d, #102b3c);
}

.road-line {
  position: absolute;
  top: 40px;
  right: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 40%) 0 18px, transparent 18px 32px);
}

.race-car {
  position: absolute;
  top: 13px;
  left: 2%;
  width: 50px;
  height: 24px;
  border-radius: 12px 18px 6px 6px;
  background: linear-gradient(135deg, #ffe363, #ff9e18);
  box-shadow: 0 5px 20px rgb(255 183 36 / 30%);
  transition: left 150ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.race-car::before {
  position: absolute;
  top: -9px;
  left: 14px;
  width: 25px;
  height: 13px;
  clip-path: polygon(22% 0, 76% 0, 100% 100%, 0 100%);
  background: #48bdea;
  content: "";
}

.race-car > span {
  position: absolute;
  top: 2px;
  left: 18px;
  color: #061d3f;
  font-size: 13px;
  filter: grayscale(1);
}

.wheel {
  position: absolute;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border: 3px solid #061426;
  border-radius: 50%;
  background: #bed9e6;
}

.wheel-a {
  left: 7px;
}

.wheel-b {
  right: 7px;
}

.finish-flag {
  position: absolute;
  top: 8px;
  right: 11px;
  color: rgb(255 255 255 / 45%);
  font-size: 9px;
  font-weight: 800;
}

.finish-flag::after {
  display: block;
  width: 2px;
  height: 42px;
  margin: 3px auto 0;
  background: repeating-linear-gradient(to bottom, white 0 4px, #122235 4px 8px);
  content: "";
}

.panel {
  min-height: 310px;
  padding: 20px;
}

.section-title span,
.section-title strong {
  display: block;
}

.section-title span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-title strong {
  margin-top: 5px;
  font-size: 19px;
}

label {
  display: block;
  margin-top: 15px;
}

label > span {
  display: block;
  margin-bottom: 6px;
  color: #b6c7da;
  font-size: 11px;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 13px;
  outline: none;
  background: rgb(255 255 255 / 6%);
  color: var(--white);
}

input:focus {
  border-color: rgb(34 201 242 / 60%);
  box-shadow: 0 0 0 3px rgb(34 201 242 / 8%);
}

input::placeholder {
  color: #657b96;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgb(0 135 226 / 25%);
  color: #04182f;
  cursor: pointer;
  font-weight: 900;
}

.primary-button:active {
  scale: 0.985;
}

.safety-copy {
  margin: 10px 0 0;
  color: #758ba6;
  font-size: 10px;
  text-align: center;
}

.ready-panel {
  padding-top: 42px;
  text-align: center;
}

.ready-panel .ready-label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ready-panel > strong,
.ready-panel > span {
  display: block;
}

.ready-panel > strong {
  font-size: 28px;
}

.ready-panel > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.button-reset {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.waiting-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.waiting-panel h2 {
  margin: 18px 0 0;
  font-size: 24px;
}

.waiting-panel > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.waiting-signal {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.waiting-signal i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgb(54 221 160 / 55%);
  animation: waiting-wave 1.2s ease-in-out infinite;
}

.waiting-signal i:nth-child(2) {
  animation-delay: 0.15s;
}

.waiting-signal i:nth-child(3) {
  animation-delay: 0.3s;
}

.countdown-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.countdown-panel p,
.countdown-panel span {
  margin: 0;
  color: var(--muted);
}

.countdown-panel p {
  font-size: 13px;
}

.countdown-panel strong {
  margin: 6px 0;
  color: var(--yellow);
  font-size: 96px;
  line-height: 1;
  text-shadow: 0 0 34px rgb(255 210 74 / 28%);
}

.countdown-panel span {
  font-size: 12px;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.live-grid div {
  padding: 15px 10px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
  text-align: center;
}

.live-grid span,
.live-grid strong {
  display: block;
}

.live-grid span {
  color: var(--muted);
  font-size: 10px;
}

.live-grid strong {
  margin-top: 3px;
  color: var(--yellow);
  font-size: 29px;
  font-variant-numeric: tabular-nums;
}

.energy-bar {
  height: 11px;
  margin: 22px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.energy-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--yellow));
  box-shadow: 0 0 18px rgb(54 221 160 / 40%);
  transition: width 130ms ease-out;
}

.playing-panel h2,
.permission-panel h2 {
  margin: 0;
  font-size: 24px;
  text-align: center;
}

.playing-panel > p,
.permission-panel > p {
  margin: 8px auto 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.result-panel {
  text-align: center;
}

.result-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.score-ring {
  display: grid;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  place-content: center;
  border: 1px solid rgb(255 210 74 / 28%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 210 74 / 13%), transparent 66%);
  box-shadow: inset 0 0 32px rgb(255 210 74 / 6%);
}

.score-ring strong,
.score-ring span {
  display: block;
}

.score-ring strong {
  color: var(--yellow);
  font-size: 56px;
  line-height: 1;
}

.score-ring span {
  margin-top: 5px;
  color: #b8cbe0;
  font-size: 10px;
}

.rank-result {
  margin: 14px 0 0;
  color: #dce9f4;
  font-size: 14px;
}

.text-button {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 12px;
  text-decoration: none;
}

.permission-panel {
  text-align: center;
}

.warning-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 12px auto 18px;
  place-items: center;
  border: 1px solid rgb(255 210 74 / 36%);
  border-radius: 50%;
  background: rgb(255 210 74 / 9%);
  color: var(--yellow);
  font-size: 30px;
  font-weight: 900;
}

.leaderboard {
  margin: 0 14px 16px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 20px;
  background: rgb(255 255 255 / 3%);
}

.leaderboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.leaderboard-heading span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.leaderboard-heading h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.leaderboard-heading button {
  border: 0;
  background: transparent;
  color: #92aac2;
  cursor: pointer;
  font-size: 11px;
}

.leaderboard ol {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border-top: 1px solid rgb(255 255 255 / 6%);
}

.leaderboard li:first-child {
  border-top: 0;
}

.leaderboard .rank-number {
  color: #66809b;
  font-size: 12px;
  font-weight: 900;
}

.leaderboard li:nth-child(1) .rank-number {
  color: var(--yellow);
}

.leaderboard li:nth-child(2) .rank-number {
  color: #c8d9e5;
}

.leaderboard li:nth-child(3) .rank-number {
  color: #e4aa77;
}

.rank-person strong,
.rank-person small {
  display: block;
}

.rank-person strong {
  font-size: 13px;
}

.rank-person small {
  margin-top: 2px;
  color: #7188a3;
  font-size: 9px;
}

.rank-score {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 900;
}

.empty-rank {
  display: block !important;
  padding: 24px 0;
  color: #6f86a0;
  font-size: 11px;
  text-align: center;
}

footer {
  padding: 2px 18px 20px;
  color: #667e99;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
}

.admin-body {
  background: #06152d;
}

.admin-shell {
  width: min(100% - 24px, 1200px);
  margin: 0 auto;
  padding: 24px 0 50px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
}

.admin-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button,
.admin-login button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 11px;
  background: rgb(255 255 255 / 6%);
  color: var(--white);
  cursor: pointer;
}

.admin-login {
  width: min(100%, 420px);
  margin: 14vh auto 0;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  background: rgb(255 255 255 / 4%);
}

.admin-login h1 {
  margin: 0 0 8px;
  font-size: 25px;
}

.admin-login p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.admin-login button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04182f;
  font-weight: 900;
}

.admin-error {
  min-height: 18px;
  margin-top: 10px !important;
  color: #ff9b9b !important;
}

.round-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgb(34 201 242 / 18%);
  border-radius: 15px;
  background: rgb(34 201 242 / 6%);
}

.round-control > div {
  margin-right: auto;
}

.round-control span,
.round-control strong,
.round-control small {
  display: block;
}

.round-control span,
.round-control small {
  color: var(--muted);
  font-size: 10px;
}

.round-control strong {
  margin: 3px 0;
  color: var(--yellow);
  font-size: 22px;
}

.round-control a,
.round-control button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 11px;
  background: rgb(255 255 255 / 6%);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.round-control a {
  display: grid;
  place-items: center;
}

.round-control button {
  border-color: rgb(255 210 74 / 35%);
  background: rgb(255 210 74 / 11%);
  color: var(--yellow);
  font-weight: 800;
}

.round-control button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 15px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  margin-top: 5px;
  color: var(--yellow);
  font-size: 25px;
}

.admin-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-tools input {
  max-width: 320px;
}

.admin-updated {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: rgb(255 255 255 / 3%);
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #0b2344;
  color: #8fa7c0;
  font-weight: 700;
}

td {
  color: #d8e5f1;
}

td.score-cell {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.status-yes {
  color: var(--green);
}

.status-no {
  color: #ff9f9f;
}

.screen-body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgb(33 197 242 / 20%), transparent 30%),
    linear-gradient(145deg, #06142c, #0a2c52);
}

.screen-auth {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgb(33 197 242 / 18%), transparent 34%),
    rgb(4 18 39 / 96%);
  backdrop-filter: blur(18px);
}

.screen-auth-card {
  display: grid;
  width: min(100%, 460px);
  padding: 38px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  background: rgb(255 255 255 / 6%);
  box-shadow: 0 28px 80px rgb(0 0 0 / 28%);
}

.screen-auth-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.screen-auth-card h1 {
  margin: 10px 0 0;
  font-size: 38px;
}

.screen-auth-card p {
  margin: 8px 0 24px;
  color: var(--muted);
}

.screen-auth-card input,
.screen-auth-card button {
  min-height: 52px;
  border-radius: 12px;
  font: inherit;
}

.screen-auth-card input {
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 14%);
  outline: none;
  background: rgb(3 15 33 / 75%);
  color: var(--white);
}

.screen-auth-card input:focus {
  border-color: rgb(33 197 242 / 70%);
  box-shadow: 0 0 0 3px rgb(33 197 242 / 12%);
}

.screen-auth-card button {
  margin-top: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #031426;
  cursor: pointer;
  font-weight: 900;
}

.screen-auth-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.screen-auth-card small {
  min-height: 1.5em;
  margin-top: 10px;
  color: #ff9f9f;
  text-align: center;
}

.screen-shell {
  display: grid;
  min-height: 100vh;
  padding: 4vw;
  align-content: center;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
}

.screen-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(14px, 1.5vw, 24px);
  font-weight: 900;
  letter-spacing: 0.2em;
}

.screen-round-meta {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.screen-round-meta > strong {
  color: var(--yellow);
  font-size: clamp(16px, 1.8vw, 28px);
}

.screen-round-meta > span {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  color: #b8cce0;
  font-size: clamp(12px, 1.2vw, 19px);
}

.screen-round-meta i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgb(54 221 160 / 70%);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.screen-round-meta b {
  font-weight: 600;
}

.screen-game-timer {
  display: flex;
  min-width: 142px;
  min-height: 52px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 210 74 / 35%);
  border-radius: 14px;
  background: rgb(255 210 74 / 10%);
  box-shadow: inset 0 0 20px rgb(255 210 74 / 6%);
}

.screen-game-timer small {
  margin-right: 8px;
  color: #b8cce0;
  font-size: clamp(10px, 0.8vw, 13px);
}

.screen-game-timer strong {
  color: var(--yellow);
  font-size: clamp(28px, 2.6vw, 44px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.screen-game-timer em {
  margin: 10px 0 0 3px;
  color: var(--yellow);
  font-size: 11px;
  font-style: normal;
}

.screen-controls {
  display: flex;
  gap: 0.6vw;
}

.screen-controls button {
  min-height: 38px;
  padding: 0 1vw;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: var(--white);
  cursor: pointer;
  font-size: clamp(11px, 0.9vw, 15px);
}

.screen-controls button:first-child {
  border-color: rgb(54 221 160 / 38%);
  background: rgb(54 221 160 / 12%);
  color: var(--green);
  font-weight: 900;
}

.screen-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.screen-shell h1 {
  margin: 0.4vw 0 2vw;
  font-size: clamp(52px, 7vw, 110px);
  letter-spacing: -0.06em;
}

.screen-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1vw;
}

.screen-rank {
  position: relative;
  min-height: 230px;
  padding: 1.5vw;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.4vw;
  background: rgb(255 255 255 / 5%);
}

.screen-rank.is-live {
  border-color: rgb(54 221 160 / 46%);
  background: linear-gradient(150deg, rgb(54 221 160 / 10%), rgb(255 255 255 / 5%));
  box-shadow: inset 0 0 30px rgb(54 221 160 / 5%);
}

.screen-rank.is-ready {
  border-color: rgb(34 201 242 / 30%);
  background: linear-gradient(150deg, rgb(34 201 242 / 8%), rgb(255 255 255 / 4%));
}

.screen-rank:first-child {
  border-color: rgb(255 210 74 / 36%);
  background: rgb(255 210 74 / 8%);
}

.screen-rank b {
  color: var(--yellow);
  font-size: clamp(24px, 3vw, 48px);
}

.screen-player-status {
  position: absolute;
  top: 1.5vw;
  right: 1.5vw;
  padding: 0.35em 0.7em;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  color: var(--muted);
  font-size: clamp(9px, 0.85vw, 14px);
  font-style: normal;
}

.screen-rank.is-live .screen-player-status {
  border-color: rgb(54 221 160 / 30%);
  color: var(--green);
}

.screen-rank.is-ready .screen-player-status {
  border-color: rgb(34 201 242 / 28%);
  color: var(--cyan);
}

.screen-rank strong,
.screen-rank span {
  display: block;
}

.screen-rank strong {
  margin-top: 2vw;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 34px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-rank small {
  display: block;
  height: 1.4em;
  margin-top: 0.4vw;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-rank span {
  margin-top: 1.2vw;
  color: var(--yellow);
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 950;
}

.screen-empty {
  grid-column: 1 / -1;
  min-height: 230px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px dashed rgb(255 255 255 / 12%);
  border-radius: 1.4vw;
  color: #7890aa;
  font-size: clamp(18px, 2vw, 32px);
}

.screen-countdown {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  background: rgb(3 15 33 / 91%);
  text-align: center;
  backdrop-filter: blur(16px);
}

.screen-countdown span {
  color: var(--cyan);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.screen-countdown strong {
  color: var(--yellow);
  font-size: clamp(180px, 32vw, 520px);
  line-height: 0.9;
  text-shadow: 0 0 80px rgb(255 210 74 / 28%);
}

@keyframes live-pulse {
  50% {
    opacity: 0.45;
    scale: 0.8;
  }
}

@keyframes waiting-wave {
  50% {
    opacity: 0.35;
    translate: 0 -7px;
  }
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .round-control {
    align-items: stretch;
    flex-direction: column;
  }

  .round-control > div {
    margin-right: 0;
  }

  .admin-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tools input {
    max-width: none;
  }

  .admin-updated {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
