:root {
  --bg: #0e1626;
  --surface: #172136;
  --ink: #ede6da;
  --soft: #cfc7ba;
  --muted: #988f84;
  --line: rgba(237, 230, 218, 0.14);
  --accent: #8db6d4;
  --display: "Frank Ruhl Libre", "Times New Roman", serif;
  --body: "Assistant", "Arial Hebrew", system-ui, sans-serif;
  --num: "Instrument Serif", "Frank Ruhl Libre", serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1.05rem, 0.35vw + 1rem, 1.2rem) / 1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain, fixed so it never repaints on scroll */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }

main, .top, .foot { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
}

/* top bar */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1.25rem; font-size: 0.95rem; color: var(--muted);
}
.top a { padding-block: 0.75rem; transition: color 0.3s; }
.top a:hover { color: var(--ink); }
.brand { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.brand span { font-family: var(--num); color: var(--accent); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  min-height: calc(100dvh - 5rem); padding-block: clamp(1.5rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem);
}
h1 {
  font: 500 clamp(4.25rem, 13.5vw, 12.5rem) / 0.95 var(--display);
  letter-spacing: -0.02em;
}
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line);
}
.stats div { padding: 1.1rem 0 0; }
.stats div + div { padding-inline-start: 1.1rem; border-inline-start: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { font: 400 clamp(2.5rem, 5vw, 4.25rem) / 1 var(--num); margin-top: 0.4rem; }

.hero-photo { display: grid; justify-items: center; gap: 1rem; }
.portrait {
  position: relative; width: 100%; max-width: 30rem; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 999px 999px 1.25rem 1.25rem; background: var(--surface);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait { cursor: pointer; }
.portrait .color { opacity: 0; transition: opacity 1.2s var(--ease); }
.portrait.is-color .color { opacity: 1; }

/* intro */
.intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line);
}
.intro-lead { font: 400 clamp(1.5rem, 2.6vw, 2.35rem) / 1.45 var(--display); }
.intro-rest { display: grid; gap: 1.25rem; align-content: start; color: var(--soft); }

/* contents */
.toc { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.toc ol { columns: 2; column-gap: clamp(2rem, 5vw, 5rem); }
.toc li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.toc a {
  display: block; padding-block: 0.85rem;
  font-family: var(--display); font-size: 1.15rem; transition: color 0.3s, transform 0.4s var(--ease);
}
.toc a:hover { color: var(--accent); transform: translateX(-0.4rem); }
.toc a > span { display: inline-block; font-family: var(--num); color: var(--accent); min-width: 2.6em; }

/* chapters */
.ch {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(4rem, 9vw, 8.5rem); border-top: 1px solid var(--line);
}
.ch-head { position: sticky; top: 2.5rem; align-self: start; }
.ch-no { display: block; font: 400 1.5rem / 1 var(--num); color: var(--accent); margin-bottom: 1rem; }
h2 { font: 500 clamp(2rem, 3.6vw, 3.25rem) / 1.15 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h3 { font: 500 clamp(1.35rem, 1.8vw, 1.65rem) / 1.3 var(--display); margin-top: 3.5rem; margin-bottom: 1rem; }
.ch-body > p, .ch-body > p + p { max-width: 62ch; color: var(--soft); }
.ch-body > * + * { margin-top: 1rem; }
.ch-body strong { color: var(--ink); font-weight: 600; }
.when { color: var(--accent) !important; font-size: 0.95rem; margin-top: -0.5rem !important; }

.eq {
  font: 400 clamp(1.5rem, 2.6vw, 2.1rem) / 1.4 var(--num); color: var(--ink) !important;
  text-align: right; letter-spacing: 0.02em;
}
.n { font-family: var(--num); color: var(--accent); font-weight: 400; }

.big {
  display: flex; align-items: flex-end; gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-block: 2.5rem !important; padding-block: 2rem; border-block: 1px solid var(--line);
}
.big .num { font: 400 clamp(7rem, 17vw, 13rem) / 0.78 var(--num); color: var(--accent); }
.big .num i { font-style: normal; color: var(--line); margin-inline: 0.08em; }
.big div { display: grid; gap: 0.25rem; padding-bottom: 0.4rem; }
.big strong { font: 500 1.35rem / 1.3 var(--display); }
.big div span { color: var(--muted); }

.rows { margin-block: 1.5rem !important; border-bottom: 1px solid var(--line); }
.rows li { padding: 0.9rem 0; border-top: 1px solid var(--line); color: var(--soft); }
.rows.pairs li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; align-items: baseline; }
.rows.pairs b { font: 500 1.15rem / 1.4 var(--display); color: var(--ink); }
.rows.pairs b.n { font: 400 2.25rem / 1 var(--num); color: var(--accent); }
.rows.pairs span strong { display: block; font: 500 1.2rem / 1.4 var(--display); }
.rows.stack li { display: grid; gap: 0.15rem; }
.rows.stack b { font: 500 1.15rem / 1.4 var(--display); color: var(--ink); }

.pull {
  font: 400 clamp(1.5rem, 2.5vw, 2.15rem) / 1.45 var(--display); color: var(--ink);
  margin-block: 2.5rem !important; padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--accent);
  max-width: 30ch; text-wrap: balance;
}

