.deck-hud {
  --hud-ink: #e2f6f3;
  --hud-soft: #afc9c7;
  --hud-line: rgba(157, 220, 211, .3);
  --target-color: #a8f2ff;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: var(--deck-hud-opacity, 0);
  color: var(--hud-ink);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 8, 13, .7);
}
body.bridge-hidden .deck-hud { visibility: hidden; }
.deck-hud-stage { position: absolute; width: 1600px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--bridge-fit)); perspective: 1100px; perspective-origin: 50% 45%; }
.deck-hud-world {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--bridge-look-x), var(--bridge-look-y), 0) rotateX(var(--bridge-look-pitch)) rotateY(var(--bridge-look-yaw));
}
.deck-hud .mono { font-size: 11px; letter-spacing: .08em; }
.deck-port, .deck-starboard {
  position: absolute;
  width: 350px;
  padding: 24px 24px 20px;
  background: linear-gradient(145deg, rgba(5, 18, 24, .91), rgba(4, 14, 20, .83));
  border: 1px solid rgba(173, 231, 220, .36);
  border-bottom-color: rgba(173, 231, 220, .56);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transform-origin: 50% 100%;
}
.deck-port { left: 80px; top: 135px; }
.deck-starboard { right: 80px; top: 135px; width: 380px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.deck-signature { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.deck-signature h2 { color: var(--hud-ink); font-size: 42px; line-height: 1; font-weight: 400; letter-spacing: .04em; }
.deck-language { display: flex; align-items: center; gap: 2px; margin-top: -4px; margin-right: -6px; color: var(--hud-soft); pointer-events: auto; }
.deck-language > span { font-size: 11px; opacity: .45; }
.deck-language-button { min-width: 34px; min-height: 32px; padding: 4px 5px; font-size: 12px; font-weight: 400; line-height: 1; color: var(--hud-soft); transition: color .2s, background .2s; }
.deck-language-button[aria-pressed="true"] { color: var(--hud-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hud-line); }
.deck-language-button:hover { color: var(--hud-ink); background: rgba(154, 220, 208, .065); }
.deck-alias { margin-top: 14px; color: var(--hud-soft); font-size: 15px; line-height: 1.6; }
.deck-intro { margin-top: 27px; }
.deck-bio { color: var(--hud-ink); font-size: 16px; line-height: 1.9; font-weight: 300; }
.deck-mbti { margin-top: 19px; color: var(--hud-soft); font-size: 13px; line-height: 1.7; }
.deck-profile-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-top: 29px; padding-top: 16px; border-top: 1px solid var(--hud-line); font-size: 13px; line-height: 1.6; }
.deck-profile-link, .deck-credits { display: inline-block; padding: 5px 0; pointer-events: auto; }
.deck-profile-link { color: var(--hud-ink); }
.deck-profile-pending { color: var(--hud-soft); }
.deck-credits { display: inline-flex; align-items: center; margin-left: auto; color: var(--hud-soft); font-size: 11px; line-height: 1.6; }
.deck-profile-link:hover, .deck-credits:hover { color: var(--target-color); }
.deck-resources { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s ease, visibility 0s .28s; }
.deck-resources.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.deck-resources-clip { min-height: 0; overflow: hidden; }
.deck-resource-list { display: grid; gap: 18px; margin-top: 17px; padding-top: 19px; border-top: 1px solid var(--hud-line); }
.deck-resource-list dt { margin-bottom: 7px; color: var(--hud-soft); font-size: 11px; line-height: 1.6; }
.deck-resource-list dd { color: var(--hud-ink); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.deck-resource-models { display: grid; gap: 2px; }
.deck-resource-list .deck-resource-note { margin-top: 5px; color: var(--hud-soft); font-size: 11px; }
.deck-resource-list a { pointer-events: auto; text-decoration: underline; text-decoration-color: var(--hud-line); text-underline-offset: 3px; }
.deck-resource-list a:hover { color: var(--hud-ink); }
.deck-nav { pointer-events: auto; }
.deck-nav-heading { padding-bottom: 15px; border-bottom: 1px solid var(--hud-line); color: var(--hud-soft); font-size: 13px; line-height: 1.6; font-weight: 400; }
.deck-destinations { list-style: none; }
.deck-target {
  --target-color: #a8f2ff;
  position: relative;
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: center;
  column-gap: 10px;
  padding: 17px 0;
  text-align: left;
  border-bottom: 1px solid rgba(157, 220, 211, .16);
  transition: color .2s, background .2s;
}
.deck-target::before { content: ""; position: absolute; left: -12px; top: 50%; width: 2px; height: 24px; background: var(--target-color); opacity: 0; transform: translateY(-50%); transition: opacity .2s; }
.deck-target .deck-index { grid-row: 1 / 3; align-self: center; color: var(--hud-soft); font-style: normal; }
.deck-target b { font-weight: 400; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: break-word; }
.deck-target small { grid-column: 2; margin-top: 7px; color: var(--hud-soft); font-size: 12px; line-height: 1.7; font-weight: 300; }
.deck-target:hover, .deck-target:focus-visible { background: rgba(154, 220, 208, .065); }
.deck-target.is-current { color: var(--target-color); }
.deck-target.is-current::before { opacity: 1; }
.deck-target:focus-visible, .deck-hud a:focus-visible, .deck-language-button:focus-visible, .deck-credits:focus-visible, .deck-expand:focus-visible { outline: 1px solid #b5e9df; outline-offset: 4px; }
.deck-expand { display: flex; align-items: center; gap: 11px; margin-top: 13px; color: var(--hud-soft); padding: 10px 0; font-size: 12px; line-height: 1.6; pointer-events: auto; }
.deck-expand i { display: block; width: 15px; height: 15px; flex: none; border: 1px solid var(--hud-line); position: relative; }
.deck-expand i::before, .deck-expand i::after { content: ""; position: absolute; background: var(--hud-ink); }
.deck-expand i::before { width: 5px; height: 1px; left: 4px; top: 6px; }
.deck-expand i::after { width: 1px; height: 5px; top: 4px; left: 6px; }
.deck-expand:hover { color: var(--hud-ink); }
.deck-hud[inert] a, .deck-hud[inert] button { pointer-events: none; }
@media (max-width: 800px) {
  .deck-hud-stage { inset: 0; width: auto; height: auto; transform: none; perspective: none; }
  .deck-hud-world { transform: none; }
  .deck-port, .deck-starboard { width: 43vw; padding: 16px 12px 13px; top: 9vh; bottom: auto; transform: none; }
  .deck-port { left: 3vw; }
  .deck-starboard { right: 3vw; }
  .deck-signature { gap: 4px; }
  .deck-signature h2 { font-size: clamp(23px, 5vw, 34px); }
  .deck-language { gap: 0; margin-top: -4px; margin-right: -5px; }
  .deck-language-button { min-width: 27px; min-height: 30px; padding: 4px 3px; font-size: 10px; }
  .deck-language > span { font-size: 9px; }
  .deck-alias { margin-top: 12px; font-size: 12px; line-height: 1.7; }
  .deck-intro { margin-top: 21px; }
  .deck-bio { font-size: 13px; line-height: 1.85; }
  .deck-mbti { margin-top: 16px; font-size: 11px; line-height: 1.75; }
  .deck-profile-links { margin-top: 23px; padding-top: 11px; gap: 8px 15px; font-size: 12px; }
  .deck-credits { margin-left: 0; font-size: 10px; }
  .deck-resource-list { gap: 15px; margin-top: 13px; padding-top: 15px; }
  .deck-resource-list dt { font-size: 10px; }
  .deck-resource-list dd { font-size: 11px; }
  .deck-resource-list .deck-resource-note { font-size: 10px; }
  .deck-nav-heading { font-size: 12px; padding-bottom: 11px; }
  .deck-target { min-height: 76px; padding: 13px 0; grid-template-columns: minmax(0, 1fr); column-gap: 5px; }
  .deck-target .deck-index { display: none; }
  .deck-target b { font-size: 15px; }
  .deck-target small { grid-column: 1; margin-top: 6px; font-size: 11px; line-height: 1.7; }
  .deck-target::before { left: -7px; height: 21px; }
  .deck-expand { font-size: 11px; gap: 7px; padding: 9px 0; }
}
@media (max-width: 800px) and (max-height: 650px) {
  .deck-port, .deck-starboard { top: 7vh; padding-top: 13px; padding-bottom: 10px; }
  .deck-intro { margin-top: 14px; }
  .deck-mbti { margin-top: 12px; }
  .deck-profile-links { margin-top: 16px; }
  .deck-target { min-height: 66px; padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-resources { transition: none; }
}
