/* ============================================================
  Vice UI Kit
  ------------------------------------------------------------
  variables
  base
  layout
  typography
  buttons
  cards
  forms/upload
  loading
  result/share
  responsive
============================================================ */

/* variables */
:root {
  --vice-bg: #0F1014;
  --vice-surface: #181722;
  --vice-card: #241F34;
  --vice-pink: #FF5AAE;
  --vice-orange: #FF8A3C;
  --vice-cyan: #3FE3F7;
  --vice-purple: #5D2E91;
  --vice-text: #FFFFFF;
  --vice-text-soft: #D0D0D8;
  --vice-text-muted: #888A95;
  --vice-border: rgba(255,255,255,.12);
  --vice-glass: rgba(255,255,255,.06);
  --vice-shadow: 0 18px 50px rgba(0,0,0,.45);
  --vice-glow-pink: 0 0 28px rgba(255,90,174,.35);
  --vice-glow-cyan: 0 0 28px rgba(63,227,247,.28);
  --vice-radius: 24px;
  --vice-radius-sm: 18px;
  --demo-bar-height: 40px;
}

/* base */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 90, 174, .38), transparent 34rem),
    radial-gradient(circle at 88% 88%, rgba(255, 138, 60, .28), transparent 30rem),
    radial-gradient(circle at 50% 42%, rgba(93, 46, 145, .34), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(63, 227, 247, .14), transparent 20rem),
    var(--vice-bg);
  color: var(--vice-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 78%);
}

body::after {
  opacity: .11;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

body.modal-open::before,
body.modal-open::after {
  z-index: 1040;
}

#main {
  position: relative;
  /* no z-index here: it would trap the Bootstrap modals (z 10050) in a
     stacking context below the body-level .modal-backdrop (z 10040) */
  width: 100%;
  min-height: 100svh;
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#app {
  width: 100%;
  min-height: 100svh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

#app.inited {
  opacity: 1;
  visibility: visible;
}

#app.inited + #loading-spinner {
  display: none !important;
}

#loading-spinner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--vice-bg);
  color: var(--vice-pink);
}

.spinner-border {
  color: var(--vice-pink);
}

a {
  color: var(--vice-cyan);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .2s ease, opacity .2s ease;
}

a:hover,
a:focus {
  color: var(--vice-pink);
}

