@charset "utf-8";



.mods-hero { min-height: 72svh; display: flex; align-items: center; padding-top: calc(var(--section-y) + 16px); background: var(--ink); }

.bg-glow {
  background:
    radial-gradient(1100px 560px at 82% 8%, rgba(79, 179, 255, 0.18), transparent 62%),
    radial-gradient(900px 640px at 6% 104%, rgba(11, 93, 143, 0.42), transparent 62%),
    linear-gradient(160deg, #15304a 0%, #0f2231 46%, #091622 100%);
}
.mods-hero h1 { color: var(--ink-text); max-width: 28ch; margin-bottom: 28px; }
.mods-hero .intro { color: var(--ink-muted); margin-top: 8px; }
.modmap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.modmap-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  padding: 9px 12px; border: 1px solid var(--ink-line); border-radius: 999px; color: var(--ink-text); text-decoration: none;
  transition: background var(--reveal-ms) var(--ease), border-color var(--reveal-ms) var(--ease);
}
.modmap-chip:hover { border-color: var(--accent-bright); background: var(--ink-2); }
.modmap-chip--core { border-color: var(--accent-bright); color: var(--accent-bright); }


.mods-hero--rail h1 { margin-bottom: 14px; }
.mods-hero--rail .intro { margin: 0 0 26px; max-width: 46ch; }
.din-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) { .din-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.din {
  --rail-h: 40px; --rail-gap: 22px;
  gap: var(--rail-gap) 10px; align-content: start; margin: 0; padding: 18px 16px 16px;
  border: 1px solid var(--ink-line); border-radius: var(--radius-lg);
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 12px, rgba(232, 238, 243, 0.14) 12px 13px, rgba(232, 238, 243, 0.06) 13px 27px, rgba(232, 238, 243, 0.14) 27px 28px,
    transparent 28px calc(var(--rail-h) + var(--rail-gap))), linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025));
  background-origin: content-box, padding-box; background-clip: content-box, padding-box;
}
.din .modmap-chip {
  position: relative; display: flex; align-items: center; height: var(--rail-h); max-width: 100%; padding: 0 12px 0 16px; letter-spacing: 0; white-space: normal;
  border-radius: 4px; background: var(--ink-2); border-color: rgba(232, 238, 243, 0.22); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: opacity 420ms var(--ease), transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color var(--reveal-ms) var(--ease), background var(--reveal-ms) var(--ease);
}
.din .modmap-chip::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent-bright); opacity: 0.9; }
.din .modmap-chip--core { background: rgba(79, 179, 255, 0.14); }
.din .modmap-chip--core::before { background: #fff; }
html.js .mods-hero--rail .modmap-chip { opacity: 0.3; transform: translateY(-22px); transition-delay: calc(var(--k) * 28ms); }
html.js .mods-hero--rail.is-in .modmap-chip { opacity: 1; transform: none; }
html.js .mods-hero--rail.is-in .modmap-chip::before { animation: rail-seat 520ms var(--ease) calc(var(--k) * 28ms + 380ms) both; }
@keyframes rail-seat { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 3px rgba(79, 179, 255, 0.45), 0 0 18px rgba(79, 179, 255, 0.55); } }
html.js .mods-hero--rail.is-in .modmap-chip.is-off { opacity: 0.22; transition-delay: 0ms; }
.din-kits { margin: 14px 0 0; font-size: 14px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.din-kits-js { display: contents; }
html:not(.js) .din-kits-js { display: none; }
.din-kit {
  font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ink-line); background: transparent; color: var(--ink-text);
  transition: border-color var(--reveal-ms) var(--ease), background var(--reveal-ms) var(--ease);
}
.din-kit:hover, .din-kit:focus-visible, .din-kit.is-lit { border-color: var(--accent-bright); background: rgba(79, 179, 255, 0.12); }
.din-kit[aria-pressed="true"] { background: var(--accent-bright); color: var(--ink); border-color: var(--accent-bright); }
.din-kits-link { color: var(--ink-text); }
@media (max-width: 720px) {
  .din { --rail-h: 32px; --rail-gap: 12px; padding: 12px 10px 10px; gap: var(--rail-gap) 6px;
    background-image: repeating-linear-gradient(to bottom,
      transparent 0 8px, rgba(232, 238, 243, 0.14) 8px 9px, rgba(232, 238, 243, 0.06) 9px 23px, rgba(232, 238, 243, 0.14) 23px 24px,
      transparent 24px calc(var(--rail-h) + var(--rail-gap))), linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025)); }
  .din .modmap-chip { font-size: 10px; letter-spacing: 0.02em; padding: 0 9px 0 13px; }
  .din .modmap-chip::before { top: 6px; bottom: 6px; left: 5px; }
}

.mod { --p: 1; overflow: clip; } 
html.js .mod { --p: 0; } 
.mod-grid { display: grid; gap: 40px; align-items: center; margin-top: 8px; }
.mod-scene { position: relative; }
.m-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; font-weight: 400; }
.dark .m-label { color: var(--accent-bright); }
.m-text { display: grid; gap: 20px; }
.m-text p { margin: 0; }
.m-can { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.m-can li { position: relative; padding-left: 20px; }
.m-can li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); }
.m-can-wrap { display: grid; gap: 6px; }
.m-what { font-size: 18px; }
.mod .step-title { margin-bottom: 0; }
.mod .step-title + * { margin-top: 28px; } 
.mod .num { margin: 0; }


html.js .rv > * { opacity: 0; transform: translateY(14px); transition: opacity 550ms var(--ease), transform 550ms var(--ease); }
html.js .mod.is-in .rv > * { opacity: 1; transform: none; }
.rv > :nth-child(2) { transition-delay: 110ms; } .rv > :nth-child(3) { transition-delay: 220ms; }
.rv > :nth-child(4) { transition-delay: 330ms; } .rv > :nth-child(5) { transition-delay: 440ms; } .rv > :nth-child(6) { transition-delay: 550ms; }

@media (min-width: 1024px) {
  .mod--L .mod-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .mod--R .mod-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  
  .mod--L .mod-grid, .mod--R .mod-grid { align-items: start; }
  .mod--L .mod-scene, .mod--R .mod-scene { position: sticky; top: 96px; }
}
@media (max-width: 1023px) {
  .mod--L .mod-scene { order: -1; }
}


