.borg-launch {
  --borg-paper: #fff2df;
  --borg-muted: #d0c5c0;
  --borg-signal: #ff816d;
  margin-block: 24px 0;
  overflow: hidden;
  isolation: isolate;
  background: #141319;
  color: var(--borg-paper);
  border: 1px solid #51404a;
  border-radius: 12px;
  font-family: Barlow, sans-serif;
}
.borg-launch [hidden] { display: none !important; }
.borg-poster {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  background: linear-gradient(110deg, #18161b, #17151b 43%, #30202a);
}
.borg-invite {
  padding: clamp(22px, 2.6vw, 42px) clamp(20px, 3.3vw, 52px);
  align-self: center;
}
.borg-invite p, .borg-rewards p, .borg-rewards h3 { margin: 0; }
.borg-credit { color: var(--borg-muted); font-size: 14px; font-weight: 600; }
.borg-credit span { padding-inline: .2em; color: var(--borg-signal); }
.borg-invite h2 {
  margin: 8px 0 5px;
  color: var(--borg-paper);
  font: 700 clamp(52px, 5.45vw, 86px)/.99 'Barlow Condensed', sans-serif;
  letter-spacing: -.035em;
}
.borg-invite .borg-edition { color: #eee1d9; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.4; }
.borg-schedule { margin-top: clamp(18px, 2vw, 28px); }
.borg-schedule p { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; font-size: 14px; }
.borg-schedule p span { color: var(--borg-signal); font-weight: 600; }
.borg-schedule time { color: var(--borg-paper); font-weight: 600; }
.borg-clock { display: flex; gap: clamp(16px, 2.1vw, 32px); margin-top: 7px; }
.borg-clock > span { display: grid; }
.borg-clock b {
  color: var(--borg-paper);
  font: 600 clamp(34px, 3.25vw, 50px)/1 'Barlow Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.borg-clock small { color: var(--borg-muted); font-size: 12px; line-height: 1.55; }
.borg-mint-room { display: inline-flex; align-items: center; min-height: 44px; color: var(--borg-paper); text-decoration: underline; }
.borg-assembly {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  margin: 0;
  background:
    linear-gradient(90deg, #17151b, transparent 22%),
    repeating-linear-gradient(90deg, transparent 0 39px, #d5c2b014 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, #d5c2b014 39px 40px),
    radial-gradient(ellipse at 54% 50%, #55464c, #211f29 68%);
}
.borg-stage { position: relative; overflow: hidden; min-height: 206px; }
.borg-band {
  position: absolute; inset: 27% -5% auto 0; height: 33%;
  transform: skewY(-8deg);
  background: repeating-linear-gradient(0deg, transparent 0 2px, #35152138 2px 3px),
              linear-gradient(95deg, transparent, #9c242f 21%, #f15349 70%, #9a2635);
}
.borg-reticle {
  position: absolute; top: 12%; bottom: 5%; left: 20%; right: 13%;
  background: linear-gradient(#e4c7ae7a, #e4c7ae7a) left top/20px 1px,
              linear-gradient(#e4c7ae7a, #e4c7ae7a) left top/1px 20px,
              linear-gradient(#e4c7ae7a, #e4c7ae7a) right bottom/20px 1px,
              linear-gradient(#e4c7ae7a, #e4c7ae7a) right bottom/1px 20px;
  background-repeat: no-repeat;
}
.borg-portrait {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .48s ease;
}
.borg-portrait[data-active] { opacity: 1; }
.borg-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.borg-outfit { clip-path: inset(0); }
.borg-portrait[data-bare] .borg-outfit { clip-path: inset(0 0 100% 0); }
.borg-portrait[data-scanning] .borg-outfit { animation: borg-assemble 1.35s cubic-bezier(.45,0,.25,1) both; }
.borg-scan { display: none; }
.borg-portrait[data-scanning] .borg-scan {
  display: block; position: absolute; width: 65%; left: 17.5%; height: 2px;
  background: linear-gradient(90deg, transparent, #ffd0a4 25%, white 50%, #ffd0a4 75%, transparent);
  filter: drop-shadow(0 0 4px #ff8a70);
  animation: borg-read 1.35s cubic-bezier(.45,0,.25,1) both;
}
@keyframes borg-assemble { from {clip-path: inset(0 0 100% 0)} to {clip-path: inset(0)} }
@keyframes borg-read { from {top: 0; opacity: 0} 12%, 85% {opacity: .85} to {top: 100%; opacity: 0} }
.borg-assembly figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px; padding-inline: 18px 10px;
  border-top: 1px solid #675054; background: #221c24;
  color: var(--borg-paper); font-size: 14px; font-weight: 600;
}
.borg-build i { color: var(--borg-signal); margin: 0 .25em; }
.borg-controls { display: flex; }
.borg-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--borg-paper); cursor: pointer;
}
.borg-controls button:hover { background: #42303b; }
.borg-launch :is(a,button):focus-visible { outline: 2px solid var(--borg-signal); outline-offset: -2px; }
.borg-controls svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.borg-play-icon, [data-paused] .borg-pause-icon { display: none; }
[data-paused] .borg-play-icon { display: block; }
.borg-rewards {
  display: grid; grid-template-columns: 1.12fr 1fr 1.07fr; gap: 24px;
  padding: 18px clamp(20px, 3.3vw, 52px) 20px;
  border-top: 1px solid #51404a; background: #201b23;
}
.borg-rewards h3 { margin: 0 0 4px; font: 600 21px/1.1 'Barlow Condensed', sans-serif; color: var(--borg-paper); }
.borg-rewards p { color: var(--borg-muted); font: 400 14px/1.42 Barlow, sans-serif; max-width: 46ch; }
.borg-rewards a { color: var(--borg-paper); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .borg-poster { grid-template-columns: 1fr; }
  .borg-invite { padding: 20px; }
  .borg-schedule { margin-top: 16px; }
  .borg-clock { gap: 24px; }
  .borg-stage { height: clamp(180px, 43vw, 240px); min-height: 0; }
  .borg-assembly { border-top: 1px solid #51404a; }
  .borg-rewards { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px 20px; }
  .borg-rewards h3 { font-size: 19px; margin-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .borg-portrait { transition: none; }
  .borg-portrait[data-scanning] .borg-outfit, .borg-portrait[data-scanning] .borg-scan { animation: none; }
  .borg-portrait[data-scanning] .borg-scan { display: none; }
}
