/* ============================================================
   THE FORTUNE STICK — Main Stylesheet
   Dark Eastern mystique meets Western classical elegance
   ============================================================ */

:root {
  --gold: #c8a84b;
  --gold-light: #e8cc7a;
  --gold-dark: #8b6914;
  --crimson: #8b1a1a;
  --crimson-light: #c0392b;
  --ink: #0d0b08;
  --ink-mid: #1a1510;
  --ink-light: #2a2218;
  --parchment: #f0e8d0;
  --parchment-dark: #d4c4a0;
  --dust: #8b7d6b;
  --mist: rgba(200, 168, 75, 0.08);
  --font-title: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'IM Fell English', serif;
  --shadow-gold: 0 0 20px rgba(200, 168, 75, 0.4), 0 0 60px rgba(200, 168, 75, 0.15);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.8);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Background layers ---- */
.bg-overlay {
  position: fixed;
  inset: 0;
  /* Deep ink base */
  background: #100c09;
  pointer-events: none;
  z-index: 0;
}

/* Red radial glow — centered on viewport, wide spread */
.bg-red-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 72% 55% at 50% 52%,
    rgba(160, 30, 20, 0.72) 0%,
    rgba(110, 18, 14, 0.50) 25%,
    rgba(60,  10,  8, 0.28) 55%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}



.bg-pattern {
  position: fixed;
  inset: 0;
  /* 菱格宝相花纹 — Diamond lattice with four-petal lotus flower (Chinese brocade) */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><defs><pattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M20,1 L39,20 L20,39 L1,20 Z' fill='none' stroke='%23c8a84b' stroke-width='0.9' stroke-opacity='0.20'/><path d='M20,9 L31,20 L20,31 L9,20 Z' fill='none' stroke='%23c8a84b' stroke-width='0.55' stroke-opacity='0.14'/><path d='M20,12 C22,15 22,18 20,20 C18,18 18,15 20,12 Z' fill='%23c8a84b' fill-opacity='0.10'/><path d='M20,28 C18,25 18,22 20,20 C22,22 22,25 20,28 Z' fill='%23c8a84b' fill-opacity='0.10'/><path d='M12,20 C15,18 18,18 20,20 C18,22 15,22 12,20 Z' fill='%23c8a84b' fill-opacity='0.10'/><path d='M28,20 C25,22 22,22 20,20 C22,18 25,18 28,20 Z' fill='%23c8a84b' fill-opacity='0.10'/><circle cx='20' cy='20' r='1.4' fill='%23c8a84b' fill-opacity='0.16'/><circle cx='0' cy='0' r='1.0' fill='%23c8a84b' fill-opacity='0.12'/><circle cx='40' cy='0' r='1.0' fill='%23c8a84b' fill-opacity='0.12'/><circle cx='0' cy='40' r='1.0' fill='%23c8a84b' fill-opacity='0.12'/><circle cx='40' cy='40' r='1.0' fill='%23c8a84b' fill-opacity='0.12'/></pattern></defs><rect width='40' height='40' fill='url(%23p)'/></svg>");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}





#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* ---- Music button ---- */
.music-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.4);
  background: rgba(13, 11, 8, 0.8);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.music-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(200,168,75,0.3);
  color: var(--gold-light);
}
.music-btn.muted .music-icon::after {
  content: '̶';
}

/* ---- Main scene ---- */
.main-scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 1rem 3rem;
}

.home-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 0.9rem 1rem;
  background: rgba(8, 7, 5, 0.72);
  border-bottom: 1px solid rgba(200, 168, 75, 0.16);
  backdrop-filter: blur(10px);
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-nav a,
.home-nav span {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-nav a:hover,
.home-nav a:focus-visible,
.home-nav a.active {
  color: var(--gold-light);
}

.home-nav .nav-coming-soon {
  opacity: 0.48;
  cursor: default;
}

/* ---- Site header ---- */
.site-header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-ornament {
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.6;
}

.site-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.1;
}

.title-top {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(200,168,75,0.5), 0 2px 4px rgba(0,0,0,0.8);
}

.title-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  color: var(--dust);
  letter-spacing: 0.25em;
  font-weight: 400;
}

.oracle-intro {
  width: min(90vw, 860px);
  margin: clamp(1rem, 2vh, 3rem) auto clamp(0.5rem, 2vh, 1.5rem);
  color: #806b52;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.55vw, 1.2rem);
  font-style: italic;
  line-height: 1.65;
  letter-spacing: 0.025em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.oracle-intro-followup {
  margin-top: 0.55em;
}

/* ---- Envelope section ---- */
.envelope-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
}

.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ---- Envelope ---- */
.envelope {
  position: relative;
  width: clamp(340px, 60vw, 620px);
  height: clamp(210px, 36vw, 380px);
  container-type: inline-size;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1200px;
  /* shadow handled on .env-body */
}

