/* StreetHeist landing, beat 19 (#talk): the briefing. A mission panel over
   the street: header counter and three gold segments, the schematic street
   that lights with every answer (sh-lead-scene.js), one mono reaction line,
   three steps, then the success receipt and the getaway (spec r3 8.3, 8.4).
   Without JS the three fieldsets stay stacked. */
.sh-brief { min-height: 118svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); justify-content: center; align-items: start; }
.sh-brief > .sh-brief__copy, .sh-brief > .sh-brief__panel { width: 100%; }
.sh-brief__copy { position: sticky; top: 104px; max-width: 470px; justify-self: end; }
.sh-brief__nexth { margin-top: 34px; color: var(--sh-fg-3); font: 700 11px/1 var(--sh-font-mono); letter-spacing: .2em; text-transform: uppercase; }
.sh-brief__next { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: c-next; display: grid; gap: 14px; }
.sh-brief__next li { counter-increment: c-next; position: relative; padding-left: 46px; color: var(--sh-fg-2); font-size: 15px; line-height: 1.45; }
.sh-brief__next li::before { content: "0" counter(c-next); position: absolute; left: 0; top: 2px; color: var(--sh-gold); font: 700 11px/1.6 var(--sh-font-mono); letter-spacing: .16em; }
.sh-brief__next li::after { content: ""; position: absolute; left: 24px; top: 10px; width: 12px; height: 1px; background: rgb(212 175 55 / 55%); }
.sh-brief .sh-contact-alt { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--sh-fg-3); font-size: 13px; }
.sh-brief .sh-link { min-height: 44px; display: inline-flex; align-items: center; border: 0; color: var(--sh-gold-hi); font-size: 13px; font-weight: 600; text-decoration: underline; }
.sh-brief .sh-link.is-called { outline: 1px solid rgb(212 175 55 / 60%); outline-offset: 4px; border-radius: 4px; }

/* ---- the panel ---- */
.sh-brief__panel { position: relative; max-width: 780px; padding: 22px clamp(18px, 2.4vw, 34px) 30px; border: 1px solid var(--sh-glass-line); border-radius: 18px; background: linear-gradient(180deg, rgb(20 23 28 / 82%), rgb(10 12 15 / 86%)); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 40px 120px -40px rgb(0 0 0 / 90%), inset 0 1px rgb(255 255 255 / 6%); }
.sh-brief__panel::before, .sh-brief__panel::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--sh-gold); pointer-events: none; }
.sh-brief__panel::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.sh-brief__panel::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.sh-brief__scope { position: sticky; top: 64px; z-index: 2; display: grid; gap: 12px; margin: -22px calc(-1 * clamp(18px, 2.4vw, 34px)) 0; padding: 22px clamp(18px, 2.4vw, 34px) 12px; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, rgb(18 21 26 / 97%), rgb(14 16 20 / 94%)); }
.sh-brief__step > legend { scroll-margin-top: 330px; }
.sh-brief__hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-brief__count { color: var(--sh-fg); font: 700 11px/1 var(--sh-font-mono); letter-spacing: .2em; text-transform: uppercase; }
.sh-brief__segs { display: flex; gap: 6px; flex: 0 0 132px; }
.sh-brief__segs span { flex: 1; height: 2px; background: var(--sh-line-2); transition: background .4s, box-shadow .4s; }
.sh-brief__segs span.is-on { background: var(--sh-gold); box-shadow: 0 0 10px rgb(212 175 55 / 60%); }
.sh-brief__react { color: var(--sh-teal); font: 600 11px/1.4 var(--sh-font-mono); letter-spacing: .16em; text-transform: uppercase; min-height: 1.4em; }
.sh-brief__react::after { content: ""; display: inline-block; width: .7em; height: 1.05em; margin-left: .3em; vertical-align: -.18em; background: currentColor; opacity: .8; }
html[data-tier="full"] .sh-brief.is-in .sh-brief__react::after { animation: c-blink 1.1s steps(1) infinite; }

