:root {
  --brand-red: #d3003a;
  --brand-red-2: #ff2d55;
  --brand-dark: #050505;
  --brand-ink: #0d0d10;
  --paper: #fff7f4;
  --muted: #b9aaa8;
  --line: rgba(255, 247, 244, 0.14);
  --line-strong: rgba(255, 247, 244, 0.22);
  --panel: rgba(16, 16, 19, 0.72);
  --panel-strong: rgba(24, 24, 28, 0.88);
  --glass: rgba(255, 247, 244, 0.075);
  --stage: #030304;
  --gold: #f0c36a;
  --cyan: #33d7ff;
  --radius: 12px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--brand-dark);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(211, 0, 58, 0.24), transparent 34%),
    linear-gradient(245deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #171719 0%, #09090b 50%, #030304 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 247, 244, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 244, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(211, 0, 58, 0.16) 46% 48%, transparent 48% 100%);
  background-size: 46px 46px, 46px 46px, 260px 260px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 58%, transparent 100%);
}

body::after {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, transparent 0 18%, rgba(211, 0, 58, 0.42) 20%, transparent 28% 62%, rgba(255, 247, 244, 0.16) 66%, transparent 72% 100%);
  filter: blur(0.2px);
  opacity: 0.42;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg);
  animation: orbit-turn 26s linear infinite;
  pointer-events: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.showcase-shell {
  position: relative;
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 9px;
  animation: shell-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.showcase-shell::before {
  position: fixed;
  right: max(16px, 5vw);
  top: 72px;
  z-index: -1;
  width: min(36vw, 420px);
  aspect-ratio: 1 / 1.24;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(211, 0, 58, 0.3), rgba(255, 255, 255, 0.03) 45%, rgba(255, 45, 85, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent);
  box-shadow: 0 34px 110px rgba(211, 0, 58, 0.22);
  opacity: 0.5;
  transform: perspective(720px) rotateY(-31deg) rotateX(13deg) rotateZ(8deg);
  animation: glass-card-float 9s ease-in-out infinite;
}

.brand-bar,
.style-switcher,
.case-heading,
.control-deck,
.case-footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel);
  backdrop-filter: blur(22px);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.24);
}

.brand-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 9px;
}

