/* NexaMed NexaSwipe: True / False swipe cards. Home card + full-screen window. Uses the site theme variables. */

/* ---------- home section ---------- */
.nsw-home { margin-top: 26px; max-width: 860px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; padding: 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--card); position: relative; overflow: hidden; font-family: 'DM Sans', sans-serif; color: var(--text); }
.nsw-home::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 0% 0%, rgba(34, 197, 94, 0.14), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(255, 77, 109, 0.14), transparent 60%); }
.nsw-home > * { position: relative; }
.nsw-home-t b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1.5px; font-weight: 400; line-height: 1; }
.nsw-home-t p { margin: 10px 0 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.nsw-home-btn { padding: 14px 28px; border: 0; border-radius: 13px; background: var(--accent); color: #04130a; font-weight: 700; font-size: 0.97rem; cursor: pointer; font-family: inherit; transition: filter 0.15s, transform 0.1s; }
.nsw-home-btn:hover { filter: brightness(1.08); }
.nsw-home-btn:active { transform: scale(0.98); }
#nsw-home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
#nsw-home-stats div { padding: 10px 6px; border-radius: 12px; background: var(--panel-04); border: 1px solid var(--border); text-align: center; }
#nsw-home-stats b { display: block; font-size: 1.05rem; }
#nsw-home-stats span { display: block; font-size: 0.64rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.3px; }
/* decorative stack: three cards, the top one gently rocking */
.nsw-demo { position: relative; height: 210px; }
.nsw-demo i { position: absolute; left: 50%; top: 50%; width: 200px; height: 150px; margin: -75px 0 0 -100px; border-radius: 18px; border: 1px solid var(--border); background: var(--deep); }
.nsw-demo i:nth-child(1) { transform: translateY(26px) scale(0.86); opacity: 0.5; }
.nsw-demo i:nth-child(2) { transform: translateY(13px) scale(0.93); opacity: 0.8; }
.nsw-demo i:nth-child(3) { display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; font-family: 'DM Serif Display', serif; font-size: 1.02rem; line-height: 1.35; color: var(--text); background: var(--card); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); animation: nswRock 5s ease-in-out infinite; font-style: normal; }
.nsw-demo i:nth-child(3)::before, .nsw-demo i:nth-child(3)::after { position: absolute; top: 12px; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 6px; border: 2px solid; opacity: 0; }
.nsw-demo i:nth-child(3)::before { content: 'TRUE'; left: 12px; color: #22c55e; transform: rotate(-12deg); animation: nswStampT 5s ease-in-out infinite; }
.nsw-demo i:nth-child(3)::after { content: 'FALSE'; right: 12px; color: #ff4d6d; transform: rotate(12deg); animation: nswStampF 5s ease-in-out infinite; }
@keyframes nswRock { 0%, 10% { transform: translateX(0) rotate(0); } 25% { transform: translateX(46px) rotate(8deg); } 40%, 60% { transform: translateX(0) rotate(0); } 75% { transform: translateX(-46px) rotate(-8deg); } 90%, 100% { transform: translateX(0) rotate(0); } }
@keyframes nswStampT { 0%, 12% { opacity: 0; } 25% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes nswStampF { 0%, 62% { opacity: 0; } 75% { opacity: 1; } 88%, 100% { opacity: 0; } }
@media (max-width: 760px) { .nsw-home { grid-template-columns: 1fr; padding: 20px; gap: 12px; } .nsw-demo { order: -1; height: 190px; } .nsw-home-btn { width: 100%; } }

/* ---------- window ---------- */
.nsw { position: fixed; inset: 0; z-index: 100003; display: none; padding: 16px; background: var(--overlay); backdrop-filter: blur(8px); font-family: 'DM Sans', sans-serif; color: var(--text); }
.nsw.open { display: block; animation: nswIn 0.2s ease; }
@keyframes nswIn { from { opacity: 0; } to { opacity: 1; } }
.nsw-shell { height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--deep); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
.nsw-view { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nsw button { font-family: inherit; }
.nsw button:disabled { opacity: 0.45; cursor: default; }
.nsw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nsw-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; text-align: center; color: var(--muted); }
.nsw-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: nswSpin 0.8s linear infinite; }
@keyframes nswSpin { to { transform: rotate(360deg); } }

.nsw-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 6px; }
.nsw-top h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; letter-spacing: 1.5px; line-height: 1; font-weight: 400; }
.nsw-top p { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.nsw-x { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-04); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.nsw-x:hover { color: var(--text); border-color: var(--accent); }
.nsw-primary { padding: 14px 26px; border: 0; border-radius: 13px; background: var(--accent); color: #04130a; font-weight: 700; font-size: 0.97rem; cursor: pointer; transition: filter 0.15s, transform 0.1s; }
.nsw-primary:hover:not(:disabled) { filter: brightness(1.08); }
.nsw-primary:active:not(:disabled) { transform: scale(0.98); }
.nsw-ghost { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-03); color: var(--text); font-weight: 600; font-size: 0.86rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.nsw-ghost:hover:not(:disabled) { border-color: var(--accent); background: var(--panel-05); }

/* setup */
.nsw-block { padding: 16px 24px 4px; }
.nsw-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.nsw-links button { background: none; border: 0; color: var(--accent); font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 0; letter-spacing: 0; text-transform: none; }
.nsw-hint { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.nsw-modes { display: flex; flex-direction: column; gap: 10px; }
.nsw-mode { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.nsw-mode:hover { border-color: var(--accent); }
.nsw-mode:active { transform: scale(0.99); }
.nsw-mode.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.nsw-mode-ic { flex: 0 0 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--panel-05); color: var(--accent); }
.nsw-mode.m-rush .nsw-mode-ic { color: var(--gold); }
.nsw-mode.m-survival .nsw-mode-ic { color: var(--danger); }
.nsw-mode-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.nsw-mode-t b { font-size: 1rem; }
.nsw-mode-t small { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.nsw-mode em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.nsw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nsw-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.nsw-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.nsw-chip small { color: var(--muted); font-weight: 500; font-size: 0.72rem; }
.nsw-chip:hover { border-color: var(--sc); }
.nsw-chip.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, transparent); }
.nsw-seg { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--panel-04); border: 1px solid var(--border); }
.nsw-seg-btn { flex: 1; padding: 10px 6px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.nsw-seg-btn.on { background: var(--accent); color: #04130a; }
.nsw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nsw-switch { flex: 0 0 auto; width: 50px; height: 28px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-08); position: relative; cursor: pointer; transition: background 0.2s; padding: 0; }
.nsw-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.nsw-switch.on { background: color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.nsw-switch.on i { transform: translateX(22px); background: var(--accent); }
.nsw-foot { width: 100%; max-width: none; box-sizing: border-box; margin: auto 0 0; border: 0; position: sticky; bottom: 0; padding: 18px 24px 22px; display: flex; justify-content: center; background: linear-gradient(to top, var(--deep) 72%, transparent); }
.nsw-foot .nsw-primary { width: 100%; }
.nsw-foot-2 { gap: 10px; flex-wrap: wrap; }
.nsw-foot-2 .nsw-primary { width: auto; flex: 1 1 100%; }
.nsw-foot-2 .nsw-ghost { flex: 1; }

/* play */
.nsw-play { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 16px; gap: 6px; position: relative; overflow: hidden; }
.nsw-hud { display: flex; align-items: center; gap: 12px; }
.nsw-prog { flex: 1; min-width: 0; }
.nsw-prog-t { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.nsw-prog-t .low { color: var(--danger); }
.nsw-bar { height: 7px; border-radius: 999px; background: var(--panel-08); overflow: hidden; }
.nsw-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 0.25s ease; }
.nsw-bar.rush i { background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width 0.1s linear; }
.nsw-hearts { display: flex; gap: 6px; color: var(--danger); }
.nsw-heart { display: inline-flex; transition: transform 0.3s, color 0.3s, opacity 0.3s; }
.nsw-heart.lost { color: var(--muted); opacity: 0.35; transform: scale(0.8); animation: nswBreak 0.45s ease; }
@keyframes nswBreak { 0% { transform: scale(1.3); } 40% { transform: scale(0.7) rotate(-14deg); } 100% { transform: scale(0.8); } }
.nsw-score { text-align: right; min-width: 56px; }
.nsw-score b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; line-height: 1; letter-spacing: 1px; font-weight: 400; }
.nsw-score span { font-size: 0.64rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.nsw-combo { height: 28px; display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.nsw-combo.on { opacity: 1; transform: none; }
.nsw-combo-i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); font-size: 0.78rem; font-weight: 600; transform: scale(var(--f, 1)); transform-origin: center; }
.nsw-combo-i svg { filter: drop-shadow(0 0 6px rgba(244, 197, 66, 0.7)); }
.nsw-combo-i b { font-size: 0.95rem; }
.nsw-combo-i em { font-style: normal; font-weight: 800; color: var(--text); margin-left: 2px; }

.nsw-stage { --pl: 0; --pr: 0; flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; border-radius: 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
.nsw-stage::before, .nsw-stage::after { content: ''; position: absolute; top: 0; bottom: 0; width: 46%; pointer-events: none; border-radius: 20px; transition: opacity 0.12s; }
.nsw-stage::before { left: 0; background: linear-gradient(90deg, rgba(255, 77, 109, 0.45), transparent); opacity: var(--pl); }
.nsw-stage::after { right: 0; background: linear-gradient(270deg, rgba(34, 197, 94, 0.45), transparent); opacity: var(--pr); }
.nsw-stage.flash-ok { animation: nswOk 0.45s ease; }
.nsw-stage.flash-bad { animation: nswBad 0.45s ease; }
@keyframes nswOk { 0% { box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.9), inset 0 0 60px rgba(34, 197, 94, 0.35); } 100% { box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0), inset 0 0 60px rgba(34, 197, 94, 0); } }
@keyframes nswBad { 0% { box-shadow: inset 0 0 0 2px rgba(255, 77, 109, 0.9), inset 0 0 60px rgba(255, 77, 109, 0.35); } 100% { box-shadow: inset 0 0 0 2px rgba(255, 77, 109, 0), inset 0 0 60px rgba(255, 77, 109, 0); } }
.nsw-stage.shake { animation: nswShake 0.4s ease, nswBad 0.45s ease; }
@keyframes nswShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.nsw-card, .nsw-back { position: absolute; width: min(100%, 400px); height: min(100%, 470px); border-radius: 26px; }
.nsw-back { border: 1px solid var(--border); background: var(--card); }
.nsw-back.b1 { transform: translateY(14px) scale(0.94); opacity: 0.75; }
.nsw-back.b2 { transform: translateY(28px) scale(0.88); opacity: 0.45; }
.nsw-card { z-index: 2; display: flex; flex-direction: column; padding: 26px; cursor: grab; touch-action: none; will-change: transform; border: 1px solid var(--border); background: linear-gradient(165deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--navy))); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4); overflow: hidden; }
.nsw-card.drag { cursor: grabbing; }
.nsw-card.enter { animation: nswEnter 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes nswEnter { from { transform: translateY(18px) scale(0.93); opacity: 0.6; } to { transform: none; opacity: 1; } }
.nsw-card::after { content: '?'; position: absolute; right: -10px; bottom: -70px; font-family: 'DM Serif Display', serif; font-size: 15rem; line-height: 1; color: var(--panel-04); pointer-events: none; }
.nsw-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.nsw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.6px; background: color-mix(in srgb, var(--sc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); }
.nsw-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
.nsw-topic { font-size: 0.72rem; color: var(--muted); }
.nsw-statement { flex: 1; display: flex; align-items: center; margin: 0; font-family: 'DM Serif Display', serif; font-size: clamp(1.3rem, 4.8vw, 1.75rem); line-height: 1.32; position: relative; z-index: 1; overflow-wrap: anywhere; }
.nsw-card-bot { position: relative; z-index: 1; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.nsw-stamp { position: absolute; top: 64px; z-index: 3; padding: 5px 14px; border: 3.5px solid; border-radius: 10px; font-weight: 800; font-size: 1.5rem; letter-spacing: 3px; opacity: 0; pointer-events: none; }
.nsw-stamp.t { left: 20px; color: #22c55e; transform: rotate(-14deg); }
.nsw-stamp.f { right: 20px; color: #ff4d6d; transform: rotate(14deg); }
.nsw-wait { position: absolute; z-index: 3; }

.nsw-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.nsw-p { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); animation: nswP 0.7s ease-out forwards; }
@keyframes nswP { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }
.nsw-float { position: absolute; left: 50%; top: 30%; font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 1px; animation: nswFloat 0.9s ease-out forwards; }
.nsw-float.good { color: #22c55e; } .nsw-float.bad { color: #ff4d6d; }
@keyframes nswFloat { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -70px); opacity: 0; } }

.nsw-sheet { min-height: 0; max-height: 0; overflow: hidden; opacity: 0; border-radius: 16px; border: 1px solid var(--border); background: var(--card); padding: 0 16px; transition: max-height 0.28s ease, opacity 0.2s, padding 0.2s; }
.nsw-sheet.show { max-height: 170px; opacity: 1; padding: 12px 16px; overflow-y: auto; }
.nsw-sheet.ok { border-color: color-mix(in srgb, #22c55e 55%, transparent); background: color-mix(in srgb, #22c55e 9%, var(--card)); }
.nsw-sheet.bad { border-color: color-mix(in srgb, #ff4d6d 55%, transparent); background: color-mix(in srgb, #ff4d6d 9%, var(--card)); }
.nsw-sheet-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.nsw-sheet-h b { font-size: 0.92rem; }
.nsw-sheet.ok .nsw-sheet-h b { color: #22c55e; } .nsw-sheet.bad .nsw-sheet-h b { color: #ff4d6d; }
.nsw-sheet-h span { font-size: 0.74rem; color: var(--muted); }
.nsw-sheet-h em { font-style: normal; font-weight: 800; color: var(--text); }
.nsw-sheet p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--text); }

.nsw-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.nsw-keys { font-size: 0.72rem; color: var(--muted); text-align: center; flex: 1; }
.nsw-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 104px; padding: 13px 18px; border-radius: 16px; border: 2px solid; font-weight: 700; font-size: 0.92rem; cursor: pointer; background: transparent; transition: transform 0.1s, background 0.15s; }
.nsw-act:active { transform: scale(0.95); }
.nsw-act.f { color: #ff4d6d; border-color: color-mix(in srgb, #ff4d6d 60%, transparent); }
.nsw-act.f:hover { background: color-mix(in srgb, #ff4d6d 14%, transparent); }
.nsw-act.t { color: #22c55e; border-color: color-mix(in srgb, #22c55e 60%, transparent); }
.nsw-act.t:hover { background: color-mix(in srgb, #22c55e 14%, transparent); }

/* results */
.nsw-results { flex: 1; display: flex; flex-direction: column; }
.nsw-hero { display: flex; align-items: center; gap: 22px; padding: 18px 24px 6px; }
.nsw-ring { flex: 0 0 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--panel-08) 0); animation: nswRing 0.9s ease-out; }
.nsw-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--deep); }
.nsw-ring b, .nsw-ring span { position: relative; z-index: 1; }
.nsw-ring b { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; letter-spacing: 1px; font-weight: 400; line-height: 1; }
.nsw-ring span { font-size: 0.64rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
@keyframes nswRing { from { transform: scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }
.nsw-hero-t b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 1px; font-weight: 400; line-height: 1.05; }
.nsw-new { display: inline-block; margin-top: 8px; font-style: normal; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.nsw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 24px 4px; }
.nsw-grid div { padding: 12px 6px; border-radius: 14px; background: var(--panel-04); border: 1px solid var(--border); text-align: center; }
.nsw-grid b { display: block; font-size: 1.15rem; }
.nsw-grid span { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 2px; }
.nsw-res-actions { display: flex; gap: 10px; padding: 16px 24px 4px; flex-wrap: wrap; }
.nsw-res-actions .nsw-ghost { flex: 1; min-width: 150px; }
.nsw-clean { flex: 1; text-align: center; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); color: #22c55e; font-weight: 700; font-size: 0.9rem; background: color-mix(in srgb, #22c55e 8%, transparent); }
.nsw-rv-list { padding: 14px 24px 4px; display: flex; flex-direction: column; gap: 10px; }
.nsw-rv { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.nsw-rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nsw-rv-ans { font-size: 0.74rem; color: var(--muted); }
.nsw-rv-ans b { color: var(--accent); }
.nsw-rv-s { margin: 0 0 6px; font-family: 'DM Serif Display', serif; font-size: 1.08rem; line-height: 1.35; }
.nsw-rv-w { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 600px) {
  .nsw { padding: 0; }
  .nsw-shell { border-radius: 0; border: 0; max-width: none; }
  .nsw-top { padding: 20px 18px 6px; }
  .nsw-block { padding: 14px 18px 4px; }
  .nsw-foot { padding: 16px 18px 20px; }
  .nsw-act { min-width: 0; flex: 1; padding: 14px 10px; }
  .nsw-keys { display: none; }
  .nsw-hero { gap: 16px; padding: 14px 18px 4px; }
  .nsw-ring { flex-basis: 104px; height: 104px; }
  .nsw-grid, .nsw-res-actions, .nsw-rv-list { padding-left: 18px; padding-right: 18px; }
}
@media (max-height: 640px) { .nsw-card { padding: 18px; } .nsw-statement { font-size: 1.15rem; } .nsw-sheet.show { max-height: 110px; } }
@media (prefers-reduced-motion: reduce) {
  .nsw *, .nsw-demo i { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.nsw-setup { flex: 1; display: flex; flex-direction: column; }
