:root {
  --bg: #000000;
  --panel: #08080a;
  --border: #1c1c20;
  --border-soft: #121215;
  --text: #f2f0ec;
  --text-mid: #9d9a95;
  --text-dim: #5c5a56;
  --blood: #a4161a;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);

  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

::selection { background: var(--text); color: #000; }

#gl-canvas,
#rain-canvas,
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#gl-canvas {
  background: radial-gradient(ellipse 75% 40% at 50% -12%, rgba(255,255,255,0.06), transparent 62%), var(--bg);
}

#rain-canvas { z-index: 4; pointer-events: none; }
#bg-canvas { z-index: 1; }

.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 68%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.cursor-ring {
  position: fixed;
  z-index: 6;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 1px solid rgba(242,240,236,0.32);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease),
              margin .35s var(--ease), background .35s ease,
              border-color .35s ease, opacity .5s ease;
}

.cursor-ring.hot {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  background: rgba(242,240,236,0.05);
  border-color: rgba(242,240,236,0.55);
}

.grain {
  position: fixed;
  inset: -8%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1s steps(1) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1.5%); }
  40%  { transform: translate(1.5%, -2%); }
  60%  { transform: translate(-1%, -1.5%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 24vw rgba(0,0,0,0.9);
}

.thread {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(1.8rem, calc(50% - 350px));
  width: 1px;
  background: var(--border-soft);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.thread.on { opacity: 1; }

.thread span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--text-mid));
  transform-origin: top;
  transform: scaleY(0);
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.word-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}

.revealed .word-inner { transform: translateY(0); opacity: 1; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,0.86);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}

#gate.opening {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(14px);
  pointer-events: none;
}

.gate-inner {
  max-width: 620px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.gate-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  min-height: 1em;
  opacity: 0;
  animation: fade-up 1.4s var(--ease) 0.4s forwards;
}

.gate-rule {
  height: 64px;
  margin: 1.6rem auto 2.2rem;
  width: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.gate-rule span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--text-mid));
  transform: scaleY(0);
  transform-origin: top;
  animation: draw-down 1.5s var(--ease) 0.9s forwards;
}

@keyframes draw-down { to { transform: scaleY(1); } }

.gate-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--text);
}

.gate-line em { font-style: italic; color: var(--text-mid); }

.gate-form {
  margin-top: 3.2rem;
  opacity: 0;
  animation: fade-up 1.4s var(--ease) 2.6s forwards;
}

.gate-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  transition: color 0.5s ease;
}

.gate-form.ok .gate-label { color: var(--text-mid); }

.gate-field {
  display: inline-flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 100%;
}

