:root {
  --accent-canteen: #c4a35a;
  --accent-mess: #8fad6e;
  --accent-battalion: #7a93a8;
  --font-brand: "Orbitron", "Tajawal", sans-serif;
  --font-body: "Tajawal", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage__wash,
.stage__grid,
.stage__beam,
.stage__insignia {
  position: absolute;
}

.stage__wash { inset: 0; }
.stage__grid { inset: -10%; }
.stage__beam { width: 120%; height: 55%; top: -8%; left: -10%; }
.stage__insignia { border-radius: 50%; }

.gate {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 3.5vw, 2rem) 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.mark { text-align: center; }

.mark__brand {
  font-family: var(--font-brand);
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.02em;
  direction: ltr;
}

.mark__line {
  position: relative;
  display: inline-block;
}

.mark__status {
  margin-top: 0.75rem;
  font-family: var(--font-brand);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.45;
}

.portal {
  --accent: var(--accent-canteen);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.portal--canteen { --accent: var(--accent-canteen); }
.portal--mess { --accent: var(--accent-mess); }
.portal--battalion { --accent: var(--accent-battalion); }

.portal__glyph {
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
}

.portal__glyph svg { fill: none; }
.portal__glyph .k697-icon-img,
.portal__glyph img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.portal--locked {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
}

.k697-hub-lock {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 auto 18px;
  max-width: 720px;
  padding: 14px 18px;
  border: 1px solid rgba(252, 165, 165, 0.35);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
}

.mark__logo {
  display: block;
  max-height: 72px;
  max-width: 180px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.portal__copy {
  display: flex;
  flex-direction: column;
}

.portal__go {
  display: grid;
  place-items: center;
}

.portal__go svg { fill: none; }

.colophon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1.35rem;
  font-family: var(--font-brand);
  font-weight: 600;
}

.colophon__sep {
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
}

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