.boot-game {
  --trial-gold: #f2ce85;
  --trial-parchment: #fff1d6;
  --trial-tint: #291c18;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 100%;
  padding: 4px;
  overflow: hidden;
  color: var(--trial-parchment);
  background: #31211b;
  border: 1px solid #ad825b;
  border-radius: 5px;
  font: 12px/1.2 Inter, Arial, sans-serif;
}
.boot-game::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(100deg, var(--trial-tint) 16%, #271e16bb),
    var(--trial-art) center 45%/cover;
}
.boot-game[data-trial=checkout] { --trial-art: url(assets/quests/checkout.webp); }
.boot-game[data-trial=buyers] {
  --trial-tint: #263127;
  --trial-art: url(assets/quests/buyers.webp);
}
.boot-game[data-trial=courier] {
  --trial-tint: #28313a;
  --trial-art: url(assets/quests/courier.webp);
}
.boot-game__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
}
.boot-game__line strong, .boot-game__result strong {
  color: var(--trial-gold);
  font: 600 17px/1 Crimson, Georgia, serif;
}
.boot-game__line span { color: var(--trial-parchment); }
.boot-game__options { display: flex; gap: 3px; }
.boot-game__options > button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 33px;
  padding: 3px 2px;
  color: #241b15;
  background: #f0e0bd;
  border: 1px solid #c8a46b;
  border-radius: 3px;
  font: 700 11px/1.05 Inter, Arial, sans-serif;
}
.boot-game__options > button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.boot-game__options > button[data-tested=pass] { background: #d2e5cc; }
.boot-game__options > button[data-tested=fault] { background: #ffd3ba; }
.boot-game__options > button[data-guided=true] {
  background: #ffdf87;
  border-color: #fff2c1;
  box-shadow: inset 0 0 0 1px #805412;
}
.boot-game__tests > button {
  color: var(--trial-parchment);
  background: #3a2b20;
  border-color: #917349;
}
.boot-game__tests > button[data-tested] { color: #241b15; }
.boot-game__notice {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: var(--trial-parchment);
  font-size: 11px;
}
.boot-game__query {
  display: grid;
  gap: 2px;
  padding: 4px 5px;
  background: #18251dcc;
  border-left: 2px solid #b2915e;
}
.boot-game__query span { color: var(--trial-gold); }
.boot-game__query strong { font: 600 15px/1 Crimson, Georgia, serif; }
.boot-game__camera {
  position: relative;
  height: 47px;
  overflow: hidden;
  background: linear-gradient(#233a58a0, #302a3875),
    url(assets/quests/courier.webp) 94% 44%/cover;
  border: 1px solid #e1b467;
  border-radius: 3px;
}
.boot-game__focus {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: var(--landing);
  width: var(--window);
  transform: translateX(-50%);
  background: #ffce6340;
  border: 2px solid #ffe190;
  border-radius: 2px;
}
.boot-game__focus::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  content: '';
  border: 1px solid #ffe190;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.boot-game__courier {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: #432158;
  border: 1px solid #ffefb5;
  border-radius: 4px 4px 1px 2px;
  box-shadow: 0 0 3px #211024;
  transform: translate(-35%, 50%) rotate(28deg);
}
.boot-game__courier::before {
  position: absolute;
  top: -7px;
  left: 4px;
  width: 6px;
  height: 6px;
  content: '';
  background: #ffd493;
  border: 1px solid #583322;
  border-radius: 50%;
}
.boot-game__courier::after {
  position: absolute;
  bottom: -4px;
  left: 5px;
  width: 10px;
  height: 5px;
  content: '';
  background: #ddb15c;
  border: 1px solid #3a2224;
  border-radius: 0 4px 2px 2px;
}
.boot-game__courier i {
  position: absolute;
  left: -13px;
  top: 2px;
  width: 13px;
  height: 8px;
  background: #aa3544;
  border: 1px solid #f5b975;
  border-radius: 1px 50% 0 50%;
  transform: rotate(-20deg);
}
.boot-game__result {
  display: grid;
  gap: 5px;
  padding: 6px;
  background: #271d18e0;
  border: 1px solid #98734f;
  border-radius: 3px;
}
.boot-game__options > button:disabled {
  color: #c2b9a5;
  background: #3c392f;
  border-color: #6a604b;
  cursor: default;
  text-decoration: line-through;
}
.boot-game__focus::before { visibility: hidden; }
.boot-game__camera[data-inspect=true] .boot-game__focus::before {
  visibility: visible;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 3px #362813;
}
.boot-game__tests > button {
  position: relative;
  padding-top: 12px;
  box-shadow: inset 0 -3px 0 #4b321d70;
}
.boot-game__tests > button::before {
  position: absolute;
  top: 2px;
  left: 50%;
  color: #f2c882;
  content: attr(data-counter);
  transform: translateX(-50%);
}
.boot-game__tests > button[data-tested]::before { color: #643b24; }
.boot-game__tests > button[data-owl=true]::after {
  position: absolute;
  top: 1px;
  right: 2px;
  content: '🦉';
  font-size: 12px;
}
.boot-game__query {
  padding-left: 40px;
  background: linear-gradient(90deg, transparent 29px, #18251def 37px),
    url(assets/quests/buyers.webp) 0 44%/55px no-repeat #18251d;
}
.boot-game__camera[data-reverse=true] .boot-game__courier {
  transform: translate(-65%, 50%) scaleX(-1) rotate(28deg);
}

.cobbler-arcade{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:4px;padding:clamp(3px,1vmin,10px);background:#152c29ec;color:#ffebbc}
.ca-score,.ca-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;font:600 clamp(12px,2vmin,17px)/1.2 system-ui,sans-serif}
.ca-stage{position:relative;min-height:0;border:1px solid #c49d60;border-radius:7px;overflow:hidden;background:#19312e}
.ca-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.ca-prompt{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;background:#142925e8;padding:4px 12px;text-align:center}
.ca-prompt strong{font:bold clamp(16px,3.7vmin,30px) Georgia,serif;color:#ffdf94}
.ca-prompt p{font:500 clamp(12px,2.4vmin,17px)/1.25 system-ui,sans-serif;max-width:44ch;margin:4px auto 7px;color:#fff2ce}
.cobbler-arcade button{color:#202c27;background:#ffde90;border:1px solid #ae843b;border-radius:5px;padding:5px 14px;font-weight:750;min-height:34px}
.ca-tools output{font:500 clamp(11px,2vmin,15px)/1.15 system-ui,sans-serif}
.cobbler-arcade [hidden]{display:none}
@media(max-height:400px){.ca-prompt strong{display:none}.cobbler-arcade button{min-height:26px;padding-block:2px}.ca-prompt{grid-template-columns:1fr auto;align-items:center;gap:8px}}
.ca-stage{container-type:size;display:grid;place-items:center;background:linear-gradient(#172c2bd6,#192a2bf0),url("assets/scenes/boots.webp") center / cover}
.ca-stage canvas{width:min(100cqw,230cqh);height:min(100cqh,76cqw);box-shadow:0 0 0 1px #bfa37066}
