.cw-page {
  min-height: 100vh;
  background:
    radial-gradient(780px 420px at 14% -8%, rgba(34, 197, 94, 0.18), transparent 62%),
    radial-gradient(680px 520px at 88% 8%, rgba(96, 165, 250, 0.16), transparent 60%),
    var(--page-bg);
  color: var(--txt);
}

.cw-site-header .site-header-link {
  margin-left: 0;
}

.cw-site-header .site-brand {
  margin-right: auto;
}

.cw-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 36px;
}

.cw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.cw-hero h1 {
  margin: 4px 0 8px;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
}

.cw-hero-meter {
  min-width: 170px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surf) 88%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 13px 14px;
}

.cw-hero-meter span,
.cw-kicker,
.cw-mode-meta span,
.cw-mode-meta label,
.cw-clue-source {
  display: block;
  color: var(--mut);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-hero-meter strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.cw-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cw-mode-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 286px;
  padding: 16px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surf) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

.cw-mode-visual {
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--acc) 28%, var(--brd));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(96, 165, 250, 0.12)),
    var(--surf2);
  overflow: hidden;
}

.cw-mode-svg {
  width: 118px;
  height: 82px;
  fill: #86efac;
  stroke: #93c5fd;
  stroke-width: 3;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

.cw-mode-svg rect,
.cw-mode-svg path,
.cw-mode-svg circle {
  vector-effect: non-scaling-stroke;
}

.cw-mode-svg .cw-svg-line {
  fill: none;
  stroke: #bfdbfe;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cw-mode-svg .cw-svg-dark {
  fill: #0f172a;
  stroke: none;
}

.cw-mode-type {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  color: var(--mut);
  background: var(--surf2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-mode-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
}

.cw-mode-card p {
  margin: 0;
  color: var(--mut);
  line-height: 1.45;
  font-size: 14px;
}

.cw-mode-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.cw-mode-meta div {
  border: 1px solid var(--brd);
  border-radius: 8px;
  padding: 8px;
  background: var(--surf2);
}

.cw-mode-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.cw-mode-size-cell {
  position: relative;
}

.cw-mode-size {
  width: 100%;
  margin-top: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--txt);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  padding: 0 18px 0 0;
  cursor: pointer;
  appearance: none;
}

.cw-mode-size-cell::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid color-mix(in srgb, var(--mut) 70%, transparent);
  pointer-events: none;
  opacity: 0.58;
}

.cw-mode-size:hover,
.cw-mode-size:focus-visible {
  color: var(--acc-strong);
  outline: none;
}

.cw-mode-card button,
.cw-actions button,
.cw-round-actions button,
.cw-back {
  border: 1px solid var(--control-hover-border);
  border-radius: 8px;
  background: var(--control-hover-bg);
  color: var(--control-hover-text);
  cursor: pointer;
  font-weight: 760;
  padding: 10px 12px;
}

.cw-mode-card button:hover,
.cw-actions button:hover,
.cw-round-actions button:hover,
.cw-back:hover {
  background: var(--control-active-bg);
  border-color: var(--control-active-border);
}

.cw-game {
  min-height: calc(100vh - 110px);
}

.cw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cw-topbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.cw-mode-label {
  color: var(--mut);
  font-size: 13px;
  font-weight: 700;
}

.cw-stats {
  justify-content: flex-end;
}

.cw-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surf) 90%, transparent);
  font-size: 13px;
  font-weight: 700;
}

.cw-round-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cw-playfield {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.cw-playfield[hidden] {
  display: none;
}

.cw-board-wrap,
.cw-clues {
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surf) 94%, transparent);
  box-shadow: var(--shadow-panel);
}

.cw-board-wrap {
  padding: 14px;
}

.cw-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cw-board-head h2 {
  margin: 3px 0 0;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.16;
}

.cw-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cw-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-action-group--secondary {
  padding-left: 16px;
  border-left: 1px solid var(--brd);
}

.cw-game.is-choice #cwHint,
.cw-game.is-choice #cwCheck {
  display: none;
}

.cw-board {
  --cw-size: 11;
  display: grid;
  grid-template-columns: repeat(var(--cw-size), minmax(0, 1fr));
  width: min(100%, 72vh);
  margin: 0 auto;
  border: 2px solid color-mix(in srgb, var(--txt) 42%, var(--brd));
  background: color-mix(in srgb, var(--txt) 28%, var(--brd));
  aspect-ratio: 1;
  gap: 1px;
}

.cw-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--surf);
  color: var(--txt);
  cursor: pointer;
  font-size: clamp(14px, 3.4vw, 28px);
  font-weight: 850;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
}