.mod-grid--sticky { align-items: start; }
@media (min-width: 1024px) {
  .mod-grid--sticky { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mod--S .mod-scene { position: sticky; top: 84px; }
}
.scene-pit { border: 1px solid var(--ink-line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.pit { display: block; width: 100%; height: auto; }
.pit-terraces path { fill: none; stroke: rgba(232, 238, 243, 0.18); stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }
.pit-roads path { fill: none; stroke: rgba(79, 179, 255, 0.35); stroke-width: 3; stroke-dasharray: 6 8; }
.pit-shovel rect { fill: var(--warn); }
.pit-shovel path { stroke: var(--warn); stroke-width: 3; stroke-linecap: round; }
.pit-crusher rect { fill: var(--ink-2); stroke: var(--accent-bright); stroke-width: 2; }
.pit-crusher path { fill: none; stroke: var(--accent-bright); stroke-width: 2; }
.pit-queue circle { fill: var(--alarm); filter: drop-shadow(0 0 4px rgba(179, 38, 30, 0.8)); transition: opacity 600ms var(--ease); }
.pit-links path { fill: none; stroke: var(--accent-bright); stroke-width: 2; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1100ms var(--ease); }
.pit-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-muted); }
.pit-truck {
  fill: var(--ink-text); filter: drop-shadow(0 0 5px rgba(79, 179, 255, 0.7));
  offset-rotate: auto; offset-distance: calc((var(--d) + var(--p) * 0.55) * 100%);
}
.pit-truck--a { offset-path: path('M40 390C120 330 160 300 230 300S330 330 400 310 520 260 600 240'); }
.pit-truck--b { offset-path: path('M40 390C120 360 220 372 300 350S430 300 470 290'); }
.pit-mark { position: absolute; left: 16px; top: 14px; max-width: 46%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-muted); opacity: 0; transition: opacity 400ms var(--ease); }
.pit-bars { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; background: rgba(15, 34, 49, 0.94); border: 1px solid var(--ink-line); border-radius: var(--radius); opacity: 0; transform: translateY(12px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); display: grid; gap: 12px; }
.pit-bars .bars { height: 80px; }
.pit-bars .num > .n { font-size: clamp(26px, 3vw, 36px); color: #7ad483; }

.mod--S[data-step="2"] .pit-links path, .mod--S[data-step="3"] .pit-links path, .mod--S[data-step="4"] .pit-links path { stroke-dashoffset: 0; }
.mod--S[data-step="2"] .pit-mark--horizon { opacity: 1; }
.mod--S[data-step="3"] .pit-queue circle:nth-child(n + 3), .mod--S[data-step="4"] .pit-queue circle:nth-child(n + 3) { opacity: 0; }
.mod--S[data-step="3"] .pit-bars, .mod--S[data-step="4"] .pit-bars { opacity: 1; transform: none; }
.mod--S[data-step="3"] .bars i, .mod--S[data-step="4"] .bars i { height: var(--h); }
.mod--S[data-step="4"] .pit-truck--third { fill: #ffd08a; filter: drop-shadow(0 0 8px #ffd08a); }
.hl-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.m-step { counter-increment: st; position: relative; padding-left: 56px; min-height: 64vh; display: grid; align-content: center; gap: 8px; opacity: 0.35; transition: opacity 400ms var(--ease); }
.m-step::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: calc(50% - 10px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-bright); padding: 3px 8px; border: 1px solid var(--ink-line); border-radius: 4px; }
.m-step.is-active { opacity: 1; }
.m-step.is-active::before { background: var(--accent-bright); color: var(--ink); border-color: var(--accent-bright); }
html:not(.js) .m-step { opacity: 1; min-height: 0; padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 1023px) {
  .m-step { min-height: 0; opacity: 1; padding: 18px 0 18px 56px; }
  .m-step::before { top: 18px; }
  .scene-pit { margin-bottom: 8px; }
  .pit-bars { position: static; margin: 0 12px 12px; opacity: 1; transform: none; }
  .pit-bars .bars i { height: var(--h); }
}


.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; display: grid; gap: 56px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 50%; top: 0; width: 3px; transform: translateX(-50%); border-radius: 2px; }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: calc(var(--p) * 100%); background: var(--accent-bright); box-shadow: 0 0 12px rgba(79, 179, 255, 0.6); }
.tl-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; --lit: clamp(0, calc((var(--p) - var(--k) * 0.25 - 0.06) * 6), 1); }
.tl-node { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); transform: translate(-50%, -50%); z-index: 1; }
.tl-node::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 16px rgba(79, 179, 255, 0.8); opacity: var(--lit); }
.tl-name { position: absolute; left: calc(50% + 20px); top: calc(50% - 30px); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tl-card, .row-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-1); display: grid; gap: 8px; }
.tl-card { grid-column: 1; opacity: calc(0.25 + var(--lit) * 0.75); transform: translateX(calc((1 - var(--lit)) * -20px)); } 
.tl-stage:nth-child(even) .tl-card { grid-column: 2; transform: translateX(calc((1 - var(--lit)) * 20px)); }
.tl-stage:nth-child(even) .tl-name { left: auto; right: calc(50% + 20px); text-align: right; }
.tl-sprite { position: absolute; right: 6%; top: 50%; width: min(240px, 26vw); transform: translateY(calc(-50% + var(--p) * -14px)); opacity: calc(0.4 + var(--lit) * 0.6); pointer-events: none; }
.receipt { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 8px; }
.receipt li { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.receipt li i { display: block; height: 8px; border-radius: 2px; background: var(--accent); width: calc(var(--w) * var(--lit)); justify-self: end; }
.receipt li i.receipt-gap { width: 100%; background: none; border: 1px dashed var(--border); }
.receipt li em { grid-column: 1 / -1; font-style: normal; font-size: 11px; color: var(--warn-text); }
@media (max-width: 899px) {
  .timeline { gap: 36px; padding-left: 34px; }
  .timeline::before, .timeline::after { left: 9px; transform: none; }
  .tl-stage { grid-template-columns: 1fr; gap: 0; }
  .tl-node { left: -34px; transform: translateY(-50%); }
  .tl-stage:nth-child(even) .tl-card, .tl-card { grid-column: 1; transform: none; }
  .tl-name { position: static; display: block; margin-bottom: 8px; }
  .tl-stage:nth-child(even) .tl-name { text-align: left; }
  .tl-sprite { display: none; }
}


.mod-stage { position: relative; margin-top: 28px; display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .mod--C .mod-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 28px; row-gap: 28px; }
  .mod--C .mod-stage > .mod-scene { grid-column: 2; grid-row: 1 / span 2; }
  .mod--C .mod-stage .hl-stickers, .mod--C .mod-stage .hl-labels { display: contents; }
  .sticker--tl, .label--tl { grid-column: 1; grid-row: 1; }
  .sticker--bl, .label--bl { grid-column: 1; grid-row: 2; }
  .sticker--tr, .label--tr { grid-column: 3; grid-row: 1; }
  .sticker--br, .label--br { grid-column: 3; grid-row: 2; }
}
.tab { width: min(100%, 420px); margin: 0 auto; min-height: 400px; background: var(--ink); color: var(--ink-text); border-radius: 22px; border: 6px solid #22384a; padding: 14px 14px 56px; position: relative; box-shadow: var(--shadow-2); }
.tab-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink-line); }
.tab-signal { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.is-in .tab-signal { animation: signal 8s steps(1) infinite; }
.tab-tasks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tab-tasks li { --t: clamp(0, calc((var(--p) - var(--k) * 0.2) * 4), 1); background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; transform: translateX(calc((1 - var(--t)) * 70px)); opacity: var(--t); }
.tab-tasks b { font-size: 14px; }
.tab-tasks span { font-size: 12px; color: var(--ink-muted); }
.tab-tasks em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-bright); }
.tab-queue { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; }
.tab-queue-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-muted); margin-right: auto; }
.tab-queue i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent-bright); opacity: 0; }
.is-in .tab-queue i { animation: queue 8s var(--ease) infinite; }
.is-in .tab-queue i:nth-child(3) { animation-delay: 0.5s; } .is-in .tab-queue i:nth-child(4) { animation-delay: 1s; }
.tab-num { margin: 18px auto 0; max-width: 420px; }
.sticker { position: relative; background: #fff7d6; border: 1px solid #efe1a6; border-radius: 4px; padding: 20px 18px 18px; box-shadow: var(--shadow-2); transform: rotate(var(--rot, -1.5deg)); display: grid; gap: 8px; }
.sticker::before { content: ''; position: absolute; top: -9px; left: 50%; width: 64px; height: 16px; background: rgba(79, 179, 255, 0.35); transform: translateX(-50%) rotate(-2deg); }
.sticker--tr { --rot: 1.3deg; } .sticker--bl { --rot: 1.6deg; } .sticker--br { --rot: -1.1deg; }
.sticker .m-label { color: var(--warn-text); }
.sticker .m-can li::before { background: var(--warn); }
html.js .mod.is-in .hl-stickers > .sticker { transform: rotate(var(--rot, -1.5deg)); }


.scene-flow { margin-top: 28px; padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.flow-books { position: relative; height: 60px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.flow-book { position: absolute; top: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); white-space: nowrap; }
.flow-book--a { left: calc(8% + var(--p) * 30%); }
.flow-book--b { right: calc(8% + var(--p) * 30%); }
.flow-meet { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); color: var(--accent); white-space: nowrap; opacity: clamp(0, calc((var(--p) - 0.82) * 8), 1); }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; height: 160px; }
.flow::before, .flow::after { content: ''; position: absolute; left: 6%; bottom: 40px; height: 3px; border-radius: 2px; }
.flow::before { right: 6%; background: var(--line); }
.flow::after { width: calc(var(--p) * 88%); background: var(--accent-bright); }
.flow-node { display: grid; justify-items: center; align-content: end; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); height: 100%; position: relative; z-index: 1; }
.flow-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); margin-bottom: 8px; }
.pile { display: flex; flex-direction: column-reverse; width: 60px; gap: 2px; margin-bottom: 6px; }
.pile-base { height: 44px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; display: grid; place-items: center; border-radius: 3px 3px 0 0; }
.pile-move { --t: clamp(0, calc((var(--p) - 0.45 - var(--k) * 0.15) * 6), 1); height: 12px; background: var(--accent-bright); border-radius: 2px; transform-origin: bottom; transform: scaleY(var(--t)); }
.flow-truck { position: absolute; bottom: 36px; width: 120px; left: calc(6% + var(--p) * 42%); transform: translateX(-50%) scaleX(-1); z-index: 2; } 
.hl-ledger { margin-top: 24px; gap: 0; border-top: 2px solid var(--text); }
.ledger-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dotted var(--border); align-items: start; }
.ledger-row .m-label { margin: 4px 0 0; }
.ledger-num { padding-top: 20px; }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 1fr; gap: 8px; }
  .flow-books { height: 72px; font-size: 10px; }
  .flow-meet { top: 44px; }
  .flow-truck { width: 60px; }
}


