:root {
  --black: #070708;
  --panel: #151719;
  --panel-soft: rgba(21, 23, 25, 0.76);
  --metal: #2b2f32;
  --line: rgba(244, 241, 234, 0.18);
  --white: #f4f1ea;
  --text: #d9dee0;
  --muted: #7d8589;
  --red: #e1192d;
  --red-dark: #7a0b14;
  --green: #00a887;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--text);
  overflow: hidden;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app {
  position: relative;
  width: min(100vw, 480px);
  height: 100dvh;
  min-height: 640px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 18%, rgba(244, 241, 234, 0.08), transparent 24%),
    linear-gradient(180deg, #0d0f10 0%, #050506 54%, #0b0809 100%);
  isolation: isolate;
  user-select: none;
}

.ambient {
  position: absolute;
  inset-block: -18%;
  width: 42%;
  pointer-events: none;
  opacity: 0.52;
  filter: blur(22px);
  z-index: 0;
}

.ambient-left {
  left: -29%;
  background: linear-gradient(180deg, transparent, rgba(225, 25, 45, 0.35), transparent);
  transform: rotate(-10deg);
}

.ambient-right {
  right: -30%;
  background: linear-gradient(180deg, transparent, rgba(0, 168, 135, 0.14), transparent);
  transform: rotate(8deg);
}

.grid-overlay,
.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.grid-overlay {
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0%, black 16%, black 82%, transparent 100%);
}

.scanline {
  opacity: 0.16;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 5px,
    rgba(244, 241, 234, 0.08) 6px
  );
  mix-blend-mode: screen;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: calc(18px + var(--safe-top)) 18px calc(18px + var(--safe-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0) scale(1.015);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.75, 0.16, 1),
    visibility 420ms;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 3;
}

.screen.is-leaving {
  opacity: 0;
  transform: translate3d(0, -16px, 0) scale(0.99);
}

.terminal-topline,
.hud-header,
.pov-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terminal-topline {
  color: rgba(244, 241, 234, 0.58);
  font-size: 11px;
}

.loading-core {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 24px 0 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--white);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

.delta-mark {
  color: var(--green);
  font-size: 16px;
}

.divider {
  width: 1px;
  height: 13px;
  background: var(--red);
}

.eyebrow,
.label {
  margin: 0;
  color: var(--red);
  font-family: "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 2px;
  color: var(--white);
  font-size: clamp(54px, 14vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.subtitle {
  margin: 0 0 36px;
  color: rgba(244, 241, 234, 0.8);
  font-size: 17px;
  font-weight: 600;
}

.boot-panel,
.decode-console,
.order-card,
.incoming-panel,
.modal-panel,
.poster-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.05), transparent 34%),
    rgba(9, 10, 11, 0.78);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(244, 241, 234, 0.08);
  backdrop-filter: blur(18px);
}

.boot-panel {
  padding: 16px;
}

.boot-row,
.decode-readout,
.agent-line,
.order-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.boot-row {
  color: rgba(244, 241, 234, 0.74);
  font-size: 12px;
}

.boot-row span:last-child,
.decode-readout strong,
.agent-line strong {
  color: var(--white);
  font-family: "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  letter-spacing: 0;
}

.progress-shell {
  position: relative;
  width: 100%;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.08);
}

.progress-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(7, 7, 8, 0.75) 12px 14px);
  z-index: 1;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background:
    linear-gradient(90deg, var(--red-dark), var(--red) 72%, #fff);
  box-shadow: 0 0 22px rgba(225, 25, 45, 0.62);
  transition: width 90ms linear;
}

.code-stream {
  min-height: 108px;
  margin-top: 16px;
  color: rgba(217, 222, 224, 0.56);
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.55;
}

.fingerprint {
  --hold-angle: 0deg;
  --hold-scale: 0.96;
  position: relative;
  display: grid;
  place-items: center;
  width: 186px;
  height: 222px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: transparent;
}

