/* VESPER COMMUNITY — Main menu page ( fullscreen video menu ) */

/* Norwester ships with the plugin — drop norwester.woff2 ( or .otf ) into
   this assets folder and the menu picks it up; until then every rule below
   falls back to Oswald, which the theme already loads. */
@font-face {
  font-family: "Norwester";
  src: url("norwester.woff2") format("woff2"),
       url("norwester.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.vmp {
  position: relative;
  z-index: 50;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0C0D0F;
  color: #EDEBE6;
  font-family: "Norwester", "Oswald", sans-serif;
  isolation: isolate;
  -webkit-tap-highlight-color: rgba(241, 0, 0, .25);
}

/* theme / builder styles must never paint a box behind the menu bars */
.vmp__banner,
.vmp__strip {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

/* --- the menu is a closed island ------------------------------------------
   The host stack ( theme bundle, WPBakery, WCFM, PeepSo, revslider ) loads
   AFTER this sheet and ships aggressive button / svg resets — some with
   !important at element level ( e.g. input[type=submit], button{background:
   #fff!important} ), which beat plain .vmp__btn / .vmp__lic pins. Every
   surface the menu draws is therefore pinned at .vmp__ui depth — class+class
   beats any element-level host rule, important or not. Components then
   re-assert their own look one level deeper. */
.vmp__ui .vmp__btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #EDEBE6 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
}

.vmp__ui .vmp__btn:hover,
.vmp__ui .vmp__btn:focus-visible {
  color: #F10000 !important;
}

.vmp__ui .vmp__btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(241, 0, 0, .75) !important;
}

.vmp__ui .vmp__ico,
.vmp__ui .vmp__lbl {
  background: transparent !important;
}

.vmp .vmp__ui svg {
  background: none !important;
}

/* Icon paint: host rules like path{fill:#fff} beat the inherited fill:none
   these stroke icons rely on — re-assert every declared value. */
.vmp__ui svg[fill="none"],
.vmp__ui svg [fill="none"],
.vmp__ui svg[fill="none"] :not([fill]) {
  fill: none !important;
}

.vmp__ui svg[stroke="currentColor"],
.vmp__ui svg [stroke="currentColor"],
.vmp__ui svg[stroke="currentColor"] :not([stroke]) {
  stroke: currentColor !important;
}

.vmp__ui svg [fill="currentColor"],
.vmp__ui svg g[fill="currentColor"],
.vmp__ui svg path[fill="currentColor"],
.vmp__ui svg g[fill="currentColor"] :not([fill]) {
  fill: currentColor !important;
}

.vmp__ui svg path[fill="#F10000"],
.vmp__ui svg rect[fill="#F10000"] {
  fill: #F10000 !important;
}

.vmp__ui svg path[fill="#ffffff"],
.vmp__ui svg path[fill="#fff"],
.vmp__ui svg text[fill="#ffffff"],
.vmp__ui svg text[fill="#fff"] {
  fill: #fff !important;
}

.vmp__ui svg text[fill="#0C0D0F"] {
  fill: #0C0D0F !important;
}

.vmp__ui svg path[fill="#EDEBE6"] {
  fill: #EDEBE6 !important;
}

/* Outlined chips keep their thin light border even if the host resets
   button borders with !important. */
.vmp__ui .vmp__lic {
  border: 1px solid rgba(237, 235, 230, .55) !important;
  border-radius: 6px !important;
}

.vmp__ui .vmp__lic:hover,
.vmp__ui .vmp__lic:focus-visible {
  border-color: #F10000 !important;
}

/* Components that paint their own fill / text colour re-assert it above
   the island defaults. */
.vmp__ui .vmp__hexseg,
.vmp__ui .vmp__hexseg:hover,
.vmp__ui .vmp__hexseg:focus-visible {
  color: #0C0D0F !important;
}

.vmp__ui .vmp__hexseg:hover,
.vmp__ui .vmp__hexseg:focus-visible {
  background: rgba(0, 0, 0, .16) !important;
}

.vmp__ui .vmp__seg {
  border: 2px solid #F10000 !important;
  background: rgba(7, 8, 10, .58) !important;
  color: #EDEBE6 !important;
}

.vmp__ui .vmp__seg:hover,
.vmp__ui .vmp__seg:focus-visible {
  background: rgba(241, 0, 0, .22) !important;
  color: #fff !important;
}

.vmp__ui .vmp__seg--cap {
  background: #F10000 !important;
  color: #fff !important;
}

