.game-page[data-engine="brandidentityarchive"] .game-shell {
  background:
    linear-gradient(90deg, rgba(3, 13, 25, .97), rgba(3, 13, 25, .73) 50%, rgba(3, 13, 25, .96)),
    url("/assets/covers/logo-free-brand-quiz.webp") center 45% / cover;
  border-color: #9a733f;
  box-shadow: 0 24px 60px rgba(1, 7, 14, .68), inset 0 0 0 1px rgba(209, 168, 94, .22);
}

.bq-game {
  --bq-navy: #071728;
  --bq-deep: #030c17;
  --bq-paper: #eadfc9;
  --bq-paper-deep: #d4c19f;
  --bq-ink: #1e2730;
  --bq-oxblood: #8f302d;
  --bq-brass: #d0a75f;
  --bq-sage: #66775c;
  --bq-cyan: #56d7f2;
  width: min(1040px, 100%);
  margin: 0 auto;
  color: #f1e6d2;
  font-family: Georgia, "Times New Roman", serif;
}

.bq-title {
  margin: 0 0 12px;
  color: #f0e5d0;
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: .94;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .72);
  text-transform: uppercase;
}

.bq-title span { color: #b64a43; }

.bq-desk {
  position: relative;
  padding: 13px;
  border: 1px solid rgba(208, 167, 95, .78);
  background: rgba(4, 17, 31, .94);
  box-shadow: inset 0 0 0 3px rgba(143, 48, 45, .11), 0 18px 44px rgba(0, 0, 0, .5);
}

.bq-desk::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bq-oxblood), var(--bq-brass) calc(var(--time-ratio, 1) * 100%), var(--bq-sage) 0);
  content: "";
  transition: background .2s linear;
}

.bq-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 12px;
  border: 1px solid #8d6d3c;
  background: rgba(3, 14, 28, .97);
}

.bq-summary > span {
  min-width: 0;
  padding: 8px 7px 7px;
  border-right: 1px solid rgba(208, 167, 95, .3);
  text-align: center;
}

.bq-summary > span:last-child { border-right: 0; }
.bq-summary small,
.bq-summary strong { display: block; }

