.sv-root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 20% 0,#33615d,#1a3541 55%,#0a1b29);color:#e9ffed;padding:18px clamp(8px,2vw,25px) 35px;max-width:1400px;margin:auto}.sv-root *{box-sizing:border-box}.sv-root h1{font-size:clamp(26px,3.5vw,45px);line-height:1.15;color:#fff5b6;text-shadow:0 4px #1b3942;margin:4px 0}.sv-root h2{color:#e3f9bc}.sv-root p,.sv-root li{font-size:16px;line-height:1.55;color:#d7eee3}.sv-root a{color:#d4ffaa}.sv-kicker{font-size:13px;color:#b6f5d6;font-weight:900;letter-spacing:.08em}.sv-lead{margin:7px 0 12px}.sv-game{max-width:1220px;margin:10px auto 24px;padding:12px;background:linear-gradient(145deg,#355f62,#1b3546);border:3px solid #a4d7b0;border-bottom:8px solid #143343;border-radius:23px;box-shadow:0 13px #0c2634,0 24px 45px #071a2999;display:flex;flex-direction:column;gap:9px}.sv-hud{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.sv-hud span{background:linear-gradient(#43777c,#264b60);border:1px solid #afd8c5;border-bottom:4px solid #152d3c;border-radius:12px;padding:8px 12px;font-size:16px;font-weight:900}.sv-hud b{color:#fff1a0}.sv-status{margin-left:auto;font-weight:800;color:#fff1ad}.sv-actions{display:flex;flex-wrap:wrap;gap:8px}.sv-btn{font:900 15px system-ui;min-height:45px;padding:10px 14px;cursor:pointer;touch-action:manipulation;border-radius:13px;border:2px solid #9bc8c7;border-bottom:5px solid #203d50;color:#f4fff7;background:linear-gradient(#447480,#2e5268);text-align:center}.sv-btn#sv-music{background:linear-gradient(#7772aa,#4e497e);border-color:#bfb9ee;border-bottom-color:#312d5a}.sv-btn.primary{color:#203d37;background:linear-gradient(#f1f39a,#8dd996);border-color:#f6ffd5;border-bottom-color:#689a69;font-size:17px}.sv-btn:disabled{opacity:.55;cursor:default}.sv-btn:focus-visible,.sv-card:focus-visible{outline:3px solid #fff48d;outline-offset:2px}.sv-btn:active,.sv-card:active{transform:translateY(2px)}.sv-board{width:100%;max-width:1100px;margin:0 auto;aspect-ratio:990/590;position:relative;overflow:hidden;background:#8cc9a0;border:4px solid #dbf0b4;border-bottom:9px solid #4a796d;border-radius:17px;box-shadow:0 9px 0 #153b3e,0 13px 22px #06192b80}.sv-board canvas{display:block;width:100%;height:100%;touch-action:manipulation;cursor:crosshair}.sv-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:4px 0}.sv-card{min-height:87px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 3px;border-radius:14px;border:2px solid #8fafaf;border-bottom:6px solid #1b3c4c;background:linear-gradient(#44717c,#244357);color:white;cursor:pointer;touch-action:manipulation}.sv-card .sv-icon{font-size:27px;line-height:1.1}.sv-card b{font-size:15px}.sv-card small{font-size:14px;color:#ffeca9;font-weight:900}.sv-card.picked{border-color:#fff28d;box-shadow:0 0 0 3px #fff4a46b;background:linear-gradient(#72a17b,#3a6c6d)}.sv-card.cant{filter:saturate(.68)}.sv-toast{position:absolute;top:12%;left:50%;transform:translateX(-50%);background:#fff0b4;border:3px solid #fff9d7;box-shadow:0 5px 0 #578773;color:#26423a;padding:9px 14px;border-radius:14px;font-weight:900;text-align:center;pointer-events:none;opacity:0;z-index:5;max-width:90%;transition:opacity .15s}.sv-toast.show{opacity:1}.sv-modal[hidden]{display:none!important}.sv-modal{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) 12px max(14px,env(safe-area-inset-bottom));background:#103a32eb;overflow-y:auto;overscroll-behavior:contain}.sv-dialog{max-height:calc(100dvh - 36px);overflow-y:auto;color:#e9ffed;font-family:system-ui}.sv-dialog h2{color:#fff5ae}.sv-dialog p{color:#e1f5e7;font-size:15px;line-height:1.4}.sv-modal[hidden]{display:none}.sv-dialog{max-width:470px;padding:20px;background:linear-gradient(#426b64,#234858);border:4px solid #e9efaf;border-bottom:8px solid #608f68;border-radius:22px;text-align:center;box-shadow:0 17px 35px #0007}.sv-dialog h2{font-size:clamp(25px,3vw,38px);margin:0;color:#fff5ae}.sv-dialog p{margin:9px 0}.sv-choose{display:flex;align-items:center;justify-content:center;gap:9px;margin:12px 0}.sv-guide{max-width:1050px;margin:25px auto}.sv-guide li{margin:8px 0}.sv-game:fullscreen{width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0;padding:7px;overflow:auto;display:flex;flex-direction:column;gap:6px}.sv-game:fullscreen .sv-board{flex:1 1 auto;min-height:0;max-height:calc(100dvh - 235px);width:min(100%,calc(100dvh * 1.6));max-width:none}.sv-game:fullscreen .sv-hud,.sv-game:fullscreen .sv-actions,.sv-game:fullscreen .sv-cards{flex-shrink:0}

/* v2: keep the canvas in its native landscape ratio outside fullscreen, even in themes
   with globally styled canvas/block containers. */
