/* Neuriosity — Stroop Test playfield.
   Shared chrome lives in ../_shared/game-kit.css */

.neu-word {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  color: var(--ink, #062b63);
  font-size: clamp(calc(var(--gu) * 7), calc(var(--gu) * 13), calc(var(--gu) * 13));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 80ms linear;
}

.neu-word.is-right { animation: neu-word-yes 260ms ease; }
.neu-word.is-wrong { animation: neu-word-no 320ms ease; }

@keyframes neu-word-yes {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes neu-word-no {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(calc(var(--gu) * -1.4)); }
  75% { transform: translateX(calc(var(--gu) * 1.4)); }
}

.neu-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--gu) * 1.4);
  width: min(100%, calc(var(--gu) * 104));
  flex: 0 0 auto;
}

.neu-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gu) * 1.1);
  min-height: calc(var(--gu) * 8);
  padding: 0 calc(var(--gu) * 1.6);
  color: var(--navy, #062b63);
  font: inherit;
  font-size: calc(var(--gu) * 2.6);
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
  border: calc(var(--gu) * 0.3) solid rgba(6, 43, 99, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}

.neu-choice:hover,
.neu-choice:focus-visible {
  background: #f6fbff;
  border-color: var(--swatch);
  transform: translateY(calc(var(--gu) * -0.3));
}

.neu-choice__dot {
  flex: 0 0 auto;
  width: calc(var(--gu) * 3);
  height: calc(var(--gu) * 3);
  background: var(--swatch);
  border-radius: 50%;
  box-shadow: inset 0 0 0 calc(var(--gu) * 0.3) rgba(255, 255, 255, 0.55);
}

.neu-choices.is-locked .neu-choice { cursor: default; }

.neu-timer {
  width: min(100%, calc(var(--gu) * 70));
  height: calc(var(--gu) * 1.4);
  overflow: hidden;
  background: rgba(6, 43, 99, 0.12);
  border-radius: 999px;
}

.neu-timer__fill {
  width: 100%;
  height: 100%;
  background: var(--neu-accent, #f15f6d);
  border-radius: 999px;
  transform-origin: left center;
  transition: transform linear;
}

@media (max-width: 560px) {
  .neu-choices { grid-template-columns: repeat(2, 1fr); }
  .neu-choice { font-size: calc(var(--gu) * 2.9); }
}


/* Stroop intro: keep this block identical in the app and website. */
.stroop-intro.stroop-intro {
  display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: 12px; width: 100%; height: 100%; padding: 54px 22px 28px;
  overflow-y: auto; overscroll-behavior: contain; color: #062b63;
  font-family: "Poppins", -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
  text-align: center;
}
.stroop-intro > * { flex-shrink: 0; }
.stroop-intro .stroop-intro__eyebrow {
  margin: 0; color: #35628b; font-size: 11px; font-weight: 700;
  line-height: 1.4; letter-spacing: .16em;
}
.stroop-intro .stroop-intro__mascot {
  display: block; width: auto; max-width: 65%; height: clamp(148px, 25vh, 208px);
  margin: 0; object-fit: contain;
}
.stroop-intro .stroop-intro__title {
  margin: 0; color: #062b63; font-size: clamp(30px, 5vw, 38px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.04em;
}
.stroop-intro .stroop-intro__body {
  max-width: 430px; margin: 0; color: #526b8e; font-size: 15px;
  font-weight: 400; line-height: 1.65;
}
.stroop-intro__body strong { color: #062b63; font-weight: 700; }
.stroop-intro .stroop-intro__meta {
  display: flex; justify-content: center; gap: 12px; margin: 0; color: #35628b;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
.stroop-intro .stroop-intro__best {
  margin: 0; padding: 5px 15px; color: #062b63; background: #dff4ff;
  border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.5;
}
.stroop-intro [hidden] { display: none; }
.stroop-intro .stroop-intro__start {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; max-width: 100%; margin: 4px 0 0; padding: 13px 28px;
  color: #fff; background: #0878e8; border: 0; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(8,120,232,.18);
  font: inherit; font-size: 16px; font-weight: 800; line-height: 1.5;
  cursor: pointer; touch-action: manipulation;
}
.stroop-intro .stroop-intro__start:hover { background: #0666c7; }
.stroop-intro .stroop-intro__start:focus-visible { outline: 3px solid #062b63; outline-offset: 4px; }
.stage[data-game-mount="stroop-test"],
.play-frame--stroop .play-frame__screen {
  background: radial-gradient(circle at 50% 34%, #fff 0%, #effaff 62%, #dcefff 100%);
}
.play-frame--stroop .play-frame__screen:has(.stroop-intro) {
  aspect-ratio: auto; height: clamp(540px, 75vh, 700px);
}
.play-frame--stroop .play-frame__label { font-size: 16px; }
.play-frame--stroop .play-frame__instructions > span { background: #0878e8; border-color: #dff4ff; }
.play-frame--stroop:fullscreen .play-frame__screen:has(.stroop-intro) {
  width: 100%; height: 100%; min-height: 0;
}
@media (max-width: 360px), (max-height: 620px) {
  .stroop-intro.stroop-intro { gap: 9px; padding: 48px 16px 20px; }
  .stroop-intro .stroop-intro__mascot { height: 124px; }
  .stroop-intro .stroop-intro__title { font-size: 28px; }
  .stroop-intro .stroop-intro__body { font-size: 13px; }
}
