.le-page { max-width: 1160px; }
.le-intro { max-width: 900px; }
.le-intro .lede { max-width: 820px; }
.le-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(30, 35, 28, .07);
}
.le-challenge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #c7d0d6;
  border-radius: 12px;
  background: #f1f6f8;
  color: #42555f;
  font-size: .7rem;
}
.le-challenge span { font-weight: 900; letter-spacing: .07em; }
.le-challenge strong { color: var(--text); font-size: .85rem; }
.le-challenge em { color: var(--muted); font-style: normal; }
.le-topbar { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #f8f9f4; }
.le-stat { display: flex; align-items: baseline; justify-content: center; gap: 7px; min-height: 58px; padding: 10px 7px; border-right: 1px solid var(--line); }
.le-stat:last-child { border-right: 0; }
.le-stat span { color: var(--muted); font-size: .66rem; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.le-stat strong { color: var(--text); font-size: 1.25rem; letter-spacing: -.03em; }
.le-stat:nth-child(3) strong { font-size: .9rem; letter-spacing: .02em; }
.le-time-track { height: 5px; overflow: hidden; background: #e6e9e1; }
.le-time-track span { display: block; width: 100%; height: 100%; transform-origin: left center; background: var(--accent); }

.le-game-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .78fr); min-height: 590px; }
.le-visual-panel { padding: 18px; border-right: 1px solid var(--line); background: #fbfcfa; }
.le-visual-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.le-visual-head .section-kicker { margin-bottom: 3px; }
.le-visual-head h2 { margin: 0; font-size: 1rem; }
.le-difficulty { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #b9c6d1; border-radius: 999px; background: #edf4f8; color: #425766; font-size: .58rem; font-weight: 900; letter-spacing: .065em; }
.le-difficulty.is-journeyman { border-color: #c9c6a8; background: #f7f4df; color: #665f31; }
.le-difficulty.is-foreman { border-color: #d5bdb6; background: #fbefeb; color: #775045; }
.le-canvas-wrap { position: relative; margin-top: 12px; overflow: hidden; border: 1px solid #c8d2da; border-radius: 14px; background: #f3f5f2; }
.le-svg { display: block; width: 100%; height: auto; min-height: 430px; font-family: Arial, Helvetica, sans-serif; }
.le-visual-note { margin: 8px 2px 0; color: var(--muted); font-size: .66rem; line-height: 1.4; }

.le-start-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(440px, calc(100% - 34px));
  transform: translate(-50%, -50%);
  padding: 20px 22px;
  border: 1px solid #aebbc5;
  border-radius: 15px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 50px rgba(28, 42, 51, .17);
  text-align: center;
  transition: opacity .16s ease, transform .16s ease;
}
.le-start-card.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -46%); }
.le-start-card > strong { display: block; margin: 4px 0 4px; font-size: 1.25rem; }
.le-start-copy { display: block; color: var(--muted); font-size: .76rem; }
.le-start-card small { display: block; margin-top: 11px; color: var(--muted); font-size: .65rem; font-weight: 800; }
.le-laser-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.le-laser-choice {
  min-height: 67px;
  padding: 10px 11px;
  border: 1px solid #cfd4cb;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .08s ease, border-color .08s ease, box-shadow .08s ease;
}
.le-laser-choice:hover { transform: translateY(-1px); border-color: #9ea797; }
.le-laser-choice:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.le-laser-choice.is-selected { border-color: #83901e; box-shadow: inset 0 0 0 1px #83901e; background: #fbfce9; }
.le-laser-choice b { display: block; margin-top: 7px; font-size: .68rem; letter-spacing: .06em; }
.le-beam-swatch { display: block; height: 4px; border-radius: 999px; }
.le-beam-green { background: #1ed760; box-shadow: 0 0 10px rgba(30, 215, 96, .65); }
.le-beam-red { background: #ff3b3b; box-shadow: 0 0 10px rgba(255, 59, 59, .6); }

.le-question-panel { display: flex; flex-direction: column; padding: 22px; background: #fff; }
.le-question-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; color: var(--muted); font-size: .61rem; font-weight: 900; letter-spacing: .07em; }
.le-question-panel > h2 { margin: 0 0 14px; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.18; letter-spacing: -.03em; }
.le-formula { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8f9f4; color: var(--muted); font-size: .63rem; font-weight: 900; letter-spacing: .035em; }
.le-formula b { color: #899188; }
.le-formula strong { color: var(--text); font-size: .66rem; }
.le-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.le-choice {
  min-height: 60px;
  padding: 12px 10px;
  border: 1px solid #cfd4cb;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  transition: transform .08s ease, border-color .08s ease, background .08s ease;
}
.le-choice:hover:not(:disabled) { transform: translateY(-1px); border-color: #9aa48e; background: #fafbf7; }
.le-choice:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.le-choice:disabled { cursor: default; }
.le-choice.is-correct { border-color: #a8ba48; background: #f0f6d4; }
.le-choice.is-wrong { border-color: #dfaaa0; background: #fff0ec; }
.le-feedback { margin-top: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .73rem; line-height: 1.45; }
.le-feedback.is-correct { border-color: #c9d66d; background: #f4f8dc; }
.le-feedback.is-wrong { border-color: #e6beb5; background: #fff4f1; }
.le-primary { width: 100%; min-height: 48px; margin-top: auto; }

.le-game-over { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(27, 32, 25, .58); backdrop-filter: blur(2px); }
.le-game-over.hidden { display: none; }
.le-game-over-card { width: min(520px, 100%); padding: 24px; border-radius: 17px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .24); text-align: center; }
.le-game-over-card h2 { margin: 4px 0 7px; font-size: 1.65rem; }
.le-game-over-message { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.le-game-over-message strong { color: var(--text); }
.le-game-over-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0; }
.le-game-over-stats span { padding: 9px 6px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9f4; color: var(--muted); font-size: .62rem; font-weight: 800; }
.le-game-over-stats strong { display: block; margin-top: 3px; color: var(--text); font-size: 1.05rem; }
.le-challenge-result { margin: 0 0 13px; padding: 10px; border: 1px solid #c4cbd0; border-radius: 10px; background: #f2f6f8; color: #41525e; font-size: .76rem; font-weight: 850; }
.le-game-over-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.le-game-over-actions button { min-height: 44px; }
.le-share-status { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: .67rem; }

.le-level-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.le-level-strip div { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9f4; }
.le-level-strip strong { display: block; margin-bottom: 3px; font-size: .66rem; letter-spacing: .055em; }
.le-level-strip span { display: block; color: var(--muted); font-size: .68rem; line-height: 1.4; }

/* Wall elevation SVG */
.le-wall-bg { fill: #f6f7f4; }
.le-wall-grid { stroke: #e1e5df; stroke-width: 1; }
.le-floor { stroke: #303932; stroke-width: 7; }
.le-floor-fill { fill: #d7dad4; }
.le-structure { stroke: #777f78; stroke-width: 4; stroke-dasharray: 12 8; }
.le-target-line { stroke: #26352c; stroke-width: 5; }
.le-target-thin { stroke: #48584e; stroke-width: 2.5; }
.le-target-fill { fill: #dce2dc; stroke: #435047; stroke-width: 2.2; }
.le-wall-text { fill: #28372e; font-size: 20px; font-weight: 800; }
.le-wall-small { fill: #536057; font-size: 15px; font-weight: 750; }
.le-wall-tiny { fill: #667169; font-size: 13px; font-weight: 700; }
.le-dim-line { stroke: #5c6b61; stroke-width: 2.2; }
.le-dim-dash { stroke: #758178; stroke-width: 2; stroke-dasharray: 7 6; }
.le-dim-text { fill: #35443a; font-size: 24px; font-weight: 900; }
.le-laser-body { fill: #252b27; stroke: #111512; stroke-width: 2; }
.le-laser-detail { fill: #626a64; }
.le-laser-lens { fill: #d9e0da; stroke: #171c18; stroke-width: 2; }
.le-laser-beam { stroke-width: 4; stroke-linecap: round; }
.le-laser-beam-glow { stroke-width: 12; stroke-linecap: round; opacity: .13; }
.le-beam-label-bg { fill: rgba(255,255,255,.93); stroke: #b9c1bb; stroke-width: 1.5; }
.le-target-label-bg { fill: rgba(255,255,255,.95); stroke: #9fa9a2; stroke-width: 1.5; }

@media (max-width: 920px) {
  .le-game-grid { grid-template-columns: 1fr; min-height: 0; }
  .le-visual-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .le-question-panel { min-height: 330px; }
  .le-primary { margin-top: 16px; }
}

@media (max-width: 680px) {
  .le-page { padding-top: 30px; }
  .le-intro { margin-bottom: 16px; }
  .le-intro h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .le-intro .lede { font-size: .88rem; line-height: 1.48; }
  .le-challenge { flex-wrap: wrap; gap: 5px 10px; padding: 8px 10px; }
  .le-challenge em { width: 100%; text-align: center; }
  .le-shell { border-radius: 15px; }
  .le-stat { min-height: 49px; gap: 3px; padding: 7px 4px; flex-direction: column; align-items: center; }
  .le-stat span { font-size: .52rem; letter-spacing: .04em; }
  .le-stat strong { font-size: 1.08rem; }
  .le-stat:nth-child(3) strong { font-size: .72rem; }
  .le-time-track { height: 4px; }
  .le-visual-panel { padding: 10px; }
  .le-visual-head h2 { font-size: .84rem; }
  .le-visual-head .section-kicker { font-size: .56rem; }
  .le-difficulty { padding: 5px 6px; font-size: .5rem; }
  .le-canvas-wrap { margin-top: 8px; border-radius: 11px; }
  .le-svg { min-height: 0; }
  .le-visual-note { margin-top: 5px; font-size: .56rem; }
  .le-start-card { padding: 14px 15px; }
  .le-start-card > strong { font-size: 1.05rem; }
  .le-start-copy { font-size: .66rem; }
  .le-laser-choice { min-height: 58px; }
  .le-question-panel { min-height: 0; padding: 12px 10px 13px; }
  .le-question-meta { margin-bottom: 7px; font-size: .53rem; }
  .le-question-panel > h2 { margin-bottom: 10px; font-size: 1.12rem; }
  .le-formula { margin-bottom: 10px; padding: 8px 5px; gap: 5px; font-size: .54rem; }
  .le-formula strong { font-size: .56rem; }
  .le-choices { gap: 6px; }
  .le-choice { min-height: 48px; padding: 8px 6px; border-radius: 9px; font-size: .78rem; }
  .le-feedback { margin-top: 7px; padding: 8px 9px; font-size: .64rem; }
  .le-primary { min-height: 44px; margin-top: 10px; }
  .le-game-over { padding: 12px; }
  .le-game-over-card { padding: 18px 14px; }
  .le-game-over-card h2 { font-size: 1.4rem; }
  .le-game-over-stats { gap: 5px; margin: 13px 0; }
  .le-game-over-stats span { padding: 7px 4px; font-size: .54rem; }
  .le-game-over-actions { grid-template-columns: 1fr; }
  .le-level-strip { grid-template-columns: 1fr; gap: 7px; margin: 14px 0; }
  .le-level-strip div { padding: 10px; }
  .le-level-strip span { font-size: .61rem; }
  .le-wall-text { font-size: 17px; }
  .le-wall-small { font-size: 13px; }
  .le-wall-tiny { font-size: 11px; }
  .le-dim-text { font-size: 20px; }
}
