.vest-brand,
.vest-network,
#vest-entry,
#vest-toast,
#vest-token-dialog,
#vest-about-dialog {
  font-family: 'Space Grotesk', sans-serif;
}

.vest-brand {
  position: fixed;
  top: 16px;
  left: 80px;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  color: #fff;
  background: #fff9ef;
  border: 1px solid #ffffff40;
  border-radius: 30px;
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition: opacity .2s, color .35s;
}
.vest-brand strong { font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.vest-brand img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.vest-brand:hover { opacity: .7; }
body.webgl-loader-overlay .vest-brand { color: #fff; }
body.frame-open .vest-brand { top: 26px; left: 90px; }
body.frame-open .vest-network { top: 26px; right: 34px; }

.vest-network {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 140;
  display: flex;
  gap: 8px;
}
.vest-network button {
  height: 40px;
  padding: 0 17px;
  border: 1px solid #ffffff40;
  border-radius: 40px;
  color: #fff;
  background: #fff9ef;
  backdrop-filter: blur(15px);
  font: 500 13px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.vest-network button:hover:not(:disabled) { background: #edf2ff; border-color: #3155ed99; }
.vest-network button:active:not(:disabled) { transform: translateY(1px); }
.vest-network #vest-x { padding: 0 16px; font-size: 20px; }
.vest-network #vest-ca { box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 200px; padding: 0 14px; text-align: left; background: #fff9ef; }
.vest-ca-label { padding-right: 10px; border-right: 1px solid #ffffff29; color: #62709a; font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.vest-ca-value { overflow: hidden; color: #203364; font: 11px/1.2 'PP Supply Mono', monospace; white-space: nowrap; text-overflow: ellipsis; }
.vest-ca-icon { width: 16px; height: 16px; color: #536995; }
.vest-ca-icon .vest-ca-check { display: none; }
#vest-ca.is-copied .vest-ca-sheets { display: none; }
#vest-ca.is-copied .vest-ca-check { display: initial; }
#vest-ca.is-copied .vest-ca-value, #vest-ca.is-copied .vest-ca-icon { color: #3155ed; }
.vest-network #vest-ca:disabled { opacity: 1; cursor: default; }
#vest-ca:disabled .vest-ca-value { color: #62709a; font-family: 'Space Grotesk', sans-serif; }
#vest-ca:disabled .vest-ca-icon { opacity: .3; }
.hud-right-group { right: 294px !important; }
.hud-left-group { left: 24px !important; }
.hud-xp,
.hud-menu { display: none !important; }
.eg-ic-logo img { object-fit: contain !important; }
.eg-track .eg-brand-mark { position: absolute; display: grid; place-items: center; border-radius: 50%; background: #fff9ef; border: 1px solid #ffffffa8; box-sizing: border-box; box-shadow: inset 0 1px 0 #fff9; user-select: none; }
.eg-track .eg-brand-mark .eg-ic-logo { display: grid; place-items: center; width: 100%; height: 100%; }
.eg-track .eg-brand-mark img { width: 32px !important; height: 32px !important; border-radius: 0 !important; }

:is(.vest-brand, .vest-network button, #vest-entry, .scroll-ruler-nav-btn, .s5-pad-btn):focus-visible,
:is(#vest-token-dialog, #vest-about-dialog) :is(button, input, a):focus-visible {
  outline: 2px solid #3155ed;
  outline-offset: 4px;
}
.scroll-ruler:focus-within { -webkit-mask-image: none; mask-image: none; }
.scroll-ruler:focus-within :is(.scroll-ruler-track, .scroll-ruler-indicator) { opacity: 0; pointer-events: none; }
.scroll-ruler:focus-within .scroll-ruler-nav { opacity: 1; pointer-events: auto; }

#vest-toast {
  position: fixed;
  bottom: 160px;
  left: 50%;
  z-index: 10000;
  box-sizing: border-box;
  width: max-content;
  max-width: min(440px, calc(100vw - 40px));
  padding: 16px 22px;
  color: #eaf0ff;
  background: #fff9ef;
  border: 1px solid #3155ed55;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 32px #3155ed18;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .25s, transform .25s;
}
#vest-toast.visible { opacity: 1; transform: translate(-50%, 0); }
:is(#vest-token-dialog, #vest-about-dialog) #vest-toast { bottom: 24px; }

#vest-entry {
  position: fixed;
  top: 61%;
  left: 50%;
  z-index: 80;
  padding: 13px 25px;
  color: #fff;
  background: #ffffff20;
  backdrop-filter: blur(8px);
  border: 1px solid #3155ed70;
  border-radius: 30px;
  font-size: 13px;
  cursor: pointer;
  transform: translateX(-50%);
  transition: background .2s, border-color .2s;
}
#vest-entry:hover { background: #ffffff35; border-color: #e8efff; }
#vest-entry[hidden] { display: none; }

:is(#vest-token-dialog, #vest-about-dialog) {
  box-sizing: border-box;
  width: min(490px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 36px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #fff9ef;
  background: #172957;
  border: 1px solid #7e91b7;
  border-radius: 28px;
  box-shadow: 0 24px 90px #0005;
  font-size: 14px;
  line-height: 1.65;
}
:is(#vest-token-dialog, #vest-about-dialog)::backdrop {
  background: #182a5680;
  backdrop-filter: blur(10px);
  cursor: default !important;
}
/* The original custom cursor lives below native dialogs in the top layer. */
body:has(dialog[open]) [data-custom-cursor] { visibility: hidden; }
:is(#vest-token-dialog, #vest-about-dialog),
:is(#vest-token-dialog, #vest-about-dialog) * { cursor: default !important; }
:is(#vest-token-dialog, #vest-about-dialog) :is(button, a) { cursor: pointer !important; }
:is(#vest-token-dialog, #vest-about-dialog) button:disabled { cursor: default !important; }
:is(#vest-token-dialog, #vest-about-dialog) input { cursor: text !important; }
:is(#vest-token-dialog, #vest-about-dialog) h2 {
  margin: 15px 0;
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
}
:is(#vest-token-dialog, #vest-about-dialog) p { margin: 12px 0; }
:is(#vest-token-dialog, #vest-about-dialog) small { display: block; margin-top: 20px; color: #7b89ad; font-size: 11px; line-height: 1.65; }
#vest-about-dialog h2 em { color: #3155ed; font-style: normal; }
:is(#vest-token-dialog, #vest-about-dialog) button {
  padding: 12px 18px;
  color: #172957;
  background: #3155ed;
  border: 0;
  border-radius: 25px;
  font: 500 13px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
:is(#vest-token-dialog, #vest-about-dialog) button:hover:not(:disabled) { background: #e3ebff; }
:is(#vest-token-dialog, #vest-about-dialog) button:disabled { opacity: .35; cursor: default; }
:is(#vest-token-dialog, #vest-about-dialog) [data-close] {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #edf2ff;
  background: transparent;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
:is(#vest-token-dialog, #vest-about-dialog) [data-close]:hover { background: #ffffff10; }
.vest-eyebrow { display: block; padding-right: 20px; color: #889aca; font-size: 10px; letter-spacing: .14em; }
.vest-token-meta { margin: 20px 0 24px; color: #7b89ad; font-size: 12px; }
.vest-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #3155ed33; border-radius: 20px; color: #3155ed; background: #3155ed0a; font-size: 11px; }
.vest-status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.vest-status > span:empty { display: none; }
#vest-token-dialog label { display: block; margin: 24px 0 9px; color: #788bb6; font-size: 10px; letter-spacing: .12em; }
.vest-address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#vest-token-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 16px;
  color: #3155ed;
  background: #ffffff06;
  border: 1px solid #3155ed45;
  border-radius: 12px;
  font: 12px/1.4 monospace;
}
#vest-copy { margin-top: 12px; }
.vest-address-row #vest-copy { margin-top: 0; }
.vest-dialog-note {
  display: block;
  margin-top: 25px !important;
  padding-top: 20px;
  color: #7b89ad;
  border-top: 1px solid #ffffff12;
  font-size: 11px;
  line-height: 1.65;
}
.vest-dialog-note a { color: #3155ed; text-underline-offset: 3px; }
.vest-about-intro { color: #788bb6; }
.vest-steps { display: grid; gap: 17px; margin: 26px 0; padding: 0; list-style: none; }
.vest-steps li { display: grid; grid-template-columns: 27px 1fr; gap: 14px; min-height: 30px; }
.vest-steps li > span { padding-top: 3px; color: #748acc; font-size: 11px; letter-spacing: .06em; }
.vest-steps strong { display: block; color: #edf2ff; font-size: 14px; font-weight: 500; }
.vest-steps p { display: block; margin: 3px 0 0 !important; color: #7b89ad; font-size: 12px; line-height: 1.55; }

/* Keep the original joystick and make the two remaining zoom controls a pair. */
.s5-controls .s5-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  width: 58px;
  height: auto;
  padding: 5px;
  background: #3155ed;
  border: 1px solid #ffffff29;
  border-radius: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px #0003;
}
.s5-controls .s5-pad-btn {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.s5-controls .s5-pad-btn::after { display: none; }
.s5-controls .s5-pad-btn:hover { background: #ffffff14; box-shadow: none; }
.s5-controls .s5-pad-btn:active,
.s5-controls .s5-pad-btn.is-pressed { background: #0003; box-shadow: none; }

@media (max-width: 768px) {
  .vest-brand { top: 16px; left: 20px; height: 38px; padding: 0 10px; gap: 7px; }
  .vest-brand strong { font-size: 15px; }
  .vest-brand img { width: 23px; height: 23px; }
  .vest-network { top: 16px; right: 16px; gap: 5px; }
  body.frame-open .vest-brand { top: 26px; left: 30px; }
  body.frame-open .vest-network { top: 26px; right: 26px; }
  .vest-network button { height: 38px; padding: 0 11px; }
  .vest-network #vest-x { padding: 0 11px; }
  .vest-network #vest-ca { width: 150px; padding: 0 10px; gap: 7px; }
  .vest-ca-label { padding-right: 7px; font-size: 9px; }
  .vest-ca-value { font-size: 10px; }
  .hud-right-group { top: 69px !important; left: 20px !important; right: 20px !important; height: 25px !important; }
  .scroll-ruler-nav { gap: 18px !important; }
  :is(#vest-token-dialog, #vest-about-dialog) { max-height: calc(100dvh - 28px); padding: 30px 25px 25px; border-radius: 24px; }
  #vest-toast { bottom: 154px; padding: 14px 18px; font-size: 13px; }
  .s5-controls .s5-pad { width: 54px; padding: 4px; }
  .s5-controls .s5-pad-btn { flex-basis: 44px; width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .vest-brand strong { display: none; }
  .vest-brand { width: 43px; padding: 0; justify-content: center; }
  .vest-network #vest-ca { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.vest-brand, .vest-network button, #vest-entry, #vest-toast) { transition: none; }
}

/* VEST: luminous paper surfaces, cobalt controls and warm editorial accents. */
::selection { color:#fff9ef; background:#3155ed; }
.nav-black .scroll-indicator { color:#3155ed; background:#fff9ef; }
.nav-black .scroll-indicator-dot { background:#3155ed; }
.vest-brand, .vest-network button, .vest-network #vest-ca {
  background:#fff9ef; color:#203364; border:1px solid #3155ed26;
  backdrop-filter:none; box-shadow:0 3px 18px #18306412;
}
.vest-brand { gap:9px; padding:0 15px 0 9px; }
.vest-brand strong { font-size:16px; font-weight:500; letter-spacing:.16em; }
.vest-brand img { width:31px; height:31px; filter:none; }
body.webgl-loader-overlay .vest-brand { color:#203364; }
.vest-brand:hover { opacity:1; background:#edf2ff; }
.vest-network button:hover:not(:disabled) { background:#e7eeff; border-color:#3155ed66; }
.vest-ca-label { border-right-color:#3155ed26; }
#vest-entry { background:#3155ed; color:#fff; border-color:#3155ed; backdrop-filter:none; box-shadow:0 5px 24px #3155ed25; }
#vest-entry:hover { background:#2446cc; border-color:#2446cc; }
#vest-toast { color:#203364; background:#fff9ef; border:1px solid #3155ed33; box-shadow:0 8px 35px #1c35752b; }
:is(#vest-token-dialog,#vest-about-dialog) { background:#fff9ef; color:#203364; border-color:#3155ed26; }
:is(#vest-token-dialog,#vest-about-dialog)::backdrop { background:#1e316755; backdrop-filter:blur(5px); }
:is(#vest-token-dialog,#vest-about-dialog) button { background:#3155ed; color:#fff; }
:is(#vest-token-dialog,#vest-about-dialog) button:hover:not(:disabled) { background:#2446cc; }
:is(#vest-token-dialog,#vest-about-dialog) [data-close] { color:#3155ed; background:transparent; }
:is(#vest-token-dialog,#vest-about-dialog) [data-close]:hover { color:#3155ed; background:#e7eeff; }
.vest-about-intro,.vest-steps p,.vest-token-meta,.vest-dialog-note { color:#5b6d98; }
.vest-steps strong { color:#203364; }
.vest-eyebrow { color:#3155ed; }
.vest-dialog-note { border-top-color:#3155ed20; }
#vest-token-dialog input { background:#fff; border-color:#3155ed35; }
.eg-track, .nav-black .eg-track { background:#fff9ef !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; box-shadow:0 8px 35px #17295722; border:1px solid #3155ed1c; }
.eg-track .eg-pill { background:#3155ed; color:#fff; box-shadow:none; }
.eg-track .eg-pill:hover { background:#2446cc; }
.eg-track .eg-pill::after { display:none; }
.eg-track .eg-brand-mark { background:#fff9ef; border:0; box-shadow:none; }
.eg-track .eg-brand-mark img { width:35px !important; height:35px !important; }
.eg-track .eg-menu,.eg-track .eg-back,.eg-track .eg-submit { background:#e7eeff; color:#3155ed; }
.eg-track .eg-menu:hover,.eg-track .eg-back:hover,.eg-track .eg-submit:hover { background:#d8e3ff; }
.eg-track .eg-menu-panel,.eg-track .eg-menu-item { color:#203364; }
.eg-track .eg-menu-item:hover { background:#e7eeff; }
@media(max-width:650px) { .vest-brand { padding-left:7px; } .vest-brand img { width:29px; height:29px; } .vest-brand strong { font-size:15px; } }
@media(max-width:380px) { .vest-brand { padding:0; } }

/* A quiet release clock aligned beneath the scene navigator. */
.vest-countdown {
  position:fixed; z-index:139; top:83px; left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:20px; box-sizing:border-box;
  padding:13px 20px; border:1px solid #3155ed24; border-radius:18px;
  background:#fff9ef; color:#203364; box-shadow:0 4px 20px #1729570d;
  font-family:'Space Grotesk',sans-serif; pointer-events:none;
}
.vest-countdown[hidden] { display:none; }
.vest-countdown-caption { display:flex; flex-direction:column; gap:6px; white-space:nowrap; }
.vest-countdown-caption > span { color:#3155ed; font-size:9px; line-height:1; font-weight:600; letter-spacing:.18em; }
.vest-countdown-caption time { color:#62709a; font-size:9px; line-height:1; letter-spacing:.015em; }
.vest-countdown-digits { border-left:1px solid #3155ed24; padding-left:20px; color:#3155ed; font:400 29px/1 'PP Supply Mono',monospace; font-variant-numeric:tabular-nums; letter-spacing:-.045em; white-space:nowrap; }
body.frame-open .vest-countdown { top:93px; }
@media(max-width:768px) {
  .vest-countdown,body.frame-open .vest-countdown { top:111px; gap:15px; padding:12px 16px; border-radius:16px; }
  .vest-countdown-digits { padding-left:15px; font-size:26px; }
}
@media(max-height:500px) and (min-width:769px) { .vest-countdown,body.frame-open .vest-countdown { top:69px; padding:10px 16px; } }