.cw-cell:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: -3px;
}

.cw-cell.is-block {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--txt) 84%, #000), color-mix(in srgb, var(--txt) 62%, #000));
  cursor: default;
}

.cw-cell.is-active {
  background: #fef3c7;
  color: #1f2937;
}

.cw-cell.is-selected {
  background: #86efac;
  color: #062413;
}

.cw-cell.is-correct {
  background: #dcfce7;
  color: #14532d;
}

.cw-cell.is-wrong {
  background: #fee2e2;
  color: #7f1d1d;
}

.cw-cell.is-pop .cw-letter {
  display: block;
  animation: ngPopIn 0.18s ease;
}

/* staggered green sweep across a word the moment it is solved */
.cw-cell.is-flash {
  animation: cwCellSolved 0.6s ease calc(var(--flash-i, 0) * 60ms) backwards;
}

.cw-num {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: clamp(7px, 1.3vw, 11px);
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-weight: 800;
  line-height: 1;
}

.cw-message {
  min-height: 28px;
  margin-top: 11px;
  color: var(--mut);
  font-size: 13px;
  font-weight: 650;
}

.cw-message.is-good {
  color: var(--op);
}

.cw-message.is-warn {
  color: var(--sus);
}

.cw-clues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.cw-clues section {
  min-width: 0;
  padding: 14px;
}

.cw-clues section + section {
  border-left: 1px solid var(--brd);
}

.cw-clues h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
}

.cw-clue {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--txt);
  text-align: left;
  padding: 8px;
  cursor: pointer;
}

.cw-clue:hover,
.cw-clue.is-active {
  border-color: var(--control-hover-border);
  background: var(--control-hover-bg);
}

.cw-clue.is-solved {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.cw-clue-number {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surf2);
  font-weight: 850;
}

.cw-clue-text {
  min-width: 0;
  line-height: 1.35;
  font-size: 13px;
}

.cw-clue-source {
  margin-top: 5px;
  letter-spacing: 0.04em;
}

.cw-choice {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.45fr);
  gap: 14px;
  align-items: start;
}

.cw-choice[hidden] {
  display: none;
}

.cw-choice-card,
.cw-choice-side {
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surf) 94%, transparent);
  box-shadow: var(--shadow-panel);
}

.cw-choice-card {
  padding: 18px;
}

.cw-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.cw-choice-head strong {
  min-width: 64px;
  text-align: center;
  padding: 7px 9px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: var(--surf2);
}

.cw-choice-card h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.14;
}

.cw-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cw-choice-option {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: var(--surf2);
  color: var(--txt);
  cursor: pointer;
  text-align: left;
  padding: 12px;
}

.cw-choice-option span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--control-hover-bg);
  color: var(--control-hover-text);
  font-weight: 900;
}

.cw-choice-option strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.cw-choice-option:hover {
  border-color: var(--control-hover-border);
  background: var(--control-hover-bg);
}

.cw-choice-option.is-correct {
  border-color: #86efac;
  background: #dcfce7;
  color: #14532d;
}

.cw-choice-option.is-wrong {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #7f1d1d;
}

.cw-choice-option:disabled {
  cursor: default;
}

.cw-choice-feedback {
  min-height: 34px;
  margin-top: 14px;
  color: var(--mut);
  font-weight: 700;
  line-height: 1.4;
}

.cw-choice-next {
  margin-top: 4px;
  min-width: 140px;
  border: 1px solid var(--control-hover-border);
  border-radius: 8px;
  background: var(--control-hover-bg);
  color: var(--control-hover-text);
  cursor: pointer;
  font-weight: 800;
  padding: 11px 16px;
}

.cw-choice-next:hover,
.cw-choice-next:focus-visible {
  background: var(--control-active-bg);
  border-color: var(--control-active-border);
}

.cw-choice-next[hidden] {
  display: none;
}

.cw-choice-feedback.is-good {
  color: var(--op);
}

.cw-choice-feedback.is-warn {
  color: var(--sus);
}

.cw-choice-side {
  padding: 14px;
}

.cw-choice-side h3 {
  margin: 0 0 10px;
  color: var(--mut);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-choice-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--mut);
}

.cw-choice-list-item span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surf2);
  color: var(--txt);
  font-weight: 850;
}

.cw-choice-list-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.cw-choice-list-item.is-active {
  border-color: var(--control-hover-border);
  background: var(--control-hover-bg);
  color: var(--txt);
}

.cw-choice-list-item.is-done {
  opacity: 0.68;
}

