@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Jost-300.ttf") format("truetype");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Jost-400.ttf") format("truetype");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Jost-500.ttf") format("truetype");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Jost-700.ttf") format("truetype");
}

@font-face {
  font-family: "CaptureIt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Captureit.ttf") format("truetype");
}

:root {
  --site-font: Futura, "Futura PT", Jost, "Century Gothic", "Avenir Next", Arial, sans-serif;
  --grid-gap: 118px;
}

* {
  box-sizing: border-box;
}

body,
button,
input {
  font-family: var(--site-font);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 32px 20px;
  color: #f4f4f4;
  background: #000000;
  font-family: var(--site-font);
  text-align: center;
  overflow-x: hidden;
  isolation: isolate;
}

.background-video {
  position: fixed;
  inset: -5%;
  z-index: -3;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(3px);
  pointer-events: none;
}

.mist-field {
  position: fixed;
  inset: -14vh -26vw;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.mist-layer {
  position: absolute;
  left: -18vw;
  width: 138vw;
  height: 32vh;
  background-repeat: repeat-x;
  background-size: 64vw 100%, 92vw 100%;
  filter: blur(46px);
  mix-blend-mode: screen;
  opacity: 0.055;
  will-change: transform;
}

.mist-layer-one {
  top: 28vh;
  background-image:
    radial-gradient(ellipse at 24% 48%, rgba(180, 180, 190, 0.14), transparent 48%),
    radial-gradient(ellipse at 76% 52%, rgba(85, 85, 105, 0.12), transparent 54%);
  animation: mistWind 58s linear infinite, mistFloat 16s ease-in-out infinite alternate;
}

.grid-field {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  animation: dotGridDrift 38s linear infinite;
}

.grid-field::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.9px, transparent 3px);
  background-position: 0 0;
  background-size: var(--grid-gap) var(--grid-gap);
  opacity: 0.38;
}

.morse-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4.4px;
  height: 4.4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.42);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.6);
  transition: opacity 80ms ease, transform 80ms ease, box-shadow 80ms ease;
}

.morse-dot.is-on {
  opacity: 0.86;
  transform: translate3d(-50%, -50%, 0) scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.48);
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
}

.image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(98vw, 1120px);
  margin: 0 auto 54px;
}


img {
  display: block;
  width: min(98vw, 1000px);
  max-height: 72svh;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-family: "CaptureIt", var(--site-font);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.top-actions {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.discord-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.55));
  transition: opacity 180ms ease, transform 180ms ease;
}

.discord-link img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.discord-link:hover {
  opacity: 0.78;
  transform: scale(1.04);
}

.discord-link:active {
  opacity: 1;
  transform: scale(0.96);
}

.discord-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
}

