/* 新授面板：与原站点样式隔离，保留舞台全景背景。 */
.lv41-score-sheet{position:fixed;z-index:21;left:3.3vw;top:13vh;width:30.5vw;height:71vh;padding:12px;border:1px solid #d8c6a777;border-radius:16px;background:#fffdf3;box-shadow:0 15px 50px #0005;cursor:zoom-in}
.lv41-score-sheet img{width:100%;height:100%;object-fit:contain}
body:not(.panel-on) .lv41-score-sheet{display:none}
.lv41-score-preview{display:block;border:0;background:#f9f5eb;border-radius:12px;padding:8px;width:100%;cursor:zoom-in}
.lv41-score-preview img{display:block;max-height:54vh;width:100%;object-fit:contain}
.panel.wide:has(.lv3) {
  width: min(92vw, 1260px);
  max-height: calc(100vh - var(--u) * 7.1);
  padding: clamp(20px, 2.3vw, 34px) clamp(24px, 3.1vw, 48px);
  background: linear-gradient(145deg, rgba(15, 24, 28, .96), rgba(12, 18, 21, .91));
  border: 1px solid rgba(220, 183, 114, .25);
}
.panel.wide:has(.lv3) .eyebrow { letter-spacing: .18em; font-size: clamp(12px, 1vw, 15px); }
.panel.wide:has(.lv3) h2 {
  max-width: 1050px;
  margin: .35em 0 .62em;
  padding-right: 1.5em;
  font-size: clamp(24px, 2.3vw, 37px);
  line-height: 1.32;
  letter-spacing: .012em;
}
.lv3 { display: grid; gap: clamp(12px, 1.15vw, 18px); }
.lv3-line { margin: 0; line-height: 1.7; color: var(--paper-2); }
.lv3-line.lead { font-size: clamp(16px, 1.3vw, 20px); color: var(--paper); }
.lv3-line.note { font-size: clamp(12px, .91vw, 14px); color: var(--paper-3); }
.lv3-group { display: grid; gap: 10px; }
.lv3-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lv3-controls .btn, .lv3-play, .lv3-stop {
  min-height: 42px;
  justify-content: center;
  font-size: clamp(14px, 1.02vw, 16px);
}
.lv3-play { background: rgba(220, 183, 114, .13); border-color: rgba(220, 183, 114, .52); }
.lv3-play.on { color: #16120c; background: var(--gold); border-color: var(--gold); }
.lv3-play.on::before { content: 'Ⅱ'; font-size: .87em; font-weight: 700; }
.lv3-stop { border-color: rgba(255, 255, 255, .33); }
.lv3-response { min-height: 74px; resize: vertical !important; font-size: clamp(15px, 1.06vw, 17px) !important; }
.lv3-reveal-wrap { border-top: 1px solid rgba(220, 183, 114, .25); padding-top: 12px; }
.lv3-reveal { border-color: rgba(220, 183, 114, .55); color: var(--gold-2); }
.lv3-answer {
  display: grid; gap: 8px; margin-top: 10px; padding: 14px 18px;
  border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0;
  background: rgba(220, 183, 114, .09);
}
.lv3-answer[hidden] { display: none; }
.lv3-answer .lv3-line { color: var(--paper); }
.lv3-answer .lv3-answer-main { font-family: var(--serif); font-size: clamp(17px, 1.4vw, 22px); color: var(--gold-2); }
.lv3-followup { display: grid; gap: 4px; margin-top: 2px; }
.lv3-followup strong { color: var(--gold-2); }
.lv3-score { width: 100%; max-height: 34vh; overflow: auto; padding: 8px 12px; }
.lv3-score .jianpu { min-width: min(100%, 640px); }
.lv3-contour-wrap {
  display: grid; gap: 3px; padding: 8px 14px 2px;
  border: 1px solid rgba(220, 183, 114, .24); border-radius: 12px;
  background: rgba(220, 183, 114, .06);
}
.lv3-contour-wrap span { color: var(--gold-2); font-size: 13px; letter-spacing: .1em; }
.lv3-contour { width: 100%; height: clamp(74px, 9vw, 122px); overflow: visible; }
.lv3-contour path { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lv3-contour circle { fill: #f6d69d; stroke: #1c1a17; stroke-width: 1.5; }
.lv3-draw-wrap { padding: 8px 14px 10px; border: 1px dashed rgba(220, 183, 114, .5); border-radius: 12px; background: rgba(220, 183, 114, .055); }
.lv3-draw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--gold-2); font-size: 14px; letter-spacing: .06em; }
.lv3-draw { display: block; width: 100%; height: clamp(74px, 9vw, 122px); margin-top: 4px; border-radius: 8px; background: repeating-linear-gradient(0deg, transparent 0, transparent 34%, rgba(220, 183, 114, .12) 35%, transparent 36%); touch-action: none; cursor: crosshair; }
.lv3-draw path { fill: none; stroke: var(--gold-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lv3-phrase-module { display: grid; gap: 9px; }
.lv3-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.lv3-tab { flex: 0 0 auto; border-radius: 8px; padding: .42em .92em; font-size: clamp(13px, .95vw, 15px); }
.lv3-tab.on { border-color: var(--gold); background: rgba(220, 183, 114, .18); color: var(--gold-2); }
.lv3-phrase-stage { display: grid; gap: 9px; padding: 12px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.lv3-phrase-stage .lv3-score { max-height: 26vh; }
.lv3-phrase-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.lv3-phrase-head strong { font-family: var(--serif); color: var(--gold-2); font-size: 18px; }
.lv3-phrase-head span { color: var(--paper-2); }
.lv3-triplet-pulse { display: flex; justify-content: center; gap: 16px; padding: 4px 0; }
.lv3-triplet-dot { width: clamp(48px, 5vw, 70px); height: clamp(48px, 5vw, 70px); display: grid; place-items: center; border: 2px solid rgba(220, 183, 114, .5); border-radius: 50%; color: var(--gold-2); font-size: 25px; font-weight: 600; transition: background .1s, color .1s, transform .1s, box-shadow .1s; }
.lv3-triplet-dot.lit { color: #19150f; background: var(--gold-2); transform: scale(1.09); box-shadow: 0 0 22px rgba(240, 212, 154, .55); }
.lv3-closing { padding: 12px 16px; border-radius: 10px; background: rgba(147, 194, 184, .12); color: #c3e5de; }
@media (max-width: 800px) {
  .panel.wide:has(.lv3) { top: 14px; width: calc(100vw - 24px); max-height: calc(100vh - 86px); padding: 18px; }
  .panel.wide:has(.lv3) h2 { font-size: 23px; }
  .lv3-controls .btn { flex: 1 1 auto; white-space: normal; }
  .lv3-score { max-height: 29vh; }
}

/* V4：封面图片直接在样式中兜底。启动脚本尚未运行时也能看到主题画面。 */
#start.start {
  background-color: #101719;
  background-image:
    linear-gradient(90deg, rgba(8, 14, 17, .82) 0%, rgba(8, 14, 17, .57) 34%, rgba(8, 14, 17, .09) 67%, rgba(8, 14, 17, .12) 100%),
    var(--cover, url("assets/v3/summit.png"));
  background-position: center, 50% 48%;
  background-size: cover;
  background-repeat: no-repeat;
}
#start .start-inner { position: relative; z-index: 1; max-width: min(46vw, 660px); }
#start .start-kicker { font-size: clamp(12px, .86vw, 16px); letter-spacing: .22em; color: #f6d7a3; }
#start .start-title { margin: .12em 0 .04em -.05em; font-size: clamp(104px, 10vw, 178px); text-shadow: 0 8px 34px rgba(0,0,0,.35); }
#start .start-lead { max-width: 19em; margin-bottom: 1.45em; font-size: clamp(20px, 1.45vw, 27px); line-height: 1.7; color: #fff5e7; }
#start .start-meta { display: none; }

/* 课程问题悬浮在画面右侧，山路和远景留给投影观看。 */
body .panel.wide:has(.lv3) {
  left: auto;
  right: clamp(24px, 4vw, 88px);
  top: clamp(44px, 5vh, 72px);
  width: min(61vw, 940px);
  max-height: calc(100vh - clamp(44px, 5vh, 72px) - var(--u) * 5.2);
  padding: clamp(20px, 2vw, 30px) clamp(24px, 2.5vw, 38px);
  border: 1px solid rgba(242, 214, 160, .33);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(10, 21, 23, .87), rgba(10, 18, 20, .79));
  box-shadow: 0 20px 65px rgba(0, 0, 0, .26);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  transform: translateY(18px);
}
body .panel.wide:has(.lv3).show { transform: translateY(0); }
body .panel.wide:has(.lv3) h2 {
  max-width: 790px;
  margin: .25em 0 .48em;
  font-size: clamp(26px, 2.05vw, 35px);
  line-height: 1.37;
  letter-spacing: .01em;
}
body .panel.wide:has(.lv3) .eyebrow { font-size: 13px; letter-spacing: .15em; }
.lv3 { gap: clamp(9px, .9vw, 14px); }
.lv3-line.lead { font-size: clamp(16px, 1.12vw, 19px); line-height: 1.5; }
.lv3-line.note { font-size: 12px; }
.lv3-score { max-height: min(29vh, 250px); }
.lv3-contour { height: clamp(64px, 6vw, 90px); }
.lv3-draw { height: clamp(64px, 6vw, 90px); }
.lv3-contour-wrap, .lv3-draw-wrap { padding-top: 6px; padding-bottom: 6px; }
.lv3-teacher { border-top: 1px solid rgba(220, 183, 114, .2); }
.lv3-teacher summary {
  width: fit-content;
  padding: 6px 0;
  color: var(--paper-2);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.lv3-teacher summary::before { content: '＋'; display: inline-block; width: 1.6em; color: var(--gold-2); }
.lv3-teacher[open] summary::before { content: '－'; }
.lv3-teacher summary::-webkit-details-marker { display: none; }
.lv3-teacher .lv3-response { width: 100%; margin: 4px 0 0; }
.lv3-reveal-wrap { padding-top: 8px; }
.lv3-answer { max-height: 28vh; overflow: auto; }

@media (max-width: 960px) {
  body .panel.wide:has(.lv3) { right: 16px; top: 22px; width: min(76vw, 760px); max-height: calc(100vh - 108px); }
  #start .start-inner { max-width: 66vw; }
}
@media (max-width: 700px) {
  body .panel.wide:has(.lv3) { left: 12px; right: 12px; top: 14px; width: auto; max-height: calc(100vh - 88px); padding: 18px; }
  body .panel.wide:has(.lv3) h2 { font-size: 23px; }
  #start.start { padding: 24px; background-position: center, 59% center; }
  #start .start-inner { max-width: 100%; }
  #start .start-title { font-size: clamp(80px, 18vw, 120px); }
  #start .start-lead { font-size: 18px; }
}