/* layout */
.container {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

header {
  position: absolute;
  top: var(--demo-bar-height, 46px);
  left: 0;
  right: 0;
  z-index: 12;
  padding: 18px 0 0;
  pointer-events: none;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: .94;
  pointer-events: auto;
  transition: transform .2s ease, opacity .2s ease;
}

.brand-logo:hover,
.brand-logo:focus {
  opacity: 1;
  transform: translateY(-1px);
}

.brand-logo img {
  display: block;
  width: clamp(126px, 30vw, 186px);
  height: auto;
  filter:
    drop-shadow(1px 0 0 #050509)
    drop-shadow(-1px 0 0 #050509)
    drop-shadow(0 1px 0 #050509)
    drop-shadow(0 -1px 0 #050509)
    drop-shadow(3px 4px 0 rgba(5, 5, 9, .74))
    drop-shadow(0 0 18px rgba(255, 90, 174, .45))
    drop-shadow(0 0 28px rgba(255, 138, 60, .3));
}

.section {
  flex: 1 1 auto;
  padding: 10px 0 26px;
}

.section:not(.vice-hero) {
  padding-top: 104px;
}

.section-poster {
  position: relative;
  min-height: calc(100svh - var(--demo-bar-height, 40px));
  padding-bottom: 28px;
  overflow: hidden;
  isolation: isolate;
}

.section-poster::before,
.section-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.section-poster::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(15,16,20,.68), rgba(15,16,20,.3) 34%, rgba(15,16,20,.82) 100%),
    radial-gradient(circle at 10% 20%, rgba(255,90,174,.26), transparent 24rem),
    radial-gradient(circle at 86% 72%, rgba(255,138,60,.22), transparent 24rem),
    url("images/vice-city-bg.jpg") center / cover no-repeat;
}

.section-poster::after {
  z-index: -1;
  opacity: .1;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.vice-poster-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 680px;
}

.vice-hero {
  position: relative;
  min-height: calc(100svh - var(--demo-bar-height, 46px));
  display: flex;
  align-items: flex-end;
  padding: clamp(116px, 18vh, 160px) 0 clamp(30px, 7vh, 58px);
  overflow: hidden;
  background: #110f19;
  isolation: isolate;
}

.vice-hero-bg,
.vice-hero-bg::before,
.vice-hero-bg::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vice-hero-bg {
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,16,20,.18) 0%, rgba(15,16,20,.1) 30%, rgba(15,16,20,.42) 68%, rgba(15,16,20,.92) 100%),
    radial-gradient(circle at 24% 23%, rgba(255,90,174,.32), transparent 28rem),
    radial-gradient(circle at 82% 78%, rgba(255,138,60,.42), transparent 26rem),
    url("images/vice-city-bg.jpg") center / cover no-repeat;
}

.vice-hero-bg::before {
  content: "";
  z-index: 4;
  opacity: .13;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.32) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.vice-hero-bg::after {
  content: "";
  z-index: 5;
  background:
    linear-gradient(90deg, rgba(255,90,174,.3), transparent 18%, transparent 82%, rgba(63,227,247,.22)),
    linear-gradient(180deg, rgba(0,0,0,.1), transparent 42%, rgba(0,0,0,.82));
}

.vice-sun {
  position: absolute;
  left: 50%;
  top: clamp(120px, 28vh, 250px);
  z-index: -2;
  width: clamp(150px, 32vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(15,16,20,.36) 9px 13px),
    linear-gradient(180deg, #ffe073 0%, var(--vice-orange) 45%, var(--vice-pink) 100%);
  box-shadow: 0 0 70px rgba(255,138,60,.48), 0 0 110px rgba(255,90,174,.3);
  opacity: .76;
}

.vice-skyline {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: clamp(92px, 15vh, 148px);
  z-index: 1;
  height: clamp(95px, 17vw, 170px);
  background:
    linear-gradient(to top, rgba(8,8,14,.96), rgba(8,8,14,.78)),
    linear-gradient(90deg,
      transparent 0 4%,
      #08080e 4% 8%,
      transparent 8% 12%,
      #08080e 12% 18%,
      transparent 18% 24%,
      #08080e 24% 31%,
      transparent 31% 38%,
      #08080e 38% 43%,
      transparent 43% 50%,
      #08080e 50% 59%,
      transparent 59% 66%,
      #08080e 66% 72%,
      transparent 72% 80%,
      #08080e 80% 86%,
      transparent 86% 100%);
  clip-path: polygon(0 62%, 5% 62%, 5% 38%, 10% 38%, 10% 56%, 15% 56%, 15% 30%, 22% 30%, 22% 68%, 27% 68%, 27% 44%, 33% 44%, 33% 24%, 40% 24%, 40% 58%, 47% 58%, 47% 36%, 54% 36%, 54% 66%, 61% 66%, 61% 18%, 69% 18%, 69% 50%, 75% 50%, 75% 35%, 82% 35%, 82% 62%, 88% 62%, 88% 42%, 94% 42%, 94% 58%, 100% 58%, 100% 100%, 0 100%);
  filter: drop-shadow(0 -10px 22px rgba(255,90,174,.13));
}

.vice-grid {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -5%;
  z-index: 2;
  height: clamp(150px, 25vh, 250px);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(255,90,174,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,227,247,.16) 1px, transparent 1px);
  background-size: 42px 28px;
  opacity: .5;
  mask-image: linear-gradient(to top, rgba(0,0,0,.85), transparent 80%);
}

.vice-palm {
  position: absolute;
  bottom: clamp(58px, 9vh, 95px);
  z-index: 3;
  width: clamp(160px, 30vw, 280px);
  height: clamp(230px, 45vh, 450px);
  opacity: .78;
  filter: drop-shadow(0 0 28px rgba(0,0,0,.65));
}

.vice-palm::before {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 74%;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #050508, #15101a 55%, #050508);
  transform: translateX(-50%) rotate(var(--palm-trunk-rotate, -8deg));
  transform-origin: bottom;
}

.vice-palm::after {
  position: absolute;
  left: 50%;
  top: 5%;
  width: 100%;
  height: 42%;
  content: "";
  background:
    radial-gradient(ellipse at 50% 100%, #050508 0 8%, transparent 9%),
    linear-gradient(20deg, transparent 43%, #050508 44% 56%, transparent 57%),
    linear-gradient(-18deg, transparent 43%, #050508 44% 56%, transparent 57%),
    linear-gradient(58deg, transparent 47%, #050508 48% 57%, transparent 58%),
    linear-gradient(-58deg, transparent 47%, #050508 48% 57%, transparent 58%),
    linear-gradient(88deg, transparent 47%, #050508 48% 56%, transparent 57%),
    linear-gradient(-88deg, transparent 47%, #050508 48% 56%, transparent 57%);
  transform: translateX(-50%) rotate(var(--palm-head-rotate, -8deg));
}

.vice-palm-left {
  left: max(-82px, -9vw);
  --palm-trunk-rotate: -8deg;
  --palm-head-rotate: -14deg;
}

.vice-palm-right {
  right: max(-92px, -10vw);
  --palm-trunk-rotate: 9deg;
  --palm-head-rotate: 12deg;
  transform: scaleX(-1);
}

.vice-hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  gap: clamp(12px, 2.4vh, 20px);
  align-content: end;
  min-height: calc(100svh - var(--demo-bar-height, 46px) - clamp(104px, 17vh, 164px));
  transform: translateY(clamp(-74px, -7vh, -42px));
}

.hero-panel {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.vice-scene-card {
  position: relative;
  justify-self: start;
  display: grid;
  gap: 5px;
  width: min(310px, 82vw);
  margin-left: clamp(0px, 4vw, 34px);
  padding: 13px 16px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,90,174,.2), rgba(255,138,60,.1)),
    rgba(10, 10, 16, .46);
  box-shadow: 0 16px 34px rgba(0,0,0,.3), var(--vice-glow-pink);
  backdrop-filter: blur(16px);
  transform: rotate(-2.2deg);
}

.vice-scene-card::after {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 54px;
  height: 9px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vice-pink), var(--vice-orange));
  box-shadow: var(--vice-glow-pink);
}

.vice-kicker,
.vice-entry-pass,
.vice-wanted {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 950;
}

.vice-kicker {
  color: var(--vice-cyan);
  font-size: .74rem;
  text-shadow: var(--vice-glow-cyan);
}

.vice-entry-pass {
  max-width: 15rem;
  color: var(--vice-text);
  font-size: .98rem;
  line-height: 1.06;
  text-shadow: 0 3px 0 rgba(0,0,0,.65);
}

.demo-notice-bar {
  position: relative;
  --demo-bar-height: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--demo-bar-height);
  padding: 6px 14px;
  background: rgba(15, 16, 20, .58);
  color: var(--vice-text);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  font-size: .78rem;
  line-height: 1.3;
}

.demo-notice-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.demo-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
}

/* typography */
h1,
h2,
h3,
h4,
h5,
p,
li {
  color: var(--vice-text);
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(3.1rem, 14vw, 6.4rem);
  line-height: .82;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
  text-shadow:
    0 0 28px rgba(255, 90, 174, .42),
    0 10px 38px rgba(0, 0, 0, .58);
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  margin-bottom: .05em;
  color: var(--vice-text);
  font-size: .34em;
  line-height: 1;
  letter-spacing: .14em;
  -webkit-text-stroke: 1px rgba(5,5,9,.78);
  text-shadow: 0 5px 0 rgba(0,0,0,.55), 0 0 24px rgba(255,255,255,.16);
}

.hero-title strong {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--vice-text);
  -webkit-text-stroke: 2px rgba(5,5,9,.86);
  text-shadow:
    0 8px 0 rgba(5,5,9,.78),
    0 16px 34px rgba(0,0,0,.62),
    0 0 24px rgba(255,90,174,.58),
    0 0 38px rgba(255,138,60,.36);
}

h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 8vw, 3.4rem);
  line-height: .95;
  font-weight: 950;
  letter-spacing: .06em;
}

