:root {
  --bc-yellow: #ffdd14;
  --bc-ink: #08080a;
  --bc-panel: #12111c;
  --bc-cyan: #22d3ee;
  --bc-magenta: #ec4899;
  --bc-violet: #8b5cf6;
  --bc-lime: #a3e635;
  --danger: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 221, 20, 0.22), transparent 16rem),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.18), transparent 18rem),
    radial-gradient(circle at 50% 86%, rgba(34, 211, 238, 0.18), transparent 22rem),
    linear-gradient(180deg, #090813 0%, #12111c 48%, #08080a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10% 0;
  height: 34vh;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(255, 221, 20, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.22) 0 2px, transparent 2px 84px);
  transform: perspective(320px) rotateX(62deg);
  transform-origin: bottom;
}

button,
input {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.logo {
  display: block;
  width: clamp(140px, 22vw, 230px);
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 30px rgba(255, 221, 20, 0.35));
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 20, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(18, 17, 28, 0.94), rgba(11, 11, 18, 0.96)),
    radial-gradient(circle at top left, rgba(255, 221, 20, 0.12), transparent 18rem);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), 0 24px 80px rgba(0, 0, 0, 0.45);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 46%, rgba(255, 255, 255, 0.07) 48%, transparent 54%),
    radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.14), transparent 11rem);
}

.card > * {
  position: relative;
  z-index: 1;
}

.center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--bc-cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  text-transform: uppercase;
}

p {
  color: #cbd5e1;
  line-height: 1.75;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--bc-yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.input {
  width: 100%;
  border: 1px solid rgba(255, 221, 20, 0.32);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.input:focus {
  border-color: var(--bc-yellow);
  box-shadow: 0 0 0 4px rgba(255, 221, 20, 0.15);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(34, 211, 238, 0.1);
  color: #e2e8f0;
}

.check input {
  margin-top: 4px;
  accent-color: var(--bc-yellow);
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--bc-yellow);
  border-radius: 8px;
  padding: 14px 24px;
  background: var(--bc-yellow);
  color: var(--bc-ink);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(255, 221, 20, 0.35);
}

.btn:hover {
  background: #ffe75a;
}

.btn:disabled {
  border-color: #64748b;
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.error {
  margin: 12px 0 0;
  color: #fca5a5;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 221, 20, 0.3);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 38px rgba(255, 221, 20, 0.14);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

video::-webkit-media-controls-timeline {
  display: none;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--bc-yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress {
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--bc-yellow);
  box-shadow: 0 0 20px rgba(255, 221, 20, 0.65);
  transition: width 0.25s ease;
}

.tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.tile {
  min-height: 96px;
  border: 1px solid rgba(255, 221, 20, 0.3);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 4px 0 0 rgba(255, 221, 20, 0.95);
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1.5;
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.timer {
  display: grid;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 221, 20, 0.3);
  border-radius: 999px;
  color: var(--bc-yellow);
  font-size: 24px;
  font-weight: 900;
  background:
    radial-gradient(circle closest-side, #12111c 72%, transparent 74% 100%),
    conic-gradient(var(--bc-yellow) var(--timer-progress), rgba(255, 255, 255, 0.16) 0);
}

.situation {
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  padding: 18px;
  background: rgba(34, 211, 238, 0.1);
  color: #e2e8f0;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
}

.option:hover {
  border-color: var(--bc-yellow);
  background: rgba(255, 221, 20, 0.1);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(163, 230, 53, 0.45);
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(163, 230, 53, 0.1);
  color: var(--bc-lime);
  font-weight: 900;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.metric span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--bc-yellow);
  font-size: 38px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin: 20px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 221, 20, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: #1f2937;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status.pass {
  background: #dcfce7;
  color: #166534;
}

.status.fail {
  background: #fee2e2;
  color: #991b1b;
}

.status.pending {
  background: #e5e7eb;
  color: #374151;
}

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

  .quiz-head {
    align-items: flex-start;
  }
}