.tbl { width: 100%; border-collapse: collapse; margin-block: 2rem !important; }
.tbl th { text-align: start; font-weight: 400; font-size: 0.85rem; color: var(--muted); padding: 0 0 0.75rem; }
.tbl td { padding: 0.9rem 0; border-top: 1px solid var(--line); color: var(--soft); vertical-align: baseline; }
.tbl td:first-child { font: 500 1.1rem / 1.4 var(--display); color: var(--ink); padding-inline-end: 1rem; }
.tbl td.n { font-size: 1.9rem; line-height: 1; }
.tbl td[dir="ltr"] { text-align: right; font-family: var(--num); font-size: 1.35rem; }
.tbl.three td.n { padding-inline: 0.5rem 1.25rem; }

.letters { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-block: 2rem !important; }
.word { display: flex; gap: 0.5rem; }
.word > div {
  display: grid; justify-items: center; gap: 0.35rem; width: clamp(3.4rem, 9vw, 5rem);
  padding: 1rem 0 0.8rem; border: 1px solid var(--line); border-radius: 0.9rem;
}
.word b { font: 500 clamp(2rem, 4vw, 2.75rem) / 1 var(--display); }
.word span { font: 400 1.25rem / 1 var(--num); color: var(--accent); }

.sums { display: grid; margin-block: 2rem !important; border-bottom: 1px solid var(--line); }
.sums > div {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; align-items: baseline;
  padding: 0.9rem 0; border-top: 1px solid var(--line);
}
.sums span { font: 500 1.15rem / 1.4 var(--display); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.duo h3 { margin-top: 0; }

.peaks {
  display: grid; grid-template-columns: 27fr 9fr 9fr 14fr; gap: 0.5rem;
  margin-block: 3rem !important;
}
.peaks li {
  display: grid; align-content: start; gap: 0.5rem; min-width: 0;
  padding-top: 1rem; border-top: 2px solid var(--line);
}
.peaks .age { font: 400 1rem / 1 var(--num); color: var(--muted); text-align: right; }
.peaks .n { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--soft); }
.peaks .now { border-color: var(--accent); }
.peaks .now .n { color: var(--accent); }
.peaks em { font-style: normal; font-size: 0.85rem; color: var(--accent); display: flex; align-items: center; gap: 0.5rem; }
.peaks em::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

.map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 2rem !important; border-top: 1px solid var(--line); }
.map > div { display: grid; gap: 0.2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.map > div:nth-child(even) { padding-inline-start: 2rem; border-inline-start: 1px solid var(--line); }
.map .n { font-size: clamp(4rem, 8vw, 6.5rem); line-height: 0.9; }
.map strong { font: 500 1.35rem / 1.3 var(--display); margin-top: 0.75rem; }
.map div span:last-child { color: var(--muted); }

/* letter */
.letter {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(4rem, 10vw, 10rem); border-top: 1px solid var(--line);
}
.letter .portrait { position: sticky; top: 3rem; align-self: start; justify-self: center; }
.letter h2 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); color: var(--muted); font-weight: 400; margin-bottom: 3rem; }
.letter p { font: 300 clamp(1.3rem, 2vw, 1.75rem) / 1.6 var(--display); color: var(--soft); max-width: 32ch; margin-top: 1.4rem; }
.letter .dear { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 500; color: var(--ink); line-height: 1.1; margin-bottom: 2.5rem; }
.letter .strong { font-weight: 500; color: var(--accent); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.4; margin-block: 2.75rem; text-wrap: balance; }

.foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-block: 3rem 4rem; border-top: 1px solid var(--line); color: var(--muted);
  font-family: var(--num); font-size: 1.15rem;
}
.foot-name { font: 500 1.5rem / 1 var(--display); color: var(--ink); }

