:root {
  --dark: #2b1023;
  --dark-2: #35152c;
  --paper: #fffafb;
  --paper-soft: #fff3f7;
  --card: #ffffff;
  --text: #3a2230;
  --muted: #8b6676;
  --line: #f0d8e2;
  --green: #e2528b;
  --green-deep: #8f2451;
  --yellow: #f4c95d;
  --red: #e45568;
  --blue: #8b5cf6;
  --pink: #db4c85;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Archivo', sans-serif;
  --hand: 'Kalam', cursive;
}

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

html {
  scroll-behavior: smooth;
  background: var(--dark);
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: .025;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.8) .45px, transparent .55px),
    radial-gradient(circle at 80% 65%, rgba(0,0,0,.7) .45px, transparent .55px);
  background-size: 5px 5px, 6px 6px;
}

.sound-toggle {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 220;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15, 23, 42, .84);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.sound-toggle:active {
  transform: scale(.92);
}

.sound-toggle.is-muted {
  background: rgba(255,255,255,.92);
  color: var(--red);
  border-color: #e2e8f0;
}

.sound-toggle span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

/* =========================================================
   VERIFICATION
   ========================================================= */
.gate {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(226,82,139,.10), transparent 35%),
    #24101f;
}

.gate-grid {
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(226,82,139,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,82,139,.055) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 92%);
}

.system-header,
.system-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
}

.system-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.system-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #3a1027;
  font-size: 16px;
  font-weight: 900;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand b {
  letter-spacing: .08em;
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,.58);
}

.secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.72);
}

.secure i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(226,82,139,.72);
}

.gate-stage {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 18px 16px 24px;
}

.verify-card {
  width: min(100%, 420px);
  min-height: 390px;
  padding: 22px;
  background: rgba(18, 30, 50, .92);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  box-shadow: 0 24px 55px rgba(0,0,0,.32);
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .55s ease;
}

.verify-card.is-flipping {
  transform: scale(.88) rotateY(-10deg) translateY(-16px);
  opacity: 0;
}

.system-kicker {
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.44);
}

.verify-card h1 {
  font-size: clamp(24px, 8vw, 34px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.caret {
  animation: blink .8s step-end infinite;
}

.system-subtitle {
  margin-top: 7px;
  margin-bottom: 25px;
  color: #94a3b8;
  font-size: 12px;
}

.loading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.loading-head b {
  color: var(--green);
  font-family: var(--mono);
}

.loading-track {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.09);
}

.loading-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c83f78, #f28ab0);
  box-shadow: 0 0 18px rgba(226,82,139,.38);
}

.loading-log {
  height: 150px;
  overflow: auto;
  margin-top: 20px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  font-family: var(--mono);
  color: #a7b3c5;
  font-size: 10px;
  line-height: 1.65;
}

