:root {
  --bg: #07080b;
  --panel: #12151d;
  --line: #232a3a;
  --txt: #eef1f7;
  --mut: #8b94a8;
  --amber: #ffb02e;
  --red: #ff4d3d;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--txt);
  overflow: hidden;
  font-family: system-ui, Arial, sans-serif;
}

.bars7 {
  display: inline-flex;
  width: 56px;
  height: 12px;
  overflow: hidden;
  border-radius: 2px;
}

.bars7 span {
  flex: 1;
}

.bars7 span:nth-child(1),
.standby .bars i:nth-child(1) { background: #b4b4b4; }
.bars7 span:nth-child(2),
.standby .bars i:nth-child(2) { background: #b4b400; }
.bars7 span:nth-child(3),
.standby .bars i:nth-child(3) { background: #00b4b4; }
.bars7 span:nth-child(4),
.standby .bars i:nth-child(4) { background: #00b400; }
.bars7 span:nth-child(5),
.standby .bars i:nth-child(5) { background: #b400b4; }
.bars7 span:nth-child(6),
.standby .bars i:nth-child(6) { background: #b40000; }
.bars7 span:nth-child(7),
.standby .bars i:nth-child(7) { background: #0000b4; }

.stage {
  display: none;
  position: fixed;
  inset: 0;
}

.stage.on {
  display: flex;
  animation: fade 0.35s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

#stage-activate {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 420px at 50% -10%, #1d2433 0%, transparent 60%),
    var(--bg);
}

.act-card {
  width: min(520px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  padding: 34px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 22px;
}

.kicker {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--amber);
  font-family: monospace;
}

.act-card h1 {
  font-size: 28px;
  margin: 8px 0 22px;
}

.digits {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.digit {
  width: 64px;
  height: 78px;
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--amber);
  background: #0c0f15;
  border: 2px solid var(--line);
  outline: none;
}

.digit:focus {
  border-color: var(--amber);
}

.btn-big {
  width: 100%;
  padding: 14px;
  background: var(--amber);
  border: 0;
  color: #000;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

.hint {
  margin-top: 14px;
  color: var(--mut);
  font-size: 12px;
  line-height: 1.5;
}

.err {
  margin-top: 12px;
  color: var(--red);
  font-family: monospace;
  font-size: 13px;
}

.standby {
  flex-direction: column;
}

.standby .bars {
  flex: 1;
  display: flex;
}

.standby .bars i {
  flex: 1;
}

.plate {
  background: #000;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.p-brand {
  font-weight: 800;
  letter-spacing: 2px;
}

.p-clock {
  font-family: monospace;
  font-size: 26px;
  color: var(--amber);
}

.p-meta {
  margin-left: auto;
  font-family: monospace;
  font-size: 12px;
  color: #9aa3b5;
}

#player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1;
}

#player iframe,
#player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--red);
  font-family: monospace;
  padding: 20px;
  text-align: center;
}

.chip-tv {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  background: #000c;
  border: 1px solid #ffffff2a;
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  padding: 7px 10px;
  border-left: 3px solid var(--amber);
}

.lost {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  text-align: center;
  background: var(--red);
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  padding: 6px;
}

.start-ov {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000d;
  cursor: pointer;
  transition: opacity 0.4s;
}

.start-ov.off {
  opacity: 0;
  pointer-events: none;
}

.start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  animation: pulse 2s infinite;
  text-align: center;
  padding: 20px;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}