.bq-summary small {
  color: var(--bq-brass);
  font-family: Arial, sans-serif;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bq-summary svg,
.bq-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.bq-summary svg { margin-right: 4px; vertical-align: -3px; }

.bq-summary strong {
  margin-top: 3px;
  color: #f2e7d4;
  font-size: clamp(.98rem, 2vw, 1.34rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.bq-dossier {
  position: relative;
  z-index: 1;
  min-height: 246px;
  padding: 56px 134px 30px 42px;
  border: 2px solid #9e783d;
  background:
    linear-gradient(97deg, transparent 0 96%, rgba(101, 58, 42, .18) 96%),
    repeating-linear-gradient(0deg, rgba(67, 55, 38, .045) 0 1px, transparent 1px 5px),
    var(--bq-paper);
  box-shadow: inset 0 0 0 5px #ddccae, 9px 8px 0 #ad9265, 16px 13px 0 #705a3d, 0 18px 26px rgba(0, 0, 0, .34);
  color: var(--bq-ink);
}

.bq-dossier::after {
  position: absolute;
  top: 58px;
  right: -1px;
  width: 32px;
  height: 110px;
  border: 1px solid #8e6b36;
  background: #c7ad7f;
  color: #57372f;
  content: "CASE FILE";
  font-family: Arial, sans-serif;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 32px;
  text-align: center;
  text-orientation: mixed;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.bq-labels {
  position: absolute;
  top: 17px;
  left: 42px;
  display: flex;
  gap: 18px;
  font-family: Arial, sans-serif;
}

.bq-labels span { display: flex; align-items: center; gap: 7px; }

.bq-labels small {
  padding: 4px 7px;
  border: 1px solid #68775e;
  background: var(--bq-sage);
  color: #f5eedf;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bq-labels b {
  color: #3e4139;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.bq-evidence {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: evidence;
  list-style: none;
}

.bq-evidence li {
  position: relative;
  min-height: 47px;
  padding: 9px 10px 9px 52px;
  border-bottom: 1px dashed rgba(70, 57, 39, .32);
  font-size: clamp(.92rem, 1.7vw, 1.18rem);
  line-height: 1.28;
  counter-increment: evidence;
}

.bq-evidence li::before {
  position: absolute;
  top: 9px;
  left: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #626f58;
  color: #fff8e9;
  content: counter(evidence);
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  place-items: center;
}

.bq-evidence li.redacted {
  color: transparent;
  user-select: none;
}

.bq-evidence li.redacted::after {
  position: absolute;
  top: 15px;
  right: 10px;
  left: 52px;
  height: 20px;
  background: repeating-linear-gradient(90deg, #27313a 0 30%, #1a222a 30% 33%);
  box-shadow: 0 3px 0 rgba(143, 48, 45, .35);
  content: "";
}

.bq-evidence li.revealed { color: #683b33; }

.bq-stamps {
  position: absolute;
  top: 70px;
  right: 48px;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 6px;
}

.bq-stamps small {
  grid-column: 1 / -1;
  color: #6d493d;
  font-family: Arial, sans-serif;
  font-size: .49rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-align: center;
  text-transform: uppercase;
}

.bq-stamps span {
  display: grid;
  width: 30px;
  height: 30px;
  border: 2px solid #80514a;
  border-radius: 50%;
  color: #80514a;
  font-family: Arial, sans-serif;
  font-size: .75rem;
  font-weight: 900;
  opacity: .26;
  place-items: center;
  transform: rotate(-7deg);
}

.bq-stamps span.active {
  border-color: var(--bq-oxblood);
  box-shadow: inset 0 0 0 3px rgba(143, 48, 45, .12);
  color: var(--bq-oxblood);
  opacity: 1;
}

.bq-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 19px;
}

.bq-choice {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  min-height: 70px;
  align-items: center;
  padding: 9px 13px;
  border: 2px solid #a07a40;
  border-radius: 2px;
  background: linear-gradient(92deg, #ede3d1, #d9c9ad);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.24), 0 5px 0 #7e6543, 0 9px 18px rgba(0,0,0,.38);
  color: #182637;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.bq-choice:hover:not(:disabled) { transform: translateY(-2px); }

.bq-choice:focus-visible {
  outline: 4px solid var(--bq-cyan);
  outline-offset: 3px;
}

.bq-choice > span {
  width: 32px;
  padding: 5px 0;
  border: 1px solid #6f6b60;
  color: #236477;
  font-family: Arial, sans-serif;
  font-size: .8rem;
  font-weight: 900;
  text-align: center;
}

.bq-choice strong {
  min-width: 0;
  padding: 0 8px;
  font-size: clamp(1.05rem, 2.15vw, 1.52rem);
  letter-spacing: .025em;
  line-height: 1.08;
}

.bq-choice i {
  color: #6a6459;
  font-family: Arial, sans-serif;
  font-size: .54rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bq-choice.correct {
  border-color: #798f67;
  background: #cad7bd;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.24), 0 0 0 4px rgba(102,119,92,.4), 0 5px 0 #56684a;
}

.bq-choice.wrong { border-color: #bb625c; background: #d5aaa3; }
.bq-choice.rejected { filter: saturate(.25) brightness(.7); opacity: .62; }

.bq-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 650px;
  margin: 19px auto 10px;
}

.bq-progress::before {
  position: absolute;
  top: 50%;
  right: 20px;
  left: 20px;
  height: 2px;
  background: #a88449;
  content: "";
}

.bq-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  border: 2px solid #a47d3f;
  border-radius: 50%;
  background: #07192c;
  color: #ddbb77;
  font-family: Arial, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  place-items: center;
}

.bq-progress span.active {
  border-color: var(--bq-cyan);
  box-shadow: 0 0 0 5px rgba(86,215,242,.12);
  color: var(--bq-cyan);
  animation: bq-pulse 1.8s ease-in-out infinite;
}

.bq-progress span.done { border-color: #81936c; background: #526347; color: transparent; }
.bq-progress span.done::after { color: #f2ead8; content: "✓"; }

.bq-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.bq-actions button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #9b743d;
  border-radius: 0;
  background: #183a49;
  color: #f0dfbc;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bq-actions button:last-child { background: #6d2929; }
.bq-actions button:hover:not(:disabled) { filter: brightness(1.14); }
.bq-actions button:focus-visible { outline: 3px solid var(--bq-cyan); outline-offset: 2px; }
.bq-actions button:disabled { cursor: default; opacity: .42; }

.bq-note {
  min-height: 1.35em;
  margin: 12px auto 0;
  color: #e7d6b5;
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
}

.bq-prompt {
  margin: 7px 0 0;
  color: #9ec8d1;
  font-family: Arial, sans-serif;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-align: center;
  text-transform: uppercase;
}

.bq-game.paused .bq-dossier,
.bq-game.paused .bq-choices { filter: saturate(.4) brightness(.66); }

.bq-game.complete .bq-desk { box-shadow: inset 0 0 0 3px rgba(102,119,92,.26), 0 0 38px rgba(86,215,242,.14); }

@keyframes bq-pulse { 50% { box-shadow: 0 0 0 8px rgba(86,215,242,.04); } }

@media (max-width: 720px) {
  .bq-title { margin-bottom: 10px; }
  .bq-desk { padding: 9px; }
  .bq-summary > span { padding: 7px 2px 6px; }
  .bq-summary small { font-size: .49rem; letter-spacing: .06em; }
  .bq-summary svg { display: none; }
  .bq-summary strong { font-size: .88rem; }
  .bq-dossier { min-height: 258px; padding: 76px 18px 58px; }
  .bq-dossier::after { display: none; }
  .bq-labels { top: 15px; right: 16px; left: 16px; flex-wrap: wrap; gap: 7px 14px; }
  .bq-labels small { font-size: .5rem; }
  .bq-labels b { font-size: .61rem; }
  .bq-evidence li { min-height: 45px; padding-left: 46px; font-size: clamp(.86rem, 3.6vw, 1.02rem); }
  .bq-evidence li.redacted::after { left: 46px; }
  .bq-stamps { top: auto; right: 50%; bottom: 13px; grid-template-columns: auto repeat(3, 28px); align-items: center; transform: translateX(50%); }
  .bq-stamps small { grid-column: auto; margin-right: 3px; }
  .bq-stamps span { width: 28px; height: 28px; }
  .bq-choice { min-height: 64px; }
  .bq-choice strong { font-size: 1.08rem; }
  .bq-note { font-size: .73rem; }
  .bq-prompt { font-size: .54rem; line-height: 1.4; }
}

@media (max-width: 520px) {
  .bq-title { font-size: 1.9rem; }
  .bq-choices { grid-template-columns: 1fr; gap: 9px; }
  .bq-choice { min-height: 54px; grid-template-columns: 36px 1fr auto; padding: 7px 10px; }
  .bq-choice > span { width: 29px; }
  .bq-progress { margin-top: 15px; }
  .bq-progress span { width: 31px; height: 31px; }
  .bq-actions { grid-template-columns: 1fr 1fr; }
  .bq-actions button { min-height: 46px; padding-inline: 6px; font-size: .64rem; letter-spacing: .025em; }
}

@media (prefers-reduced-motion: reduce) {
  .bq-choice { transition: none; }
  .bq-progress span.active { animation: none; }
}