.cw-reward {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(780px 480px at 50% 28%, rgba(34, 197, 94, 0.16), transparent 64%),
    rgba(2, 6, 23, 0.9);
  color: #e5edf8;
  overflow: hidden;
}

.cw-reward[hidden] {
  display: none;
}

/* slow drifting aurora wash behind the stars — keeps the reward calm */
.cw-reward::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 26% 30%, rgba(34, 197, 94, 0.15), transparent 70%),
    radial-gradient(42% 40% at 76% 62%, rgba(96, 165, 250, 0.13), transparent 72%),
    radial-gradient(36% 30% at 58% 16%, rgba(255, 209, 106, 0.07), transparent 70%);
  animation: ngAuroraDrift 26s ease-in-out infinite alternate;
}

#cwRewardStars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cw-reward-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(147, 197, 253, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(12, 35, 46, 0.92)),
    #0f172a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  padding: 24px;
}

.cw-reward.is-max .cw-reward-card {
  width: min(1280px, calc(100vw - 28px));
  min-height: min(820px, calc(100vh - 28px));
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  align-items: stretch;
}

.cw-reward-visual {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
}

.cw-reward-core {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #bbf7d0, #22c55e 48%, #0f766e 100%);
  color: #04130b;
  font-size: 58px;
  box-shadow:
    0 0 34px rgba(34, 197, 94, 0.58),
    inset 0 0 22px rgba(255, 255, 255, 0.32);
  animation: ngCorePulse 3.6s ease-in-out infinite;
}

.cw-reward-orbit {
  position: absolute;
  width: 250px;
  height: 78px;
  border: 2px solid rgba(191, 219, 254, 0.74);
  border-radius: 999px;
  animation: ngRotate 9s linear infinite;
}

.cw-reward-orbit--two {
  transform: rotate(60deg);
  animation-duration: 11s;
}

.cw-reward-orbit--three {
  transform: rotate(120deg);
  animation-duration: 13s;
}

.cw-reward-ship {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 38px solid #93c5fd;
  filter: drop-shadow(0 0 12px rgba(147, 197, 253, 0.86));
  animation: cwRewardShip 7s ease-in-out infinite;
}

.cw-reward-kicker {
  display: block;
  color: #86efac;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cw-reward-copy {
  position: relative;
}

.cw-reward-max {
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #bfdbfe;
  cursor: pointer;
  font-weight: 850;
  padding: 7px 10px;
}

.cw-reward-max:hover,
.cw-reward-max:focus-visible {
  background: rgba(37, 99, 235, 0.72);
}

.cw-reward-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

.cw-reward-copy p {
  margin: 0 0 18px;
  color: #bfdbfe;
  font-size: 16px;
  line-height: 1.45;
}

.cw-reward-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.cw-reward-stat {
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  padding: 10px;
}

.cw-reward-stat span {
  display: block;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cw-reward-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 19px;
}

.cw-reward-mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  margin: -4px 0 14px;
}

.cw-reward-mode-switch button {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  font-weight: 850;
  padding: 7px 12px;
}

.cw-reward-mode-switch button.is-active {
  border-color: rgba(134, 239, 172, 0.54);
  background: rgba(0, 255, 136, 0.12);
  color: #86efac;
}

.cw-reward-fleet {
  margin: -6px 0 18px;
}

.cw-reward-fleet:empty {
  display: none;
}

.cw-reward-fleet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #86efac;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cw-reward-fleet-head strong {
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(134, 239, 172, 0.42);
  border-radius: 8px;
  background: rgba(0, 16, 10, 0.76);
}

.cw-reward-fleet-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  max-height: 226px;
  overflow: auto;
  padding: 2px 4px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.5) rgba(0, 10, 4, 0.7);
}

.cw-reward.is-max .cw-reward-fleet-track {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: min(44vh, 390px);
}

.cw-fleet-card {
  position: relative;
  min-height: 96px;
  border: 2px solid rgba(0, 255, 136, 0.42);
  border-radius: 6px;
  background: rgba(0, 16, 10, 0.96);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.24);
  color: #8fc;
  font-family: "Courier New", monospace;
  padding: 9px 10px 8px 13px;
  overflow: hidden;
  opacity: 0;
  animation:
    ngFleetIn 0.5s ease calc(var(--i) * 75ms) both,
    ngFleetPulse 3.4s ease-in-out calc(var(--i) * 140ms) infinite;
}

.cw-reward.is-max .cw-fleet-card {
  min-height: 124px;
  padding: 12px 13px 10px 16px;
}

.cw-reward.is-max .cw-fleet-name {
  font-size: 15px;
}

.cw-reward.is-max .cw-fleet-type {
  font-size: 12px;
}