.news-badge {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  transition: opacity 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.news-badge:hover {
  opacity: 0.76;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.news-badge:active {
  opacity: 1;
  transform: translateY(1px) scale(0.96);
}

.news-badge:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
}

.news-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(796px, 100vw);
  height: 100dvh;
  padding: 18px;
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(102%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.news-panel.is-open {
  transform: translateX(0);
}

.news-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(7, 7, 9, 0.92);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.news-panel.is-detail .news-shell {
  grid-template-rows: auto minmax(0, 1fr);
}

.news-panel-head {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.news-back,
.news-close {
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.news-back {
  visibility: hidden;
  text-align: left;
}

.news-panel.is-detail .news-back {
  visibility: visible;
}

.news-close {
  text-align: right;
}

.news-back:hover,
.news-close:hover {
  color: #fff;
  transform: translateY(-1px);
}

.news-list,
.news-detail {
  min-height: 0;
  padding: 18px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.news-panel.is-detail .news-list {
  display: none;
}

.news-panel.is-detail .news-pagination {
  display: none;
}

.news-panel:not(.is-detail) .news-detail {
  display: none;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 9, 0.96);
}

.news-pagination[hidden] {
  display: none;
}

.news-pagination span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.news-pagination button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.news-pagination button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.news-pagination button:disabled {
  cursor: default;
  opacity: 0.34;
}

.news-pagination svg {
  width: 18px;
  height: 18px;
}

.news-pagination path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.news-state {
  padding: 32px 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-align: center;
}

.news-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  padding: 14px;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.news-card + .news-card {
  margin-top: 12px;
}

.news-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.065);
  transform: translateX(-2px);
}

.news-card-image {
  width: 132px;
  height: 86px;
  object-fit: cover;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
}

.news-card-placeholder {
  display: grid;
  place-items: center;
  width: 132px;
  height: 86px;
  color: rgba(255, 255, 255, 0.38);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.news-card-text {
  display: -webkit-box;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.news-detail {
  text-align: left;
}

.news-detail-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-detail-title h3 {
  margin: 0;
  font-size: clamp(21px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.news-author {
  display: grid;
  grid-template-columns: 34px auto;
  gap: 10px;
  align-items: center;
  min-width: 180px;
}

.news-author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.news-author-name,
.news-author-date {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.news-author-date {
  color: rgba(255, 255, 255, 0.42);
}

.news-content {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.news-content strong {
  color: #fff;
  font-weight: 600;
}

.news-content a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 42%);
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.news-carousel button {
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: zoom-in;
}

.news-carousel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  overflow: hidden;
}

.image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer img {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0) scale(var(--zoom, 1));
  transition: transform 120ms ease;
}

.image-viewer img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.image-viewer-close {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 1;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.audio-control {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.55));
  transition: opacity 180ms ease, transform 180ms ease;
}

.audio-toggle:hover {
  opacity: 0.78;
  transform: scale(1.04);
}

.audio-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.icon {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.icon path:not(:first-child) {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.audio-toggle .icon-off,
.audio-toggle.is-off .icon-on {
  display: none;
}

.audio-toggle.is-off .icon-off {
  display: block;
}

.volume-control {
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition: width 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.audio-control.is-open .volume-control {
  width: 108px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.volume-control input {
  width: 96px;
  accent-color: #fff;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes dotGridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-1 * var(--grid-gap)), calc(-1 * var(--grid-gap)), 0);
  }
}

@keyframes mistWind {
  from {
    transform: translate3d(-8vw, 0, 0);
  }

  to {
    transform: translate3d(12vw, 0, 0);
  }
}

@keyframes mistFloat {
  from {
    margin-top: -6px;
  }

  to {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  body {
    min-height: 100dvh;
    padding: 78px 14px 24px;
  }

  .hero {
    width: 100%;
  }

  .image-wrap {
    width: min(100%, 430px);
    margin-bottom: clamp(28px, 5vh, 40px);
  }

  img {
    width: min(92vw, 390px);
    max-height: min(56dvh, 430px);
  }

  h1 {
    font-size: clamp(30px, 12vw, 48px);
    line-height: 1.02;
    letter-spacing: 0.035em;
  }

  .audio-control {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    gap: 8px;
  }

  .news-badge {
    padding: 6px 0;
    font-size: 22px;
    letter-spacing: 0.05em;
  }

  .top-actions {
    top: max(17px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    gap: 12px;
  }

  .discord-link,
  .discord-link img {
    width: 36px;
    height: 36px;
  }

  .news-panel {
    width: 100vw;
    padding: 10px;
  }

  .news-panel-head {
    grid-template-columns: 58px 1fr 58px;
    gap: 8px;
    padding: 14px 12px;
  }

  .news-panel-head h2 {
    font-size: 15px;
  }

  .news-back,
  .news-close {
    font-size: 10px;
  }

  .news-list,
  .news-detail {
    padding: 12px;
  }

  .news-pagination {
    padding: 12px;
  }

  .news-pagination button {
    width: 36px;
    height: 32px;
  }

  .news-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
  }

  .news-card-image,
  .news-card-placeholder {
    width: 94px;
    height: 70px;
  }

  .news-card-title {
    font-size: 14px;
  }

  .news-card-text {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .news-detail-title {
    grid-template-columns: 1fr;
  }

  .news-author {
    min-width: 0;
  }

  .news-content {
    font-size: 14px;
  }

  .news-carousel {
    grid-auto-columns: minmax(170px, 78%);
  }

  .image-viewer {
    padding: 20px;
  }

  .audio-toggle {
    width: 36px;
    height: 36px;
  }

  .icon {
    width: 21px;
    height: 21px;
  }

  .volume-control input {
    width: 76px;
  }

  .audio-control.is-open .volume-control {
    width: 84px;
  }
}

@media (max-width: 380px) {
  body {
    padding-top: 70px;
  }

  img {
    width: min(90vw, 340px);
    max-height: 52dvh;
  }

  h1 {
    font-size: clamp(28px, 11.5vw, 42px);
  }

  .news-badge {
    font-size: 18px;
  }

  .volume-control input {
    width: 68px;
  }

  .audio-control.is-open .volume-control {
    width: 76px;
  }
}

@media (max-height: 620px) {
  img {
    max-height: 48dvh;
  }

  .image-wrap {
    margin-bottom: 12px;
  }
}

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