.brand-mark {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark img {
  width: 112px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
  padding: 3px 5px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.brand-mark span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 247, 244, 0.9);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.live-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #ffeaf0;
  background:
    linear-gradient(180deg, rgba(211, 0, 58, 0.3), rgba(211, 0, 58, 0.14));
  border: 1px solid rgba(255, 45, 85, 0.46);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(211, 0, 58, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.style-switcher {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.style-switcher::-webkit-scrollbar {
  display: none;
}

.style-option {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 40px;
  padding: 0 13px;
  color: rgba(255, 247, 244, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 247, 244, 0.12);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.style-option.is-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, #ff2d55, var(--brand-red) 58%, #7a001e);
  border-color: rgba(255, 98, 130, 0.86);
  box-shadow:
    0 12px 28px rgba(211, 0, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.style-option:active {
  transform: translateY(1px) scale(0.98);
}

.case-heading {
  position: relative;
  overflow: hidden;
  padding: 14px 15px 15px;
  background:
    linear-gradient(135deg, rgba(211, 0, 58, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 13, 0.76);
}

.case-heading::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, #ff5173, var(--brand-red), #520013);
  box-shadow: 0 0 28px rgba(211, 0, 58, 0.72);
}

.case-heading::after {
  position: absolute;
  right: -44px;
  top: -54px;
  width: 170px;
  height: 170px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: perspective(420px) rotateX(62deg) rotateZ(18deg);
  background: conic-gradient(from 10deg, rgba(255, 45, 85, 0.18), transparent 34%, rgba(255, 255, 255, 0.08), transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}

.case-client {
  position: relative;
  margin: 0 0 7px;
  color: #ffb8c6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-heading h1,
.case-heading h2,
.case-heading p {
  position: relative;
  margin: 0;
}

.case-heading h1 {
  max-width: 12.5em;
  font-size: clamp(24px, 6.2vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.case-heading h2 {
  margin-top: 7px;
  color: rgba(255, 247, 244, 0.9);
  font-size: clamp(15px, 4vw, 24px);
  line-height: 1.2;
}

.case-heading p:last-child {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  color: rgba(255, 247, 244, 0.68);
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dual-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(210px, 1fr) minmax(210px, 1fr);
  gap: 10px;
  perspective: 1600px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.dual-stage::before {
  position: absolute;
  inset: -18px -8px -28px -8px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 45, 85, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 247, 244, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(211, 0, 58, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(51, 215, 255, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 42px 130px rgba(0, 0, 0, 0.52),
    0 0 90px rgba(211, 0, 58, 0.12) inset;
  transform: rotateX(66deg) translateY(16px) translateZ(-110px) scale(0.96);
  transform-origin: center bottom;
}

.dual-stage::after {
  position: absolute;
  left: 50%;
  bottom: -26px;
  z-index: 0;
  width: min(92%, 860px);
  height: 84px;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 45, 85, 0.42), transparent 72%),
    radial-gradient(closest-side at 24% 50%, rgba(51, 215, 255, 0.24), transparent 70%),
    radial-gradient(closest-side at 76% 50%, rgba(240, 195, 106, 0.22), transparent 70%);
  filter: blur(12px);
  opacity: 0.86;
  transform: translateX(-50%) rotateX(64deg);
  pointer-events: none;
}

.single-lane .dual-stage {
  grid-template-rows: minmax(420px, 1fr);
}

.orbit-preview {
  position: relative;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 244, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(16, 16, 19, 0.86);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 54px rgba(255, 45, 85, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.orbit-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 34%, transparent 68%, rgba(0, 0, 0, 0.44)),
    linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.orbit-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.86;
  filter: saturate(0.94) contrast(1.06);
}

.orbit-window-dots {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.orbit-window-dots i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 247, 244, 0.58);
}

.orbit-window-dots i:first-child {
  background: var(--brand-red-2);
}

.orbit-preview-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.orbit-preview-copy span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red-2), var(--brand-red));
  font-size: 10px;
  font-weight: 900;
}

.orbit-preview-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 247, 244, 0.96);
  font-size: 16px;
  line-height: 1.08;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lane-card {
  position: relative;
  --card-transform: rotateY(0deg) rotateX(0deg) translateZ(0);
  z-index: 2;
  min-height: 210px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 247, 244, 0.17);
  border-radius: 18px;
  background: var(--stage);
  box-shadow:
    0 36px 86px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  transform: var(--card-transform);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 360ms ease, box-shadow 360ms ease, filter 360ms ease;
  will-change: transform;
}

.lane-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 16%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.1), transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.lane-card::after {
  position: absolute;
  inset: auto 18px 14px 18px;
  z-index: 2;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.42;
  pointer-events: none;
}

.top-lane {
  --card-transform: translateZ(28px);
  border-left: 4px solid var(--brand-red-2);
}

.bottom-lane {
  --card-transform: translateZ(10px);
  border-left: 4px solid var(--brand-red);
}

.lane-card.is-turning {
  animation: cube-face-in-next 780ms cubic-bezier(0.16, 0.88, 0.22, 1) both;
}

.lane-card.is-cube-prev {
  animation-name: cube-face-in-prev;
}

.lane-card.is-turning-bottom {
  animation-delay: 60ms;
}

.cube-face-out {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  border-radius: inherit;
  background: var(--stage);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
}

.cube-face-out img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cube-face-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.58)),
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.64));
}

.cube-face-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.cube-face-copy span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red-2), var(--brand-red));
  font-size: 12px;
  font-weight: 900;
}

.cube-face-copy strong {
  color: #fff;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.05;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.cube-out-next {
  animation: cube-face-out-next 780ms cubic-bezier(0.16, 0.88, 0.22, 1) both;
  transform-origin: left center;
}

.cube-out-prev {
  animation: cube-face-out-prev 780ms cubic-bezier(0.16, 0.88, 0.22, 1) both;
  transform-origin: right center;
}

.lane-card[hidden] {
  display: none;
}

.lane-card.is-missing-page {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 13px),
    rgba(5, 5, 6, 0.96);
}

.lane-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(211, 0, 58, 0.12), transparent 52%),
    #050506;
}

.lane-media img,
.lane-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.media-contain .lane-media img,
.media-contain .lane-media video {
  object-fit: contain;
}

