/* A restrained optical-bench interface. Geometry and hit areas stay in industry-game.js. */
.industry-game-page {
  --game-line: #ccd7d1;
  --game-ink: #24382f;
  --game-muted: #576b60;
  --game-bench: #fff;
  --game-bench-frame: #e7eee8;
  --game-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  background: #fff;
  color: var(--game-ink);
}
.laser-game-page { padding: 36px 0 80px; }
.game-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 48px; margin: 28px 0 38px; padding-bottom: 34px; border-bottom: 1px solid var(--game-line); }
.game-intro h1 { margin: 16px 0 0; max-width: 700px; color: var(--game-ink); font: 550 clamp(2.5rem,4.7vw,3.8rem)/1.1 Manrope,sans-serif; letter-spacing: -.045em; }
.game-intro-copy { max-width: 610px; padding: 0 0 0 30px; border-left: 1px solid var(--game-line); }
.game-intro-copy p { margin: 0 0 14px; color: var(--game-muted); font-size: 1rem; line-height: 1.75; }
.game-intro-copy p:last-child { margin-bottom: 0; }

.laser-game { overflow: hidden; border: 1px solid var(--game-line); border-radius: 4px; background: #fff; color: var(--game-ink); box-shadow: none; }
.laser-game__toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; padding: 26px 28px; border-bottom: 1px solid var(--game-line); background: #fff; }
.laser-game__toolbar > div:first-child { min-width: 0; }
.laser-game__toolbar .eyebrow { color: var(--game-muted); font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.laser-game__toolbar h2 { max-width: 34ch; margin: 10px 0 0; color: var(--game-ink); font: 550 clamp(1.25rem,2vw,1.65rem)/1.4 Manrope,sans-serif; letter-spacing: -.025em; }
.laser-game__readout { display: flex; flex: 0 0 245px; flex-direction: column; align-items: flex-end; gap: 12px; }
.laser-game__status { max-width: 290px; padding: 9px 12px; border: 0; border-left: 2px solid #718f7e; border-radius: 0; background: #edf4ee; color: #355542; font-size: .9375rem; line-height: 1.5; text-align: left; }
.laser-game__reset { min-height: 44px; padding: 10px 14px; border: 1px solid #9caea2; border-radius: 3px; background: #fff; color: var(--game-ink); font: 500 .875rem/1.4 Manrope,sans-serif; letter-spacing: 0; cursor: pointer; }
.laser-game__reset:hover, .laser-game__reset:focus-visible { background: #f0f6f2; border-color: #3b6f54; color: #244d37; }
.laser-game__reset:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.laser-game__stage { padding: 10px; background: var(--game-bench-frame); }
.laser-board { display: block; width: 100%; height: auto; border: 0; border-radius: 0; background: #fff; box-shadow: none; touch-action: pan-y pinch-zoom; user-select: none; }
.laser-board__background { fill: #fff; }
.laser-board__grid { fill: url(#breadboard-grid); stroke: #d4dfd7; stroke-width: .65; }
.laser-board #breadboard-grid circle { fill: #d1ddd4; opacity: .7; }

/* Fixed equipment: flat housings, a shared line weight and clear labels. */
.laser-curtain, .docker-container, .camera-object, .lab-food-box, .propanol-hazard, .focus-lens { pointer-events: none; }
.laser-curtain__rail { fill: none; stroke: #677a6e; stroke-width: 1.1; }
.laser-curtain__fabric { fill: #28372f; stroke: #28372f; stroke-width: .8; }
.laser-curtain__seam { fill: none; stroke: #5d6e63; stroke-width: .65; opacity: .65; }
.laser-curtain text { fill: #edf2ef; font: 400 10px var(--game-mono); letter-spacing: .035em; text-anchor: middle; }
.obstacle rect { fill: #f0f4f1; stroke: #82958a; stroke-width: 1; }
.obstacle path { fill: none; stroke: #879c90; stroke-width: 1; stroke-linecap: square; }
.obstacle circle { fill: #fff; stroke: #879c90; stroke-width: 1; }
.obstacle text { fill: #344c3f; font: 400 10.5px var(--game-mono); letter-spacing: 0; text-anchor: middle; }
.obstacle--server rect { fill: #e5ece9; stroke: #758e80; }
.obstacle--server path { stroke: #91a59b; }
.obstacle--server text { fill: #2e4739; }
.obstacle--pump rect { fill: #eff2ee; }
.obstacle--pump circle { fill: #fff; stroke: #8b9e92; }
.obstacle--storage rect { fill: #e6ede8; }
.obstacle--storage path { stroke: #8fa598; }
.obstacle--storage text { fill: #344c3f; }
.obstacle--oscillator rect { fill: #e8edea; }
.obstacle--oscillator circle { fill: #fff; stroke: #81958a; }
.obstacle--narrow text { font-size: 10px; }
.docker-container__body { fill: #f0f4f1; stroke: #82958a; stroke-width: 1; }
.docker-container__ribs { fill: none; stroke: #bccbc0; stroke-width: .8; }
.docker-container__hardware { fill: none; stroke: #8b9e91; stroke-width: .8; }
.docker-container text { fill: #3d5747; font-family: var(--game-mono); font-weight: 400; letter-spacing: .035em; text-anchor: middle; }
.docker-container__name { font-size: 11px; }
.docker-container__detail { font-size: 9px; }
.docker-container.is-blocked .docker-container__body { stroke: #3d6750; }
.laser-emitter text { fill: #e7efe9; font: 400 10px var(--game-mono); letter-spacing: .035em; text-anchor: middle; }
.laser-emitter__rail { fill: none; stroke: #84998c; stroke-width: 1; }
.laser-emitter__body { fill: #283e32; stroke: #283e32; stroke-width: 1; }
.laser-emitter__panel { fill: #203327; stroke: #67816e; stroke-width: .7; }
.laser-emitter__vents { fill: none; stroke: #839e8a; stroke-width: .8; }
.laser-emitter__indicator { fill: #b3d4b5; }
.laser-emitter__warning { fill: #dfcf92; stroke: #243a2c; stroke-width: .9; }
.laser-emitter__warning-mark { fill: none; stroke: #243a2c; stroke-width: 1.2; }
.laser-emitter__front { fill: #536e5c; stroke: #8ca092; stroke-width: .8; }
.laser-emitter__aperture { fill: #fff; stroke: #496a53; stroke-width: 1; }
.laser-emitter__pulse { fill: #279b4b; }
.camera-object__stand { fill: none; stroke: #91a197; stroke-width: 1; }
.camera-object__body, .camera-object__top { fill: #e7eeea; stroke: #7b9385; stroke-width: 1; }
.camera-object__lens { fill: #f8fbf9; stroke: #657f6e; stroke-width: 1; }
.camera-object__glass { fill: #c4d9d0; stroke: #709183; stroke-width: .8; }
.camera-object__indicator { fill: #749f7d; }
.camera-object text { fill: #344c3f; font: 400 9.5px var(--game-mono); letter-spacing: 0; text-anchor: middle; }
.lab-food-box__body { fill: #9e514e; stroke: #843e3b; stroke-width: 1; }
.lab-food-box__lid { fill: #ad615c; stroke: #843e3b; stroke-width: .8; transform-box: fill-box; transform-origin: 15% 90%; }
.lab-food-box__mark-bg { fill: none; stroke: #dca9a0; stroke-width: .65; }
.lab-food-box__mark { fill: none; stroke: #f9eae4; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.lab-food-box__brand { fill: #f8e9e5; font: 400 9px var(--game-mono); letter-spacing: 0; text-anchor: middle; }
.lab-food-box__label { fill: #fff; font: 500 11px var(--game-mono); letter-spacing: .035em; text-anchor: middle; }
.lab-cat { opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: 50% 50%; }
.propanol-hazard__bottle, .propanol-hazard__neck { fill: #d7c5a4; stroke: #968361; stroke-width: 1; }
.propanol-hazard__cap { fill: #6f7c70; stroke: #6f7c70; stroke-width: .8; }
.propanol-hazard__label { fill: #fff; stroke: #fff; stroke-width: .8; }
.propanol-hazard .propanol-hazard__name { fill: #384535; font: 500 8.5px Manrope,sans-serif; letter-spacing: 0; text-anchor: middle; }
.propanol-hazard__explosion { opacity: 0; transform-box: fill-box; transform-origin: center; }
.propanol-hazard__burst { fill: #f4d997; fill-opacity: .25; stroke: #b17a2b; stroke-width: 1.2; }
.propanol-hazard__rays { fill: none; stroke: #b17a2b; stroke-width: 1.4; }
.propanol-hazard__flash { fill: #fff5d9; stroke: #b17a2b; stroke-width: 1; }

/* Thin optical surfaces and mounts; large invisible drag targets are preserved. */
.mirror-stand path, .focus-lens__stand { fill: none; stroke: #94a69a; stroke-width: 1; }
.mirror-stand text, .focus-lens text { fill: #233f2e; font: 500 14px var(--game-mono); letter-spacing: .03em; text-anchor: middle; }
.mirror-control { cursor: grab; outline: none; opacity: 1 !important; visibility: visible !important; touch-action: none; }
.mirror-control:active { cursor: grabbing; }
.mirror-control__hit-area { stroke: transparent; stroke-width: 70; stroke-linecap: round; pointer-events: stroke; }
.mirror-control__mount { fill: none; stroke: #62786b; stroke-width: 1.2; stroke-linejoin: miter; }
.mirror-control__adjusters { fill: none; stroke: #80978a; stroke-width: 1; }
.mirror-control__back { fill: #3f594a; stroke: #3f594a; stroke-width: .8; }
.mirror-control__surface { fill: #d3e7df; stroke: #8caf9c; stroke-width: .7; }
.mirror-control__coating { fill: none; stroke: #f8fffb; stroke-width: 1; }
.mirror-control__pivot { fill: #fff; stroke: #7d9487; stroke-width: .8; }
.mirror-control__handle { fill: #dae5de; stroke: #758f7d; stroke-width: .8; }
.mirror-control__knurl { fill: none; stroke: #7d9687; stroke-width: .7; }
.mirror-control:hover .mirror-control__mount { stroke: #254f37; stroke-width: 1.6; }
.mirror-control:focus-visible .mirror-control__mount { stroke: #0a66c2; stroke-width: 2; }
.mirror-control:focus-visible .mirror-control__handle { fill: #d7e8f6; stroke: #0a66c2; }
.mirror-control.is-hit .mirror-control__coating { stroke: #fff; }
.laser-beam { fill: none; stroke: #198647; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.laser-beam--glow { stroke: #3caa68; stroke-width: 7; opacity: .14; filter: none; }
.laser-focus-cone { fill: #36a75f; opacity: .13; pointer-events: none; }
.laser-focus-edges { fill: none; stroke: #2d8d4d; stroke-width: .6; opacity: .65; pointer-events: none; }
.laser-focus-core { fill: none; stroke: #198647; stroke-width: 1; stroke-linecap: round; pointer-events: none; }
.focus-lens__mount { fill: none; stroke: #688575; stroke-width: 1; }
.focus-lens__glass { fill: #e0eee7; fill-opacity: .85; stroke: #739982; stroke-width: 1; }
.focus-lens__highlight { fill: none; stroke: #fff; stroke-width: .8; }
.focus-lens.is-hit .focus-lens__glass { stroke: #3f7955; }
.coffee-target__handle { fill: none; stroke: #6f8a78; stroke-width: 3; }
.coffee-target__cup { fill: #fff; stroke: #6f8a78; stroke-width: 1.1; }
.coffee-target__coffee { fill: #746253; stroke: #746253; stroke-width: .8; }
.coffee-target text { fill: #455e4d; font: 400 11px var(--game-mono); letter-spacing: .05em; text-anchor: middle; }
.coffee-target__steam { opacity: 0; }
.coffee-target__steam path { fill: none; stroke: #6f8a78; stroke-width: 1.2; stroke-linecap: round; }

/* One aligned precision-control strip on desktop, generous rows on a phone. */
.laser-game__controls { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; padding: 22px 28px 20px; border-top: 1px solid var(--game-line); background: #fff; }
.laser-game__controls p { max-width: 86ch; margin: 0; color: var(--game-muted); font-size: .9375rem; line-height: 1.65; }
.mirror-sliders { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; }
.mirror-sliders label { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; min-width: 0; padding: 8px 18px; border-left: 1px solid #dbe4de; color: var(--game-ink); font: 500 .9375rem var(--game-mono); }
.mirror-sliders label:first-child { padding-left: 0; border-left: 0; }
.mirror-sliders label:last-child { padding-right: 0; }
.mirror-sliders label:focus-within { background: #f0f6f2; }
.mirror-sliders output { color: var(--game-muted); text-align: right; font: 400 .875rem var(--game-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mirror-sliders input { appearance: none; -webkit-appearance: none; grid-column: 1/-1; width: 100%; min-width: 0; height: 38px; margin: 0; background: transparent; cursor: pointer; }
.mirror-sliders input::-webkit-slider-runnable-track { height: 2px; background: #afc1b4; border-radius: 0; }
.mirror-sliders input::-moz-range-track { height: 2px; background: #afc1b4; border-radius: 0; }
.mirror-sliders input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; margin-top: -9px; border: 1px solid #4e745c; border-radius: 2px; background: #fff; }
.mirror-sliders input::-moz-range-thumb { width: 10px; height: 18px; border: 1px solid #4e745c; border-radius: 2px; background: #fff; }
.mirror-sliders input:focus-visible { outline: 2px solid #0a66c2; outline-offset: 2px; border-radius: 2px; }

/* Event messages retain their colour cue without overwhelming the board. */
.laser-game__unfocused { --notice-bg: #f0f3f7; --notice-ink: #34465b; --notice-accent: #8296ac; }
.laser-game__food-hit { --notice-bg: #faf0ed; --notice-ink: #653d35; --notice-accent: #b86c5d; }
.laser-game__warning { --notice-bg: #fcf3df; --notice-ink: #645027; --notice-accent: #b79952; }
.laser-game__success { --notice-bg: #edf5e4; --notice-ink: #354f2f; --notice-accent: #729557; }
.laser-game__server-hit { --notice-bg: #edf3f4; --notice-ink: #344e54; --notice-accent: #79999f; }
.laser-game__unfocused, .laser-game__food-hit, .laser-game__warning, .laser-game__success, .laser-game__server-hit { display: none; gap: 24px; align-items: center; padding: 26px 28px; border: 0; border-top: 1px solid var(--game-line); border-left: 2px solid var(--notice-accent); background: var(--notice-bg); text-align: left; scroll-margin-top: 104px; }
.laser-game__unfocused strong, .laser-game__food-hit strong, .laser-game__warning strong, .laser-game__success strong, .laser-game__server-hit strong { display: block; color: var(--notice-ink); font: 550 clamp(1.1rem,1.8vw,1.35rem)/1.45 Manrope,sans-serif; }
.laser-game__unfocused p, .laser-game__food-hit p, .laser-game__warning p, .laser-game__success p, .laser-game__server-hit p { margin: 8px 0 0; color: var(--notice-ink); font-size: 1rem; line-height: 1.7; }
.laser-game__unfocused .eyebrow, .laser-game__food-hit .eyebrow, .laser-game__warning .eyebrow, .laser-game__success .eyebrow, .laser-game__server-hit .eyebrow { display: block; margin-bottom: 8px; color: var(--notice-ink); font-size: .75rem; letter-spacing: .1em; }
.laser-game__success, .laser-game__server-hit { grid-template-columns: 88px minmax(0,1fr); }
.laser-game__congrats-photo, .laser-game__server-hit .laser-game__congrats-photo { display: block; width: 88px; height: 88px; max-width: 100%; object-fit: cover; border: 1px solid #cbd8d0; border-radius: 5px; }
.laser-game__congrats-copy, .laser-game__server-hit > div { min-width: 0; }
.laser-game__success p { padding-top: 10px; border-top: 1px solid #d0dec6; }
.laser-game__food-hit { grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); align-items: start; gap: 30px; }
.lab-food-message__content { min-width: 0; }
.lab-food-message__heading { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 20px; align-items: start; }
.lab-food-message__badge { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #8d4f46; border-radius: 2px; background: #9e514e; color: #fff; font: 500 10px/1.4 var(--game-mono); letter-spacing: .04em; text-align: center; transform: none; box-shadow: none; }
.lab-food-science { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e1c9c2; }
.lab-food-science h3 { margin: 0 0 8px; color: var(--notice-ink); font: 600 1rem/1.4 Manrope,sans-serif; letter-spacing: 0; }
.lab-food-science a { display: inline-block; margin-top: 13px; color: var(--notice-ink); font-size: .875rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.lab-food-science a:hover, .lab-food-science a:focus-visible { color: var(--brand-blue); }
.lab-food-science__figure { min-width: 0; margin: 0; }
.lab-food-science__figure > a { display: block; padding: 14px; background: #fff; border: 1px solid #e1c9c2; border-radius: 2px; }
.lab-food-science__figure > a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.lab-food-science__figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.lab-food-science__figure figcaption { margin-top: 10px; color: var(--notice-ink); font-size: .875rem; line-height: 1.6; }
.laser-game__warning { grid-template-columns: 52px minmax(0,1fr); }
.laser-warning-sign { display: block; width: 52px; height: auto; filter: none; }
.laser-warning-sign__triangle { fill: #e5ce8a; stroke: #55472b; stroke-width: 1.5; stroke-linejoin: round; }
.laser-warning-sign__mark { fill: none; stroke: #55472b; stroke-width: 1.5; stroke-linecap: round; }
.laser-warning-sign__mark circle { fill: #55472b; stroke: none; }
.laser-game.is-unfocused .laser-game__unfocused { display: block; }
.laser-game.is-food-hit .laser-game__food-hit, .laser-game.is-server-hit .laser-game__server-hit, .laser-game.is-exploded .laser-game__warning, .laser-game.is-won .laser-game__success { display: grid; }
.laser-game.is-unfocused .laser-game__status { background: #f0f3f7; color: #34465b; border-color: #8296ac; }
.laser-game.is-food-hit .laser-game__status { background: #faf0ed; color: #653d35; border-color: #b86c5d; }
.laser-game.is-exploded .laser-game__status { background: #fcf3df; color: #645027; border-color: #b79952; }
.laser-game.is-won .laser-game__status { background: #edf5e4; color: #354f2f; border-color: #729557; }
.laser-game.is-server-hit .laser-game__status { background: #edf3f4; color: #344e54; border-color: #79999f; }
.laser-game.is-exploded .propanol-hazard__bottle, .laser-game.is-exploded .propanol-hazard__neck, .laser-game.is-exploded .propanol-hazard__cap, .laser-game.is-exploded .propanol-hazard__label, .laser-game.is-exploded .propanol-hazard text { opacity: .25; }
.laser-game.is-exploded .propanol-hazard__explosion { opacity: 1; animation: propanol-pop .6s ease-out; }
.laser-game.is-won .coffee-target__cup { filter: none; }
.laser-game.is-won .coffee-target__coffee { fill: #746253; }
.laser-game.is-won .coffee-target__steam { opacity: 1; }
.laser-game.is-won .coffee-target__steam path { animation: coffee-steam 2.2s ease-in-out infinite; }
.laser-game.is-won .coffee-target__steam path:nth-child(2) { animation-delay: .5s; }
.laser-game.is-won .coffee-target__steam path:nth-child(3) { animation-delay: 1s; }
@keyframes coffee-steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .75; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes propanol-pop { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 800px) {
  .laser-game-page { padding: 28px 0 64px; }
  .game-intro { grid-template-columns: 1fr; gap: 24px; margin: 24px 0 30px; padding-bottom: 28px; }
  .game-intro h1 { font-size: clamp(2.5rem,8vw,3.5rem); }
  .game-intro-copy { max-width: none; padding: 0; border: 0; }
  .laser-game__toolbar { flex-direction: column; gap: 20px; padding: 22px; }
  .laser-game__toolbar h2 { max-width: 38ch; }
  .laser-game__readout { flex: 0 1 auto; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .laser-game__status { max-width: 60%; }
  .laser-game__stage { padding: 6px; }
  .laser-game__controls { padding: 20px 22px; }
  .mirror-sliders label { padding: 8px 10px; gap: 6px; }
  .mirror-sliders output { font-size: .8125rem; }
  .laser-game__food-hit { grid-template-columns: 1fr; gap: 24px; }
  .lab-food-science__figure { width: 100%; max-width: 520px; }
}
@media (max-width: 600px) {
  .game-intro h1 { font-size: clamp(2.25rem,9vw,3rem); }
  .laser-game__toolbar { padding: 20px; }
  .laser-game__readout { flex-direction: column; align-items: flex-start; margin-top: 0; gap: 14px; }
  .laser-game__status { max-width: none; }
  .laser-game__stage { padding: 3px; }
  .laser-game__controls { gap: 16px; padding: 20px; }
  .mirror-sliders { grid-template-columns: 1fr; gap: 0; }
  .mirror-sliders label { grid-template-columns: 30px minmax(0,1fr) 54px; gap: 12px; padding: 5px 0; border-left: 0; border-bottom: 1px solid #e0e8e2; }
  .mirror-sliders label:last-child { border-bottom: 0; }
  .mirror-sliders label > span { grid-column: 1; grid-row: 1; }
  .mirror-sliders output { grid-column: 3; grid-row: 1; font-size: .875rem; }
  .mirror-sliders input { grid-column: 2; grid-row: 1; height: 44px; }
  .laser-game__unfocused, .laser-game__food-hit, .laser-game__warning, .laser-game__success, .laser-game__server-hit { padding: 22px 20px; gap: 18px; }
  .laser-game__success, .laser-game__server-hit { grid-template-columns: 60px minmax(0,1fr); align-items: start; }
  .laser-game__congrats-photo, .laser-game__server-hit .laser-game__congrats-photo { width: 60px; height: 60px; }
  .lab-food-message__heading { grid-template-columns: 44px minmax(0,1fr); gap: 14px; }
  .lab-food-message__badge { width: 44px; height: 44px; font-size: 9px; }
  .laser-game__warning { grid-template-columns: 44px minmax(0,1fr); gap: 14px; }
  .laser-warning-sign { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .laser-game.is-won .coffee-target__steam path, .laser-game.is-exploded .propanol-hazard__explosion { animation: none; }
  .laser-game.is-won .coffee-target__steam { opacity: .75; }
  .laser-game.is-food-hit .lab-cat { opacity: 1; transform: translate(-150px,10px) rotate(-15deg); }
}
