/* =========================================================================
   Item Drill — page styles (uses tokens from ../assets/theme.css)
   ========================================================================= */

.drill { padding-top: 34px; }

.best-pill {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ---------- bar ---------- */

.drill-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
}

.drill-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress {
  width: 170px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .22s ease;
}

/* ---------- board ---------- */

.board {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 26px;
}

/* ---------- start ---------- */

.start {
  margin: auto;
  max-width: 46ch;
  text-align: center;
}

.start h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.start .eyebrow { margin-bottom: 6px; }

.start p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.start-hint {
  margin: 16px 0 0 !important;
  font-size: 11.5px !important;
  color: var(--muted);
}

/* ---------- question ---------- */

.q-prompt {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.q-stage {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin-bottom: 24px;
}

.q-icon {
  width: 108px;
  height: 108px;
  padding: 10px;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow);
}

.q-name {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.12;
  text-align: center;
}

/* ---------- options ---------- */

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option {
  position: relative;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.option:hover:not([disabled]) {
  border-color: rgba(255, 179, 71, .55);
  background: var(--surface-hover);
  color: var(--text);
}

.option[disabled] { cursor: default; }

.option--icon {
  display: grid;
  place-items: center;
  padding: 12px;
  min-height: 100px;
}

.option--icon .key {
  position: absolute;
  top: 6px;
  left: 6px;
}

.option--icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  image-rendering: auto;
}

.option .key {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
}

.option.is-correct {
  border-color: var(--good);
  background: var(--good-soft);
  box-shadow: 0 0 0 3px rgba(110, 231, 168, .16);
}

.option.is-wrong {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.option.is-dim { opacity: .42; }

/* ---------- feedback ---------- */

.feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line);
}

.feedback-text { font-size: 13px; color: var(--ink-soft); }

.feedback-text b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}

.feedback-text span { color: var(--muted); }

/* ---------- result ---------- */

.result {
  margin: auto;
  width: 100%;
  text-align: center;
}

.verdict {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.verdict--good { background: var(--good-soft); border-color: rgba(110, 231, 168, .55); color: var(--good); }
.verdict--mid { background: rgba(255, 179, 71, .14); border-color: rgba(255, 179, 71, .55); color: var(--amber); }
.verdict--bad { background: var(--bad-soft); border-color: rgba(255, 122, 107, .55); color: var(--bad); }

.result-score {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 86px);
  line-height: .95;
  letter-spacing: -.02em;
}

.result-score small {
  font-size: .38em;
  color: var(--muted);
  letter-spacing: 0;
}

.result-line {
  margin: 12px 0 24px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.result-line strong { color: var(--accent); }

.result-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  .drill { padding-top: 22px; }
  .board { padding: 18px; min-height: 400px; }
  .options { grid-template-columns: 1fr; }
  .q-icon { width: 88px; height: 88px; }
  .progress { width: 110px; }
  .drill-progress { font-size: 11px; }
}
