:root {
  --bg: #050209;
  --text: #d8d2c4;
  --dim: #a39aaa;
  --line: rgba(170,148,192,.25);
  --accent: #ffff55;
  --cyan: #55ffff;
  --mono: "JetBrains Mono", Menlo, monospace;
  --terminal: "VT323", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 12px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
a:hover, .text-key:hover { color: var(--accent); }
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
.shell { min-height: 100vh; isolation: isolate; }
.shell::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(0deg, rgba(129,58,210,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(129,58,210,.12) 1px, transparent 1px); background-size: 5vw 5vw; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(5,2,9,.97); border-bottom: 1px solid var(--line); }
.tb-row { display: flex; align-items: center; padding: 0 24px; }
.tb-row-1 { height: 44px; gap: 22px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .1em; }
.tb-brand { color: var(--accent); font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.tb-status { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.dot { width: 5px; height: 5px; background: var(--accent); }
.tb-right { margin-left: auto; color: var(--dim); white-space: nowrap; }
.tb-row-2 { height: 36px; overflow-x: auto; scrollbar-width: none; }
.tb-row-2::-webkit-scrollbar { display: none; }
.tb-link { display: flex; align-items: center; height: 100%; padding: 0 14px; border-right: 1px solid var(--line); color: var(--dim); font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
.tb-link:first-child { padding-left: 0; }
.tb-link.is-current { color: var(--accent); }
.page { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 26px 0 28px; }
.page-head { --portal-pixel: 4px; position: relative; min-height: 240px; padding-top: 72px; text-align: center; }
.portal-arch { position: absolute; z-index: 0; top: 0; left: 50%; width: calc(144 * var(--portal-pixel)); max-width: none; height: calc(60 * var(--portal-pixel)); transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; }
h1 { position: relative; color: var(--text); font: 88px/1 var(--terminal); letter-spacing: .06em; text-indent: .06em; }
.eyebrow { color: var(--dim); font-size: 9px; letter-spacing: .1em; }
.text-key { min-height: 36px; color: var(--dim); font-size: 10px; letter-spacing: .08em; }
.sanctuary { max-width: 1120px; margin: 0 auto; }
.windows { position: relative; }
.window { position: absolute; mix-blend-mode: screen; }
.window:focus-within { z-index: 2; }
.window-view { display: block; position: relative; width: 100%; }
.window-player { width: 100%; height: auto; aspect-ratio: var(--work-aspect, 2 / 3); object-fit: contain; image-rendering: pixelated; }
.view-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: var(--text); font: 18px/1 var(--terminal); white-space: nowrap; opacity: 0; }
.window-view:hover .view-hint, .window-view:focus-visible .view-hint { opacity: 1; }
.sanctuary-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 650px; margin: 20px auto 0; color: var(--dim); font-size: 8px; letter-spacing: .12em; }
.view-note { margin-top: 22px; color: var(--text); text-align: center; font: 21px/1.4 var(--terminal); }
.format-note { margin-top: 10px; color: var(--dim); text-align: center; font-size: 9px; line-height: 2; }
.format-note a { display: inline-block; padding: 8px; }
.support { max-width: 540px; margin: 72px auto 48px; padding: 4px; border: 3px double #aaa; background: #000080; color: #aaa; font: 17px/1.3 var(--terminal); }
.support-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -17px 7px 0; }
.support-title > * { padding: 0 6px; background: #000080; }
.support-title h2 { color: #fff; font: inherit; letter-spacing: .03em; }
.support-intro { padding: 12px 10px 10px; color: #fff; }
.support-columns, .support-links a { display: grid; grid-template-columns: minmax(0, 1fr) 80px 70px; align-items: center; gap: 8px; padding: 3px 10px; }
.support-columns { border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; color: #ffff55; }
.support-links { padding: 4px 0; }
.support-links a { min-height: 34px; color: #fff; }
.channel-open { white-space: nowrap; }
.support-links a:hover, .support-links a:focus-visible { background: #00aaaa; color: #000; outline-offset: -2px; }
.wallet { display: none; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0 8px; padding: 12px 2px; border-top: 1px solid #aaa; }
.wallet:target { display: grid; }
.wallet-close { display: inline-block; margin-left: 12px; color: #55ffff; }
.wallet img { width: 88px; height: 88px; padding: 4px; background: #fff; image-rendering: pixelated; }
.wallet-body { min-width: 0; }
.wallet .eyebrow { color: #ffff55; font: 17px/1.3 var(--terminal); letter-spacing: 0; }
.wallet-address { margin: 5px 0 2px; color: #fff; font: 11px/1.6 var(--mono); overflow-wrap: anywhere; }
.wallet .text-key { color: #55ffff; font: 17px/1.3 var(--terminal); letter-spacing: 0; }
.copy-status { margin-left: 10px; color: #ffff55; font-size: 16px; }
.wallet-note { margin-top: 2px; font-size: 15px; }
.support-status { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-top: 1px solid #aaa; color: #aaa; font-size: 16px; }
.support-status a { color: #55ffff; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 8px; letter-spacing: .1em; }
.footer div { display: flex; align-items: center; gap: 26px; }
.viewer { --image-height: min(70dvh, calc(100dvh - 198px), 850px); width: min(610px, calc(100% - 40px), max(270px, calc(var(--image-height) * var(--viewer-aspect, .666667) + 24px))); max-width: none; max-height: calc(100dvh - 40px); overflow: visible; padding: 6px; border: 3px solid; border-color: #eee #333 #333 #eee; color: #111; background: #aaa; box-shadow: inset 1px 1px #d4d4d4, inset -1px -1px #666, 8px 8px 0 rgba(0,0,0,.7); font: 20px/1 var(--terminal); }
.viewer::backdrop { background: rgba(5,2,9,.88); }
.viewer-finial { position: absolute; z-index: 1; width: 24px; height: 24px; background: url("../assets/temple/window-corner.svg") center / 24px 24px no-repeat; image-rendering: pixelated; pointer-events: none; }
.finial-nw { top: -13px; left: -13px; }
.finial-ne { top: -13px; right: -13px; transform: rotate(90deg); }
.finial-sw { bottom: -13px; left: -13px; transform: rotate(-90deg); }
.finial-se { bottom: -13px; right: -13px; transform: rotate(180deg); }
.viewer-bar { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 4px; color: #fff; background: #000080; }
.viewer-icon { display: grid; place-items: center; width: 20px; height: 22px; border: 2px solid; border-color: #fff #555 #555 #fff; color: #ffff55; background: #000; font-size: 17px; }
.viewer-bar h2 { flex: 1; color: #fff; font: 20px/1 var(--terminal); letter-spacing: .04em; }
.viewer form { margin: 0; }
.viewer .win-key { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; min-height: 32px; padding: 3px 12px; border: 2px solid; border-color: #fff #333 #333 #fff; border-radius: 0; color: #111; background: #c0c0c0; box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf; font: 20px/1 var(--terminal); }
.viewer .win-key:hover { color: #000080; }
.viewer .win-key:active { padding: 4px 11px 2px 13px; border-color: #333 #fff #fff #333; box-shadow: inset 1px 1px #808080; }
.viewer .win-key:focus-visible { outline: 1px dotted #111; outline-offset: -6px; }
.viewer .viewer-close { min-width: 26px; min-height: 24px; padding: 3px; }
.viewer .viewer-close:active { padding: 4px 2px 2px 4px; }
.viewer-close svg { flex-shrink: 0; }
.viewer-image { margin-top: 6px; border: 3px solid; border-color: #555 #ddd #ddd #555; background: #000; }
.viewer video { width: 100%; height: auto; max-height: var(--image-height); aspect-ratio: var(--viewer-aspect, 2 / 3); object-fit: contain; image-rendering: pixelated; }
.viewer-downloads { display: flex; justify-content: center; gap: 8px; padding: 10px 4px; }
.viewer-downloads .win-key { flex: 1; min-width: 0; max-width: 80px; }
.viewer-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px; border: 1px solid; border-color: #666 #ddd #ddd #666; color: #333; font-size: 18px; }
.viewer .viewer-arrow { min-width: 44px; min-height: 30px; padding: 3px; }
.viewer .viewer-arrow:active { padding: 4px 2px 2px 4px; }
body:has(.viewer[open]) { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) {
  .page-head { --portal-pixel: 3px; min-height: 200px; padding-top: 54px; }
  h1 { font-size: 72px; }
}
@media (max-width: 600px) {
  .tb-row { padding: 0 16px; }
  .tb-row-1 { gap: 12px; font-size: 9px; }
  .tb-status { display: none; }
  .tb-link { padding: 0 10px; font-size: 9px; }
  .page { width: calc(100% - 32px); padding-top: 22px; }
  .sanctuary-tools { margin-top: 12px; font-size: 7px; letter-spacing: .06em; }
  .sanctuary-tools .text-key { font-size: 9px; }
  .view-note { margin-top: 16px; font-size: 20px; }
  .support { margin: 48px auto 32px; }
  .support-title { gap: 4px; margin-left: 2px; margin-right: 2px; }
  .support-title > * { padding: 0 4px; }
  .support-title h2 { font-size: 17px; white-space: nowrap; }
  .support-intro { padding: 10px 8px; font-size: 17px; }
  .support-columns, .support-links a { grid-template-columns: minmax(0, 1fr) 66px 65px; gap: 6px; padding-left: 8px; padding-right: 8px; }
  .wallet { grid-template-columns: 1fr; justify-items: center; gap: 8px; margin: 0 6px; padding: 10px 2px; }
  .wallet-body { width: 100%; text-align: center; }
  .wallet .eyebrow { font-size: 16px; }
  .wallet-address { margin: 5px 0 2px; font-size: 11px; }
  .wallet .text-key { min-height: 40px; }
  .wallet-note { margin-top: 4px; font-size: 15px; }
  .copy-status { display: block; margin: 0; }
  .copy-status:empty { display: none; }
  .support-status { gap: 8px; padding: 6px 8px; font-size: 15px; }
  .support-status a { white-space: nowrap; }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer div { width: 100%; justify-content: space-between; gap: 10px; }
}
@media (max-width: 480px) {
  .page-head { --portal-pixel: 2px; min-height: 136px; padding-top: 34px; }
  h1 { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
