@font-face {
  font-family: VT323;
  src: url('/opportunity/VT323-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --voice-a: #e6b878;
  --voice-b: #83cdd5;
  --voice-unified: #dbe2c6;
  --voice-a-glow: #e6b87840;
  --voice-b-glow: #83cdd540;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #000; }
body { margin: 0; overflow: hidden; background: #000; color: #e6e4dc; }
/* The server injects a site-wide footer. This film keeps its disclosure in
   the Credits dialog so the opening photograph remains unobstructed. */
body > footer[role="contentinfo"] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; font: inherit; }
button:focus-visible, a:focus-visible, .log:focus-visible { outline: 1px solid #dbe2c6; outline-offset: 6px; }
button:disabled { opacity: .45; cursor: default; }

.photograph { position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; }
.photograph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.photograph figcaption { position: absolute; z-index: 1; left: max(20px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 40px); font: 9px/1.5 ui-monospace, monospace; color: #eee8db; text-shadow: 0 1px 4px #000, 0 0 8px #000; }

.beam { position: fixed; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 2px; border-radius: 50%; background: #d8e7c0; box-shadow: 0 0 8px #bfdda6, 0 0 24px #91be6770; pointer-events: none; }
.console { position: fixed; inset: 0; height: 100dvh; background: radial-gradient(ellipse at 50% 45%, #0b110d, #040805 70%, #000); }
.console::before { content: ''; position: absolute; inset: 10px; border: 1px solid #6a84611f; border-radius: 35px / 24px; box-shadow: inset 0 0 30px #000; pointer-events: none; }
.console::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, #0005 85%, #000b); }
.glass { position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: .33; background: repeating-linear-gradient(0deg, #0005 0, #0005 1px, transparent 1px, transparent 3px); }
.console-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(1000px, 100%); height: 100%; margin: 0 auto; padding: max(44px, env(safe-area-inset-top)) 52px 36px; }
.console-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 20px; border-bottom: 1px solid #8fbc8d24; color: #98a88c; font: 12px/1 ui-monospace, monospace; letter-spacing: .2em; }
.power-light { width: 4px; height: 4px; border-radius: 50%; background: #b9d69b; box-shadow: 0 0 8px #b9d69b60; }
body[data-stage="ended"] .power-light { background: #3e4638; box-shadow: none; }
.log { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 27px 16px 22px 0; scrollbar-width: thin; scrollbar-color: #86977b30 transparent; mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 12px), transparent); }
#transcript { font: 400 clamp(24px, 2.4vw, 30px)/1.32 VT323, 'Courier New', monospace; letter-spacing: .01em; overflow-wrap: break-word; }
#transcript p { margin: 0 0 .95em; white-space: pre-wrap; color: var(--voice-unified); }
#transcript [data-voice="a"] { color: var(--voice-a); text-shadow: 0 0 7px var(--voice-a-glow); }
#transcript [data-voice="b"] { color: var(--voice-b); text-shadow: 0 0 7px var(--voice-b-glow); }
#transcript [data-event] { font-size: .85em; letter-spacing: .06em; opacity: .72; }
#transcript .current::after { content: ''; display: inline-block; width: .44em; height: .82em; vertical-align: -.03em; margin-left: .1em; background: currentColor; opacity: .8; }
body.paused #transcript .current::after { opacity: .3; }

dialog { width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); padding: 30px; border: 1px solid #89957855; border-radius: 3px; background: #0b100df5; color: #e2e6d7; font: 13px/1.7 ui-sans-serif, system-ui, sans-serif; }
dialog::backdrop { background: #000a; }
dialog h2 { margin: 0 0 24px; font: 38px/1 VT323, monospace; }
dialog p { margin: 17px 0; color: #c2cabb; }
dialog a { color: #dde6c7; }
dialog small { display: block; margin-top: 25px; font-size: 10px; line-height: 1.8; color: #99a38d; }
dialog .close { float: right; border: 0; background: none; padding: 0 0 8px 8px; font: 11px/1.7 ui-monospace, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .photograph figcaption { left: 16px; bottom: 14px; max-width: calc(100% - 32px); font-size: 8px; }
  .console-inner { padding: max(30px, env(safe-area-inset-top)) 27px 26px; }
  .console-header { padding-bottom: 18px; font-size: 10px; }
  .console::before { inset: 6px; border-radius: 24px / 18px; }
  .log { padding-top: 24px; padding-right: 4px; }
  .glass { opacity: .22; }
}
@media (max-height: 450px) {
  .console-inner { padding-top: 25px; padding-bottom: 24px; }
  .console-header { padding-bottom: 14px; }
  .log { padding-top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .beam { display: none !important; }
}
