:root {
  --bg: #08090a;
  --surface: #111315;
  --surface-soft: #171a1d;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --primary: #e7e7e7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(680px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0 40px;
}

.intro,
.media-section,
.choice-section,
.simple-panel,
.license-form,
.site-footer,
.gallery-section,
.journal-section {
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
}

.intro {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, #1d2024, #0d0f11);
  box-shadow: var(--shadow);
  overflow: hidden;
}

button.profile-photo {
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.secret-avatar {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.secret-avatar:hover {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 80px rgba(255, 255, 255, 0.08), var(--shadow);
  transform: translateY(-2px);
}

.profile-photo span {
  color: #d4d4d8;
  font-size: 18px;
  font-weight: 760;
}

.profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  margin: 0 0 4px;
  color: var(--text);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 720;
  line-height: 1.05;
}

.founder-title {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 8vw, 64px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
}

.top-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}

.top-link:hover {
  color: var(--text);
}

.founder-story {
  width: min(100%, 620px);
  margin: 0 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  text-align: left;
}

.founder-story p {
  margin: 0;
  font-size: 14px;
}

.founder-story p + p {
  margin-top: 12px;
}

.founder-story strong {
  color: var(--text);
  font-weight: 760;
}

.story-token {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(7px);
  transition: opacity 680ms ease, filter 680ms ease, transform 680ms ease;
  will-change: opacity, filter, transform;
}

.story-token.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.price-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.price-line strong {
  color: var(--text);
  font-weight: 760;
}

.media-section,
.store-section,
.choice-section,
.simple-panel,
.gallery-section,
.journal-section {
  margin-top: 24px;
  text-align: center;
}

.media-section h2,
.store-section h2,
.choice-section h2,
.gallery-section h2,
.journal-section h2 {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(340px, 100%);
  margin-top: 14px;
  border-radius: 18px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.store-badge-link:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}

.store-badge-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    #0b0d0f;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.media-frame.has-video video {
  opacity: 1;
}

.media-placeholder {
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 24px;
  color: var(--muted-2);
  text-align: center;
}

.media-placeholder strong {
  color: var(--text);
  font-size: 15px;
}

.media-placeholder span {
  font-size: 13px;
}

.sound-prompt {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.78);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sound-prompt:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 9, 10, 0.9);
  transform: translateY(-1px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.choice-card,
.simple-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
}

.choice-card {
  display: grid;
  grid-template-rows: 52px 1fr;
  gap: 8px;
  align-items: start;
  justify-items: center;
  min-height: 168px;
  padding: 18px;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.choice-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
}

.choice-card strong {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.simple-panel {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.simple-panel p {
  margin: 0;
}

.simple-panel strong {
  color: var(--text);
}

.privacy-panel {
  text-align: left;
}

.privacy-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 5vw, 38px);
}

.privacy-panel p {
  color: var(--muted);
  font-size: 14px;
}

.privacy-panel p + p {
  margin-top: 12px;
}

.privacy-panel .eyebrow {
  margin-bottom: 8px;
}

.privacy-updated {
  color: var(--muted-2);
  font-size: 13px;
}

.privacy-panel a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-intro {
  padding-top: 6px;
}

.product-mark {
  margin-bottom: 18px;
}

.license-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 19, 21, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.form-head,
.result-head,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.form-head strong {
  font-size: 16px;
  font-weight: 720;
}

.form-head span,
.result-head span,
.payment-detail span,
.license-output span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 650;
}

label {
  display: grid;
  gap: 7px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 650;
}

.field-label-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.field-help {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
}

.field-label-line .field-help::before {
  content: "|";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.24);
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0d0f;
  color: var(--text);
  font: inherit;
}

input::placeholder {
  color: #52525b;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.btn.primary {
  border-color: #f4f4f5;
  background: #f4f4f5;
  color: #08090a;
}

.btn.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn.full {
  width: 100%;
}

.payment-result,
.license-output {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0d0f;
}

.result-head strong {
  font-size: 14px;
  font-weight: 720;
}

.payment-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.payment-qr-wrap {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f4f5;
}

