/* Photographic hardware beside a smoked-glass workbench; orange belongs to the mining. */
html .scene-wrap { grid-template-columns: minmax(210px, .48fr) minmax(0, 1.52fr); border-color: rgb(224 236 252 / .2); }
html .hardware-photo { border-color: rgb(224 236 252 / .2); min-height: 600px; }
html .hardware-photo img { animation: none; object-position: center 42%; }
html .photo-caption { left: 20px; bottom: 22px; font-size: 12px; letter-spacing: 0; }
html .digital-twin { isolation: isolate; padding: 26px 28px 20px; background: rgb(15 23 34 / .54); }
html[data-theme=light] .scene-wrap { background: #101927; }
.digital-twin::before, .digital-twin::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.digital-twin::before { background: linear-gradient(145deg,rgb(230 242 255 / .08),transparent 42%),radial-gradient(ellipse at 95% 15%,rgb(160 194 237 / .1),transparent 65%); box-shadow: inset 0 1px 0 rgb(235 245 255 / .16); }
.digital-twin::after { background: radial-gradient(320px circle at var(--glass-x,60%) var(--glass-y,30%),rgb(235 245 255 / .1),transparent 75%); opacity: 0; transition: opacity .25s; }
.digital-twin>* { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .digital-twin:hover::after { opacity: 1; } }
html .digital-twin .scene-top-label { align-items: flex-start; gap: 16px; padding: 0; border: 0; letter-spacing: 0; }
.scene-top-label h3 { margin: 0; color: #f3f6fb; font-size: clamp(26px, 2.5vw, 36px); font-weight: 750; line-height: 1.1; letter-spacing: -.045em; }
.digital-twin .scene-top-label p { margin: 8px 0 0; color: #b5bfce; font-size: 13px; font-weight: 400; }
.algorithm-badge { flex-shrink: 0; padding: 7px 10px; border: 1px solid rgb(224 236 252 / .28); border-radius: 30px; background: linear-gradient(145deg,rgb(240 247 255 / .1),rgb(240 247 255 / .02)); box-shadow: inset 0 1px 0 rgb(240 247 255 / .12); color: #ffb27b; font-size: 11px; font-weight: 650; }
html .digital-twin .machine-scene { height: 340px; min-height: 340px; margin: 0 -16px; flex: none; }
html .digital-twin .scene-controls { padding: 0 0 20px; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.scene-selection { display: flex; align-items: center; gap: 12px; min-width: 0; }
.scene-selection>div { min-width: 120px; }
.scene-selection strong { display: block; color: #f3f6fb; font-size: 13px; line-height: 1.5; font-weight: 600; }
.scene-selection span { display: block; color: #b5bfce; font-size: 11px; line-height: 1.5; }
.scene-actions { display: flex; gap: 8px; }
html .scene-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 13px; border-radius: 30px; font-size: 12px; background: linear-gradient(150deg,rgb(235 245 255 / .1),rgb(235 245 255 / .035)); box-shadow: inset 0 1px 0 rgb(240 247 255 / .13),0 4px 14px rgb(0 5 13 / .12); }
html .scene-controls button span { min-height: 0; color: inherit; font: inherit; }
html .scene-selection button { padding: 8px; font-size: 18px; }
.scene-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html .scene-controls button[aria-pressed=true] { border-color: #ffb27b; background: rgb(255 138 61 / .16); }
html .scene-controls button:focus-visible { outline: 2px solid #ffb27b; outline-offset: 4px; }
html .scene-controls button:disabled { opacity: .45; }
html .digital-twin .hash-readout { border: 1px solid rgb(224 236 252 / .17); border-top-color: rgb(240 247 255 / .3); border-radius: 16px; margin: 0; padding: 16px; background: linear-gradient(135deg,rgb(235 245 255 / .045),rgb(235 245 255 / .015)); box-shadow: inset 0 1px 0 rgb(240 247 255 / .04); }
html .digital-twin .hash-readout-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; font-size: 11px; font-weight: 400; letter-spacing: 0; margin-bottom: 14px; }
html .digital-twin #hash-readout-state { font-size: 10px; letter-spacing: .025em; }
html .digital-twin .hash-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; font-size: clamp(11px, 1.25vw, 15px); line-height: 1.35; letter-spacing: .035em; opacity: 1; }
html .digital-twin .hash-matrix span { padding: 3px 0; }
html .digital-twin .hash-matrix .hash-highlight { background: none!important; color: #ffb27b!important; }
.hash-process { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; color: #c5cfdd; font-size: 12px; }
.hash-process li+li::before { content: '→'; margin-right: 12px; color: #ffb27b; }
.digital-twin .scene-note { margin: 14px 0 0; color: #b5bfce; font-size: 11px; line-height: 1.6; max-width: 65ch; }
html .digital-twin .scene-fallback { padding: 20px; gap: 16px; }
html .digital-twin .scene-fallback p { color: #c5cfdd; }
html .digital-twin .scene-fallback[hidden] { display: none; }
html .digital-twin .fallback-rigs span { color: #c5cfdd; background: rgb(235 245 255 / .065); border-color: rgb(224 236 252 / .25); }
html .digital-twin .fallback-rigs span.active { color: #b9d4a0; border-color: #728d5b; }
@media (min-width: 1600px) {
  html .digital-twin .machine-scene { height: 400px; min-height: 400px; }
}
@media (max-width: 1150px) {
  html .scene-wrap { grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr); }
  html .digital-twin { padding: 22px 20px 20px; }
  html .digital-twin .scene-controls { gap: 14px; }
  .scene-selection { gap: 8px; }
  .scene-selection>div { min-width: 110px; }
  .scene-actions { margin-left: auto; }
  html .scene-controls button { font-size: 11px; }
}
@media (max-width: 700px) {
  html .scene-wrap { display: flex; }
  html .hardware-photo { height: 230px; min-height: 230px; border-bottom-color: rgb(224 236 252 / .2); }
  html .hardware-photo img { object-position: center 39%; }
  html .photo-caption { bottom: 16px; }
  html .digital-twin { padding: 24px 20px 20px; }
  .scene-top-label h3 { font-size: 32px; }
  html .digital-twin .machine-scene { height: 300px; min-height: 300px; margin: 0 -12px; }
  html .digital-twin .hash-matrix { font-size: 13px; }
}
@media (max-width: 430px) {
  html .digital-twin { padding-left: 16px; padding-right: 16px; }
  .scene-top-label h3 { font-size: 29px; }
  .scene-top-label p { font-size: 12px; }
  .algorithm-badge { padding: 6px 8px; font-size: 10px; }
  html .digital-twin .machine-scene { height: 255px; min-height: 255px; }
  html .digital-twin .scene-controls { display: grid; grid-template-columns: 1fr; }
  .scene-selection { justify-content: space-between; }
  .scene-selection>div { text-align: center; flex: 1; }
  .scene-actions { margin: 0; }
  .scene-actions button { flex: 1; }
  html .digital-twin .hash-matrix { gap: 5px 8px; font-size: 11px; }
  .hash-process { gap: 8px; font-size: 11px; }
  .hash-process li+li::before { margin-right: 8px; }
  html .digital-twin .hash-readout { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .digital-twin::after { display: none; } }
@media (prefers-reduced-transparency: reduce) { html .digital-twin { background: #172230; } .digital-twin::after { display: none; } }
