﻿@property --video-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 125deg;
}

.server-status-card {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 8px 23px 3px;
  width: fit-content;
  border: 1px solid rgba(42, 245, 152, 0.24);
  border-left: none;
  border-radius: 0 13px 13px 0;
  transform-origin: left center;
  background: linear-gradient(180deg, rgba(5, 22, 35, 0.94), rgba(4, 16, 29, 0.92));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 55;
  transition: transform 220ms ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.server-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff5d62;
  box-shadow: 0 0 14px rgba(255, 93, 98, 0.8);
}

.server-status-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-main);
  font-size: 1.26rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
  transition: color 220ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.server-status-card:hover .server-status-label {
  color: #fff;
}

.server-status-card:hover {
  transform: translateY(-50%) scale(1.04);
}

.server-status-card.is-active {
  border-color: rgba(42, 245, 152, 0.45);
}

.server-status-card.is-active .server-status-dot {
  background: #2af598;
  box-shadow: 0 0 16px rgba(42, 245, 152, 0.9);
}

.server-status-card.is-maintenance {
  border-color: rgba(255, 205, 84, 0.5);
}

.server-status-card.is-maintenance .server-status-dot {
  background: #ffcd54;
  box-shadow: 0 0 16px rgba(255, 205, 84, 0.86);
}

.server-status-card.is-closed {
  border-color: rgba(255, 93, 98, 0.45);
}

.server-status-card.is-closed .server-status-dot {
  background: #ff5d62;
  box-shadow: 0 0 14px rgba(255, 93, 98, 0.8);
}

.hero {
  width: min(1200px, 94vw);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.hero-left {
  padding: 28px 10px;
}

.hero-left .badge,
.hero-left .hero-title,
.hero-left .hero-subtitle,
.hero-left .hero-desc,
.hero-left .hero-actions {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeRiseSoft 560ms ease forwards;
}

.hero-left .badge {
  animation-delay: 90ms;
}

.hero-left .hero-title {
  animation-delay: 160ms;
}

.hero-left .hero-subtitle {
  animation-delay: 240ms;
}

.hero-left .hero-desc {
  animation-delay: 320ms;
}

.hero-left .hero-actions {
  animation-delay: 400ms;
}

.badge {
  display: inline-flex;
  border: 1px solid rgba(42, 245, 152, 0.15);
  background: rgba(10, 16, 14, 0.16);
  color: var(--mint-soft);
  border-radius: var(--radius-ui);
  padding: 6px 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin: 0;
  box-shadow: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.88;
  margin: 14px 0 8px;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 8px rgba(42, 245, 152, 0.12);
}

.hero-title span {
  color: var(--mint);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
}

.hero-desc {
  max-width: 56ch;
  margin: 12px 0 0;
  font-size: 1.2rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.hero .badge,
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-desc,
.hero .video-header h2,
.hero .video-footer {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  box-shadow: inset 0 0 8px rgba(42, 245, 152, 0.05);
}

.hero-actions .btn-ghost:hover {
  box-shadow: inset 0 0 10px rgba(42, 245, 152, 0.06);
}

.hero-right .video-card {
  opacity: 0;
  animation: videoCardFadeIn 700ms ease 260ms forwards;
}

.video-card {
  position: relative;
  background: rgba(24, 24, 24, 0.32);
  border: none;
  border-radius: var(--radius-ui);
  padding: 16px;
  overflow: visible;
  isolation: isolate;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 280ms ease, transform 280ms ease;
  will-change: transform;
}

.video-card:hover {
  background: rgba(24, 24, 24, 0.58);
  transform: translateY(-2px) scale(1.03);
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  --video-border-angle: 125deg;
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
  transform-origin: center;
  background: linear-gradient(var(--video-border-angle), rgba(42, 245, 152, 0.75), rgba(95, 214, 255, 0.65), rgba(42, 245, 152, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.video-card:hover::before {
  opacity: 1;
  transform: scale(1);
  animation: videoBorderSpin 10s linear infinite;
}

.video-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-ui);
  background: #ff4956;
  box-shadow: 0 0 14px #ff4956;
}

.video-mock {
  margin-top: 12px;
  position: relative;
  width: 100%;
  border-radius: var(--radius-ui);
  aspect-ratio: 16 / 9;
  border: none;
  background: rgba(24, 24, 24, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-mock iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-ui);
  display: block;
}

.video-footer {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.timeline {
  width: min(1200px, 94vw);
  margin: 34px auto 30px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  position: relative;
  animation: fadeRise 850ms ease 360ms both;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.8px;
  background: linear-gradient(90deg, transparent, rgba(42, 245, 152, 0.5), transparent);
}

.timeline-item {
  border-left: 1px solid rgba(42, 245, 152, 0.2);
  padding-left: 10px;
}

.timeline-item strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-main);
  color: var(--mint-soft);
  letter-spacing: 0.04em;
}

.timeline-item span {
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.photo-gallery {
  width: min(1200px, 94vw);
  margin: 28px auto 44px;
  padding-top: 30px;
  position: relative;
  border-top: none;
  animation: fadeRise 900ms ease 420ms both;
}

.photo-gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(42, 245, 152, 0.14);
}

.photo-gallery::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(42, 245, 152, 0.5), transparent);
}