/* ---- the schematic street ---- */
.sh-brief__map { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; border-radius: 10px; background: radial-gradient(90% 90% at 50% 100%, rgb(242 169 59 / 7%), transparent 60%), linear-gradient(180deg, rgb(12 16 23 / 90%), rgb(7 8 10 / 70%)); }
.sh-brief__map * { transition: fill .45s, stroke .45s, opacity .45s, transform .6s var(--sh-ease-out), filter .45s; }
.m-sky { fill: #0f141c; stroke: rgb(255 255 255 / 9%); stroke-width: .6; }
.m-win { stroke: rgb(242 169 59 / 18%); stroke-width: 2.2; stroke-dasharray: 2.4 3.4; }
.sh-brief__map[data-sky="1"] .m-win { stroke: rgb(242 169 59 / 40%); }
.sh-brief__map[data-sky="2"] .m-win { stroke: rgb(242 169 59 / 62%); }
.sh-brief__map[data-sky="3"] .m-win { stroke: rgb(255 214 150 / 92%); filter: drop-shadow(0 0 3px rgb(242 169 59 / 80%)); }
.m-bld { fill: #161b23; stroke: rgb(255 255 255 / 24%); stroke-width: .8; }
.m-glass { fill: rgb(242 169 59 / 10%); }
.m-sign { fill: rgb(212 175 55 / 22%); }
.m-sign.is-teal { fill: rgb(95 212 196 / 20%); }
.m-sign.is-lit { fill: var(--sh-gold-hi); filter: drop-shadow(0 0 5px rgb(229 198 92 / 90%)); }
.m-sign.is-teal.is-lit { fill: var(--sh-neon-teal, #7ff0e0); filter: drop-shadow(0 0 5px rgb(95 212 196 / 90%)); }
.m-door { fill: #0b0d11; stroke: rgb(255 255 255 / 20%); stroke-width: .6; }
.m-door.is-lit { fill: rgb(255 214 150 / 92%); filter: drop-shadow(0 0 6px rgb(242 169 59 / 90%)); }
.m-board { fill: #0d1016; stroke: rgb(255 255 255 / 22%); stroke-width: .6; }
.m-board.is-lit { fill: rgb(212 175 55 / 30%); stroke: var(--sh-gold-hi); filter: drop-shadow(0 0 5px rgb(229 198 92 / 70%)); }
.m-lamp { fill: none; stroke: rgb(255 255 255 / 34%); stroke-width: 1.2; }
.m-bulb { fill: rgb(242 169 59 / 50%); }
.m-bulb.is-lit { fill: #ffe2a8; filter: drop-shadow(0 0 6px #f2a93b) drop-shadow(0 0 14px rgb(242 169 59 / 70%)); }
.m-plinth { fill: #1d2127; stroke: rgb(255 255 255 / 20%); stroke-width: .6; }
.m-plinth.is-lit { fill: rgb(212 175 55 / 55%); stroke: var(--sh-gold-hi); filter: drop-shadow(0 0 6px rgb(229 198 92 / 80%)); }
.m-road { fill: none; stroke: rgb(255 255 255 / 16%); stroke-width: .8; }
.m-route { fill: none; stroke: var(--sh-teal); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0; }
.m-car rect { fill: #2a2f38; stroke: rgb(255 255 255 / 30%); stroke-width: .6; }
.m-car.is-lit rect { stroke: var(--sh-gold-hi); fill: #3a3326; filter: drop-shadow(0 0 4px rgb(229 198 92 / 60%)); }
.m-cop { opacity: 0; }
.m-cop rect { fill: #1b2233; stroke: rgb(255 255 255 / 40%); stroke-width: .6; }
.m-cop .m-siren { fill: var(--sh-red); }
.m-ret { fill: none; stroke: var(--sh-teal); stroke-width: 1.4; opacity: 0; }
.m-ret.is-on { opacity: 1; }
.m-tag { fill: var(--sh-teal); font: 700 9px var(--sh-font-mono); letter-spacing: .2em; opacity: 0; }
.sh-brief__map.is-getaway .m-route { opacity: 1; }
.sh-brief__map.is-getaway .m-car { transform: translateX(260px); opacity: 0; transition: transform 1.8s cubic-bezier(.5, 0, .75, 0), opacity .3s 1.6s; }
.sh-brief__map.is-getaway .m-cop { opacity: 1; transform: translateX(470px); transition: transform 2.6s .7s cubic-bezier(.3, 0, .6, 1), opacity .3s .7s; }
.sh-brief__map.is-getaway .m-tag { opacity: 1; transition-delay: 1.9s; }
html[data-tier="full"] .sh-brief__map.is-getaway .m-siren, html[data-tier="lite"] .sh-brief__map.is-getaway .m-siren { animation: c-siren .5s steps(1) 6; }
@keyframes c-siren { 50% { fill: var(--sh-police-blue, #3d7bff); } }

/* ---- steps ---- */
.sh-brief__form { margin-top: 18px; }
.sh-brief__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.sh-brief__step + .sh-brief__step { margin-top: 30px; }
.sh-brief__form.is-stepped .sh-brief__step { margin-top: 0; }
.sh-brief__form.is-stepped .sh-brief__step:not(.is-current) { display: none; }
.sh-brief__form.is-stepped:not(.is-instant) .sh-brief__step.is-current { animation: c-step .26s var(--sh-ease-out) both; }
@keyframes c-step { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.sh-brief__step > legend { padding: 0; margin-bottom: 6px; color: var(--sh-fg); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; outline: none; }
.sh-brief__micro { margin: 0 0 16px; color: var(--sh-fg-3); font-size: 13px; }
.sh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sh-tile { position: relative; display: grid; gap: 4px; min-height: 76px; padding: 14px 44px 14px 16px; border: 1px solid var(--sh-line-2); border-radius: 12px; background: rgb(255 255 255 / 3%); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s, transform .2s; }
.sh-tile:hover { border-color: rgb(255 255 255 / 34%); transform: translateY(-1px); }
.sh-tile input, .sh-chipbox input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sh-tile::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border: 1.5px solid var(--sh-line-strong); border-radius: 5px; transition: background .2s, border-color .2s, box-shadow .2s; }
.sh-tile:has(input:checked) { border-color: rgb(212 175 55 / 80%); background: linear-gradient(180deg, rgb(212 175 55 / 14%), rgb(212 175 55 / 5%)); box-shadow: 0 0 0 1px rgb(212 175 55 / 30%), 0 12px 36px -18px rgb(229 198 92 / 70%); }
.sh-tile:has(input:checked)::after { border-color: var(--sh-gold-hi); background: var(--sh-gold-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.6 11 12.5 5' fill='none' stroke='%2307080a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 12px rgb(229 198 92 / 70%); }
.sh-tile:has(input:focus-visible), .sh-chipbox:has(input:focus-visible) { outline: 2px solid var(--sh-fg); outline-offset: 2px; }
.sh-tile__t { color: var(--sh-fg); font-size: 15px; font-weight: 600; }
.sh-tile__l { color: var(--sh-fg-3); font-size: 13px; line-height: 1.4; }
.sh-chips { margin: 0 0 18px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sh-chips > legend, .sh-field > label { margin-bottom: 10px; padding: 0; color: var(--sh-fg-3); font: 700 10px/1.2 var(--sh-font-mono); letter-spacing: .18em; text-transform: uppercase; }
.sh-chipbox { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--sh-line-2); border-radius: 999px; color: var(--sh-fg-2); font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.sh-chipbox:hover { border-color: rgb(255 255 255 / 34%); }
.sh-chipbox:has(input:checked) { border-color: rgb(212 175 55 / 80%); background: rgb(212 175 55 / 14%); color: var(--sh-gold-hi); }
.sh-field { display: grid; margin-bottom: 18px; }
.sh-field input, .sh-field textarea { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--sh-line-2); border-radius: 0; background: transparent; color: var(--sh-fg); font-size: 16px; transition: border-color .2s; }
.sh-field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.sh-field input::placeholder, .sh-field textarea::placeholder { color: var(--sh-fg-3); }
.sh-field input:focus, .sh-field textarea:focus { outline: none; border-bottom-color: var(--sh-gold); box-shadow: 0 1px 0 var(--sh-gold); }
.sh-field input:focus-visible, .sh-field textarea:focus-visible { outline: 2px solid var(--sh-fg); outline-offset: 4px; }
.sh-field [aria-invalid="true"] { border-bottom-color: #ff7b89; }
.sh-field__hint, .sh-field__count { margin-top: 6px; color: var(--sh-fg-3); font-size: 12px; }
.sh-field__count { justify-self: end; font-family: var(--sh-font-mono); }
.sh-brief__err { margin: 6px 0 12px; color: #ff8b96; font-size: 13px; font-weight: 500; }
.sh-brief__consent { margin: 4px 0 0; color: var(--sh-fg-3); font-size: 12px; line-height: 1.5; }
.sh-brief__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.sh-brief__back { min-height: 44px; margin-right: auto; padding: 0 6px; border: 0; background: none; color: var(--sh-fg-2); font-weight: 500; cursor: pointer; }
.sh-brief__back:hover { color: var(--sh-fg); }
.sh-brief__status { margin-top: 14px; color: var(--sh-fg-2); font-size: 14px; }
.sh-brief__status:empty { display: none; }
.sh-brief__status.is-error { color: #ff8b96; }
.sh-brief__noscript { margin-top: 12px; color: var(--sh-fg-3); font-size: 13px; }
.sh-form__trap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- success: the receipt ---- */
.sh-brief__done { margin-top: 18px; }
.sh-brief__chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid rgb(95 212 196 / 50%); border-radius: 999px; background: rgb(95 212 196 / 12%); color: var(--sh-teal); font: 700 11px/1 var(--sh-font-mono); letter-spacing: .16em; text-transform: uppercase; }
.sh-brief__done-h { margin-top: 16px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; outline: none; }
.sh-brief__done-line { margin-top: 10px; color: var(--sh-fg-2); }
.sh-brief__receipt { margin: 20px 0 0; padding: 16px 18px; display: grid; border: 1px dashed rgb(95 212 196 / 40%); border-radius: 10px; background: rgb(7 8 10 / 60%); color: var(--sh-fg); font: 500 12px/1.9 var(--sh-font-mono); letter-spacing: .12em; white-space: pre-wrap; }
.sh-brief__receipt .k { color: var(--sh-teal); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-tier="still"]) .sh-brief__rline { animation: c-type .45s steps(28, end) both; animation-delay: calc(.9s + var(--c-i, 0) * .32s); }
}
.sh-brief__done-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 1023px) {
  .sh-brief { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sh-brief__copy { position: static; justify-self: start; max-width: 620px; }
  .sh-brief__panel { max-width: none; }
}
@media (max-width: 767px) {
  .sh-brief__panel { padding: 14px 14px 20px; border-radius: 14px; }
  .sh-brief__scope { top: 56px; margin: -14px -14px 0; padding: 12px 14px 10px; border-radius: 14px 14px 0 0; background: rgb(10 12 15 / 95%); border-bottom: 1px solid var(--sh-line); }
  .sh-brief__map { max-height: 104px; }
  .sh-brief__step > legend { scroll-margin-top: 220px; }
  .sh-brief__segs { flex-basis: 64px; }
  .sh-brief__count { font-size: 10px; letter-spacing: .12em; }
  .sh-tiles { grid-template-columns: minmax(0, 1fr); }
  .sh-tile { min-height: 64px; }
  .sh-brief__nav { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2; padding: 10px; margin-inline: -10px; border-radius: 999px; background: rgb(10 12 15 / 88%); }
  .sh-brief__nav .sh-btn { flex: 1; }
  .sh-brief__next li { font-size: 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .sh-brief { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
  .sh-brief__copy { position: sticky; top: 60px; }
  .sh-brief__next, .sh-brief__nexth { display: none; }
  .sh-brief__scope { position: relative; top: auto; }
  .sh-brief__map { max-height: 92px; }
  .sh-brief__count { font-size: 10px; letter-spacing: .12em; }
  .sh-brief__step > legend { scroll-margin-top: 60px; }
  .sh-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sh-brief__map *, .sh-brief__map.is-getaway * { transition: none !important; animation: none !important; }
}
