/* Presentation adapter only: original engine drawing and calculations are unchanged. */
html { height: 100%; font-size: 14px; }
body { height: 100dvh; padding: 8px 16px 20px; background: #080f19; background-image: none; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.header, .footer, .summary { display: none; }
.container { margin: 0; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; min-height: 0; }
.glass-card { border-radius: 0; border: 0; box-shadow: none; backdrop-filter: none; background: transparent; }
.canvas-area { background: #080f19; overflow: hidden; }
canvas { height: auto; width: auto; max-height: 100%; max-width: 100%; aspect-ratio: 6/7; object-fit: contain; }
.angle-badge { bottom: 8px; right: 8px; font-size: 11px; padding: 3px 6px; }
.controls { padding: 12px 0; justify-content: center; gap: 20px; min-width: 0; box-sizing: border-box; }
.btn-group { padding: 4px; border-radius: 7px; background: #172334; border: 0; }
.btn-mode { padding: 8px 4px; min-height: 44px; font-size: 13px; border-radius: 4px; white-space: nowrap; color: #b5c4d6; }
.btn-mode.active { color: #fff; background: #30425a; box-shadow: none; }
.info-panel { height: auto; min-height: 148px; padding: 16px 12px; border-radius: 0; border-left: 2px solid #35c9dc; background: #101b2a; box-sizing: border-box; }
.info-panel h3 { font-size: 17px; line-height: 1.5; }
.info-panel p { font-size: 14px; line-height: 1.8; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-main { grid-column: 1/-1; min-height: 46px; padding: 10px 8px; font-size: 15px; border-radius: 7px; gap: 7px; background: #245cda; }
.btn-main.playing { background: #245cda; }
.btn-icon { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 7px; min-height: 44px; border-radius: 7px; font-size: 14px; background: #1b2a3d; }
.btn-icon svg { width: 16px; height: 16px; }
.btn-main svg { width: 16px; height: 16px; }
.slider-group { padding: 0 3px; }
.slider-header { font-size: 13px; margin-bottom: 6px; color: #b5c4d6; }
input[type=range] { cursor: pointer; min-height: 24px; }
.btn-mode:focus-visible, .btn-main:focus-visible, .btn-icon:focus-visible, input:focus-visible { outline: 2px solid #35c9dc; outline-offset: 3px; }
.engine-strokes { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.engine-strokes span { color: #b5c4d6; font-size: 12px; border-bottom: 2px solid transparent; padding: 3px 0; }
.engine-strokes span.active { color: #35c9dc; border-color: #35c9dc; }
.engine-strokes span:nth-child(3).active { color: #ffb176; border-color: #ff9c58; }
@media(max-width: 560px) {
  body { padding: 8px 12px 16px; }
  .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .controls { gap: 14px; }
  .btn-mode { font-size: 12px; }
  .info-panel { padding: 12px 10px; min-height: 145px; }
  .info-panel h3 { font-size: 16px; }
  .info-panel p { font-size: 13px; }
  .engine-strokes { gap: 6px; }
}
@media(max-width: 440px) {
  body { padding: 0 12px 16px; }
  .container { grid-template-columns: 1fr; grid-template-rows: 270px minmax(0, 1fr); gap: 8px; }
  .canvas-area { min-height: 0; }
  canvas { height: 100%; max-width: 100%; }
  .controls { padding: 0; gap: 12px; display: flex; flex-direction: column; justify-content: flex-start; }
  .btn-group { width: 100%; padding: 3px; }
  .btn-mode { font-size: 14px; }
  .info-panel { min-height: 116px; padding: 10px 12px; }
  .info-panel h3 { font-size: 17px; }
  .info-panel p { font-size: 14px; }
  .engine-strokes { gap: 15px; margin-top: 7px; }
  .engine-strokes span { font-size: 12px; }
  .action-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; }
  .btn-main { grid-column: auto; font-size: 14px; }
  .btn-icon { gap: 5px; }
  .slider-header { font-size: 13px; }
}
