:root {
  --bg: #03070d;
  --bg-soft: #07111d;
  --text: #f4f7fb;
  --muted: #b8c6d8;
  --blue: #14b8ff;
  --gold: #d6b66d;
  --panel-soft: rgba(3, 7, 13, 0.36);
  --panel-line: rgba(112, 207, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg), var(--bg-soft));
  overflow-x: hidden;
}

.background-layer,
.readability-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-layer {
  z-index: 0;
  background: url("assets/BackGround_MajorLynxVision.png") center center / cover no-repeat;
  filter: saturate(1.12) contrast(1.07) brightness(0.94);
  transform: scale(1.012);
  animation: background-breathe 26s ease-in-out infinite;
  will-change: transform, filter;
}

.readability-layer {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 7, 13, 0.02), rgba(3, 7, 13, 0.10)),
    linear-gradient(90deg, rgba(3, 7, 13, 0.06), rgba(3, 7, 13, 0.00) 50%, rgba(3, 7, 13, 0.06));
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(24px, 5vw, 52px) 18px;
  text-align: center;
}

.header-logo img {
  display: block;
  width: min(720px, 72vw);
  height: auto;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(20, 184, 255, 0.16))
    drop-shadow(0 0 10px rgba(214, 182, 109, 0.12));
}

.site-status {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  color: rgba(238, 244, 248, 0.94);
  font-size: clamp(0.98rem, 1.8vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #d9e3ea 28%, #8f9ba5 54%, #f5f8fa 78%, #b6c0c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 12px rgba(0, 0, 0, 0.78),
    0 0 14px rgba(196, 218, 230, 0.18);
}

.site-status::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(260px, 64vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(20, 184, 255, 0.55), rgba(214, 182, 109, 0.38), transparent);
}

.event-panel {
  --corner-cut: 22px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 88vw);
  min-height: clamp(390px, 38vw, 430px);
  padding: clamp(22px, 2.5vw, 30px) clamp(30px, 4.2vw, 54px) clamp(24px, 2.8vw, 34px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  clip-path: polygon(
    var(--corner-cut) 0,
    calc(100% - var(--corner-cut)) 0,
    100% var(--corner-cut),
    100% calc(100% - var(--corner-cut)),
    calc(100% - var(--corner-cut)) 100%,
    var(--corner-cut) 100%,
    0 calc(100% - var(--corner-cut)),
    0 var(--corner-cut)
  );
  box-shadow: none;
  backdrop-filter: none;
  animation: panel-pulse 8s ease-in-out infinite;
}

.event-panel::before,
.event-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.event-panel::before {
  inset: 0;
  z-index: -1;
  background: transparent;
  opacity: 0;
}

.event-panel::after {
  inset: 0;
  z-index: 0;
  background: url("assets/event-frame-border.svg") center / 100% 100% no-repeat;
  filter: none;
}

.event-panel > * {
  position: relative;
  z-index: 1;
}

.event-text {
  text-align: center;
  width: 100%;
}

.event-kicker {
  display: none;
}

.event-title {
  margin: 0;
  width: min(680px, 100%);
  line-height: 1;
}

.event-title span,
.event-place span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.event-title img {
  display: block;
  width: 100%;
  height: auto;
}

.event-place {
  position: relative;
  margin: -6px auto 0;
  width: min(450px, 74%);
  line-height: 1;
}

.event-place::before,
.event-place::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #ffb51f 16%, #fff08d 50%, #ffb51f 84%, transparent);
}

.event-place::before {
  left: -9.5%;
}

.event-place::after {
  right: -8%;
}

.event-place img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.event-badge {
  width: min(546px, 70vw);
  margin: clamp(0px, 0.3vw, 3px) auto clamp(2px, 0.4vw, 5px);
  filter:
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 18px rgba(20, 184, 255, 0.18))
    drop-shadow(0 0 10px rgba(214, 182, 109, 0.12));
}

.event-actions {
  display: flex;
  width: min(650px, 100%);
  gap: clamp(22px, 3.2vw, 38px);
  justify-content: center;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 275px;
  min-height: 64px;
  padding: 0 30px 0 72px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: url("assets/button-rimfire.svg") center / 100% 100% no-repeat;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow:
    0 0 18px rgba(20, 184, 255, 0.3);
  text-decoration: none;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  background: linear-gradient(95deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 48%, transparent 62% 100%);
  opacity: 0.28;
}

.button::after {
  content: none;
}