.envelope:hover .env-body {
  box-shadow:
    0   2px  5px  rgba(0,0,0,0.65),
    0  12px  35px rgba(0,0,0,0.70),
    0  35px  90px rgba(0,0,0,0.65),
    0  70px 160px rgba(0,0,0,0.50),
   -16px  25px  60px rgba(0,0,0,0.30),
    16px  25px  60px rgba(0,0,0,0.30),
    /* gold shimmer on hover */
    0   0   40px rgba(200,168,75,0.08),
    inset 0 2px 0 rgba(255,255,255,0.80),
    inset 0 -3px 8px rgba(0,0,0,0.18);
  transition: box-shadow 0.3s ease;
}

/* Envelope back — slightly darker parchment */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ccc4ae 0%, #c4bca6 40%, #bfb8a0 100%);
  border-radius: 4px;
  border: 1px solid rgba(200,168,75,0.3);
}

/* Envelope body — light warm parchment */
.env-body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(200,168,75,0.35);
  background: linear-gradient(160deg, #e8e0cc 0%, #ddd5bc 45%, #d8cfb8 100%);
  /* Large diffuse 3-D shadow — four-directional spread */
  box-shadow:
    /* tight contact shadow */
    0   2px  5px  rgba(0,0,0,0.60),
    /* mid shadow */
    0  10px  30px rgba(0,0,0,0.65),
    /* wide atmospheric shadow */
    0  30px  80px rgba(0,0,0,0.60),
    /* very wide halo */
    0  60px 140px rgba(0,0,0,0.45),
    /* slight left/right side shadow for depth */
   -12px  20px  50px rgba(0,0,0,0.25),
    12px  20px  50px rgba(0,0,0,0.25),
    /* top surface highlight */
    inset 0 2px 0 rgba(255,255,255,0.75),
    /* bottom inner edge shadow */
    inset 0 -3px 8px rgba(0,0,0,0.15);
}

/* Left fold triangle — hidden */
.env-left-fold {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 380px 190px;
  border-color: transparent transparent #a8a088 transparent;
  opacity: 0.55;
}

/* Right fold triangle — hidden */
.env-right-fold {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 190px 380px 0;
  border-color: transparent #a8a088 transparent transparent;
  opacity: 0.55;
}

/* Envelope tongue (信封舌) — downward-pointing triangle at the TOP.
   Clip-path replaces the old border trick for clean responsive behaviour. */
.env-bottom-fold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 54%;          /* tongue reaches ~54% down the envelope */
  border: none;
  /* Slightly lighter parchment than the body to show it's a separate flap */
  background: linear-gradient(170deg, #dcd4be 0%, #d0c8b2 55%, #c8c0aa 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  /* Fold-crease shadow + subtle edge line */
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.22));
  z-index: 4;
  opacity: 1;
}

/* Top flap — animation layer only (transparent overlay).
   The visible tongue is handled by .env-bottom-fold. */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 54%;          /* matches tongue height */
  border: none;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0%;  /* pivot from the TOP EDGE */
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  cursor: pointer;
}

.envelope.open .env-flap {
  transform: rotateX(200deg);
}

/* When open, pull the tongue up with it */
.envelope.open .env-bottom-fold {
  transform: rotateX(200deg);
  transform-origin: 50% 0%;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Envelope gold border lines */
.env-body::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(140,105,35,0.40);
  border-radius: 2px;
  pointer-events: none;
}

/* Envelope corner decorations */
.env-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(200,168,75,0.06) 0%, transparent 30%),
    linear-gradient(-45deg, rgba(200,168,75,0.06) 0%, transparent 30%);
  pointer-events: none;
}

/* Envelope message text */
.env-message {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.envelope.open .env-message {
  opacity: 0;
  pointer-events: none;
}

.env-text {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

.env-text-outro {
  position: absolute;
  left: 7%;
  right: 7%;
  display: grid;
  justify-items: center;
}

.env-text-outro {
  bottom: 10.5%;
  gap: clamp(0.18rem, 0.7cqw, 0.32rem);
}

.env-text-accent {
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 2.35cqw, 0.9rem);
  color: #8b6010;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin: 0;
  opacity: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.env-text-final {
  font-family: var(--font-body);
  font-size: clamp(0.56rem, 2cqw, 0.78rem);
  color: #4a3c26;
  line-height: 1.25;
  font-style: italic;
  opacity: 0.78;
  margin: 0;
  text-wrap: balance;
}

/* Wax seal */
.wax-seal {
  position: absolute;
  /* Sit exactly on the tongue tip point (54% from top = tip of inverted triangle) */
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.seal-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c0392b, #7b1414 60%, #4a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid rgba(200,168,75,0.4);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.1),
    inset 0 -3px 6px rgba(0,0,0,0.4),
    0 4px 15px rgba(0,0,0,0.6),
    0 0 20px rgba(192,57,43,0.3);
  position: relative;
  z-index: 2;
}

.seal-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.2), transparent 70%);
  animation: sealPulse 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes sealPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Envelope open / card ejecting */
.envelope.open .wax-seal {
  animation: sealBreak 0.5s ease forwards;
}

@keyframes sealBreak {
  0%   { transform: translate(-50%, -50%) scale(1);                   opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1.2) rotate(15deg);   opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0)   rotate(30deg);   opacity: 0; }
}

/* Click hint */
.click-hint {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
}

