/* ===== 404 — page-scoped styles (reskinned to the Mavion home tokens) =====
   Layout (.util hero, .btn, .sec, .wrap, .reveal) all come from /mavion.css.
   This file only styles the "Catch the news" interlude + a little spacing. */

/* Tighten the gap between the utility hero and the game interlude. */
.nf { padding-bottom: clamp(28px, 5vw, 56px); }
.nf .util__inner { max-width: 620px; }

.nf-aside {
  padding-bottom: var(--rhythm);
}
.nf-aside .sec__head {
  text-align: center;
  margin-bottom: 26px;
}
.nf-aside .sec__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* ===== Game shell ===== */
.nf-game {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.nf-game__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.nf-game__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--dim);
}
.nf-game__title svg { width: 18px; height: 18px; color: var(--dimmer); }

.nf-game__stats {
  display: flex;
  gap: 22px;
}
.nf-game__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.nf-game__stat-label {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dimmer);
  margin-bottom: 5px;
}
.nf-game__stat-value {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
}

/* ===== Play field ===== */
.nf-game__field {
  position: relative;
  width: 100%;
  height: 420px;
  background:
    radial-gradient(ellipse at 50% -10%, var(--blue-soft) 0%, transparent 55%),
    var(--bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: none;
}
.nf-game__field.dragging { cursor: grabbing; }

/* The catcher — a blue interactive surface (affordance). */
.nf-game__catcher {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 56px;
  background: var(--blue);
  border-radius: 13px 13px 7px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 10px 30px -10px rgba(76,141,255,.55);
  transition: transform .08s linear;
  z-index: 5;
}
.nf-game__catcher svg { width: 26px; height: 26px; color: #04060c; }
.nf-game__catcher::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 7px;
  right: 7px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 4px 4px 0 0;
}

/* ===== Falling items ===== */
.nf-item {
  position: absolute;
  top: -40px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .04em;
  color: #04060c;
  background: var(--white);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.7);
  z-index: 3;
  user-select: none;
}
/* Fake headlines — muted, clearly inert. */
.nf-item--fake {
  background: var(--bg-raised);
  color: var(--dimmer);
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 16px -10px rgba(0,0,0,.8);
}
/* Bonus star — the reward, the only interactive-blue token in the field. */
.nf-item--bonus {
  background: var(--blue);
  color: #04060c;
  font-size: 1rem;
  box-shadow: 0 0 22px -2px rgba(76,141,255,.6), 0 6px 18px -8px rgba(0,0,0,.6);
  animation: nfBonus 1.1s ease-in-out infinite alternate;
}
@keyframes nfBonus {
  to { filter: brightness(1.12); }
}

/* ===== Floating score popup ===== */
.nf-pop {
  position: absolute;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  z-index: 10;
  animation: nfPop .9s cubic-bezier(.16,1,.3,1) forwards;
}
.nf-pop--good { color: var(--white); }
.nf-pop--bad  { color: var(--red); }
@keyframes nfPop {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* ===== Overlay (start / game over) ===== */
.nf-game__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,9,11,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity .3s cubic-bezier(.16,1,.3,1);
}
.nf-game__overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.nf-game__overlay-inner {
  text-align: center;
  padding: 30px;
  max-width: 340px;
}
.nf-game__overlay-inner h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0 0 12px;
}
.nf-game__overlay-inner p {
  color: var(--dim);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 22px;
}
.nf-game__overlay-inner p strong { color: var(--white); font-weight: 600; }
.nf-game__overlay-inner .btn svg { width: 16px; height: 16px; }

.nf-game__overlay-inner kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  margin: 0 1px;
  color: var(--text);
}

.nf-game__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: .76rem;
  color: var(--dim);
}
.nf-game__hint svg { width: 15px; height: 15px; color: var(--dimmer); }

/* Catcher shake on miss / fake catch. */
@keyframes nfShake {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translateX(calc(-50% - 6px)); }
  75% { transform: translateX(calc(-50% + 6px)); }
}
.nf-game__catcher.shake { animation: nfShake .25s ease; }

@media (max-width: 768px) {
  .nf-game { padding: 18px; }
  .nf-game__field { height: 360px; }
  .nf-game__stats { gap: 16px; }
  .nf-game__stat-value { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-item--bonus { animation: none; }
  .nf-game__overlay { transition: none; }
}
