@font-face {
  font-family: Jost;
  src: url("/fonts/jost.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --u: 1px;
  --label: Jost, "Segoe UI", sans-serif;
  --cyan: #6fc8ff;
  --blue: #2a8cff;
  --header-height: 77px;
  color-scheme: dark;
}
.top a { text-decoration: none; }
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  isolation: isolate;
  animation: drop .8s .1s cubic-bezier(.2,.8,.2,1) backwards;
  transition: background-color .4s, box-shadow .4s;
}
.top::after {
  content: "";
  position: absolute;
  inset: 0 0 -26px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#050913f5, #050913d9 73%, #05091300);
  transition: opacity .4s;
}
.top.solid {
  background: #060b16e8;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px #0009;
}
.top.solid::after { opacity: 0; }
.top::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #8a6438 22%, #f1d9ae 50%, #8a6438 78%, transparent);
  opacity: .6;
}
.top-in {
  width: min(100% - 80px, 1240px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.5vw, 69px);
}
.brand { display: block; flex: 0 0 146px; }
.brand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 8px #d6854b44); }
.menu {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  min-width: 0;
}
.menu-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.15vw, 34px);
  position: relative;
  padding: 8px 0 9px;
}
.menu-links > a {
  color: #e7edf7;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .25s, text-shadow .25s;
}
.menu-links > a:is(:hover, :focus-visible, [aria-current]) { color: #fff; text-shadow: 0 0 12px #6fc8ffaa; }
.ind {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--indicator-width, 40px);
  height: 2px;
  border-radius: 2px;
  transform: translateX(var(--indicator-offset, 0px));
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), var(--cyan), transparent);
  box-shadow: 0 0 9px 1px #2a8cff88;
  transition: transform .45s cubic-bezier(.3,1.3,.5,1), width .45s;
  pointer-events: none;
}
.menu-links:not(:has([aria-current])):not(:hover):not(:focus-within) .ind { opacity: 0; }
.top .nav-auth > .hex[aria-current] { filter: brightness(1.1) drop-shadow(0 0 12px #2a8cff80); }
.acts, .top .nav-auth { display: flex; align-items: center; gap: 15px; }
.top .nav-auth > .hex { color: #edf3fb; padding: 0; text-decoration: none; }
.top .hex { line-height: 1; }
.acts .hex { --h: 39px; --c: calc(var(--h) * .42); font-size: 13px; min-width: 108px; }
.acts .hex > span { padding-inline: calc(var(--c) + .36em); }
.acts .hex.gold { min-width: 125px; }
.hex.steel:is(:hover, :focus-visible) { filter: brightness(1.18) drop-shadow(0 0 14px #bcd3f0aa); }
.hex.blue:is(:hover, :focus-visible) { filter: brightness(1.18) drop-shadow(0 0 17px #2a8cff); }
.hex.gold:is(:hover, :focus-visible) { filter: brightness(1.18) drop-shadow(0 0 16px #e8c27ab0); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.burger i { display: block; width: 22px; height: 2px; margin: 5px 0; background: #dfe9f7; }
@media (max-width: 1175px) {
  .top-in { width: calc(100% - 40px); }
  .menu-links { gap: 18px; }
  .menu-links > a { font-size: 13px; }
  .acts, .top .nav-auth { gap: 10px; }
  .acts .hex { font-size: 12px; min-width: 91px; }
  .acts .hex.gold { min-width: 104px; }
}
@media (max-width: 1020px) {
  :root { --header-height: 65px; }
  .brand { flex-basis: 122px; }
  .burger { display: block; }
  .menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 22px 24px 25px;
    background: #080f1bee;
    box-shadow: 0 12px 28px #0009;
    backdrop-filter: blur(14px);
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
  }
  .menu.open, .menu-links { display: grid; }
  .menu-links { gap: 10px; padding: 0; }
  .menu-links a { min-height: 37px; display: flex; align-items: center; }
  .ind { display: none; }
  .acts { margin-top: 15px; flex-wrap: wrap; gap: 14px; }
  .top .nav-auth { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* hexagon buttons: metal edge, inner hairline, gems on the tips */
.hex{--c:calc(var(--h) * .5);--h:max(40px,calc(var(--u) * 42));--shape:polygon(var(--c) 0,calc(100% - var(--c)) 0,100% 50%,calc(100% - var(--c)) 100%,var(--c) 100%,0 50%);--shape-in:polygon(calc(var(--c) - 4px) 0,calc(100% - var(--c) + 4px) 0,100% 50%,calc(100% - var(--c) + 4px) 100%,calc(var(--c) - 4px) 100%,0 50%);position:relative;display:inline-grid;place-items:stretch;height:var(--h);isolation:isolate;font-family:var(--label);font-weight:500;text-transform:uppercase;letter-spacing:.12em;transition:filter .35s,transform .25s cubic-bezier(.3,1.5,.5,1)}
.hex::before,.hex::after{content:"";position:absolute;clip-path:var(--shape)}
.hex::before{inset:0;z-index:-2;background:var(--edge);background-size:220% 100%}
.hex:is(:hover,:focus-visible)::before,.explore::before{animation:edgeflow 5s linear infinite}
.hex::after{inset:1.5px;z-index:-1;background:var(--fill)}
.hx{position:absolute;inset:0 -7px;z-index:0;pointer-events:none;background:var(--gem) left center/11px 11px no-repeat,var(--gem) right center/11px 11px no-repeat}
.hx::before,.hx::after{content:"";position:absolute;top:4px;bottom:4px;left:11px;right:11px;clip-path:var(--shape-in)}
.hx::before{background:var(--hair)}
.hx::after{top:5px;bottom:5px;left:12px;right:12px;background:var(--fill);clip-path:var(--shape-in)}
.hex>span{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:1em;padding:0 calc(var(--c) + .8em);white-space:nowrap;overflow:hidden;clip-path:var(--shape)}
.hex>span::after{content:"";position:absolute;top:-60%;bottom:-60%;left:-40%;width:28%;background:linear-gradient(100deg,transparent,#ffffff77,transparent);transform:skewX(-20deg);opacity:0}
.hex:is(:hover,:focus-visible)>span::after{animation:sheen .8s ease}
.hex:is(:hover,:focus-visible){transform:translateY(-1px)}
.hex:active{transform:translateY(1px) scale(.98)}
.hex.steel{--gem:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0l6 6-6 6-6-6z' fill='%23dfe9f7'/%3E%3C/svg%3E");--edge:linear-gradient(100deg,#5c6f8a,#eef4fc 25%,#7f93ad 50%,#eef4fc 75%,#5c6f8a);--hair:linear-gradient(100deg,#5c6f8a88,#c3d2e6aa,#5c6f8a88);--fill:linear-gradient(#141c2c,#090d17 55%,#10172a);color:#eef4fc;filter:drop-shadow(0 0 5px #9fb8d844)}
.hex.steel:hover{filter:brightness(1.18) drop-shadow(0 0 14px #bcd3f0aa)}
.hex.gold{--gem:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0l6 6-6 6-6-6z' fill='%23ffe6ad'/%3E%3C/svg%3E");--edge:linear-gradient(100deg,#8a6426,#ffeabb 25%,#b98c42 50%,#ffeabb 75%,#8a6426);--hair:linear-gradient(100deg,#7a5a24aa,#e8c27a99,#7a5a24aa);--fill:linear-gradient(#1a140e,#0a0709 55%,#120d08);color:#f8e0a6;text-shadow:0 0 12px #e8c27a66;filter:drop-shadow(0 0 6px #e8c27a40);font-size:max(12px,calc(var(--u) * 15))}
.hex.blue{--gem:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0l6 6-6 6-6-6z' fill='%239fe0ff'/%3E%3C/svg%3E");--edge:linear-gradient(100deg,#1f74d6,#bdeaff 25%,#2f92f2 50%,#bdeaff 75%,#1f74d6);--hair:linear-gradient(100deg,#1f74d688,#6fc8ffaa,#1f74d688);--fill:linear-gradient(#0a2243,#050d1e 55%,#071730);color:#f1f8ff;text-shadow:0 0 12px #6fc8ff88;filter:drop-shadow(0 0 9px #2a8cffbb)}
.hex.gold.solid{--fill:linear-gradient(#ffe9b5,#d7a653 48%,#a9772e 52%,#e2b768);--hair:linear-gradient(100deg,#6b4a18,#fff3cf,#6b4a18);color:#2a1a06;text-shadow:0 1px 0 #ffefc466}

@keyframes edgeflow{to{background-position:-220% 0}}
@keyframes drop{from{opacity:0;transform:translateY(-24px)}}
@keyframes sheen{from{left:-40%;opacity:1}to{left:115%;opacity:1}}
