:root {
  --bg0: #05070b;
  --bg1: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(10, 14, 22, 0.85);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f3f6ff;
  --muted: rgba(243, 246, 255, 0.70);
  --muted2: rgba(243, 246, 255, 0.50);
  --good: #72f7a8;
  --warn: #ffd16a;
  --bad: #ff6b6b;
  --accent: #ffb86b;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --blur: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(
      1200px 800px at 20% 0%,
      rgba(125, 249, 255, 0.13),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 80% 10%,
      rgba(255, 184, 107, 0.15),
      transparent 60%
    ),
    radial-gradient(1200px 900px at 50% 110%, rgba(255, 105, 180, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 70px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(var(--blur));
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.92), rgba(5, 7, 11, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 184, 107, 0.55), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(125, 249, 255, 0.45), transparent 58%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.brand .mark::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 240deg,
    rgba(125, 249, 255, 0.0),
    rgba(125, 249, 255, 0.25),
    rgba(255, 184, 107, 0.18),
    rgba(255, 255, 255, 0.0)
  );
  animation: spin 10s linear infinite;
}

.brand h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.4px;
}

.brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.kv {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  min-height: 340px;
}

.kv canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

 .card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
}

.card-inner {
  padding: 18px;
}

.h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero {
  margin-top: 16px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controls-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.controls-grid .btn {
  width: 100%;
  justify-content: center;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 13px;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0px) scale(0.99);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(255, 184, 107, 0.24), rgba(125, 249, 255, 0.14));
  border-color: rgba(255, 184, 107, 0.28);
}

.btn.good {
  background: linear-gradient(135deg, rgba(114, 247, 168, 0.20), rgba(125, 249, 255, 0.10));
  border-color: rgba(114, 247, 168, 0.30);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  user-select: none;
}

.pill strong {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.badge strong {
  color: var(--text);
}

.badge.open strong {
  color: var(--good);
}

.badge.closed strong {
  color: var(--warn);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 209, 106, 0.12);
}

.dot.good {
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(114, 247, 168, 0.12);
}

.dot.bad {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.section {
  margin-top: 18px;
}

.afterdoor-hero {
  background: rgba(5, 7, 11, 0.92);
  text-align: left;
}
.afterdoor-hero .controls-row,
.card-cta .controls-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.card-cta .controls-row .btn.primary {
  margin-right: 8px;
}
.minimal-grid .card {
  min-height: auto;
}
.lede.minimal {
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 520px;
}

.montage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 620px) {
  .montage {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-showcase {
  margin-top: 26px;
}

.gallery-showcase .section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gallery-showcase .section-heading .lede {
  margin: 0;
  color: var(--muted);
}

.gallery-showcase .gallery-nav {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.gallery-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 180px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6) 100%);
}

.gallery-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  z-index: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 2, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  backdrop-filter: blur(12px);
}

.lightbox.hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.lightbox__shell {
  position: relative;
  max-width: 1024px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox__close {
  position: absolute;
  top: -32px;
  right: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
}

.lightbox__shell img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lightbox__btn {
  font-size: 14px;
  padding: 10px 14px;
}

@media (max-width: 600px) {
  .gallery-shots {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

.montage .m {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  min-height: 92px;
  position: relative;
  appearance: none;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: block;
}

.montage img,
.montage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.montage .cap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: rgba(243, 246, 255, 0.86);
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.65);
}

.muted {
  color: var(--muted);
}

.muted2 {
  color: var(--muted2);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 750;
  background: rgba(255, 255, 255, 0.04);
}

.table tr:last-child td {
  border-bottom: none;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
}

.item .left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 120px;
}

.item h3 {
  margin: 0;
  font-size: 16px;
}

.item .meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.mini .thumb {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 184, 107, 0.45), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(125, 249, 255, 0.38), transparent 58%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.mini h4 {
  margin: 0;
  font-size: 13px;
}

.mini p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.video-wrap {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  box-shadow: var(--shadow-subtle);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background:
      radial-gradient(600px 380px at 50% 0%, rgba(255, 184, 107, 0.16), transparent 60%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.22));
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
}

.video-overlay .box {
  max-width: 560px;
}

.video-overlay h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.video-overlay p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 12px;
  color: rgba(243, 246, 255, 0.92);
  font-size: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--blur));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.hidden {
  display: none !important;
}

.footer {
  margin-top: 30px;
  padding: 18px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

.page-hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
}

.missed-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--missed-bg, rgba(5, 7, 11, 0.96));
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.missed-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.missed-overlay.fading {
  opacity: 0;
  pointer-events: none;
}

.missed-overlay__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.missed-overlay__stage-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 11, 0) 25%,
    rgba(5, 7, 11, 0.74) 70%,
    rgba(5, 7, 11, 0.9) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.missed-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease, opacity 0.6s ease;
  opacity: 0;
  transform: scale(1);
}

.missed-stage-img.active {
  opacity: 1;
  outline: 4px solid #ffd16a;
  outline-offset: 6px;
  box-shadow: 0 0 20px rgba(255, 209, 106, 0.65);
}

.missed-stage-img.from-back {
  transform: scale(1.05) rotateX(7deg);
}

.missed-stage-img.from-side {
  transform: scale(1.05) translateX(6%) rotateY(6deg);
}

.missed-stage-img.from-top {
  transform: scale(1.04) translateY(-6%) rotateX(-4deg);
}

.missed-stage-img.zoomed {
  transform: scale(1.08);
}

.missed-overlay__content {
  position: relative;
  z-index: 1;
  width: min(960px, 90vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.missed-overlay__tag {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.missed-overlay__message {
  font-family: "Space Mono", "Segoe UI", monospace;
  font-size: 22px;
  line-height: 1.6;
  min-height: 88px;
  white-space: pre-line;
  text-align: left;
  position: relative;
  width: 100%;
}

.missed-overlay__message.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.missed-overlay__message::after {
  content: "|";
  margin-left: 4px;
  opacity: 0;
  animation: blink 1.2s steps(2) infinite;
  display: inline-block;
}

.missed-overlay.visible .missed-overlay__message::after {
  opacity: 0.8;
}

.collage-visible .gallery-showcase {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

body.collage-visible header,
body.collage-visible main,
body.collage-visible footer {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease;
}


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

@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .missed-overlay__message {
    font-size: 18px;
  }
}

.kv,
.video-wrap {
  display: none !important;
}