.gate-field.wrong { animation: shake 0.5s var(--ease); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.gate-input {
  width: 220px;
  max-width: 46vw;
  padding: 0.75rem 0.6rem;
  background: rgba(242,240,236,0.02);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 3px;
  text-align: center;
  outline: none;
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.gate-input::placeholder { color: #2e2d2b; letter-spacing: 2px; }

.gate-input:focus {
  border-color: #33333a;
  background: rgba(242,240,236,0.045);
}

.gate-field.wrong .gate-input { border-color: var(--blood); }

.gate-field.ok .gate-input {
  border-color: var(--text-mid);
  color: var(--text-mid);
}

.gate-submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.gate-submit-inner {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  letter-spacing: 2.2px;
  transition: transform 0.3s var(--ease), letter-spacing 0.45s var(--ease);
}

.gate-submit-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.gate-submit-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(242,240,236,0.16), transparent);
  transform: translateX(-170%) skewX(-18deg);
  animation: sheen 5.2s var(--ease) 3.4s infinite;
}

@keyframes sheen {
  0%   { transform: translateX(-170%) skewX(-18deg); }
  24%  { transform: translateX(330%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}

.gate-submit-scan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes scan { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.gate-dot {
  flex: none;
  margin-right: 0.6rem;
  transition: background 0.45s ease;
}

.gate-submit-arrow {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: max-width 0.45s var(--ease), margin-left 0.45s var(--ease),
              opacity 0.4s ease, transform 0.45s var(--ease);
}

.gate-submit:hover,
.gate-submit:focus-visible {
  color: #000;
  border-color: var(--text);
  outline: none;
}

.gate-submit:hover .gate-submit-fill,
.gate-submit:focus-visible .gate-submit-fill { transform: translateY(0); }

.gate-submit:hover .gate-submit-inner,
.gate-submit:focus-visible .gate-submit-inner { letter-spacing: 3.2px; }

.gate-submit:hover .gate-dot,
.gate-submit:focus-visible .gate-dot { background: #000; }

.gate-submit:hover .gate-submit-arrow,
.gate-submit:focus-visible .gate-submit-arrow {
  max-width: 1.4em;
  margin-left: 0.55rem;
  opacity: 1;
  transform: translateX(0);
}

.gate-submit:active .gate-submit-inner { transform: scale(0.93); }

.gate-submit.checking {
  pointer-events: none;
  color: var(--text-mid);
  border-color: #2a2a30;
}

.gate-submit.checking .gate-submit-scan { animation: scan 0.62s linear forwards; }
.gate-submit.checking .gate-dot { animation: heartbeat 0.5s ease-in-out infinite; }
.gate-submit.checking .gate-submit-sheen { animation: none; opacity: 0; }

.gate-submit.erro {
  color: var(--blood);
  border-color: var(--blood);
}

.gate-submit.erro .gate-dot { background: var(--blood); }

.gate-form.ok .gate-submit {
  pointer-events: none;
  color: #000;
  border-color: var(--text);
}

.gate-form.ok .gate-submit-fill {
  transform: translateY(0);
  transition-duration: 0.42s;
}
.gate-form.ok .gate-submit-inner { letter-spacing: 3.2px; }
.gate-form.ok .gate-submit-sheen { animation: sheen 1.1s var(--ease) forwards; }

.gate-form.ok .gate-submit-arrow {
  max-width: 1.4em;
  margin-left: 0.55rem;
  opacity: 1;
  transform: translateX(0);
}

.gate-error,
.gate-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 1.6px;
  min-height: 1em;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gate-error {
  margin-top: 1.3rem;
  text-transform: uppercase;
  color: var(--blood);
}

.gate-hint {
  margin-top: 0.7rem;
  letter-spacing: 1px;
  font-style: italic;
  color: var(--text-dim);
}

.gate-error.on,
.gate-hint.on { opacity: 1; }

.gate-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blood);
  animation: heartbeat 2.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  14% { transform: scale(1.5); opacity: 1; }
  28% { transform: scale(1); opacity: 0.85; }
  42% { transform: scale(1.35); opacity: 1; }
  56% { transform: scale(1); opacity: 0.85; }
}

.gate-form.ok .gate-dot {
  background: #000;
  animation: none;
  transform: scale(1);
  opacity: 1;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#page {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 7rem 1.5rem 7rem;
}

.hidden { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.hero {
  text-align: center;
  margin-bottom: 5rem;
  will-change: transform;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
}

.hero-title em {
  font-style: italic;
  color: var(--text-mid);
}

.hero-sub {
  margin: 1.8rem auto 0;
  color: var(--text-mid);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 400px;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 2rem 1.9rem;
  margin-bottom: 1rem;
  transform-style: preserve-3d;
}

.panel.tilt-ready {
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.panel.tilting { box-shadow: 0 26px 60px rgba(0,0,0,0.6); }

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.panel-hint {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.track-list { display: flex; flex-direction: column; }

.track { border-top: 1px solid var(--border-soft); }
.track:last-child { border-bottom: 1px solid var(--border-soft); }

.track-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  padding: 1.1rem 0.2rem;
}

.track-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  flex: none;
  width: 18px;
  transition: color 0.35s ease;
}

.track-head:hover .track-num { color: var(--text-mid); }

.track-info { flex: 1; min-width: 0; }

.track-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--text-mid);
  transition: color 0.35s ease;
}

.track-title span {
  display: inline-block;
  transition: transform 0.45s var(--ease), color 0.35s ease;
}

.track-head:hover .track-title span { transform: translateY(-4px); }
.track-head:hover .track-title,
.track.active .track-title { color: var(--text); }

.track-artist {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.track-play {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.35s ease;
}

.track-head:hover .track-play,
.track.active .track-play { color: var(--text); }

.track-note {
  display: none;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-dim);
  padding: 0 0 1rem 2.9rem;
}

.track.active .track-note { display: block; animation: fade-up 0.8s var(--ease); }

.track-embed {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}

.track.active .track-embed { max-height: 200px; }

.track-embed iframe {
  width: 100%;
  height: 158px;
  display: block;
  border: none;
  margin-bottom: 0.9rem;
}

.track-fallback {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  text-decoration: none;
}

.track-fallback img {
  display: block;
  width: 100%;
  height: 158px;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.35s ease, transform 0.7s var(--ease);
}

.track-fallback:hover img { opacity: 0.78; transform: scale(1.04); }

.track-fallback span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0,0,0,0.3);
}

