:root {
  --bg: #000;
  --ink: #e8eef7;
  --muted: #a9b3c1;
  --panel: rgba(14, 20, 28, .68);
  --line: rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  margin: 0;
  font: 16px/1.55 "Manrope", system-ui, -apple-system, Segoe UI, Helvetica, Arial;
  color: var(--ink);
  background: #000 url("src/bg.png") center / cover no-repeat;
}
body { margin: 0; }


.header {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr minmax(280px, 540px) 1fr;
  align-items: start; gap: 16px;
  padding: 20px 24px; border-bottom: 0px solid #eee;

}

.logo img { display:block; height: 48px; }

/* Stage & Canvas */
.stage { position: fixed; inset: 0; }
canvas { display: block; width: 100%; height: 100%; }

/* Overlay */
.overlay {
  position: fixed;
  left: clamp(16px, 5vw, 72px);
  bottom: clamp(16px, 5vw, 72px);
  max-width: min(760px, 70vw);
}
.chip { letter-spacing: .35em; font-size: 12px; opacity: .9; color: #cfe3ff; margin: 0 0 10px 0; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px clamp(16px, 3vw, 28px);
  /* border-radius: 18px; */
  box-shadow: 0 10px 50px rgba(0,0,0,.80);
  backdrop-filter: blur(4px);
}
h1 { margin: 0 0 20px 0; font-size: clamp(28px, 5vw, 42px); font-weight: 900; line-height: 1.30; }
.lead { color: var(--muted); margin: 8px 0 0 0; }

/* Links */
.links { display: flex; gap: 1rem; margin-top: 1rem; }
.link-icon img { width: 28px; height: 28px; transition: transform 0.2s ease; }
.link-icon img:hover { transform: scale(1.1); }

/* Skip Link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #111; color: #fff; padding: 8px 10px; border-radius: 8px; }

/* Footer */
footer { position: fixed; right: 12px; bottom: 10px; color: #7e8aa1; font-size: 12px; opacity: .7; }

/* Loader */
#loader { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; }
#loader .pixel { width: 15px; height: 15px; background: #fff; margin-bottom: 10px; animation: movePixel 1.5s infinite alternate ease-in-out; }
@keyframes movePixel { 0% { transform: translateX(-100px);} 100% { transform: translateX(100px);} }

/* Responsive */
@media (max-width: 1024px) {
  .overlay { left: 24px; right: 24px; bottom: 24px; max-width: 80%; }
  h1 { font-size: clamp(24px, 4vw, 32px); }
  .lead { font-size: clamp(14px, 2.5vw, 18px); }
}
@media (max-width: 768px) {
  html { background-image: url("src/bg-mobile.png"); background-attachment: scroll; }
  .overlay { left: 16px; right: 16px; bottom: 16px; max-width: 100%; }
  .panel { padding: 14px 16px; border-radius: 10px; }
  h1 { font-size: clamp(20px, 6vw, 26px); }
  .lead { font-size: clamp(13px, 3.4vw, 15px); }
}
@media (max-width: 360px) {
  .chip { display: none; }
  h1 { font-size: 18px; }
}
