.path-scene { min-height: 0; min-width: 0; display: flex; padding-block: clamp(7px, 2vh, 23px); }
.path-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #373951;
  border-radius: 18px;
  background: radial-gradient(ellipse at 71% 56%, #2b2452, #12162e 58%, #0c1123 86%);
}
.path-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, #c9bfff43 1px, transparent 1.5px) 0 0 / 23px 23px;
  mask-image: linear-gradient(105deg, transparent 18%, #000 80%);
  opacity: .35;
  animation: path-particles 12s linear infinite paused;
}
.path-playing .path-stage::before { animation-play-state: running; }
.path-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.path-copy { align-self: center; min-width: 0; padding: clamp(12px, 3vw, 44px); }
.path-copy h2 { font-size: clamp(29px, 4.5vw, 67px); letter-spacing: -.06em; line-height: 1.04; }
.path-panel { margin-top: clamp(10px, 2.5vh, 24px); }
.path-panel > * { animation: path-reveal .45s ease-out both; }
.path-panel .micro { color: #c7baff; }
.path-panel h3 { font-size: clamp(19px, 2.4vw, 34px); letter-spacing: -.035em; line-height: 1.12; margin-top: 6px; }
.path-description { margin-top: 7px; color: #d1d7ed; line-height: 1.4; font-size: clamp(13px, 1.5vw, 17px); }
.path-visual { margin-top: clamp(10px, 2vh, 18px); }
.path-media { position: relative; min-width: 0; min-height: 0; }
.path-media video {
  display: block; width: 100%; height: 100%; min-height: 0;
  object-fit: contain; object-position: center bottom;
  background: transparent; transition: opacity .35s ease, transform .35s ease;
}
.path-loading video, .path-finished video { opacity: 0; transform: translateY(7px); }
#path-status {
  position: absolute; left: 10px; right: 10px; bottom: 8px;
  color: #e1e1f7; text-align: center; line-height: 1.35; font-size: 13px;
}
#path-status:not(:empty) { padding: 7px 9px; background: #11162deb; border-radius: 6px; }
.path-controls { position: relative; padding: 8px clamp(9px, 2vw, 23px) 13px; background: #0c1123d9; border-top: 1px solid #38364e; }
#path-progress { width: 100%; height: 4px; display: block; margin-bottom: 9px; border: 0; accent-color: var(--violet); }
#path-progress::-webkit-progress-bar { background: #313653; border-radius: 4px; }
#path-progress::-webkit-progress-value { background: linear-gradient(90deg, #a58dff, #79e2dc); border-radius: 4px; }
.path-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.path-buttons [aria-pressed="true"] { background: #292044; border-color: #9684d5; color: #f0eaff; }
.path-buttons .primary { min-width: 102px; }
.path-tiles, .path-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.path-map > *, .path-tiles > *, .path-board > span, .path-benefits > li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 7px; min-height: 36px; border: 1px solid #4b4770; border-radius: 7px;
  background: #1a2038; color: #e1e4fa; font-size: 13px; line-height: 1.15;
}
.path-map { position: relative; }
.path-map::before { content: ""; position: absolute; z-index: 0; left: 8%; right: 8%; top: 50%; border-top: 2px solid #8e86df; }
.path-map > * { position: relative; }
.path-map strong { color: #d3c4ff; border-color: #9a84ed; background: #272141; }
.path-connector { height: 18px; margin-inline: auto; width: 2px; background: #514a7b; position: relative; }
.path-connector::after { content: ""; display: block; width: 2px; height: calc(var(--path-progress, 0) * 100%); background: #83e5dc; box-shadow: 0 0 9px #72e6dcb0; }
.path-tiles span { border-color: #4b6581; }
.path-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.path-month { padding: 5px; text-align: center; color: #dbd4f4; font-size: 12px; }
.path-month > div { display: flex; justify-content: center; gap: 2px; margin-top: 6px; position: relative; }
.path-month > div::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #595782; }
.path-month b { position: relative; display: grid; place-items: center; width: clamp(16px, 2.6vw, 32px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #74699d; background: #24203e; font: 11px var(--mono); }
.path-month .is-reached { background: #1b474e; border-color: #83e5dc; color: #dafffa; box-shadow: 0 0 10px #72e6dc58; }
.path-learning-track { height: 5px; margin-top: 8px; background: #383650; border-radius: 7px; overflow: hidden; }
.path-learning-track span { display: block; width: calc(var(--path-progress, 0) * 100%); height: 100%; background: #7ddfd7; }
.path-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.path-board > div { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.path-board-row > * { padding: 5px 3px; text-align: center; font-size: clamp(10px, 1.25vw, 13px); color: #ccd3ed; }
#path-task-state { color: var(--cyan); }
.path-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 0; margin: 0; list-style: none; }
.path-benefits li { justify-content: flex-start; text-align: left; }
.path-benefits li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex: none; margin-right: 6px; }
.path-benefits li:last-child::before { background: #ffca90; }
.path-benefits li { animation: path-reveal .3s ease-out both; }
.path-benefits li:nth-child(n+3) { animation-delay: .12s; }
.path-benefits li:nth-child(n+5) { animation-delay: .24s; }
.path-closing { max-width: 700px; color: #e6ddff; font-size: clamp(22px, 3.2vw, 43px); line-height: 1.16; font-weight: 650; }
.path-finished .path-copy { grid-column: 1 / -1; grid-row: 1; z-index: 1; }
.path-finished .path-media { grid-area: 1 / 2; pointer-events: none; }
@keyframes path-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes path-particles { to { background-position: 23px -23px; } }
@media (max-width: 760px) {
  .path-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .path-media { grid-row: 1; }
  .path-copy { grid-row: 2; padding: 8px 11px; }
  .path-finished .path-copy { grid-row: 1 / -1; }
  .path-finished .path-media { grid-area: 1 / 1; }
  .path-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .path-buttons .button { min-width: 0; padding: 5px 3px; gap: 3px; font-size: 11px; white-space: normal; line-height: 1.12; }
  .path-controls { padding-bottom: 6px; }
  .path-stage { border-radius: 13px; }
  .path-panel { margin-top: 7px; }
  .path-description { margin-top: 4px; }
  .path-visual { margin-top: 6px; }
  .path-map > *, .path-tiles > *, .path-board > span, .path-benefits > li { min-height: 28px; padding: 4px; font-size: 11px; }
}
@media (max-height: 440px) and (orientation: landscape) {
  .path-scene { padding-block: 3px; }
  .path-content { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); grid-template-rows: minmax(0, 1fr); }
  .path-copy { grid-area: 1 / 1; padding: 0 9px; }
  .path-media { grid-area: 1 / 2; }
  .path-finished .path-copy { grid-area: 1 / 1 / -1 / -1; }
  .path-controls { padding-block: 4px; }
  #path-progress { margin-bottom: 4px; }
  .path-buttons { display: flex; }
  .path-buttons .button { min-height: 44px; padding-inline: 5px; }
  .path-copy h2 { font-size: 21px; }
  .path-panel { margin-top: 4px; }
  .path-panel h3 { font-size: 16px; margin-top: 3px; }
  .path-description { font-size: 11px; line-height: 1.24; }
  .path-visual { margin-top: 4px; }
  .path-map > *, .path-tiles > *, .path-board > span, .path-benefits > li { min-height: 21px; padding: 3px; font-size: 10px; }
  .path-connector { height: 8px; }
  .path-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .path-benefits li { min-height: 18px; padding-block: 2px; }
  .path-closing { font-size: 18px; }
}
