/* scenes/factoryline.css -- the factory scene: its sky, the floating labels, the sheet, the button. */
.gscene-factoryline .gscene-stage { height: clamp(380px, 62vh, 600px); background: radial-gradient(ellipse 90% 70% at 50% 25%, #3b6aa8, #1d3a66 60%, #0f1e3a); }
.fl-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fl-tag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; padding: 4px 10px; border: 0; border-radius: 99px;
  font: 800 0.8rem/1.3 var(--display); color: var(--ink); background: rgba(10, 15, 28, 0.72); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); white-space: nowrap; transition: opacity 0.4s; }
.fl-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--torch); }
.fl-ore::before, .fl-coal::before { background: var(--grass); }
.fl-iron::before { background: var(--sky); }
.fl-tag:focus-visible { outline: 2px solid var(--gold); }
.is-away .fl-tag:not(.fl-iron) { opacity: 0.35 !important; }
.fl-sheet { position: absolute; left: 16px; bottom: 64px; max-width: min(340px, calc(100% - 32px)); padding: 12px 14px; border-radius: 14px;
  background: rgba(10, 15, 28, 0.86); border: 1px solid var(--line); color: var(--ink); font: 600 0.88rem/1.45 var(--text);
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.fl-sheet.on { opacity: 1; transform: none; }
.fl-sheet b { display: block; font: 800 0.95rem/1.3 var(--display); color: var(--torch); margin-bottom: 4px; }
.fl-note { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -6px); margin: 0; padding: 6px 14px; border-radius: 99px; max-width: calc(100% - 32px);
  text-align: center; font: 800 0.86rem/1.35 var(--display); color: #0a0f1c; background: var(--gold); opacity: 0; transition: opacity 0.4s, transform 0.4s; }
.is-away .fl-note { opacity: 1; transform: translate(-50%, 0); }
.fl-away { position: absolute; right: 16px; bottom: 16px; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .fl-sheet, .fl-note, .fl-tag { transition: none; } }