.media-contain .lane-media {
  background:
    linear-gradient(135deg, rgba(211, 0, 58, 0.16), transparent 58%),
    linear-gradient(180deg, #0d0d10, #030304);
}

.lane-media img {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 280ms ease, transform 5200ms linear;
}

.lane-media img.is-ready {
  opacity: 1;
  transform: scale(1.06);
}

.media-contain .lane-media img,
.media-contain .lane-media img.is-ready {
  transform: none;
}

.lane-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #030304;
  transition: opacity 180ms ease;
}

.lane-media video.is-ready {
  opacity: 1;
}

.lane-media img.is-hidden,
.lane-media video.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.lane-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0 28%, rgba(0, 0, 0, 0.24) 56%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), transparent 58%);
}

.is-missing-page .lane-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
}

.slide-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-width: 92px;
  min-height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255, 247, 244, 0.9);
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 247, 244, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.slide-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  gap: 7px;
}

.slide-copy span {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5373, var(--brand-red));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(211, 0, 58, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.bottom-lane .slide-copy span {
  background: linear-gradient(135deg, #ff7b92, #920025);
}

.slide-copy h3 {
  max-width: min(17em, 92%);
  margin: 0;
  font-size: clamp(20px, 5vw, 38px);
  line-height: 1.08;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.55);
}

.slide-copy p {
  max-width: 34em;
  margin: 0;
  color: rgba(255, 247, 244, 0.74);
  font-size: 13px;
  line-height: 1.48;
}

.control-deck {
  padding: 10px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 247, 244, 0.1);
  border: 1px solid rgba(255, 247, 244, 0.08);
  border-radius: 999px;
}

.progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6d86, var(--brand-red), #ffffff);
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(211, 0, 58, 0.58);
}

.control-row {
  display: grid;
  grid-template-columns: 46px 1fr 46px auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.icon-control,
.play-control,
.reset-control,
.case-footer button {
  min-height: 44px;
  color: var(--paper);
  border: 1px solid rgba(255, 247, 244, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.icon-control:active,
.play-control:active,
.reset-control:active,
.case-footer button:active {
  transform: translateY(1px) scale(0.98);
}

.icon-control {
  display: grid;
  place-items: center;
  padding: 0;
}

.control-symbol {
  display: none;
}

#prevBtn::before,
#nextBtn::before {
  font-size: 30px;
  line-height: 1;
}

#prevBtn::before {
  content: "\2039";
}

#nextBtn::before {
  content: "\203A";
}