.photo-gallery-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.photo-gallery-head h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-soft);
  text-align: center;
}

.photo-gallery-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.gallery-arrow {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(226, 226, 228, 0.82);
  font-size: 1.9rem;
  font-weight: 900;
  -webkit-text-stroke: 0.9px currentColor;
  text-shadow: 0 0 0.8px currentColor;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(42, 245, 152, 0.75);
  color: var(--mint-soft);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.photo-gallery-viewport {
  --gallery-hover-bleed: 14px;
  overflow: hidden;
  padding: var(--gallery-hover-bleed);
  margin: calc(var(--gallery-hover-bleed) * -1);
}

.photo-gallery-track {
  --gallery-gap: 56px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gallery-gap) * 2)) / 3);
  gap: var(--gallery-gap);
  transition: transform 420ms ease;
  will-change: transform;
}

.gallery-card {
  position: relative;
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  overflow: hidden;
  background: transparent;
  transition: border-color 180ms ease, transform 260ms ease;
  transform: scale(1);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-card:hover,
.gallery-card:focus-within {
  border-color: rgba(42, 245, 152, 0.7);
  transform: scale(1.03);
}

.gallery-card:hover::after,
.gallery-card:focus-within::after {
  opacity: 0;
}

@keyframes fadeRiseSoft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes videoCardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes videoBorderSpin {
  from {
    --video-border-angle: 125deg;
  }
  to {
    --video-border-angle: 485deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left .badge,
  .hero-left .hero-title,
  .hero-left .hero-subtitle,
  .hero-left .hero-desc,
  .hero-left .hero-actions,
  .hero-right .video-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .video-card:hover::before {
    animation: none;
  }

  .photo-gallery {
    animation: none;
  }

  .photo-gallery-track {
    transition: none;
  }
}

@media (max-width: 900px) {
  .server-status-card {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .server-status-card:hover {
    transform: scale(1.04);
  }

  .photo-gallery-shell {
    gap: 8px;
  }

  .photo-gallery-track {
    grid-auto-columns: calc((100% - var(--gallery-gap)) / 2);
  }
}

@media (max-width: 600px) {
  .server-status-card {
    left: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    flex-direction: row;
    border-left: 1px solid rgba(42, 245, 152, 0.24);
    border-radius: 999px;
    gap: 8px;
  }

  .server-status-label {
    writing-mode: horizontal-tb;
    font-size: 1.22rem;
    letter-spacing: 0.08em;
  }

  .photo-gallery {
    margin-top: 24px;
    padding-top: 24px;
  }

  .photo-gallery-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-arrow {
    width: 100%;
    border-radius: var(--radius-ui);
    height: 40px;
  }

  .photo-gallery-shell .gallery-arrow[data-gallery-prev] {
    order: 2;
  }

  .photo-gallery-shell .photo-gallery-viewport {
    order: 1;
  }

  .photo-gallery-shell .gallery-arrow[data-gallery-next] {
    order: 3;
  }

  .photo-gallery-track {
    grid-auto-columns: 100%;
  }
}


