/* Gas Station Simulator: HUD, pump + till panels, side panels (shared 3D styles: sim3d.css) */
#game-root .sim-controls-help { margin-top: 14px; }
.gs-reset { margin-top: 10px; border: 1px dashed rgba(255, 255, 255, .3); background: transparent; color: inherit; border-radius: 10px; padding: 8px 12px; font: 700 13px system-ui, sans-serif; cursor: pointer; }
.gs-hud { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 64%; pointer-events: none; }
.gs-hud > div { background: rgba(8, 16, 28, .74); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 5px 10px; font: 800 15px system-ui, sans-serif; color: #fff; white-space: nowrap; }
.gs-tillbtn { display: none; pointer-events: auto; cursor: pointer; }
.gs-tillbtn.is-on { display: block; background: rgba(147, 51, 234, .9) !important; animation: gs-pulse 1s ease-in-out infinite alternate; }
@keyframes gs-pulse { to { transform: scale(1.06); } }

.gs-bubble { position: absolute; left: 0; top: 0; pointer-events: none; background: rgba(255, 255, 255, .94); color: #111827; border-radius: 10px; padding: 4px 8px 6px; font: 800 12px/1.25 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); will-change: transform; }
.gs-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: rgba(255, 255, 255, .94); }
.gs-bubble i { display: block; height: 4px; margin-top: 3px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.gs-bubble u { display: block; height: 100%; background: #22c55e; }
.gs-bubble.is-cross u { background: #ef4444; }
.gs-bubble.is-cross { animation: gs-shake .4s linear infinite; }
.gs-bubble.is-sel { outline: 3px solid #facc15; }
@keyframes gs-shake { 25% { margin-left: -2px; } 75% { margin-left: 2px; } }

.gs-panel { position: absolute; z-index: 3; right: 10px; top: 10px; transform: translateY(-12px); width: min(330px, calc(100% - 20px)); background: rgba(8, 16, 28, .9); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 12px; color: #fff; font: 600 13px/1.4 system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.gs-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gs-ask { font-style: italic; margin-bottom: 6px; font-size: 12px; }
.gs-ask small { opacity: .75; font-style: normal; }
.gs-ask2 { font-weight: 800; margin: 6px 0 4px; }
.gs-fuels, .gs-acts, .gs-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-panel button { border: 2px solid rgba(255, 255, 255, .22); background: rgba(30, 58, 95, .92); color: #fff; border-radius: 10px; padding: 5px 9px; font: 800 13px system-ui, sans-serif; cursor: pointer; min-height: 36px; touch-action: none; user-select: none; -webkit-user-select: none; }
.gs-panel button:hover:not(:disabled) { background: rgba(37, 99, 235, .95); }
.gs-panel button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.gs-panel button:disabled { opacity: .45; cursor: not-allowed; }
.gs-fuels button { border-color: var(--c); }
.gs-fuels button.is-on { background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.gs-meter { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.gs-lcd { flex: 0 0 auto; display: flex; flex-direction: column; background: #052e16; border: 2px solid #14532d; border-radius: 8px; padding: 3px 8px; font: 800 20px/1.1 ui-monospace, "Courier New", monospace; color: #4ade80; min-width: 118px; text-align: right; }
.gs-lcd-l { font-size: 14px; color: #86efac; }
.gs-lcd-m.is-over { color: #fca5a5; }
.gs-gauge { position: relative; flex: 1; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.gs-gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #f59e0b, #22c55e); }
.gs-gauge b { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: #facc15; box-shadow: 0 0 6px #facc15; }
.gs-gauge::before { content: "Tank"; position: absolute; left: 6px; top: -17px; font-size: 11px; opacity: .7; }
.gs-hold { flex: 1 1 100%; background: rgba(22, 163, 74, .92) !important; font-size: 16px !important; min-height: 46px !important; }
.gs-hold:active:not(:disabled) { background: #15803d !important; transform: scale(.98); }
.gs-done { background: rgba(71, 85, 105, .95) !important; }
.gs-till { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.gs-bill { color: #86efac; }
.gs-opts button { flex: 1; font-size: 17px; min-height: 44px; }

.gs-float { position: absolute; transform: translate(-50%, -50%); font: 900 17px system-ui, sans-serif; color: #fde047; text-shadow: 0 2px 4px #000; animation: gs-up 1.6s ease-out forwards; pointer-events: none; white-space: nowrap; }
.gs-float.is-gold { color: #fff; font-size: 20px; text-shadow: 0 0 8px #f59e0b, 0 2px 4px #000; }
@keyframes gs-up { to { transform: translate(-50%, -170%); opacity: 0; } }

.gs-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.gs-box { background: var(--color-bg-alt, #1c1f27); border: 1px solid var(--color-border, #2d3240); border-radius: 12px; padding: 8px; }
.gs-box h4 { margin: 0 0 6px; font-size: 14px; }
.gs-bays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.gs-bay { padding: 6px 2px; border-radius: 9px; border: 2px solid transparent; font: 900 16px system-ui, sans-serif; cursor: pointer; color: #fff; background: #334155; }
.gs-bay small { display: block; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-bay.is-car { background: #b45309; } .gs-bay.is-shop { background: #7e22ce; } .gs-bay.is-coming { background: #475569; } .gs-bay.is-free { background: #15803d; }
.gs-bay.is-locked { background: #2b2f38; color: #777; cursor: not-allowed; }
.gs-bay.is-me { border-color: #facc15; }
.gs-tank { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 2px 6px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.gs-tank span { font-weight: 800; }
.gs-tank i { grid-column: 1 / 3; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gs-tank u { display: block; height: 100%; }
.gs-tank b { grid-column: 2; grid-row: 1; justify-self: end; font-size: 11px; opacity: .85; }
.gs-tank button { grid-column: 3; grid-row: 1 / 3; }
.gs-tank.is-low span { color: #fb7185; }
.gs-side button:not(.gs-bay) { border: 1px solid rgba(255, 255, 255, .16); background: rgba(34, 197, 94, .16); color: inherit; border-radius: 9px; padding: 5px 8px; font: 700 12px system-ui, sans-serif; cursor: pointer; }
.gs-ups { display: flex; flex-direction: column; gap: 5px; }
.gs-ups button { display: flex; justify-content: space-between; gap: 8px; text-align: left; font-size: 13px !important; }
.gs-ups button.is-dim { opacity: .5; background: rgba(255, 255, 255, .05) !important; }
.gs-tillgo { width: 100%; background: rgba(147, 51, 234, .25) !important; font-size: 13px !important; padding: 7px !important; }
.gs-note { margin: 2px 0 0; font-size: 12px; opacity: .8; }
.gs-goal { font-size: 12px; opacity: .75; padding: 2px 0; } .gs-goal.is-done { opacity: 1; color: #facc15; }
.gs-side button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.gs-report { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 14px; }
.gs-report td { padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; }
.gs-report td + td { text-align: right; font-weight: 800; }

@container (max-width: 560px) {
  .gs-hud { max-width: 100%; right: 8px; }
  .gs-hud > div { font-size: 13px; padding: 4px 8px; }
  .gs-panel { top: auto; bottom: 6px; right: 8px; width: calc(100% - 16px); padding: 7px 8px; }
  .gs-ask { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
  .gs-hold { flex: 1 1 auto; min-height: 42px !important; }
  .gs-fuels { flex-wrap: nowrap; gap: 4px; }
  .gs-fuels button { flex: 1 1 0; padding: 4px 2px; font-size: 12px; min-width: 0; }
  .gs-meter { margin: 4px 0; }
  .gs-panel button { padding: 6px 8px; font-size: 13px; }
  .gs-lcd { min-width: 120px; font-size: 18px; }
  .gs-bubble { font-size: 11px; padding: 3px 6px 5px; }
}
@media (prefers-reduced-motion: reduce) { .gs-bubble.is-cross, .gs-tillbtn.is-on { animation: none; } .gs-float { animation-duration: .01s; } }
