@import url('./option-motion.css');

.walk {
  --inset: 12px;
  --walk-blue: var(--halo-blue, #2563eb);
  --walk-blue-ink: #244e91;
  --walk-blue-edge: #7095d1;
  --walk-ice: #eaf2ff;
  --edge: var(--glass-rule);
  --quiet: #52595c;
  position: relative;
  width: 100%;
  margin: 22px 0;
  padding: var(--section-gutter);
  scroll-margin-top: 84px;
  border: 1px solid var(--edge);
  border-radius: var(--halo-corner);
  color: var(--ink);
  background: var(--section-glass);
  box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: blur(3px) saturate(112%);
  backdrop-filter: blur(3px) saturate(112%);
}
.walk-heading, .film-window, .console-status, .console-legend, .console-port, .rank-reading {
  display: flex; align-items: center; gap: 8px;
}
.walk-heading { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.walk h2 { margin: 0; font-size: clamp(25px, 2.65vw, 37px); font-weight: 500; letter-spacing: -.065em; line-height: 1.14; }
.walk-heading p, .walk-note { color: var(--quiet); font-size: 14px; line-height: 1.55; margin: 7px 0 0; }
.walk-scenes { display: grid; grid-template-columns: 1.04fr 1fr 1.04fr; align-items: stretch; gap: clamp(9px, .9vw, 13px); }
.walk-scene { position: relative; min-width: 0; display: flex; flex-direction: column; }
.scene-number { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: #58636a; padding-right: 10px; border-right: 1px solid #c4cccf; }
.walk h3 { margin: 0; font-size: 14px; letter-spacing: -.03em; font-weight: 600; }
.film-screen { flex: 1; position: relative; isolation: isolate; min-width: 0; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--halo-corner-card); background: linear-gradient(130deg,#ffffffdb,#ffffff9e); }
.film-window { padding: 0 var(--inset); min-height: 39px; background: linear-gradient(105deg,#ffffffbe,#f4f6f780); border-bottom: 1px solid #1721291a; font-size: 13px; font-weight: 600; }
.film-playmark, .search-icon, .demo-picker button i, .demo-package-menu label i {
  display:inline-block; flex:none; background:currentColor;
  mask:var(--tabler-icon) center / contain no-repeat;
}
.film-playmark { --tabler-icon:url('./tabler/brand-youtube.svg'); width:20px; height:20px; color:#f03; }
.search-icon { --tabler-icon:url('./tabler/search.svg'); width:14px; height:14px; }
.form-body, .console-body { padding: var(--inset); }
.form-body { position: relative; flex: 1; display: flex; flex-direction: column; }
.form-pointer { display: none; }
.walk[data-running] .form-pointer { display: block; position: absolute; inset: 0 auto auto 0; width: 17px; height: 22px; z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 2px #1f123d66); }
.form-pointer::before, .form-pointer::after { content: ''; position: absolute; inset: 0; background: white; clip-path: polygon(0 0,99% 53%,60% 61%,81% 92%,58% 100%,39% 67%,13% 91%); }
.form-pointer::after { inset: 2px; background: #283038; }
.form-body small, .rank-reading small, .console-status small { display: block; font-size: 11px; font-weight: 500; color: var(--quiet); }
.demo-field { display: flex; align-items: center; min-height: 30px; margin: 3px 0 8px; border: 1px solid #dcd9e2; border-radius: var(--halo-corner-control); padding: 5px 9px; background: #ffffffa8; }
.demo-field b { font-size: 13px; font-weight: 500; line-height: 1.45; }
.demo-field[data-full-url], .demo-field[data-full-keyword] { display:grid; grid-template-columns:minmax(0,1fr); }
.demo-field[data-full-keyword]::before { content: attr(data-full-keyword); visibility: hidden; font: 500 13px/1.45 var(--font-halo); }
.demo-field[data-full-keyword]::before, .demo-field [data-keyword] { grid-area: 1 / 1; }
.demo-field[data-full-url]::before { content:attr(data-full-url); visibility:hidden; }
.demo-field[data-full-url]::before, .demo-field [data-url] { grid-area:1/1; font-family:var(--font-halo); font-weight:500; line-height:1.45; color: #3b5799; font-size: clamp(11px,.9vw,13px); overflow-wrap: anywhere; }
.walk[data-running] .is-typing b::after { content: ''; display: inline-block; vertical-align: -.13em; width: 1px; height: 1em; background: currentColor; }
.film-preview { position: relative; margin: 0 0 8px; overflow: hidden; border-radius: var(--halo-corner-card); aspect-ratio: 16 / 9; color: white; background: #171b2e; }
.preview-detection { display:none; }
@media (scripting:enabled) {
  .film-preview { isolation:isolate; background:linear-gradient(135deg,#eff1f4,#fafbfc 55%,#f2f1f2); }
  .preview-detection {
    position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:9px;
    border:1px solid #202e401c; border-radius:inherit; color:#4b515a;
    font:500 12px/1.4 var(--font-halo);
  }
  .preview-detection svg { width:42px; height:42px; stroke-linejoin:round; stroke-linecap:round; }
  .scan-frame { stroke:#8a929c; stroke-width:1.4; }
  .scan-link { stroke:#374552; stroke-width:1.9; }
  .scan-line { stroke:#ce1235; stroke-width:1.8; }
  .film-preview:not([data-detected]) > :is(img,time,figcaption) { visibility:hidden; opacity:0; }
  .film-preview[data-detected] .preview-detection { visibility:hidden; }
}
@media (scripting:enabled) and (prefers-reduced-motion:no-preference) {
  .walk[data-running] .film-preview:not([data-detected]) .scan-line { animation:link-scan 1.25s ease-in-out infinite alternate; }
  @keyframes link-scan { from { transform:translateY(0); } to { transform:translateY(22px); } }
  .film-preview[data-detected] > :is(img,time,figcaption) { animation:preview-develop 250ms ease-out both; }
  @keyframes preview-develop { from { opacity:0; } to { opacity:1; } }
}
.film-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.film-preview figcaption { position:absolute; inset:auto 0 0; padding:0 52px 11px 13px; line-height:1.2; text-shadow:0 1px 2px #09121cf2,0 1px 5px #09121cc9; }
.film-preview figcaption span,.film-preview figcaption strong { display:block; }
.film-preview figcaption span { font-size:10px; font-weight:500; margin-bottom:2px; color:#f0f3f3; }
.film-preview figcaption strong { font-size:clamp(17px,1.5vw,22px); font-weight:600; letter-spacing:-.045em; }
.film-preview time { position: absolute; bottom: 10px; z-index: 1; }
.film-preview time, .film-thumb time { right: 7px; background: #101019db; color: white; border-radius: var(--halo-corner); padding: 2px 4px; font-size: 10px; }
.film-form { display:flex; flex-direction:column; --yt-red:#d20029; --picker-ease:cubic-bezier(.23,1,.32,1); container-type:inline-size; }
.form-options { margin-bottom:var(--inset); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:8px; }
.form-options .demo-field { margin-bottom:0; }
.setup-checks { flex:1; display:flex; flex-direction:column; margin:0 0 var(--inset); padding:9px 11px; border:1px solid var(--glass-rule); border-radius:var(--halo-corner); background:linear-gradient(120deg,#edf4fc80,#ffffff60); }
.setup-checks header,.setup-checks dl > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.setup-checks h4 { margin:0; font-size:13px; font-weight:600; }
.setup-checks header span,.setup-checks dd { color:var(--quiet); font-size:11px; font-variant-numeric:tabular-nums; }
.setup-check-meter { margin-top:6px; height:2px; overflow:hidden; border-radius:2px; background:var(--glass-rule); }
.setup-check-meter i { display:block; height:100%; background:var(--walk-blue-edge); transform:scaleX(0); transform-origin:left; }
.setup-checks dl { flex:1; display:grid; grid-template-rows:repeat(3,1fr); margin:0; font-size:12px; }
.setup-checks dl > div { min-height:23px; }
.setup-checks dt { display:grid; grid-template-columns:16px auto; align-items:center; column-gap:7px; }
.setup-checks dt::before, .setup-checks dt::after {
  content:''; box-sizing:border-box; grid-area:1 / 1; width:16px; height:16px;
}
.setup-checks dt::before { border:1px solid #8896a8; border-radius:50%; }
.setup-checks [data-checking] dt::before { border-color:#d0def2; border-top-color:var(--walk-blue); border-right-color:var(--walk-blue); }
.setup-checks [data-ready] dt::before { border-color:#c7d8f1; background:var(--walk-ice); }
.setup-checks dt::after { background:var(--walk-blue-ink); mask:url('./submission-check.svg') center / contain no-repeat; clip-path:inset(0 100% 0 0); }
.setup-checks [data-ready] dt::after { clip-path:inset(0); }
.setup-checks dd { margin:0; }
.setup-checks [data-ready] dd { color:var(--walk-blue-ink); }
@media (prefers-reduced-motion:no-preference) {
  .walk[data-running] .walk-scene[data-current] .setup-check-meter i { transition:transform 280ms var(--picker-ease); }
  .walk[data-running] .walk-scene[data-current] .setup-checks [data-checking] dt::before { animation:setup-check-turn 850ms linear infinite; }
  .walk[data-running] .walk-scene[data-current] .setup-checks [data-ready] dt::after { transition:clip-path 220ms ease-out; }
  .walk[data-running] .walk-scene[data-current] .setup-checks [data-ready] dd { animation:setup-status-in 220ms var(--picker-ease) both; }
  @keyframes setup-check-turn { to { transform:rotate(1turn); } }
  @keyframes setup-status-in { from { opacity:.25; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
}
.demo-picker { position:relative; min-width:0; }
.demo-picker button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:30px; margin-top:3px; padding:5px 8px; border:1px solid #c5c8ca; border-radius:var(--halo-corner-control); background:linear-gradient(155deg,#ffffffe8,#f3f5f699); color:var(--ink); cursor:pointer; text-align:left; font:500 12px/1.4 var(--font-halo); }
.demo-picker button i { --tabler-icon:url('./tabler/chevron-down.svg'); width:14px; height:14px; transition:transform .18s var(--picker-ease); }
.demo-picker button[aria-expanded=true] { border-color:var(--yt-red); }
.demo-picker button[aria-expanded=true] i { transform:rotate(180deg); }
.demo-package-menu { position:absolute; z-index:3; bottom:calc(100% - 12px); inset-inline:0; margin:0; min-width:0; padding:5px; border:1px solid #c9c6c8; border-radius:var(--halo-corner-card); background:linear-gradient(155deg,#fffffffa,#f9fafbfa); backdrop-filter:blur(12px); box-shadow:0 6px 18px #15171c24,inset 0 1px white; visibility:hidden; opacity:0; transform:translateY(3px) scale(.97); transform-origin:bottom center; transition:opacity .16s, transform .18s var(--picker-ease),visibility 0s .18s; }
.demo-package-menu:not([inert]) { visibility:visible; opacity:1; transform:none; transition-delay:0s; }
.demo-package-menu small { padding:3px 6px 5px; border-bottom:1px solid #e3e3e5; }
.demo-package-options { position:relative; max-height:min(162px,34vh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#a5a5ac transparent; margin-top:3px; }
.demo-package-menu label { display:flex; position:relative; align-items:center; justify-content:space-between; min-height:27px; gap:4px; border-radius:var(--halo-corner); padding:3px 7px; cursor:pointer; font:500 12px/1.4 var(--font-halo); }
.demo-package-menu label b { font-variant-numeric:tabular-nums; }
.demo-package-menu label i { --tabler-icon:url('./tabler/check.svg'); width:14px; height:14px; opacity:0; scale:.8; }
.demo-package-menu input { position:absolute; opacity:0; width:1px; height:1px; }
.demo-package-menu label:has(:checked) { background:#fff0f2; color:#a90025; }
.demo-package-menu label:has(:checked) i { opacity:1; scale:1; }
.demo-package-options { --option-accent:var(--yt-red); }
@media(prefers-reduced-motion:no-preference) {
  .demo-package-menu label { transition:background-color .14s ease-out,color .14s ease-out; }
  .demo-package-menu label i { transition:opacity .12s ease-out,scale .16s ease-out; }
}
.demo-package-menu label:has(:focus-visible) { outline:2px solid var(--yt-red); outline-offset:-2px; }
.walk[data-running] .form-pointer { z-index:4; }
@container (max-width:300px) {
  .film-preview figcaption { padding:0 38px 8px 10px; }
  .film-preview figcaption strong { font-size:14px; }
  .film-preview figcaption span { font-size:9px; }
}
@container(max-width:360px) { .form-options { grid-template-columns:1fr; gap:5px; } }
.film-console { display: flex; flex-direction: column; background: linear-gradient(145deg,#ffffffc7,#edf3fc8a 55%,#ffffff9e); border-color: var(--edge); color: var(--ink); }
.film-console .film-window, .console-port, .console-legend { border-color: var(--glass-rule); }
.film-console .scene-number { color: #58636a; border-color: #c4cccf; }
.console-led { width: 7px; height: 7px; border-radius: 50%; background: var(--walk-blue); }
.film-window code, .demo-market { margin-left: auto; color: #52595c; font: 500 11px var(--font-halo); }
.film-window code { color: #536066; }
.console-body { flex: 1; display: flex; flex-direction: column; }
.console-status, .console-port, .console-legend, .rank-reading { justify-content: space-between; }
.console-status small { color: #536066; }
.console-status strong { font-size: 12px; color: var(--walk-blue-ink); }
.order-bench {
  margin:8px 0; display:grid;
  overflow:hidden; border-radius:var(--halo-corner-card); border:1px solid #6e808724;
  background:radial-gradient(ellipse at 38% 16%,#fffffff2,transparent 68%),
    linear-gradient(168deg,#e7eef8 0%,#f5f8fd 52%,#dce6f4 73%,#f1f5fc);
  box-shadow: inset 0 1px 1px white;
}
.order-stage { display:block; width:100%; height:auto; aspect-ratio:300 / 175; }
.bench-land { display:block; width:100%; height:100%; background:center / contain no-repeat url('/assets/media/halo-workshop-globe.webp'); }
.bench-ticket { fill:#f7faff; stroke:#a6bddc; stroke-width:.85; }
.bench-satellites text { font:600 8.7px var(--font-halo); fill:#314968; }
.bench-slot rect { fill:#f1f5fc; stroke:#b7c7da; stroke-dasharray:2 2; }
.parcel-quantity { display:block; font:600 8.7px/16px var(--font-halo); color:#314968; white-space:nowrap; }
.bench-slot text { text-anchor:middle; font-weight:500; fill:#526780; }
.bench-region { display:flex; justify-content:center; }
.bench-region span { display:inline-flex; align-items:center; gap:4px; padding:2px 5px; border-radius:var(--halo-corner); background:#233c62; color:white; white-space:nowrap; font:600 9px/13px var(--font-halo); }
.bench-region span::before { content:""; width:4px; height:4px; border-radius:50%; background:#ffdf88; box-shadow:0 0 4px #ffd27488; }
.order-stage + .order-bench-caption { margin-top:0; }
.operator-label,.operator-folder-id { text-anchor:middle; fill:#415472; font:500 11px var(--font-halo); }
.operator-folder-id { font:600 8px var(--font-halo); font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.operator-blink { transform-origin:50% 50%; transform-box:fill-box; }
.order-bench-caption { margin:-4px 12px 8px; padding:7px 0 0; display:flex; align-items:center; gap:8px; border-top:1px solid #64747c26; font-size:10px; color:#435159; }
.file-meter { display:flex; gap:3px; margin-left:auto; }
.file-meter i { width:8px; height:3px; border-radius:2px; background:#c7cfd1; }
.file-meter .filed { background:var(--walk-blue); }
.order-bench-caption span:last-child { font-variant-numeric:tabular-nums; }
.demo-placements { container:placements / inline-size; min-width:0; padding:8px 10px 10px; border-top:1px solid #7a94b333; background:#ffffff85; }
.demo-placements h4 { margin:0 0 8px; font-size:10px; font-weight:600; line-height:1.3; color:#40536e; }
.demo-placements dl { margin:0; display:grid; grid-template-columns:1fr 1fr minmax(max-content,1.3fr) 1fr; }
.demo-placements dl > div { display:grid; justify-items:center; text-align:center; row-gap:3px; padding-inline:3px; border-inline-start:1px solid #9cafca55; }
.demo-placements dl > div:first-child { border:0; }
@container placements (max-width:250px) {
  .demo-placements dl { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:8px; }
  .demo-placements dl > div:nth-child(odd) { border-inline-start:0; }
}
.demo-placements dt { font-size:10px; font-weight:600; line-height:1.35; color:#29384d; }
.demo-placements small { display:block; font-size:9px; font-weight:500; color:#526278; }
.demo-placements dd { grid-row:1; margin:0; font-size:23px; line-height:1; font-weight:600; letter-spacing:-.055em; font-variant-numeric:tabular-nums; color:var(--walk-blue-ink); }
.demo-placements dd[data-pending] { color:#738297; }
.console-legend, .console-port { font-size: 10px; color: #536066; border-top: 1px solid var(--glass-rule); padding-top: 8px; }
.trace-feed { margin: 4px 0 8px; height: 120px; overflow: hidden; }
.trace-feed > div:not(.trace-track), .trace-track > div { display: flex; align-items: baseline; gap: 8px; font: 500 12px/20px var(--font-halo); font-variant-numeric: tabular-nums; }
.trace-feed time { font-size: 10px; color: #5c656b; }
.trace-feed em { font-size: 11px; font-style: normal; margin-left: auto; color: #485570; }
.trace-track > .latest { font-weight:600; }
.trace-track .latest em { color:var(--walk-blue-ink); }
.console-port > span { flex: none; }
.console-port b { min-width: 0; color: #364247; text-align: right; overflow-wrap: anywhere; }
.film-search { display: flex; flex-direction: column; }
.film-results > .is-featured { display:none; }
.search-wait { display:none; }
.film-search[data-search-phase] .search-wait { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:9px; font-size:12px; color:var(--quiet); background:linear-gradient(145deg,#edf3fb88,#ffffff44); border:1px solid var(--glass-rule); border-radius:var(--halo-corner); pointer-events:none; }
.search-wait svg { width:42px; height:42px; stroke-linejoin:round; stroke-linecap:round; }
.search-wait .scan-line { stroke:var(--walk-blue); }
.film-search:is([data-search-phase="waiting"],[data-search-phase="typing"],[data-search-phase="scanning"]) .rank-reading > span { visibility:hidden; }
.film-search[data-search-phase="waiting"] .rank-reading > div { visibility:hidden; }
@media (prefers-reduced-motion:no-preference) {
  .walk[data-running] .film-search[data-search-phase="typing"] .scan-line { animation:link-scan 900ms ease-in-out infinite alternate; }
}
.search-query { display: flex; gap: 8px; align-items: center; border: 1px solid #d9d6dc; border-radius: var(--halo-corner); margin: 8px var(--inset) 0; padding: 4px 10px; font-size: 12px; }
.rank-reading { margin: 7px var(--inset); min-height:27px; align-items: baseline; }
.rank-reading > div { display: flex; align-items: baseline; gap: 6px; }
.rank-reading strong { display: block; min-inline-size: 3ch; font-size: 23px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rank-reading > span { color: var(--quiet); font-size: 11px; }
.film-results { --rows: 5; --min-row: 62px; flex: 1; min-height: calc(var(--rows) * var(--min-row)); position: relative; margin-inline: 8px; overflow: hidden; contain: layout paint; }
.film-search:is([data-search-phase="scanning"],[data-search-phase="found"],[data-search-phase="tracking"]) .film-results {
  mask-image:linear-gradient(to bottom, transparent, #000 calc(var(--peek-row, 0%) / var(--rows)));
}
.results-track { position: absolute; inset: 0 0 auto; height: calc(100% / var(--rows)); will-change: transform; }
.film-result { height: var(--min-row); display: grid; grid-template-columns: 26px clamp(78px,26%,98px) minmax(0,1fr); align-items: center; gap: 8px; padding: 3px 6px; }
.results-track > .film-result { position:absolute; inset:0 0 auto; height:100%; box-sizing:border-box; }
.results-track > .is-featured { will-change:transform; background:var(--walk-ice); }
.results-track > .is-featured[data-first] { background:#dceaff; box-shadow:inset 3px 0 var(--walk-blue); }
.results-track > .is-featured[data-first] > b { color:#183f85; }
.film-result > b { font-size: 11px; color: #586269; text-align: center; font-variant-numeric: tabular-nums; }
.film-result strong, .film-result small { display: block; }
.film-result strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.35; }
.film-result small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size: 11px; color: #51585a; }
.film-thumb { width: 100%; aspect-ratio: 16/9; max-height: 100%; position: relative; border-radius: var(--halo-corner); background: url('/assets/media/rob-run-result-covers.webp') var(--tile-x,0%) var(--tile-y,0%) / 500% 800% no-repeat; }
.film-thumb time { position: absolute; bottom: 2px; right: 2px; padding: 1px 3px; font-size: 9px; }
.is-featured { background: var(--walk-ice); border-radius: var(--halo-corner); z-index: 1; box-shadow: inset 3px 0 var(--walk-blue-edge); }
.is-featured .film-thumb { background: center / cover url('/assets/media/demo-rob-run.webp'); }
.search-foot { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:4px 0 0; padding:8px var(--inset); border-top:1px solid var(--glass-rule); background:#eff5fc70; }
.search-foot > div { display:grid; gap:2px; align-content:center; }
.search-foot > div + div { padding-inline-start:var(--inset); border-inline-start:1px solid var(--glass-rule); }
.search-foot dt { color:var(--quiet); font-size:10px; line-height:1.4; }
.search-foot dd { margin:0; color:#293e5d; font-size:15px; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; }
.search-foot [data-rank-gain] { color:var(--walk-blue-ink); }
.film-search number-flow::part(digit) { inline-size:.66em; text-align:center; }
.search-foot [data-clock] number-flow { min-inline-size:1.32em; text-align:end; }
@media (prefers-reduced-motion:no-preference) {
  .film-search[data-search-phase="found"] :is(.rank-reading strong,.rank-reading > span,.search-foot dd) { animation:rank-metric-in 165ms ease-out; }
  @keyframes rank-metric-in { from { opacity:0; } to { opacity:1; } }
}
.walk-note { font-size: 12px; margin-top: 9px; }
@media (max-width: 1030px) {
  .walk-scenes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .walk-scene:last-child { grid-column: 1 / -1; }
  .film-results { flex: none; height: calc(var(--rows) * var(--min-row)); }
}
@media (max-width: 640px) {
  .walk { padding: var(--section-gutter); border-radius: var(--halo-corner-card); }
  .walk-scenes { grid-template-columns: minmax(0,1fr); }
  .walk-heading { margin: 0 2px 12px; }
  .walk-heading p { font-size: 13px; }
  .film-result { grid-template-columns: 24px clamp(76px,26%,98px) minmax(0,1fr); }
  .demo-field[data-full-url]::before, .demo-field [data-url] { font-size: clamp(10px,2.85vw,12px); }
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  .walk { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .walk, .film-screen { background: white; }
  .film-console { background: white; }
}
.demo-submit { display:flex; justify-content:space-between; align-items:center; gap:var(--inset); border-top:1px solid var(--edge); padding-top:var(--inset); font-size:11px; color:var(--quiet); }
.demo-submit button {
  position:relative; isolation:isolate; overflow:hidden; display:inline-flex; flex:none;
  justify-content:center; align-items:center; gap:6px;
  min-inline-size:10.75em; inline-size:max-content; height:34px; padding:0 12px; border:1px solid #b00024; border-radius:var(--halo-corner-control);
  background:linear-gradient(165deg,#ec1238,#ce0027 65%,#b40023);
  box-shadow:inset 0 1px #ffffff3d,inset 0 -1px #7c071235;
  color:white; cursor:pointer; font:600 12px/1.4 var(--font-halo);
}
.submit-label-window { flex:none; white-space:nowrap; overflow:hidden; display:grid; align-items:center; height:20px; }
[data-submit-label] { grid-area:1/1; }
.demo-submit svg { flex:none; width:16px; height:16px; overflow:hidden; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.submit-seal,.submit-tick { stroke-dasharray:1; stroke-dashoffset:1; }
.submit-seal { transform:rotate(-90deg); transform-origin:center; opacity:.68; }
[data-submit][data-sent] :is(.submit-seal,.submit-tick) { stroke-dashoffset:0; }
[data-submit]:is([data-sending],[data-sent]) .submit-plane { opacity:0; transform:translate(16px,-14px); }
[data-submit]:not([data-sending]) .submit-progress { visibility:hidden; }
@media (prefers-reduced-motion:no-preference) {
  [data-submit] .submit-plane { transition:transform 240ms var(--halo-navigation-ease),opacity 200ms ease; }
  [data-submit][data-sent] .submit-seal { transition:stroke-dashoffset 270ms var(--halo-navigation-ease); }
  [data-submit][data-sent] .submit-tick { transition:stroke-dashoffset 170ms ease-out 110ms; }
  [data-submit]:focus-visible .submit-tick { stroke-width:2.2; }
}
@media(hover:hover) and (pointer:fine) {
  .demo-submit button::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:#510016; opacity:0; }
  .demo-submit button:hover::before { opacity:.22; }
  .demo-package-menu label:not([data-option-lit]):not(:has(:checked)):hover { background:#f5f5f5; }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .demo-submit button::before { transition:opacity 150ms ease-out; }
  [data-submit]:not([data-sending],[data-sent]):hover .submit-plane { transform:translate(1px,-1px); }
}
@media(prefers-reduced-motion:reduce) { .demo-picker * { transition:none; } }


.walk-chapters { display:none }
.walk[data-ready] .walk-chapters { display:grid; }
.walk-chapters button { appearance:none; position:relative; overflow:hidden; border:0; background:transparent; border-radius:var(--halo-corner-control); padding:8px 12px; font:500 11px var(--font-halo); cursor:pointer; color:var(--quiet); }
.walk-chapters i, .submit-progress { position:absolute; bottom:0; left:0; width:100%; height:2px; transform-origin:left; pointer-events:none; }
.walk-chapters button[aria-current] { color:var(--walk-blue-ink); }
.walk[data-ready] .walk-scene:not([data-current]) .film-screen {
  filter:grayscale(1);
  background:linear-gradient(135deg,#f6f7f6de,#f8f9f8bd);
}
.walk-scene[data-current] .film-screen {
  border-color:var(--walk-blue-edge);
  box-shadow:0 0 0 1px #93c5fd52,0 3px 15px -3px #436caa38;
}
.walk[data-ready] .walk-scene:not([data-current]) .film-screen *,
.walk[data-ready]:not([data-running]) .film-screen * { animation-play-state:paused; transition-duration:0s; transition-delay:0s; }
.walk[data-ready] .walk-scene:not([data-current]) .film-screen *::after,
.walk[data-ready]:not([data-running]) .film-screen *::after { animation-play-state:paused; }
.walk[data-ready] .walk-scene:not([data-current]) .film-preview[data-detected] > :is(img,time,figcaption) { animation:none; }
.walk-scene[data-current] .scene-number { color:var(--walk-blue-ink); }
.walk-chapters button[aria-current] i { background:var(--walk-blue); }
.submit-progress { background:#fff; }
.walk-chapters button:focus-visible { outline:2px solid var(--walk-blue); outline-offset:-2px; }
@media (prefers-reduced-motion:no-preference) {
  .walk[data-ready] .film-screen { transition:filter 240ms ease-out,border-color 240ms ease-out,box-shadow 240ms ease-out; }
}
@media (forced-colors:active) {
  .walk-scene[data-current] .film-screen { outline:2px solid Highlight; }
}
.trace-track { transition:transform 270ms cubic-bezier(.22,.78,.24,1) }
.trace-track > div { height:20px }
@media(max-width:640px){.walk[data-ready] .walk-chapters{width:100%;} }
@media(prefers-reduced-motion:reduce){.trace-track{transition:none} }

/* Keep the story in one frame on handsets. Every chapter remains directly selectable. */
@media (max-width: 640px) {
  .walk[data-ready] .walk-scenes { isolation:isolate; }
  .walk[data-ready] .walk-scene { grid-area:1 / 1; opacity:0; visibility:hidden; transition:opacity 220ms ease,visibility 0s 220ms; }
  .walk[data-ready] .walk-scene[data-current] { opacity:1; visibility:visible; transition-delay:0s; z-index:1; }
  .film-results { flex:1; }
  .walk-chapters button { min-height:42px; padding-inline:3px; }
}
@media (min-width:641px) and (max-width:1030px) {
  .film-search { display:grid; grid-template-columns: minmax(190px,.8fr) minmax(0,1.2fr); grid-template-rows:36px auto 1fr auto; }
  .film-search .film-window { grid-column:1/-1; }
  .film-search .search-query { grid-area:2/1; align-self:start; }
  .film-search .rank-reading { grid-area:3/1; flex-direction:column; align-self:start; gap:6px; }
  .film-search .film-results { grid-area:2/2/5/3; margin-block:8px; }
  .film-search .search-foot { grid-area:4/1; }
}
@media (prefers-reduced-motion:reduce) {
  .walk[data-ready] .walk-scene { transition:none; }
}

@media (scripting:none) {
  .walk[data-ready] :is(.walk-chapters, .walk-scenes) { display:none; }
}