h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.45rem, 6vw, 2.25rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: .05em;
}

h4 {
  margin: 14px 0 8px;
  font-size: clamp(1.55rem, 6vw, 2.45rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .055em;
}

.eyebrow,
.vice-badge,
.demo-notice-label {
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--vice-cyan);
  font-size: .78rem;
  font-weight: 900;
  text-shadow: var(--vice-glow-cyan);
}

.hero-intro {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--vice-text-soft);
  font-size: clamp(1.05rem, 1rem + .45vw, 1.32rem);
  line-height: 1.45;
  text-align: center;
}

.vice-title {
  margin: 0 0 14px;
  font-family: Impact, Haettenschweiler, "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4rem, 16vw, 8rem);
  font-style: italic;
  line-height: .78;
  letter-spacing: .075em;
  transform: skew(-3deg);
}

.vice-subtitle {
  color: #fff3f8;
  font-size: clamp(1.06rem, 1rem + .8vw, 1.45rem);
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0,0,0,.74);
}

.vice-wanted {
  margin-top: 13px;
  color: #ffe082;
  font-size: clamp(.92rem, 2vw, 1.1rem);
  text-shadow: 0 0 18px rgba(255,138,60,.48), 0 3px 0 rgba(0,0,0,.62);
}

.section-copy,
.small {
  color: var(--vice-text-soft);
  line-height: 1.65;
}