.cw-reward.is-max .cw-fleet-stats strong {
  font-size: 25px;
}

.cw-reward.is-max .cw-fleet-foot span,
.cw-reward.is-max .cw-fleet-foot b {
  font-size: 11px;
}

.cw-fleet-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 1px;
  background: rgba(0, 255, 136, 0.88);
}

.cw-fleet-hdr,
.cw-fleet-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cw-fleet-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f8;
  font-size: 12px;
  font-weight: 900;
}

.cw-fleet-type {
  flex-shrink: 0;
  border-radius: 3px;
  background: #0f8;
  color: #001006;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
}

.cw-fleet-line {
  height: 1px;
  background: rgba(0, 255, 136, 0.22);
  margin: 7px 0 5px;
}

.cw-fleet-line--low {
  margin-top: 6px;
}

.cw-fleet-stats {
  display: flex;
  gap: 15px;
}

.cw-fleet-stats div {
  display: grid;
  gap: 1px;
}

.cw-fleet-stats strong {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.cw-fleet-stats span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  font-weight: 800;
}

.cw-fleet-foot span {
  color: #8fc;
  font-size: 10px;
  font-weight: 800;
}

.cw-fleet-foot b {
  color: #ff0;
  font-size: 9px;
  font-weight: 900;
  text-align: right;
}

.cw-reward-music {
  margin: -6px 0 18px;
}

.cw-reward-music[hidden] {
  display: none;
}

.cw-reward-music-stage {
  position: relative;
  min-height: 178px;
  border: 1px solid rgba(0, 255, 136, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.18), transparent 44%),
    rgba(0, 10, 6, 0.74);
  overflow: hidden;
}

.cw-reward.is-max .cw-reward-music-stage {
  min-height: min(50vh, 460px);
}

.cw-reward.is-max .cw-reward-music-core {
  width: 178px;
  height: 178px;
}

.cw-reward.is-max .cw-reward-music-core span {
  font-size: 50px;
}

.cw-reward.is-max .cw-reward-music-core strong {
  font-size: 17px;
}

.cw-reward-music-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    linear-gradient(rgba(143, 255, 209, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 209, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  --grid-scroll-x: 28px;
  --grid-scroll-y: 28px;
  animation: ngGridScroll 7s linear infinite;
}

.cw-reward-music-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #bbf7d0, #22c55e 48%, #0f766e 100%);
  color: #04130b;
  box-shadow: 0 0 34px rgba(34, 197, 94, 0.58);
  z-index: 2;
}

.cw-reward-music-core span {
  font-size: 36px;
  line-height: 1;
}

.cw-reward-music-core strong {
  font-size: 13px;
  line-height: 1;
}

