/* Notbroken — Build section (games + trivia). Tokens match the other tools. */
:root {
  --primary: #84C0A0; --primary-deep: #5B8A72; --terra: #E8A375; --text-light: #F2EFEA;
  --surface-bg: rgba(255, 255, 255, 0.12); --surface-border: rgba(255, 255, 255, 0.18); --surface-highlight: rgba(255, 255, 255, 0.24);
  --good: #7ED6A5; --bad: #FF8A8A;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #15181D; color: var(--text-light); }
.page-container {
  min-height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 1rem;
  background: linear-gradient(-45deg, #151A2B, #1E3A2E, #1A1F36, #2A4A3A); background-size: 400% 400%; animation: nbGradient 25s ease infinite;
}
@keyframes nbGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .page-container { animation: none; } }
main { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 1.25rem; padding: 0.5rem 0 1rem; }
h1, h2, h3 { font-family: 'Literata', Georgia, serif; font-weight: 600; margin: 0; }
.nb-hero { text-align: center; padding: 1.2rem 0.5rem 0.4rem; }
.nb-hero__eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 700; margin: 0 0 8px; }
.nb-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.15; }
.nb-hero p { max-width: 560px; margin: 12px auto 0; color: rgba(242, 239, 234, .82); line-height: 1.6; font-size: 15px; }
.nb-panel { background: var(--surface-bg); border: 1px solid var(--surface-border); border-radius: 20px; padding: 1.1rem 1.2rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }
/* ---- skill colours (one gradient per primary skill) ---- */
:root {
  --sk-memory: #7FB3FF; --sk-memory-2: #5B83D6;
  --sk-speed: #E8A375; --sk-speed-2: #C9764A;
  --sk-attention: #F2D06B; --sk-attention-2: #C9A33E;
  --sk-visual: #C98BE8; --sk-visual-2: #9A5FC2;
  --sk-spatial: #6FD6CF; --sk-spatial-2: #3FA59E;
  --sk-reasoning: #84C0A0; --sk-reasoning-2: #5B8A72;
  --sk-flexibility: #FF9BB3; --sk-flexibility-2: #D66A86;
  --sk-knowledge: #F7C98B; --sk-knowledge-2: #D59A4E;
}
.nb-card, .nb-intro__icon { --sk: var(--primary); --sk2: var(--primary-deep); }
.nb-card--memory, .nb-chip-skill--memory { --sk: var(--sk-memory); --sk2: var(--sk-memory-2); }
.nb-card--speed, .nb-chip-skill--speed { --sk: var(--sk-speed); --sk2: var(--sk-speed-2); }
.nb-card--attention, .nb-chip-skill--attention { --sk: var(--sk-attention); --sk2: var(--sk-attention-2); }
.nb-card--visual, .nb-chip-skill--visual { --sk: var(--sk-visual); --sk2: var(--sk-visual-2); }
.nb-card--spatial, .nb-chip-skill--spatial { --sk: var(--sk-spatial); --sk2: var(--sk-spatial-2); }
.nb-card--reasoning, .nb-chip-skill--reasoning { --sk: var(--sk-reasoning); --sk2: var(--sk-reasoning-2); }
.nb-card--flexibility, .nb-chip-skill--flexibility { --sk: var(--sk-flexibility); --sk2: var(--sk-flexibility-2); }
.nb-card--knowledge, .nb-chip-skill--knowledge { --sk: var(--sk-knowledge); --sk2: var(--sk-knowledge-2); }
.nb-chip-skill--all { --sk: #F2EFEA; --sk2: #B9B4AC; }

/* ---- HUD: level ring, XP, streak, badges ---- */
.nb-hud { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .nb-hud { grid-template-columns: 1.2fr 1fr; } .nb-hud__badges { grid-column: 1 / -1; } }
.nb-hud__level { display: flex; align-items: center; gap: 14px; }
.nb-hud__ring { --p: 0; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px -12px rgba(132,192,160,.8); }
.nb-hud__ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: linear-gradient(180deg, #1F3A33, #161B2C); }
.nb-hud__num { position: relative; font-family: 'Literata', Georgia, serif; font-size: 1.7rem; font-weight: 600; color: var(--text-light); }
.nb-hud__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.nb-hud__meta strong { font-family: 'Literata', Georgia, serif; font-weight: 600; font-size: 1.1rem; }
.nb-hud__meta > span { font-size: 12.5px; color: rgba(242,239,234,.72); }
.nb-hud__bar { display: block; width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.nb-hud__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary-deep), var(--primary)); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.nb-hud__stats { display: flex; gap: 8px; }
.nb-hud__stat { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 11.5px; color: rgba(242,239,234,.75); text-align: center; }
.nb-hud__stat em { font-style: normal; font-family: 'Literata', Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--text-light); line-height: 1; }
.nb-hud__stat.is-hot em { color: var(--terra); }
.nb-hud__stat.is-hot em::before { content: '🔥'; font-size: .8em; margin-right: 3px; }
.nb-hud__stat small { font-size: 10px; color: var(--terra); }
.nb-hud__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: rgba(242,239,234,.45); }
.nb-badge i { font-style: normal; font-size: 12px; }
.nb-badge.is-on { background: rgba(242,208,107,.14); border-color: rgba(242,208,107,.45); color: #F2D06B; }

/* ---- skill picker + decide ---- */
.nb-skillbar__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.nb-skillbar__head .nb-group__title { margin: 0; }
.nb-btn.nb-btn--dice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 40px; font-size: 14px; background: linear-gradient(135deg, var(--terra), #C9764A); border-color: transparent; color: #13171D; }
.nb-btn--dice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nb-btn--dice svg circle { fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) { .nb-btn.nb-btn--dice:hover { background: linear-gradient(135deg, #F0B98F, var(--terra)); } }
.nb-skillbar__chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .nb-skillbar__chips { grid-template-columns: repeat(3, 1fr); } }
.nb-chip-skill { display: flex; align-items: center; gap: 9px; font: inherit; text-align: left; color: var(--text-light); cursor: pointer; padding: 8px 10px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .15s, border-color .15s, transform .15s; min-height: 56px; }
@media (hover: hover) and (pointer: fine) { .nb-chip-skill:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); } }
.nb-chip-skill:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.nb-chip-skill.is-on { background: color-mix(in srgb, var(--sk) 18%, rgba(255,255,255,.06)); border-color: var(--sk); }
@supports not (background: color-mix(in srgb, red 10%, blue)) { .nb-chip-skill.is-on { background: rgba(255,255,255,.14); } }
.nb-chip-skill__ring { --p: 0; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; background: conic-gradient(var(--sk) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.nb-chip-skill__ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #1A2430; }
.nb-chip-skill__ring svg { position: relative; width: 18px; height: 18px; fill: none; stroke: var(--sk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nb-chip-skill__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nb-chip-skill__text strong { font-size: 12.5px; line-height: 1.2; }
.nb-chip-skill__text small { font-size: 10.5px; color: rgba(242,239,234,.65); }
@media (max-width: 420px) { .nb-chip-skill { padding: 7px 6px; gap: 6px; min-height: 52px; } .nb-chip-skill__ring { flex-basis: 32px; width: 32px; height: 32px; } .nb-chip-skill__ring svg { width: 15px; height: 15px; } .nb-chip-skill__text strong { font-size: 11.5px; } .nb-chip-skill__text small { font-size: 10px; } }

/* ---- daily mix ---- */
.nb-mix { display: flex; flex-direction: column; gap: 10px; }
.nb-mix__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nb-mix__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.nb-mix__progress { font-size: 12px; color: rgba(242,239,234,.7); }
.nb-mix__progress.is-done { color: var(--good); font-weight: 600; }
.nb-mix__items { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-mix__item { position: relative; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-light); background: rgba(255,255,255,.08); border: 1px solid var(--surface-border); border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer; }
.nb-mix__item svg { width: 18px; height: 18px; color: var(--primary); }
@media (hover: hover) and (pointer: fine) { .nb-mix__item:hover { background: rgba(255,255,255,.16); } }
.nb-mix__item.is-done { border-color: rgba(126,214,165,.6); background: rgba(126,214,165,.12); }
.nb-mix__tick { font-style: normal; color: var(--good); font-weight: 700; }

/* ---- game cards ---- */
.nb-group__title { font-size: 1.05rem; color: rgba(242,239,234,.9); margin: 0 0 10px 4px; }
.nb-grid__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.nb-grid__head .nb-group__title { margin: 0; }
.nb-grid__count { font-size: 12px; color: rgba(242,239,234,.6); background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 8px; }
.nb-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .nb-grid { grid-template-columns: 1fr 1fr; } }
.nb-card { position: relative; display: flex; flex-direction: column; background: var(--surface-bg); border: 1px solid var(--surface-border); border-radius: 18px; overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nb-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--sk), var(--sk2)); opacity: .9; }
@media (hover: hover) and (pointer: fine) { .nb-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); } }
.nb-card.is-roulette { border-color: var(--terra); box-shadow: 0 0 0 2px var(--terra), 0 0 30px rgba(232,163,117,.45); transform: scale(1.015); }
.nb-card__main { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--text-light); cursor: pointer; background: none; border: 0; padding: 14px 14px 10px 16px; }
.nb-card__main:focus-visible { outline: 3px solid var(--terra); outline-offset: -3px; border-radius: 18px; }
.nb-card__tile { position: relative; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--sk), var(--sk2)); color: #13171D; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -12px var(--sk); }
.nb-card__tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 55%); pointer-events: none; }
.nb-card__icon { display: flex; }
.nb-card__icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
.nb-prog__icon svg, .nb-intro__icon svg { width: 26px; height: 26px; }
.nb-card__lvl { position: absolute; right: -6px; bottom: -6px; font-size: 10px; font-weight: 800; letter-spacing: .3px; background: #161B2C; color: var(--sk); border: 1px solid var(--sk); border-radius: 999px; padding: 2px 6px; }
.nb-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nb-card__name { font-family: 'Literata', Georgia, serif; font-size: 1.08rem; font-weight: 600; }
.nb-card__tag { font-size: 13px; color: rgba(242,239,234,.78); line-height: 1.4; }
.nb-card__skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.nb-skill { font-size: 10.5px; font-weight: 600; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(242,239,234,.85); }
.nb-skill--memory { background: rgba(127,179,255,.22); } .nb-skill--speed { background: rgba(232,163,117,.24); } .nb-skill--attention { background: rgba(242,208,107,.22); }
.nb-skill--visual { background: rgba(201,139,232,.22); } .nb-skill--spatial { background: rgba(111,214,207,.22); } .nb-skill--reasoning { background: rgba(132,192,160,.25); } .nb-skill--flexibility { background: rgba(255,155,179,.22); } .nb-skill--knowledge { background: rgba(247,201,139,.22); }
.nb-card__stats { display: flex; gap: 10px; font-size: 12px; color: rgba(242,239,234,.7); margin-top: 2px; }
.nb-card__stat strong { color: var(--primary); }
.nb-card__stat--new { color: var(--terra); }
.nb-card__play { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #13171D; background: var(--primary); border-radius: 999px; padding: 8px 14px; }
.nb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px 10px 16px; font-size: 12px; }
.nb-card__origin { color: rgba(242,239,234,.6); text-decoration: none; min-width: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-card__origin span { color: rgba(242,239,234,.85); border-bottom: 1px dotted rgba(242,239,234,.4); }
.nb-card__origin i { font-style: normal; color: var(--primary); }
@media (hover: hover) and (pointer: fine) { .nb-card__origin:hover span { color: var(--primary); border-bottom-color: var(--primary); } }
.nb-card__demo { flex: 0 0 auto; font: inherit; font-size: 12px; font-weight: 600; color: var(--primary); background: none; border: 1px solid rgba(132,192,160,.4); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nb-card__demo:hover { background: rgba(132,192,160,.15); } }
.nb-card__demo:focus-visible, .nb-card__origin:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

/* ---- skill grid in the progress panel ---- */
.nb-skillgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 12px; }
@media (min-width: 560px) { .nb-skillgrid { grid-template-columns: repeat(4, 1fr); } }
.nb-skillgrid__item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.nb-skillgrid__item > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.nb-skillgrid__item small { color: rgba(242,239,234,.65); font-size: 10.5px; }

/* progress */
.nb-progress__summary { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(242,239,234,.85); margin-bottom: 10px; }
.nb-progress__summary strong { color: var(--primary); font-size: 18px; }
.nb-progress__empty { margin: 0; color: rgba(242,239,234,.75); font-size: 14px; line-height: 1.55; }
.nb-prog { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.nb-prog__head { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.nb-prog__icon { color: var(--primary); display: flex; } .nb-prog__icon svg { width: 18px; height: 18px; }
.nb-prog__name { font-weight: 600; flex: 1 1 auto; }
.nb-prog__best { font-size: 12.5px; color: var(--primary); }
.nb-prog__trend { font-size: 12.5px; color: rgba(242,239,234,.7); margin-top: 2px; }
.nb-progress__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nb-spark { display: block; }
.nb-spark__area { fill: rgba(132,192,160,.18); } .nb-spark__line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nb-spark__best { fill: var(--terra); } .nb-spark__last { fill: #fff; } .nb-spark__empty { fill: rgba(242,239,234,.55); font-size: 12px; }
/* buttons */
.nb-btn { font: inherit; font-size: 15px; font-weight: 600; border-radius: 12px; border: 1px solid var(--surface-border); background: rgba(255,255,255,.1); color: var(--text-light); padding: 12px 18px; min-height: 46px; cursor: pointer; transition: background .15s, transform .1s; }
@media (hover: hover) and (pointer: fine) { .nb-btn:hover { background: rgba(255,255,255,.18); } }
.nb-btn:active { transform: scale(.98); }
.nb-btn:disabled { opacity: .45; cursor: default; transform: none; }
.nb-btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.nb-btn--primary { background: var(--primary); border-color: var(--primary); color: #13171D; }
@media (hover: hover) and (pointer: fine) { .nb-btn--primary:hover { background: #A6D2BC; } }
.nb-btn--ghost { background: transparent; }
.nb-btn--big { flex: 1 1 0; min-height: 64px; font-size: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.nb-btn--big small { font-size: 11px; font-weight: 500; opacity: .6; }
.nb-btn--big.is-on { background: var(--primary); color: #13171D; }
/* stage */
.nb-stage.modal-overlay { display: flex; justify-content: center; align-items: flex-start; padding: 0; background: rgba(10, 13, 20, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 1100; }
.nb-stage.modal-overlay.visible { opacity: 1; visibility: visible; }
.nb-stage__card:focus, .nb-stage__card:focus-visible { outline: none; }
.nb-stage__card { width: 100%; max-width: 640px; min-height: 100%; background: linear-gradient(180deg, #1B2A2A 0%, #161B2C 100%); display: flex; flex-direction: column; }
@media (min-width: 700px) { .nb-stage.modal-overlay { padding: 24px 16px; align-items: flex-start; } .nb-stage__card { min-height: 0; border-radius: 22px; border: 1px solid var(--surface-border); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); margin-top: auto; margin-bottom: auto; } }
.nb-stage__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; background: rgba(22,27,44,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2; border-radius: 22px 22px 0 0; }
.nb-stage__back { font: inherit; font-size: 14px; font-weight: 600; color: var(--primary); background: none; border: 0; cursor: pointer; padding: 8px 6px; min-height: 40px; }
.nb-stage__title { flex: 1 1 auto; font-family: 'Literata', Georgia, serif; font-size: 1.1rem; font-weight: 600; text-align: center; }
.nb-stage__status { min-width: 60px; text-align: right; font-size: 13px; color: rgba(242,239,234,.7); }
.nb-stage__body { padding: 18px 16px 28px; flex: 1 1 auto; }
html.nb-stage-open body { overflow: hidden; }
/* intro */
.nb-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nb-intro__icon { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, var(--sk), var(--sk2)); color: #13171D; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -14px var(--sk); } .nb-intro__icon svg { width: 34px; height: 34px; stroke-width: 2.2; }
.nb-intro__origin { margin: 0; font-size: 13px; color: rgba(242,239,234,.72); max-width: 480px; line-height: 1.5; }
.nb-intro__origin a { color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(132,192,160,.6); }
.nb-intro__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; width: 100%; }
.nb-intro__tag { margin: 0; font-size: 15px; color: rgba(242,239,234,.85); line-height: 1.5; max-width: 460px; }
.nb-intro__skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.nb-intro__h { font-size: 1rem; margin-top: 8px; }
.nb-intro__steps { text-align: left; margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: rgba(242,239,234,.88); max-width: 480px; }
.nb-intro__steps li { margin-bottom: 6px; }
.nb-intro__options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.nb-opt { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: rgba(242,239,234,.7); text-align: left; }
.nb-opt select { font: inherit; font-size: 14px; color: var(--text-light); background: rgba(255,255,255,.1); border: 1px solid var(--surface-border); border-radius: 10px; padding: 9px 12px; min-height: 42px; }
.nb-opt select option { color: #1A1F36; }
.nb-intro__best { margin: 2px 0; font-size: 13.5px; color: rgba(242,239,234,.8); } .nb-intro__best strong { color: var(--primary); }
.nb-intro__start { min-width: 180px; font-size: 17px; }
.nb-intro__demo { font-size: 14.5px; }
.nb-evidence__refs a { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nb-evidence__refs a:hover { text-decoration: underline; } }
.nb-evidence { width: 100%; max-width: 520px; text-align: left; margin-top: 14px; font-size: 13.5px; }
.nb-evidence summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 8px 0; list-style: none; }
.nb-evidence summary::-webkit-details-marker { display: none; }
.nb-evidence summary::before { content: '\25B8  '; } .nb-evidence[open] summary::before { content: '\25BE  '; }
.nb-evidence__body { color: rgba(242,239,234,.82); line-height: 1.55; }
.nb-evidence__body ul { padding-left: 18px; margin: 8px 0; } .nb-evidence__body li { margin-bottom: 5px; font-size: 12.5px; }
.nb-evidence__note { font-size: 12.5px; color: rgba(242,239,234,.65); border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; }
/* play */
.nb-play { display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* demo mode: caption bar + tap rings */
.nb-demo-bar { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 10px 12px; border-radius: 14px; background: rgba(232,163,117,.12); border: 1px solid rgba(232,163,117,.4); }
.nb-demo-bar__badge { flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #13171D; background: var(--terra); border-radius: 999px; padding: 4px 8px; }
.nb-demo-bar__text { flex: 1 1 auto; font-size: 13.5px; line-height: 1.45; color: var(--text-light); min-height: 1.4em; }
.nb-demo-bar__skip { flex: 0 0 auto; font-size: 12.5px; padding: 7px 10px; min-height: 36px; }
.nb-play.is-demo { pointer-events: none; }
.nb-tapring { position: absolute; z-index: 5; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 3px solid var(--terra); box-shadow: 0 0 0 4px rgba(232,163,117,.35); pointer-events: none; animation: nbTap .7s ease-out forwards; }
@keyframes nbTap { 0% { transform: scale(.4); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.nb-stage__card { position: relative; }
.nb-play__hint { margin: 0; font-size: 14px; color: rgba(242,239,234,.78); text-align: center; min-height: 1.3em; }
.nb-play__hint strong, .nb-play__hint span { color: var(--text-light); }
.is-good { color: var(--good) !important; } .is-bad { color: var(--bad) !important; }
.nb-error { color: var(--bad); }
/* results */
.nb-results { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nb-results__label { margin: 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.nb-results__score { margin: 0; font-family: 'Literata', Georgia, serif; font-size: 2.6rem; font-weight: 600; line-height: 1.1; }
.nb-results__best { margin: 0; color: var(--terra); font-weight: 700; } .nb-results__sub { margin: 0; color: rgba(242,239,234,.7); font-size: 14px; }
.nb-results__lines { list-style: none; margin: 6px 0; padding: 0; font-size: 14px; color: rgba(242,239,234,.85); line-height: 1.6; }
.nb-results__trend { margin: 0; font-size: 13px; color: rgba(242,239,234,.7); min-height: 1.2em; }
.nb-results__tip { margin: 6px 0 0; font-size: 13.5px; color: rgba(242,239,234,.8); max-width: 440px; line-height: 1.5; background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 14px; }
.nb-results__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.nb-results__xp { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 2px; }
.nb-results__xpgain { font-weight: 800; color: var(--terra); font-size: 15px; }
.nb-results__xpmeta { font-size: 12.5px; color: rgba(242,239,234,.7); }
.nb-results__badge { margin: 0; color: #F2D06B; font-weight: 700; font-size: 14px; }
.nb-results--demo .nb-results__score { color: var(--terra); }
.nb-results .nb-spark { max-width: 360px; margin-top: 8px; }
/* ---- game boards ---- */
.nb-corsi-board, .nb-tr-board, .nb-ch-board, .nb-fv-board, .nb-hm-board { position: relative; width: min(100%, 420px); aspect-ratio: 1; background: rgba(0,0,0,.25); border-radius: 18px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.nb-corsi-block { position: absolute; width: 14%; height: 14%; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.12); cursor: pointer; transition: background .1s, transform .1s; padding: 0; }
.nb-corsi-block.is-lit { background: var(--primary); box-shadow: 0 0 20px rgba(132,192,160,.7); }
.nb-corsi-block.is-tap { background: var(--terra); transform: scale(1.08); }
.is-showing .nb-corsi-block { cursor: default; }
.nb-ch-item { position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--c); border-radius: 3px; }
.nb-ch-item--circle { border-radius: 50%; } .nb-ch-item--diamond { transform: translate(-50%, -50%) rotate(45deg); border-radius: 4px; }
.nb-ch-item--triangle { background: none; width: 0; height: 0; border-left: 5.5vmin solid transparent; border-right: 5.5vmin solid transparent; border-bottom: 10vmin solid var(--c); max-width: 0; border-left-width: min(5.5vmin, 22px); border-right-width: min(5.5vmin, 22px); border-bottom-width: min(10vmin, 40px); aspect-ratio: auto; }
.nb-oo-cell .nb-ch-item { position: static; transform: none; width: 60%; } .nb-oo-cell .nb-ch-item--diamond { transform: rotate(45deg); width: 48%; }
.nb-oo-cell .nb-ch-item--triangle { width: 0; }
.nb-rt-light { width: min(220px, 60vw); aspect-ratio: 1; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: rgba(242,239,234,.7); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; transition: background .05s; }
.nb-rt-light.is-go { background: var(--good); color: #13171D; box-shadow: 0 0 40px rgba(126,214,165,.6); }
.nb-rt-arrows { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.nb-rt-arrow { font-size: 4rem; line-height: 1; min-height: 4.5rem; color: var(--terra); }
.nb-rt-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.nb-rt-btns .nb-btn--big { font-size: 26px; }
.nb-st-word { font-size: 3rem; font-weight: 800; letter-spacing: 2px; min-height: 4rem; line-height: 4rem; }
.nb-st-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.nb-st-btn { height: 64px; border-radius: 14px; border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nb-st-btn span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); } .nb-st-btn small { font-size: 11px; color: rgba(242,239,234,.6); }
.nb-tr-dot { position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--text-light); font: inherit; font-weight: 700; font-size: clamp(13px, 3.2vmin, 18px); cursor: pointer; padding: 0; }
.nb-tr-dot.is-done { background: var(--primary); border-color: var(--primary); color: #13171D; } .nb-tr-dot.is-wrong { background: var(--bad); }
.nb-fv-centre { position: absolute; left: 50%; top: 50%; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; }
.nb-fv-centre.is-circle { opacity: 1; border-radius: 50%; background: var(--primary); } .nb-fv-centre.is-square { opacity: 1; border-radius: 3px; background: var(--primary); }
.nb-fv-centre.is-mask { opacity: 1; background: repeating-linear-gradient(45deg, #888 0 3px, #333 3px 6px); border-radius: 3px; }
.nb-fv-spot { position: absolute; width: 10%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(255,255,255,.15); background: transparent; cursor: pointer; padding: 0; }
.nb-fv-spot.is-target::after { content: '\2605'; color: var(--terra); font-size: clamp(16px, 5vmin, 28px); line-height: 1; }
.nb-fv-spot.is-distractor::after { content: '\25CF'; color: rgba(242,239,234,.35); font-size: clamp(14px, 4vmin, 22px); }
.nb-fv-spot.is-mask { background: repeating-linear-gradient(45deg, #888 0 3px, #333 3px 6px); }
.nb-fv-spot:not(:disabled) { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.nb-fv-spot.is-reveal { background: var(--terra); }
.nb-fv-q { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nb-oo-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; width: min(100%, 400px); }
.nb-oo-cell { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nb-oo-cell.is-wrong { background: rgba(255,138,138,.3); }
.nb-rot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 420px); }
.nb-rot-a, .nb-rot-b { aspect-ratio: 1; background: rgba(0,0,0,.25); border-radius: 18px; border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.nb-rot-shape { width: 85%; height: 85%; }
.nb-mx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(100%, 330px); }
.nb-mx-cell { aspect-ratio: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.nb-mx-cell svg, .nb-mx-opt svg { width: 80%; height: 80%; }
.nb-mx-cell.is-missing { font-family: 'Literata', Georgia, serif; font-size: 2rem; color: var(--terra); border-style: dashed; }
.nb-mx-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 360px); }
.nb-mx-opt { aspect-ratio: 1; background: rgba(255,255,255,.1); border: 2px solid var(--surface-border); border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
@media (hover: hover) and (pointer: fine) { .nb-mx-opt:hover { border-color: var(--primary); } }
.nb-mx-opt.is-wrong { border-color: var(--bad); }
.nb-hm-svg { width: 100%; height: 100%; display: block; }
.nb-hm-path { fill: none; stroke: var(--primary); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nb-hm-dot { fill: var(--terra); } .nb-hm-start { fill: none; stroke: var(--text-light); stroke-width: .8; } .nb-hm-answer { stroke: var(--good); }
.nb-hm-compass { position: absolute; width: 0; height: 0; }
.nb-hm-dir { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(22,27,44,.9); color: var(--text-light); font-size: 18px; cursor: pointer; transform: rotate(var(--a)) translateY(-58px); padding: 0; }
@media (hover: hover) and (pointer: fine) { .nb-hm-dir:hover { background: var(--primary); color: #13171D; } }
/* trivia */
.nb-tv-card { width: 100%; max-width: 560px; }
.nb-tv-topic { margin: 0 0 6px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.nb-tv-q { font-size: 1.25rem; line-height: 1.35; margin: 0 0 14px; }
.nb-tv-opts { display: grid; gap: 8px; }
.nb-tv-opt { text-align: left; font: inherit; font-size: 15px; line-height: 1.4; color: var(--text-light); background: rgba(255,255,255,.08); border: 1px solid var(--surface-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nb-tv-opt:hover:not(:disabled) { border-color: var(--primary); background: rgba(255,255,255,.14); } }
.nb-tv-opt.is-right { border-color: var(--good); background: rgba(126,214,165,.18); } .nb-tv-opt.is-wrong { border-color: var(--bad); background: rgba(255,138,138,.15); }
.nb-tv-opt:disabled { cursor: default; opacity: .9; }
.nb-tv-after { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.nb-tv-verdict { margin: 0; font-weight: 700; }
.nb-tv-why { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(242,239,234,.9); }
.nb-tv-video { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-light); background: rgba(255,255,255,.07); border: 1px solid var(--surface-border); border-radius: 14px; padding: 10px 12px; }
@media (hover: hover) and (pointer: fine) { .nb-tv-video:hover { border-color: var(--terra); } }
.nb-tv-video__play { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--terra); color: #13171D; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nb-tv-video__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .nb-tv-video__text strong { font-size: 13.5px; line-height: 1.3; } .nb-tv-video__text small { font-size: 12px; color: rgba(242,239,234,.65); }
.nb-tv-next { align-self: flex-start; }
/* about-style note */
.nb-note { font-size: 13.5px; line-height: 1.6; color: rgba(242,239,234,.78); }
.nb-note a { color: var(--primary); font-weight: 600; }
@media (max-width: 400px) { .nb-btn--big { font-size: 15px; min-height: 58px; } .nb-st-btns, .nb-rt-btns { gap: 6px; } }

/* ---- taps that register at once, especially on phones ----
 * Game controls answer on the press itself (see onTap in games.js). Here: no double-tap zoom or tap delay on any
 * control, an instant pressed look (no transition on the way in), hover looks only where there is a real mouse (on a
 * phone a tapped button otherwise stays "hovered" and looks still selected), no text selection or callout from a
 * long press on the boards, and fingertip-sized targets for the small dots, spots and arrows. */
button, a, select, summary, .nb-card, .nb-chip-skill { touch-action: manipulation; }
.nb-play { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nb-play button { -webkit-user-select: none; user-select: none; }
.nb-btn:active:not(:disabled), .nb-btn.is-pressed:not(:disabled) { transform: scale(.96); transition: none; }
.nb-play .nb-btn.is-pressed:not(:disabled), .nb-play .nb-btn:active:not(:disabled) { background: rgba(255,255,255,.24); }
.nb-st-btn { transition: transform .12s, border-color .12s, background .12s; }
.nb-st-btn.is-pressed, .nb-st-btn:active { transform: scale(.94); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.16); transition: none; }
.nb-rt-light.is-pressed, .nb-rt-light:active { transform: scale(.97); transition: none; }
.nb-corsi-block.is-pressed { background: var(--terra); transform: scale(1.08); transition: none; }
.nb-oo-cell, .nb-mx-opt, .nb-tv-opt { transition: transform .12s, background .12s, border-color .12s; }
.nb-oo-cell.is-pressed, .nb-oo-cell:active { transform: scale(.93); background: rgba(255,255,255,.14); transition: none; }
.nb-mx-opt.is-pressed:not(:disabled), .nb-mx-opt:active:not(:disabled) { transform: scale(.94); border-color: var(--primary); transition: none; }
.nb-tv-opt:active:not(:disabled) { transform: scale(.985); border-color: var(--primary); background: rgba(255,255,255,.16); transition: none; }
.nb-tr-dot { width: max(11%, 44px); }
.nb-tr-dot::before, .nb-fv-spot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.nb-tr-dot.is-pressed:not(.is-done), .nb-tr-dot:active:not(.is-done) { background: rgba(255,255,255,.3); transform: translate(-50%, -50%) scale(.92); transition: none; }
.nb-fv-spot { width: max(10%, 44px); display: flex; align-items: center; justify-content: center; }
.nb-fv-spot.is-pressed:not(:disabled) { background: rgba(232,163,117,.45); transition: none; }
.nb-hm-dir { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 20px; transform: rotate(var(--a)) translateY(-66px); }
.nb-hm-dir.is-pressed { background: var(--primary); color: #13171D; transform: rotate(var(--a)) translateY(-66px) scale(.92); transition: none; }
/* phones: the game covers the whole screen, so there is nothing behind it to blur — and a live blur under every frame
   makes taps and animations stutter on a phone */
@media (max-width: 699px) {
  .nb-stage.modal-overlay { background: #161B2C; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nb-stage__bar { background: #18202E; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .nb-btn.is-pressed, .nb-st-btn.is-pressed, .nb-oo-cell.is-pressed, .nb-mx-opt.is-pressed, .nb-rt-light.is-pressed { transform: none; } }

/* two-choice answers (Same / Changed, Same / Mirror, Circle / Square): side by side, each half the width — big
   targets for either thumb (they were stacked, only as wide as their words) */
.nb-ch-btns, .nb-rot-btns, .nb-fv-btns { display: flex; gap: 10px; width: 100%; max-width: 420px; }
.nb-ch-btns .nb-btn--big, .nb-rot-btns .nb-btn--big, .nb-fv-btns .nb-btn--big { flex: 1 1 0; min-width: 0; }
/* short phone screens: the whole puzzle and its answers fit without scrolling (a scroll that starts on an answer
   would otherwise press it) */
.nb-mx-grid { width: min(100%, 330px, 39vh); width: min(100%, 330px, 39svh); }
.nb-mx-opts { width: min(100%, 360px, 45vh); width: min(100%, 360px, 45svh); }
.nb-fv-board { width: min(100%, 420px, 52vh); width: min(100%, 420px, 52svh); }
@media (max-width: 699px) {
  .nb-st-btn { height: 74px; }
  .nb-rt-btns .nb-btn--big { min-height: 74px; }
  .nb-ch-btns .nb-btn--big, .nb-rot-btns .nb-btn--big, .nb-fv-btns .nb-btn--big { min-height: 68px; }
}

/* v2.34: games rebuilt to follow their research papers */
.nb-st-patch { display: inline-block; width: min(9rem, 46vw); height: 2.6rem; border-radius: 8px; vertical-align: middle; }
.nb-tr-dot { width: max(10%, 44px); }
.nb-fv-tris { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.nb-fv-tris.is-on { opacity: 1; } .nb-fv-tris path { fill: rgba(242,239,234,.55); }
.nb-fv-mask { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(45deg, #8a8a8a 0 3px, #2e2e2e 3px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 2px, transparent 2px 7px); background-blend-mode: overlay; }
.nb-fv-mask[hidden] { display: none; }
.nb-oo-cell--empty { background: transparent; border-color: transparent; cursor: default; }
.nb-oo-grid { gap: 5px; }
.nb-mx-opts { grid-template-columns: repeat(4, 1fr); gap: 7px; width: min(100%, 400px, 40vh); width: min(100%, 400px, 40svh); }
.nb-hm-board { touch-action: none; user-select: none; -webkit-user-select: none; }
.nb-hm-board #nbHmTex circle { fill: rgba(242,239,234,.42); }
.nb-hm-trail { fill: none; stroke: var(--terra); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.nb-hm-me { fill: var(--terra); stroke: #13171D; stroke-width: .5; }
.nb-hm-start { stroke-width: 1; }
.nb-hm-truth { stroke: var(--good); stroke-width: 1.3; stroke-dasharray: 2.4 1.6; stroke-linecap: round; }
.nb-hm-aim { stroke: var(--terra); stroke-width: 1.6; stroke-linecap: round; }
.nb-hm-ok { position: absolute; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 0; background: var(--primary); color: #13171D; font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.nb-hm-ok[hidden] { display: none; }
.nb-hm-ok.is-pressed { transform: scale(.92); }
.nb-oo-grid { width: min(100%, 400px, 56vh); width: min(100%, 400px, 56svh); }

/* ===================== v2.35: in-game graphics (see the graphics plan) =====================
 * Science rules: timed items (lamp, arrows, words, flashes, squares, lit blocks) never fade, slide or scale — no
 * transitions on them; feedback motion only after an answer; play fields one flat colour; items in a display identical
 * apart from what the paper varies. Decorative motion is switched off with "reduce motion". */
.nb-stage__status { min-width: 0; }
.nb-stage__sound { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(242,239,234,.75); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nb-stage__sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nb-stage__sound[aria-pressed="true"] { color: #13171D; background: var(--primary); border-color: var(--primary); }
.nb-stage__sound:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
/* the game's top line and progress */
.nb-hud2 { width: min(100%, 420px); }
.nb-hud2__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: rgba(242,239,234,.66); }
.nb-hud2__row b, .nb-hud2__row strong { color: var(--text-light); font-weight: 700; }
.nb-hud2__l { min-width: 0; } .nb-hud2__r { text-align: right; flex: 0 0 auto; }
.nb-hud2__bar { height: 6px; margin-top: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.nb-hud2__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary-deep), var(--primary)); transition: width .3s ease-out; }
.nb-chip { display: inline-block; padding: 2px 8px; border-radius: 99px; background: rgba(132,192,160,.16); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.nb-play { gap: 12px; }
/* calm, flat play fields with depth only around the edge */
.nb-corsi-board, .nb-tr-board, .nb-ch-field, .nb-fv-board, .nb-hm-board, .nb-oo-grid, .nb-rot-a, .nb-rot-b {
  background: #0F141D; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; box-shadow: 0 16px 32px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.03); }
.nb-corsi-board, .nb-tr-board, .nb-ch-field, .nb-fv-board, .nb-hm-board, .nb-oo-grid { position: relative; width: min(100%, 420px, 52vh); width: min(100%, 420px, 52svh); aspect-ratio: 1; overflow: hidden; }
/* tactile buttons: a raised edge that presses down */
.nb-play .nb-btn--big, .nb-st-btn, .nb-mx-opt { background: linear-gradient(180deg, #2B3447, #222A3A); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 0 #121722, 0 8px 18px rgba(0,0,0,.28); transition: transform .08s, box-shadow .08s; }
.nb-play .nb-btn--big.is-pressed:not(:disabled), .nb-play .nb-btn--big:active:not(:disabled), .nb-st-btn.is-pressed, .nb-st-btn:active, .nb-mx-opt.is-pressed:not(:disabled), .nb-mx-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #121722, 0 4px 10px rgba(0,0,0,.25); transition: none; }
.nb-play .nb-btn--big:disabled { box-shadow: none; transform: none; opacity: .4; }
@media (hover: hover) and (pointer: fine) { .nb-play .nb-btn--big:hover:not(:disabled), .nb-st-btn:hover { background: linear-gradient(180deg, #333D52, #273042); } }
.nb-sym { font-size: 22px; line-height: 1; font-weight: 700; }
.nb-play .nb-btn--big svg { width: 34px; height: 24px; fill: currentColor; }
/* feedback motion — only ever after an answer */
@keyframes nbPop { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes nbShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes nbShakeC { 0%, 100% { transform: translate(-50%, -50%); } 20% { transform: translate(calc(-50% - 5px), -50%); } 40% { transform: translate(calc(-50% + 5px), -50%); } 60% { transform: translate(calc(-50% - 3px), -50%); } 80% { transform: translate(calc(-50% + 3px), -50%); } }
@keyframes nbRing { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.nb-fx-pop { animation: nbPop .24s ease-out; }
.nb-fx-shake { animation: nbShake .3s ease-out; }
.nb-tr-dot.nb-fx-shake, .nb-oo-cell.nb-fx-shake { animation: nbShakeC .3s ease-out; }
.nb-fx-ring::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--good); animation: nbRing .42s ease-out forwards; pointer-events: none; }
.nb-play .nb-play__hint.is-good, .nb-play .nb-play__hint.is-bad { font-weight: 600; }

/* ---------- Quick Tap: a signal lamp, then a keypad row like the study's ---------- */
.nb-rt-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.nb-rt-light { position: relative; width: min(200px, 54vw); margin: 14px 0 6px; border-radius: 50%; border: 0; color: rgba(242,239,234,.55); font: inherit; font-size: 19px; font-weight: 800; letter-spacing: .06em; cursor: pointer;
  background: radial-gradient(circle at 42% 36%, #2C3546 0%, #171D29 62%, #0E1219 100%);
  box-shadow: 0 0 0 10px #252D3D, 0 0 0 12px #3B465C, 0 18px 34px rgba(0,0,0,.55); transition: transform .1s; }
.nb-rt-lens { position: absolute; left: 18%; top: 14%; width: 38%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.1); transform: rotate(-24deg); pointer-events: none; }
.nb-rt-word { position: relative; }
.nb-rt-light.is-go { color: #0B3B24; background: radial-gradient(circle at 44% 38%, #B8FAD6 0%, #43DB8F 46%, #1A8E58 100%);
  box-shadow: 0 0 0 10px #252D3D, 0 0 0 12px #3B465C, 0 0 48px 10px rgba(67,219,143,.5), 0 18px 34px rgba(0,0,0,.55); }
.nb-rt-light.is-go .nb-rt-lens { background: rgba(255,255,255,.42); }
.nb-rt-light.is-done { color: var(--text-light); }
.nb-rt-light.is-pressed, .nb-rt-light:active { transform: scale(.97); }
.nb-rt-pill { margin: 0; min-height: 30px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.nb-rt-pill:empty { visibility: hidden; }
.nb-rt-pill.is-good { background: rgba(126,214,165,.13); color: var(--good); border: 1px solid rgba(126,214,165,.28); }
.nb-rt-pill.is-bad { background: rgba(255,138,138,.12); color: var(--bad); border: 1px solid rgba(255,138,138,.28); }
.nb-rt-note { font-size: 12.5px; }
.nb-rt-arrows { gap: 16px; }
.nb-rt-screen { width: 132px; height: 132px; border-radius: 24px; background: #0F141D; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 32px -14px rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; }
.nb-rt-arrow { width: 84px; height: 84px; min-height: 0; font-size: 0; }
.nb-rt-arrow svg { width: 100%; height: 100%; fill: var(--terra); stroke: rgba(0,0,0,.25); stroke-width: 2; stroke-linejoin: round; display: block; }
.nb-rt-btns { gap: 10px; }
.nb-key svg { width: 28px !important; height: 28px !important; fill: currentColor; }

/* ---------- Colour Clash: Stroop's cards and ink pots ---------- */
.nb-st-card { position: relative; width: min(100%, 420px); height: 184px; border-radius: 22px; background: #161D2C; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 32px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nb-st-cardlab { position: absolute; top: 12px; left: 16px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(242,239,234,.42); }
.nb-st-word { font-size: clamp(2.6rem, 11vw, 3.6rem); letter-spacing: 4px; line-height: 1; min-height: 0; }
.nb-st-patch { width: min(10rem, 48vw); height: 3rem; border-radius: 9px; }
.nb-st-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #121926; text-align: center; padding: 0 16px; }
.nb-st-intro[hidden] { display: none; }
.nb-st-intro strong { font-family: 'Literata', Georgia, serif; font-weight: 600; font-size: 1.35rem; color: var(--text-light); }
.nb-st-intro span { font-size: 14px; color: rgba(242,239,234,.72); }
.nb-st-btns { gap: 10px; }
.nb-st-btn { height: 78px; border-radius: 18px; gap: 6px; }
.nb-st-btn span { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.6) 0, rgba(255,255,255,.14) 34%, rgba(255,255,255,0) 60%), var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.25); }
/* no brand colour near the inks in this game: neutral progress and feedback, so nothing primes an answer */
.nb-play--stroop .nb-hud2__bar i { background: rgba(242,239,234,.55); }
.nb-play--stroop .nb-play__hint.is-good, .nb-play--stroop .nb-play__hint.is-bad { color: rgba(242,239,234,.85) !important; }

/* ---------- Connect the Dots: ink circles and a pencil line on paper ---------- */
.nb-tr-board { background: #F4EFE3; border-color: rgba(0,0,0,.2); }
.nb-tr-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nb-tr-ink line { stroke: #3D4350; stroke-width: 2.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .85; }
.nb-tr-dot { background: #FBF8F1; border: 2px solid #2E3440; color: #2E3440; font-weight: 700; box-shadow: none; transition: transform .1s; }
.nb-tr-dot.is-done { background: #DCEBDF; border-color: #2E3440; color: #2E3440; }
.nb-tr-dot.is-wrong { background: #FBE3E1; border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.3); }
.nb-tr-dot.is-pressed:not(.is-done), .nb-tr-dot:active:not(.is-done) { background: #EFEADF; }
.nb-tr-dot:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.nb-tr-tag { position: absolute; transform: translate(-50%, 25px); font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6B7280; pointer-events: none; }

/* ---------- Field of View: an even field, a fixation dot, a flash and a noise mask ---------- */
.nb-fv-board { background: #0F141D; }
.nb-fv-fix { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--text-light); }
.nb-fv-board.is-flash .nb-fv-fix, .nb-fv-board.is-mask .nb-fv-fix { visibility: hidden; }
.nb-fv-centre { width: 19%; height: auto; aspect-ratio: 3 / 2; opacity: 1; visibility: hidden; background: none; border-radius: 0; }
.nb-fv-centre svg { width: 100%; height: 100%; display: block; fill: var(--text-light); }
.nb-fv-star { position: absolute; width: 8%; aspect-ratio: 1; transform: translate(-50%, -50%); visibility: hidden; }
.nb-fv-star svg { width: 100%; height: 100%; display: block; fill: #F7B267; }
.nb-fv-tris { opacity: 1; visibility: hidden; }
.nb-fv-tris path { fill: #8E97A6; }
.nb-fv-board.is-flash .nb-fv-centre, .nb-fv-board.is-flash .nb-fv-star, .nb-fv-board.is-flash .nb-fv-tris { visibility: visible; }
.nb-fv-mask { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; image-rendering: pixelated; image-rendering: crisp-edges; background: none; }
.nb-fv-spot { visibility: hidden; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.05); border-style: solid; }
.nb-fv-board.is-answer .nb-fv-spot { visibility: visible; }
.nb-fv-spot:not(:disabled) { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); }
.nb-fv-spot.is-reveal { background: #F7B267; border-color: #F7B267; }
.nb-fv-spot.is-miss { border-color: var(--bad); background: rgba(255,138,138,.2); }
.nb-fv-btns .nb-btn--big svg { width: 42px; height: 28px; }
.nb-steps { display: flex; gap: 6px; width: min(100%, 420px); }
.nb-steps span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: rgba(242,239,234,.55); padding: 6px 4px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.nb-steps b { color: inherit; }
.nb-steps.is-watch .nb-steps__a, .nb-steps.is-watch .nb-steps__b, .nb-steps.is-answer .nb-steps__c { color: #13171D; background: var(--primary); border-color: var(--primary); }

/* ---------- Odd One Out: items sit loosely on an even field ---------- */
.nb-oo-grid { display: block; gap: 0; }
.nb-oo-cell { position: absolute; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; transition: none; }
.nb-oo-cell svg { width: 74%; height: 74%; display: block; overflow: visible; }
.nb-oo-cell svg > * { stroke: rgba(0,0,0,.3); stroke-width: .07; }
.nb-oo-cell.is-pressed, .nb-oo-cell:active { background: transparent; transform: translate(-50%, -50%); }
.nb-oo-cell.is-wrong { box-shadow: 0 0 0 3px rgba(255,138,138,.55); }
.nb-oo-cell.is-wrong svg { opacity: .5; }
.nb-oo-cell.is-found { box-shadow: 0 0 0 3px rgba(126,214,165,.85); }
.nb-oo-cell:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; }

/* ---------- Light Path: raised blocks on a board, like the real apparatus ---------- */
.nb-corsi-board { background: #151C2A; }   /* one flat colour: no lighting that could act as a reference point */
.nb-corsi-block { width: 14%; height: 14%; border: 0; border-radius: 12px; background: #0D121B; box-shadow: 0 8px 14px rgba(0,0,0,.45); padding: 0; transition: transform .08s; }
.nb-corsi-block span { position: absolute; inset: 0 0 5px 0; border-radius: 12px; background: linear-gradient(180deg, #45526B, #2E384B); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.nb-corsi-block.is-lit span { background: linear-gradient(180deg, #C2F9DB, #5CCB92); box-shadow: 0 0 26px rgba(124,230,170,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.nb-corsi-block.is-lit { background: #0D121B; box-shadow: 0 8px 14px rgba(0,0,0,.45); }
.nb-corsi-block.is-tap, .nb-corsi-block.is-pressed { transform: translateY(3px); background: #0D121B; }
.nb-corsi-block.is-tap span, .nb-corsi-block.is-pressed span { background: linear-gradient(180deg, #F3C29C, #E8A375); }
.nb-corsi-block:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.nb-corsi-dots { display: flex; gap: 7px; min-height: 12px; }
.nb-corsi-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(242,239,234,.3); }
.nb-corsi-dots i.on { background: var(--terra); border-color: var(--terra); }

/* ---------- What Changed?: a fixation cross and crisp squares on an even field ---------- */
.nb-ch-board { position: absolute; inset: 0; width: auto; aspect-ratio: auto; background: none; border: 0; border-radius: 0; box-shadow: none; }
.nb-ch-fix { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.nb-ch-fix::before, .nb-ch-fix::after { content: ''; position: absolute; background: var(--text-light); border-radius: 2px; }
.nb-ch-fix::before { left: 8px; top: 0; width: 2.5px; height: 18px; } .nb-ch-fix::after { top: 8px; left: 0; height: 2.5px; width: 18px; }
.nb-ch-item { width: 10.5%; border-radius: 3px; }
.nb-ch-item.is-changed { box-shadow: 0 0 0 3px #0F141D, 0 0 0 6px var(--text-light); }

/* ---------- Rotate It: Shepard–Metzler-style cube figures ---------- */
.nb-rot-pair { gap: 12px; }
.nb-rot-shape { width: 92%; height: 92%; }
.nb-rot-shape path { stroke: #0E131C; stroke-width: 1.3; stroke-linejoin: round; }
.nb-rot-shape--a .f-top { fill: #B5E2C9; } .nb-rot-shape--a .f-x { fill: #84C0A0; } .nb-rot-shape--a .f-y { fill: #4E7E66; }
.nb-rot-shape--b .f-top { fill: #F6CDAE; } .nb-rot-shape--b .f-x { fill: #E8A375; } .nb-rot-shape--b .f-y { fill: #A9683E; }

/* ---------- Pattern Logic: framed tiles and answer cards ---------- */
.nb-mx-cell { background: #19202F; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 14px rgba(0,0,0,.3); }
.nb-mx-cell.is-missing { border: 2px dashed rgba(232,163,117,.75); box-shadow: 0 0 18px rgba(232,163,117,.22); background: #141B28; }
.nb-mx-cell.is-filled { border: 2px solid var(--terra); }
.nb-mx-opt { border-radius: 14px; }
.nb-mx-opt.is-right { border-color: var(--good); box-shadow: 0 0 0 3px rgba(126,214,165,.5), 0 4px 0 #121722; }
.nb-mx-opt.is-wrong { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255,138,138,.45), 0 4px 0 #121722; }
.nb-mx-msg { max-width: 420px; }

/* ---------- Point Home: random ground that streams past, a rover, and a map afterwards ---------- */
.nb-hm-board { background: #141B26; }
.nb-hm-ground, .nb-hm-svg, .nb-hm-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.nb-hm-vignette { background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 58%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.nb-hm-board.is-aim { cursor: crosshair; }
.nb-hm-trail { stroke: var(--terra); stroke-width: 3px; vector-effect: non-scaling-stroke; opacity: .45; }
.nb-hm-route { fill: none; stroke: #98A2B3; stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.nb-hm-start circle { fill: none; stroke: var(--text-light); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.nb-hm-board.is-map .nb-hm-start circle { fill: var(--primary); stroke: #13171D; }
.nb-hm-truthw { stroke: var(--good); stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-dasharray: 6 5; }
.nb-hm-aimw { stroke: var(--terra); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.nb-hm-endw circle { fill: var(--terra); stroke: #13171D; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.nb-hm-me path { fill: var(--terra); stroke: #13171D; stroke-width: .6; stroke-linejoin: round; }
.nb-hm-me .nb-hm-shadow { fill: #000; opacity: .35; stroke: none; }
.nb-hm-aim { stroke: var(--terra); stroke-width: 1.6; }

/* ---------- results: the paper's graph with your own data ---------- */
.nb-results { position: relative; }
.nb-results__chart { width: 100%; max-width: 420px; margin: 8px 0 2px; padding: 12px 12px 8px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); text-align: left; }
.nb-results__chart figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.nb-results__chart figcaption strong { font-size: 13px; color: var(--text-light); }
.nb-results__chart figcaption span { font-size: 11.5px; color: rgba(242,239,234,.6); line-height: 1.4; }
.nb-ch { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.nb-ch__grid { stroke: rgba(255,255,255,.07); }
.nb-ch__tick { fill: rgba(242,239,234,.58); font-size: 9.5px; }
.nb-ch__lab { fill: var(--text-light); font-size: 10.5px; font-weight: 700; }
.nb-ch__lab.is-hi { fill: var(--primary); }
.nb-ch__val { fill: var(--text-light); font-size: 11px; font-weight: 800; }
.nb-ch__big { fill: var(--text-light); font-size: 20px; font-weight: 600; font-family: 'Literata', Georgia, serif; }
.nb-ch__note { fill: var(--terra); font-size: 10px; font-weight: 700; }
.nb-ch__note.is-a { fill: var(--primary); }
.nb-ch__dot.is-a { fill: var(--primary); } .nb-ch__dot.is-b { fill: var(--terra); } .nb-ch__dot.is-ok { fill: var(--good); } .nb-ch__dot.is-no { fill: var(--bad); }
.nb-ch__band.is-a { fill: rgba(132,192,160,.13); } .nb-ch__band.is-b { fill: rgba(232,163,117,.13); }
.nb-ch__mid { stroke: var(--text-light); stroke-width: 2; }
.nb-ch__bar.is-a { fill: var(--primary); } .nb-ch__bar.is-b { fill: var(--terra); }
.nb-ch__ref { stroke: var(--text-light); stroke-dasharray: 3 3; opacity: .5; }
.nb-ch__line { fill: none; stroke: rgba(242,239,234,.45); stroke-width: 1.3; }
.nb-ch__line.is-a { stroke: var(--primary); stroke-width: 2.5; } .nb-ch__line.is-b { stroke: var(--terra); stroke-width: 2.5; }
.nb-ch__ring { fill: none; stroke: var(--text-light); stroke-width: 1; }
.nb-ch__thr { stroke: var(--terra); stroke-width: 1.6; stroke-dasharray: 5 4; }
.nb-ch__fit { stroke: var(--terra); stroke-width: 2.5; }
.nb-ch__slot { fill: rgba(255,255,255,.08); } .nb-ch__slot.is-ok { fill: var(--good); } .nb-ch__slot.is-no { fill: var(--bad); }
.nb-ch__mark { fill: #13171D; font-size: 10px; font-weight: 800; }
.nb-ch__hi { fill: rgba(132,192,160,.16); }
.nb-ch__pillbg { fill: rgba(255,255,255,.08); } .nb-ch__pilltx { fill: rgba(242,239,234,.7); font-size: 8.5px; font-weight: 700; }
.nb-ch__mark2 { font-size: 12px; font-weight: 800; } .nb-ch__mark2.is-ok { fill: var(--good); } .nb-ch__mark2.is-no { fill: var(--bad); }
.nb-ch__tile { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.07); }
.nb-ch__route { fill: none; stroke: #98A2B3; stroke-width: 1.6; stroke-linejoin: round; }
.nb-ch__home { stroke: var(--good); stroke-width: 1.5; stroke-dasharray: 3 2.5; }
.nb-ch__aim { stroke: var(--terra); stroke-width: 2; stroke-linecap: round; }
.nb-ch__startpt { fill: var(--primary); }
.nb-ch-split { display: flex; gap: 12px; align-items: center; }
.nb-ch-split > svg { flex: 1 1 0; min-width: 0; width: auto; }
.nb-ch-split > svg:first-child { flex: 0 0 42%; width: 42%; }
.nb-tr-paper { fill: #F4EFE3; } .nb-tr-pencil { fill: none; stroke: #3D4350; stroke-width: .8; stroke-linejoin: round; }
.nb-tr-c { fill: #FBF8F1; stroke: #2E3440; stroke-width: .5; } .nb-tr-l { fill: #2E3440; font-size: 3.4px; font-weight: 700; }
/* a short burst of confetti for a personal best */
.nb-confetti { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.nb-confetti i { position: absolute; top: 0; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: nbConfetti 1.7s ease-out forwards; }
@keyframes nbConfetti { 0% { opacity: 1; transform: translate(0, -6px) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx, 0), 240px) rotate(var(--r, 180deg)); } }
/* card art */
.nb-card__tile--art, .nb-intro__icon--art { background: #10151F; box-shadow: inset 0 0 0 1.5px var(--sk), 0 10px 22px -10px rgba(0,0,0,.6); }
.nb-card__tile--art::after { display: none; }
.nb-card__tile--art .nb-card__icon svg { width: 52px; height: 52px; }
.nb-intro__icon--art svg { width: 58px; height: 58px; }
/* reduce motion: decorative motion off (Point Home's travel stays — it is the task) */
@media (prefers-reduced-motion: reduce) {
  .nb-fx-pop, .nb-fx-shake, .nb-tr-dot.nb-fx-shake, .nb-oo-cell.nb-fx-shake { animation: none !important; }
  .nb-fx-ring::after, .nb-confetti { display: none !important; }
  .nb-hud2__bar i, .nb-play .nb-btn--big, .nb-st-btn, .nb-mx-opt, .nb-corsi-block, .nb-tr-dot, .nb-rt-light { transition: none !important; }
}
@media (max-width: 400px) { .nb-st-btn { height: 70px; } .nb-rt-screen { width: 112px; height: 112px; } .nb-rt-arrow { width: 72px; height: 72px; } }

/* ===================== v2.36: pause between goes, Back closes a game, steadier loading =====================
 * Pause (stage bar) takes effect between goes and holds at a "Paused" screen over the play area; the same screen is used
 * when the app was hidden mid-go (that go is repeated). While paused the play area is hidden from view, touch and the
 * keyboard, so no stimulus or answer can slip through. */
.nb-stage__pause { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-light); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 0 12px 0 9px; min-height: 38px; cursor: pointer; white-space: nowrap; }
.nb-stage__pause svg { width: 16px; height: 16px; fill: currentColor; }
.nb-stage__pause[aria-pressed="true"] { background: rgba(232,163,117,.18); border-color: var(--terra); color: var(--terra); }
.nb-stage__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .nb-stage__pause { width: 38px; padding: 0; justify-content: center; } .nb-stage__pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.nb-stage__pause:disabled { opacity: .5; cursor: default; }
.nb-stage__pause:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .nb-stage__pause:hover:not(:disabled) { background: rgba(255,255,255,.16); } }
.nb-stage__body { position: relative; }
.nb-stage__body.is-paused > .nb-play { visibility: hidden; }
.nb-pause { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; cursor: pointer; }
.nb-pause__card { width: 100%; max-width: 360px; text-align: center; background: rgba(22,27,44,.96); border: 1px solid var(--surface-border); border-radius: 20px; padding: 22px 18px 20px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nb-pause__h { margin: 0; font-family: 'Literata', Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.nb-pause__note { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: rgba(242,239,234,.8); }
.nb-pause__go { min-width: 200px; font-size: 16px; }
/* the "timed" note on cards and intros; the motion note on Point Home's intro with "reduce motion" on */
.nb-card__timed { font-size: 11px; color: rgba(242,239,234,.6); margin-top: 1px; }
.nb-intro__timed { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(242,239,234,.72); max-width: 480px; text-align: left; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; }
.nb-intro__motion { border-left: 3px solid var(--terra); }
/* a note above the hub when the saved progress could not be read (a copy is kept) */
.nb-build-notice { margin: 0; border-color: rgba(232,163,117,.5); color: var(--text-light); }
/* trivia: right and wrong are said in words and marks, not only colour */
.nb-tv-opt__mark { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.nb-tv-opt.is-right .nb-tv-opt__mark { color: var(--good); } .nb-tv-opt.is-wrong .nb-tv-opt__mark { color: var(--bad); }
.nb-tv-verdict:focus { outline: none; } .nb-tv-verdict:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
.nb-tv-loading { margin: 24px 0; text-align: center; color: rgba(242,239,234,.78); display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* the hub keeps its shape while the scripts arrive: each panel reserves the height its content takes (measured at phone and
   desktop widths), so nothing jumps when the level ring, the skill picker and the day's mix are drawn */
#nb-hud { min-height: 290px; } #nb-skillbar { min-height: 411px; } #nb-mix { min-height: 142px; }
@media (max-width: 374px) { #nb-hud { min-height: 323px; } }
@media (min-width: 480px) { #nb-skillbar { min-height: 283px; } }
@media (min-width: 560px) { #nb-hud { min-height: 257px; } #nb-skillbar { min-height: 271px; } #nb-mix { min-height: 98px; } }
@media (min-width: 620px) { #nb-hud { min-height: 183px; } }
/* the card grid and progress panel only while empty (the height of all the games; a skill filter shows fewer, and these sit below the first screen) */
#nb-games:empty { min-height: 2480px; } #nb-progress:empty { min-height: 65px; }
@media (min-width: 480px) { #nb-games:empty { min-height: 2260px; } }
@media (min-width: 560px) { #nb-games:empty { min-height: 2110px; } }
@media (min-width: 620px) { #nb-games:empty { min-height: 1740px; } }
@media (min-width: 768px) { #nb-games:empty { min-height: 1380px; } }
@media (min-width: 1000px) { #nb-games:empty { min-height: 1340px; } }
#nb-hud:empty::before, #nb-skillbar:empty::before, #nb-mix:empty::before { content: 'Loading…'; font-size: 13px; color: rgba(242,239,234,.45); }