.loading-log .ok { color: #f28ab0; }
.loading-log .wait { color: #facc15; }
.loading-log .error { color: #fb7185; }

.verified-badge {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.verified-badge > span {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #3a1027;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(226,82,139,.13);
}

.verified-badge h2 {
  color: var(--green);
  font-size: 19px;
  line-height: 1;
}

.verified-badge p {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.certificate-data {
  margin-bottom: 18px;
  padding: 7px 14px;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
}

.certificate-data div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}

.certificate-data div:last-child {
  border-bottom: 0;
}

.certificate-data dt,
.certificate-data dd {
  margin: 0;
  font-size: 11px;
}

.certificate-data dt {
  color: #64748b;
}

.certificate-data dd {
  max-width: 190px;
  text-align: right;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-weight: 600;
}

.certificate-data dd span {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid #f7bfd3;
  border-radius: 4px;
  background: #fde7ef;
  color: var(--green-deep);
}

.view-details {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--green);
  color: #3a1027;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 0 #a82f63;
  animation: buttonPulse 2.2s ease-in-out infinite;
}

.view-details:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #a82f63;
}

/* =========================================================
   WHITE / PAPER UI
   ========================================================= */
.scrapbook {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 0 60px rgba(0,0,0,.32);
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 64px 20px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -30px;
  height: 60px;
  background: var(--paper);
  transform: rotate(-2deg);
  transform-origin: left top;
}

.static-confetti {
  position: absolute;
  inset: 0;
  opacity: .8;
  background-image:
    radial-gradient(circle at 10% 14%, #f472b6 0 2px, transparent 3px),
    radial-gradient(circle at 28% 9%, #60a5fa 0 2px, transparent 3px),
    radial-gradient(circle at 42% 18%, #facc15 0 2px, transparent 3px),
    radial-gradient(circle at 68% 11%, #f59ac0 0 2px, transparent 3px),
    radial-gradient(circle at 88% 22%, #f87171 0 2px, transparent 3px),
    radial-gradient(circle at 17% 45%, #f59ac0 0 2px, transparent 3px),
    radial-gradient(circle at 75% 42%, #60a5fa 0 2px, transparent 3px),
    radial-gradient(circle at 92% 66%, #facc15 0 2px, transparent 3px),
    radial-gradient(circle at 34% 77%, #f87171 0 2px, transparent 3px),
    radial-gradient(circle at 62% 82%, #f472b6 0 2px, transparent 3px);
  background-size: 130px 130px;
  animation: confettiDrift 16s linear infinite;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin-bottom: 16px;
  color: #a7b3c5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
}

.hero-title {
  line-height: .96;
}

.hero-title span {
  display: block;
  color: var(--yellow);
  font-size: clamp(56px, 17vw, 86px);
  font-weight: 900;
  letter-spacing: -.055em;
  text-shadow: 0 6px 0 rgba(0,0,0,.28);
}

.hero-title em {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(28px, 8vw, 42px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.04em;
}

.hero-copy {
  max-width: 360px;
  margin: 23px auto 22px;
  color: #d8dee8;
  font-size: 14px;
  line-height: 1.65;
}

.degree-card {
  width: min(100%, 360px);
  padding: 19px 16px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(8px);
}

.degree-card small {
  color: #94a3b8;
  font-size: 10px;
}

.degree-card > div {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.degree-card > div > span {
  font-size: 12px;
  color: #cbd5e1;
}

.degree-card strong {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 9px;
  font-size: 29px;
}

.degree-card del {
  color: #94a3b8;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 3px;
}

.degree-card ins {
  color: #f28ab0;
  text-decoration: none;
}

.degree-card p {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: #e2e8f0;
}

.scroll-hint {
  margin-top: 31px;
  display: grid;
  place-items: center;
  gap: 6px;
  font-family: var(--hand);
  color: #e2e8f0;
  font-size: 20px;
}

.scroll-hint b {
  animation: bob 1.1s ease-in-out infinite;
}

.paper-section,
.dark-section,
.closing-section {
  position: relative;
  margin: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(15,23,42,.055);
}

.profile-section {
  margin-top: 30px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}

.section-label span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 3px 3px 0 #cbd5e1;
}

.section-label b {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  letter-spacing: .03em;
}

.section-label-dark span,
.section-label-dark b {
  background: var(--dark);
  color: #fff;
}

.profile-photo {
  position: relative;
  width: min(76%, 270px);
  margin: 6px auto 22px;
  padding: 9px 9px 30px;
  background: #fff;
  border: 1px solid #e5e7eb;
  transform: rotate(-2deg);
  box-shadow: 0 10px 25px rgba(15,23,42,.12);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #eef2f7;
}

.stamp {
  position: absolute;
  right: -10px;
  bottom: 3px;
  padding: 4px 8px;
  border: 2px solid var(--red);
  color: var(--red);
  background: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.02;
  transform: rotate(-10deg);
}

.paperclip {
  position: absolute;
  top: -11px;
  right: 14px;
  width: 15px;
  height: 45px;
  border: 3px solid #94a3b8;
  border-radius: 999px;
  transform: rotate(12deg);
}

.profile-copy {
  padding-top: 2px;
  color: #334155;
  font-size: 13px;
  line-height: 1.75;
}

.profile-copy p + p {
  margin-top: 12px;
}

.progress-sheet {
  padding: 17px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfcfe;
}

.progress-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 43px;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-size: 11px;
}

.progress-row:last-child {
  margin-bottom: 0;
}

.progress-row > b {
  font-weight: 700;
}

.progress-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f5;
}

.progress-row i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a82f63, #f28ab0);
  transition: width 1.45s cubic-bezier(.22,1,.36,1);
}

.progress-row > span {
  text-align: right;
  color: #64748b;
  font-size: 10px;
}

.progress-row.is-loading i {
  background: repeating-linear-gradient(-45deg, #cbd5e1 0 6px, #e5e7eb 6px 12px);
  animation: stripeMove .8s linear infinite;
}

.achievement-section {
  overflow: hidden;
}

.achievement-board {
  padding: 17px;
  border: 2px solid #f7bfd3;
  border-radius: 9px;
  background: #fff0f5;
}

.achievement-board ul {
  list-style: none;
}

.achievement-board li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 11px;
  color: #7a2448;
  font-size: 12px;
  line-height: 1.55;
  opacity: .2;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.achievement-board li:last-child {
  margin-bottom: 0;
}

.achievement-board li.is-earned {
  opacity: 1;
  transform: translateY(0);
}

.achievement-board li i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #e2528b;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card:nth-child(4) {
  background: #fff4f8;
  border-color: #f5c7d8;
}

.stat-card.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 18px rgba(15,23,42,.08);
}

.stat-card small {
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
}

.stat-card strong {
  margin-top: 7px;
  color: #0f172a;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.stat-card .blue {
  color: #9c3f78;
}

.stat-text {
  font-size: 18px !important;
}

.stat-card code {
  margin-top: 7px;
  color: #64748b;
  font-family: var(--mono);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.terminal {
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid #27272a;
  background: #050505;
  box-shadow: inset 0 0 22px rgba(0,0,0,.4);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  background: #171717;
  color: #a3a3a3;
  font-family: var(--mono);
  font-size: 8px;
}

.terminal-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #525252;
}

.terminal-top b {
  margin-left: 4px;
  font-weight: 500;
}

.activity-log {
  min-height: 185px;
  padding: 13px 13px 4px;
  color: #f28ab0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.75;
}

.activity-log .time {
  color: #86efac;
}

.activity-log .error {
  color: #f87171;
}

.terminal-cursor {
  display: block;
  width: 8px;
  height: 14px;
  margin: 0 0 12px 13px;
  background: #f28ab0;
  animation: blink .85s step-end infinite;
}

.revision-alert {
  width: 74%;
  margin: -13px 0 0 auto;
  padding: 11px 13px;
  position: relative;
  z-index: 3;
  border: 1px solid #f9a8d4;
  background: #fce7f3;
  color: #831843;
  box-shadow: 4px 4px 0 #f9a8d4;
  transform: rotate(-2deg) translateY(12px);
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
}

.revision-alert.is-visible {
  opacity: 1;
  transform: rotate(-2deg) translateY(0);
}

.revision-alert small,
.revision-alert b,
.revision-alert span {
  display: block;
}

.revision-alert small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.revision-alert b {
  margin-top: 5px;
  font-size: 13px;
}

.revision-alert span {
  margin-top: 3px;
  font-size: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.media-card {
  position: relative;
  margin: 0;
  padding: 6px 6px 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 15px rgba(15,23,42,.09);
}

.media-card:nth-child(1) {
  grid-column: 1 / -1;
  width: 78%;
  justify-self: center;
  transform: rotate(-1deg);
}

.media-card:nth-child(2) {
  transform: rotate(-1.5deg);
}

.media-card:nth-child(3) {
  transform: rotate(1.5deg);
}

.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e5e7eb;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15,23,42,.8);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  animation: playPulse 1.8s ease-in-out infinite;
}

.video-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.download-card {
  padding: 15px;
  border: 2px dashed #cbd5e1;
  border-radius: 9px;
  background: #fff;
}

.download-card button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 14px 12px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.download-progress {
  margin-top: 15px;
  display: grid;
  gap: 7px;
}

.download-progress > div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e2e8f0;
}

.download-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c83f78, #f28ab0);
  transition: width .22s ease;
}

.download-progress b {
  text-align: right;
  color: #64748b;
  font-family: var(--mono);
  font-size: 10px;
}

.download-error {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
}

.download-error > span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.download-error p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.download-error small {
  display: block;
  margin-top: 5px;
  color: #7f1d1d;
  font-size: 9px;
  line-height: 1.5;
}

.download-card.shake {
  animation: shake .55s ease;
}

.closing-section {
  margin-bottom: 0;
  padding-bottom: 28px;
}

.closing-intro {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.closing-intro span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.closing-text {
  min-height: 245px;
  padding: 17px;
  border-radius: 9px;
  background: var(--dark);
  color: #f8fafc;
  box-shadow: inset 0 0 25px rgba(0,0,0,.35);
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.75;
}

.closing-text::after {
  content: '█';
  margin-left: 3px;
  color: var(--green);
  animation: blink .9s step-end infinite;
}

.voice-button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: var(--dark);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.voice-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
}

.voice-button > i {
  display: flex;
  align-items: center;
  gap: 2px;
}

.voice-button > i b {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: #94a3b8;
}

.voice-button.is-playing > i b {
  animation: voiceWave .75s ease-in-out infinite;
  background: var(--green);
}

.voice-button.is-playing > i b:nth-child(2) { animation-delay: .1s; }
.voice-button.is-playing > i b:nth-child(3) { animation-delay: .2s; }
.voice-button.is-playing > i b:nth-child(4) { animation-delay: .3s; }

.watermark {
  margin-top: 26px;
  text-align: center;
}

.watermark a {
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 250;
  transform: translate(-50%, 18px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.22,1,.36,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes bob {
  50% { transform: translateY(8px); }
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 7px 0 #a82f63, 0 0 0 0 rgba(226,82,139,.20); }
  50% { box-shadow: 0 7px 0 #a82f63, 0 0 0 10px rgba(226,82,139,0); }
}

@keyframes confettiDrift {
  to { transform: translateY(24px); }
}

@keyframes stripeMove {
  to { background-position: 16px 0; }
}

@keyframes playPulse {
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes voiceWave {
  50% { height: 20px; }
}

@keyframes shake {
  20% { transform: translateX(-6px) rotate(-1deg); }
  40% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

@media (min-width: 481px) {
  body {
    background: #1f0d1b;
  }

  .scrapbook {
    min-height: 100vh;
  }
}

@media (max-width: 360px) {
  .verify-card {
    padding: 18px;
  }

  .brand small,
  .secure {
    font-size: 8px;
  }

  .paper-section,
  .dark-section,
  .closing-section {
    margin-inline: 10px;
    padding: 15px;
  }

  .progress-row {
    grid-template-columns: 65px minmax(0, 1fr) 39px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    min-height: 104px;
    padding: 12px;
  }
}

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