.fingerprint-ring {
  position: absolute;
  top: 0;
  left: 12px;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(7, 7, 8, 0.9) 0 58%, transparent 59%),
    conic-gradient(var(--red) var(--hold-angle), rgba(244, 241, 234, 0.14) 0);
  box-shadow:
    0 0 0 1px rgba(244, 241, 234, 0.09),
    0 0 36px rgba(225, 25, 45, 0.22);
  transform: scale(var(--hold-scale));
  transition: transform 160ms ease;
}

.fingerprint-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 50%;
}

.fingerprint-img {
  position: absolute;
  top: 33px;
  left: 47px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(225, 25, 45, 0.28));
}

.fingerprint-copy {
  position: absolute;
  bottom: 0;
  display: grid;
  gap: 4px;
  min-width: 214px;
  color: rgba(244, 241, 234, 0.76);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.fingerprint-copy strong {
  color: var(--white);
  font-size: 14px;
}

.fingerprint-copy small {
  color: rgba(217, 222, 224, 0.54);
  font-size: 11px;
}

.hold-target.is-holding {
  filter: brightness(1.18);
}

.hold-target.is-holding .fingerprint-ring {
  box-shadow: 0 0 28px rgba(225, 25, 45, 0.52);
}

.hud-header {
  min-height: 56px;
  color: var(--white);
}

.hud-header strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 168, 135, 0.48);
  padding: 7px 9px;
  color: #c8fff2;
  background: rgba(0, 168, 135, 0.08);
  font-size: 10px;
}

.dossier-stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 12px 0 18px;
}

.dossier-frame {
  position: relative;
  width: 100%;
  height: min(48dvh, 410px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.04), rgba(244, 241, 234, 0.01)),
    #08090a;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(225, 25, 45, 0.08),
    inset 0 0 0 1px rgba(244, 241, 234, 0.08);
}

.dossier-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(225, 25, 45, 0.2) 50%, transparent 62%),
    linear-gradient(180deg, transparent, rgba(7, 7, 8, 0.18) 46%, rgba(7, 7, 8, 0.7));
  transform: translateX(-95%);
  animation: sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.dossier-frame img,
.dossier-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.06) saturate(0.96);
  transform: scale(1);
  transition:
    opacity 230ms ease,
    transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.dossier-backdrop-img {
  z-index: 0;
  object-fit: cover !important;
  opacity: 0.28;
  filter: blur(18px) saturate(0.7) brightness(0.78) !important;
  transform: scale(1.16) !important;
}

#dossierImage {
  z-index: 1;
  padding: 10px;
}

.dossier-frame.is-switching img,
.dossier-frame.is-switching video {
  opacity: 0.34;
  transform: scale(0.985) translateY(-2px);
}

.dossier-noise,
.call-noise {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.16) 3px),
    linear-gradient(90deg, transparent, rgba(225, 25, 45, 0.08), transparent);
  mix-blend-mode: screen;
}

.corner {
  position: absolute;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-color: var(--red);
  border-style: solid;
  pointer-events: none;
}

.no-crop-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 6;
  border: 1px solid rgba(244, 241, 234, 0.22);
  padding: 5px 7px;
  color: rgba(244, 241, 234, 0.7);
  background: rgba(7, 7, 8, 0.64);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.corner-tl {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.corner-tr {
  top: 10px;
  right: 10px;
  border-width: 1px 1px 0 0;
}

.corner-bl {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 1px 1px;
}

.corner-br {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.dossier-meta {
  width: calc(100% - 20px);
  margin: 10px auto 0;
  padding: 14px 15px;
  z-index: 5;
  border-left: 2px solid var(--red);
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(16px);
}

.dossier-meta span {
  display: block;
  color: var(--red);
  font-family: "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.dossier-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 21px;
  line-height: 1.18;
}

.dossier-meta p {
  margin: 7px 0 0;
  color: rgba(217, 222, 224, 0.74);
  font-size: 12px;
  line-height: 1.5;
}

.decode-console {
  flex: 0 0 auto;
  padding: 14px;
}

.decode-readout span {
  color: var(--muted);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 11px;
}

.decode-readout strong {
  font-size: 24px;
}

.decode-button,
.primary-button,
.secondary-button,
.ghost-button,
.answer-button {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  overflow: hidden;
  text-align: center;
  font-weight: 800;
}

.decode-button,
.primary-button {
  background:
    linear-gradient(90deg, var(--red-dark), var(--red)),
    var(--red);
  color: #fff;
  box-shadow: 0 14px 40px rgba(225, 25, 45, 0.32);
}

.decode-button::after,
.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.35) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: buttonShine 3.2s ease-in-out infinite;
}

