/* v1.44: spacious simulator toolbar above the machine, with native SVG icons. */
.topbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px 18px;margin-bottom:14px;border:1px solid #344354;border-radius:18px;background:linear-gradient(130deg,#17212ecc,#0c131dcc);box-shadow:0 10px 30px #0003;color:#fff;flex:none}
.sim-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sim-brand{display:flex;align-items:baseline;gap:13px;flex-wrap:wrap}
.sim-brand strong{font-size:19px;letter-spacing:.025em}
.sim-brand>span{font-size:11px;font-weight:700;letter-spacing:.1em;color:#aabed0}
.sim-status{font-size:14px;line-height:1.2;color:#d9e9f4;padding:7px 12px;border:1px solid #425665;border-radius:99px;background:#0a131d}
.sim-status:before{content:'';display:inline-block;vertical-align:middle;width:7px;height:7px;background:#73d4ec;border-radius:50%;margin-right:8px;box-shadow:0 0 8px #73d4ec44}
.topbar .sim-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:stretch}
.topbar .sim-controls:has(#returnFromDrawButton:not(.hidden)){grid-template-columns:repeat(7,minmax(0,1fr))}
.topbar .sim-button{--sim-accent:#c6d8e7;display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0;min-height:82px;padding:14px 13px;border:1px solid #415064;border-radius:12px;background:linear-gradient(145deg,#1c2939,#111b28);color:#fff;text-align:left;box-shadow:inset 0 1px #ffffff0a,0 3px 8px #0002;transition:border-color .15s,background .15s,transform .15s;touch-action:manipulation}
.topbar .sim-button:not(:disabled):hover{border-color:var(--sim-accent);background:linear-gradient(145deg,#29394d,#192638);transform:translateY(-2px)}
.topbar .sim-button:not(:disabled):active{transform:translateY(0);box-shadow:inset 0 2px 8px #0005}
.topbar .sim-button:disabled{opacity:.42;cursor:default}
.sim-icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;color:var(--sim-accent);background:#070c1466;border:1px solid #ffffff0d}
.sim-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sim-button-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.sim-button-copy strong{font-size:clamp(14px,1vw,18px);line-height:1.15;font-weight:750;color:#fff}
.sim-button-copy small{font-size:clamp(10px,.7vw,12px);line-height:1.25;color:#b8c8d8}
.topbar .sim-card{--sim-accent:#80e8b6}
.topbar .sim-play,.topbar .sim-return{--sim-accent:#89dffb}
.topbar .sim-draw{--sim-accent:#ffdc83;border-color:#b69850;background:linear-gradient(145deg,#3a3020,#211f1b)}
.topbar .sim-draw .sim-button-copy strong{color:#ffe6a4}
.topbar .sim-win{--sim-accent:#e5b4ff;border-color:#806297;background:linear-gradient(145deg,#30243e,#1d1b29)}
.topbar .sim-out{--sim-accent:#ffb1a4}
@media(max-width:1450px){.topbar .sim-button{gap:8px;padding:12px 10px}.sim-icon{width:32px;height:36px}.sim-icon svg{width:22px;height:22px}.sim-button-copy strong{font-size:14px}.sim-button-copy small{font-size:10px}}
@media(max-width:1100px){.topbar{padding:12px;margin-bottom:10px;gap:10px}.topbar .sim-controls,.topbar .sim-controls:has(#returnFromDrawButton:not(.hidden)){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.topbar .sim-button{min-height:70px;padding:10px 12px}.sim-brand strong{font-size:17px}.sim-brand>span{font-size:10px}.sim-status{font-size:12px}}
@media(prefers-reduced-motion:reduce){.topbar .sim-button{transition:none}.topbar .sim-button:not(:disabled):hover{transform:none}}