.button-secondary {
  background: url("assets/button-middle.svg") center / 100% 100% no-repeat;
  box-shadow:
    0 0 18px rgba(214, 182, 109, 0.3);
}

.button-secondary::after {
  content: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 0 32px rgba(20, 184, 255, 0.54);
  outline: 2px solid rgba(127, 224, 255, 0.72);
  outline-offset: 3px;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  box-shadow:
    0 0 32px rgba(214, 182, 109, 0.54);
}

.service-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  max-width: 1080px;
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
  color: rgba(231, 241, 252, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(20, 184, 255, 0.12);
}

.service-line::before,
.service-line::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.service-line::before {
  bottom: 0;
  width: min(820px, 86vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 186, 42, 0.18) 18%, rgba(255, 232, 140, 0.9) 50%, rgba(255, 186, 42, 0.18) 82%, transparent);
  filter: blur(0.2px);
}

.service-line::after {
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff0a0;
  box-shadow:
    0 0 10px rgba(255, 216, 92, 0.95),
    0 0 22px rgba(255, 172, 34, 0.7),
    0 0 28px rgba(20, 184, 255, 0.24);
}

.service-line li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.service-line li:not(:last-child)::after {
  content: "•";
  margin-left: 18px;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(214, 182, 109, 0.55);
}

.service-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(214, 182, 109, 0.32))
    drop-shadow(0 0 5px rgba(20, 184, 255, 0.12));
}

@media (max-width: 900px) {
  .page-shell {
    gap: clamp(14px, 2.4vw, 22px);
    padding: clamp(22px, 4vw, 40px) 16px;
  }

  .header-logo img {
    width: min(640px, 78vw);
  }

  .event-panel {
    width: min(740px, calc(100vw - 32px));
  }

  .event-badge {
    width: min(481px, 72vw);
  }

  .button {
    min-width: 240px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    justify-content: flex-start;
  }

  .event-panel {
    width: min(620px, calc(100vw - 32px));
    min-height: clamp(370px, 70vw, 420px);
    padding: clamp(18px, 4vw, 26px);
    text-align: center;
  }

  .event-text {
    text-align: center;
  }

  .event-title {
    width: min(590px, 100%);
  }

  .event-place {
    width: min(390px, 78%);
  }

  .event-badge {
    width: min(435px, 78vw);
  }

  .event-actions {
    width: min(560px, 100%);
  }
}

@media (max-width: 560px) {
  .background-layer {
    background-position: center top;
    transform: scale(1.04);
  }

  .readability-layer {
    background:
      radial-gradient(circle at 50% 14%, rgba(20, 184, 255, 0.12), transparent 20rem),
      linear-gradient(180deg, rgba(3, 7, 13, 0.14), rgba(3, 7, 13, 0.58)),
      linear-gradient(90deg, rgba(3, 7, 13, 0.28), rgba(3, 7, 13, 0.1) 50%, rgba(3, 7, 13, 0.28));
  }

  .page-shell {
    padding: 14px;
    justify-content: flex-start;
  }

  .header-logo img {
    width: min(90vw, 520px);
  }

  .site-status {
    font-size: clamp(0.82rem, 3.2vw, 0.98rem);
    letter-spacing: 0.08em;
  }

  .event-panel {
    width: 100%;
    min-height: auto;
    padding: 20px 18px 22px;
    --corner-cut: 16px;
  }

  .event-panel::after {
    inset: 0;
  }

  .event-title {
    width: 100%;
  }

  .event-place {
    width: min(340px, 82%);
  }

  .event-actions {
    flex-direction: column;
    gap: 12px;
  }

  .button {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    padding: 0 18px 0 66px;
  }

  .service-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.88rem;
  }

  .service-line li {
    width: 100%;
    justify-content: center;
  }

  .service-line li:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}

@media (max-width: 420px) {
  .event-title {
    width: 100%;
  }

  .event-place {
    width: min(300px, 86%);
  }

  .event-badge {
    width: min(370px, 80vw);
  }
}

@keyframes panel-pulse {
  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: none;
  }
}

@keyframes background-breathe {
  0%,
  100% {
    transform: scale(1.012) translate3d(0, 0, 0);
    filter: saturate(1.12) contrast(1.07) brightness(0.94);
  }

  50% {
    transform: scale(1.024) translate3d(0, -4px, 0);
    filter: saturate(1.16) contrast(1.08) brightness(0.98);
  }
}