.text-monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.vice-hero-cta {
  position: relative;
  width: min(100%, 410px);
  min-height: 60px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  font-size: clamp(.95rem, 2.5vw, 1.12rem);
  box-shadow:
    0 0 0 2px rgba(5,5,9,.45),
    0 0 32px rgba(255,90,174,.46),
    0 18px 34px rgba(0,0,0,.48);
}

.vice-hero-cta::before {
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 44%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transform: skewX(-18deg);
  transition: left .42s ease;
}

.vice-hero-cta:hover::before,
.vice-hero-cta:focus::before {
  left: 112%;
}

.btn-lg {
  min-height: 56px;
}

.btn-sm {
  min-height: 48px;
  padding: 10px 18px;
  font-size: .84rem;
}

.btn-primary,
.demo-notice-cta,
.demo-waiting-cta-button {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-color: var(--vice-text);
  --bs-btn-hover-color: var(--vice-text);
  border: 0;
  background: linear-gradient(135deg, var(--vice-pink), var(--vice-orange));
  color: var(--vice-text);
  box-shadow: var(--vice-glow-pink), 0 14px 26px rgba(0,0,0,.32);
}

.btn-primary:hover,
.btn-primary:focus,
.demo-notice-cta:hover,
.demo-notice-cta:focus,
.demo-waiting-cta-button:hover,
.demo-waiting-cta-button:focus {
  color: var(--vice-text);
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(255,90,174,.52), 0 18px 34px rgba(0,0,0,.42);
}

.btn-primary:active,
.demo-notice-cta:active,
.demo-waiting-cta-button:active {
  transform: scale(.98);
}

