/* Nanna's Words | app styles. Builds on /shared/css/aps.css tokens and components. */

.nw { --wall: #efe4cf; --wall-2: #e7d9bd; --mortar: #dccdb0; --warm: #f7e4bb; --lit: #f2d184; }

/* ---------- Hero ---------- */
.nw-hero {
  padding: clamp(24px, 5vw, 64px) 0 clamp(20px, 4vw, 40px);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(243, 232, 210, .9), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(237, 241, 235, .9), transparent 70%);
}
.nw-hero__inner { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; }
.nw-hero h1 { margin-bottom: 0; }
.nw-hero .lead { margin-bottom: 0; }
.nw-hero__art {
  aspect-ratio: 520 / 400; width: 100%; max-width: 560px; justify-self: center;
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--wall);
}
.nw-hero__art svg { display: block; width: 100%; height: 100%; }
@media (min-width: 860px) {
  .nw-hero__inner { grid-template-columns: 1fr 1.05fr; }
  .nw-hero__art { justify-self: end; }
}

/* ---------- Status card ---------- */
.nw-status { display: grid; gap: var(--space-5); margin-top: clamp(4px, 1vw, 8px); position: relative; }
.nw-status__loading { display: grid; place-items: center; min-height: 160px; }
.nw-status__main { display: flex; flex-direction: column; align-items: flex-start; }
.nw-status__main .eyebrow { margin-bottom: var(--space-2); }
.nw-status__title { margin-bottom: var(--space-2); font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); }
.nw-status__text { margin: 0 0 var(--space-4); max-width: 48ch; }
.nw-status__main .btn { margin-top: var(--space-1); }
.nw-count { margin: var(--space-2) 0 var(--space-3); font-weight: 700; font-size: 1.15rem; color: var(--aps-green-dark); line-height: 1.2; }
.nw-count__n { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); color: var(--gold-text); letter-spacing: -0.03em; margin-inline: 0.05em; vertical-align: -0.12em; }
.nw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-self: start; }
.nw-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nw-stat__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.nw-stat__value { font-size: 1.35rem; font-weight: 700; color: var(--aps-green-dark); line-height: 1.2; }
.nw-status__foot { display: grid; gap: var(--space-2); }
.nw-status__foot p { margin: 0; }
.nw-saved { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); border: 1px solid #e6d3ad; border-radius: var(--radius); padding: 10px 14px; font-size: 0.95rem; }
.nw-saved__icon { width: 40px; flex: none; display: block; }
.nw-saved__icon svg { display: block; width: 100%; height: auto; }
@media (min-width: 860px) {
  .nw-status { grid-template-columns: 1.3fr 1fr; align-items: center; column-gap: var(--space-7); }
  .nw-status__foot { grid-column: 1 / -1; }
}

.nw-demo { margin-top: var(--space-4); flex-wrap: wrap; align-items: center; justify-content: space-between; }
.nw-demo p { margin: 0; flex: 1 1 260px; }

/* ---------- Tabs ---------- */
.nw-tabs {
  display: flex; gap: 4px; padding: 4px; margin: clamp(28px, 5vw, 48px) 0 var(--space-5);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%;
  scroll-margin-top: 96px;
}
.nw-tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nw-tabs a:hover { color: var(--aps-green-dark); background: rgba(255, 255, 255, .6); }
.nw-tabs a[aria-current="page"] { background: var(--white); color: var(--aps-green-dark); box-shadow: var(--shadow-s); }
.nw-tabs__count { padding: 2px 8px; }

.nw-view__title { margin-bottom: var(--space-3); }
.nw-view__title:focus { box-shadow: none; outline: none; }
.nw-view__head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.nw-view__head .nw-view__title { margin: 0; }
.nw-view__head + p { margin-top: var(--space-2); }

