
.sx-app { color: #eef6ff; }
.sx-app .sx-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px; gap: 8px; }
.sx-app .sx-hud { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-app .sx-chip { flex: 1 1 0; min-width: 64px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: 4px 8px; text-align: center; }
.sx-app .sx-chip small { display: block; font: bold 9px monospace; letter-spacing: 2px; color: #8796ad; }
.sx-app .sx-chip b { font: 800 16px/1.2 monospace; color: #fff; }
.sx-app .sx-chip.gold b { color: #fbbf24; }
.sx-app .sx-stage { flex: 1 1 auto; min-height: 340px; height: clamp(380px, 68vh, 700px); }   
.sx-app .sx-stage { position: relative; width: 100%; border-radius: 0; overflow: hidden; background: #05030f;
    border: 1px solid rgba(51, 240, 255, 0.25); box-shadow: none;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sx-app .sx-flat { position: absolute; inset: 0; display: none; overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, rgba(255, 63, 180, 0.35), transparent 60%), linear-gradient(180deg, #0a0624, #1b0b3a 70%, #2a0d4a); }
.sx-app .sx-flat.show { display: block; }
.sx-app .sx-flat::before { content: ''; position: absolute; left: -50%; right: -50%; bottom: 0; height: 55%;
    background-image: linear-gradient(rgba(51,240,255,0.5) 2px, transparent 2px), linear-gradient(90deg, rgba(255,63,180,0.45) 2px, transparent 2px);
    background-size: 60px 40px; transform: perspective(300px) rotateX(62deg); transform-origin: bottom; animation: sxGrid 0.9s linear infinite; }
@keyframes sxGrid { from { background-position: 0 0; } to { background-position: 0 40px; } }
.sx-app .sx-top { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 1; pointer-events: none; }
.sx-app .sx-sent { background: rgba(6, 8, 30, 0.82); border: 1px solid var(--sx-acc, #33f0ff); border-radius: 0; padding: 10px 14px;
    color: #eef6ff; font: 700 clamp(15px, 2.3vw, 21px)/1.35 'Segoe UI', system-ui, sans-serif; text-align: center;
    box-shadow: none; backdrop-filter: blur(3px); min-height: 1.35em; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-gap { display: inline-block; min-width: 3.2em; padding: 0 6px; margin: 0 2px; border-bottom: 3px solid var(--sx-acc, #33f0ff);
    color: var(--sx-acc, #33f0ff); text-shadow: 0 0 12px var(--sx-acc, #33f0ff); border-radius: 0; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-gap.ok { color: #4ade80; border-color: #4ade80; text-shadow: 0 0 12px #22c55e; background: rgba(34, 197, 94, 0.12); }
.sx-app .sx-gap.bad { color: #fda4af; border-color: #f43f5e; text-decoration: line-through; background: rgba(244, 63, 94, 0.12); }
.sx-app .sx-fix { color: #4ade80; text-shadow: 0 0 12px #22c55e; }
.sx-app .sx-tip { margin-top: 6px; font: 600 12.5px/1.4 'Segoe UI', system-ui, sans-serif; color: #fde68a; background: rgba(30, 20, 4, 0.82);
    border: 1px solid rgba(251, 191, 36, 0.4); border-radius: 0; padding: 6px 10px; text-align: left; display: none; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-tip.show { display: block; animation: sxFade 0.25s ease-out; }
.sx-app .sx-bar { height: 4px; margin: 6px 4px 0; background: rgba(255,255,255,0.12); border-radius: 0; overflow: hidden; }
.sx-app .sx-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sx-acc, #33f0ff), #fff); box-shadow: 0 0 10px var(--sx-acc, #33f0ff); }
.sx-app .sx-pop { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none;
    font: 900 clamp(22px, 4.2vw, 36px) 'Segoe UI', system-ui, sans-serif; letter-spacing: 2px; opacity: 0; white-space: nowrap; }
.sx-app .sx-pop.go { animation: sxPop 1.1s ease-out forwards; }
@keyframes sxPop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
    70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
.sx-app .sx-lanes { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-app .sx-lane { min-height: 52px; border-radius: 0; border: 1px solid rgba(255,255,255,0.18); background: rgba(6, 8, 30, 0.72);
    color: #dbeafe; font: 800 clamp(13px, 2.2vw, 17px)/1.15 'Segoe UI', system-ui, sans-serif; padding: 6px 6px; cursor: pointer;
    backdrop-filter: blur(3px); transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s, background 0.12s; word-break: break-word;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-lane small { display: block; font: bold 9px monospace; letter-spacing: 2px; color: #7d8aa0; margin-bottom: 2px; }
.sx-app .sx-lane.on { border-color: var(--sx-acc, #33f0ff); color: #fff; background: rgba(20, 30, 70, 0.85);
    box-shadow: 0 0 18px var(--sx-acc, #33f0ff), 0 0 0 1px var(--sx-acc, #33f0ff) inset; transform: translateY(-3px); }
.sx-app .sx-lane.ok { border-color: #22c55e; background: rgba(22, 101, 52, 0.85); color: #fff; box-shadow: 0 0 18px #22c55e; }
.sx-app .sx-lane.bad { border-color: #f43f5e; background: rgba(136, 19, 55, 0.85); color: #fff; box-shadow: 0 0 18px #f43f5e; }
.sx-app .sx-lane.dim { opacity: 0.45; }
.sx-app .sx-over { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box;
    background: radial-gradient(ellipse at center, rgba(4, 2, 14, 0.5), rgba(4, 2, 14, 0.84)); z-index: 3; overflow-y: auto; }
.sx-app .sx-over.show { display: flex; animation: sxFade 0.25s ease-out; }
@keyframes sxFade { from { opacity: 0; } to { opacity: 1; } }
.sx-app .sx-card { width: min(540px, 100%); background: linear-gradient(180deg, rgba(14, 10, 40, 0.95), rgba(6, 4, 20, 0.97)); border: 1px solid var(--sx-acc, #33f0ff);
    border-radius: 0; padding: 18px 18px 16px; box-shadow: none; text-align: center; color: #e2e8f0; margin: auto; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-kicker { font: bold 11px monospace; letter-spacing: 3px; color: var(--sx-acc, #33f0ff); text-transform: uppercase; }
.sx-app .sx-title { font: 800 26px/1.15 'Segoe UI', system-ui, sans-serif; margin: 6px 0 4px; letter-spacing: 1px; color: #fff; text-shadow: 0 0 18px var(--sx-acc, #33f0ff); }
.sx-app .sx-title.bad { color: #fecdd3; text-shadow: 0 0 18px #f43f5e; }
.sx-app .sx-sub { font-size: 13.5px; color: #a7b4c8; margin-bottom: 12px; line-height: 1.5; }
.sx-app .sx-stars { font-size: 30px; letter-spacing: 6px; margin: 2px 0 4px; }
.sx-app .sx-stars .off { filter: grayscale(1) brightness(0.45); }
.sx-app .sx-stars span { display: inline-block; animation: sxStar 0.5s cubic-bezier(.2,1.6,.4,1) both; }
.sx-app .sx-stars span:nth-child(2) { animation-delay: 0.15s; } .sx-app .sx-stars span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sxStar { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sx-app .sx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 12px; }
.sx-app .sx-stat { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; padding: 7px 2px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-stat b { display: block; font: bold 18px monospace; color: #fff; }
.sx-app .sx-stat i { font-style: normal; font-size: 9.5px; letter-spacing: 1px; color: #8796ad; text-transform: uppercase; }
.sx-app .sx-rev-h { font: bold 11px monospace; letter-spacing: 2px; color: #8796ad; margin-bottom: 6px; text-align: left; }
.sx-app .sx-rev { text-align: left; margin: 4px 0 12px; max-height: 240px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 8px; }
.sx-app .sx-rev-row { padding: 7px 2px 8px; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 13.5px; line-height: 1.45; }
.sx-app .sx-rev-row .s { color: #eef2ff; font-weight: 600; }
.sx-app .sx-rev-row .s b { color: #4ade80; }
.sx-app .sx-rev-row .p { color: #fda4af; font-size: 12.5px; margin-top: 2px; }
.sx-app .sx-rev-row .p s { color: #fecdd3; }
.sx-app .sx-rev-row .t { color: #fde68a; font-size: 12px; margin-top: 3px; }
.sx-app .sx-go { background: linear-gradient(135deg, #33f0ff, #ff3fb4); color: #0a0420; border: 0; border-radius: 0; padding: 11px 26px;
    font: 800 15px 'Segoe UI', system-ui, sans-serif; letter-spacing: 1px; cursor: pointer; box-shadow: none; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-go:hover { filter: brightness(1.1); }
.sx-app .sx-hint { font-size: 12px; color: #7d8aa0; margin-top: 10px; line-height: 1.5; }
.sx-app .sx-hint kbd { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 0; padding: 0 5px; font: bold 11px monospace; color: #e2e8f0; }
.sx-app .sx-band { display: inline-block; font: bold 11px monospace; padding: 2px 8px; border-radius: 0; border: 1px solid var(--b); color: var(--b); margin-left: 6px; vertical-align: middle; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.sx-app .sx-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; box-shadow: 0 0 8px currentColor; background: currentColor; }
@media (max-width: 640px) {
    .sx-app .sx-title { font-size: 21px; }
    .sx-app .sx-card { padding: 14px 12px 12px; }
    .sx-app .sx-rev { max-height: 170px; }
    .sx-app .sx-stats { margin: 6px 0 8px; }
    .sx-app .sx-sent { padding: 8px 10px; }
    .sx-app .sx-top { left: 6px; right: 6px; top: 6px; }
    .sx-app .sx-lanes { left: 6px; right: 6px; bottom: 6px; gap: 6px; }
}
