:root { --bg:#1f2850; --amber:#e8a93a; --ink:#eef2ff; --dim:#9aa8d0; --cyan:#62e8f2; --panel:#0f1530; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; outline: none; }
.sr, #nav:not(:focus-within) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#brand { position: fixed; top: 22px; left: 24px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .1px; pointer-events: none; z-index: 2; text-shadow: 0 1px 8px rgba(8,12,30,.6); }
#copy { position: fixed; left: 22px; bottom: 14px; font-size: 13px; color: rgba(190,200,235,.55); pointer-events: none; z-index: 2; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; font-family: 'VT323', monospace; font-size: 26px; color: var(--cyan); letter-spacing: 1px; z-index: 5; pointer-events: none; }
body.ready #loading { display: none; }
#nav:focus-within { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px; background: rgba(10,14,34,.92); border: 2px solid var(--amber); border-radius: 14px; z-index: 9; max-width: calc(100vw - 20px); }
#nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: #1a2248; font-size: 15px; }
#nav a:focus { outline: 3px solid var(--amber); outline-offset: 1px; background: #243066; }

#tip { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 7px 15px 8px; border-radius: 999px; background: rgba(12,16,34,.93); color: #fff; font-weight: 800; font-size: 15px; white-space: nowrap; opacity: 0; transition: opacity .12s; box-shadow: 0 4px 18px rgba(0,0,0,.35); will-change: transform; }
#tip.on { opacity: 1; }
#caption { display: none; position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 3; pointer-events: none; text-align: left; padding: 10px 14px; border-radius: 12px; background: rgba(10,16,38,.78); border: 1px solid rgba(98,232,242,.35); box-shadow: 0 0 18px rgba(98,232,242,.12) inset; }
#cap-title { font-family: 'VT323', monospace; font-size: 28px; line-height: 1; color: #c8fbff; text-shadow: 0 0 8px rgba(98,232,242,.8); }
#cap-lines { margin-top: 4px; font-size: 14px; color: #a8b6e0; line-height: 1.35; }
body.compact #caption { display: block; }
body.compact #copy { display: none; }
body.compact #brand { top: 14px; left: 14px; font-size: 17px; }

#veil { position: fixed; inset: 0; z-index: 6; background: rgba(7,10,26,.66); opacity: 0; transition: opacity .42s ease; }
#veil.on { opacity: 1; }
body.win-closing #veil, body.win-closing #win { pointer-events: none; }
#copy a { color: rgba(214,222,250,.85); text-underline-offset: 2px; pointer-events: auto; }
#copy a:hover, #copy a:focus-visible { color: var(--amber); }
#win { position: fixed; inset: 0; margin: auto; z-index: 7; width: min(1080px, calc(100vw - 28px)); height: min(86vh, 940px); height: min(86dvh, 940px); display: flex; flex-direction: column; background: linear-gradient(180deg, #121a38 0%, #0c1230 100%); border: 3px solid var(--amber); box-shadow: 7px 8px 0 rgba(3,5,16,.85); border-radius: 3px; outline: none; }
#win .bar { display: flex; align-items: center; justify-content: space-between; flex: none; height: 44px; padding: 0 12px 0 18px; border-bottom: 1px solid rgba(232,169,58,.28); font-family: 'VT323', monospace; font-size: 22px; color: var(--amber); }
#win .path { display: inline-flex; align-items: center; min-width: 0; }
#win .cur { display: inline-block; width: 8px; height: 15px; margin-left: 3px; background: var(--amber); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#win-close { appearance: none; border: 0; background: transparent; color: var(--amber); font-family: 'VT323', monospace; font-size: 24px; width: 30px; height: 30px; line-height: 1; cursor: pointer; border-radius: 2px; }
#win-close:hover, #win-close:focus-visible { background: var(--amber); color: #0c1230; outline: none; }
#win-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 26px 40px 48px; line-height: 1.65; font-size: 16px; color: #d5dcf2; scrollbar-width: thin; scrollbar-color: #3a4678 transparent; }
#win-body:focus { outline: none; }
#win-more { position: absolute; right: 14px; bottom: 12px; width: 20px; height: 20px; opacity: 0; transition: opacity .2s; pointer-events: none; background: rgba(232,169,58,.16); }
#win-more::after { content: ''; position: absolute; left: 5px; top: 8px; border: 5px solid transparent; border-top: 6px solid var(--amber); border-bottom: 0; }
#win-more.on { opacity: 1; }
#win h1, #win h2.t { margin: 0 0 4px; font-size: 32px; font-weight: 800; color: #fff; line-height: 1.2; }
#win h2.s, #win h3.s { margin: 30px 0 8px; font-family: 'VT323', monospace; font-weight: 400; font-size: 27px; color: var(--amber); letter-spacing: .5px; }
#win h3 { margin: 12px 0 4px; font-size: 18px; font-weight: 800; color: #fff; }
#win p { margin: 8px 0; }
#win .sub { color: #c9d2ea; margin: 0 0 6px; }
#win .hello { margin: 0 0 6px; font-size: 15px; }
#win .hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
#win .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #2dd3d8; box-shadow: 0 0 0 3px rgba(45,211,216,.25), 0 0 22px rgba(45,211,216,.35); flex: none; }
#win a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
#win a:hover { color: #ffd27a; }
#win a:focus-visible, #win-body:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
#win table.tl { border-collapse: collapse; width: 100%; margin: 6px 0; }
#win .tl th { text-align: left; vertical-align: top; width: 190px; padding: 7px 18px 7px 0; font-weight: 800; color: #fff; white-space: nowrap; }
#win .tl td { padding: 7px 0; vertical-align: top; }
#win .dim { color: var(--dim); }
#win .chips { display: flex; flex-wrap: wrap; gap: 8px; }
#win .chips span { padding: 3px 12px; border: 1px solid #2f3b6e; border-radius: 999px; background: #131b3b; font-weight: 700; font-size: 14px; }
#win .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
#win .card { background: #131b3a; border: 1px solid #263056; display: flex; flex-direction: column; }
#win .card h3 { margin: 12px 16px 2px; }
#win .card p { margin: 4px 16px; font-size: 14.5px; color: #c4cde8; }
#win .card .card-links { margin: 6px 16px 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; margin-top: auto; padding-top: 6px; }
#win .card-art, #win .feature-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #0d1426; border-bottom: 1px solid #263056; }
#win .feature-art { max-width: 520px; margin: 0 0 18px; border: 1px solid #263056; }
#win .cta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-weight: 800; }

/* The page's own text. With the 3D scene running it is only for search engines and screen readers
   (the windows show the same text); without JavaScript or WebGL it is the page. */
.js #content { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js), html:not(.js) body { overflow: auto; height: auto; }
html:not(.js) :is(#scene, #nav, #loading, #caption, #tip) { display: none; }
html:not(.js) #brand { position: absolute; }
html:not(.js) #copy { position: static; padding: 0 22px 40px; max-width: 780px; margin: 0 auto; }
html:not(.js) #content { max-width: 780px; margin: 0 auto; padding: 84px 22px 40px; line-height: 1.6; }
html:not(.js) #content section { border-top: 1px solid #2f3b6e; margin-top: 34px; padding-top: 10px; }
html:not(.js) #content section:first-child { border: 0; margin: 0; }
html:not(.js) #content a { color: var(--amber); }
html:not(.js) #content .s { font-family: 'VT323', monospace; font-weight: 400; font-size: 27px; color: var(--amber); margin: 24px 0 6px; }
html:not(.js) #content th { text-align: left; vertical-align: top; padding: 4px 18px 4px 0; }
html:not(.js) #content :is(.chips span, .card-links a) { margin-right: 12px; }
html:not(.js) #content :is(.card-art, .feature-art) { width: 100%; max-width: 420px; height: auto; }

@media (max-width: 760px) {
  #win { width: calc(100vw - 16px); height: calc(100dvh - 24px); }
  #win-body { padding: 18px 18px 40px; font-size: 15.5px; }
  #win h1, #win h2.t { font-size: 27px; }
  #win .hero .avatar { width: 72px; height: 72px; }
  #win .cards { grid-template-columns: 1fr; }
  #win .tl th { width: auto; display: block; padding: 8px 0 0; white-space: normal; }
  #win .tl td { display: block; padding: 0 0 6px; }
  #win .tl, #win .tl tbody, #win .tl tr { display: block; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #win .cur { animation: none; } #veil { transition: none; } #tip { transition: none; } }