/* ---------- Legend ---------- */
.nw-legend { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; color: var(--ink-2); }
.nw-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.nw-legend__swatch { width: 14px; height: 20px; border-radius: 7px 7px 2px 2px; background: #1f4d25; border: 1px solid #12321a; position: relative; }
.nw-legend__item--today .nw-legend__swatch { box-shadow: 0 0 0 3px rgba(242, 209, 132, .9), 0 0 10px 3px rgba(242, 209, 132, .9); }
.nw-legend__item--opened .nw-legend__swatch { background: linear-gradient(90deg, #1f4d25 0 30%, var(--warm) 30%); }
.nw-legend__item--missed .nw-legend__swatch::after { content: ""; position: absolute; right: -4px; top: 6px; width: 10px; height: 7px; background: #fffaf0; border: 1px solid #c9b48e; border-radius: 1px; transform: rotate(-9deg); }
.nw-legend__item--locked .nw-legend__swatch { opacity: .55; }

/* ---------- The wall ---------- */
.nw-wall {
  --block: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64' viewBox='0 0 120 64'%3E%3Cpath d='M0 31.5h120M0 63.5h120M40 0v32M100 0v32M10 32v32M70 32v32' stroke='%23dccdb0' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-color: var(--wall);
  background-image: radial-gradient(120% 70% at 50% 0%, rgba(255, 250, 238, .75), transparent 70%), var(--block);
  border: 1px solid #dfd0b2; border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), var(--shadow-s);
  padding: clamp(18px, 3vw, 32px) clamp(12px, 3vw, 32px) clamp(20px, 3vw, 36px);
}
.nw-wall__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(10px, 3vw, 16px); }
@media (min-width: 520px) { .nw-wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .nw-wall__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1024px) { .nw-wall__grid { gap: 34px 40px; padding: 0 clamp(0px, 3vw, 40px); } }
.nw-wall__cell { display: flex; justify-content: center; }

.nw-door {
  position: relative; display: block; width: 100%; max-width: 140px; aspect-ratio: 100 / 180; padding: 0; margin: 0;
  border: 0; background: none; font: inherit; color: inherit; border-radius: 12px; isolation: isolate;
  container-type: inline-size; -webkit-tap-highlight-color: transparent; scroll-margin: 100px 0 40px;
}
button.nw-door { cursor: pointer; }
.nw-door__frame, .nw-door__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nw-door__frame { filter: drop-shadow(0 2px 3px rgba(70, 50, 20, .12)); }
.nw-door__num {
  position: absolute; left: 34%; width: 32%; top: 1.4%; height: 11.7%; display: grid; place-items: center;
  font-weight: 700; font-size: 12.5cqi; line-height: 1; color: var(--aps-green-dark); font-variant-numeric: tabular-nums;
}
.nw-door__way { position: absolute; left: 12%; top: 37.2%; width: 76%; height: 59.4%; perspective: 300px; }
.nw-door__inside { position: absolute; inset: 0; background: radial-gradient(90% 70% at 60% 35%, #fff7e6, var(--warm) 55%, #e9c27e); }
.nw-door__wordbox { position: absolute; inset: 0; display: grid; place-items: center; padding: 8% 3% 8% 24%; text-align: center; }
.nw-door__word { font-weight: 700; color: var(--aps-green-dark); font-size: 11.6cqi; line-height: 1.12; overflow-wrap: break-word; hyphens: none; letter-spacing: -0.01em; }
.nw-door__word.is-long { font-size: 10.6cqi; }
.nw-door__word.is-xlong { font-size: 9.4cqi; }
.nw-door__leaf { position: absolute; inset: 0; transform-origin: 0 50%; transition: transform .7s var(--ease), filter .3s; backface-visibility: visible; }
.nw-door__leaf svg { display: block; width: 100%; height: 100%; }
.nw-door.is-opened .nw-door__leaf { transform: rotateY(80deg); filter: brightness(.82); }
button.nw-door:not(.is-opened):hover .nw-door__leaf, button.nw-door:not(.is-opened):focus-visible .nw-door__leaf { transform: rotateY(14deg); }
button.nw-door.is-opened:hover .nw-door__leaf { transform: rotateY(72deg); }
.nw-door.is-locked .nw-door__frame, .nw-door.is-closed .nw-door__frame { filter: saturate(.7); }
.nw-door.is-locked .nw-door__leaf, .nw-door.is-closed .nw-door__leaf { filter: saturate(.75) brightness(.96); }
.nw-door.is-locked .nw-door__num, .nw-door.is-closed .nw-door__num { color: var(--ink-3); }
.nw-door:focus-visible { box-shadow: 0 0 0 3px var(--wall), 0 0 0 5px var(--aps-green); outline: none; }

/* today's door: a soft gold glow */
.nw-door.is-current::before {
  content: ""; position: absolute; inset: -8% -26% -2%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 209, 132, .95), rgba(242, 209, 132, .45) 55%, rgba(242, 209, 132, 0));
  animation: nw-glow 2.8s ease-in-out infinite alternate;
}
@keyframes nw-glow { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
.nw-door__tag {
  position: absolute; left: 50%; bottom: -3%; transform: translate(-50%, 50%); z-index: 2;
  background: var(--aps-green-dark); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gold); white-space: nowrap;
}

/* ---------- Day 24 card section ---------- */
.nw-card-section { margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 4vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.nw-cardmaker { display: grid; gap: var(--space-5); align-items: center; }
.nw-cardmaker__art { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 640 / 460; }
.nw-cardmaker__art svg { display: block; width: 100%; height: 100%; }
.nw-cardmaker__form > p { margin-top: 0; }
.nw-cardmaker .char-count { margin-top: -2px; }
.nw-cardmaker .field__error { margin: 0; }
.nw-btn-spinner { width: 18px; height: 18px; border-width: 2.5px; border-color: rgba(255, 255, 255, .35); border-top-color: var(--white); }
@media (min-width: 760px) { .nw-card-section .nw-cardmaker { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

/* ---------- My words ---------- */
.nw-words { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 720px) { .nw-words { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.nw-wordcard {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s);
  padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 20px) 12px; display: flex; flex-direction: column; overflow: hidden;
}
.nw-wordcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--aps-green), var(--aps-green-light)); }
.nw-wordcard__day { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.nw-wordcard__word { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); margin: 6px 0 2px; }
.nw-wordcard__pron { margin: 0; color: var(--ink-3); font-size: 0.95rem; letter-spacing: 0.04em; }
.nw-wordcard__meaning { margin: 8px 0 12px; color: var(--ink-2); flex: 1; }
.nw-wordcard__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.nw-wordcard__actions .btn--ghost { margin-left: auto; min-height: 44px; }
.nw-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: var(--space-5); padding: clamp(28px, 5vw, 48px); }
.nw-empty__art { width: 120px; margin-bottom: var(--space-3); }
.nw-empty__art svg { display: block; width: 100%; height: auto; }
.nw-empty p { max-width: 40ch; }
.nw-privacy { margin-top: clamp(28px, 5vw, 48px); text-align: center; }

.nw-audio-slot:empty { display: none; }
.nw-listen { gap: 6px; min-height: 44px; }
.nw-listen__icon { display: inline-flex; }
.nw-listen__icon svg { width: 18px; height: 18px; }

/* ---------- Dialog ---------- */
.nw-dialog { width: min(96vw, 620px); }
.nw-dialog .dialog__body { padding: clamp(20px, 4vw, 32px); padding-top: clamp(16px, 3vw, 28px); }
.nw-dialog .dialog__close { z-index: 3; background: rgba(255, 255, 255, .85); }
.nw-dialog h2:focus { box-shadow: none; outline: none; }

/* reveal stage */
.nw-stage { position: relative; width: min(100%, 330px); aspect-ratio: 300 / 330; margin: 0 auto; }
.nw-stage__frame, .nw-stage__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nw-stage__num {
  position: absolute; left: 41.33%; width: 17.34%; top: 9.7%; height: 9.7%; display: grid; place-items: center;
  font-weight: 700; color: var(--aps-green-dark); font-size: clamp(14px, 4.4vw, 19px); line-height: 1;
}
.nw-stage__way { position: absolute; left: 13.333%; top: 40.606%; width: 73.334%; height: 56.364%; perspective: 800px; }
.nw-stage__inside { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(110% 85% at 50% 25%, #fff6e2, #f4dba6 55%, #e3b66c); }
.nw-stage__nanna {
  position: absolute; bottom: 0; left: 50%; height: 100%; aspect-ratio: 200 / 224; container-type: inline-size;
  transform: translate(-50%, 16%); opacity: 0; transition: transform .8s var(--ease) .45s, opacity .6s ease .45s;
}
.nw-stage.is-open .nw-stage__nanna { transform: translate(-50%, 0); opacity: 1; }
.nw-stage__layer, .nw-stage__layer svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nw-stage__card {
  position: absolute; left: 15%; top: 62.5%; width: 70%; height: 33.9%;
  display: grid; place-items: center; padding: 4% 8%; text-align: center;
  background: #fffaf0; border: 2px solid var(--gold); border-radius: 6px; box-shadow: inset 0 0 0 4px #fffaf0, inset 0 0 0 5.5px #ead9b6, 0 3px 8px rgba(60, 40, 10, .15);
  transform: rotate(-2deg);
}
.nw-stage__card span { font-weight: 700; color: var(--aps-green-dark); font-size: 11cqi; line-height: 1.08; letter-spacing: -0.01em; overflow-wrap: break-word; }
.nw-stage__card.is-long span { font-size: 9.5cqi; }
.nw-stage__card.is-xlong span { font-size: 8.4cqi; }
.nw-stage.is-open .nw-stage__card { animation: nw-lift 1.4s var(--ease) .9s both; }
@keyframes nw-lift { 0% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6%); } 100% { transform: rotate(-2deg) translateY(0); } }
.nw-stage__leaf { position: absolute; top: 0; bottom: 0; width: 50%; transition: transform 1.2s cubic-bezier(.3, .7, .2, 1) .1s, filter 1.2s; }
.nw-stage__leaf svg { display: block; width: 100%; height: 100%; }
.nw-stage__leaf--l { left: 0; transform-origin: 0 50%; }
.nw-stage__leaf--r { right: 0; transform-origin: 100% 50%; }
.nw-stage.is-open .nw-stage__leaf--l { transform: rotateY(80deg); filter: brightness(.8); }
.nw-stage.is-open .nw-stage__leaf--r { transform: rotateY(-80deg); filter: brightness(.8); }

/* Nanna's note on catch-up days */
.nw-note {
  display: flex; align-items: center; gap: 12px; margin: var(--space-4) auto 0; max-width: 420px;
  background: #fffaf0; border: 1px solid #e6d3ad; border-radius: var(--radius); padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-s); transform: rotate(-1deg);
}
.nw-note__art { width: 52px; flex: none; }
.nw-note__art svg { display: block; width: 100%; height: auto; }
.nw-note__text { margin: 0; display: flex; flex-direction: column; }
.nw-note__quote { font-weight: 700; color: var(--aps-green-dark); font-size: 1.05rem; }
.nw-note__sign { color: var(--gold-text); font-size: 0.9rem; font-weight: 600; }

/* word panel */
.nw-panel { margin-top: var(--space-5); transition: opacity .5s ease, transform .5s var(--ease); }
.nw-panel.is-waiting { opacity: 0; transform: translateY(10px); }
.nw-panel .eyebrow { margin-bottom: var(--space-1); }
.nw-word { font-size: clamp(2rem, 1.5rem + 2.6vw, 2.8rem); margin-bottom: var(--space-2); }
.nw-say { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: var(--space-4); }
.nw-say__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.nw-say__pron { font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: 0.03em; background: var(--paper-2); border-radius: 999px; padding: 4px 12px; }
.nw-facts { margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.nw-fact { border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; }
.nw-fact dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.nw-fact dd { margin: 0; color: var(--ink); }
.nw-fact__meaning { font-weight: 700; font-size: 1.15rem; color: var(--aps-green-dark); }
.nw-fact__sub { display: block; color: var(--ink-2); font-size: 0.95rem; }
.nw-panel__intro { margin-bottom: var(--space-3); }

/* game */
.nw-game .eyebrow { margin-bottom: var(--space-2); }
.nw-game__q { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem); padding-right: 44px; }
.nw-sentence { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); font-weight: 700; color: var(--aps-green-dark); line-height: 1.5; margin: var(--space-3) 0 var(--space-2); }
.nw-blank { display: inline-block; min-width: 4.2em; border-bottom: 3px solid var(--gold); margin: 0 .15em; line-height: 1.2; text-align: center; vertical-align: baseline; }
.nw-blank.is-filled { min-width: 0; margin: 0; color: var(--gold-text); border-bottom-color: var(--gold); background: var(--gold-soft); border-radius: 6px 6px 0 0; padding: 0 .2em; }
.nw-gloss { color: var(--ink-2); margin: 0 0 var(--space-3); }
.nw-gloss__label { font-weight: 700; color: var(--ink-3); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nw-timer { margin: var(--space-3) 0 var(--space-4); }
.nw-timer__track { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.nw-timer__fill { height: 100%; background: linear-gradient(90deg, var(--gold), #d4ad62); transform-origin: 0 50%; transition: transform .2s linear; }
.nw-timer.is-paused .nw-timer__fill { background: var(--line-strong); }
.nw-timer.is-done .nw-timer__fill { opacity: .4; }
.nw-timer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; min-height: 44px; }
.nw-timer__text { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-3); font-size: 0.9rem; }
.nw-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nw-option {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; cursor: pointer;
  min-height: 56px; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: var(--white);
  font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink); line-height: 1.35;
  transition: border-color .15s, background .15s, transform .12s;
}
.nw-option:hover { border-color: var(--aps-green-light); background: var(--aps-green-mist); }
.nw-option:active { transform: translateY(1px); }
.nw-option__mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  font-family: system-ui, sans-serif; font-size: 0.95rem; color: var(--white); background: var(--white);
}
.nw-options--sentence .nw-option { font-size: 1.12rem; }
.nw-option[aria-disabled="true"] { cursor: default; transform: none; }
.nw-option[aria-disabled="true"]:hover { background: var(--white); border-color: var(--line-strong); }
.nw-option.is-correct, .nw-option.is-correct:hover { border-color: var(--aps-green); background: var(--aps-green-tint); color: var(--aps-green-dark); }
.nw-option.is-correct .nw-option__mark { background: var(--aps-green); border-color: var(--aps-green); }
.nw-option.is-chosen, .nw-option.is-chosen:hover { border-color: var(--ink-3); background: var(--paper-2); border-style: dashed; }
.nw-option.is-faded { opacity: .6; }
.nw-feedback { margin-top: var(--space-4); padding: 14px 16px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #e6d3ad; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nw-feedback.is-correct { background: var(--aps-green-tint); border-color: #cfdbc9; }
.nw-feedback p { margin: 0; font-weight: 600; flex: 1 1 220px; }

/* learned moment */
.nw-done { text-align: center; display: flex; flex-direction: column; align-items: center; }
.nw-done__art { position: relative; width: 132px; margin: 8px auto var(--space-3); }
.nw-done__art svg { display: block; width: 100%; height: auto; }
.nw-done__art > span:first-child { display: block; border-radius: 50%; box-shadow: 0 0 0 6px var(--gold-soft), 0 0 0 7.5px #e6d3ad; }
.nw-done__spark { position: absolute; width: 22px; animation: nw-twinkle 2.2s ease-in-out infinite alternate; }
.nw-done__spark svg { width: 100%; height: auto; display: block; }
.nw-done__spark--a { top: -6px; right: -14px; }
.nw-done__spark--b { bottom: 8px; left: -18px; width: 16px; animation-delay: .8s; }
@keyframes nw-twinkle { from { opacity: .4; transform: scale(.8) rotate(0); } to { opacity: 1; transform: scale(1.1) rotate(20deg); } }
.nw-done h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); max-width: 22ch; }
.nw-done__quote { font-size: 1.1rem; color: var(--gold-text); font-weight: 600; font-style: italic; margin-bottom: var(--space-4); }
.nw-stats--center { width: 100%; max-width: 380px; margin-bottom: var(--space-3); text-align: start; }
.nw-done .btn-row { margin-top: var(--space-2); }
.nw-cardview .nw-cardmaker { margin-top: var(--space-3); }
.nw-cardview > .btn-row { margin-top: var(--space-4); }

@media (max-width: 480px) {
  .nw-done .btn-row .btn, .nw-panel .btn-row .btn { width: 100%; }
  .nw-stat { padding: 12px; }
  .nw-stat__value { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-door.is-current::before { animation: none; opacity: 1; transform: none; }
  .nw-stage__nanna { transition: none; }
  .nw-done__spark { animation: none; }
}
.nw-dialog .nw-game .eyebrow, .nw-dialog .nw-cardview > .eyebrow { padding-right: 44px; }
.nw-nb { white-space: nowrap; }
