:root { --fg: #fff; --dim: #b3b3b3; --red: #2bff88; --card: #0d0d0d }
* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { background: #000; color: var(--fg) }
body { font: 400 22px/1.35 VT323, ui-monospace, monospace; overflow-x: hidden; min-height: 100vh }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
.dim { color: var(--dim) }
.up { color: var(--red); text-shadow: 0 0 6px rgba(43, 255, 136, .7) }
.text-glow { text-shadow: 0 0 5px rgba(255, 255, 255, .7), 0 0 10px rgba(255, 255, 255, .5) }

/* drifting background text */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
.bg span { position: absolute; white-space: nowrap; font-size: 16px; color: rgba(255, 255, 255, .16); animation: drift linear infinite }
@keyframes drift { from { transform: translateX(0) } to { transform: translateX(-60px) } }

/* frames: solid glow line + an inner dashed line, like an old terminal */
.terminal, .frame-sm, .frame-btn, .venue { position: relative; border: 1px solid #fff; border-radius: 6px; box-shadow: 0 0 10px rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .82) }
.terminal::before { content: ''; position: absolute; inset: 0; margin: 3px; border: 1px dashed rgba(255, 255, 255, .7); pointer-events: none; border-radius: 4px }
.frame-sm { box-shadow: 0 0 6px rgba(255, 255, 255, .4) }
.scan { overflow: hidden }
.scan::after { content: ''; position: absolute; left: 0; width: 100%; height: 10px; background: linear-gradient(180deg, #fff0, #fff3, #fff0); animation: scan 4s linear infinite; top: -10px }
@keyframes scan { to { top: 100% } }

.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 22px 32px; flex-wrap: wrap }
.brand { font-size: 52px; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 12px; margin-right: auto }
.emo { font-size: 40px }
.ticker, .ca { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 20px }
.ca code { font: inherit; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ca button { border: 1px solid #fff; border-radius: 4px; padding: 2px 10px; font-size: 17px }
.ca button:hover { background: #fff; color: #000 }

main { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 30px 20px 120px; display: grid; gap: 48px }
.terminal { padding: 34px 36px 32px; text-align: center }
h1, h2 { font-weight: 400; font-size: 40px; letter-spacing: 1px; min-height: 1.3em }
h2 { font-size: 36px }
.typed::after { content: ''; display: inline-block; width: .5em; height: .95em; background: #fff; margin-left: 4px; vertical-align: -.1em; animation: blink 1s steps(1) infinite }
@keyframes blink { 50% { opacity: 0 } }
.big { font-size: 30px; margin-top: 8px }
.sub { font-size: 28px; margin-top: 26px; min-height: 1.3em }
.quote { margin: 30px auto 0; padding: 12px 16px; max-width: 520px; font-size: 22px }
.quote small { display: block; color: var(--dim); font-size: 18px }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px }
.stats div { padding: 12px 10px; font-size: 21px }
.stats span { display: block; color: var(--dim); font-size: 18px }
.stats b { font-weight: 400 }

.venues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px }
.venue { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; box-shadow: none; border-color: rgba(255, 255, 255, .6) }
.venue .vi { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; font-size: 24px }
.venue b { font-weight: 400; font-size: 26px }
.venue .go { width: 100%; border: 1px solid #fff; border-radius: 4px; padding: 4px; font-size: 18px }
.venue:hover .go { background: #fff; color: #000 }
.note { margin-top: 22px; color: var(--dim); font-size: 20px }
.links { display: flex; justify-content: center; gap: 18px; margin-top: 24px }
.frame-btn { padding: 6px 18px; font-size: 22px }
.frame-btn:hover { background: #fff; color: #000 }
hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .35); margin: 26px 0 0 }

.pressf { position: fixed; right: 22px; bottom: 22px; z-index: 5; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; background: rgba(20, 20, 20, .92); font-size: 20px; box-shadow: 0 0 12px rgba(0, 0, 0, .8) }
.pressf kbd { display: inline-block; font: inherit; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; padding: 0 8px; margin: 0 6px; background: #222 }
.pressf:hover { border-color: #fff }

/* the panic */
.overlay { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; font-size: clamp(34px, 7vw, 72px); color: var(--red); text-shadow: 0 0 18px rgba(43, 255, 136, .9); pointer-events: none; opacity: 0; transition: opacity .25s; text-align: center; padding: 0 20px }
#fog { position: fixed; inset: 0; z-index: 8; pointer-events: none }
.cloud { position: absolute; font-size: 40px; color: var(--red); text-shadow: 0 0 12px rgba(43, 255, 136, .8); animation: rise 2.4s ease-out forwards }
@keyframes rise { 0% { opacity: 0; transform: translateY(40px) scale(.8) } 15% { opacity: 1 } 100% { opacity: 0; transform: translateY(-260px) scale(1.2) } }
.shake { animation: shake .45s }
@keyframes shake { 0%, 100% { transform: none } 15% { transform: translate(-8px, 4px) } 30% { transform: translate(7px, -5px) } 45% { transform: translate(-6px, -3px) } 60% { transform: translate(5px, 6px) } 75% { transform: translate(-3px, 2px) } }
.flash { animation: flash .4s }
@keyframes flash { 0% { background: #003a1a } 100% { background: #000 } }

@media (max-width: 760px) {
  body { font-size: 20px }
  .top { padding: 16px }
  .brand { font-size: 40px; width: 100% }
  .ca code { max-width: 52vw }
  .terminal { padding: 26px 16px }
  h1 { font-size: 30px } h2 { font-size: 28px }
  .stats, .venues { grid-template-columns: 1fr }
}
@media (prefers-reduced-motion: reduce) { .bg span, .scan::after, .typed::after { animation: none } }
