/* Lockify Labs — studio styles shared by every page. */

:root {
  --paper: #F6F3EC;
  --paper-2: #EFEADF;
  --paper-3: #E6DFD1;
  --card: #FFFDF8;
  --ink: #0B1626;
  --ink-2: #44505F;
  --ink-3: #7D8693;
  --line: rgba(11, 22, 38, 0.11);
  --line-2: rgba(11, 22, 38, 0.2);
  --navy: #1C3550;
  --navy-2: #2E5079;
  --accent: #2E5BFF;

  --lockify-bg: #0C0E0D;
  --lockify-card: #151917;
  --lockify-teal: #3DD9A4;
  --lockify-text: #E4EAE5;
  --lockify-muted: #8A9B90;

  --nm-blue: #0B93FF;
  --nm-pink: #F24DB8;
  --nm-yellow: #FFB302;
  --nm-green: #1FC96B;
  --nm-orange: #FF7A1A;
  --nm-violet: #8B5CFF;

  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --font-game: 'Fredoka', 'Figtree', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* A short page still fills the screen, so its footer sits at the bottom rather than mid-page. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* Flex items with auto side margins (.wrap) would shrink to their content without a width. */
body > header, body > main, body > footer { width: 100%; }
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--navy); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Type ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h3 { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current] { background: var(--paper-2); color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: var(--paper); }
.nav-links .nav-cta:hover { background: var(--navy); color: var(--paper); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 1.05rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 15px 22px; border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--navy); box-shadow: 0 10px 30px -12px rgba(11, 22, 38, 0.6); }
.btn-line { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-soon { background: var(--paper-2); color: var(--ink-2); cursor: default; }
.btn-soon:hover { transform: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 18px 10px 14px;
  transition: transform 0.25s var(--ease);
}
.play-badge:hover { transform: translateY(-2px); }
.play-badge svg { width: 24px; height: 24px; }
.play-badge small { display: block; font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.75; text-transform: uppercase; }
.play-badge strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.1; }
.play-badge.is-soon { background: rgba(255, 255, 255, 0.72); color: var(--ink); cursor: default; }
.play-badge.is-soon:hover { transform: none; }

/* ── Sections ── */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ── Home hero ── */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 22px 0 28px; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-mark { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-mark .halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 91, 255, 0.16), rgba(46, 91, 255, 0) 70%);
  animation: breathe 6s ease-in-out infinite;
}
/* Each dot sits on its ring's line at the top (centred on the 1px border), and the ring turns.
   A negative delay sets where on the ring each dot starts. */
.hero-mark .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite -52.5s; }
.hero-mark .orbit::after {
  content: ''; position: absolute; top: -0.5px; left: 50%; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--nm-pink); box-shadow: 0 0 0 6px rgba(242, 77, 184, 0.15);
}
.hero-mark .orbit.two { inset: 13%; animation-duration: 38s; animation-direction: reverse; animation-delay: -19s; }
.hero-mark .orbit.two::after { background: var(--lockify-teal); box-shadow: 0 0 0 6px rgba(61, 217, 164, 0.18); }
.hero-mark .orbit.three { inset: 26%; border-style: solid; border-color: var(--line); animation-duration: 24s; animation-delay: -6s; }
.hero-mark .orbit.three::after { background: var(--nm-yellow); box-shadow: 0 0 0 6px rgba(255, 179, 2, 0.18); }
.hero-mark svg.mark { position: absolute; inset: 31%; width: 38%; height: 38%; overflow: visible; filter: drop-shadow(0 24px 30px rgba(11, 22, 38, 0.25)); }
/* The game's intro entrance (StudioIntro.kt, BuildUp): the stem draws up from the baseline while
   the foot draws out left to right, together in 650 ms, then a soft light sweeps the ink (800 ms). */
.mark-stem { animation: mark-stem 0.65s linear both 0.25s; }
.mark-foot { animation: mark-foot 0.65s linear both 0.25s; }
.mark-sheen { animation: mark-sheen 0.8s ease-in-out both 0.9s; }
@keyframes mark-stem { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mark-foot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mark-sheen { from { transform: translateX(0); } to { transform: translateX(2300px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: 0.8; } }

.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.ticker-track { display: inline-flex; gap: 48px; animation: ticker 36s linear infinite; padding-left: 48px; }
.ticker span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── App worlds ── */
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.world {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 640px; display: flex; flex-direction: column;
  padding: clamp(26px, 3.4vw, 44px);
  isolation: isolate;
}
.world-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.world-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.world-chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.world h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; margin: 28px 0 12px; font-family: var(--font-display); font-weight: 700; }
.world p { max-width: 30em; }
.world-stage { flex: 1; display: grid; place-items: center; padding: 28px 0; min-height: 260px; }
.world-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; }

