@font-face {
  font-family: "Cormorant Garamond";
  src: url("/card/shivani/fonts/CormorantGaramond-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/card/shivani/fonts/CormorantGaramond-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/card/shivani/fonts/CormorantGaramond-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/card/shivani/fonts/CormorantGaramond-Italic-500.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("/card/shivani/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/card/shivani/fonts/Montserrat-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/card/shivani/fonts/Montserrat-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/card/shivani/fonts/Montserrat-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/card/shivani/fonts/Montserrat-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #07101f;
  --navy-2: #0c1c38;
  --navy-3: #12284f;
  --ink: #f4ead8;
  --muted: #c4b59a;
  --pink: #a01e6e;
  --pink-2: #e56bb0;
  --pink-deep: #6c0c48;
  --cyan: #78ccf0;
  --gold: #d4af37;
  --gold-2: #f3d77a;
  --gold-3: #8a6a14;
  --cream: #f7f2db;
  --line: rgba(212, 175, 55, 0.38);
  --card-w: 462px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { background: var(--navy); }

body {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -8%, rgba(160, 30, 110, 0.20), transparent 52%),
    radial-gradient(900px 500px at 110% 0%, rgba(212, 175, 55, 0.10), transparent 48%),
    radial-gradient(900px 500px at 110% 110%, rgba(120, 204, 240, 0.08), transparent 45%),
    linear-gradient(165deg, #120814 0%, #0a1024 45%, #07101f 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

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

.map-layer {
  position: fixed;
  inset: -8%;
  z-index: 0;
  background: url("/card/shivani/assets/worldmap.png") center / 92% no-repeat;
  opacity: 0.11;
  filter: sepia(0.4) saturate(1.2);
  animation: mapDrift 48s ease-in-out infinite alternate;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 420px; height: 420px;
  background: rgba(160, 30, 110, 0.32);
  top: -120px; right: -80px;
  animation: pulse 10s ease-in-out infinite;
}
.orb-b {
  width: 340px; height: 340px;
  background: rgba(120, 204, 240, 0.16);
  bottom: -80px; left: -60px;
  animation: pulse 13s ease-in-out infinite reverse;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}

.sky-path {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.sky-line {
  fill: none;
  stroke: rgba(229, 107, 176, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 5 9;
  animation: dash 28s linear infinite;
}
.plane {
  fill: var(--gold-2);
  offset-path: path("M-40 520 C 220 380, 420 620, 700 440 S 1180 260, 1480 360");
  offset-rotate: auto;
  animation: fly 22s linear infinite;
  filter: drop-shadow(0 0 6px rgba(229, 107, 176, 0.7));
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: radial-gradient(800px 500px at 50% 40%, #12284f, #050b16 70%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-logo {
  width: min(520px, 78vw);
  animation: rise 1.1s var(--ease) both;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.45));
}
.splash-tag {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  color: var(--gold-2);
  animation: rise 1.1s 0.15s var(--ease) both;
}
.splash-bar {
  width: 160px;
  height: 2px;
  background: rgba(160,30,110,.25);
  overflow: hidden;
  border-radius: 2px;
}
.splash-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  animation: load 1.6s ease-in-out infinite;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw 8px;
  animation: rise 0.9s 1.5s var(--ease) both;
}
.topbar-logo { width: min(280px, 58vw); }
.topbar-chip {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(160,30,110,.12);
}

.stage {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 462px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  animation: rise 0.9s 1.7s var(--ease) both;
  box-sizing: border-box;
}

.card-col,
.scene,
.card,
.tools {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.scene {
  display: block;
  perspective: 1800px;
  perspective-origin: 50% 50%;
}
.card {
  position: relative;
  cursor: pointer;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.15, 1);
  will-change: transform;
}
.card.flipped {
  transform: rotateY(180deg);
}
.card.is-hovering {
  transition: transform 0.14s ease-out;
}
.card.is-hovering .face {
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.28),
    0 0 36px rgba(160, 30, 110, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.face {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 26px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(243, 215, 122, 0.42);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(160, 30, 110, 0.18),
    0 0 40px rgba(160, 30, 110, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(160, 30, 110, 0.14), transparent 26%),
    linear-gradient(165deg, #16315f 0%, #0d1e3d 42%, #0a1730 100%);
  padding: 32px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #a01e6e 50%, #f3d77a 100%);
}
.bf-mark {
  position: absolute;
  width: 180px;
  right: -36px;
  bottom: -20px;
  opacity: 0.10;
  pointer-events: none;
  transform: rotate(-18deg);
}
.face-shine {
  pointer-events: none;
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  transform: translateX(-40%);
  animation: sheen 7s ease-in-out 2s infinite;
}
.front {
  z-index: 2;
  transform: rotateY(0deg) translateZ(1px);
}
.back {
  display: flex;
  transform: rotateY(180deg);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 20px;
}
.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.ornament em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--gold-2);
}

.brand { width: 70%; margin: 0 0 22px; }
.brand img { width: 100%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }

.mono {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 2px 0 20px;
}
.mono strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff6d2, var(--gold) 55%, #a07c1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
}
.mono-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 18px rgba(212,175,55,.22), 0 0 16px rgba(160,30,110,.22);
}
.mono-ring.delayed {
  inset: -8px;
  border-color: rgba(160, 30, 110, 0.45);
  animation: ring 3.6s ease-out infinite;
}

.name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--cream);
  text-align: center;
  position: relative;
}
.name::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--pink), var(--gold), transparent);
}