.play-control {
  color: #ffffff;
  background: linear-gradient(135deg, #ff3c64, var(--brand-red));
  border-color: rgba(255, 104, 132, 0.66);
  box-shadow: 0 16px 38px rgba(211, 0, 58, 0.28);
  font-weight: 900;
}

.play-control.is-paused {
  background: linear-gradient(135deg, #202024, #0d0d10);
  border-color: rgba(255, 247, 244, 0.22);
  box-shadow: none;
}

.reset-control,
.case-footer button {
  padding: 0 12px;
  color: rgba(255, 247, 244, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.case-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.case-footer span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 247, 244, 0.68);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-footer button {
  min-height: 34px;
  flex: 0 0 auto;
}

.share-dialog[hidden] {
  display: none;
}

.share-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
}

.share-dialog-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 23px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(211, 0, 58, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #101013;
  border: 1px solid rgba(255, 247, 244, 0.18);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.share-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: rgba(255, 247, 244, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 247, 244, 0.14);
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
}

.share-dialog-kicker,
.share-dialog-panel h2,
.share-dialog-note {
  margin: 0;
}

.share-dialog-kicker {
  color: #ff8fa3;
  font-size: 12px;
  font-weight: 900;
}

.share-dialog-panel h2 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.share-dialog-note {
  margin-top: 8px;
  color: rgba(255, 247, 244, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.share-link-input {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 12px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 247, 244, 0.18);
  border-radius: 10px;
  outline: 0;
  font: inherit;
}

.share-copy-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3c64, var(--brand-red));
  border: 1px solid rgba(255, 104, 132, 0.72);
  border-radius: 10px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 25;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #222226, #0c0c0e);
  border: 1px solid rgba(255, 247, 244, 0.12);
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
  font-weight: 900;
}

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

@keyframes shell-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orbit-turn {
  from {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes glass-card-float {
  0%,
  100% {
    transform: perspective(720px) rotateY(-31deg) rotateX(13deg) rotateZ(8deg) translateY(0);
  }
  50% {
    transform: perspective(720px) rotateY(-24deg) rotateX(16deg) rotateZ(5deg) translateY(14px);
  }
}

@keyframes cube-face-in-next {
  0% {
    opacity: 0.72;
    filter: brightness(0.72) saturate(0.9);
    transform: perspective(1200px) rotateY(90deg) translateX(34%) translateZ(-160px) scale(0.98);
    transform-origin: right center;
  }
  52% {
    opacity: 1;
    filter: brightness(1.04) saturate(1.06);
    transform: perspective(1200px) rotateY(-8deg) translateX(-2%) translateZ(46px) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: var(--card-transform);
    transform-origin: center center;
  }
}

@keyframes cube-face-in-prev {
  0% {
    opacity: 0.72;
    filter: brightness(0.72) saturate(0.9);
    transform: perspective(1200px) rotateY(-90deg) translateX(-34%) translateZ(-160px) scale(0.98);
    transform-origin: left center;
  }
  52% {
    opacity: 1;
    filter: brightness(1.04) saturate(1.06);
    transform: perspective(1200px) rotateY(8deg) translateX(2%) translateZ(46px) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: var(--card-transform);
    transform-origin: center center;
  }
}

@keyframes cube-face-out-next {
  0% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: perspective(1200px) rotateY(0deg) translateX(0) translateZ(0);
  }
  100% {
    opacity: 0.18;
    filter: brightness(0.52) saturate(0.78);
    transform: perspective(1200px) rotateY(-92deg) translateX(-38%) translateZ(-170px);
  }
}

@keyframes cube-face-out-prev {
  0% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: perspective(1200px) rotateY(0deg) translateX(0) translateZ(0);
  }
  100% {
    opacity: 0.18;
    filter: brightness(0.52) saturate(0.78);
    transform: perspective(1200px) rotateY(92deg) translateX(38%) translateZ(-170px);
  }
}

@keyframes orbit-preview-left-pulse {
  0% {
    opacity: 0.55;
    transform: translateY(-50%) rotateY(50deg) rotateZ(-8deg) translateX(-18px) translateZ(-280px) scale(0.84);
  }
  100% {
    opacity: 0.86;
    transform: translateY(-50%) rotateY(38deg) rotateZ(-5deg) translateZ(-190px) scale(0.94);
  }
}

@keyframes orbit-preview-right-pulse {
  0% {
    opacity: 0.55;
    transform: translateY(-50%) rotateY(-50deg) rotateZ(8deg) translateX(18px) translateZ(-280px) scale(0.84);
  }
  100% {
    opacity: 0.86;
    transform: translateY(-50%) rotateY(-38deg) rotateZ(5deg) translateZ(-190px) scale(0.94);
  }
}

@keyframes card-turn-in {
  0% {
    opacity: 0.52;
    filter: blur(4px) saturate(0.85);
    transform: rotateY(-42deg) rotateX(9deg) translateX(-54px) translateZ(-150px) scale(0.88);
  }
  58% {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    transform: rotateY(7deg) rotateX(-2deg) translateX(12px) translateZ(36px) scale(1.018);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: var(--card-transform);
  }
}

@keyframes card-turn-in-reverse {
  0% {
    opacity: 0.52;
    filter: blur(4px) saturate(0.85);
    transform: rotateY(42deg) rotateX(-9deg) translateX(54px) translateZ(-150px) scale(0.88);
  }
  58% {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    transform: rotateY(-7deg) rotateX(2deg) translateX(-12px) translateZ(34px) scale(1.018);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: var(--card-transform);
  }
}

@keyframes center-carousel-settle {
  0% {
    opacity: 0.62;
    filter: blur(3px) saturate(0.9);
    transform: translateZ(-120px) scale(0.92);
  }
  62% {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    transform: translateZ(116px) scale(1.018);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: var(--card-transform);
  }
}

@keyframes ghost-prev-orbit {
  0% {
    opacity: 0.28;
    filter: blur(2px) saturate(0.62) brightness(0.58);
    transform: rotateY(36deg) translateX(30%) translateZ(-360px) scale(0.68);
  }
  100% {
    opacity: 0.58;
    filter: saturate(0.78) brightness(0.74);
    transform: rotateY(58deg) translateX(-4%) translateZ(-220px) scale(0.82);
  }
}

@keyframes ghost-next-orbit {
  0% {
    opacity: 0.34;
    filter: blur(2px) saturate(0.66) brightness(0.62);
    transform: rotateY(-36deg) translateX(-30%) translateZ(-360px) scale(0.68);
  }
  100% {
    opacity: 0.66;
    filter: saturate(0.86) brightness(0.82);
    transform: rotateY(-58deg) translateX(4%) translateZ(-220px) scale(0.82);
  }
}

@media (min-width: 760px) {
  .showcase-shell {
    padding: 18px;
    gap: 12px;
  }

  .case-heading {
    padding: 18px 20px;
  }

  .style-switcher {
    justify-content: center;
  }

  .dual-stage {
    grid-template-rows: minmax(290px, 1fr) minmax(290px, 1fr);
  }

  .lane-card {
    min-height: 290px;
  }

  .slide-copy {
    left: 24px;
    right: 24px;
    bottom: 22px;
  }

  .control-deck,
  .case-footer {
    width: min(760px, 100%);
    justify-self: center;
  }
}

@media (min-width: 980px) {
  .showcase-shell {
    width: min(1320px, calc(100vw - 56px));
    min-height: 100vh;
    padding: 30px 0;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "brand stage"
      "styles stage"
      "heading stage"
      "footer controls";
    align-content: center;
    gap: 15px 22px;
  }

  .brand-bar {
    grid-area: brand;
    min-height: 70px;
    padding: 13px;
  }

  .brand-mark {
    gap: 13px;
  }

  .brand-mark img {
    width: 132px;
    height: 40px;
  }

  .brand-mark span {
    white-space: normal;
    line-height: 1.22;
  }

  .style-switcher {
    grid-area: styles;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    padding: 10px;
  }

  .style-option {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    min-height: 44px;
  }

  .case-heading {
    grid-area: heading;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
  }

  .case-client {
    margin-bottom: 10px;
  }

  .case-heading h1 {
    max-width: 9em;
    font-size: clamp(38px, 3vw, 54px);
  }

  .case-heading h2 {
    margin-top: 12px;
    font-size: clamp(19px, 1.65vw, 25px);
  }

  .case-heading p:last-child {
    margin-top: 15px;
    font-size: 14px;
    -webkit-line-clamp: 5;
  }

  .dual-stage {
    grid-area: stage;
    width: 100%;
    max-width: 940px;
    justify-self: center;
    align-self: center;
    grid-template-rows: none;
    gap: 18px;
    overflow: visible;
    perspective: 1900px;
    transform: none;
    transform-origin: center center;
  }

  .orbit-preview {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: min(25vw, 260px);
    aspect-ratio: 4 / 5;
    display: block;
    opacity: 0.86;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 560ms cubic-bezier(0.16, 0.9, 0.24, 1), opacity 560ms ease, filter 560ms ease;
  }

  .carousel-ghost-prev {
    left: -22%;
    opacity: 0.58;
    filter: saturate(0.78) brightness(0.74);
    transform: rotateY(58deg) translateX(-4%) translateZ(-220px) scale(0.82);
    transform-origin: right center;
  }

  .carousel-ghost-next {
    right: -22%;
    opacity: 0.66;
    filter: saturate(0.86) brightness(0.82);
    transform: rotateY(-58deg) translateX(4%) translateZ(-220px) scale(0.82);
    transform-origin: left center;
  }

  .ghost-card {
    min-height: 0;
    aspect-ratio: 21 / 9;
  }

  .media-contain .ghost-card {
    aspect-ratio: 16 / 9;
  }

  .orbit-preview-prev {
    left: 0;
    filter: saturate(0.92) brightness(0.88);
    transform: translateY(-50%) rotateY(38deg) rotateZ(-5deg) translateZ(-190px) scale(0.94);
    transform-origin: right center;
  }

  .orbit-preview-next {
    right: 0;
    filter: saturate(0.96) brightness(0.92);
    transform: translateY(-50%) rotateY(-38deg) rotateZ(5deg) translateZ(-190px) scale(0.94);
    transform-origin: left center;
  }

  .dual-stage.is-orbit-turning .orbit-preview-prev {
    animation: orbit-preview-left-pulse 780ms cubic-bezier(0.16, 0.88, 0.22, 1) both;
  }

  .dual-stage.is-orbit-turning .orbit-preview-next {
    animation: orbit-preview-right-pulse 780ms cubic-bezier(0.16, 0.88, 0.22, 1) both;
  }

  .lane-card {
    width: min(72%, 690px);
    justify-self: center;
    min-height: 0;
    aspect-ratio: 21 / 9;
    z-index: 3;
  }

  .top-lane {
    --card-transform: translateZ(112px) translateY(-2px);
    box-shadow:
      0 48px 110px rgba(0, 0, 0, 0.66),
      -22px 0 70px rgba(211, 0, 58, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }

  .bottom-lane {
    --card-transform: translateZ(82px) translateY(6px);
    box-shadow:
      0 40px 98px rgba(0, 0, 0, 0.62),
      18px 0 68px rgba(211, 0, 58, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  }

  .dual-stage::before {
    inset: -24px -18px -34px -18px;
    transform: rotateX(74deg) translateY(54px) translateZ(-190px) scale(1.05);
    opacity: 0.82;
  }

  .dual-stage.is-rotating .lane-card {
    animation-name: center-carousel-settle;
    animation-duration: 680ms;
    animation-timing-function: cubic-bezier(0.16, 0.9, 0.24, 1);
    animation-fill-mode: both;
  }

  .dual-stage.is-rotating .carousel-ghost-prev {
    animation: ghost-prev-orbit 680ms cubic-bezier(0.16, 0.9, 0.24, 1) both;
  }

  .dual-stage.is-rotating .carousel-ghost-next {
    animation: ghost-next-orbit 680ms cubic-bezier(0.16, 0.9, 0.24, 1) both;
  }

  .media-contain .dual-stage {
    max-width: 760px;
  }

  .media-contain .lane-card {
    aspect-ratio: 16 / 9;
  }

  .single-lane .dual-stage {
    grid-template-rows: none;
  }

  .control-deck {
    grid-area: controls;
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .case-footer {
    grid-area: footer;
    width: auto;
    min-height: 54px;
    justify-self: stretch;
  }

  .control-row {
    grid-template-columns: 52px 1fr 52px auto;
  }

  .icon-control,
  .play-control,
  .reset-control {
    min-height: 50px;
  }

  .slide-copy h3 {
    font-size: clamp(25px, 2.2vw, 38px);
  }

  .share-dialog {
    place-items: center;
  }
}

@media (max-width: 420px) {
  .showcase-shell {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .showcase-shell::before,
  body::after {
    opacity: 0.24;
  }

  .brand-mark img {
    width: 100px;
  }

  .brand-mark span {
    font-size: 13px;
  }

  .live-chip {
    padding: 0 8px;
  }

  .case-heading h1 {
    font-size: 24px;
  }

  .case-heading h2 {
    font-size: 14px;
  }

  .case-heading p:last-child {
    font-size: 12px;
  }

  .dual-stage {
    grid-template-rows: minmax(190px, 1fr) minmax(190px, 1fr);
    perspective: 1000px;
  }

  .lane-card {
    min-height: 190px;
    border-radius: 15px;
  }

  .top-lane {
    --card-transform: translateZ(12px);
  }

  .bottom-lane {
    --card-transform: translateZ(0);
  }

  .slide-counter {
    min-width: 82px;
    min-height: 28px;
    font-size: 11px;
  }

  .slide-copy {
    left: 13px;
    right: 13px;
    bottom: 13px;
  }

  .slide-copy h3 {
    font-size: 20px;
  }

  .slide-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .control-row {
    grid-template-columns: 42px 1fr 42px;
  }

  .reset-control {
    grid-column: 1 / -1;
    min-height: 38px;
  }
}

@media (max-height: 720px) and (max-width: 520px) {
  .case-heading p:last-child {
    display: none;
  }

  .dual-stage {
    grid-template-rows: minmax(168px, 1fr) minmax(168px, 1fr);
  }

  .lane-card {
    min-height: 168px;
  }
}

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