.payment-qr {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.payment-detail-grid {
  display: grid;
  gap: 8px;
}

.payment-detail {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.payment-detail strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.payment-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.checkout-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.license-output code {
  display: block;
  color: #fafafa;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-all;
}

.site-footer {
  margin-top: 24px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: color 160ms ease, opacity 160ms ease;
}

.footer-action:hover {
  opacity: 0.72;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted-2);
  overflow: hidden;
}

.photo-tile span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 720;
}

.photo-tile img + span {
  opacity: 0;
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-timeline {
  display: grid;
  gap: clamp(30px, 8vw, 58px);
  margin-top: 22px;
}

.timeline-entry {
  display: grid;
  gap: 16px;
  text-align: center;
}

.timeline-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b0d0f;
  color: var(--muted-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: opacity 760ms ease, filter 760ms ease, transform 760ms ease;
}

.timeline-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-media span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 760;
}

.timeline-media img + span {
  opacity: 0;
}

.timeline-copy {
  width: min(100%, 540px);
  margin: 0 auto;
  transition: opacity 680ms ease 120ms, filter 680ms ease 120ms, transform 680ms ease 120ms;
}

.timeline-copy span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.timeline-copy h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.25;
}

.timeline-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.reveal-ready .timeline-entry:not(.is-visible) .timeline-media {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px) scale(0.98);
}

.reveal-ready .timeline-entry:not(.is-visible) .timeline-copy {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
}

.timeline-entry.is-visible .timeline-media,
.timeline-entry.is-visible .timeline-copy {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.site-footer a {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f4f5;
  color: #08090a;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.secret-mode {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 20rem),
    radial-gradient(circle at 50% 100%, rgba(126, 87, 194, 0.16), transparent 30rem),
    #030405;
}

.secret-mode .page-shell {
  filter: blur(10px);
  opacity: 0.28;
  transform: scale(0.98);
  transition: opacity 360ms ease, filter 360ms ease, transform 360ms ease;
}

.secret-gate,
.secret-lock {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.12), transparent 18rem),
    rgba(3, 4, 5, 0.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.secret-gate.is-open,
.secret-lock {
  opacity: 1;
  pointer-events: auto;
}

.secret-dialog {
  width: min(100%, 440px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(8, 9, 10, 0.86);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.secret-dialog h2 {
  font-size: clamp(27px, 6vw, 42px);
}

.secret-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.secret-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.secret-question {
  display: block;
  margin: 14px 0;
  color: var(--text);
  font-size: clamp(30px, 9vw, 54px);
  line-height: 1;
}

.secret-dialog input {
  text-align: center;
  font-size: 18px;
  font-weight: 760;
  overflow: hidden;
}

.secret-dialog input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.secret-dialog input[type="number"]::-webkit-outer-spin-button,
.secret-dialog input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.shake {
  animation: shake 280ms ease;
}

.secret-unlocking {
  overflow: hidden;
}

.secret-transition {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 52%, rgba(244, 244, 245, 0.12), transparent 10rem),
    radial-gradient(circle at 22% 18%, rgba(159, 183, 255, 0.08), transparent 16rem),
    radial-gradient(circle at 76% 78%, rgba(143, 231, 209, 0.08), transparent 17rem),
    linear-gradient(180deg, #020203 0%, #06070a 48%, #020203 100%);
  color: var(--text);
  text-align: center;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.secret-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.06) 10%, transparent 13% 100%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.022) 47px, transparent 48px);
  opacity: 0;
  transform: translateX(-16%);
  animation: timelapse-field 18000ms ease forwards;
}

.secret-transition::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(244, 244, 245, 0.1) 48%, transparent 58%),
    linear-gradient(245deg, transparent 0 40%, rgba(143, 231, 209, 0.07) 50%, transparent 60%);
  opacity: 0;
  transform: scale(0.78) translateY(18px);
  animation: secret-depth 18000ms cubic-bezier(0.2, 0.82, 0.14, 1) forwards;
}

.memory-weave {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.memory-weave::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 82vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 244, 245, 0.46), transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
  transform-origin: center;
  animation: memory-thread 18000ms ease forwards;
}

.memory-weave span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(190px, 36vw);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.5);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  color: rgba(244, 244, 245, 0.82);
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 740;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(var(--sx), var(--sy), 0) rotate(var(--rot)) scale(0.72);
  animation: memory-assemble 8200ms cubic-bezier(0.18, 0.84, 0.18, 1) var(--d) forwards;
  will-change: transform, opacity;
}