.btn-secondary,
.btn-outline-secondary {
  --bs-btn-color: var(--vice-text);
  --bs-btn-border-color: var(--vice-border);
  --bs-btn-hover-color: var(--vice-text);
  --bs-btn-hover-border-color: var(--vice-cyan);
  --bs-btn-active-color: var(--vice-text);
  --bs-btn-active-border-color: var(--vice-cyan);
  background: rgba(255,255,255,.07);
  border: 1px solid var(--vice-border);
  color: var(--vice-text);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(63, 227, 247, .08);
  border-color: var(--vice-cyan);
  color: var(--vice-text);
  box-shadow: var(--vice-glow-cyan);
  transform: translateY(-2px);
}

.btn:disabled,
.btn.disabled {
  opacity: .62;
  transform: none;
}

/* cards */
.vice-card,
.hero-card,
.panel,
.status-card,
.demo-waiting-cta,
.demo-result-cta {
  position: relative;
  overflow: hidden;
  background: var(--vice-glass);
  border: 1px solid var(--vice-border);
  border-radius: var(--vice-radius);
  box-shadow: var(--vice-shadow);
  backdrop-filter: blur(20px);
}

.vice-card::before,
.status-card::before,
.demo-waiting-cta::before,
.demo-result-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), transparent 34%),
    radial-gradient(circle at 18% 0, rgba(255, 90, 174, .16), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(255, 138, 60, .12), transparent 44%);
}

.vice-card > *,
.status-card > *,
.demo-waiting-cta > *,
.demo-result-cta > * {
  position: relative;
  z-index: 1;
}

.shared-card,
.panel,
.status-card {
  padding: clamp(20px, 5vw, 30px);
}

