/* $HACKOOR: an old message board. Courier type, pale titles, grey reading text, thin green lines.
   Bright green only for things you click and for live numbers. Code rain falls behind him and down
   the sides of the board. */
:root {
  --bg: #010403;
  --panel: #020805;
  --card: #04100a;
  --well: #020905;
  --line: rgba(0, 255, 102, 0.16);
  --line-hi: rgba(0, 255, 102, 0.42);
  --title: #c9f2c7;
  --body: #9aa7a0;
  --date: #5d6b63;
  --g: #00ff66;
  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--body); font: 400 15.5px/1.75 var(--mono); -webkit-font-smoothing: antialiased; }
::selection { background: var(--g); color: #000; }
a { color: inherit; }
button, input { font: inherit; }

/* one canvas fixed behind everything (body has no background so it shows through) */
.rain { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 40px); background: rgba(1, 4, 3, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: 0.02em; }
.dot { width: 8px; height: 8px; background: var(--g); box-shadow: 0 0 10px var(--g); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0.2; } }
nav { display: flex; align-items: center; gap: 10px; }
.x-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-hi); color: var(--title); border-radius: 2px; }
.x-link:hover { border-color: var(--g); color: var(--g); }
.x-link[hidden] { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 2px; border: 1px solid var(--g); background: var(--g); color: #001a0a; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.btn:hover { box-shadow: 0 0 18px rgba(0, 255, 102, 0.35); }
.btn.off { background: transparent; color: var(--date); border-color: var(--line); box-shadow: none; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--g); }
.btn-ghost:hover { background: rgba(0, 255, 102, 0.08); box-shadow: none; }

/* 1. hero: him at his desk */
.hero { position: relative; overflow: hidden; padding: 10px 16px 44px; text-align: center; }
.scene { --w: min(1100px, 100%, max(560px, calc((100svh - 330px) * 1.96))); position: relative; width: var(--w); margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect; }
.scene img { position: relative; display: block; width: 100%; height: auto; }
.glow { position: absolute; inset: 0; background: var(--g); -webkit-mask: url(img/lair.webp) center / 100% 100% no-repeat; mask: url(img/lair.webp) center / 100% 100% no-repeat; filter: blur(34px); opacity: 0.32; animation: glow 3.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.55; } }
.booted .scene { animation: glitchin 0.62s steps(1) both; }
@keyframes glitchin {
  0% { opacity: 0; }
  12% { opacity: 1; translate: -10px 0; filter: drop-shadow(-6px 0 0 rgba(255, 0, 90, 0.7)) drop-shadow(6px 0 0 rgba(0, 220, 255, 0.7)); }
  24% { translate: 8px 0; }
  36% { translate: 0 0; filter: none; }
  48% { opacity: 0.45; }
  60%, 100% { opacity: 1; }
}

