/* AEDO Play: Load Path Detective. Builds on play.css tokens. */
.lp-hero { position: relative; z-index: 1; padding: 40px 0 10px; text-align: center; }
.lp-hero h1 { font-family: var(--font2); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; margin: 10px 0 12px; }
.lp-hero h1 .accent { color: #c2410c; }
.lp-hero p { color: var(--text2); font-size: 17px; max-width: 620px; margin: 0 auto 16px; }
.lp-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.lp-head { position: relative; z-index: 1; margin: 30px 0 14px; }
.lp-head h2 { font-family: var(--font2); font-size: 24px; margin: 0 0 4px; }
.lp-head p { color: var(--text2); margin: 0; font-size: 15px; max-width: 760px; }
.lp-head-cases { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border2); }

.lp-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lp-card { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: inherit; transition: var(--transition); }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(232,97,0,0.35); }
.lp-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg3); }
.lp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card.is-case .lp-card-img img { filter: grayscale(1); }
.lp-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.lp-card-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }
.lp-card-name { font-family: var(--font2); font-weight: 700; font-size: 17px; }
.lp-card-place { font-size: 13px; color: var(--text2); }
.lp-card-status { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #1a3a5c; }

/* round */
.lp-round { position: relative; z-index: 1; margin: 20px 0 40px; }
.lp-round[hidden] { display: none; }
.lp-round-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lp-kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--text3); letter-spacing: 0.05em; }
.lp-round h2 { font-family: var(--font2); font-size: 26px; margin: 12px 0 2px; }
.lp-meta { color: var(--text2); font-size: 14px; margin: 0 0 12px; }
.lp-task { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(26,58,92,0.25); color: #1a3a5c; font-weight: 600; font-size: 14.5px; }

.lp-btn { font-family: var(--font); font-weight: 700; font-size: 14px; border-radius: var(--radius); padding: 10px 16px; min-height: 44px; border: 1px solid transparent; cursor: pointer; transition: var(--transition); }
.lp-btn-primary { background: #e86100; color: #fff; }
.lp-btn-primary:hover { background: #c2410c; }
.lp-btn-ghost { background: var(--card); color: var(--text); border-color: var(--border2); }
.lp-btn-ghost:hover { border-color: #e86100; color: #c2410c; }

.lp-stage-wrap { display: grid; gap: 12px; }
.lp-photo { margin: 0; }
.lp-stage { position: relative; width: 100%; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: #0c1a2a; box-shadow: var(--shadow); }
.lp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.lp-photo.is-small .lp-stage { max-width: 520px; }
.lp-photo figcaption { font-size: 12px; color: var(--text3); margin-top: 6px; text-align: center; }
.lp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-path { fill: none; stroke: #e86100; stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 4px; filter: drop-shadow(0 0 2px rgba(0,0,0,0.6)); }
.lp-path.is-anim { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: lp-draw 1.2s ease forwards; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

.lp-mark { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lp-dot { width: 28px; height: 28px; border-radius: 50%; background: #1a3a5c; color: #fff; border: 2px solid #fff; font: 700 13px var(--font-mono); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.45); transition: transform 0.15s ease; }
.lp-mark:hover .lp-dot, .lp-mark:focus-visible .lp-dot { transform: scale(1.15); }
.lp-mark.is-done .lp-dot { background: #e86100; }
.lp-mark.is-trap .lp-dot, .lp-mark.is-held .lp-dot { background: #8598ac; }
.lp-mark.is-wrong .lp-dot, .lp-chip.is-wrong { animation: lp-shake 0.35s ease; }
@keyframes lp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.lp-diagram[hidden] { display: none; }
.lp-dg-stage { position: relative; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border2); border-radius: var(--radius-lg); }
.lp-dg-stage svg { display: block; width: 100%; height: auto; }
.lp-dg-note { font-size: 12px; color: var(--text3); text-align: center; margin: 6px 0 0; }
.dg-fill { fill: #b7c4d3; } .dg-deck { fill: #b7c4d3; } .dg-beam { fill: #fff; stroke: #1a3a5c; stroke-width: 2; }
.dg-rod { stroke: #0c1a2a; stroke-width: 4; } .dg-nut { fill: #1a3a5c; }
.dg-chord { fill: none; stroke: #1a3a5c; stroke-width: 4; } .dg-web line { stroke: #1a3a5c; stroke-width: 1.5; }
.dg-ground { stroke: #8598ac; stroke-width: 2; }
.dg-t { font: 600 11px Inter, sans-serif; fill: #4c6178; } .dg-hot { fill: #c2410c; font-weight: 700; font-size: 12px; }
.dg-reveal { opacity: 0; transition: opacity 0.4s ease; } .show-reveal .dg-reveal { opacity: 1; }
.show-reveal .dg-bottom { stroke: #c2410c; }

.lp-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 14px; }
.lp-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; text-align: left; background: #fff; border: 1px solid var(--border2); border-radius: var(--radius); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; transition: var(--transition); }
.lp-chip:hover { border-color: #e86100; }
.lp-chip-letter { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1a3a5c; color: #fff; font: 700 12px var(--font-mono); display: flex; align-items: center; justify-content: center; }
.lp-chip.is-done { border-color: #e86100; background: rgba(232,97,0,0.07); }
.lp-chip.is-done .lp-chip-letter { background: #e86100; }
.lp-chip.is-trap, .lp-chip.is-held { opacity: 0.6; }
.lp-choice.is-right { border-color: #1a3a5c; background: rgba(26,58,92,0.07); }
.lp-choice.is-wrong-pick { opacity: 0.55; }

.lp-feedback { min-height: 22px; margin: 10px 0 0; font-size: 14.5px; font-weight: 600; color: var(--text2); }
.lp-feedback.is-ok { color: #1a3a5c; }
.lp-feedback.is-wrong, .lp-feedback.is-trap { color: #c2410c; }

.lp-forcequiz { margin-top: 14px; display: grid; gap: 8px; }
.lp-forcequiz[hidden] { display: none; }
.lp-fq-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.lp-fq-name { font-weight: 700; margin-right: auto; }
.lp-fq-btns { display: flex; gap: 8px; }
.lp-fq-btns .is-right { border-color: #1a3a5c; background: rgba(26,58,92,0.08); }
.lp-fq-btns .is-wrong-pick { border-color: #c2410c; }
.lp-fq-answer { flex-basis: 100%; font-size: 13.5px; }
.lp-fq-answer.ok { color: #1a3a5c; } .lp-fq-answer.no { color: #c2410c; }

.lp-reveal { margin-top: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--border2); border-left: 4px solid #e86100; border-radius: var(--radius); box-shadow: var(--shadow); }
.lp-reveal[hidden] { display: none; }
.lp-reveal.is-case { border-left-color: #1a3a5c; }
.lp-reveal h3 { font-family: var(--font2); font-size: 18px; margin: 10px 0 6px; }
.lp-reveal p { font-size: 15px; line-height: 1.6; color: var(--text2); margin: 0 0 10px; }
.lp-rv-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lp-rv-score { font: 700 28px var(--font-mono); color: #0c1a2a; }
.lp-rv-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--text3); }
.lp-rv-deaths { font-weight: 700; color: #0c1a2a !important; }
.lp-rv-lesson { background: rgba(26,58,92,0.06); padding: 10px 12px; border-radius: 8px; }
.lp-rv-forces { margin: 0 0 12px; padding-left: 18px; font-size: 14px; color: var(--text2); }
.lp-rv-sources { border-top: 1px dashed var(--border2); padding-top: 10px; font-size: 13px; }
.lp-rv-sources ul { margin: 4px 0 8px; padding-left: 18px; }
.lp-rv-sources a { color: #1a3a5c; }
.lp-rv-credit { font-size: 12.5px !important; color: var(--text3) !important; }
.lp-rv-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 560px) {
  .lp-chips { grid-template-columns: 1fr; }
  .lp-dot { width: 24px; height: 24px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-path.is-anim { animation: none; stroke-dashoffset: 0; }
  .lp-card, .lp-chip, .lp-dot { transition: none; }
}
.lp-photo figcaption a { color: #1a3a5c; }