.cw-reward-music-core b {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.cw-reward-music.is-playing .cw-reward-music-core {
  animation: ngCorePulse 1.6s ease-in-out infinite;
}

.cw-reward-music-cards {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cw-song-orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 38px;
  /* flat parametric orbit via shared ngOrbit (nuclear-game-common.css) */
  --orbit-step: 72deg;
  --orbit-dist: 132px;
  --orbit-tilt: 0deg;
  --orbit-fade: 1;
  --orbit-fade-mid: 1;
  --orbit-min-scale: 1;
  --orbit-max-scale: 1;
  border: 1px solid rgba(0, 255, 136, 0.56);
  border-left: 3px solid var(--song-accent, #0f8);
  border-radius: 5px;
  background: rgba(0, 16, 10, 0.92);
  color: #8fffd1;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: 900;
  padding: 6px 7px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--song-accent, #0f8), transparent 50%);
  transform:
    rotate(calc(var(--i) * 72deg))
    translateX(var(--orbit-dist))
    rotate(calc(var(--i) * -72deg));
}

.cw-reward.is-max .cw-song-orbit-card {
  width: 118px;
  height: 54px;
  font-size: 10px;
  --orbit-dist: 210px;
}

.cw-reward.is-max .cw-reward-lyric-rain .nuclear-lyric-chip {
  max-width: 72%;
  font-size: 13px;
  padding: 10px 12px;
}

.cw-reward-music.is-playing .cw-song-orbit-card {
  animation: ngOrbit 10s linear infinite;
  animation-delay: calc(var(--i) * -1.4s);
}

.cw-song-orbit-card span {
  display: block;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-song-orbit-card b {
  display: block;
  margin-top: 4px;
  color: var(--song-accent, #0f8);
}

.cw-reward-lyric-rain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.cw-reward-lyric-rain .nuclear-lyric-chip {
  position: absolute;
  left: var(--left, 12px);
  top: -40px;
  max-width: 62%;
  border: 1px solid rgba(143, 255, 209, 0.42);
  border-radius: 8px;
  background: rgba(0, 10, 6, 0.82);
  color: #e5edf8;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.18);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  padding: 7px 9px;
  transform: rotate(var(--rot, 0deg));
  animation: ngLyricFall var(--dur, 9s) linear forwards;
}

.cw-reward-lyric-rain .nuclear-lyric-chip.section {
  color: #ffd16a;
  border-color: rgba(255, 209, 106, 0.48);
}

.cw-reward-music-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.cw-reward-music-controls label {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cw-reward-music-controls select,
.cw-reward-music-controls button {
  min-width: 0;
  border: 1px solid rgba(147, 197, 253, 0.44);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #e5edf8;
  font: inherit;
  font-weight: 800;
  padding: 9px 10px;
}

.cw-reward-music-controls button {
  cursor: pointer;
}

.cw-reward-music-controls button:hover,
.cw-reward-music-controls button:focus-visible {
  background: rgba(37, 99, 235, 0.72);
}

.cw-reward-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-reward-actions button {
  border: 1px solid rgba(147, 197, 253, 0.62);
  border-radius: 8px;
  background: rgba(30, 64, 175, 0.58);
  color: #e5edf8;
  cursor: pointer;
  font-weight: 850;
  padding: 11px 15px;
}

.cw-reward-actions button:hover,
.cw-reward-actions button:focus-visible {
  background: rgba(37, 99, 235, 0.8);
}

/* orbit / pulse / grid / fleet / lyric-fall keyframes are shared via
   nuclear-game-common.css — only page-specific keyframes remain here */

@keyframes cwRewardShip {
  0%, 100% { transform: translate(-128px, 16px) rotate(-38deg); opacity: 0.72; }
  50% { transform: translate(96px, -18px) rotate(32deg); opacity: 1; }
}

@keyframes cwCellSolved {
  0% { background: var(--surf); }
  40% { background: #86efac; color: #062413; box-shadow: 0 0 14px rgba(34, 197, 94, 0.55); }
  100% { background: #dcfce7; color: #14532d; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-reward::before,
  .cw-reward-core,
  .cw-reward-orbit,
  .cw-reward-ship,
  .cw-reward-music-grid,
  .cw-reward-music.is-playing .cw-reward-music-core,
  .cw-reward-music.is-playing .cw-song-orbit-card,
  .cw-cell.is-pop .cw-letter,
  .cw-cell.is-flash {
    animation: none;
  }

  .cw-fleet-card {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .cw-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-playfield,
  .cw-choice {
    grid-template-columns: 1fr;
  }

  .cw-board {
    width: min(100%, 680px);
  }

  .cw-reward-card {
    grid-template-columns: 1fr;
  }

  .cw-reward.is-max .cw-reward-card {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 20px);
    overflow: auto;
  }

  .cw-reward-visual {
    min-height: 220px;
  }

  .cw-reward-stats {
    grid-template-columns: 1fr;
  }

  .cw-reward-music-controls {
    grid-template-columns: 1fr;
  }

  .cw-song-orbit-card {
    transform:
      rotate(calc(var(--i) * 72deg))
      translateX(92px)
      rotate(calc(var(--i) * -72deg));
  }
}

@media (max-width: 640px) {
  .cw-shell {
    width: min(100% - 18px, 1180px);
    margin-top: 14px;
  }

  .cw-site-header {
    gap: 7px;
    padding: 0 10px;
  }

  .cw-site-header .site-header-link {
    padding: 6px 7px;
    font-size: 11px;
  }

  .cw-hero,
  .cw-topbar,
  .cw-board-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cw-hero h1 {
    font-size: clamp(28px, 13vw, 46px);
  }

  .cw-mode-grid,
  .cw-clues {
    grid-template-columns: 1fr;
  }

  .cw-mode-card {
    min-height: 0;
  }

  .cw-mode-visual {
    height: 68px;
  }

  .cw-stats {
    justify-content: flex-start;
  }

  .cw-round-actions {
    justify-content: flex-start;
  }

  .cw-board-wrap {
    padding: 9px;
  }

  .cw-board {
    width: min(100%, calc(100vw - 38px));
  }

  .cw-actions {
    justify-content: flex-start;
  }

  .cw-action-group--secondary {
    padding-left: 0;
    border-left: 0;
  }

  .cw-choice-options {
    grid-template-columns: 1fr;
  }

  .cw-clues section + section {
    border-left: 0;
    border-top: 1px solid var(--brd);
  }
}