.scene-hub { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; place-items: center; padding: 32px 0 12px; }
.hub { position: relative; width: min(100%, 520px); aspect-ratio: 1; --R: 41%; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink-2); border: 2px solid var(--accent-bright); display: grid; place-items: center; color: var(--accent-bright); box-shadow: 0 0 44px rgba(79, 179, 255, 0.35); z-index: 2; }
.hub-arm { position: absolute; left: 50%; top: 50%; width: calc(var(--R) * 1.3); height: 0; transform: rotate(var(--a)); transform-origin: 0 0; transition: width 900ms var(--ease); transition-delay: calc(var(--k) * 90ms); }
.is-in .hub-arm { width: var(--R); }
.hub-spoke { position: absolute; left: 44px; right: 0; top: -1px; height: 2px; background: rgba(232, 238, 243, 0.2); transform-origin: right; transform: scaleX(0); transition: transform 800ms var(--ease); transition-delay: calc(var(--k) * 90ms + 300ms); }
.is-in .hub-spoke { transform: scaleX(1); }
.hub-dot { position: absolute; top: -3px; left: 100%; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--accent-bright); opacity: 0; }
.is-in .hub-dot { animation: hub-in 2.6s linear infinite; animation-delay: calc(var(--k) * 330ms + 1200ms); }
.is-in .hub-dot--out { animation-name: hub-out; }
@keyframes hub-in { 0% { left: 100%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 48px; opacity: 0; } }
@keyframes hub-out { 0% { left: 48px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hub-badge { position: absolute; left: 100%; top: 0; width: max-content; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); font-family: var(--mono); font-size: 11px; letter-spacing: 0; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--ink-text); white-space: nowrap; opacity: 0; transition: opacity 500ms var(--ease); transition-delay: calc(var(--k) * 90ms + 200ms); }
.is-in .hub-badge { opacity: 1; }
@media (max-width: 720px) {
  .hub { --R: 40%; }
  .hub-arm { width: var(--R); }
  .hub-badge { font-size: 9px; padding: 6px; white-space: normal; max-width: 86px; text-align: center; line-height: 1.2; }
}
.hl-log { margin-top: 24px; background: #0a141d; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 22px 24px; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink-text); gap: 16px; }
.hl-log .m-what { font-size: 14px; }
.hl-log .m-label { color: var(--accent-bright); }
.hl-log .m-can li { padding-left: 20px; }
.hl-log .m-can li::before { content: '›'; background: none; top: 0; color: var(--accent-bright); font-weight: 700; width: auto; height: auto; }


.hl-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-bright); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); }
.hl-card .m-can li::before { box-shadow: 0 0 10px rgba(79, 179, 255, 0.8); }
.scene-dam { min-width: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); border: 1px solid var(--line); color: var(--ink-text); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; --water: calc(14% + var(--p) * 30%); }
.dam-plot { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 260px; overflow: hidden; }
.dam-art { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; opacity: 0.8; transform: translateY(calc(var(--p) * -4%)); }
.dam-crest { position: absolute; left: 6%; right: 76px; top: 36%; height: 2px; background: var(--ink-text); }
.dam-crest span { position: absolute; left: 0; top: -20px; white-space: nowrap; }
.dam-water { position: absolute; left: 6%; right: 76px; bottom: 8%; height: var(--water); background: linear-gradient(180deg, rgba(79, 179, 255, 0.55), rgba(11, 93, 143, 0.7)); border-top: 2px solid var(--accent-bright); }
.dam-water span { position: absolute; left: 10px; top: 6px; }
.dam-storm { position: absolute; left: 6%; right: 76px; top: 6%; bottom: calc(8% + var(--water) + 9%); border-bottom: 2px dashed #ffd08a; opacity: clamp(0, calc((var(--p) - 0.7) * 5), 1); }
.dam-storm::after { content: ''; position: absolute; right: 0; top: 24px; bottom: 0; border-right: 1px dashed #ffd08a; }
.dam-storm span { position: absolute; right: 8px; top: -6px; padding: 3px 6px; border-radius: 2px; background: var(--ink); color: #ffd08a; white-space: nowrap; }
.dam-freeboard { position: absolute; right: 58px; top: calc(36% + 2px); bottom: calc(8% + var(--water) + 2px); width: 12px; border-right: 2px solid #ffd08a; }
.dam-freeboard::before, .dam-freeboard::after { content: ''; position: absolute; right: -2px; width: 12px; height: 2px; background: #ffd08a; }
.dam-freeboard::before { top: 0; } .dam-freeboard::after { bottom: 0; }
.dam-freeboard span { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; letter-spacing: 0; color: #ffd08a; }
.dam-post { position: absolute; bottom: 8%; width: 6px; background: var(--ink-text); border-radius: 2px; }
.dam-post--a { left: 30%; height: 48%; }
.dam-post--b { left: 58%; height: 50%; }
.dam-tick { position: absolute; left: -6px; right: -6px; top: 32%; height: 2px; background: var(--warn); }
.dam-post b { position: absolute; top: -8px; left: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dam-post--b b { --glow: clamp(0, calc((var(--p) - 0.5) * 4), 1); background: var(--warn); box-shadow: 0 0 calc(var(--glow) * 22px) var(--warn); opacity: calc(0.5 + var(--glow) * 0.5); }
.dam-sensors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 14px 16px 18px; border-top: 1px solid var(--ink-line); letter-spacing: 0; }
.dam-sensors li { padding-left: 8px; border-left: 2px solid var(--ok); color: var(--ink-muted); }
.dam-sensors li + li { border-color: #ffd08a; color: #ffd08a; }
@media (max-width: 720px) { .dam-storm span { white-space: normal; width: 140px; text-align: right; } .dam-storm::after { top: 40px; } }
@media (max-width: 380px) { .mod[data-module] .step-title { font-size: 20px; letter-spacing: 0; } }


.hl-facts { gap: 32px; margin-top: 8px; }
.facts-top, .facts-bottom { display: grid; gap: 28px; }
@media (min-width: 900px) { .facts-top, .facts-bottom { grid-template-columns: 1fr 1fr; align-items: start; } }
.scene-tank { display: grid; grid-template-columns: 150px 1fr 170px; align-items: center; gap: 18px; padding: 26px 0 40px; }
.tank-bowser { width: 150px; transform: scaleX(-1) translateX(calc((1 - var(--p)) * 40px)); opacity: calc(0.4 + var(--p) * 0.6); } 
.tank-truck { width: 170px; }
.tank { position: relative; height: 76px; border-radius: 38px; border: 2px solid var(--ink-line); background: rgba(255, 255, 255, 0.04); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.tank-fill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(var(--p) * 92%); border-radius: 34px; background: linear-gradient(90deg, rgba(79, 179, 255, 0.45), var(--accent-bright)); box-shadow: 0 0 24px rgba(79, 179, 255, 0.4); }
.tank-scale span { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink); font-weight: 700; }
.tank-issued { position: absolute; left: 74%; top: -14px; bottom: -14px; width: 3px; background: #ffd08a; }
.tank-issued span { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); white-space: nowrap; color: #ffd08a; }
.tank-flag { position: absolute; left: 74%; bottom: -46px; transform: translateX(-50%); padding: 6px 12px; border-radius: 4px; background: rgba(168, 105, 10, 0.3); border: 1px solid rgba(255, 208, 138, 0.5); color: #ffd08a; white-space: nowrap; opacity: clamp(0, calc((var(--p) - 0.8) * 8), 1); }
.months { grid-column: 1 / -1; display: grid; gap: 8px; }
.months-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-muted); }
.months ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.months li { height: 34px; border-radius: 3px; background: rgba(79, 179, 255, 0.25); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--ink-text); }
.months-gap { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 208, 138, 0.35) 4px 6px); border: 1px dashed #ffd08a; color: #ffd08a; }
@media (max-width: 899px) {
  .scene-tank { grid-template-columns: 1fr; gap: 10px; padding-bottom: 52px; }
  .tank-bowser, .tank-truck { width: 120px; margin: 0 auto; }
  .tank-issued { left: 68%; }
  .tank-flag { left: 50%; white-space: normal; width: 220px; text-align: center; }
  .months ul { grid-template-columns: repeat(6, 1fr); }
}


.panel { position: relative; background: #1b2a36; border: 2px solid #35505f; border-radius: 10px; padding: 20px; color: var(--ink-text); box-shadow: var(--shadow-2); }
.panel-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.iso { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.iso-point { display: grid; grid-template-columns: minmax(0, 1fr) 42px 40px minmax(0, 1.3fr); align-items: center; gap: 12px; min-height: 56px; background: rgba(255, 255, 255, 0.04); border-radius: 6px; padding: 8px 12px; }
.iso-name { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.iso-switch { position: relative; width: 40px; height: 20px; border-radius: 3px; background: var(--alarm); }
.iso-switch::after { content: ''; position: absolute; left: 4px; top: 3px; width: 12px; height: 14px; border-radius: 2px; background: #fff; }
.iso-switch--unverified { background: var(--warn); outline: 2px dashed #fff; outline-offset: 1px; }
.lock { width: 34px; height: auto; transform: translateY(-46px) rotate(-14deg); opacity: 0; transition: transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms var(--ease); transition-delay: calc(var(--k) * 340ms + 200ms); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.is-in .lock { transform: none; opacity: 1; }
.is-in .lock--removed { transform: translate(8px, 4px) rotate(22deg); opacity: 0.35; filter: grayscale(1); }
.lock-tag { font-size: 12px; font-style: normal; color: var(--ink-muted); line-height: 1.3; }
.lock-tag--reason { color: #ffd08a; }
.lever { margin-top: 18px; display: flex; align-items: flex-end; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-muted); }
.lever-arm { display: block; width: 12px; height: 48px; border-radius: 6px; background: var(--ink-muted); transform-origin: bottom center; }
.is-in .lever-arm { animation: lever-try 3.4s var(--ease) infinite; }
@keyframes lever-try { 0%, 58%, 100% { transform: none; background: var(--ink-muted); } 66% { transform: rotate(-22deg); } 72% { transform: rotate(-24deg); background: var(--alarm); } 80% { transform: rotate(3deg); } }
.hl-rules .m-can li { padding-left: 30px; }
.hl-rules .m-can li::before { top: 0.5em; width: 14px; height: 10px; border-radius: 2px; background: var(--accent); box-shadow: none; }
.hl-rules .m-can li::after { content: ''; position: absolute; left: 2px; top: 0.05em; width: 6px; height: 8px; border: 2px solid var(--accent); border-bottom: none; border-radius: 5px 5px 0 0; }
@media (max-width: 720px) { .iso-point { grid-template-columns: 1fr 40px 36px; } .lock-tag { grid-column: 1 / -1; } }


.scene-holes { position: relative; margin-top: 28px; padding-top: 28px; }

.holes-rig { position: absolute; right: 12px; bottom: calc(100% - 44px); width: min(200px, 30vw); opacity: 0.95; transform: translateY(calc(var(--p) * -10px)); z-index: 1; pointer-events: none; }
.split { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 20px; }
.split-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.holes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 8px; }
.holes li { position: relative; height: 104px; display: flex; justify-content: center; align-items: flex-start; }
.holes li::before { content: ''; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--text); transform: translateX(-50%); }
.holes li i { display: block; width: 6px; margin-top: 12px; height: calc(64px * var(--h, 1) * var(--p)); background: var(--accent); border-radius: 0 0 3px 3px; }
.holes--plan li i { height: 64px; background: var(--border); }
.hole--short i { background: var(--warn); }
.hole--over i { background: var(--alarm); }
.hole--none i { height: 64px; background: none; border: 1px dashed var(--border); }
.holes li em { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; font-style: normal; color: var(--muted); white-space: nowrap; }
.oversize { margin-top: 20px; display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.oversize-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.oversize-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 78%); border-radius: 7px; background: linear-gradient(90deg, var(--ok), var(--warn) 70%, var(--alarm)); }
.oversize-limit { position: absolute; left: 62%; top: -8px; bottom: -8px; width: 3px; background: var(--text); }
.oversize-legend { padding-left: calc(62% - 4px); }
.hl-notebook { margin-top: 28px; padding: 26px 24px 26px 58px; position: relative; border: 1px solid var(--line); border-radius: 4px; line-height: 28px; font-size: 16px; gap: 28px;
  background-color: #fffdf6; background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(11, 93, 143, 0.13) 27px 28px); }
.hl-notebook::before { content: ''; position: absolute; left: 42px; top: 0; bottom: 0; width: 2px; background: rgba(179, 38, 30, 0.35); }
.hl-notebook .m-label { line-height: 28px; margin: 0; color: var(--alarm); }
.hl-notebook .m-what { font-size: 16px; }
.hl-notebook .m-can { gap: 0; }
.hl-notebook .m-can li { line-height: 28px; padding-left: 22px; }
.hl-notebook .m-can li::before { top: 10px; background: var(--text); }
@media (max-width: 720px) { .holes { grid-template-columns: repeat(6, 1fr); gap: 8px 4px; } .holes li em { font-size: 8px; } .hl-notebook { padding-left: 44px; } .hl-notebook::before { left: 30px; } .holes-rig { bottom: calc(100% - 36px); } }


.scene-shelf { padding: 34px 0 30px; }
.shelf { position: relative; display: grid; grid-template-columns: 1fr 200px; align-items: end; gap: 20px; padding-bottom: 14px; border-bottom: 10px solid #6b4a2b; }
.shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: -20px; height: 8px; background: rgba(16, 24, 31, 0.14); filter: blur(4px); }
.shelf-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.part { --t: clamp(0, calc((var(--p) - var(--k) * 0.16) * 4), 1); position: relative; padding: 14px 12px 34px; border-radius: 6px 6px 2px 2px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 4px; transform: translateY(calc((1 - var(--t)) * -44px)); opacity: var(--t); }
.part b { font-size: 15px; }
.part em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.part--stopper em { color: var(--alarm); } .part--unit em { color: var(--warn-text); } .part--degraded em { color: var(--muted); } .part--idle em { color: var(--accent); }
.part-tag { position: absolute; left: 10px; bottom: -16px; padding: 4px 8px 4px 16px; background: #fff; border: 1px solid var(--border); border-radius: 3px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; font-style: normal; box-shadow: var(--shadow-1); transform: rotate(-3deg); white-space: nowrap; }
.part-tag::before { content: ''; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); transform: translateY(-50%); }
.shelf-sprite { width: 200px; transform: translateX(calc((1 - var(--p)) * 60px)); }
.hl-tags .m-can { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-tags .m-can li { flex: 1 1 240px; position: relative; padding: 10px 14px 10px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 3px; box-shadow: var(--shadow-1); font-size: 15px; clip-path: polygon(0 50%, 12px 0, 100% 0, 100% 100%, 12px 100%); }
.hl-tags .m-can li::before { left: 10px; top: 50%; width: 7px; height: 7px; background: var(--surface-2); border: 1px solid var(--border); transform: translateY(-50%); }
@media (max-width: 899px) {
  .shelf { grid-template-columns: 1fr; }
  .shelf-board { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .shelf-sprite { width: 150px; margin: 20px auto 0; }
  .part-tag { white-space: normal; max-width: 100%; }
}


.seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seat { position: relative; min-height: 86px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; align-content: end; box-shadow: var(--shadow-1); }
.seat > span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chip { --t: clamp(0, calc((var(--p) - var(--k) * 0.08) * 5), 1); position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); transform: translate(calc((1 - var(--t)) * 40px), calc((1 - var(--t)) * -70px)); opacity: var(--t); }
.seat--gap { border-style: dashed; background: var(--surface-2); }
.reason { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; font-style: normal; white-space: nowrap; }
.reason--gap { background: var(--surface); border: 1px dashed var(--border); color: var(--muted); }
.reason--busy { background: var(--accent-soft); color: var(--accent); }
.reason--expired { background: var(--alarm-bg); color: var(--alarm); }
.reason--away, .reason--tired { background: var(--warn-bg); color: var(--warn-text); }
.seat .reason { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity 400ms var(--ease); transition-delay: calc(var(--k) * 100ms + 700ms); white-space: normal; text-align: right; }
.is-in .seat .reason { opacity: 1; }
.hl-reasons .m-can li { padding-left: 0; display: grid; gap: 4px; }
.hl-reasons .m-can li::before { display: none; }
.hl-reasons .m-can .reason { justify-self: start; }
.fatigue { margin-top: 18px; display: grid; gap: 6px; }
.fatigue-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fatigue ul { list-style: none; margin: 0; padding: 0; position: relative; height: 70px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; border-bottom: 1px solid var(--border); }
.fatigue ul::before { content: ''; position: absolute; left: 0; right: 0; top: 34%; border-top: 2px dashed var(--alarm); }
.fatigue li { height: calc(var(--h) * var(--p)); background: var(--accent); border-radius: 3px 3px 0 0; }
.fatigue li.bar--night { background: var(--ink); }
.fatigue li.bar--over { background: var(--alarm); }


.scene-bins { margin-top: 28px; }
.bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; align-items: end; }
.bin { position: relative; min-height: 130px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #3b4a57, #22303b); border-top: 8px solid #536573; color: var(--ink-text); padding: 12px 10px 10px; display: grid; align-content: end; gap: 6px; font-size: 12px; line-height: 1.3; }
.bin-class { justify-self: start; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; padding: 2px 8px; border-radius: 4px; background: var(--ok); color: #fff; }
.lamp { position: absolute; left: 50%; top: -64px; width: 10px; height: 26px; border-radius: 5px; background: #fff; box-shadow: 0 0 10px #fff; transform: translateX(-50%); }
.is-in .lamp { animation: lamp-drop 1.1s cubic-bezier(0.4, 0, 1, 1) 0.8s forwards; }
@keyframes lamp-drop { to { top: 48px; opacity: 0; } }
.bin--reclassed .bin-class--was { opacity: 0.45; text-decoration: line-through; }
.bin--reclassed .bin-class--now { position: absolute; top: 12px; left: 62px; background: var(--alarm); opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--ease), transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1); transition-delay: 1.9s; }
.is-in .bin--reclassed .bin-class--now { opacity: 1; transform: none; }
.bin-timer { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--warn) calc(var(--p) * 100%), rgba(255, 255, 255, 0.14) 0); -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }
.bin em { font-style: normal; font-size: 11px; color: var(--ink-muted); }
.hl-act { margin-top: 28px; }
.act { position: relative; max-width: 900px; margin: 0 auto; background: #fffdf8; border: 1px solid var(--border); padding: 34px 34px 56px; box-shadow: var(--shadow-2); display: grid; gap: 18px; font-size: 16px; }
.act::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.act-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; text-align: center; }
.act .m-can li { padding-left: 22px; }
.act .m-can li::before { content: '✓'; background: none; top: -1px; width: auto; height: auto; color: var(--ok); font-weight: 700; }
.act-stamp { position: absolute; right: 30px; bottom: 22px; padding: 8px 14px; border: 3px double var(--ok); color: var(--ok); font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; transform: rotate(-8deg) scale(1.7); opacity: 0; transition: transform 350ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 200ms var(--ease); transition-delay: 1.3s; }
.is-in .act-stamp { transform: rotate(-8deg) scale(1); opacity: 0.85; }
@media (max-width: 720px) { .bins { gap: 8px; } .bin { padding: 10px 8px 8px; font-size: 11px; } .bin-class { font-size: 16px; } .bin--reclassed .bin-class--now { left: 52px; } .act { padding: 26px 20px 60px; } .act-stamp { right: 16px; bottom: 14px; } }


.night { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-line);
  background: radial-gradient(800px 400px at 70% 110%, rgba(11, 93, 143, 0.5), transparent 60%), linear-gradient(180deg, #06111a 0%, #0b1a27 60%, #132b3c 100%); }
.night-terrace { position: absolute; left: -10%; right: -10%; height: 17%; border-top: 2px solid rgba(232, 238, 243, 0.16); background: linear-gradient(180deg, rgba(232, 238, 243, 0.05), transparent); transform: skewX(-8deg); }
.night-terrace:nth-child(1) { bottom: 0; } .night-terrace:nth-child(2) { bottom: 17%; } .night-terrace:nth-child(3) { bottom: 34%; } .night-terrace:nth-child(4) { bottom: 51%; }
.beam { position: absolute; bottom: 20%; left: 18%; width: 70%; height: 70%; transform-origin: 0 100%; mix-blend-mode: screen; opacity: var(--p);
  background: conic-gradient(from 58deg at 0 100%, transparent 0deg, rgba(255, 232, 180, 0.3) 9deg, transparent 24deg); animation: sweep 9s ease-in-out infinite alternate; }
.beam--b { left: 60%; bottom: 38%; width: 60%; height: 60%; animation-duration: 12s; animation-delay: -5s; transform-origin: 0 100%; }
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }

.night-truck { position: absolute; left: 0; bottom: 16%; width: 24%; filter: brightness(0.42) saturate(0.7) drop-shadow(0 0 18px rgba(255, 232, 180, 0.25)); transform: scaleX(-1) translateX(calc((1 - var(--p)) * 60px)); opacity: var(--p); } 
.dust { position: absolute; inset: 0; opacity: 0.55; background-size: 220px 220px; animation: dust 20s linear infinite;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1.5px 1.5px at 40% 80%, rgba(255, 255, 255, 0.35), transparent), radial-gradient(1px 1px at 85% 20%, rgba(255, 255, 255, 0.4), transparent); }
@keyframes dust { to { background-position: -220px -160px; } }
.night-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.hl-chat { gap: 12px; }
.hl-chat > *, .chat-thread > * { --t: clamp(0, calc((var(--p) - var(--k, 0) * 0.11) * 5), 1); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 12px)); }
.chat-sys { font-size: 15px; color: var(--ink-muted); }
.chat-thread { display: grid; gap: 8px; }
.hl-chat .bubble { max-width: 92%; font-size: 16px; }
.hl-chat .bubble--q { justify-self: end; }
.hl-chat .num--chat { display: grid; gap: 6px; }
.chat-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 16px; }


.scene-yard { margin-top: 28px; display: grid; gap: 14px; }
.yard { position: relative; height: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rail { position: absolute; left: 0; right: 0; height: 6px; border-top: 2px solid var(--muted); border-bottom: 2px solid var(--muted); background: repeating-linear-gradient(90deg, var(--border) 0 14px, transparent 14px 22px); }
.rail--a { top: 44px; } .rail--b { top: 112px; } .rail--c { top: 178px; }
.rail-switch { position: absolute; width: 96px; height: 2px; background: var(--muted); transform: rotate(-36deg); transform-origin: left center; }
.rail-switch--a { left: 10%; top: 112px; } .rail-switch--b { left: 52%; top: 178px; }
.yard-reserve { position: absolute; right: 0; top: 16px; height: 60px; width: 18%; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(168, 105, 10, 0.25) 6px 8px); border-left: 2px dashed var(--warn); }
.yard-reserve-note { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--warn-text); }
.yard-reserve-note::before { content: ''; flex: none; width: 18px; height: 18px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(168, 105, 10, 0.25) 6px 8px); border-left: 2px dashed var(--warn); }
.wagon { --t: clamp(0, calc((var(--p) - var(--k) * 0.12) * 2.2), 1); position: absolute; top: 18px; width: 17%; left: calc(-20% + var(--t) * (84% - var(--k) * 17.5%)); }
.wagon-badge { position: absolute; top: 80px; padding: 3px 6px; border-radius: 3px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.wagon-badge--a { left: 64%; background: var(--accent-soft); color: var(--accent); }
.wagon-badge--b { left: 11%; background: var(--warn-bg); color: var(--warn-text); }
.laytime { display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.laytime-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.laytime-paid { position: absolute; left: 0; top: 0; bottom: 0; width: calc(min(var(--p) * 1.5, 1) * 60%); background: var(--accent); }
.laytime-over { position: absolute; left: 60%; top: 0; bottom: 0; width: calc(clamp(0, (var(--p) - 0.62) * 2.7, 1) * 40%); background: repeating-linear-gradient(135deg, var(--alarm) 0 6px, rgba(179, 38, 30, 0.45) 6px 12px); }
.hl-sheet { margin-top: 24px; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.sheet-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.sheet-row > .m-label { margin: 0; padding: 16px; background: var(--surface-2); border-right: 1px solid var(--line); }
.sheet-row > p, .sheet-row > ul { padding: 16px; margin: 0; }
.sheet-num { padding: 16px; }
@media (max-width: 720px) {
  .yard { height: 200px; }
  .wagon { width: 20%; left: calc(-24% + var(--t) * (84% - var(--k) * 20.5%)); }
  .yard-reserve { width: 16%; }
  .wagon-badge--a { left: 60%; }
  .sheet-row { grid-template-columns: 1fr; }
  .sheet-row > .m-label { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
}


.scene-lanes { display: grid; gap: 12px; margin-top: 28px; }
.lane { position: relative; height: 152px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); overflow: hidden; } 
.lane::before { content: ''; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: repeating-linear-gradient(90deg, rgba(232, 238, 243, 0.3) 0 20px, transparent 20px 40px); }
.lane-name { position: absolute; left: 12px; top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.mover { position: absolute; bottom: 16px; width: 150px; left: calc(-20% + var(--p) * (var(--k) * 40% + 28%)); }
.mover img { width: 100%; display: block; }
img.mover, .mover > img { transform: scaleX(-1); } 
.mover--robot { filter: drop-shadow(0 0 10px rgba(79, 179, 255, 0.75)); }
.mover--stopped { left: calc(-20% + min(var(--p) * 1.3, 0.75) * 84%); }
.mover--stopped img { filter: saturate(0.3) drop-shadow(0 0 10px rgba(179, 38, 30, 0.6)); }
.hud-chip { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); padding: 4px 8px; border: 1px solid var(--accent-bright); color: var(--accent-bright); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity 300ms var(--ease); transition-delay: 1.2s; }
.hud-chip::after { content: ''; position: absolute; left: 50%; bottom: -10px; height: 10px; width: 1px; background: var(--accent-bright); }
.is-in .hud-chip { opacity: 1; }
.plateau { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; padding: 12px 0 0; }
.plateau svg { width: 100%; height: 110px; display: block; }
.plateau-line { fill: none; stroke: var(--accent-bright); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: calc(420 - var(--p) * 420); }
.plateau-band { stroke: #ffd08a; stroke-width: 1.5; stroke-dasharray: 4 4; }
.hl-hud { margin-top: 24px; gap: 18px; }
@media (min-width: 900px) { .hl-hud { grid-template-columns: 1fr 1fr; } .hl-hud .m-can-wrap { grid-row: 1 / span 3; grid-column: 2; } }
.hl-hud > * { position: relative; padding: 16px 18px; border: 1px solid var(--ink-line); }
.hl-hud > *::before, .hl-hud > *::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent-bright); }
.hl-hud > *::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.hl-hud > *::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
@media (max-width: 720px) { .mover { width: 110px; } .hud-chip { white-space: normal; width: 120px; text-align: center; top: -44px; } .plateau { grid-template-columns: 1fr; } .lane { height: 132px; } }


.board { background: #24343f; border: 6px solid #31434f; border-radius: 10px; padding: 18px; color: var(--ink-text); box-shadow: var(--shadow-2); }
.board-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.slots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.slot { position: relative; aspect-ratio: 1; border: 2px dashed rgba(232, 238, 243, 0.25); border-radius: 8px; display: grid; place-items: center; }
.slot svg { --t: clamp(0, calc((var(--p) - var(--k) * 0.07) * 4), 1); width: 58%; height: 58%; fill: none; stroke: var(--ink-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: var(--t); transform: translateY(calc((1 - var(--t)) * -30px)); }
.slot--empty svg, .slot--missing svg { opacity: 0.18; transform: none; stroke-dasharray: 3 3; }
.label-tag, .stamp { position: absolute; left: 6px; right: 6px; font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; text-align: center; }
.label-tag { bottom: 6px; background: #fff; color: var(--text); padding: 3px 6px; border-radius: 3px; }
.stamp { top: 50%; margin-top: -1.2em; padding: 3px 6px; border: 2px solid currentColor; border-radius: 3px; background: rgba(36, 52, 63, 0.9); opacity: 0; transform: scale(1.4) rotate(-6deg); transition: opacity 250ms var(--ease), transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1); transition-delay: calc(var(--k) * 140ms + 900ms); }
.is-in .stamp { opacity: 1; transform: rotate(-6deg); }
.stamp--ok { color: #8fe09a; } .stamp--test { color: #ffd08a; } .stamp--missing { color: #ff8a80; } .stamp--off { color: var(--ink-muted); }
.label { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 4px 12px 12px 4px; padding: 18px 18px 18px 32px; box-shadow: var(--shadow-1); display: grid; gap: 8px; }
.label::before { content: ''; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); transform: translateY(-50%); }
@media (max-width: 720px) { .slots { gap: 8px; } .stamp, .label-tag { font-size: 7px; left: 3px; right: 3px; } }


.scene-ribbons { margin-top: 28px; display: grid; gap: 14px; }
.ribbon-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; }
.ribbon-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ribbon { display: flex; height: 46px; border-radius: 6px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0 round 6px); }
.camp, .swap { flex: 0 0 var(--w); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; font-style: normal; color: #fff; overflow: hidden; white-space: nowrap; }
.camp--s { background: var(--accent); } .camp--o { background: #7a5a2a; } .camp--m { background: #4b6b3a; }
.swap { background: repeating-linear-gradient(135deg, #3b4a57 0 4px, #22303b 4px 8px); color: #ffd08a; font-size: 9px; text-transform: uppercase; }
.swap--forbidden { background: var(--alarm); color: #fff; }
.ribbon-legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.ribbon-kinds { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--muted); }
.ribbon-kinds span { padding-left: 8px; border-left: 3px solid var(--accent); }
.ribbon-kinds span:nth-child(2) { border-color: #4b6b3a; }
.ribbon-kinds span:nth-child(3) { border-color: #7a5a2a; }
.ribbon-num { margin-top: 8px; }
.hl-cards--row { margin-top: 28px; gap: 16px; }
@media (min-width: 900px) { .hl-cards--row { grid-template-columns: repeat(4, 1fr); align-items: start; } }
@media (max-width: 720px) { .ribbon-row { grid-template-columns: 1fr; gap: 6px; } .camp { font-size: 9px; } }


.mod--core { padding-bottom: calc(var(--section-y) + 24px);
  background: radial-gradient(900px 500px at 50% 40%, rgba(79, 179, 255, 0.14), transparent 60%), var(--ink); }
.scene-ring { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px 0; }

.ring { position: relative; width: min(100%, 680px); aspect-ratio: 1; }
.ring-core { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-bright); box-shadow: 0 0 60px rgba(79, 179, 255, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.6); z-index: 2; background: var(--ink-2); }
.ring-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ring-chip { --t: clamp(0, calc((var(--p) - var(--i) * 0.025) * 2.2), 1); position: absolute; left: 50%; top: 50%; height: 0; width: calc(var(--len) * 1% + (1 - var(--t)) * 60px); transform: rotate(var(--a)); transform-origin: 0 0; }
.ring-chip::before { content: ''; position: absolute; left: var(--start); right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, rgba(79, 179, 255, 0.05), rgba(79, 179, 255, 0.4)); transform-origin: left; transform: scaleX(var(--t)); }
.ring-chip::after { content: ''; position: absolute; top: -3px; left: var(--start); width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--accent-bright); opacity: 0; }
.is-in .ring-chip::after { animation: ring-pulse 3.2s linear infinite; animation-delay: calc(var(--i) * 0.37s); }
@keyframes ring-pulse { 0% { left: var(--start); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.ring-chip a { position: absolute; left: 100%; top: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; padding: 5px 10px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--ink-text); text-decoration: none; white-space: normal; width: max-content; max-width: 200px; opacity: var(--t); transition: border-color var(--reveal-ms) var(--ease); }
.ring-chip--r a { transform-origin: 0 50%; transform: translate(0, -50%) rotate(calc(-1 * var(--a))); }
.ring-chip--l a { transform-origin: 100% 50%; transform: translate(-100%, -50%) rotate(calc(-1 * var(--a))); text-align: right; }
.ring-chip a:hover { border-color: var(--accent-bright); }
.hl-cascade { margin-top: 24px; gap: 22px; max-width: 900px; }
.cascade li { font-family: var(--mono); font-size: 14px; line-height: 1.5; padding-left: 26px; opacity: 0; transform: translateX(-8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.cascade li::before { content: '›'; background: none; left: 8px; top: -1px; width: auto; height: auto; color: var(--accent-bright); font-weight: 700; }
.is-in .cascade li { opacity: 1; transform: none; }
.cascade li:nth-child(1) { transition-delay: 300ms; } .cascade li:nth-child(2) { transition-delay: 480ms; } .cascade li:nth-child(3) { transition-delay: 660ms; }
.cascade li:nth-child(4) { transition-delay: 840ms; } .cascade li:nth-child(5) { transition-delay: 1020ms; } .cascade li:nth-child(6) { transition-delay: 1200ms; }
.core-nums { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.core-nums .num > .n { font-size: clamp(28px, 3.2vw, 40px); }
.doors--core { margin-top: 44px; }
.doors--core .door { background: var(--ink-2); }
@media (max-width: 899px) {
  .ring { width: 100%; aspect-ratio: auto; display: grid; gap: 16px; justify-items: center; }
  .ring-core { position: static; transform: none; width: min(60vw, 240px); }
  .ring-chips { position: static; width: 100%; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .ring-chip { position: static; width: auto; max-width: 100%; min-width: 0; height: auto; transform: none; }
  .ring-chip::before, .ring-chip::after { display: none; }
  .ring-chip a, .ring-chip--r a, .ring-chip--l a { position: static; transform: none; display: inline-block; opacity: 1; text-align: left; max-width: 100%; white-space: normal; }
}


@media (prefers-reduced-motion: reduce) {
  .mod, html.js .mod { --p: 1 !important; }
  html.js .rv > * { opacity: 1; transform: none; }
  .m-step { opacity: 1; }
  .pit-bars { opacity: 1; transform: none; }
  .pit-links path { stroke-dashoffset: 0; }
  .lock, .hub-spoke, .stamp, .act-stamp, .seat .reason, .cascade li, .bin--reclassed .bin-class--now { opacity: 1 !important; transform: none !important; }
  .hub-badge, .hud-chip { opacity: 1 !important; transition: none; }
  .hub-arm { width: var(--R); }
  .tab-signal, .tab-queue i, .lever-arm, .beam, .dust, .lamp, .hub-dot, .ring-chip::after { animation: none !important; }
  .tab-queue i { opacity: 1; }
  html.js .mods-hero--rail .modmap-chip:not(.is-off) { opacity: 1; transform: none; transition: none; }
  html.js .mods-hero--rail.is-in .modmap-chip::before { animation: none; }
}
