
.sh-app, .sh-app * { box-sizing: border-box; }
.sh-app { --sh-cut: 8px; --gs-ink: #ecfccb; --gs-muted: #a3b896; --gs-line: #24502a; --gs-accent: #a3e635; --gs-accent-ink: #0b1f05;
  --gs-panel: #0a1a0d; --gs-bg: #06130a; --gs-chip: rgba(6, 20, 9, .92);
  position: relative; display: flex; flex-direction: column; color: #ecfccb; font: 16px/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; }
.sh-app.sh-embedded { height: clamp(480px, calc(100svh - 110px), 900px); border: 1px solid #24502a; background: #06130a;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.sh-app.gs-fs { background: #06130a; }
.sh-app .gs-stage, .sh-app .gs-main { min-height: 0; }
.sh-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.sh-app .gs-side { min-height: 0; overflow: auto; }
.sh-app .gs-main { display: flex; flex-direction: column; }
.sh-cut { clip-path: polygon(var(--sh-cut) 0, 100% 0, 100% calc(100% - var(--sh-cut)), calc(100% - var(--sh-cut)) 100%, 0 100%, 0 var(--sh-cut)); }
.sh-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 0 env(safe-area-inset-bottom, 0); }
.sh-info { font: 700 12px/1 monospace; letter-spacing: 1px; color: #bef264; }
.sh-clue { display: flex; gap: 10px; align-items: center; padding: 8px 10px; min-height: 66px; background: rgba(10, 30, 14, .94); border: 1px solid #2f6b35; }
.sh-clue.idle { opacity: .75; }
.sh-say { flex: 0 0 auto; width: 48px; height: 48px; border: 0; cursor: pointer; font-size: 21px; --sh-cut: 9px;
  background: linear-gradient(135deg, #84cc16, #22c55e); color: #052e16; }
.sh-say:focus-visible { outline: 2px solid #fef08a; outline-offset: 2px; }
.sh-words { min-width: 0; flex: 1; }
.sh-def { font-weight: 700; color: #ecfccb; font-size: 15px; line-height: 1.3; }
.sh-pos { font-style: normal; font-weight: 600; color: #a3e635; font-size: 11px; margin-right: 6px; text-transform: uppercase; letter-spacing: .06em; }
.sh-idle { font-weight: 500; color: #a3b896; font-size: 14px; }
.sh-blank { color: #cbd5e1; font-size: 14px; margin-top: 2px; }
.sh-blank b { color: #fde68a; letter-spacing: 2px; }
.sh-stage { position: relative; flex: 1 1 auto; min-height: 260px; --sh-cut: 12px; overflow: hidden; background: #3f8f3a;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sh-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.sh-stage.off { background: radial-gradient(ellipse at 50% 30%, #12341a 0%, #0a1f0e 60%, #06130a 100%); border: 1px solid #24502a; }
.sh-stage.off canvas { display: none; }
.sh-hud { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none; z-index: 3; }
.sh-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; background: rgba(6, 22, 9, .78); border: 1px solid rgba(163, 230, 53, .3); --sh-cut: 6px; }
.sh-chip small { font: 700 9px/1 monospace; letter-spacing: 1.3px; color: #a3b896; }
.sh-chip b { font: 800 14px/1 monospace; color: #fff; white-space: nowrap; }
#shHearts span { margin-right: 1px; }
#shHearts span.on { color: #fb7185; }
#shHearts span.lost { color: #4b5a45; }
#shSpC b { color: #fde047; }
.sh-chip.hit { animation: shHit .5s ease; }
@keyframes shHit { 0%, 100% { transform: none; } 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.sh-timebar { position: absolute; left: 8px; right: 8px; top: 62px; height: 7px; background: rgba(0, 0, 0, .28); z-index: 3; pointer-events: none; }
.sh-timebar i { position: absolute; inset: 0; background: #a3e635; transform-origin: left center; transform: scaleX(0); }
.sh-timebar i.low { background: #f97316; }
.sh-grid { position: absolute; left: 8px; right: 8px; bottom: 10px; top: 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: end; z-index: 2; }
.sh-grid[hidden] { display: none; }
@media (min-width: 560px) { .sh-grid.n5, .sh-grid.n6 { grid-template-columns: 1fr 1fr 1fr; } }
.sh-opt { position: relative; min-height: 56px; padding: 10px 8px; border: 2px solid #78350f; background: #fffbeb; color: #1c1917; cursor: pointer;
  font: 800 18px/1.15 system-ui, sans-serif; word-break: break-word; --sh-cut: 9px; transition: transform .08s, background .2s, opacity .25s; }
.sh-opt small { position: absolute; left: 7px; top: 4px; font: 600 10px/1 monospace; color: #92400e; }
.sh-opt:active { transform: scale(.97); }
.sh-opt:disabled { cursor: default; }
.sh-opt.tapped { border-color: #f59e0b; }
.sh-opt.good { background: #bbf7d0; border-color: #16a34a; }
.sh-opt.bad { background: #fecaca; border-color: #b91c1c; }
.sh-opt.gone { opacity: .25; }
.sh-opt:focus-visible { outline: 3px solid #fef08a; outline-offset: 1px; }
.sh-tip { min-height: 22px; font-size: 14px; color: #d9f99d; text-align: center; padding: 0 8px 4px; }
.sh-tip.bad { color: #fde68a; }
.sh-tip b { color: #fff; letter-spacing: .5px; }
.sh-over { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(4, 16, 7, .7); backdrop-filter: blur(2px); }
.sh-card { background: linear-gradient(160deg, #14532d, #052e16); border: 1px solid rgba(190, 242, 100, .4); --sh-cut: 14px;
  padding: 18px 18px; max-width: 460px; width: 100%; text-align: center; color: #ecfccb; max-height: 100%; overflow: auto; }
.sh-kicker { font: 700 12px/1.2 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #a3e635; }
.sh-kicker.bad { color: #fca5a5; }
.sh-title { font: 800 26px/1.2 system-ui, sans-serif; margin: 4px 0 8px; }
.sh-title.sm { font-size: 20px; }
.sh-title.bad { color: #fecaca; }
.sh-band { display: inline-block; margin-left: 8px; font-size: 13px; padding: 2px 8px; background: rgba(255, 255, 255, .08); color: var(--b); vertical-align: 4px; --sh-cut: 4px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
.sh-sub { color: #d9f99d; font-size: 14px; margin: 6px 0 10px; line-height: 1.45; }
.sh-sub.sh-max { font: 700 13px/1 monospace; letter-spacing: 1px; color: #fde68a; }
.sh-sub.sh-pass { color: #fde68a; }
.sh-go { background: linear-gradient(135deg, #facc15, #f97316); color: #1c1003; border: 0; padding: 12px 28px; min-height: 46px;
  font: 800 16px system-ui, sans-serif; cursor: pointer; --sh-cut: 9px; }
.sh-go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sh-stars { font-size: 30px; letter-spacing: 6px; }
.sh-stars .off { filter: grayscale(1) opacity(.3); }
.sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.sh-stat { background: rgba(255, 255, 255, .06); padding: 8px 4px; --sh-cut: 6px; }
.sh-stat b { display: block; font-size: 20px; }
.sh-stat i { font-style: normal; font: 700 10px/1.2 monospace; color: #bef264; letter-spacing: .06em; text-transform: uppercase; }
.sh-rev-h { font: 700 12px system-ui, sans-serif; letter-spacing: .1em; color: #fde68a; margin: 4px 0 6px; text-align: left; }
.sh-rev { text-align: left; display: grid; gap: 6px; margin-bottom: 8px; }
.sh-rev-row { background: rgba(0, 0, 0, .22); padding: 7px 9px; font-size: 13.5px; --sh-cut: 6px; }
.sh-rev-row b { color: #bbf7d0; font-size: 15px; }
.sh-rev-row s { color: #fca5a5; margin-left: 6px; }
.sh-rev-row span { display: block; color: #e2e8f0; margin-top: 2px; }
.sh-hint { font-size: 12px; color: #bef264; margin: 8px 0 10px; }
@media (max-width: 420px) {
  .sh-info { display: none; }      
  .sh-hud { flex-wrap: nowrap; gap: 3px; }
  .sh-chip { padding: 3px 5px; gap: 3px; min-width: 0; flex: 0 1 auto; }
  .sh-chip small { font-size: 8px; letter-spacing: 1px; }
  .sh-chip b { font-size: 13px; }
  .sh-timebar { top: 56px; }
  .sh-grid { top: 76px; }
}