.role {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
  padding: 0;
  width: 100%;
  white-space: nowrap;
}
.services {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gold-rule {
  width: 100%;
  height: 18px;
  display: grid;
  place-items: center;
  margin: 16px 0 12px;
}
.gold-rule i {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212,175,55,.6), 0 0 18px rgba(160,30,110,.45);
}

.details {
  list-style: none;
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--cream);
  letter-spacing: 0.01em;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(7, 16, 31, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.14);
}
.details a, .details span { overflow-wrap: anywhere; }
.details a:hover { color: var(--gold-2); }
.ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(160,30,110,.22), rgba(212,175,55,.10));
}
.ico svg { width: 16px; height: 16px; fill: var(--gold-2); }

.tagline {
  font-family: "Great Vibes", cursive;
  font-size: 22px;
  color: var(--gold-2);
  margin: 20px 0 18px;
  text-align: center;
  line-height: 1.3;
}
.oncard-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 242, 219, 0.06);
  box-sizing: border-box;
}
.oncard-qr img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fbf6e8;
  flex: 0 0 72px;
}
.oncard-qr p {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.text-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}


.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}
.qbtn {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(160,30,110,.28), rgba(10,23,48,.72));
  color: var(--cream);
  border-radius: 12px;
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform .2s var(--ease), filter .2s, border-color .2s;
}
.qbtn svg { width: 16px; height: 16px; fill: var(--gold-2); }
.qbtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: var(--gold);
}

.flip-hint {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(229, 107, 176, 0.7);
}
.flip-tab {
  appearance: none;
  margin-top: 18px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(160, 30, 110, 0.16);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.back {
  min-height: 0;
  justify-content: center;
  padding: 40px 28px 28px;
}
.back-map {
  position: absolute;
  inset: 0;
  background: url("/card/shivani/assets/worldmap.png") center / 140% no-repeat;
  opacity: 0.14;
  filter: hue-rotate(-20deg) saturate(1.2);
}
.back-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.back-logo { width: 78%; margin: 12px auto 28px; position: relative; }
.back-tag {
  font-family: "Great Vibes", cursive;
  font-size: 26px;
  color: var(--gold-2);
  text-align: center;
  position: relative;
  margin: 0 0 12px;
  line-height: 1.3;
}
.back-services {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  position: relative;
  margin-top: 4px;
}
.back-addr {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--cream);
  width: 100%;
  padding: 18px 16px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(160, 30, 110, 0.14), rgba(7, 16, 31, 0.2));
  position: relative;
}
.back-web {
  margin-top: 22px;
  color: #1a1404;
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
  position: relative;
  background: linear-gradient(180deg, #f3d77a 0%, #d4af37 52%, #b08a1e 100%);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(212,175,55,.28);
}

.tools {
  display: grid;
  gap: 22px;
}
.panel {
  background: linear-gradient(180deg, rgba(18,40,79,.72), rgba(8,16,32,.72));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.panel-kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.panel-kicker .dot.live {
  background: #5ddea2;
  box-shadow: 0 0 8px #5ddea2;
  animation: blink 1.6s ease-in-out infinite;
}
.panel h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--cream);
}
.panel-lead {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
}