.hint {
  margin: 8px 0 0;
  color: rgba(217, 222, 224, 0.52);
  font-size: 11px;
  text-align: center;
}

.arsenal-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 0;
  padding: 8px 34px 12px;
}

.weapon-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.06), transparent 34%),
    rgba(7, 7, 8, 0.82);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(244, 241, 234, 0.08);
}

.weapon-card.slide-right {
  animation: weaponInRight 360ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.weapon-card.slide-left {
  animation: weaponInLeft 360ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.weapon-media {
  display: grid;
  grid-template-rows: minmax(0, 1.12fr) minmax(116px, 0.72fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
  padding: 10px;
  background:
    radial-gradient(circle at 52% 30%, rgba(225, 25, 45, 0.18), transparent 38%),
    #050506;
}

.weapon-media video,
.weapon-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border: 1px solid rgba(244, 241, 234, 0.12);
  background: rgba(244, 241, 234, 0.03);
}

.weapon-media video {
  box-shadow: inset 0 0 0 1px rgba(225, 25, 45, 0.12);
}

.weapon-copy {
  flex: 0 0 auto;
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
}

.weapon-copy span {
  color: var(--red);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.weapon-copy h2 {
  margin: 5px 0 7px;
  color: var(--white);
  font-size: 23px;
  line-height: 1.12;
}

.weapon-copy p {
  margin: 0;
  color: rgba(217, 222, 224, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.weapon-nav {
  position: absolute;
  top: 43%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 58px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  background: rgba(7, 7, 8, 0.64);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.weapon-prev {
  left: 0;
}

.weapon-next {
  right: 0;
}

.weapon-footer {
  flex: 0 0 auto;
}

.weapon-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.weapon-dots button {
  width: 24px;
  height: 4px;
  background: rgba(244, 241, 234, 0.22);
}

.weapon-dots button.is-active {
  background: var(--red);
  box-shadow: 0 0 16px rgba(225, 25, 45, 0.56);
}

.call-backdrop,
.result-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.call-backdrop {
  background-image:
    linear-gradient(180deg, rgba(7, 7, 8, 0.48), rgba(7, 7, 8, 0.96)),
    url("./assets/escort.webp");
  transform: scale(1.07);
  filter: saturate(0.88) contrast(1.08);
  animation: slowPush 8s ease-in-out infinite alternate;
}

.pov-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.06) brightness(0.82);
  transition:
    opacity 420ms ease,
    transform 900ms cubic-bezier(0.2, 0.72, 0.18, 1);
  pointer-events: none;
}

.screen-call.is-video-live .pov-video {
  opacity: 1;
  transform: scale(1);
}

.screen-call.is-video-live .call-backdrop {
  opacity: 0;
}

.incoming-panel {
  width: 100%;
  margin: auto 0;
  padding: 28px 20px 20px;
  text-align: center;
}

.caller-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 22px auto 18px;
  border: 1px solid rgba(244, 241, 234, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 241, 234, 0.18), transparent 58%),
    rgba(7, 7, 8, 0.72);
  color: var(--red);
  box-shadow: 0 0 44px rgba(225, 25, 45, 0.26);
}

.caller-avatar svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--red);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(225, 25, 45, 0.38));
}

.incoming-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: 27px;
  letter-spacing: 0;
}

.incoming-panel p {
  margin: 7px 0 20px;
  color: rgba(244, 241, 234, 0.68);
}

.answer-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 84%;
  border-radius: 999px;
  background: rgba(0, 168, 135, 0.9);
  color: #eafff9;
  box-shadow: 0 14px 36px rgba(0, 168, 135, 0.24);
  animation: ringPulse 1.6s ease-in-out infinite;
}

.answer-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eafff9;
  box-shadow: 0 0 0 5px rgba(234, 255, 249, 0.16);
}