.vmp__ui .vmp__seg--cap:hover,
.vmp__ui .vmp__seg--cap:focus-visible {
  background: #fff !important;
  border-color: #fff !important;
  color: #F10000 !important;
}

.vmp__ui .vmp__seg--dia,
.vmp__ui .vmp__seg--dia:hover,
.vmp__ui .vmp__seg--dia:focus-visible {
  background: transparent !important;
  border: 0 !important;
}

/* ------------------------------------------------------------- background */

.vmp__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0C0D0F;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.vmp__video,
.vmp__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* the poster layer shows first; the video fades in over it when ready */
.vmp__video {
  opacity: 0;
  transition: opacity .45s ease;
}

.vmp__video.is-on { opacity: 1; }

.vmp__poster {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vmp__poster--fallback {
  background-image: repeating-linear-gradient(135deg, #111317 0 16px, #0C0D0F 16px 32px);
}

.vmp__veil {
  position: absolute;
  inset: 0;
  background: #050507;
}

/* --------------------------------------------------------------- ui layer */

.vmp__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 16px calc(34px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.vmp__ui a,
.vmp__ui button,
.vmp__ui nav { pointer-events: auto; }

/* ------------------------------------------------------------------- top */

.vmp__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vmp__left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vmp__center {
  justify-self: center;
  min-width: 0;
}

.vmp__tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vmp__vlogo {
  display: none;
  line-height: 0;
  color: #F10000;
}

/* ------------------------------------------------------------- buttons */

.vmp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #EDEBE6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.vmp__btn:hover,
.vmp__btn:focus-visible { color: #F10000; }

.vmp__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(241, 0, 0, .75);
}

.vmp__btn.is-soon { opacity: .78; }
.vmp__btn.is-soon:hover,
.vmp__btn.is-soon:focus-visible { opacity: 1; }

.vmp__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.vmp__btn:hover .vmp__ico,
.vmp__btn:focus-visible .vmp__ico { color: #F10000; }

/* icon chips : 40×36 outlined tiles over the video ( license, team, gear ) */

.vmp__lic {
  width: 40px;
  height: 36px;
  border: 1px solid rgba(237, 235, 230, .55);
  border-radius: 6px;
}

.vmp__lic svg {
  display: block;
}

.vmp__lic:hover,
.vmp__lic:focus-visible {
  border-color: #F10000;
  color: #F10000;
}

.vmp__sos { display: inline-flex; }

.vmp__sos svg {
  display: block;
  width: 38px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .55));
}

.vmp__sos:hover .vmp__ico,
.vmp__sos:focus-visible .vmp__ico { transform: translateY(-1px); }

/* ----------------------------------------------- mobile hexagon banner */

.vmp__banner { display: block; }
.vmp__strip { display: none; }

.vmp__hex {
  display: flex;
  align-items: stretch;
  width: min(54vw, 330px);
  max-width: 100%;
  background: #F10000;
  clip-path: polygon(0 50%, 5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%);
}

.vmp__hexseg {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 10px;
  color: #0C0D0F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}

.vmp__hexseg:hover,
.vmp__hexseg:focus-visible {
  color: #0C0D0F;
  background: rgba(0, 0, 0, .16);
  box-shadow: none;
}

/* --------------------------------------------- desktop segmented strip */

@media (min-width: 900px) {

  .vmp__banner { display: none; }

  .vmp__strip {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .vmp__vlogo { display: inline-flex; }

  .vmp__license--m,
  .vmp__team--m { display: none; }
}

@media (max-width: 899.98px) {
  .vmp__license--d,
  .vmp__team--d { display: none; }
}

.vmp__seg {
  height: 36px;
  min-width: 104px;
  padding: 0 18px;
  border: 2px solid #F10000;
  background: rgba(7, 8, 10, .58);
  color: #EDEBE6;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.vmp__seg:hover,
.vmp__seg:focus-visible {
  position: relative;
  z-index: 1;
  background: rgba(241, 0, 0, .22);
  color: #fff;
}

.vmp__seg--cap {
  background: #F10000;
  color: #fff;
  text-shadow: none;
}

.vmp__seg--cap:hover,
.vmp__seg--cap:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #F10000;
}

/* the chat button is the plain diamond between CREW and CLUB — no label */
.vmp__seg--dia {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  align-self: center;
}

.vmp__chatdia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #F10000;
  color: #fff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .7));
  transition: background-color .18s ease, transform .18s ease;
}

.vmp__seg--dia:hover .vmp__chatdia,
.vmp__seg--dia:focus-visible .vmp__chatdia {
  background: #fff;
  color: #F10000;
  transform: scale(1.08);
}

/* --------------------------------------------------------------- bottom */

/* one centred group — the generous outer margins are part of the layout */
.vmp__bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 54px;
}

.vmp__side { display: flex; min-width: 0; }
.vmp__side--l { justify-content: start; }
.vmp__side--r { justify-content: end; }

/* the diamond's foot lines up with the bottom of the side icons —
   just above their text labels */
.vmp__hub { line-height: 0; margin-bottom: 25px; }

.vmp__tab {
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .16em;
}

.vmp__hublink { line-height: 0; }

.vmp__hublink .vmp__ico {
  transition: transform .2s ease;
}

.vmp__hublink:hover .vmp__ico,
.vmp__hublink:focus-visible .vmp__ico { transform: translateY(-3px); }

.vmp__dia { display: block; width: 72px; height: auto; }

@media (min-width: 900px) {
  /* sides are gone, so the row itself centres the diamond */
  .vmp__side { display: none; }
  .vmp__hub { margin-bottom: 0; }
  .vmp__dia { width: 68px; }
}

/* ---------------------------------------------------------------- toast */

.vmp__toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  padding: 10px 20px;
  background: #F10000;
  color: #fff;
  font-family: "Norwester", "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -38%);
  transition: opacity .2s ease, transform .2s ease;
}

.vmp__toast.is-on {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* -------------------------------------------------------- small phones */

@media (max-width: 380px) {
  .vmp__ui { padding: 14px 10px calc(26px + env(safe-area-inset-bottom, 0px)); gap: 18px; }
  .vmp__top { gap: 6px; }
  .vmp__left { gap: 6px; }
  .vmp__lic { width: 36px; height: 34px; }
  .vmp__lic svg { width: 22px; height: auto; }
  .vmp__sos svg { width: 32px; }
  .vmp__tools { gap: 6px; }
  .vmp__hexseg { min-width: 0; padding: 9px 6px; font-size: 10.5px; letter-spacing: .1em; }
  .vmp__bottom { gap: 34px; }
  .vmp__hub { margin-bottom: 18px; }
  .vmp__dia { width: 64px; }
  .vmp__tab { font-size: 10.5px; }
}

/* ===================== mobile pixel stage ( Canva design ) ================
   Two edge-anchored groups ( top row 25px from the top, bottom row 25px from
   the bottom ) hold the exact 1080-wide Canva geometry on a 1080×1914 canvas;
   mainpage.js scales both by one factor so the offsets stay put on any phone.
   Phones only — desktop keeps the segmented strip layout. */
.vmp__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  visibility: hidden;
}

.vmp__stage.is-ready {
  visibility: visible;
  animation: vmpStageIn .3s ease both;
}

@keyframes vmpStageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 899.98px) {
  .vmp__ui { display: none; }
  .vmp__stage { display: block; }
}