.track-link {
  display: none;
  font-family: var(--font-mono);
  padding-bottom: 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.track.active .track-link { display: block; }
.track-link:hover { color: var(--text); }

.call-log {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin: 2.2rem 0 0;
}

.call-linha { position: relative; }

.call-brilho {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 60% at 30% 50%, rgba(37,211,102,0.30), transparent 72%);
  filter: blur(26px);
  opacity: 0;
  transition: opacity 1.6s ease 0.35s;
  pointer-events: none;
}

.call-linha.acesa .call-brilho { opacity: 1; }

.call-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 360px;
  margin: 0 auto;
  padding: 0.62rem 1.5rem 0.62rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(100deg, #cdf2da 0%, #e7f8ed 30%, #fdfdfd 68%);
  box-shadow: 0 20px 46px rgba(0,0,0,0.62), 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-32px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.85s cubic-bezier(.2, 1.32, .36, 1);
}

.call-pill.chegou { opacity: 1; transform: none; }

.call-icone {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.call-logo { display: block; width: 100%; height: 100%; }

.call-icone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
}

.call-pill.chegou .call-icone::after {
  animation: call-ping 1.2s var(--ease) 0.3s;
}

@keyframes call-ping {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 0; transform: scale(2); }
}

.call-corpo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.call-nome {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #101013;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-tempo {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  color: #8a8f96;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.call-legenda {
  max-width: 340px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.call-legenda.on { opacity: 1; transform: none; }

.call-total {
  margin-top: 3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.call-total.on { opacity: 1; transform: none; }

.call-total-rule {
  height: 1px;
  margin: 0 auto 2rem;
  max-width: 200px;
  background: var(--border);
}

.call-total-rule span {
  display: block;
  width: 34px;
  height: 1px;
  margin: 0 auto;
  background: var(--blood);
}

.call-total-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.call-total-time {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 0 34px rgba(242,240,236,0.16);
}

.call-total-selo {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(164,22,26,0.5);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--blood);
}

.call-total-text {
  max-width: 380px;
  margin: 1.5rem auto 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.62;
  color: var(--text-mid);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.call-total-text.on { opacity: 1; }

.print-extra {
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border-soft);
}

.print-hint {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1rem;
}

.print { opacity: 0; }

.print.carregado {
  opacity: 1;
  animation: fade-up 0.9s var(--ease) both;
}

.print-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0b0b0d;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.55s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

.print-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: grayscale(0.3) contrast(1.02);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.7s var(--ease);
}

.print-frame:hover {
  transform: rotate(0deg) translateY(-3px);
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.62);
}

.print-frame:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}

.print-zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(242,240,236,0.16);
  padding: 0.2rem 0.42rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  pointer-events: none;
}

.print-frame:hover .print-zoom { opacity: 1; transform: translateY(0); }

.print figcaption {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.8px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-top: 0.6rem;
  padding: 0 0.15rem;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(4.2rem + env(safe-area-inset-top, 0px)) 4.6rem
           calc(4.2rem + env(safe-area-inset-bottom, 0px));
  animation: fade-in 0.35s ease;
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  max-width: 100%;
  max-height: 100%;
}

#lb-img {
  max-width: 100%;
  max-height: calc(100vh - 9.5rem);
  max-height: calc(100dvh - 9.5rem);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 2px;
  animation: fade-up 0.5s var(--ease);
}

.lb-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-mid);
  text-align: center;
}

.lb-conta { color: var(--text-dim); letter-spacing: 1.6px; }

.lb-close,
.lb-nav {
  position: fixed;
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.lb-close:hover,
.lb-nav:hover { color: var(--text); }

.lb-close {
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  font-size: 1.9rem;
  padding: 0 0 0.25rem;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 56px;
  font-size: 2.6rem;
  padding: 0 0 0.3rem;
}

.lb-prev { left: 0.7rem; }
.lb-next { right: 0.7rem; }

.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

#lightbox.sozinho .lb-nav { display: none; }

.message-panel {
  border-color: var(--border);
  padding: 2.8rem 2.3rem;
}

.message-text {
  font-size: 1.14rem;
  line-height: 1.95;
  color: var(--text-mid);
  min-height: 5em;
}

.message-text p + p { margin-top: 1.5rem; }

.message-text p:last-child {
  color: var(--text);
  font-style: italic;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--text);
  vertical-align: -0.16em;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.skip-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #3a3936;
  margin-top: 1.4rem;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.6s ease;
}

