
.st-app, .st-app * { box-sizing: border-box; }
.st-app { --st-cut: 8px; --gs-ink: #eef1f8; --gs-muted: #98a2bd; --gs-line: #2a3350; --gs-accent: #f6c177; --gs-accent-ink: #1a1206;
  --gs-panel: #0d1224; --gs-bg: #0b1020; --gs-chip: rgba(10, 14, 28, .92);
  position: relative; display: flex; flex-direction: column; color: #eef1f8; font: 16px/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; }
.st-app.st-embedded { height: clamp(480px, calc(100svh - 110px), 900px); border: 1px solid #2a3350; background: #0b1020;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.st-app.gs-fs { background: #0b1020; }
.st-app .gs-stage, .st-app .gs-main { min-height: 0; }
.st-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.st-app .gs-side { min-height: 0; overflow: auto; }
.st-app .gs-main { display: flex; flex-direction: column; }
.st-cut { clip-path: polygon(var(--st-cut) 0, 100% 0, 100% calc(100% - var(--st-cut)), calc(100% - var(--st-cut)) 100%, 0 100%, 0 var(--st-cut)); }
.st-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 0 env(safe-area-inset-bottom, 0); }
.st-msg { padding: 14px; text-align: center; color: #98a2bd; font-size: 14px; }
.st-stage { position: relative; flex: 1 1 38%; min-height: 150px; overflow: hidden; border: 1px solid #1f2633; background: linear-gradient(#fbb88c, #8cc7f2); --st-cut: 12px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.st-scene { position: absolute; inset: 0; overflow: hidden; }
.st-flat { position: absolute; inset: 0; transition: background 1.2s ease; }
.st-flat-step { position: absolute; width: 14%; height: 6%; background: #ece6da; border-bottom: 3px solid #ffd98a; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.st-flat-fig { position: absolute; width: 30px; height: 45px; overflow: visible; animation: stBob 2.4s ease-in-out infinite; }
.st-flat-fig circle, .st-flat-fig path { fill: none; stroke: #fdf6e6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
.st-flat-fig .st-flat-lamp { fill: #ffe6a8; stroke: none; filter: drop-shadow(0 0 6px rgba(255, 224, 160, .95)); }
@keyframes stBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 8px 0; flex: 0 0 auto; }
.st-scene-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; color: #fff; pointer-events: none; }
.st-scene-label span:first-child { font-family: monospace; font-weight: 800; font-size: 18px; }
.st-scene-label span { font-size: 12px; opacity: .92; }
.st-scene-label .st-scene-cp { font-size: 11.5px; }
.st-app .st-toast { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-weight: 800; font-size: 17px; color: #fff; opacity: 0; white-space: nowrap; pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .5); z-index: 3; }
.st-app .st-toast.show { animation: stGain 1.6s ease forwards; }
.st-app .st-toast.big { font-size: 22px; color: #ffe39a; }
.st-app .st-toast.big.show { animation-duration: 2.4s; }
@keyframes stGain { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
#stScene.pw-live::before { content: ""; position: absolute; left: 0; top: 0; width: 70%; height: 90px; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 0 0, rgba(5, 9, 20, calc(0.22 + var(--pw-day, 0.5) * 0.38)), rgba(5, 9, 20, 0) 70%); }
.st-hud { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; max-width: 62%; }
.st-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; background: rgba(13, 18, 36, .82); border: 1px solid rgba(246, 193, 119, .35); --st-cut: 6px; font: 700 13px/1 monospace; color: #fff; white-space: nowrap; }
.st-chip b { font-weight: 800; }
.st-sp b { color: #fde047; }
.st-sp.up { animation: stHit .5s ease; }
.st-heart { color: #ff6b81; letter-spacing: 1px; font-size: 15px; }
.st-heart.lost { color: #3f4660; }
#stHearts.hit { animation: stHit .45s ease; }
@keyframes stHit { 0%, 100% { transform: none; } 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.st-app .st-card { flex: 1 1 62%; min-height: 0; overflow: auto; padding: 4px 10px 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.st-question { flex: 0 0 auto; }
.st-sentence { font-size: 18px; line-height: 1.5; color: #f1f5f9; margin: 4px 0 10px; text-align: center; }
.st-blank { display: inline-block; min-width: 96px; border-bottom: 2px dashed #f6c177; margin: 0 4px; text-align: center; }
.st-blank.filled { border-bottom-style: solid; color: #ff9aa6; font-weight: 800; padding: 0 4px; }
.st-blank.filled.good { color: #7ee7b0; }
.st-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-opt { display: flex; align-items: center; gap: 8px; text-align: left; min-height: 48px; background: rgba(255, 255, 255, .06); border: 1px solid #2f3b52; color: #e2e8f0; padding: 8px 10px;
  font: 600 15px/1.25 system-ui, "Segoe UI", sans-serif; cursor: pointer; transition: border-color .15s, background .15s; --st-cut: 8px; }
.st-opt:hover:not(:disabled) { border-color: #f6c177; background: rgba(246, 193, 119, .1); }
.st-opt:focus-visible { outline: 3px solid #5eead4; outline-offset: 1px; }
.st-opt:disabled { cursor: default; }
.st-key { flex: 0 0 auto; width: 20px; height: 20px; background: #1f2633; color: #8899aa; font: 700 11px/20px monospace; text-align: center; }
.st-txt { min-width: 0; overflow-wrap: anywhere; }
.st-opt.right { border-color: #34d399; background: rgba(52, 211, 153, .18); color: #bbf7d0; font-weight: 800; }
.st-opt.wrong { border-color: #ff6b81; background: rgba(255, 107, 129, .16); color: #ffb4bf; text-decoration: line-through; }
.st-opt.dim { opacity: .45; }
.st-feedback { margin-top: 8px; min-height: 0; }
.st-fb { font-size: 14px; line-height: 1.45; padding: 8px 10px; }
.st-fb.good { background: rgba(52, 211, 153, .12); color: #a7f3d0; }
.st-fb.bad { background: rgba(255, 107, 129, .12); color: #fecdd3; }
.st-fb b { color: #fff; }
.st-tip { color: #cbd5e1; }
.st-next { display: block; width: 100%; min-height: 46px; margin-top: 8px; background: linear-gradient(135deg, #f6c177, #dd8a3c); color: #1a1206; border: none; padding: 10px 20px; font: 800 15px/1 system-ui, sans-serif; cursor: pointer; --st-cut: 8px; }
.st-next:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
.st-over { text-align: center; padding: 8px 6px 2px; }
.st-over-icon { font-size: 40px; }
.st-over-title { font-size: 21px; font-weight: 800; color: #fff; margin-top: 2px; }
.st-over-sub { color: #f6c177; margin: 4px 0 8px; }
.st-over-cp { font-size: 12.5px; color: #98a2bd; margin-top: 8px; }
.st-bottom { margin-top: 6px; min-height: 40px; padding: 8px 12px; background: none; border: none; color: #98a2bd; font-size: 13px; text-decoration: underline; cursor: pointer; }
.st-bottom:hover { color: #cbd5e1; }
@media (max-width: 380px) {
  .st-options { grid-template-columns: 1fr; }
  .st-sentence { font-size: 16.5px; }
}
@media (min-width: 700px) {
  .st-app .st-card { flex: 0 0 auto; }
  .st-stage { flex: 1 1 auto; min-height: 260px; }
}
@media (max-width: 560px) {
  .st-app .st-stage { flex: 1 1 48%; }
  .st-app .st-card { flex: 1 1 52%; justify-content: safe center; }
}
