/* Broadcast studio theatre with accessible controls and responsive ball-pool settings. */
.machine-recent-draws { margin-top:22px; padding:25px; border:1px solid #d3deea; border-radius:14px; background:#fff; }
.machine-recent-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; white-space:nowrap; color:#31577f; font-size:13px; }
.machine-recent-status { margin:0 0 12px; color:#62748b; font-size:12px; }
.machine-recent-list { list-style:none; margin:0; padding:0; }
.machine-recent-row { display:grid; grid-template-columns:165px minmax(0,1fr); align-items:center; gap:12px; padding:12px 0; border-top:1px solid #e8eef5; }
.machine-recent-issue { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; font-size:13px; }
.machine-recent-issue a { min-height:30px; display:inline-flex; align-items:center; color:#264669; font-weight:600; }
.machine-recent-issue time { color:#6d7b90; font-size:12px; }
.machine-recent-numbers { display:flex; flex-wrap:wrap; gap:8px 17px; }
.machine-recent-zone { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.machine-recent-zone-label { color:#6b798d; font-size:11px; margin-right:4px; }
.machine-recent-number { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:#fbefec; color:#b23c31; font:600 12px/1 ui-monospace,monospace; }
.machine-recent-back .machine-recent-number { color:#2b6ba2; background:#eaf3fc; }
@media(max-width:700px) {
  .machine-recent-draws { padding:19px 17px; margin-top:17px; border-radius:12px; }
  .machine-recent-row { grid-template-columns:minmax(0,1fr); gap:7px; padding:11px 0; }
  .machine-recent-link { font-size:12px; }
  .machine-recent-number { width:25px; height:25px; }
}
.draw-machine-page { --machine-ink:#183958; --machine-gold:#ead0a1; --machine-front:#c84336; --machine-back:#3b83c8; max-width:1240px; margin:4px auto 28px; }
.draw-machine-page * { min-width:0; }
.draw-machine-page a:hover { text-decoration:none; }
.draw-machine-page :focus-visible { outline:3px solid #b38b44; outline-offset:4px; }
.machine-page-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:0 0 23px; }
.machine-eyebrow { margin-bottom:6px; color:#5c6e83; font-size:11px; letter-spacing:1.1px; }
.machine-page-heading h1 { color:#193455; font-size:31px; line-height:1.4; font-weight:600; letter-spacing:.5px; }
.machine-page-heading > div > p:last-child { color:#5d6b7e; font-size:13px; margin-top:8px; }
.machine-access-badge { display:inline-flex; align-items:center; flex-shrink:0; gap:8px; min-height:40px; padding:8px 13px; border:1px solid #cbd6e3; border-radius:100px; color:#395778; background:#f0f5fa; font-size:12px; }
.machine-access-badge svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.machine-theatre { overflow:hidden; border:1px solid #304663; border-radius:14px; color:#e8eff8; background:#0a1730; box-shadow:0 17px 35px rgba(21,42,39,.12),inset 0 1px 0 rgba(255,255,255,.07); }
.machine-theatre-top { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:15px 25px; background:linear-gradient(100deg,#152b49,#101e35); border-bottom:1px solid #30425e; }
.machine-theatre-title { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.machine-live-dot { width:7px; height:7px; border-radius:50%; background:#c5e7ff; box-shadow:0 0 13px rgba(173,211,255,.25); }
.machine-theatre-title strong { color:#eef5ff; font-size:14px; font-weight:600; letter-spacing:1px; }
.machine-theatre-title > span:last-child { color:#becce0; font-size:12px; margin-left:8px; }
.machine-zone-switch { display:flex; padding:3px; border:1px solid #576b85; border-radius:8px; background:#10243e; flex-shrink:0; }
.machine-zone-switch button { min-width:55px; min-height:44px; padding:6px 12px; border:0; border-radius:5px; color:#d9e5f7; background:transparent; font-size:12px; cursor:pointer; }
.machine-zone-switch button[aria-pressed=true], .machine-zone-switch button.is-active { color:#f1f7ff; background:#2b4568; box-shadow:inset 0 0 0 1px #718bad; }
.machine-zone-switch button:focus-visible { outline-offset:-2px; }
.machine-digit-views { display:flex; align-items:center; flex-wrap:wrap; justify-content:center; gap:7px; padding:11px 18px; border-bottom:1px solid #30425e; background:#12263f; }
.machine-digit-views button { display:inline-flex; align-items:center; justify-content:center; min-width:54px; min-height:44px; padding:8px 12px; border:1px solid #576e8c; border-radius:7px; color:#dfe9f9; background:#1b3557; font-size:12px; cursor:pointer; }
.machine-digit-views button[aria-pressed=true],.machine-digit-views button.is-active { border-color:#819dbd; color:#f0f6ff; background:#345473; }
.machine-digit-views button:focus-visible { outline-offset:1px; }
.machine-viewport-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 23px; border-bottom:1px solid #2c4262; background:#12263f; }
.machine-gesture-hint { color:#bacce3; font-size:12px; }
.machine-zoom-controls { display:flex; align-items:center; gap:7px; color:#dce8f8; font-size:12px; }
.machine-zoom-controls > span { margin-right:4px; }
.machine-zoom-controls button { min-width:44px; min-height:44px; padding:6px 9px; border:1px solid #58708f; border-radius:6px; background:#203d61; color:#edf5ff; cursor:pointer; font-size:19px; line-height:1; }
.machine-zoom-controls button:last-child { font-size:12px; }
.machine-zoom-controls button:hover { background:#31557e; }
.machine-zoom-controls button:disabled { opacity:.45; cursor:not-allowed; }
.machine-zoom-controls output { min-width:42px; text-align:center; font-variant-numeric:tabular-nums; }
.machine-stage-wrap { position:relative; background:radial-gradient(ellipse at 50% 20%,rgba(122,159,213,.12),transparent 70%),#0d1c33; }
.machine-stage-wrap::before { content:none; }
#machine-stage { position:relative; z-index:1; width:100%; height:530px; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; cursor:grab; }
#machine-stage.is-grabbing { cursor:grabbing; }
#machine-stage.is-grab-pending { cursor:progress; }
#machine-stage canvas { display:block; width:100%; height:100%; touch-action:none; }
#machine-stage:focus-visible { outline-offset:-6px; }
.machine-stage-caption { display:none; }
.machine-scene-feedback { position:absolute; inset:14px; z-index:2; pointer-events:none; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.machine-mix-indicator { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; max-width:100%; padding:9px 13px; border:1px solid #6885a5; border-radius:9px; background:rgba(13,32,58,.9); color:#e8f3ff; font-size:12px; }
.machine-mix-indicator progress { width:94px; height:6px; accent-color:#8cc7f2; border:0; border-radius:8px; overflow:hidden; }
.machine-live-ball { display:grid; grid-template-columns:54px minmax(0,1fr); gap:8px 12px; width:min(330px,100%); margin-top:auto; align-self:flex-end; padding:12px; border:1px solid #7392b8; border-radius:12px; color:#f3f8ff; background:rgba(12,31,56,.91); box-shadow:0 7px 25px #0714284d; backdrop-filter:blur(8px); }
.machine-live-ball[hidden],.machine-mix-indicator[hidden] { display:none; }
.machine-live-number { display:flex; align-items:center; justify-content:center; width:54px; height:54px; border:1px solid #ffccb0; border-radius:50%; color:white; background:radial-gradient(circle at 32% 22%,#ffd6bd,#d35b3d 59%,#873b36); font:600 27px/1 var(--mono); box-shadow:inset -3px -5px 9px #76352f6b,0 3px 8px #0004; }
.machine-live-ball[data-zone=back] .machine-live-number { border-color:#bfdfff; background:radial-gradient(circle at 32% 22%,#c7eaff,#3e8bc1 59%,#275481); }
.machine-live-ball strong { display:block; padding-top:5px; font-size:14px; font-weight:600; }
.machine-live-ball p { margin:4px 0 0; color:#bfd0e6; font-size:11px; line-height:1.5; }
.machine-live-history { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.machine-live-history > span { display:inline-flex; align-items:center; justify-content:center; width:23px; height:23px; border:1px solid #c38470; border-radius:50%; background:#733c37; color:#ffede5; font:11px/1 var(--mono); }
.machine-live-history > span[data-zone=back] { border-color:#719ac0; background:#234c75; color:#e3f3ff; }
.machine-live-history small { margin-left:auto; color:#afc7e1; font-size:10px; white-space:nowrap; }
.machine-live-ball.is-new .machine-live-number { animation:machine-ball-reveal .45s ease-out; }
@keyframes machine-ball-reveal { from { transform:scale(.72) rotate(-16deg); opacity:.35; } to { transform:scale(1) rotate(0); opacity:1; } }
.machine-stage-caption > span { display:inline-flex; align-items:center; gap:7px; padding:6px 11px; border:1px solid rgba(151,181,224,.25); border-radius:100px; background:rgba(11,28,52,.74); }
.machine-tone-front,.machine-tone-back { display:inline-block; width:8px; height:8px; flex-shrink:0; border-radius:50%; background:#c84336; }
.machine-tone-back { background:#3b83c8; }
.machine-console { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; padding:19px 25px; border-top:1px solid #344b6b; background:linear-gradient(120deg,#193250,#13263f); }
.machine-controls { display:flex; flex-wrap:wrap; gap:9px; }
.machine-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:10px 17px; border:1px solid transparent; border-radius:8px; font-size:13px; font-weight:600; line-height:1.4; cursor:pointer; transition:background .2s,border-color .2s,transform .2s; }
.machine-button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.machine-button-gold { background:linear-gradient(125deg,#336cb7,#205493); border-color:#6d9acd; color:#fff; box-shadow:0 4px 12px rgba(3,15,19,.2); }
.machine-button-gold svg { fill:currentColor; stroke-width:1; }
.machine-button-gold:hover { background:linear-gradient(125deg,#3572b8,#235b9d); }
.machine-button-dark { color:#e0eaf6; border-color:#5f7695; background:#263e60; }
.machine-button-dark:hover { color:#f5f9ff; border-color:#8fa9c8; background:#335078; }
.machine-button-light { color:#415d7d; border-color:#cfdae5; background:#f5f8fc; }
.machine-button-light:hover { border-color:#99b0cb; background:#e9f0f8; }
.machine-button-ink { color:#ffffff; border-color:#254e79; background:#245380; }
.machine-button-ink:hover { background:#163f6d; }
.machine-button:disabled { cursor:not-allowed; opacity:.55; box-shadow:none; }
.machine-speed-label { display:grid; grid-template-columns:100px 15px; width:134px; gap:0 5px; color:#dbe6f6; font-size:12px; }
.machine-speed-label > input { width:134px; min-height:26px; accent-color:#b9d1ee; grid-column:1/-1; cursor:pointer; }
.machine-speed-label > span { font-size:11px; color:#bed0e7; }
.machine-speed-label > span:last-child { text-align:right; }
.machine-status-line { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; padding:12px 25px 14px; border-top:1px solid #2d4565; color:#d2dfef; background:#10223b; font-size:12px; line-height:1.8; }
.machine-status-line > p { color:#e3edf9; flex:1; }
.machine-status-line > span { color:#bacce3; text-align:right; }
.machine-results { padding:24px 25px 19px; margin-top:22px; border:1px solid #d7dfe8; border-radius:14px; background:#ffffff; box-shadow:0 5px 15px rgba(55,68,40,.025); }
.machine-section-header { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:20px; }
.machine-section-header h2 { color:#294765; font-size:18px; font-weight:600; }
.machine-section-header .machine-button { min-height:44px; font-size:12px; padding:9px 13px; flex-shrink:0; }
.machine-result-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:16px; }
.machine-result-zone { padding:15px 17px; border:1px solid #dce4ed; border-radius:10px; background:#f4f7fb; }
.machine-result-zone h3 { display:flex; align-items:center; gap:7px; color:#4e6580; font-size:12px; font-weight:500; margin-bottom:12px; }
.machine-result-balls { display:flex; flex-wrap:wrap; align-items:center; gap:9px; min-height:44px; }
.machine-result-placeholder { color:#5c6e84; font-size:12px; }
.machine-result-balls .machine-result-ball,.machine-result-balls > .result-ball,.machine-result-balls > .ball { display:inline-flex; align-items:center; justify-content:center; width:43px; height:43px; border-radius:50%; border:1px solid #bd6545; color:#fffaf0; background:radial-gradient(circle at 32% 25%,#e3b396,#b45437 66%,#7b311f); box-shadow:inset 0 2px 3px rgba(255,246,220,.28),0 3px 5px rgba(94,59,36,.12); font:600 16px/1 var(--mono); }
#back-result .machine-result-ball,#back-result > .result-ball,#back-result > .ball { border-color:#3574a5; background:radial-gradient(circle at 32% 25%,#a1c4df,#3d7faf 66%,#215170); }
.machine-result-note { color:#627286; font-size:12px; margin-top:14px; }
.machine-setup-bar { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; padding:15px 18px; margin-bottom:12px; border:1px solid #d5dfe9; border-radius:12px; background:#fff; }
.machine-quick-preset { display:flex; align-items:center; gap:12px; flex-shrink:0; color:#3b5672; font-size:13px; font-weight:600; }
.machine-quick-preset select { width:170px; min-height:44px; padding:9px 32px 9px 12px; border:1px solid #afc3da; border-radius:7px; color:#254e79; background:#f4f8fd; font-size:14px; }
.machine-loaded-summary { flex:1; color:#526c87; font-size:13px; line-height:1.8; }
.machine-setup-bar .machine-button { flex-shrink:0; }
.machine-setup-bar select:disabled { opacity:.6; cursor:not-allowed; }
.machine-settings-dialog { width:calc(100% - 40px); max-width:1040px; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); margin:auto; padding:0; overflow:hidden; border:1px solid #bfcee0; border-radius:16px; background:#fff; color:#294765; box-shadow:0 24px 90px #071c3566; }
.machine-settings-dialog[open] { display:flex; flex-direction:column; }
.machine-settings-dialog::backdrop { background:#0a1d36a6; backdrop-filter:blur(3px); }
html.machine-settings-open { overflow:hidden; scrollbar-gutter:stable; }
.machine-settings-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; padding:18px 24px; border-bottom:1px solid #dfe6ef; }
.machine-settings-header h2 { margin:0; color:#264867; font-size:19px; font-weight:600; }
.machine-settings-header p { margin:5px 0 0; color:#61768e; font-size:12px; }
.machine-settings-close { width:44px; height:44px; flex-shrink:0; border:1px solid #d8e2ed; border-radius:8px; background:#f5f8fc; color:#4b6683; font-size:26px; cursor:pointer; }
.machine-settings-close:hover { background:#e7eff9; }
.machine-settings { display:flex; flex-direction:column; min-height:0; }
.machine-settings-body { padding:23px 24px; }
.machine-settings-dialog .machine-settings-body { overflow-y:auto; overscroll-behavior:contain; }
.machine-preset-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:13px 18px; padding-bottom:22px; }
.machine-settings label { display:flex; flex-direction:column; gap:7px; color:#526c87; font-size:12px; }
.machine-settings input,.machine-settings select { width:100%; min-height:44px; padding:9px 11px; border:1px solid #c7d4e2; border-radius:7px; color:#2b4869; background:#fff; font-size:13px; }
.machine-settings input:focus,.machine-settings select:focus { border-color:#527eaa; }
.machine-preset-row > p { grid-column:1/-1; color:#596e85; font-size:12px; line-height:1.9; }
.machine-settings .machine-model-field > select { border-color:#adbed3; background:#f1f6fb; }
.machine-pool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.machine-pool-panel { padding:20px; border:1px solid #d8e0e9; border-radius:11px; background:#f7f9fc; }
.machine-pool-back { border-color:#d2deeb; background:#f4f8fc; }
.machine-pool-panel legend { display:inline-flex; align-items:center; gap:8px; color:#415f7d; font-size:14px; font-weight:600; padding:0 7px; }
.machine-range-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.machine-mode-field { margin-top:13px; }
.machine-mode-help { margin-top:8px; color:#526e8a; font-size:12px; line-height:1.8; }
.machine-settings .machine-exclusion-field { display:flex; align-items:center; flex-direction:row; gap:9px; min-height:44px; margin-top:7px; }
.machine-settings .machine-exclusion-field > input { width:18px; height:18px; min-height:18px; flex-shrink:0; accent-color:#386fa9; }
.machine-pool-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; margin:17px 0 10px; }
.machine-pool-toolbar > p { color:#516c89; font-size:12px; }
.machine-pool-toolbar > div { display:flex; gap:4px; }
.machine-pool-toolbar button { padding:8px 12px; min-height:44px; min-width:48px; border:0; border-radius:6px; background:transparent; color:#3d6590; font-size:12px; cursor:pointer; }
.machine-pool-toolbar button:hover { background:#e8f0f8; }
.machine-number-pool { display:grid; grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:7px; }
.machine-number-pool button { display:flex; justify-content:center; align-items:center; min-height:44px; padding:6px 3px; border:1px solid #ced8e4; border-radius:8px; color:#5a6e86; background:#fff; font:500 14px/1 var(--mono); cursor:pointer; }
.machine-number-pool button[aria-pressed=true],.machine-number-pool button.is-selected,.machine-number-pool button.selected { color:#a33e33; border-color:#ddb4ad; background:#fff0ec; box-shadow:inset 0 1px 0 #fff8f5; }
.machine-pool-back .machine-number-pool button[aria-pressed=true],.machine-pool-back .machine-number-pool button.is-selected,.machine-pool-back .machine-number-pool button.selected { color:#2b5e96; border-color:#aec7e3; background:#e5effb; box-shadow:inset 0 1px 0 #f2fbff; }
.machine-number-pool button:hover { border-color:#7c9ac0; }
.machine-number-pool button:focus-visible { outline-offset:1px; }
.machine-pool-help { margin-top:12px; color:#627387; font-size:12px; line-height:1.8; }
.machine-settings-footer { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; gap:12px; padding:14px 24px; border-top:1px solid #dfe6ef; background:#f8fafd; }
.machine-settings-footer p { color:#5d7188; font-size:12px; line-height:1.8; }
.machine-settings-footer #machine-settings-status:not(:empty) { color:#a83d32; margin-bottom:4px; }
.machine-settings-footer .machine-button { flex-shrink:0; }
.machine-noscript { padding:18px; margin-top:16px; color:#756036; background:#f5ecd6; border:1px solid #ddd0af; border-radius:9px; }
.machine-member-gate { width:calc(100% - 36px); max-width:430px; margin:auto; padding:35px 32px 27px; border:1px solid #cbd7e5; border-radius:19px; color:#203b59; background:radial-gradient(circle at 90% 0%,#e7f0fc,transparent 48%),#fdfefe; box-shadow:0 24px 80px rgba(0,17,24,.28); text-align:center; }
.machine-member-gate::backdrop { background:rgba(8,27,34,.65); backdrop-filter:blur(4px); }
.machine-member-gate > form { position:absolute; top:7px; right:8px; }
#member-gate-close { width:44px; height:44px; border:0; border-radius:8px; background:transparent; color:#59718d; font-size:26px; cursor:pointer; }
#member-gate-close:hover { background:#eaf0f8; }
.machine-gate-emblem { display:flex; align-items:center; justify-content:center; width:68px; height:68px; margin:0 auto 18px; border:1px solid #b7c9df; border-radius:18px; color:#426891; background:linear-gradient(135deg,#f1f7ff,#d8e6f6); }
.machine-gate-emblem svg { width:42px; height:42px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.machine-member-gate h2 { font-size:23px; font-weight:600; color:#274a72; line-height:1.5; margin-bottom:13px; }
#member-gate-copy { color:#536d88; font-size:13px; line-height:1.9; }
.machine-member-gate > .machine-button { width:100%; margin:24px 0 14px; min-height:48px; }
.machine-gate-login { color:#536e89; font-size:13px; }
.machine-gate-login a { display:inline-flex; align-items:center; min-height:44px; padding:6px; color:#2e6094; font-weight:600; }
.machine-gate-free { color:#62778e; font-size:12px; line-height:1.8; padding-top:15px; margin-top:9px; border-top:1px solid #dce5f0; }
@media (max-width:1000px) {
  #machine-stage { height:470px; }
  .machine-theatre-title > span:last-child { display:none; }
  .machine-preset-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .machine-preset-row > p { grid-column:1/-1; padding:0; }
  .machine-pool-panel { padding:16px; }
  .machine-pool-grid { gap:14px; }
  .machine-result-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
}
@media (max-width:700px) {
  .machine-viewport-tools { padding:8px 12px; justify-content:flex-end; }
  .machine-gesture-hint { display:none; }
  .machine-page-heading { align-items:flex-start; flex-direction:column; gap:14px; margin-bottom:18px; }
  .machine-page-heading h1 { font-size:26px; }
  .machine-page-heading > div > p:last-child { font-size:12px; }
  .machine-access-badge { font-size:12px; min-height:35px; padding:6px 10px; }
  .machine-theatre { border-radius:14px; }
  .machine-theatre-top { padding:12px 14px; gap:9px; }
  .machine-theatre-title { gap:7px; }
  .machine-theatre-title strong { font-size:12px; letter-spacing:0; }
  .machine-zone-switch button { min-width:44px; min-height:44px; padding:7px 9px; font-size:12px; }
  .machine-digit-views { gap:6px; padding:10px; }
  .machine-digit-views button { min-width:51px; min-height:44px; padding:8px 9px; }
  #machine-stage { height:420px; }
  .machine-stage-caption { gap:16px; bottom:13px; font-size:11px; }
  .machine-console { flex-direction:column; align-items:stretch; padding:15px 14px; gap:13px; }
  .machine-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .machine-controls .machine-button { min-height:47px; padding:10px 7px; gap:5px; font-size:12px; }
  .machine-controls .machine-button svg { width:15px; height:15px; }
  .machine-scene-feedback { inset:9px; }
  .machine-live-ball { width:min(265px,100%); grid-template-columns:44px minmax(0,1fr); gap:6px 9px; padding:9px; }
  .machine-live-number { width:44px; height:44px; font-size:23px; }
  .machine-live-ball strong { font-size:12px; padding-top:3px; }
  .machine-live-history > span { width:20px; height:20px; font-size:10px; }
  .machine-speed-label { display:grid; grid-template-columns:76px minmax(0,1fr) 18px; align-items:center; width:100%; gap:0 8px; }
  .machine-speed-label > input { width:100%; min-height:44px; grid-column:2; grid-row:1; }
  .machine-speed-label > span { display:none; }
  .machine-speed-label::after { content:'强'; color:#bdcfe8; font-size:11px; }
  .machine-status-line { flex-direction:column; gap:4px; padding:12px 14px; }
  .machine-status-line > span { text-align:left; font-size:12px; }
  .machine-results { padding:19px 17px 16px; margin-top:17px; border-radius:12px; }
  .machine-section-header { align-items:flex-start; gap:10px; margin-bottom:16px; }
  .machine-section-header h2 { font-size:15px; line-height:1.7; }
  .machine-section-header .machine-button { padding:8px 10px; font-size:12px; gap:5px; }
  .machine-section-header .machine-button svg { width:15px; height:15px; }
  .machine-result-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .machine-result-zone { padding:13px 14px; }
  .machine-result-balls { gap:7px; }
  .machine-result-balls .machine-result-ball,.machine-result-balls > .result-ball,.machine-result-balls > .ball { width:37px; height:37px; font-size:14px; }
  .machine-setup-bar { gap:9px; padding:12px; }
  .machine-quick-preset { flex:1; flex-direction:column; align-items:stretch; gap:5px; font-size:12px; }
  .machine-quick-preset select { width:100%; font-size:16px; }
  .machine-setup-bar .machine-button { align-self:flex-end; padding:10px 12px; min-height:44px; }
  .machine-loaded-summary { order:3; flex-basis:100%; font-size:12px; }
  #machine-settings-console { grid-column:1/-1; order:5; }
  .machine-settings-dialog { width:100%; max-width:none; max-height:94vh; max-height:94dvh; margin:auto 0 0; border-radius:18px 18px 0 0; border-bottom:0; }
  .machine-settings-header { padding:14px 16px; }
  .machine-settings-header h2 { font-size:17px; }
  .machine-settings-body { padding:19px 16px; }
  .machine-preset-row { grid-template-columns:minmax(0,1fr); gap:12px; padding-bottom:18px; }
  .machine-settings input,.machine-settings select { min-height:44px; font-size:16px; padding:9px; }
  .machine-pool-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
  .machine-pool-panel { padding:15px 12px; }
  .machine-range-fields { gap:8px; }
  .machine-number-pool { grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:6px; }
  .machine-number-pool button { min-height:44px; font-size:13px; }
  .machine-settings-footer { align-items:center; gap:10px; padding:12px 16px; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .machine-settings-footer .machine-button { padding:11px 12px; min-height:46px; }
  .machine-member-gate { padding:31px 23px 24px; }
  .machine-member-gate h2 { font-size:21px; }
}
@media (max-width:375px) {
  .machine-page-heading h1 { font-size:24px; }
  .machine-theatre-top { padding:10px; }
  .machine-zone-switch { padding:2px; }
  .machine-zone-switch button { min-width:44px; padding:7px; }
  .machine-theatre-title strong { font-size:12px; }
  .machine-live-dot { width:5px; height:5px; }
  #machine-stage { height:390px; }
  .machine-console { padding:13px 10px; }
  .machine-controls { gap:5px; }
  .machine-controls .machine-button { font-size:12px; padding:9px 5px; }
  .machine-controls .machine-button svg { width:13px; height:13px; }
  .machine-results { padding:16px 13px; }
  .machine-section-header .machine-button svg { display:none; }
  .machine-section-header h2 { font-size:14px; }
  .machine-result-balls { gap:6px; }
  .machine-result-balls .machine-result-ball,.machine-result-balls > .result-ball,.machine-result-balls > .ball { width:34px; height:34px; font-size:13px; }
  .machine-settings-body { padding:16px 12px; }
  .machine-preset-row { grid-template-columns:minmax(0,1fr); }
  .machine-range-fields { gap:6px; }
  .machine-pool-panel { padding:14px 10px; }
  .machine-number-pool { gap:5px; }
}
@media (prefers-reduced-motion:reduce) { .draw-machine-page *, .draw-machine-page *::before, .draw-machine-page *::after { transition:none !important; animation:none !important; } }