.timelapse {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  width: min(460px, calc(100vw - 48px));
  min-height: 92px;
  place-items: center;
  opacity: 0;
  animation: timelapse-window 18000ms ease forwards;
}

.timelapse span {
  display: block;
  width: 100%;
  color: rgba(244, 244, 245, 0.76);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  animation: timelapse-line 1800ms ease forwards;
}

.timelapse span:nth-child(1) {
  animation-delay: 15700ms;
}

.timelapse span:nth-child(2) {
  animation-delay: 16400ms;
}

.timelapse span:nth-child(3) {
  animation-delay: 17100ms;
}

.secret-transition p {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(680px, calc(100% - 36px));
  margin: 0;
  font-size: clamp(28px, 6vw, 54px);
  font-weight: 760;
  opacity: 0;
  animation: transition-copy-center 18000ms ease forwards;
}

.secret-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #000;
}

.secret-shell {
  min-height: 100vh;
  padding: 0 0 56px;
}

.secret-title {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto 18px;
  font-size: clamp(42px, 9vw, 96px);
  line-height: 0.95;
  text-align: center;
}

.secret-graph-stage {
  position: relative;
  width: 100%;
  min-height: 76vh;
  overflow: hidden;
}

#secretGraph {
  display: block;
  width: 100%;
  height: 84vh;
  min-height: 620px;
  cursor: grab;
  touch-action: none;
}

#secretGraph:active {
  cursor: grabbing;
}

.secret-scroll-journal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: rgba(244, 244, 245, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.secret-scroll-journal:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(12, 12, 12, 0.72);
  transform: translateY(-1px);
}

.secret-info {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(560px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(3, 4, 5, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease;
}

.secret-info.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.secret-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.secret-info-close:hover {
  border-color: var(--line-strong);
}

.secret-info img {
  width: 74px;
  height: 74px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.secret-info span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 760;
}

.secret-info h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 5vw, 38px);
}

.secret-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.secret-hint {
  width: min(680px, calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

.secret-writing {
  display: grid;
  gap: 14px;
  width: min(680px, calc(100% - 32px));
  margin: 34px auto 0;
  scroll-margin-top: 24px;
  color: var(--muted);
}

.secret-writing p {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  text-align: center;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

@keyframes timelapse-field {
  0%, 8% {
    opacity: 0;
    transform: translateX(-16%);
  }

  20%, 78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(18%);
  }
}

@keyframes secret-depth {
  0%, 84% {
    opacity: 0;
    transform: scale(0.78) translateY(18px);
  }

  92% {
    opacity: 0.72;
    transform: scale(1.04) translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(2.65) translateY(-18px);
  }
}

@keyframes memory-thread {
  0%, 10% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
  }

  32%, 54% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.18);
  }
}

@keyframes memory-assemble {
  0% {
    opacity: 0;
    transform: translate3d(var(--sx), var(--sy), 0) rotate(var(--rot)) scale(0.72);
  }

  22% {
    opacity: 0.92;
  }

  48%, 66% {
    opacity: 1;
    transform: translate3d(var(--tx), var(--ty), 0) rotate(0deg) scale(1);
  }

  82% {
    opacity: 0.84;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.72);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.08);
  }
}

@keyframes timelapse-window {
  0%, 86% {
    opacity: 0;
    transform: translateY(10px);
  }

  90%, 99% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes timelapse-line {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  18%, 72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes transition-copy-center {
  0%, 72% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px)) scale(0.96);
  }

  77%, 83% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  87%, 100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 16px)) scale(0.98);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 680px);
    padding-top: 34px;
  }

  .license-form {
    padding: 16px;
    border-radius: 16px;
  }

  .form-head,
  .result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .payment-card,
  .payment-actions,
  .choice-grid,
  .photo-grid,
  .secret-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: center;
    justify-content: center;
  }

  .footer-actions {
    justify-content: center;
    margin-left: 0;
  }

  .choice-card {
    min-height: 0;
  }

  .timeline-media {
    border-radius: 18px;
  }

  .secret-info {
    position: fixed;
  }

  #secretGraph {
    height: 70vh;
    min-height: 480px;
  }
}