.vice-badge,
.demo-notice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--vice-border);
  color: var(--vice-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.sponsor {
  margin: 16px 0 6px;
  color: var(--vice-text-muted);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sponsor-content {
  padding: 0;
  color: var(--vice-text-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sponsor-content p {
  color: var(--vice-text-soft);
}

.shared-loading-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--vice-radius);
  background: rgba(255,255,255,.04);
}

.shared-loading-state p {
  color: var(--vice-text-soft);
}

/* forms/upload */
form {
  margin-bottom: 1rem;
}

.upload-poster,
.result-poster,
.waiting-poster,
.shared-poster {
  display: grid;
  gap: 16px;
}

.upload-poster {
  margin: 0;
}

.upload-poster h4,
.waiting-content h2,
.result-header h2,
.poster-panel h2,
.shared-poster h3 {
  margin-top: 8px;
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.upload-poster .vice-badge,
.waiting-content .vice-badge,
.result-header .vice-badge,
.shared-poster .vice-badge {
  width: fit-content;
}

.form-label,
.form-check-label {
  color: var(--vice-text-soft);
  font-size: .95rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--vice-radius-sm);
  background-color: rgba(255,255,255,.06);
  color: var(--vice-text);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.form-control::placeholder {
  color: var(--vice-text-muted);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--vice-cyan);
  background-color: rgba(255,255,255,.08);
  color: var(--vice-text);
  box-shadow: var(--vice-glow-cyan);
}

.form-select option {
  background: var(--vice-surface);
  color: var(--vice-text);
}

.form-check-input {
  margin-top: .34em;
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  accent-color: var(--vice-pink);
}

.form-check-input:checked {
  background-color: var(--vice-pink);
  border-color: var(--vice-pink);
}

.file-input {
  position: relative;
  cursor: pointer;
  min-height: clamp(214px, 31vh, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  text-align: center;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: var(--vice-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    radial-gradient(circle at 50% 0, rgba(255,90,174,.12), transparent 42%),
    rgba(12, 10, 18, .46);
  box-shadow: 0 20px 48px rgba(0,0,0,.34), var(--vice-glow-pink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.file-input::before,
.file-input::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.file-input::before {
  inset: 18px;
  border: 1px solid rgba(63, 227, 247, .18);
  border-radius: 18px;
}

.file-input::after {
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(63,227,247,.08) 0 1px, transparent 1px 12px);
  opacity: .38;
}

.file-input:hover {
  border-color: rgba(255,90,174,.78);
  box-shadow: 0 20px 48px rgba(0,0,0,.34), 0 0 38px rgba(255,90,174,.48);
  transform: translateY(-1px);
}

.file-input.dragging {
  border-color: var(--vice-cyan);
  box-shadow: var(--vice-glow-cyan);
}

.file-input > * {
  position: relative;
  z-index: 1;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: var(--vice-text);
  background: linear-gradient(135deg, rgba(255,90,174,.22), rgba(63,227,247,.12));
  box-shadow: var(--vice-glow-pink);
  font-size: 1.6rem;
}

.upload-title,
.file-input .fw-semibold {
  color: var(--vice-text);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950 !important;
}

.preview-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
}

.delete-image {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--vice-text);
  font-size: 1.65rem;
  line-height: 1;
  text-shadow: 0 0 14px rgba(0,0,0,.78), var(--vice-glow-pink);
}

.alert-danger {
  color: #ffd9e5;
  background: rgba(255, 90, 120, .12);
  border-color: rgba(255, 90, 120, .34);
  border-radius: var(--vice-radius-sm);
}

/* loading */
.waiting-poster {
  min-height: min(620px, calc(100svh - 164px));
  align-content: center;
}

.waiting-content {
  display: grid;
  gap: 14px;
}

.waiting-content .row {
  margin: 4px 0 0;
  padding: 0;
}

.waiting-content .col-12,
.waiting-content .col,
.waiting-content .col-auto {
  padding-left: 0;
  padding-right: 14px;
}

.waiting-content .spinner-border {
  width: 2rem !important;
  height: 2rem !important;
}

.vice-progress {
  width: 100%;
  height: 12px;
  margin: 6px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 24px rgba(255,90,174,.22);
}

.vice-progress span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vice-pink), var(--vice-orange), var(--vice-purple), var(--vice-cyan), var(--vice-pink));
  background-size: 220% 100%;
  box-shadow: var(--vice-glow-pink);
  animation: viceProgress 1.45s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

.scan-lines {
  height: 48px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent, rgba(63,227,247,.8), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 1px, transparent 1px 9px);
  background-size: 42% 100%, auto;
  background-repeat: no-repeat, repeat;
  animation: viceScan 2.3s ease-in-out infinite alternate;
  opacity: .78;
}

@keyframes viceProgress {
  from { background-position: 0 0; transform: translateX(0); }
  to { background-position: 220% 0; transform: translateX(72%); }
}

@keyframes viceScan {
  0% { background-position: -45% 0, 0 0; }
  100% { background-position: 145% 0, 0 0; }
}

/* result/share */
.result-poster {
  gap: 14px;
}

.image-shell,
.vice-media-frame {
  overflow: hidden;
  border-radius: var(--vice-radius);
  margin-top: 0;
  background: #050509;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 0 0 1px rgba(255,90,174,.18),
    var(--vice-glow-pink),
    var(--vice-shadow);
}

.image-shell img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.result-header {
  text-align: left;
}

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

.result-actions .btn {
  width: 100%;
  margin: 0 !important;
}