.sv-root .sv-game:not(:fullscreen) .sv-board{
  box-sizing:border-box!important;display:block!important;
  width:100%!important;height:auto!important;
  aspect-ratio:990 / 590!important;
  min-height:0!important;max-height:none!important;
  flex:0 0 auto!important;overflow:hidden!important;
}
.sv-root .sv-game:not(:fullscreen) .sv-board canvas{
  display:block!important;width:100%!important;height:auto!important;
  aspect-ratio:990 / 590!important;max-height:none!important;
  object-fit:contain!important;
}
.sv-root .sv-game:fullscreen .sv-board{
  flex:0 0 auto!important;width:min(100%,1100px)!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:990 / 590!important;
}
.sv-root .sv-game:fullscreen .sv-board canvas{
  width:100%!important;height:auto!important;aspect-ratio:990 / 590!important;
  object-fit:contain!important;
}
.sv-root #sv-collect{
  border-color:#ffe99d;
  border-bottom-color:#a97624;
  color:#3c3824;
  background:linear-gradient(#ffe595,#f5b95f);
}
.sv-root #sv-collect:disabled{opacity:.6}
@media(max-width:720px){
  .sv-root .sv-game:not(:fullscreen) .sv-board{order:1!important}
  .sv-root .sv-game:not(:fullscreen) .sv-actions{order:2!important}
  .sv-root .sv-game:not(:fullscreen) .sv-hud{order:3!important}
  .sv-root .sv-game:not(:fullscreen) .sv-cards{order:4!important}
}
@media(orientation:landscape) and (max-height:650px){
  .sv-root .sv-game:fullscreen .sv-board{
    width:100%!important;height:100%!important;
    min-height:0!important;max-height:none!important;
    aspect-ratio:auto!important;flex:none!important;
  }
  .sv-root .sv-game:fullscreen .sv-board canvas{
    width:100%!important;height:100%!important;
    aspect-ratio:auto!important;object-fit:contain!important;
  }
  .sv-root .sv-game:fullscreen .sv-actions #sv-collect{
    font-size:11px!important;min-height:30px!important;height:32px!important;
  }
}

@media(max-width:720px){.sv-root{padding:8px 4px 25px}.sv-root h1{font-size:25px}.sv-lead{display:none}.sv-game{padding:6px;border-radius:15px;gap:7px}.sv-board{border-width:3px;border-bottom-width:6px;border-radius:11px}.sv-hud{justify-content:space-between;gap:3px}.sv-hud span{flex:1;text-align:center;padding:5px 2px;font-size:12px;border-bottom-width:2px}.sv-hud b{font-size:13px}.sv-status{display:none}.sv-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.sv-actions .sv-btn{font-size:12px;min-height:42px;padding:7px 2px;border-bottom-width:3px}.sv-actions #sv-start{grid-column:1/-1;font-size:16px;min-height:48px}.sv-cards{gap:4px}.sv-card{min-height:76px;padding:4px 2px;border-radius:10px;border-bottom-width:4px}.sv-card .sv-icon{font-size:21px}.sv-card b{font-size:11px;line-height:1.1}.sv-card small{font-size:11px}.sv-dialog{padding:12px}.sv-dialog p{font-size:13px}}
/* Larger, swipeable defenders on a narrow phone: readable labels, no tiny five-column cards. */
@media(max-width:720px) and (orientation:portrait){
 .sv-root .sv-cards{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(112px,33%);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:7px;padding:4px 5px 10px;-webkit-overflow-scrolling:touch}
 .sv-root .sv-card{min-height:91px;scroll-snap-align:start;padding:7px 4px}
 .sv-root .sv-card .sv-icon{font-size:29px}
 .sv-root .sv-card b{font-size:13px;line-height:1.15}
 .sv-root .sv-card small{font-size:12px}
 .sv-root #sv-sector-picker{border-color:#c0d1f4;color:#e8f3ff}
}
@media(orientation:landscape) and (max-height:650px){.sv-game:fullscreen{box-sizing:border-box;width:100vw;height:100dvh;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) clamp(190px,29vw,275px);grid-template-rows:auto auto minmax(0,1fr);align-items:stretch;gap:4px 6px;padding:4px}.sv-game:fullscreen .sv-hud{grid-column:1/-1;grid-row:1;min-height:0;gap:3px}.sv-game:fullscreen .sv-hud span{flex:0 1 auto;font-size:11px;padding:3px 8px}.sv-game:fullscreen .sv-hud b{font-size:12px}.sv-game:fullscreen .sv-board{grid-column:1;grid-row:2/4;width:100%;height:100%;min-height:0;min-width:0;max-height:none;max-width:none;aspect-ratio:auto;flex:none;align-self:stretch}.sv-game:fullscreen .sv-board canvas{display:block;width:100%;height:100%;object-fit:contain}.sv-game:fullscreen .sv-actions{grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr 1fr;align-self:start;gap:3px}.sv-game:fullscreen .sv-actions .sv-btn{font-size:11px;min-height:30px;height:32px;padding:3px 2px;border-bottom-width:2px;border-radius:8px}.sv-game:fullscreen #sv-start{grid-column:1/-1;height:38px;font-size:13px}.sv-game:fullscreen .sv-cards{grid-column:2;grid-row:3;display:grid;grid-template-columns:1fr;overflow:auto;gap:3px;align-content:start}.sv-game:fullscreen .sv-card{min-height:37px;display:flex;flex-direction:row;justify-content:space-between;padding:3px 6px;border-bottom-width:2px;border-radius:8px}.sv-game:fullscreen .sv-card .sv-icon{font-size:18px}.sv-game:fullscreen .sv-card b{font-size:12px}.sv-game:fullscreen .sv-card small{font-size:11px}.sv-game:fullscreen .sv-status{display:none}}