:root {
  color-scheme: dark;
  --bg: #040712;
  --panel: rgba(8, 14, 32, 0.88);
  --panel-solid: #0a1025;
  --line: rgba(129, 239, 255, 0.22);
  --cyan: #74efff;
  --cyan-soft: #b9f7ff;
  --violet: #9b83ff;
  --magenta: #ff75d8;
  --green: #8dffc7;
  --amber: #ffd48a;
  --danger: #ff8c9a;
  --text: #f4f7ff;
  --muted: #9eabc8;
  --shadow: 0 30px 100px rgba(0,0,0,.55);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  letter-spacing: .01em;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

#game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(circle at 50% 40%, #0d1734, #03050d 65%);
}

#ui-root { position: fixed; inset: 0; pointer-events: none; }
.screen, .hud, .insight-panel, .control-strip, .state-ready, .toast { pointer-events: auto; }
.hidden { display: none !important; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 44px);
  background: linear-gradient(135deg, rgba(2,4,12,.54), rgba(6,10,25,.34));
  backdrop-filter: blur(9px);
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.primary-button, .secondary-button, .icon-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}
.primary-button {
  min-height: 48px;
  padding: 0 28px;
  color: #061019;
  background: linear-gradient(115deg, var(--cyan-soft), var(--cyan) 60%, #a0e7ff);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 12px 40px rgba(94,230,255,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.secondary-button {
  min-height: 46px;
  padding: 0 25px;
  color: var(--text);
  background: rgba(9,16,35,.74);
}
.primary-button:hover, .secondary-button:hover, .icon-button:hover { transform: translateY(-2px); border-color: rgba(150,242,255,.68); }
.primary-button:hover { box-shadow: 0 16px 55px rgba(94,230,255,.32); }
.secondary-button.compact { min-height: 39px; padding: 0 18px; }
.icon-button {
  height: 38px;
  min-width: 38px;
  padding: 0 13px;
  background: rgba(5,10,25,.62);
  color: var(--cyan-soft);
}

.title-screen { justify-content: flex-start; padding-left: clamp(28px, 8vw, 130px); overflow: hidden; }
.title-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,6,16,.88), rgba(3,6,16,.32) 52%, rgba(3,6,16,.1)),
    radial-gradient(circle at 73% 44%, rgba(92,221,255,.12), transparent 28%);
}
.title-copy { position: relative; z-index: 2; max-width: 760px; }
.signal-line { display: flex; align-items: center; gap: 11px; color: var(--green); letter-spacing: .24em; font-size: 11px; font-weight: 800; }
.signal-line span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px var(--green); animation: signal 1.6s infinite; }
.title-copy h1 {
  margin: 15px 0 0;
  font-size: clamp(62px, 11vw, 164px);
  line-height: .82;
  letter-spacing: -.055em;
  font-weight: 900;
  text-shadow: 0 0 52px rgba(90,220,255,.16);
}
.tagline { margin: 28px 0 33px; color: var(--cyan-soft); font-weight: 700; font-size: clamp(15px, 1.55vw, 23px); line-height: 1.45; letter-spacing: .09em; }
.title-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.build-note { margin-top: 22px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.title-status {
  position: absolute;
  right: clamp(24px, 5vw, 74px);
  bottom: clamp(28px, 6vh, 78px);
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(5,10,24,.4);
  backdrop-filter: blur(10px);
}
.title-status span { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.title-status strong { color: var(--cyan-soft); font-size: 10px; letter-spacing: .15em; }
.title-orbit { position: absolute; border: 1px solid rgba(119,238,255,.14); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 52vw; height: 52vw; right: -7vw; top: -12vw; transform: rotateX(66deg); animation: orbit 22s linear infinite; }
.orbit-two { width: 34vw; height: 34vw; right: 6vw; top: 10vw; transform: rotateX(66deg) rotateZ(34deg); animation: orbit 14s linear infinite reverse; }

.hud {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(320px, 620px) minmax(140px, 1fr);
  gap: 20px;
  align-items: start;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-left, .hud-right { padding-top: 8px; }
.hud-title { margin-top: 4px; font-weight: 900; letter-spacing: .06em; }
.hud-right { display: flex; justify-content: flex-end; gap: 8px; }
.objective-shell {
  padding: 13px 16px 11px;
  border: 1px solid rgba(128,238,255,.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,16,36,.88), rgba(5,10,26,.7));
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.objective-topline { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.objective-topline span { color: var(--muted); }
.objective-topline strong { color: var(--cyan-soft); }
.objective-track { height: 8px; margin-top: 10px; position: relative; border-radius: 999px; background: rgba(151,176,220,.12); overflow: hidden; }
.objective-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 18px rgba(94,232,255,.65); transition: width .18s ease; }
.objective-threshold { position: absolute; top: -3px; bottom: -3px; width: 2px; background: white; box-shadow: 0 0 10px white; }
.objective-trend { margin-top: 7px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-align: center; }

.insight-panel {
  position: absolute;
  left: 18px;
  top: 103px;
  width: min(330px, calc(100vw - 36px));
  padding: 17px;
  border: 1px solid rgba(138,245,255,.28);
  border-radius: 16px;
  background: rgba(5,11,28,.87);
  box-shadow: var(--shadow);
  backdrop-filter: blur(13px);
}
.insight-title { display: flex; align-items: center; gap: 9px; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.insight-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.insight-law { margin: 12px 0 16px; color: var(--cyan-soft); font-size: 13px; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.metrics dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.metrics dd { margin: 0; color: var(--text); font-size: 11px; font-weight: 800; }
.prediction { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--green); font-size: 10px; letter-spacing: .1em; }

.control-strip {
  position: absolute;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: calc(100vw - 30px);
  padding: 10px 14px;
  border: 1px solid rgba(133,236,255,.18);
  border-radius: 999px;
  background: rgba(4,8,20,.68);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 10px;
}
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; border: 1px solid rgba(171,239,255,.35); border-bottom-color: rgba(171,239,255,.18); border-radius: 5px; color: var(--cyan-soft); background: rgba(20,35,63,.64); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.state-ready {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 300px;
  padding: 18px 26px;
  text-align: center;
  border: 1px solid rgba(152,255,211,.56);
  border-radius: 14px;
  background: rgba(4,20,24,.75);
  box-shadow: 0 0 75px rgba(87,255,192,.2);
  backdrop-filter: blur(11px);
}
.state-ready span { display: block; color: var(--green); font-size: 17px; font-weight: 900; letter-spacing: .22em; }
.state-ready small { display: block; margin-top: 8px; color: var(--cyan-soft); }
.state-ready.retry {
  border-color: rgba(255,174,91,.64);
  background: rgba(31,17,8,.82);
  box-shadow: 0 0 75px rgba(255,148,73,.2);
}
.state-ready.retry span { color: var(--amber); }
.toast { position: absolute; top: 116px; left: 50%; transform: translateX(-50%); max-width: 500px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,12,29,.88); color: var(--cyan-soft); font-size: 12px; box-shadow: var(--shadow); }

.atlas-screen { align-items: stretch; justify-content: stretch; overflow: auto; background: rgba(3,6,15,.92); }
.atlas-header { width: min(1240px, 100%); margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.atlas-header h2 { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 52px); letter-spacing: -.035em; }
.atlas-header p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.6; }
.atlas-screen { display: block; padding-top: 46px; }
.atlas-grid { width: min(1240px, 100%); margin: 0 auto 70px; display: grid; gap: 18px; }
.act-row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 18px; border: 1px solid rgba(124,230,255,.13); border-radius: 18px; background: rgba(9,15,32,.55); }
.act-title h3 { margin: 6px 0; font-size: 17px; }
.act-title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mission-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.mission-tile { min-height: 104px; padding: 13px; text-align: left; border: 1px solid rgba(130,220,255,.13); border-radius: 13px; background: rgba(5,10,24,.66); cursor: default; }
.mission-tile.playable { cursor: pointer; border-color: rgba(119,239,255,.35); background: radial-gradient(circle at 80% 0%, rgba(76,224,255,.12), transparent 35%), rgba(7,14,31,.78); }
.mission-tile.playable:hover { transform: translateY(-2px); border-color: rgba(130,246,255,.7); }
.mission-tile.complete { border-color: rgba(132,255,195,.38); }
.mission-id { color: var(--cyan); font-size: 9px; letter-spacing: .17em; font-weight: 800; }
.mission-tile strong { display: block; margin: 7px 0 5px; font-size: 13px; letter-spacing: .04em; }
.mission-tile small { color: var(--muted); line-height: 1.35; }
.mission-status { display: block; margin-top: 10px; color: var(--green); font-size: 8px; letter-spacing: .15em; }
.mission-tile:not(.playable) .mission-status { color: #77819a; }

.brief-screen { background: radial-gradient(circle at 50% 20%, rgba(50,110,150,.14), rgba(2,5,14,.82)); }
.brief-card { width: min(920px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(141,241,255,.24); border-radius: var(--radius); background: linear-gradient(145deg, rgba(11,20,43,.96), rgba(5,10,25,.95)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04); }
.brief-header { display: flex; justify-content: space-between; align-items: start; }
.brief-header h2 { margin: 5px 0 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; }
.mira-line { margin: 25px 0 17px; color: var(--green); font-weight: 900; letter-spacing: .16em; font-size: 12px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brief-grid article { min-height: 112px; padding: 17px; border: 1px solid rgba(124,227,255,.12); border-radius: 13px; background: rgba(5,11,27,.55); }
.brief-grid article span, .brief-label, .debrief-block span, .result-grid span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.brief-grid article p { margin: 9px 0 0; line-height: 1.55; color: #e9efff; }
.brief-grid .brief-law { border-color: rgba(143,132,255,.3); }
.brief-grid .brief-math { border-color: rgba(103,222,255,.32); background: rgba(5,18,34,.66); }
.brief-grid .brief-math p { color: var(--cyan-soft); font-variant-numeric: tabular-nums; }
.brief-grid .brief-feel { border-color: rgba(255,190,105,.27); }
.brief-grid .brief-win { border-color: rgba(122,255,201,.3); }
.brief-footer { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-top: 18px; }
.brief-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.control-chip { padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(142,233,255,.18); background: rgba(8,17,36,.7); color: var(--cyan-soft); font-size: 10px; }
.model-badge { padding: 8px 11px; border: 1px solid rgba(255,210,139,.28); border-radius: 8px; color: var(--amber); font-size: 9px; font-weight: 900; letter-spacing: .13em; white-space: nowrap; }
.model-details { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--muted); }
.model-details summary { cursor: pointer; color: var(--cyan-soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.model-details p { margin: 12px 0 3px; line-height: 1.6; font-size: 12px; }
.brief-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.modal-screen, .complete-screen { background: rgba(3,6,16,.72); }
.modal-card, .complete-card { width: min(720px, 100%); padding: 34px; border: 1px solid rgba(133,238,255,.23); border-radius: var(--radius); background: rgba(7,13,31,.95); box-shadow: var(--shadow); }
.modal-card.narrow { width: min(440px, 100%); display: grid; gap: 10px; }
.modal-card h2 { margin: 6px 0 18px; }
.complete-card h2 { margin: 6px 0 20px; font-size: 46px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result-grid div { padding: 14px; border: 1px solid rgba(131,226,255,.14); border-radius: 12px; background: rgba(5,11,26,.64); }
.result-grid strong { display: block; margin-top: 7px; color: var(--cyan-soft); font-size: 19px; }
.debrief-block { margin-top: 14px; padding: 15px 17px; border-left: 2px solid var(--violet); background: rgba(12,18,39,.62); }
.debrief-block.emphasis { border-left-color: var(--green); }
.debrief-block p { margin: 7px 0 0; line-height: 1.55; }
.medals { display: flex; gap: 9px; margin: 18px 0; }
.medal { flex: 1; padding: 12px; text-align: center; border: 1px solid rgba(134,215,255,.13); border-radius: 10px; color: #6f7892; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.medal span { margin-right: 6px; }
.medal.earned { color: var(--green); border-color: rgba(128,255,201,.35); background: rgba(30,100,74,.12); }
.complete-actions { display: flex; justify-content: flex-end; gap: 10px; }

.fallback { position: fixed; inset: 0; z-index: 99; display: grid; place-content: center; padding: 30px; text-align: center; background: #050814; color: white; }

@keyframes signal { 50% { opacity: .35; transform: scale(.72); } }
@keyframes orbit { to { transform: rotateX(66deg) rotateZ(360deg); } }

@media (max-width: 800px) {
  .title-screen { justify-content: center; padding-left: 25px; }
  .title-status { display: none; }
  .hud { grid-template-columns: 1fr auto; }
  .hud-left { display: none; }
  .objective-shell { grid-column: 1; }
  .hud-right { grid-column: 2; }
  .control-strip { border-radius: 14px; width: calc(100vw - 24px); }
  .control-strip span:nth-child(n+4) { display: none; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-footer { align-items: start; flex-direction: column; }
  .act-row { grid-template-columns: 1fr; }
  .atlas-header { flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
  .complete-card h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Mission-law visual cue -------------------------------------------------- */
.law-card {
  width: min(720px, 100%);
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid rgba(137,239,255,.25);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(10,19,42,.97), rgba(5,9,23,.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
}
.law-card h2 { margin: 6px 0 18px; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.035em; }
.law-stage {
  position: relative;
  height: 255px;
  overflow: hidden;
  border: 1px solid rgba(130,231,255,.16);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 50%, rgba(92,84,255,.13), transparent 46%),
    linear-gradient(180deg, rgba(7,14,33,.9), rgba(2,6,17,.95));
  isolation: isolate;
}
.law-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(95,228,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,228,255,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(420px) rotateX(58deg) scale(1.45) translateY(29%);
  transform-origin: 50% 100%;
}
.law-path {
  position: absolute;
  left: 13%;
  width: 67%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(105,233,255,.05), rgba(113,239,255,.72), rgba(152,116,255,.65));
  box-shadow: 0 0 16px rgba(87,224,255,.35);
  transform-origin: left center;
}
.law-path-a { top: 42%; transform: rotate(-10deg); }
.law-path-b { top: 58%; transform: rotate(10deg); }
.law-obstacle {
  position: absolute;
  left: 49%;
  top: 20%;
  width: 12px;
  height: 60%;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,91,210,.75), rgba(130,91,255,.65));
  box-shadow: 0 0 24px rgba(218,85,255,.35);
}
.law-token {
  position: absolute;
  left: 12%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px white, 0 0 28px #75f4ff, 0 0 70px rgba(89,211,255,.8);
}
.law-token-b { opacity: 0; }
.law-target {
  position: absolute;
  right: 9%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border: 3px solid rgba(122,247,255,.8);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(102,234,255,.35), inset 0 0 20px rgba(89,222,255,.2);
}
.law-demo-copy { margin: 19px 0 8px; color: #edf5ff; font-size: 16px; line-height: 1.55; }
.law-demo-note { margin: 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.law-field .law-path-a { top: 50%; transform: none; }
.law-field .law-path-b { display: none; }
.law-field .law-obstacle {
  left: 38%; top: 12%; width: 25%; height: 76%; border-radius: 12px;
  background: repeating-linear-gradient(90deg, rgba(85,227,255,.1) 0 12px, rgba(114,103,255,.18) 12px 24px);
  border: 1px solid rgba(110,234,255,.28);
}
.law-field .law-token-a { animation: law-field-run 3s cubic-bezier(.3,.7,.25,1) infinite; }

.law-wave .law-path { display: none; }
.law-wave .law-obstacle {
  left: 49%; top: 5%; height: 90%; width: 15px;
  background: linear-gradient(to bottom, rgba(255,95,211,.78) 0 37%, transparent 37% 63%, rgba(255,95,211,.78) 63% 100%);
}
.law-wave .law-token-a {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  animation: law-wave-run 3s ease-in-out infinite;
}
.law-wave .law-token-b {
  opacity: .45; left: 62%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px;
  background: radial-gradient(circle, rgba(255,255,255,.65), rgba(105,229,255,.14) 35%, transparent 72%);
  box-shadow: none;
  animation: law-wave-spread 3s ease-in-out infinite;
}

.law-interference .law-obstacle {
  left: 49%; top: 25%; height: 50%; width: 8px; background: rgba(101,235,255,.7);
}
.law-interference .law-token-a { animation: law-branch-a 3s ease-in-out infinite; }
.law-interference .law-token-b { opacity: 1; animation: law-branch-b 3s ease-in-out infinite; }
.law-interference .law-target::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%; background: rgba(128,245,255,.16); animation: law-target-pulse 3s ease-in-out infinite;
}

.law-marker .law-obstacle {
  left: 46%; top: 34%; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.7), rgba(255,105,211,.25) 35%, transparent 70%);
  animation: law-marker-fade 3s ease-in-out infinite;
}
.law-marker .law-token-a { animation: law-branch-a 3s ease-in-out infinite; }
.law-marker .law-token-b { opacity: 1; animation: law-branch-b 3s ease-in-out infinite; }

.law-tunnel .law-path-a { top: 50%; transform: none; }
.law-tunnel .law-path-b { display: none; }
.law-tunnel .law-obstacle { left: 48%; top: 14%; width: 72px; height: 72%; border-radius: 8px; }
.law-tunnel .law-token-a { animation: law-tunnel-hit 3s ease-in-out infinite; }
.law-tunnel .law-token-b {
  opacity: .55; top: 50%; animation: law-tunnel-through 3s ease-in-out infinite;
}

.law-future .law-token-a { animation: law-field-run 3s ease-in-out infinite; }

@keyframes law-field-run {
  0% { left: 12%; top: 64%; }
  46% { left: 44%; top: 55%; }
  100% { left: 87%; top: 50%; }
}
@keyframes law-wave-run {
  0% { left: 13%; transform: scale(.7); }
  45% { left: 47%; transform: scale(1); }
  100% { left: 82%; transform: scale(2.1); opacity: .18; }
}
@keyframes law-wave-spread {
  0%, 42% { transform: scale(.2); opacity: 0; }
  100% { transform: scale(1.55); opacity: .6; }
}
@keyframes law-branch-a {
  0% { left: 13%; top: 50%; }
  48% { left: 50%; top: 35%; }
  100% { left: 86%; top: 50%; }
}
@keyframes law-branch-b {
  0% { left: 13%; top: 50%; }
  48% { left: 50%; top: 65%; }
  100% { left: 86%; top: 50%; opacity: .15; }
}
@keyframes law-target-pulse { 0%, 62% { opacity: .15; transform: scale(.5); } 100% { opacity: 1; transform: scale(1.2); } }
@keyframes law-marker-fade { 0%, 40% { opacity: 1; } 100% { opacity: .18; transform: scale(.65); } }
@keyframes law-tunnel-hit { 0% { left: 13%; } 45% { left: 46%; } 75%,100% { left: 22%; opacity: .15; } }
@keyframes law-tunnel-through { 0%,45% { left: 51%; transform: scale(.2); opacity: 0; } 100% { left: 87%; transform: scale(.8); opacity: .55; } }