.vmp__stage .vmp__edge {
  position: absolute;
  left: 50%;
  width: 1080px;
  pointer-events: none;
  transform-origin: 0 0;
}

.vmp__stage .vmp__edge--top { top: 25px; height: 94px; }
.vmp__stage .vmp__edge--bottom { bottom: 25px; height: 252px; transform-origin: 0 100%; }

.vmp__stage .vmp__inner {
  position: absolute;
  left: 0;
  width: 1080px;
  height: 1914px;
}

.vmp__stage .vmp__edge--top .vmp__inner { top: -49px; }
.vmp__stage .vmp__edge--bottom .vmp__inner { top: -1631px; }

.vmp__stage .vmp__edge a,
.vmp__stage .vmp__edge button { pointer-events: auto; }

.vmp__stage .vmp__abs {
  position: absolute !important;
  display: block !important;
}

.vmp__stage svg.vmp__abs { overflow: visible; }

.vmp__stage a.vmp__abs,
.vmp__stage button.vmp__abs {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  line-height: 0 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.vmp__stage a.vmp__abs:focus-visible,
.vmp__stage button.vmp__abs:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* quick, very subtle press feedback — the icon and its word move together */
.vmp__stage .vmp__abs {
  transition: transform .16s cubic-bezier(.2, .7, .3, 1), opacity .16s ease;
}

.vmp__stage .vmp__abs:active {
  transform: scale(.92);
  opacity: .85;
}

@media (hover: hover) and (pointer: fine) {
  .vmp__stage .vmp__abs:hover { transform: scale(1.05); }
  .vmp__stage .vmp__abs:active { transform: scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
  .vmp__stage.is-ready { animation: none; }
  .vmp__stage .vmp__abs { transition: none; }
  .vmp__stage .vmp__abs:active { transform: none; opacity: 1; }
}

.vmp__stage .vmp__icon { opacity: .85; }

/* Icon paint is declared with SVG presentation attributes, which any
   stylesheet may override — pin the design's values so the host stack
   ( theme / WPBakery / WCFM / PeepSo resets ) cannot recolour the icons. */
.vmp__stage svg [fill="#fff"],
.vmp__stage svg[fill="#fff"] { fill: #fff !important; }
.vmp__stage svg [fill="#000"] { fill: #000 !important; }
.vmp__stage svg [fill="#b6b6b6"] { fill: #b6b6b6 !important; }
.vmp__stage svg [fill="#f10000"] { fill: #f10000 !important; }
.vmp__stage svg[fill="none"],
.vmp__stage svg [fill="none"] { fill: none !important; }
.vmp__stage svg [stroke="#fff"] { stroke: #fff !important; }
.vmp__stage svg [stroke="#000"] { stroke: #000 !important; }

.vmp__stage .vmp__word {
  position: absolute !important;
  font-family: "Norwester", "Oswald", sans-serif !important;
  font-weight: 400;
  line-height: 1 !important;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0;
  pointer-events: none;
  transform: translateX(-50%) !important;
}

.vmp__stage .vmp__navword { font-size: 42.3px !important; color: #000 !important; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.vmp__stage .vmp__tablabel { font-size: 30px !important; color: #fff !important; text-shadow: 0 0 3px rgba(0, 0, 0, .55); }
.vmp__stage .vmp__hubword { font-size: 62.6px !important; color: #000 !important; }

/* ------------------------------------------- fullscreen takeover ( page ) */

/* The menu owns the screen: it is pinned to the viewport so it always fills
   it, whatever container or column the shortcode ends up sitting in.
   NOTE: rules mentioning :has() are kept SEPARATE from the plain ones — one
   unsupported selector in a list would drop the whole rule. */
body.vmp-page { overflow: hidden; }

body.vmp-page .vmp {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: auto;
  min-height: 0;
  margin-left: 0;
}

body:has(.vmp) .vmp {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: auto;
  min-height: 0;
  margin-left: 0;
}

/* Anything else on the page ( the stream, page titles, extra rows ) steps
   aside — the menu is the only content of the main page. */
body.vmp-page .site-main > *:not(.vmp):not(:has(.vmp)),
body.vmp-page .entry-content > *:not(.vmp):not(:has(.vmp)),
body.vmp-page .ct-content-builder > *:not(.vmp):not(:has(.vmp)),
body.vmp-page .ct-container > *:not(.vmp):not(:has(.vmp)) {
  display: none !important;
}

body.vmp-page .site-main,
body.vmp-page .entry-content,
body.vmp-page .ct-content-builder,
body.vmp-page .ct-container {
  padding-block: 0 !important;
  margin-block: 0 !important;
}

body.vmp-page #masthead,
body.vmp-page #main-header,
body.vmp-page .site-header,
body.vmp-page .ct-header,
body.vmp-page .main-header,
body.vmp-page #colophon,
body.vmp-page .site-footer,
body.vmp-page .ct-footer,
body.vmp-page .main-footer,
body.vmp-page .vchat--docked {
  display: none !important;
}

/* Same takeover for browsers without body_class detection. */
body:has(.vmp) #masthead,
body:has(.vmp) #main-header,
body:has(.vmp) .site-header,
body:has(.vmp) .ct-header,
body:has(.vmp) .main-header,
body:has(.vmp) #colophon,
body:has(.vmp) .site-footer,
body:has(.vmp) .ct-footer,
body:has(.vmp) .main-footer,
body:has(.vmp) .vchat--docked {
  display: none !important;
}

/* Keep the top row clear of the WordPress admin bar. */
html.admin-bar .vmp__ui,
body.admin-bar .vmp__ui { padding-top: 56px; }

@media screen and (max-width: 782px) {
  html.admin-bar .vmp__ui,
  body.admin-bar .vmp__ui { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .vmp__btn,
  .vmp__chatdia,
  .vmp__hublink .vmp__ico,
  .vmp__video,
  .vmp__toast { transition: none; }
}