.world-lockify { background: var(--lockify-bg); color: var(--lockify-text); }
.world-lockify::before {
  content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: 120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 217, 164, 0.2), transparent);
}
.world-lockify::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(rgba(61, 217, 164, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 217, 164, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 55%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 55%, #000, transparent 70%);
}
.world-lockify .world-chip { background: rgba(61, 217, 164, 0.12); color: var(--lockify-teal); }
.world-lockify p { color: var(--lockify-muted); }
.world-lockify .tag { background: rgba(255, 255, 255, 0.06); color: var(--lockify-text); border: 1px solid rgba(255, 255, 255, 0.08); }
.world-lockify .btn-world { background: var(--lockify-teal); color: #08110D; box-shadow: 0 0 40px rgba(61, 217, 164, 0.25); }
.world-lockify .arrow-link { color: var(--lockify-teal); }

.vault { width: min(300px, 80%); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.vault-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(61, 217, 164, 0.18); }
.vault-ring.r2 { inset: 14%; border-color: rgba(61, 217, 164, 0.28); }
.vault-ring.r3 { inset: 28%; border: 1px dashed rgba(61, 217, 164, 0.4); animation: spin 30s linear infinite; }
.vault-lock { width: 38%; filter: drop-shadow(0 0 30px rgba(61, 217, 164, 0.35)); }
.vault-lock .shackle { transition: transform 0.6s var(--ease); transform-origin: 62px 36px; }
.world-lockify:hover .vault-lock .shackle { transform: translateY(-6px) rotate(14deg); }
.vault-file {
  position: absolute; width: 54px; height: 66px; border-radius: 10px;
  background: var(--lockify-card); border: 1px solid rgba(61, 217, 164, 0.18);
  display: grid; place-items: center; color: var(--lockify-teal);
  animation: float 6s ease-in-out infinite;
}
.vault-file svg { width: 22px; height: 22px; }
.vault-file.f1 { left: -2%; top: 18%; }
.vault-file.f2 { right: 0; top: 6%; animation-delay: -2s; }
.vault-file.f3 { right: 4%; bottom: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.world-neon { color: #0E2440; }
.world-neon .sky { position: absolute; inset: 0; z-index: -2; background: #9EC9F2 center / cover no-repeat; }
.world-neon::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.35) 100%);
}
.world-neon .world-chip { background: rgba(255, 255, 255, 0.7); color: #1B5BB8; }
.world-neon h3 { font-family: var(--font-game); font-weight: 700; color: #fff; text-shadow: 0 3px 0 #2B6FD6, 0 8px 22px rgba(20, 70, 160, 0.35); letter-spacing: -0.01em; }
.world-neon p { color: #1D3A5F; }
.world-neon .tag { background: rgba(255, 255, 255, 0.66); color: #1D3A5F; }
.world-neon .arrow-link { color: #0E2440; }

.frost {
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px -18px rgba(20, 60, 130, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
}
.board-card { width: min(340px, 100%); padding: 14px; }
.board-status { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-game); font-weight: 600; font-size: 0.95rem; color: #1D3A5F; padding: 2px 6px 10px; }
.board-status b { font-weight: 700; }

/* ── Studio / principles ── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 36px 32px 8px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 32px; }
.principle:last-child { border-right: 0; }
.principle .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.principle h3 { margin: 18px 0 10px; }
.principle p { color: var(--ink-2); }

.maker { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(64px, 9vw, 110px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 52px); }
.maker-mark { width: clamp(96px, 14vw, 160px); aspect-ratio: 1; border-radius: 32px; background: linear-gradient(145deg, #F2EEE5, #E3DCCD); display: grid; place-items: center; }
.maker-mark img { width: 56%; }
.maker blockquote { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.22; letter-spacing: -0.01em; }
.maker cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.95rem; color: var(--ink-3); }
.maker cite b { color: var(--ink); font-weight: 600; }

/* ── News ── */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item .date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.news-item h3 { font-size: 1.25rem; }
.news-item p { color: var(--ink-2); margin-top: 6px; max-width: 46em; }
.news-badge { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }

/* ── Footer ── */
.footer { background: var(--ink); color: #C9D2DD; padding: clamp(72px, 10vw, 120px) 0 36px; margin-top: clamp(40px, 6vw, 80px); }
.footer a:hover { color: #fff; }
.footer-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-cta .h2 { color: #fff; }
.mail-list { display: grid; gap: 14px; }
.mail { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.mail:hover { background: rgba(255, 255, 255, 0.09); }
.mail small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8794A4; }
.mail strong { color: #fff; font-weight: 600; font-size: 1.02rem; word-break: break-all; }
.mail svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.footer-grid h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8794A4; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { margin-top: 16px; max-width: 22em; color: #8794A4; font-size: 0.95rem; }
.footer.slim { padding: 28px 0; }
.footer.slim .footer-base { border-top: 0; padding-top: 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; color: #8794A4; }

/* ── Prose (policies) ── */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head .display { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-top: 18px; }
.prose { max-width: 760px; color: var(--ink-2); padding-bottom: 40px; }
.prose h2 { font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.12rem; margin: 28px 0 8px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Numbered sections, like the Lockify policy. */
.prose.numbered { counter-reset: section; }
.prose.numbered > h2 { counter-increment: section; padding-top: 40px; border-top: 1px solid var(--line); }
.prose.numbered > h2::before {
  content: counter(section, decimal-leading-zero); display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3);
}
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; }
.summary-card ul { margin: 0; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ── Neon Mania mini board ── */
/* The game's board panel (boardFrame) behind tiles drawn by board.js after TileDraw.kt. */
.nb svg { width: 100%; height: auto; border-radius: 14px; background: rgba(238, 244, 255, 0.85); }
.nb-spin { transform-box: fill-box; transform-origin: center; transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.5, 1); }
.nb-tap { cursor: pointer; outline: none; }
.nb-tap .nb-face { transition: filter 0.2s; }
.nb-tap:hover .nb-face { filter: brightness(1.04); }
.nb-tap:focus-visible .nb-face { stroke: var(--accent); stroke-width: 4; }
.nb-won .nb-bloom { animation: nb-pulse 1.4s ease-in-out 2; }
@keyframes nb-pulse { 50% { opacity: 0.25; stroke-width: 52; } }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { justify-self: center; max-width: 340px; order: -1; }
  .worlds { grid-template-columns: 1fr; }
  .world { min-height: 0; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .hero-mark { max-width: 220px; }
  .maker { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-badge { justify-self: start; }
  .world-foot .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