.pov-panel {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 5;
}

.pov-panel[hidden],
.incoming-panel[hidden] {
  display: none;
}

.pov-top {
  position: absolute;
  top: calc(18px + var(--safe-top));
  left: 0;
  right: 0;
  color: rgba(244, 241, 234, 0.76);
  font-size: 11px;
}

.subtitle-card {
  margin-bottom: 16px;
  padding: 14px 15px;
  border-left: 2px solid var(--red);
  background: rgba(7, 7, 8, 0.72);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

.ghost-button,
.secondary-button {
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: rgba(244, 241, 234, 0.08);
  color: var(--white);
}

.screen-result {
  padding-inline: 16px;
}

.result-backdrop {
  background-image:
    linear-gradient(180deg, rgba(7, 7, 8, 0.18) 0%, rgba(7, 7, 8, 0.56) 38%, #070708 86%),
    url("./assets/kv3.webp");
  filter: saturate(0.95) contrast(1.04);
}

.result-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  z-index: 2;
}

.order-card {
  padding: 17px;
  background:
    linear-gradient(150deg, rgba(244, 241, 234, 0.95), rgba(218, 218, 211, 0.9)),
    var(--white);
  color: #121416;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.order-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 4px;
  background: var(--red);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-family: "Arial Narrow", system-ui, sans-serif;
}

.order-head span,
.agent-line span,
.order-grid span {
  color: rgba(18, 20, 22, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.order-head strong {
  color: #121416;
  font-size: 22px;
}

.agent-line {
  margin-top: 18px;
  padding: 10px 0;
  border-block: 1px solid rgba(18, 20, 22, 0.14);
}

.agent-line strong {
  color: var(--red);
  font-size: 22px;
}

.order-card h2 {
  margin: 17px 0 6px;
  color: #08090a;
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

.reward-copy {
  margin: 0;
  color: rgba(18, 20, 22, 0.78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.order-grid {
  display: grid;
  grid-template-columns: 70px 1fr;
  margin-top: 16px;
  row-gap: 8px;
  column-gap: 12px;
  align-items: baseline;
}

.order-grid strong {
  color: #151719;
  font-size: 11px;
  line-height: 1.35;
}

.qr-placeholder {
  position: absolute;
  right: 17px;
  bottom: 17px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  width: 76px;
  height: 76px;
  padding: 7px;
  background: #fff;
}

.qr-placeholder span,
.qr-placeholder i {
  display: block;
  background: #111;
}

.qr-placeholder span {
  grid-column: span 2;
  grid-row: span 2;
}

.qr-placeholder i:nth-of-type(2),
.qr-placeholder i:nth-of-type(5),
.qr-placeholder i:nth-of-type(8) {
  opacity: 0;
}

.cta-stack {
  padding-bottom: 2px;
}

.secondary-button {
  margin-top: 10px;
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.poster-modal {
  align-items: center;
  overflow: auto;
  padding: calc(14px + var(--safe-top)) 16px calc(14px + var(--safe-bottom));
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  padding: 26px 20px 22px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: transparent;
  color: rgba(244, 241, 234, 0.7);
  font-size: 25px;
}

.modal-panel h2 {
  margin: 10px 0 8px;
  color: var(--white);
  font-size: 26px;
}

.modal-panel p,
.poster-panel p {
  margin: 0;
  color: rgba(217, 222, 224, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.poster-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 376px);
  max-height: calc(100dvh - 28px - var(--safe-top) - var(--safe-bottom));
  padding: 14px;
}

.poster-picker-head {
  padding: 2px 34px 10px 2px;
}

.poster-picker-head strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 22px;
}

.poster-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.poster-stage[hidden],
.poster-dots[hidden] {
  display: none;
}

.poster-live {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 15;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background: #070708;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.poster-live img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.poster-live.is-switching img {
  opacity: 0.52;
  transform: scale(1.025);
}

.poster-live-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.12), rgba(7, 7, 8, 0.38) 54%, rgba(7, 7, 8, 0.86)),
    linear-gradient(90deg, rgba(7, 7, 8, 0.25), transparent 44%, rgba(7, 7, 8, 0.16));
}

.poster-live-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 82px;
  color: var(--white);
}

.poster-live-copy span {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.poster-live-copy h2 {
  margin: 6px 0 5px;
  font-size: 33px;
  line-height: 1;
}

.poster-live-copy strong {
  display: block;
  color: var(--red);
  font-family: "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

.poster-live-copy p {
  margin: 7px 0 0;
  color: rgba(244, 241, 234, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.poster-live-qr {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px 12px, #111 12px 20px, transparent 20px 28px, #111 28px 36px, transparent 36px),
    linear-gradient(#111 8px, transparent 8px 12px, #111 12px 20px, transparent 20px 28px, #111 28px 36px, transparent 36px),
    #fff;
  border: 6px solid #fff;
}

.poster-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 58px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background: rgba(7, 7, 8, 0.68);
  color: var(--white);
  font-size: 34px;
  backdrop-filter: blur(10px);
}

.poster-prev {
  left: 0;
}

.poster-next {
  right: 0;
}

.poster-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.poster-dots button {
  width: 24px;
  height: 4px;
  background: rgba(244, 241, 234, 0.22);
}

.poster-dots button.is-active {
  background: var(--red);
  box-shadow: 0 0 14px rgba(225, 25, 45, 0.55);
}

.poster-export {
  min-height: 46px;
  margin-top: 10px;
}

#posterPreview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 170px - var(--safe-top) - var(--safe-bottom));
  margin: 0 auto;
  border: 1px solid rgba(244, 241, 234, 0.16);
  background: #0b0b0c;
  object-fit: contain;
}

#posterPreview[hidden] {
  display: none;
}

.poster-panel p {
  margin-top: 10px;
  text-align: center;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  0%,
  28% {
    transform: translateX(-100%);
  }
  54% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes buttonShine {
  0%,
  40% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes slowPush {
  from {
    transform: scale(1.05) translateX(-1.5%);
  }
  to {
    transform: scale(1.12) translateX(1.5%);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    box-shadow: 0 14px 36px rgba(0, 168, 135, 0.24), 0 0 0 0 rgba(0, 168, 135, 0.24);
  }
  50% {
    box-shadow: 0 14px 36px rgba(0, 168, 135, 0.28), 0 0 0 12px rgba(0, 168, 135, 0);
  }
}

@keyframes weaponInRight {
  from {
    opacity: 0.42;
    transform: translateX(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes weaponInLeft {
  from {
    opacity: 0.42;
    transform: translateX(-18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-height: 710px) {
  .app {
    min-height: 100dvh;
  }

  h1 {
    font-size: 52px;
  }

  .subtitle {
    margin-bottom: 22px;
  }

  .fingerprint {
    width: 164px;
    height: 190px;
    margin-top: 20px;
  }

  .fingerprint-ring {
    left: 17px;
    width: 130px;
    height: 130px;
  }

  .fingerprint-img {
    top: 30px;
    left: 49px;
    width: 66px;
    height: 66px;
  }

  .dossier-frame {
    height: min(42dvh, 340px);
  }

  .dossier-meta strong {
    font-size: 18px;
  }

  .order-card {
    padding: 14px;
  }

  .order-card h2 {
    font-size: 29px;
  }

  .reward-copy {
    font-size: 13px;
  }

  .qr-placeholder {
    width: 64px;
    height: 64px;
  }

  .arsenal-stage {
    padding-block: 6px 8px;
  }

  .weapon-media {
    grid-template-rows: minmax(0, 1fr) minmax(96px, 0.58fr);
  }

  .weapon-copy h2 {
    font-size: 20px;
  }

  .weapon-copy p {
    font-size: 11px;
  }
}

@media (min-width: 481px) {
  body {
    background:
      radial-gradient(circle at 50% 15%, rgba(225, 25, 45, 0.18), transparent 28%),
      #030304;
  }

  .app {
    height: min(100dvh, 900px);
    margin-top: max(0px, calc((100dvh - 900px) / 2));
    border-inline: 1px solid rgba(244, 241, 234, 0.08);
  }
}