.hint-pulse {
  animation: hintPulse 2s ease-in-out infinite;
}

.hint-pulse:last-child {
  animation-delay: 0.4s;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---- Card Overlay ---- */
.card-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.card-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.card-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.92);
  backdrop-filter: blur(4px);
}

.card-modal {
  position: relative;
  z-index: 10;
  width: min(94vw, 58rem);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-overlay.active .card-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.card-close-btn {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.5);
  background: var(--ink-mid);
  color: var(--gold);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.card-close-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson-light);
  color: #fff;
  transform: rotate(90deg);
}

/* Card scroll area */
.card-scroll-area {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--ink-mid);
}

.card-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.card-scroll-area::-webkit-scrollbar-track {
  background: var(--ink-mid);
}
.card-scroll-area::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 2px;
}

/* Card display */
.card-display {
  position: relative;
  width: 100%;
  max-width: 58rem;
}

.card-lot-frame {
  display: block;
  width: 100%;
  height: 80vh;
  border: 0;
  background: #030302;
  overflow: hidden;
}

.card-img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-gold), var(--shadow-deep);
  animation: cardReveal 0.6s ease forwards;
  border: 1px solid rgba(200,168,75,0.3);
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(-20px) rotateX(10deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.card-img-shine {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Card info */
.card-preview-info {
  text-align: center;
  padding: 0 1rem;
}

.card-fortune-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  margin-bottom: 0.8rem;
  background: rgba(200,168,75,0.06);
}

.card-preview-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: var(--gold-light);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px rgba(200,168,75,0.3);
}

.card-preview-verse {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  color: var(--parchment-dark);
  line-height: 1.7;
  opacity: 0.85;
}

/* Card actions */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0 1.5rem;
}

.btn-detail {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #8b6914, #c8a84b, #8b6914);
  background-size: 200% auto;
  color: #1a0d00;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(200,168,75,0.3);
}

.btn-detail:hover {
  background-position: right center;
  box-shadow: 0 4px 30px rgba(200,168,75,0.5);
  transform: translateY(-1px);
}

.btn-redraw {
  width: 100%;
  padding: 0.7rem 2rem;
  background: transparent;
  color: var(--dust);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(139,125,107,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-redraw:hover {
  color: var(--parchment);
  border-color: var(--dust);
  background: rgba(139,125,107,0.08);
}

/* ---- Site footer ---- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dust);
  opacity: 0.6;
  text-transform: uppercase;
  border-top: 1px solid rgba(200,168,75,0.08);
  margin-top: auto;
}

.footer-sym {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.4;
}

.footer-contact {
  margin-top: 0.75rem;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  text-transform: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--gold-light);
  opacity: 1;
}

/* ---- Lightbox (card zoom) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .home-nav {
    gap: 1.25rem;
    padding-block: 0.8rem;
    letter-spacing: 0.1em;
  }
  .site-header {
    padding: 2rem 1rem 1rem;
    gap: 0.8rem;
  }
  .header-ornament {
    font-size: 1rem;
  }
  .oracle-intro {
    width: min(88vw, 32rem);
    margin-top: clamp(1.5rem, 5vh, 2.75rem);
    margin-bottom: 0.5rem;
    font-size: clamp(0.82rem, 3.7vw, 0.98rem);
    line-height: 1.55;
  }
  .envelope {
    width: min(94vw, 360px);
    height: auto;
    aspect-ratio: 1.62 / 1;
  }
  .env-text-outro {
    bottom: 8.5%;
  }
  .wax-seal {
    width: clamp(58px, 20cqw, 72px);
    height: clamp(58px, 20cqw, 72px);
  }
  .env-left-fold {
    border-width: 0 0 220px 110px;
  }
  .env-right-fold {
    border-width: 0 110px 220px 0;
  }
  .env-bottom-fold {
    border-width: 110px 180px 0 180px;
  }
  .card-modal {
    width: 95vw;
  }
}

@media (max-width: 360px) {
  .envelope {
    width: 92vw;
  }
  .env-text-outro {
    left: 5%;
    right: 5%;
  }
  .env-text-accent {
    font-size: clamp(0.56rem, 2.8cqw, 0.66rem);
    letter-spacing: 0.035em;
  }
  .env-text-final {
    font-size: clamp(0.5rem, 2.45cqw, 0.59rem);
  }
}

/* ---- Scrollbar global ---- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--ink);
}

/* ---- Utility animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fortune type color tints in badge */
.badge-great { border-color: #c8a84b; color: #e8cc7a; background: rgba(200,168,75,0.1); }
.badge-good { border-color: #8b9e4a; color: #b8cc6a; background: rgba(139,158,74,0.1); }
.badge-moderate { border-color: #5a7a50; color: #8aaa76; background: rgba(90,122,80,0.1); }
.badge-neutral { border-color: #4a5568; color: #8a95a8; background: rgba(74,85,104,0.1); }
.badge-bad { border-color: #7a3030; color: #aa6060; background: rgba(122,48,48,0.1); }
.badge-worst { border-color: #5a1010; color: #8a3030; background: rgba(90,16,16,0.1); }
