/* Static Sweeper (site 1.71.0) */
.sw-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.45rem .6rem;margin-bottom:.6rem}
.sw-top .tc-lcd{font-size:1.25rem}
.sw-face{width:44px;height:44px;padding:4px;border-radius:10px;border:1px solid var(--tf-accent,#3fd0ff);background:rgba(63,208,255,.1);cursor:pointer;line-height:0}
.sw-face svg{width:100%;height:100%}
.sw-face:active{transform:scale(.94)}
.sw-wrap{padding:6px;overflow:auto;max-width:100%}
.sw-board{--cs:30px;display:grid;grid-template-columns:repeat(var(--cols),var(--cs));grid-auto-rows:var(--cs);gap:2px;width:max-content;margin:0 auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.sw-c{position:relative;width:var(--cs);height:var(--cs);padding:0;border:0;border-radius:4px;cursor:pointer;font:700 calc(var(--cs)*.56)/1 'Orbitron',system-ui,sans-serif;
  background:linear-gradient(160deg,#25406a,#162a48);box-shadow:inset 0 0 0 1px rgba(63,208,255,.35),inset 0 2px 0 rgba(255,255,255,.12);color:#fff;-webkit-tap-highlight-color:transparent}
.sw-c:hover{background:linear-gradient(160deg,#2d4f82,#1b3358)}
.sw-c:focus-visible{outline:2px solid var(--tf-hot,#ff3d9a);outline-offset:1px;z-index:1}
.sw-c.o{background:#0a1220;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);cursor:default;animation:sw-open .28s ease-out both;animation-delay:calc(var(--d,0)*18ms)}
.sw-c.n1{color:#7cc4ff}.sw-c.n2{color:#5ee08f}.sw-c.n3{color:#ff8a8a}.sw-c.n4{color:#d3a6ff}
.sw-c.n5{color:#ffc163}.sw-c.n6{color:#5ce6f5}.sw-c.n7{color:#f2f2f2}.sw-c.n8{color:#c2c8d2}
.sw-c.f::after,.sw-c.q::after,.sw-c.m::after,.sw-c.x::after{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:system-ui,sans-serif;font-size:calc(var(--cs)*.58)}
.sw-c.f::after{content:'🚩'}
.sw-c.q::after{content:'?';color:#ffd36b;font-family:'Orbitron',system-ui,sans-serif}
.sw-c.m{background:#2a0f1c;animation:sw-boom .45s ease-out both;animation-delay:calc(var(--d,0)*45ms)}
.sw-c.m::after{content:'';inset:18%;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,#ff4fd8 13% 34%,transparent 35%),
  repeating-conic-gradient(#ffe066 0 10deg,transparent 10deg 30deg);filter:drop-shadow(0 0 4px #ff4fd8)}
.sw-c.boom{background:#d1144f}
.sw-c.x{background:#0a1220}
.sw-c.x::after{content:'🚩';opacity:.55}
.sw-c.x::before{content:'';position:absolute;inset:20%;z-index:1;background:linear-gradient(45deg,transparent 45%,#ff4747 45% 55%,transparent 55%),linear-gradient(-45deg,transparent 45%,#ff4747 45% 55%,transparent 55%)}
.sw-c.hint{animation:sw-hint 1.2s ease-out 2}
.sw-keys{margin:.5rem 0 0;text-align:center;font-size:.76rem;color:var(--muted,#9FB0C6)}
@media (pointer:coarse){.sw-keys{display:none}}
@keyframes sw-open{from{transform:scale(.6);opacity:.2}to{transform:none;opacity:1}}
@keyframes sw-boom{0%{transform:scale(.3)}60%{transform:scale(1.25)}100%{transform:none}}
@keyframes sw-hint{0%,100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}50%{box-shadow:0 0 0 3px #ffe066,0 0 14px #ffe066}}
@media (prefers-reduced-motion:reduce){.sw-c.o,.sw-c.m,.sw-c.hint{animation:none}}
/* classic look: the 1990s grey board */
body.tc-on .sw-face{border-radius:0;border:0;background:#c0c0c0;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf}
body.tc-on .sw-board{gap:0}
body.tc-on .sw-c{border-radius:0;background:#c0c0c0;color:#000;box-shadow:inset -2px -2px #808080,inset 2px 2px #fff;font-family:Tahoma,Verdana,sans-serif;font-weight:700}
body.tc-on .sw-c:hover{background:#c8c8c8}
body.tc-on .sw-c.o,body.tc-on .sw-c.x{background:#bdbdbd;box-shadow:inset 1px 1px #808080}
body.tc-on .sw-c.n1{color:#0000c8}body.tc-on .sw-c.n2{color:#005a00}body.tc-on .sw-c.n3{color:#a00000}body.tc-on .sw-c.n4{color:#000080}
body.tc-on .sw-c.n5{color:#700000}body.tc-on .sw-c.n6{color:#005050}body.tc-on .sw-c.n7{color:#000}body.tc-on .sw-c.n8{color:#3a3a3a}
body.tc-on .sw-c.m{background:#bdbdbd}
body.tc-on .sw-c.m::after{background:radial-gradient(circle,#fff 0 10%,#000 11% 40%,transparent 41%),repeating-conic-gradient(#000 0 12deg,transparent 12deg 30deg);filter:none}
body.tc-on .sw-c.boom{background:#f00}
body.tc-on .sw-c.q::after{color:#000}
body.tc-on .sw-keys{color:#fff}