.qr-frame {
  position: relative;
  width: 232px;
  height: 232px;
  margin: 8px auto 18px;
  background: var(--cream);
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(212,175,55,.18), 0 16px 30px rgba(0,0,0,.3);
}
#qrcode { width: 196px; height: 196px; }
#qrcode-img { width: 196px; height: 196px; border-radius: 6px; display: block; }
#qrcode img, #qrcode canvas { width: 196px !important; height: 196px !important; border-radius: 6px; }
#qrcode table { display: none; }
.qr-butterfly {
  position: absolute;
  width: 34px;
  height: 34px;
  right: -8px;
  top: -12px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  animation: flutter 3.2s ease-in-out infinite;
}

.panel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.ghost, .file-btn {
  appearance: none;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}
.ghost:hover, .file-btn:hover {
  background: rgba(212,175,55,.12);
  border-color: var(--gold);
}

.gold-btn {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a1404;
  background: linear-gradient(180deg, #f3d77a 0%, #d4af37 52%, #b08a1e 100%);
  box-shadow: 0 10px 24px rgba(212,175,55,.28), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s var(--ease), filter .2s;
}
.gold-btn svg { width: 18px; height: 18px; }
.gold-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.file-scan {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.06em;
}
.file-scan input, .file-btn input { display: none; }
.file-scan:hover { color: var(--gold-2); }

.foot {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot a { color: var(--gold-2); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none !important; }
.modal-card {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #15284c, #0b1730);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 600;
}
.icon-x {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
}
.viewfinder {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #050b16;
  min-height: 280px;
}
#qr-reader { width: 100%; min-height: 280px; }
#qr-reader video { width: 100% !important; border-radius: 16px; object-fit: cover; }
#qr-reader img { max-width: 100%; }
.corners { pointer-events: none; position: absolute; inset: 18px; }
.corners i {
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--gold-2);
}
.corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.scan-status {
  text-align: center;
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.modal-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.result-body {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--cream);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
  font-family: Montserrat, sans-serif;
  line-height: 1.55;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #122445;
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity .3s, transform .3s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes load {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes sheen {
  0%, 55% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}
@keyframes ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes flutter {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-6px); }
}
@keyframes mapDrift {
  from { transform: translate3d(-2%, 1%, 0) scale(1.05); }
  to { transform: translate3d(2%, -1%, 0) scale(1.1); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes fly { to { offset-distance: 100%; } }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (min-width: 900px) {
  .stage { max-width: 462px; padding: 32px 24px 80px; }
  .face { padding: 36px 32px 28px; }
  .back { padding: 48px 36px 32px; }
}
@media (max-width: 899px) {
  .topbar {
    padding: 16px 18px 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-logo-link,
  .topbar-logo { width: min(230px, 72vw); }
  .topbar-chip { font-size: 8px; letter-spacing: 0.18em; padding: 6px 10px; }
  .name { font-size: 32px; }
  .brand { width: 72%; margin-bottom: 20px; }
  .quick { gap: 8px; }
  .qbtn { font-size: 8px; padding: 11px 2px 9px; }
  .qr-frame { width: min(100%, 232px); height: auto; aspect-ratio: 1; }
  .panel { padding: 22px 18px 18px; }
  .panel h2 { font-size: 26px; }
  .sky-path { display: none; }
  .mono { width: 80px; height: 80px; margin-bottom: 18px; }
  .mono strong { font-size: 28px; }
  .face { padding: 28px 20px 22px; }
  .back { padding: 36px 22px 24px; min-height: 0; }
  .details li { padding: 9px 10px; }
  .tagline { margin: 18px 0 16px; }
  .role { font-size: 9.5px; letter-spacing: 0.1em; }
  .stage { max-width: min(462px, 100%); }
}
@media (max-width: 380px) {
  .role { font-size: 9px; letter-spacing: 0.06em; }
  .stage { padding: 14px 12px 64px; }
  .face { padding: 24px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .splash { display: none; }
}
