
.lu-app, .lu-app * { box-sizing: border-box; }
.lu-app { --lu-cut: 8px; --gs-ink: #fdf2e0; --gs-muted: #d9c3a0; --gs-line: #4a3220; --gs-accent: #ffc46b; --gs-accent-ink: #2b1d10;
  --gs-panel: #2b1b11; --gs-bg: #120b07; --gs-chip: rgba(18, 11, 7, .92);
  position: relative; display: flex; flex-direction: column; color: #fdf2e0; font: 16px/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; }
.lu-app.lu-embedded { height: clamp(480px, calc(100svh - 110px), 900px); border: 1px solid #4a3220; background: #120b07;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.lu-app.gs-fs { background: #120b07; }
.lu-app .gs-stage, .lu-app .gs-main { min-height: 0; }
.lu-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.lu-app .gs-side { min-height: 0; overflow: auto; }
.lu-app .gs-main { display: flex; flex-direction: column; }
.lu-cut { clip-path: polygon(var(--lu-cut) 0, 100% 0, 100% calc(100% - var(--lu-cut)), calc(100% - var(--lu-cut)) 100%, 0 100%, 0 var(--lu-cut)); }
.lu-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 0 env(safe-area-inset-bottom, 0); }
.lu-info { font: 700 12px/1 monospace; letter-spacing: 1px; color: #ffd9a0; }
.lu-hud { flex: 0 0 auto; display: flex; gap: 4px; flex-wrap: wrap; padding: 0 2px; align-items: center; }
.lu-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; background: rgba(43, 27, 17, .9); border: 1px solid rgba(255, 196, 107, .35); --lu-cut: 6px; }
.lu-chip small { font: 700 9px/1 monospace; letter-spacing: 1.3px; color: #d9c3a0; }
.lu-chip b { font: 800 14px/1 monospace; color: #fff; white-space: nowrap; }
#luSp { color: #ffc46b; }
.lu-exam { margin-left: auto; background: rgba(255, 196, 107, .12); color: #ffe2b3; border: 1px solid rgba(255, 196, 107, .4); padding: 5px 10px; min-height: 40px; font: 700 12px system-ui, sans-serif; cursor: pointer; --lu-cut: 6px; }
.lu-exam[aria-pressed="true"] { background: #ffc46b; color: #2b1d10; }
.lu-scene { flex: 0 0 clamp(96px, 20svh, 190px); position: relative; overflow: hidden; background: #1c120c; border: 1px solid rgba(255, 196, 107, .25); --lu-cut: 12px; }
.lu-scene.off { display: none; }
.lu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lu-scene-top { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; gap: 8px; align-items: center; z-index: 1; pointer-events: none; }
.lu-bandchip { border: 1px solid currentColor; background: rgba(20, 12, 8, .8); padding: 3px 10px; min-height: 26px; font: 800 12px system-ui, sans-serif; display: inline-flex; align-items: center; --lu-cut: 5px; }
.lu-worth { flex: 1; min-width: 0; font: 700 12.5px system-ui, sans-serif; color: #ffc46b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000; }
.lu-app.typing .lu-scene { display: none; }
.lu-mid { flex: 1 1 auto; min-height: 90px; overflow-y: auto; display: grid; gap: 8px; align-content: start; padding: 0 1px; }
.lu-mid > * { min-width: 0; }
.lu-card { background: rgba(43, 27, 17, .95); border: 1px solid rgba(255, 196, 107, .3); padding: 10px 12px; --lu-cut: 10px; }
.lu-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.lu-head h5 { margin: 0; font: 700 18px/1.25 Georgia, serif; color: #fff3dc; }
.lu-head span { font: 700 11px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ffc46b; }
.lu-scenecap { font: 500 13px system-ui, sans-serif; color: #e8d5b5; margin-top: 3px; }
.lu-instr { font: 700 13.5px/1.45 system-ui, sans-serif; color: #fde68a; margin-bottom: 8px; }
.lu-task { background: #f6ecd2; color: #2b1d10; padding: 10px 12px; font: 500 15.5px/1.9 Georgia, 'Times New Roman', serif; --lu-cut: 8px; }
.lu-task h6 { margin: 6px 0 2px; font: 800 13px system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #8a5a2b; }
.lu-task .lu-line { margin: 0; }
.lu-blank { display: inline-flex; align-items: center; gap: 4px; }
.lu-blank b { font: 800 11px system-ui, sans-serif; color: #fff; background: #8a5a2b; padding: 1px 5px; }
.lu-blank input { width: min(170px, 42vw); max-width: 100%; min-height: 40px; border: 0; border-bottom: 2px solid #8a5a2b; background: rgba(138, 90, 43, .1); font: 700 16px system-ui, sans-serif; color: #2b1d10; padding: 2px 6px; border-radius: 0; }
.lu-blank input:focus { outline: none; background: rgba(255, 196, 107, .35); }
.lu-blank.right input { border-bottom-color: #16a34a; background: rgba(34, 197, 94, .18); }
.lu-blank.wrong input { border-bottom-color: #dc2626; background: rgba(239, 68, 68, .14); text-decoration: line-through; }
.lu-fix { font: 700 13px system-ui, sans-serif; color: #15803d; margin-left: 4px; }
.lu-tablewrap { overflow-x: auto; }
.lu-table { border-collapse: collapse; width: 100%; font: 500 14.5px system-ui, sans-serif; line-height: 1.5; }
.lu-table th, .lu-table td { border: 1px solid #c9b48c; padding: 6px 8px; text-align: left; }
.lu-table th { background: #ead9b4; }
.lu-mcq { margin: 8px 0; font: 500 15px/1.5 system-ui, sans-serif; }
.lu-mcq p { margin: 0 0 4px; font-weight: 700; }
.lu-mcq label { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; min-height: 40px; cursor: pointer; }
.lu-mcq label:hover { background: rgba(138, 90, 43, .1); }
.lu-mcq label.right { background: rgba(34, 197, 94, .2); }
.lu-mcq label.wrong { background: rgba(239, 68, 68, .15); }
.lu-script { display: grid; gap: 5px; }
.lu-sl { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 8px; font: 500 14.5px/1.5 system-ui, sans-serif; }
.lu-sl b { font: 800 12px system-ui, sans-serif; color: #2b1d10; background: #ffc46b; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.lu-sl.key { background: rgba(255, 196, 107, .16); box-shadow: inset 3px 0 0 #ffc46b; }
.lu-sl.key.miss { background: rgba(248, 113, 113, .14); box-shadow: inset 3px 0 0 #f87171; }
.lu-sl mark { background: #ffc46b; color: #2b1d10; padding: 0 3px; }
.lu-sl em { color: #ffc46b; font-style: normal; font-weight: 800; }
.lu-sl.playing { outline: 2px solid #ff5b5b; }
.lu-replay { background: none; border: 1px solid rgba(255, 196, 107, .5); color: #ffc46b; padding: 6px 12px; min-height: 40px; font: 700 12px system-ui, sans-serif; cursor: pointer; white-space: nowrap; --lu-cut: 5px; }
.lu-dock { flex: 0 0 auto; background: rgba(43, 27, 17, .9); border: 1px solid rgba(255, 196, 107, .35); padding: 8px 10px 10px; display: grid; gap: 6px; --lu-cut: 10px; }
.lu-ahead { font: 600 13px system-ui, sans-serif; color: #ffc46b; min-height: 17px; }
.lu-deck { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lu-play { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #ff5b5b, #c81e1e); color: #fff; border: 0; padding: 10px 20px; min-height: 46px; font: 800 16px system-ui, sans-serif; cursor: pointer; --lu-cut: 9px; }
.lu-play:disabled { opacity: .45; cursor: default; }
.lu-btn { background: rgba(255, 196, 107, .12); color: #ffe2b3; border: 1px solid rgba(255, 196, 107, .4); padding: 8px 14px; min-height: 44px; font: 700 13.5px system-ui, sans-serif; cursor: pointer; --lu-cut: 7px; }
.lu-btn small { color: #cbd5e1; font-weight: 600; margin-left: 4px; }
.lu-btn:disabled { opacity: .4; cursor: default; }
.lu-time { font: 700 14px system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #ffe2b3; margin-left: auto; }
.lu-bar { height: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lu-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff5b5b, #ffc46b); }
.lu-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lu-actions .lu-go { flex: 1 1 160px; }
.lu-msg { min-height: 18px; font-size: 13.5px; color: #ffc46b; flex: 1 1 100%; }
.lu-msg.good { color: #86efac; }
.lu-msg.bad { color: #fca5a5; }
.lu-go { background: linear-gradient(135deg, #ffc46b, #c9862a); color: #2b1d10; border: 0; padding: 12px 24px; min-height: 46px; font: 800 16px system-ui, sans-serif; cursor: pointer; --lu-cut: 9px; }
.lu-go:disabled { opacity: .5; cursor: default; }
.lu-play:focus-visible, .lu-btn:focus-visible, .lu-go:focus-visible, .lu-replay:focus-visible, .lu-exam:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lu-over { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(12, 8, 4, .76); backdrop-filter: blur(2px); }
.lu-ocard { background: linear-gradient(160deg, #3a2414, #1c120c); border: 1px solid rgba(255, 196, 107, .45); --lu-cut: 14px; padding: 18px; max-width: 480px; width: 100%; max-height: 100%; overflow: auto; text-align: center; color: #fdf2e0; }
.lu-kick { font: 700 12px/1.2 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ffc46b; }
.lu-title2 { font: 800 24px/1.25 system-ui, sans-serif; margin: 4px 0 8px; }
.lu-title2.good { color: #bbf7d0; }
.lu-title2.bad { color: #fecaca; }
.lu-title2.sm { font-size: 20px; }
.lu-sub { font-size: 14px; color: #ffe2b3; margin: 6px 0 10px; line-height: 1.45; }
.lu-bandtag { display: inline-block; margin-left: 8px; font: 800 14px system-ui, sans-serif; padding: 2px 9px; background: rgba(255, 255, 255, .08); color: var(--b); vertical-align: 4px; }
.lu-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.lu-parts { display: grid; gap: 6px; font-size: 13px; }
.lu-parts div { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; gap: 6px; align-items: center; }
.lu-parts span.bar { height: 8px; background: rgba(148, 163, 184, .25); overflow: hidden; display: block; }
.lu-parts span.bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff5b5b, #ffc46b); }
.lu-parts em { font-style: normal; text-align: right; opacity: .8; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .lu-info { display: none; }
  .lu-chip { padding: 3px 6px; gap: 4px; }
  .lu-chip small { font-size: 8px; letter-spacing: 1px; }
  .lu-chip b { font-size: 13px; }
  .lu-task { font-size: 15px; }
}