/* personal note */
.note-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; vertical-align: middle;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none; color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.note-btn:hover { transform: scale(1.15); }
.note-btn:active { transform: scale(0.95); }
.note-btn svg { width: 1.5rem; height: 1.5rem; fill: currentColor; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

.note {
  width: min(40rem, calc(100% - 1.5rem)); padding: 0.55rem; overflow: hidden;
  background: var(--surface); color: var(--ink); text-align: center;
  border: 1px solid var(--line); border-radius: 1.75rem;
}
.note-in {
  max-height: calc(92dvh - 1.1rem); overflow-y: auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.1rem, 5vw, 3rem);
  border: 1px solid rgba(217, 139, 43, 0.35); border-radius: 1.25rem;
}
.note::backdrop { background: rgba(13, 12, 11, 0.82); backdrop-filter: blur(6px); }
.note[open] { animation: rise 0.7s var(--ease); }
.note-close {
  position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.note-close:hover { color: var(--ink); }
.hearts { display: flex; justify-content: center; align-items: center; gap: 0.6rem; }
.hearts svg { width: 1rem; height: 1rem; fill: var(--accent); animation: float 3.2s ease-in-out infinite; }
.hearts svg:nth-child(2) { width: 1.9rem; height: 1.9rem; animation-delay: 0.4s; }
.hearts svg:nth-child(3) { animation-delay: 0.8s; }
.hearts.end svg { width: 0.7rem; height: 0.7rem; opacity: 0.55; }
.hearts.end svg:nth-child(3) { width: 1.3rem; height: 1.3rem; opacity: 1; }
.hearts.end svg:nth-child(2), .hearts.end svg:nth-child(4) { width: 0.95rem; height: 0.95rem; opacity: 0.8; animation-delay: 0.6s; }
@keyframes float { 50% { transform: translateY(-0.3rem); } }
.note-text { margin-block: 1.25rem 1.5rem; }
.note-text p { font: 300 clamp(1.1rem, 2vw, 1.3rem) / 1.5 var(--display); color: var(--soft); margin-top: 0.6rem; text-wrap: balance; }
.note-text .note-title { font-weight: 500; font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.2; color: var(--accent); margin: 0 0 1.25rem; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rows.reveal, .js .rows.reveal.in { opacity: 1; transform: none; }
.js .rows.reveal li { opacity: 0; transform: translateY(0.75rem); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rows.reveal.in li { opacity: 1; transform: none; }
.js .hero-text > * { animation: rise 1.1s var(--ease) both; }
.js .hero-text > :nth-child(2) { animation-delay: 0.1s; }
.js .hero-text > :nth-child(3) { animation-delay: 0.25s; }
.js .hero-text > :nth-child(4) { animation-delay: 0.4s; }
.js .hero-photo { animation: rise 1.4s var(--ease) 0.15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(2rem); } }

@media (max-width: 767px) {
  .hero, .intro, .ch, .letter, .duo { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-photo { order: -1; }
  .portrait { max-width: 19rem; }
  .ch-head { position: static; }
  .letter .portrait { position: relative; top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .stats div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .toc ol { columns: 1; }
  .rows.pairs li, .sums > div { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
  .rows.pairs li:has(b.n) { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .rows.pairs b.n { font-size: 1.75rem; }
  .peaks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.75rem; }
  .big { flex-direction: column; align-items: flex-start; }
  .duo h3 { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rows.reveal li { opacity: 1; transform: none; }
}

/* photo band: the beach, between life path 5 and the birthday chapter */
.band {
  position: relative; overflow: hidden; aspect-ratio: 21 / 9;
  border-radius: 1.25rem; background: var(--surface); margin-block: clamp(1rem, 3vw, 2rem);
}
.band img {
  width: 100%; height: 100%; object-fit: cover; object-position: 54% 40%;
  transform: scale(1.12); transition: transform 2.6s var(--ease);
}
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 22, 38, 0.82), rgba(14, 22, 38, 0) 48%);
}
.band figcaption {
  position: absolute; z-index: 1; inset-inline-start: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.25rem, 3.5vw, 3rem);
  display: flex; align-items: flex-end; gap: clamp(0.75rem, 2vw, 1.5rem);
}
.band figcaption .n { font-size: clamp(4.5rem, 10vw, 9rem); line-height: 0.78; }
.band figcaption span:last-child { font: 400 clamp(1.15rem, 2vw, 1.7rem) / 1.3 var(--display); color: var(--ink); padding-bottom: 0.3rem; }
.js .band.reveal { opacity: 1; transform: none; clip-path: inset(10% 6% round 1.25rem); transition: clip-path 1.6s var(--ease); }
.js .band.reveal.in { clip-path: inset(0 round 1.25rem); }
.band.in img { transform: scale(1); }

/* round mirror: the selfie beside the number 7 */
.mirror { display: grid; justify-items: center; gap: 2rem; margin-block: 2.5rem 3rem !important; }
.mirror-frame {
  position: relative; width: min(22rem, 76%); aspect-ratio: 1; padding: 0.6rem;
  border-radius: 50%; border: 1px solid var(--line);
}
.mirror-frame::before {
  content: ""; position: absolute; inset: -0.9rem; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.45; transform: translate(0.6rem, -0.5rem);
  transition: transform 1.2s var(--ease);
}
.mirror-frame::after {
  content: ""; position: absolute; inset: 0.6rem; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
}
.mirror.in .mirror-frame::after { animation: glint 1.8s 0.5s var(--ease) both; }
.mirror-frame:hover::before { transform: translate(-0.5rem, 0.4rem); }
.mirror-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mirror figcaption { display: flex; align-items: baseline; gap: 0.75rem; max-width: 34ch; color: var(--muted); font: 400 1.15rem / 1.5 var(--display); }
.mirror figcaption .n { font-size: 2.4rem; line-height: 1; }
@keyframes glint { from { background-position: 130% 0; } to { background-position: -30% 0; } }

@media (max-width: 767px) {
  .band { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .js .band.reveal { clip-path: none; }
  .band img { transform: none; }
  .mirror.in .mirror-frame::after { animation: none; }
}

/* beach band: after it opens, the shot keeps drifting, the sun breathes, the caption arrives last */
.band img { transform-origin: 54% 22%; }
.band.in img { animation: drift 22s 2.6s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-2%, 0.5%); }
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(ellipse 55% 45% at 85% 8%, rgba(255, 236, 200, 0.45), transparent 70%);
}
.band.in::before { animation: sun 7s 1.6s ease-in-out infinite alternate; }
@keyframes sun { from { opacity: 0.15; } to { opacity: 0.85; } }
.js .band figcaption > * { opacity: 0; transform: translateY(1.25rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .band figcaption .n { transition-delay: 1s; }
.js .band figcaption span:last-child { transition-delay: 1.25s; }
.band.in figcaption > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .band.in img, .band.in::before { animation: none; }
  .js .band figcaption > * { opacity: 1; transform: none; }
}

/* login gate */
.gate { display: none; }
.locked body > :not(.gate) { display: none; }
.locked .gate {
  display: grid; place-items: center; min-height: 100svh; padding: 2rem 1rem;
  transition: opacity 0.7s var(--ease);
}
.gate.out { opacity: 0; }
.gate-card { width: min(24rem, 100%); display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.gate-photo {
  width: 8.5rem; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 0.5rem;
  border-radius: 999px 999px 0.9rem 0.9rem; background: var(--surface);
}
.gate-photo img { width: 100%; height: 100%; object-fit: cover; }
.gate-title { font: 500 clamp(2.4rem, 9vw, 3.4rem) / 1 var(--display); margin-bottom: 1.5rem; }
.gate-sub { color: var(--muted); max-width: 30ch; margin-bottom: 1rem; }
.field { width: 100%; display: grid; gap: 0.35rem; text-align: start; }
.field span { color: var(--muted); font-size: 0.85rem; }
.field input {
  width: 100%; padding: 0.65rem 0.1rem; font: 400 1.2rem var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.3s;
}
.field input:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder { color: var(--line); font-family: var(--num); letter-spacing: 0.08em; }
#gate-pass { font-family: var(--num); font-size: 1.4rem; letter-spacing: 0.12em; text-align: right; }
.gate-error { min-height: 1.5em; color: #e8a0a0; font-size: 0.95rem; }
.gate-btn {
  width: 100%; padding: 0.9rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1.1rem var(--body); color: var(--bg); background: var(--accent);
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.gate-btn:hover { filter: brightness(1.08); }
.gate-btn:active { transform: scale(0.98); }
.gate-card.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .gate-card.shake { animation: none; } }
.locked .gate { display: grid; }
.gate-mark { display: grid; place-items: center; border: 1px solid var(--line); }
.gate-mark span { font: 400 3.4rem / 1 var(--num); color: var(--accent); }
.gate-btn:disabled { opacity: 0.6; cursor: wait; }
