/* SecureSmarter: shared styles */
:root {
  --ink: #15181D;
  --ink-2: #1D2128;
  --ink-3: #272C34;
  --paper: #F7F6F3;
  --white: #FFFFFF;
  --line: #E4E2DC;
  --muted: #5A606B;
  --muted-dark: #A3AAB5;
  --gold: #E2A62B;
  --coral: #F0644A;
  --teal: #12A39A;
  --violet: #8B5CF0;
  --blue: #2F7BF5;
  --good: #12A39A;
  --bad: #F0644A;
  /* right and wrong: the same in every game, NYT style. Game colours stay on splashes and icons. */
  --right: #6AAA64; --right-dark: #3E7D39; --right-tint: #E3F0E1; --right-glow: rgba(106, 170, 100, .30);
  --wrong: #D9534F; --wrong-dark: #B83A30; --wrong-tint: #F9DEDD; --wrong-glow: rgba(217, 83, 79, .22);
  /* green and red only ever mean "you got it" or "you didn't". The giveaways get a highlighter. */
  --mark: #FFE27A;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;   /* easy to read */
  --mono: Anton, Impact, "Arial Narrow", sans-serif;
  --radius: 20px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-synthesis: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Lockup: the S and the stacked words ---------- */
.lockup {
  --lh: 40px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--lh) * 0.146);
  height: var(--lh);
  text-decoration: none;
  color: var(--ink);
}
.lockup .s-mark { height: 100%; width: auto; aspect-ratio: 72.5 / 101.7; overflow: visible; }
.lockup .wordmark { height: 100%; width: auto; aspect-ratio: 2.6 / 1; overflow: visible; }
.wordmark text { font-family: var(--display); fill: currentColor; }
.lockup.on-dark { color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--muted-dark); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav-link:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #EBB548; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2A2F37; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Type helpers ---------- */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.on-dark .eyebrow, .dark .eyebrow { color: var(--muted-dark); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.dark { background: var(--ink); color: var(--white); }
.white { background: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); }
.dark .section-head p { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; margin: 14px 0 20px; }
.hero .lede { font-size: clamp(18px, 2vw, 20px); color: var(--muted-dark); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.hero-note { font-size: 14px; color: var(--muted-dark); }
.hero-s { justify-self: center; width: min(100%, 300px); }
.hero-s svg { width: 100%; height: auto; overflow: visible; }

/* the scoreboard lights */
.s-light { transition: fill .35s ease, filter .35s ease; }
.s-light.is-on { filter: drop-shadow(0 0 3px var(--glow, transparent)); }

/* ---------- Games grid ---------- */
.games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.game {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: inherit; position: relative;
}
a.game:hover { border-color: var(--ink); }
.game img { width: 72px; height: 72px; }
.game h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .01em; margin-top: 4px; }
.game .q { font-weight: 700; font-size: 16px; line-height: 1.3; }
.game .d { font-size: 15px; color: var(--muted); line-height: 1.45; }
.tag { align-self: flex-start; margin-top: auto; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.tag-live { background: var(--gold); color: var(--ink); }
.tag-soon { background: var(--paper); color: var(--muted); }
.lights3 { display: flex; gap: 5px; }
.lights3 span { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- Light up the S ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.how-steps { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.how-steps figure { margin: 0; display: flex; flex-direction: column; gap: 10px; width: 88px; }
.how-steps svg { width: 64px; height: auto; }
.how-steps figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.3; }
.how-steps figcaption b { color: var(--ink); font-size: 15px; }
.how-copy { display: flex; flex-direction: column; gap: 16px; }
.how-copy h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -0.015em; }
.how-copy p { font-size: 18px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Signup ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.signup h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
.signup p.sub { font-size: 18px; color: var(--muted); margin-top: 12px; }
.dark .signup p.sub { color: var(--muted-dark); }
.form { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form input[type=email] {
  flex: 1 1 240px; min-width: 0; max-width: 100%; min-height: 52px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink);
}
.dark .form input[type=email] { border-color: var(--ink-3); }
.form input[type=email]:focus { outline: none; border-color: var(--blue); }
.form .btn { min-height: 52px; }
.form-note { font-size: 14px; color: var(--muted); }
.dark .form-note { color: var(--muted-dark); }
.form-msg { font-weight: 700; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: var(--coral); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Teams ---------- */
.teams { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.teams h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(226,166,43,.55); }
.panel { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 22px; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 48px 0 56px; border-top: 1px solid var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-left { display: flex; flex-direction: column; gap: 14px; }
.foot-left .tagline { color: var(--white); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--muted-dark); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--white); }
.fine { font-size: 14px; max-width: 520px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games .game:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero .wrap, .how, .signup, .teams { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 40px 0 72px; }
  .hero-s { order: -1; width: 150px; justify-self: start; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game { padding: 16px; gap: 10px; }
  .game img { width: 56px; height: 56px; }
  .game h3 { font-size: 28px; }
  .game .q { font-size: 15px; }
  .games .game:not(:first-child) .d { display: none; }
  .how-steps { gap: 14px; flex-wrap: nowrap; align-items: flex-start; }
  .how-steps figure { width: auto; flex: 1 1 0; }
  .how-steps svg { width: 52px; }
  .site-header .nav-link { display: none; }
  .lockup { --lh: 34px; }
  .wrap { padding: 0 16px; }
  .form .btn { flex: 1 1 100%; }
  .form input[type=email] { flex: 1 1 100%; }
}

/* a pulsing red dot that says "this is live", for This week's scams */
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); animation: livepulse 1.8s ease-out infinite; flex: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* breadcrumbs: Home / Games / HOAX. Small, under the header, on every page but the homepage */
.crumbs { max-width: 1160px; margin: 0 auto; padding: 10px 20px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .55; }
.crumbs a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.crumbs-splash { padding: 8px 0 0; }
.crumbs-splash ol { justify-content: center; color: var(--ink); }
.crumbs-splash li + li::before { opacity: .5; }
/* inside a game the page is one centred column, so the breadcrumbs sit centred above it too */
.crumbs-bar { max-width: 720px; }
.crumbs-bar ol { justify-content: center; }
@media (max-width: 640px) { .crumbs { padding: 8px 16px 0; } .crumbs ol { font-size: 13px; } }

/* "Free" in a tool's headline: italic and green, so people (and Google) see it straight away */
.free { font-style: italic; font-synthesis: style; color: #1E9A4F; padding-right: .06em; }

/* the footer sitemap: every page, in groups, then "See everything" */
.foot-map { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px 18px; margin: 6px 0 0; padding: 22px 0 6px; border-top: 1px solid var(--line); text-align: left; }
.fm-head { margin: 0 0 9px; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-map ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-map a { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.foot-map a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fm-all { margin: 0; }
.fm-all a { color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fm-all .fm-dot { color: var(--muted); font-weight: 800; padding: 0 2px; }
/* little privacy links next to a form's promise, like "We never publish it." */
.rp-note a, .sc-privacy a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 960px) { .foot-map { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } }

/* game buttons and links carry the game's little face (added by brand.js) */
.has-g-ico { display: inline-flex; align-items: center; gap: 10px; }
.btn.has-g-ico { padding-left: 12px; }
.btn .g-ico { width: 34px; height: 34px; flex: none; border-radius: 9px; display: block; }
.foot-map .g-ico { width: 22px; height: 22px; flex: none; border-radius: 6px; display: block; }
.foot-map a.has-g-ico { gap: 8px; }

/* "Just in": the newest official alerts, read by our worker every hour (justin.js) */
.justin { max-width: 1160px; margin: 0 auto 24px; padding: 0 16px; }
.justin[hidden] { display: none; }
.justin-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.justin-when { margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.justin-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); border-radius: 20px; background: var(--white); overflow: hidden; }
.justin-list li + li { border-top: 1px solid var(--line); }
.justin-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .justin-item:hover { background: var(--paper); } }
.justin-line { font-size: 16px; font-weight: 700; line-height: 1.35; }
.justin-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.justin-tag { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: #E8EEF8; color: #1F4FA8; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.justin-tag.is-breach { background: #FBE3E3; color: #8E1F1F; }
.justin-tag.is-trick { background: #FFF0D9; color: #7A4300; }
.justin-note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .justin-list { display: grid; grid-template-columns: 1fr 1fr; } .justin-list li + li { border-top: 0; } .justin-list li { border-top: 1px solid var(--line); } .justin-list li:nth-child(-n+2) { border-top: 0; } .justin-list li:nth-child(odd) { border-right: 1px solid var(--line); } }
.fm-soon { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }


/* ---------- the email sign up: it should jump out on every page (Jamey), not blend in ----------
   A dark card, a big caps headline with a wiggling mailbox, and a bouncy gold button. */
#signup, .game-body .app .after-block:has(> .form[data-list="players"]) { background: var(--ink); color: var(--white); text-align: center; align-items: center; gap: 14px; padding: 46px 28px 42px; border-radius: 28px; box-shadow: 0 14px 34px rgba(21, 24, 29, .2); }
#signup h2, .game-body .app .after-block:has(> .form[data-list="players"]) h2 { color: var(--white); text-transform: uppercase; font-size: clamp(40px, 6.4vw, 66px); line-height: 1; letter-spacing: .02em; max-width: none; }
#signup h2::before, .game-body .app .after-block:has(> .form[data-list="players"]) h2::before { content: "\1F4EC"; display: block; width: max-content; margin: 0 auto 14px; font-size: 64px; line-height: 1; transform-origin: 50% 85%; animation: mailwiggle 3s ease-in-out infinite; }
#signup .muted, .game-body .app .after-block:has(> .form[data-list="players"]) .muted { color: #C9CED6; font-size: 19px; max-width: 560px; margin: 0 auto; }
#signup .form, .game-body .app .after-block:has(> .form[data-list="players"]) .form { width: 100%; max-width: 640px; margin-top: 6px; }
#signup .form-row, .game-body .app .after-block:has(> .form[data-list="players"]) .form-row { justify-content: center; }
#signup input[type=email], .game-body .app .after-block:has(> .form[data-list="players"]) input[type=email] { flex: 1 1 260px; min-height: 62px; border-color: transparent; background: var(--white); font-size: 18px; }
#signup input[type=email]:focus, .game-body .app .after-block:has(> .form[data-list="players"]) input[type=email]:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226, 166, 43, .35); }
#signup .btn, .game-body .app .after-block:has(> .form[data-list="players"]) .btn { min-height: 62px; padding: 0 30px; border: 0; background: var(--gold); color: var(--ink); font-size: 19px; font-weight: 800; box-shadow: 0 6px 0 #9A6C10; transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease; animation: btnbounce 3.2s ease-in-out infinite; }
#signup .btn::after, .game-body .app .after-block:has(> .form[data-list="players"]) .btn::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform .15s ease; }
#signup .btn:hover, .game-body .app .after-block:has(> .form[data-list="players"]) .btn:hover { background: #F0B83C; transform: translateY(-3px) scale(1.03); box-shadow: 0 9px 0 #9A6C10; animation: none; }
#signup .btn:hover::after, .game-body .app .after-block:has(> .form[data-list="players"]) .btn:hover::after { transform: translateX(4px); }
#signup .btn:active, .game-body .app .after-block:has(> .form[data-list="players"]) .btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #9A6C10; animation: none; }
#signup .form-msg.ok, .game-body .app .after-block:has(> .form[data-list="players"]) .form-msg.ok { color: #7FE3B8; }
#signup .form-msg.err, .game-body .app .after-block:has(> .form[data-list="players"]) .form-msg.err { color: #FF9C8F; }
@keyframes btnbounce { 0%, 78%, 100% { transform: translateY(0); } 84% { transform: translateY(-7px); } 90% { transform: translateY(0); } 95% { transform: translateY(-3px); } }
@keyframes mailwiggle { 0%, 68%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 80% { transform: rotate(11deg); } 86% { transform: rotate(-6deg); } 92% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { #signup h2::before, .game-body .app .after-block:has(> .form[data-list="players"]) h2::before, #signup .btn, .game-body .app .after-block:has(> .form[data-list="players"]) .btn { animation: none; } }
@media (max-width: 640px) { #signup, .game-body .app .after-block:has(> .form[data-list="players"]) { padding: 36px 20px 32px; } #signup h2::before, .game-body .app .after-block:has(> .form[data-list="players"]) h2::before { font-size: 52px; } #signup .btn, .game-body .app .after-block:has(> .form[data-list="players"]) .btn { width: 100%; } }