/* the words under him sit on a soft black pool so they read over the rain */
.copy { position: relative; isolation: isolate; margin-top: -64px; }
.copy::before { content: ''; position: absolute; z-index: -1; inset: -16% -12% -22%; background: radial-gradient(closest-side, rgba(1, 4, 3, 0.94), rgba(1, 4, 3, 0.75) 60%, transparent); pointer-events: none; }
h1 { margin: 0; color: var(--title); font-weight: 700; font-size: clamp(46px, 10vw, 96px); line-height: 1; letter-spacing: -0.02em; text-shadow: 0 0 24px rgba(0, 255, 102, 0.22), 0 2px 16px #000; }
.lead { margin: 14px 0 0; color: var(--title); font-size: clamp(17px, 2.5vw, 22px); font-weight: 700; line-height: 1.4; }
.sub { margin: 4px 0 0; }

/* the address */
.ca { position: relative; display: inline-flex; margin-top: 22px; max-width: 100%; padding: 10px 12px 10px 14px; border-radius: 2px; border: 1px solid var(--line-hi); background: rgba(2, 8, 5, 0.92); font-size: 13px; }
.ca .ca-live { display: none; align-items: center; gap: 12px; min-width: 0; }
.ca .ca-soon { color: var(--body); }
.ca.is-live { border-color: var(--g); }
.ca.is-live .ca-soon { display: none; }
.ca.is-live .ca-live { display: inline-flex; }
.ca-label { color: var(--g); font-weight: 700; }
.ca code { color: var(--title); font: 700 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { flex: none; padding: 5px 12px; border-radius: 2px; border: 0; background: var(--g); color: #001a0a; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }

/* 2. the board */
.board { max-width: 900px; margin: 0 auto; padding: 18px clamp(10px, 2.2vw, 20px) 0; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; display: grid; gap: 12px; }
.post { background: var(--card); border: 1px solid var(--line); padding: 14px clamp(14px, 2.4vw, 22px) 20px; }
.post-date { margin: 0; color: var(--date); font-size: 12.5px; }
.post h2 { margin: 2px 0 12px; color: var(--title); font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: 0.04em; text-transform: uppercase; }
.post p { margin: 0 0 12px; }
.post p:last-child { margin-bottom: 0; }

/* where the fees go */
.big { margin: 4px 0 0; color: var(--g); font-weight: 700; font-size: clamp(46px, 10vw, 84px); line-height: 1; letter-spacing: -0.03em; text-shadow: 0 0 22px rgba(0, 255, 102, 0.25); }
.post .big-label { margin: 10px 0 14px; color: var(--title); font-weight: 700; }
.big-label a { text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 4px; }
.big-label a:hover { text-decoration-color: var(--g); }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 0 0 14px; }
.flow div { padding: 9px 13px; border: 1px solid var(--line); background: var(--well); }
.flow b { display: block; color: var(--title); font-size: 16px; }
.flow span { color: var(--date); font-size: 12.5px; }
.post .held { color: var(--date); font-size: 13.5px; }

/* give him a target */
.target { display: flex; gap: 8px; max-width: 560px; margin: 2px 0 0; }
.target input { flex: 1; min-width: 0; padding: 10px 13px; border-radius: 2px; border: 1px solid var(--line-hi); background: #010603; color: var(--title); caret-color: var(--g); font-size: 16px; font-weight: 700; }
.target input::placeholder { color: var(--date); }
.target input:focus { outline: none; border-color: var(--g); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chips button { padding: 3px 10px; border-radius: 2px; border: 1px solid var(--line); background: transparent; color: var(--body); font-size: 13px; cursor: pointer; }
.chips button:hover { color: var(--g); border-color: var(--line-hi); }
.term { margin: 14px 0 0; border: 1px solid var(--line-hi); background: #010402; }
.term-top { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--date); font-size: 12px; }
.term-top i { width: 9px; height: 9px; border: 1px solid var(--line-hi); }
.term-top span { margin-left: 8px; }
.term pre { margin: 0; padding: 14px 16px 18px; min-height: 250px; color: var(--g); font: 400 14px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term pre .no { color: #ff5468; }
.term pre .res { color: var(--title); font-weight: 700; }
.btn-share { margin-top: 12px; }

/* how to buy */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); background: var(--well); }
.steps li > b { flex: none; width: 24px; color: var(--g); }
.steps li > span:not(.tick) { flex: 1; color: var(--title); font-weight: 700; }
.steps .btn { padding: 6px 12px; font-size: 12px; }
.tick { color: var(--date); font-size: 13px; padding-right: 6px; }

.foot { padding: 14px 4px 30px; text-align: center; color: var(--date); font-size: 12.5px; line-height: 1.6; }
.foot p { margin: 4px auto; max-width: 640px; }

/* ---------- the loading screen ---------- */
.boot { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: #000; color: var(--g); overflow: hidden; }
html.booting .boot { display: flex; animation: bootfail 0.01s 8s forwards; }
@keyframes bootfail { to { visibility: hidden; opacity: 0; } }
.boot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.75)); }
.boot-in { position: relative; display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding: 24px; transition: opacity 0.25s, filter 0.25s; }
.boot-art { margin: 0; color: var(--g); font: 700 clamp(5.5px, 0.8vw, 10.5px)/1 var(--mono); white-space: pre; text-shadow: 0 0 6px rgba(0, 255, 102, 0.55); clip-path: inset(0 0 100% 0); animation: draw 1.3s steps(50, end) 0.1s forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.boot-side { width: min(480px, 92vw); font-size: 14px; line-height: 1.7; }
.boot-log { min-height: 13.6em; color: var(--body); white-space: pre-wrap; }
.boot-log > div:first-child { color: var(--title); }
.boot-log .ok { color: var(--g); }
.boot-log .warn { color: #ffd166; }
.boot-bar { margin-top: 12px; color: var(--g); white-space: pre; }
.boot-grant { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.boot-grant span { padding: 14px 26px; border: 2px solid var(--g); background: rgba(0, 0, 0, 0.88); color: var(--g); font: 700 clamp(28px, 6.5vw, 72px)/1 var(--mono); letter-spacing: 0.06em; text-shadow: 0 0 18px rgba(0, 255, 102, 0.6); box-shadow: 0 0 40px rgba(0, 255, 102, 0.25), inset 0 0 30px rgba(0, 255, 102, 0.12); }
.boot.granted .boot-in { opacity: 0.18; filter: blur(1.5px); }
.boot.granted .boot-grant { opacity: 1; animation: grant 0.42s steps(1) both; }
@keyframes grant { 0% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: 0.2; } 45% { opacity: 1; } 60% { opacity: 0.5; } 75%, 100% { opacity: 1; } }
.boot-skip { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--date); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
html.booting .boot.out { animation: crt 0.48s ease-in forwards; }
@keyframes crt { 0% { clip-path: inset(0 0 0 0); filter: brightness(1); } 55% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(2.2); } 100% { clip-path: inset(49.6% 50% 49.6% 50%); opacity: 0.2; } }

@media (max-width: 760px) {
  .boot-in { flex-direction: column; gap: 16px; }
  .boot-art { font-size: 5.6px; }
  .boot-side { font-size: 12px; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 32px; }
  .scene { --w: 175vw; margin-left: 50%; transform: translateX(-40%); }
  .copy { margin-top: -34px; }
  .ca .ca-soon { font-size: 12px; }
  .target { flex-direction: column; }
  .flow { grid-template-columns: 1fr; }
  .board { border-left: 0; border-right: 0; }
  .post h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .dot, .glow { animation: none; } .btn { transition: none; } .booted .scene { animation: none; } }