.skip-hint:hover { color: var(--text-dim); }
.skip-hint.gone { opacity: 0; pointer-events: none; }

.cta { text-align: center; margin-top: 3.5rem; }

.choice-wrap {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  min-height: 54px;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.magnetic { will-change: transform; }

.btn-primary {
  background: var(--text);
  color: #000;
}

.btn-primary:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}

.btn-ghost:hover { color: var(--text-mid); border-color: #2a2a30; }

#success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem
           calc(1.5rem + env(safe-area-inset-bottom, 0px));
  animation: fade-in 0.6s ease;
  perspective: 1000px;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

#confetti-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.success-card {
  position: relative;
  z-index: 1;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3.2rem 2.5rem;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  max-width: 410px;
  margin: auto;
  transform-style: preserve-3d;
  animation: card-in 1.1s var(--ease);
}

@keyframes card-in {
  0% { transform: perspective(1000px) rotateX(22deg) translateY(40px) scale(0.94); opacity: 0; }
  100% { transform: perspective(1000px) rotateX(0) translateY(0) scale(1); opacity: 1; }
}

.success-eyebrow {
  font-family: var(--font-mono);
  color: var(--blood);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.success-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 1.3rem 0 1rem;
}

.success-title em { font-style: italic; color: var(--text-mid); }

.success-sub {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.4rem;
}

.since {
  margin: 0 0 2.2rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--border);
}

.since-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.since-date {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--text);
  margin-top: 0.6rem;
}

.counter {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.counter div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 42px;
}

.counter strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.counter span {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.success-ps {
  font-size: 0.92rem;
  font-style: italic;
  color: #3f3e3b;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.success-ps.on { opacity: 1; }

.success-anel {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.8s var(--ease), transform 1.8s var(--ease);
}

.success-anel.on { opacity: 1; transform: none; }

.success-anel-rule {
  display: block;
  width: 34px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--blood);
}

.success-anel p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.62;
  color: var(--text-mid);
}

.back-link {
  position: relative;
  margin-top: 2.4rem;
  padding: 0.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

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

.back-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.back-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (hover: none) {
  .cursor-glow, .cursor-ring { display: none; }
}

@media (max-width: 900px) {
  .thread { display: none; }
}

@media (max-width: 480px) {
  #page { padding: 4.5rem 1.2rem 5rem; }
  .panel { padding: 1.6rem 1.3rem; }
  .message-panel { padding: 2rem 1.4rem; }
  .track-note { padding-left: 0; }
  .call-pill { max-width: 100%; padding-right: 1.1rem; }
  .call-nome { font-size: 1.02rem; }
  .call-tempo { font-size: 0.9rem; }
  .call-brilho { width: 100%; }
  .print-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .print-frame { aspect-ratio: 16 / 10; }
  #lightbox { padding: 3.4rem 1rem; }
  #lb-img { max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); }
  .lb-nav { font-size: 2rem; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .gate-field { flex-direction: column; align-items: stretch; width: 100%; }
  .gate-input { width: 100%; max-width: none; }
  .gate-submit { padding: 0.95rem 1.35rem; }
}

@media (hover: none) {
  .print-frame { transform: none; }
  .print-frame img { opacity: 0.95; filter: none; }
  .print-zoom { opacity: 0.75; transform: none; }
}

@media (hover: none) {
  .gate-submit-arrow {
    max-width: 1.4em;
    margin-left: 0.55rem;
    opacity: 0.55;
    transform: none;
  }
  .gate-submit:active .gate-submit-fill { transform: translateY(0); }
  .gate-submit:active { color: #000; border-color: var(--text); }
  .gate-submit:active .gate-dot { background: #000; }
}

@media (max-height: 620px) {
  #gate { padding: 1.2rem 1.4rem; }
  .gate-rule { height: 24px; margin: 0.9rem auto 1.1rem; }
  .gate-line { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .gate-form { margin-top: 1.6rem; }
}

@media (hover: none) {
  .track-head:active { background: rgba(242,240,236,0.045); }
  .btn:active { opacity: 0.72; }
  .skip-hint:active { color: var(--text-mid); }
  .print-frame:active { border-color: var(--text-dim); }
  .lb-close:active, .lb-nav:active { color: var(--text); }
  .back-link:active { color: var(--text); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .word-inner, .reveal { opacity: 1; transform: none; }
  .print { opacity: 1; }
  .call-pill, .call-legenda, .call-total, .call-total-text { opacity: 1; transform: none; }
  .call-brilho { opacity: 1; }
  .print-frame, .print-frame:hover { transform: none; }
}