.demo-waiting-cta,
.demo-result-cta {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 12px 0 0;
  color: var(--vice-text);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.demo-waiting-cta::before,
.demo-result-cta::before {
  display: none;
}

.demo-waiting-cta-title,
.demo-result-cta h3 {
  margin: 10px 0 6px;
  color: var(--vice-text);
  font-size: clamp(1.15rem, 5vw, 1.7rem);
  line-height: 1.05;
  font-weight: 900;
  text-align: left;
  text-shadow: none;
}

.poster-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.demo-waiting-cta-text,
.demo-result-cta p,
.demo-notice-text {
  color: var(--vice-text-soft);
}

.demo-notice-cta,
.demo-waiting-cta-button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.demo-notice-bar .demo-notice-cta {
  min-height: 30px;
  padding: 7px 12px;
  font-size: .72rem;
  box-shadow: 0 0 18px rgba(255,90,174,.3), 0 8px 18px rgba(0,0,0,.24);
}

.modal-content {
  border: 1px solid var(--vice-border);
  border-radius: var(--vice-radius);
  background: rgba(24,23,34,.96);
  color: var(--vice-text);
  box-shadow: var(--vice-shadow);
}

body.modal-open #loading-spinner {
  display: none !important;
  pointer-events: none;
}

.modal-backdrop {
  z-index: 10040;
}

.modal {
  z-index: 10050;
  pointer-events: auto;
}

.modal-header,
.modal-footer {
  border-color: var(--vice-border);
}

.modal-body.text-dark,
.modal-body.text-dark * {
  color: var(--vice-text) !important;
}

.modal-header .btn-close {
  filter: invert(1);
  box-shadow: none;
}

.policy-modal .modal-dialog {
  max-height: calc(100dvh - 1.5rem);
  margin: .75rem auto;
  display: flex;
  pointer-events: auto;
}

.policy-modal .modal-content {
  /* viewport-based cap: a percentage here would resolve against the
     auto-height dialog and never constrain the content */
  max-height: calc(100dvh - 3rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}

.policy-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.policy-modal .modal-footer {
  flex: 0 0 auto;
}

/* keep the vice display typography out of the policy document */
.policy-modal .modal-body h1,
.policy-modal .modal-body h2,
.policy-modal .modal-body h3,
.policy-modal .modal-body h4,
.policy-modal .modal-body h5 {
  margin: .8rem 0 .4rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 800;
  text-shadow: none;
}

.policy-modal .modal-body h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
}

.policy-modal .modal-body h2 {
  font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem);
  line-height: 1.25;
}

.policy-modal .modal-body h3 {
  font-size: clamp(1.15rem, 1.05rem + .6vw, 1.45rem);
  line-height: 1.3;
}

.face-detection-modal .modal-dialog {
  margin: .75rem;
}

.face-detection-modal .modal-content {
  border-radius: var(--vice-radius);
}

.face-detection-modal .modal-header,
.face-detection-modal .modal-body,
.face-detection-modal .modal-footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

.face-detection-modal .modal-header {
  align-items: flex-start;
  gap: .75rem;
  padding-top: 1rem;
  padding-bottom: .75rem;
}

.face-detection-modal .modal-title {
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.3;
}

.face-detection-modal .modal-body {
  padding-top: .75rem;
  padding-bottom: 1rem;
  font-size: .95rem;
}

.face-detection-preview {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--vice-border);
}

.face-detection-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 320px);
  object-fit: contain;
  margin: 0 auto;
}

.face-detection-preview-canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.face-detection-modal-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: .75rem;
  padding-top: .75rem;
  padding-bottom: 1rem;
}

.face-detection-modal-footer .btn {
  width: 100%;
  margin: 0;
}

.nianhuaSeal,
[class*="paper"],
[class*="gold"] {
  display: none !important;
}

/* footer */
footer {
  margin-top: auto;
}

#footer {
  width: 100%;
  max-width: 680px;
  margin: auto auto 0;
  padding: 16px 0 0;
  color: var(--vice-text-muted);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  text-align: center;
}

#footer .container {
  color: var(--vice-text-muted);
  font-size: .9rem;
}

.footer-disclaimer {
  margin: 0 0 8px;
  padding: 0 12px;
  text-align: center;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--vice-text-muted);
  opacity: .85;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: wrap;
  gap: 2px;
  padding-bottom: 1rem;
}

.footer-links a {
  padding: .25rem .5rem;
  color: var(--vice-text-muted);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--vice-cyan);
}

.socials {
  text-decoration: none;
}

