.ns-game {
  --ns-ink: #292638;
  --ns-muted: #625e71;
  --ns-paper: #fffcfa;
  --ns-edge: #e1dce6;
  --ns-accent: #70509f;
  --ns-dark: #282438;
  position:relative; max-width:59rem; margin:0 auto; padding:1.4rem 1rem 2rem;
  color:var(--ns-ink);font-family:var(--home-sans,system-ui,sans-serif);line-height:1.4;
}
.ns-game *, .ns-game *::before, .ns-game *::after {box-sizing:border-box}
.ns-game [hidden] {display:none !important}
.ns-game h1,.ns-game h2,.ns-game p {margin:0}
.ns-game button {font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ns-game button:focus-visible {outline:3px solid #a46de6;outline-offset:3px}
.ns-game-head,.ns-game-title,.ns-action-heading,.ns-slots,.ns-game-progress,.ns-status-row {display:flex;align-items:center}
.ns-game-head {justify-content:space-between;margin-bottom:1.25rem}
.ns-game-title {gap:.8rem}
.ns-mode-mark,.ns-pause {width:2.9rem;height:2.9rem;display:grid;place-items:center;border-radius:1rem}
.ns-mode-mark {background:#eee5f6;color:var(--ns-accent)}
.ns-mode-mark svg,.ns-pause svg {width:1.5rem;height:1.5rem}
.ns-game-title p {font-weight:650;font-size:.85rem;letter-spacing:.01em;color:var(--ns-muted)}
.ns-game h1 {font:500 clamp(2rem,4.3vw,3.2rem)/1 var(--home-serif,Georgia,serif);letter-spacing:-.045em}
.ns-pause {color:var(--ns-ink);background:white;border:1px solid var(--ns-edge)}
.ns-game-tools{display:flex;align-items:center;gap:.42rem}
.ns-help{border:0;color:var(--ns-muted);width:44px;height:44px;display:grid;place-items:center;border-radius:.85rem;background:transparent}
.ns-help svg{width:1.4rem;height:1.4rem}
.ns-linked{max-width:7rem;color:var(--ns-muted);font-size:.76rem;text-align:right;line-height:1.2}
.ns-pause:hover,.ns-help:hover,.ns-sheet-alt:hover {background:#f4edf6}
.ns-goals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:.82rem 0;border:1px solid var(--ns-edge);border-radius:14px;background:#fff;box-shadow:0 2px 4px #322d4005}
.ns-goals>div {display:flex;min-width:0;flex-direction:column;gap:.1rem;padding:0 clamp(.45rem,2.5vw,1.4rem);font-variant-numeric:tabular-nums}
.ns-goals>div+div{border-left:1px solid var(--ns-edge)}
.ns-goals span {display:flex;align-items:center;gap:.35rem;color:var(--ns-muted);font-size:.79rem;font-weight:600}
.ns-goals svg {width:1rem;height:1rem;flex:none;color:var(--ns-accent)}
.ns-goals strong {font-size:clamp(.93rem,1.7vw,1.13rem);font-weight:730;line-height:1.4}
.ns-goals small {font-size:.76rem;color:var(--ns-muted)}
.ns-goals .ns-pending {color:var(--ns-accent)}
.ns-game-progress {gap:.9rem;margin:1.05rem 0 .8rem}
.ns-game-progress b {font-size:.89rem;white-space:nowrap}
.ns-bars {display:flex;flex:1;gap:.26rem;max-width:16rem}
.ns-bars i {width:calc(100%/8);height:.3rem;background:#dfd9e4;border-radius:8px}
.ns-bars i.done {background:#a38ab9}
.ns-bars i.current {background:#7955a0}
.ns-game-dual {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.95rem;align-items:stretch}
.ns-read,.ns-action {min-width:0;overflow:hidden;border-radius:20px}
.ns-read {background:var(--ns-paper);border:1px solid var(--ns-edge);padding:1.35rem;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1.1rem}
.ns-score {width:100%;background:#f8f4ed;border:1px solid #e8e2dc;border-radius:13px;display:flex;align-items:center;justify-content:center;min-height:8rem;--notation-ink:#292438;--notation-rule:#8f8791}
.ns-score svg {display:block;width:95%;height:7rem}
.ns-score.ns-grand svg {height:9.7rem}
.ns-answer {text-align:center}
.ns-answer p {font-size:.9rem;font-weight:560;color:var(--ns-muted)}
.ns-slots {justify-content:center;gap:.4rem;margin-top:.5rem}
.ns-slot {width:2.42rem;height:2.1rem;display:grid;place-items:center;border-radius:.56rem;background:#f0ecf1;color:#a69daf;font-size:1.13rem;font-weight:700}
.ns-slot.filled {background:#e9dbf4;color:#5b347d}
.ns-action {background:var(--ns-dark);color:#fff9ff;position:relative;padding:.95rem 1rem .55rem;display:flex;flex-direction:column;justify-content:space-between}
.ns-action-heading {justify-content:space-between;gap:.5rem}
.ns-action-heading h2 {font-size:1.15rem;font-weight:650;font-family:inherit;letter-spacing:-.02em}
.ns-action-heading>span {color:#d7c6eb;font-weight:650}
.ns-action-heading svg {width:1.28rem;height:1.28rem;display:block}
.ns-input {position:relative}
.ns-field {position:relative;min-height:224px;height:clamp(224px,39svh,300px);touch-action:manipulation;user-select:none;-webkit-user-select:none;isolation:isolate;overflow:hidden;outline:none}
.ns-balloon {position:absolute;top:0;width:48px;height:48px;margin:0;display:grid;place-items:center;border:0;padding:0;background:transparent;touch-action:manipulation;user-select:none;isolation:isolate;border-radius:50%;will-change:transform;z-index:1;color:#2a2337}
.ns-balloon .ns-skin,.ns-balloon .ns-letter,.ns-balloon i {pointer-events:none}
.ns-skin {position:absolute;inset:2px 3px 2px;z-index:-1;background:var(--balloon);border-radius:50% 50% 48% 48% / 44% 44% 58% 58%}
.ns-skin::before {content:"";position:absolute;top:8px;left:8px;width:8px;height:4px;border-radius:90%;background:#fff9;transform:rotate(-36deg)}
.ns-skin::after {content:"";position:absolute;left:calc(50% - 3px);bottom:-2px;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:4px solid var(--balloon)}
.ns-balloon i {width:5px;height:7px;border-left:1px solid var(--balloon);border-radius:50%;position:absolute;top:46px;left:calc(50% - 1px);opacity:.55}
.ns-balloon .ns-letter {font-size:1.15rem;font-weight:750;line-height:1;color:#2c2837}
.ns-balloon.ns-wrap .ns-skin {border:1px dashed var(--balloon);background:#322b3c}
.ns-balloon.ns-wrap .ns-letter {color:var(--balloon)}
.ns-balloon.ns-wrap .ns-skin::before {display:none}
.ns-correct .ns-skin {animation:ns-squash .14s ease-out}
.ns-wrong .ns-skin {animation:ns-wrong .23s ease-out}
@keyframes ns-squash {0%{transform:scale(1)}29%{transform:scale(.92)}100%{transform:scale(1)}}
@keyframes ns-wrong {0%,53%{outline:3px solid #ffc268}100%{outline:2px solid transparent}}
.ns-burst {position:absolute;width:0;height:0;z-index:2;color:var(--balloon);pointer-events:none}
.ns-burst>i {position:absolute;width:3px;height:3px;margin:-1.5px;opacity:0;border-radius:50%;background:currentColor;animation:ns-spark .14s linear}
.ns-burst>i:nth-child(1){--x:1;--y:0}.ns-burst>i:nth-child(2){--x:-1;--y:0}.ns-burst>i:nth-child(3){--x:0;--y:1}.ns-burst>i:nth-child(4){--x:0;--y:-1}
@keyframes ns-spark {0%,28%{opacity:0;transform:translate(calc(var(--x)*17px),calc(var(--y)*17px))}29%{opacity:1;transform:translate(calc(var(--x)*17px),calc(var(--y)*17px))}100%{opacity:0;transform:translate(calc(var(--x)*21px),calc(var(--y)*21px))}}
.ns-still .ns-correct .ns-skin {animation:none}
.ns-still .ns-balloon.ns-correct .ns-skin::before {content:"✓";top:1px;left:auto;right:-3px;height:15px;width:15px;font:750 10px/15px system-ui;border-radius:50%;background:#e3f5e4;transform:none;color:#194830}
.ns-status-row {gap:.35rem;min-height:2rem;flex-wrap:wrap;justify-content:space-between;margin-top:.12rem}
.ns-feedback {color:#d6cfe0;font-size:.85rem;font-weight:560;line-height:1.3}
.ns-feedback.ns-error {color:#ffd49d}
.ns-feedback.ns-ok {color:#bfe8c9}
.ns-dispute {color:#fff1ce;background:transparent;border:0;border-bottom:1px solid #c6a16b;padding:.2rem 0;font-size:.83rem!important}
.ns-speak .ns-input {display:grid;place-items:center;min-height:200px}
.ns-voice-wave {display:flex;align-items:center;justify-content:center;gap:clamp(.12rem,.7vw,.36rem);width:100%}
.ns-voice-wave>i {display:block;height:var(--h);width:2px;border-radius:6px;background:#a98ac1;opacity:.65}
.ns-mic-disc {width:4.5rem;height:4.5rem;flex:none;margin:0 .55rem;border-radius:50%;display:grid;place-items:center;background:#d7bce8;color:#382345;box-shadow:0 0 0 8px #513766,0 0 0 15px #382b47}
.ns-mic-disc svg {width:2rem;height:2rem}
.ns-speak .ns-input.listening .ns-mic-disc {box-shadow:0 0 0 8px #66477c,0 0 0 15px #42304f}
.ns-sheet {position:absolute;z-index:4;inset:11.4rem .4rem 0;display:flex;align-items:flex-start;justify-content:center;padding:1rem .65rem;background:#fbfaf7ef;backdrop-filter:blur(5px);border-radius:18px}
.ns-game.ns-veiled .ns-game-dual,.ns-game.ns-veiled .ns-game-progress{visibility:hidden}
.ns-sheet-card {max-width:31rem;width:100%;padding:1.5rem;border-radius:18px;border:1px solid #dfd8e4;background:#fff;box-shadow:0 5px 25px #31213d0a}
.ns-sheet h2 {font:500 1.8rem/1.13 var(--home-serif,Georgia,serif);letter-spacing:-.035em}
.ns-sheet-copy {color:var(--ns-muted);font-size:1rem;margin:.7rem 0 1.1rem!important;overflow-wrap:anywhere}
.ns-sheet-actions {display:flex;flex-wrap:wrap;gap:.48rem}
.ns-sheet-actions button {min-height:44px;padding:.5rem .9rem;border-radius:.6rem;font-size:.9rem;font-weight:650}
.ns-sheet-primary{border:1px solid #654886;background:#654886;color:white}
.ns-sheet-alt{border:1px solid #d7cfdc;background:white;color:var(--ns-ink)}
@media(max-width:730px){
  .ns-game {max-width:34rem;padding:.75rem .75rem 1rem}
  .ns-game-head {margin-bottom:.6rem}
  .ns-game-title {gap:.55rem}
  .ns-game-tools{gap:.15rem}
  .ns-linked{font-size:.68rem;max-width:5rem}
  .ns-game-title p {font-size:.77rem}
  .ns-game h1 {font-size:2.1rem}
  .ns-mode-mark,.ns-pause {width:2.5rem;height:2.5rem;border-radius:.8rem}
  .ns-goals {padding:.46rem 0;border-radius:10px}
  .ns-goals span {font-size:.69rem;gap:.19rem}
  .ns-goals svg {width:.78rem;height:.78rem}
  .ns-goals strong {font-size:.9rem}
  .ns-goals small {font-size:.67rem}
  .ns-game-progress {margin:.65rem 0 .5rem}
  .ns-bars{max-width:none}
  .ns-game-dual {display:flex;flex-direction:column;gap:.55rem}
  .ns-read {padding:.5rem .65rem;gap:.35rem;border-radius:14px}
  .ns-score {min-height:0;border-radius:8px}
  .ns-score svg {height:4.3rem;width:95%}
  .ns-score.ns-grand svg {height:6.3rem}
  .ns-answer p {font-size:.78rem}
  .ns-slots{margin-top:.2rem;gap:.35rem}
  .ns-slot {width:1.9rem;height:1.55rem;font-size:.92rem;border-radius:.35rem}
  .ns-action {padding:.65rem .6rem .3rem;border-radius:14px}
  .ns-action-heading h2 {font-size:1rem}
  .ns-status-row {min-height:1.6rem;margin:0}
  .ns-feedback {font-size:.78rem}
  .ns-speak .ns-input {min-height:165px}
  .ns-sheet {inset:8.4rem .25rem 0;padding:.6rem .25rem}
  .ns-sheet-card {padding:1.15rem}
}
@media(max-width:365px){
  .ns-game{padding-inline:.5rem}
  .ns-goals>div{padding-inline:.31rem}
  .ns-goals strong{font-size:.82rem}
  .ns-goals span{font-size:.65rem}
  .ns-game p.ns-sheet-copy{font-size:.9rem}
  .ns-action {padding-inline:.4rem}
}
@media(max-width:730px){
  .ns-goals{position:sticky;top:0;z-index:3}
}
@media(max-width:730px) and (max-height:680px){
  .ns-game{padding:.26rem .46rem .32rem}
  .ns-game-head{margin-bottom:.2rem;min-height:44px}
  .ns-game-title>div{display:flex;flex-direction:column-reverse}
  .ns-game h1{font-size:1.47rem;line-height:1}
  .ns-mode-mark{width:2.2rem;height:2.2rem}
  .ns-game-title p{font-size:.68rem}
  .ns-goals{padding:.18rem 0}
  .ns-goals>div{gap:0;line-height:1.17}
  .ns-game-progress{margin:.3rem 0}
  .ns-game-dual{gap:.25rem}
  .ns-read{padding:.25rem .4rem;gap:.13rem}
  .ns-score svg{height:3.6rem}
  .ns-score.ns-grand svg{height:5rem}
  .ns-answer{display:flex;width:100%;gap:6px;align-items:center;justify-content:center}
  .ns-answer p{font-size:.7rem;line-height:1.15;max-width:67px}
  .ns-slots{margin:0;gap:.18rem}
  .ns-slot{width:1.55rem;height:1.42rem}
  .ns-field{height:224px}
  .ns-action{padding:.3rem .45rem .12rem}
  .ns-action-heading h2{font-size:.91rem}
  .ns-status-row{min-height:1.3rem}
  .ns-sheet{top:6.15rem}
}