.language-selector {
  display: flex;
  justify-content: center;
}

.lang-select {
  min-width: 80px;
  padding: 7px 12px;
  border: 1px solid var(--vice-border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--vice-text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--vice-cyan);
  background: rgba(63,227,247,.08);
  box-shadow: var(--vice-glow-cyan);
}

.lang-select option {
  background: var(--vice-surface);
  color: var(--vice-text);
}

.transition-opacity {
  transition: opacity .3s ease-in-out;
}

.opacity-0 {
  opacity: 0;
}

.opacity-1 {
  opacity: 1;
}

/* responsive */
@media (max-width: 420px) {
  :root {
    --demo-bar-height: 64px;
  }

  .demo-notice-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: var(--demo-bar-height);
    padding: 8px 10px;
    text-align: center;
  }

  .demo-notice-content {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    text-align: left;
  }

  .demo-notice-label {
    min-height: 22px;
    padding: 0 8px;
    font-size: .62rem;
  }

  .demo-notice-text {
    font-size: .7rem;
    line-height: 1.15;
  }

  .demo-notice-bar .demo-notice-cta {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 9px;
    font-size: .64rem;
  }

  header {
    top: var(--demo-bar-height);
    padding-top: 14px;
  }

  .brand-logo img {
    width: 132px;
  }

  .section:not(.vice-hero) {
    padding-top: 88px;
  }

  .vice-hero {
    min-height: calc(100svh - var(--demo-bar-height));
    padding-top: 96px;
    padding-bottom: 18px;
  }

  .vice-hero-content {
    min-height: calc(100svh - var(--demo-bar-height) - 104px);
    gap: 10px;
    transform: translateY(-96px);
  }

  .vice-scene-card {
    width: min(270px, 78vw);
    margin-left: 0;
    padding: 11px 13px;
  }

  .vice-title {
    font-size: clamp(3.25rem, 15vw, 4.2rem);
    letter-spacing: .045em;
  }

  .hero-title strong {
    -webkit-text-stroke-width: 1.4px;
  }

  .vice-subtitle {
    font-size: 1rem;
  }

  .vice-hero-cta {
    min-height: 56px;
    margin-top: 14px;
  }

  .vice-palm {
    opacity: .5;
  }

  .vice-palm-left {
    left: -108px;
  }

  .vice-palm-right {
    right: -118px;
  }

  .demo-waiting-cta-title,
  .demo-result-cta h3 {
    text-align: center;
  }

  .upload-poster {
    gap: 10px;
  }

  .upload-poster h4 {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .upload-poster .section-copy {
    margin-bottom: 10px;
    line-height: 1.45;
    font-size: .96rem;
  }

  .upload-poster .mt-3 {
    margin-top: 10px !important;
  }

  .file-input {
    min-height: 210px;
    padding: 16px;
  }

  .file-input::before {
    inset: 14px;
  }

  .upload-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
  }

  .form-control,
  .form-select {
    min-height: 48px;
  }

  .form-label,
  .form-check-label {
    font-size: .9rem;
  }
}

@media (min-width: 576px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  #footer {
    font-size: .95rem;
  }
}

@media (min-width: 768px) {
  .vice-hero {
    min-height: calc(100svh - var(--demo-bar-height));
  }

  .demo-waiting-cta,
  .demo-result-cta {
    grid-template-columns: 1fr auto;
  }

  .face-detection-modal .modal-dialog {
    margin: 1.75rem auto;
  }

  .face-detection-modal .modal-header,
  .face-detection-modal .modal-body,
  .face-detection-modal .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .face-detection-modal .modal-title {
    font-size: 1.2rem;
  }

  .face-detection-modal .modal-body {
    font-size: 1rem;
  }

  .face-detection-preview-image {
    max-height: 400px;
  }

  .face-detection-modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }

  .face-detection-modal-footer .btn {
    width: auto;
  }
}
