:root{
  --bg: #050512;
  --ink: #e9e9ff;
  --muted: #b6b6d6;

  --panel: rgba(10, 10, 28, 0.90);
  --panel2: rgba(16, 16, 44, 0.88);

  --edge: rgba(255,255,255,.18);
  --edge2: rgba(255,255,255,.10);

  --accent: #a7ff5a;
  --accent2: #7bdcff;
  --danger: #ff4b6e;

  --shadow: 0 18px 60px rgba(0,0,0,.65);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 30% 10%, rgba(167,255,90,.10), transparent 55%),
    radial-gradient(1000px 700px at 70% 30%, rgba(123,220,255,.10), transparent 60%),
    linear-gradient(180deg, #04040d, #060618 45%, #02020a);
  font-family: "Press Start 2P", system-ui, sans-serif;
  letter-spacing: .2px;
  image-rendering: pixelated;
  overflow-x: hidden;
}

.bg-noise{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* CRT-ish overlay */
.crt{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .10;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 1px,
      rgba(0,0,0,0.02) 2px,
      rgba(0,0,0,0.02) 3px
    );
  mix-blend-mode: overlay;
}

.wrap{
  max-width: 1040px;
  padding: 22px 14px 80px;
  margin: 0 auto;
}

.window{
  border: 2px solid var(--edge);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
}

.titlebar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-bottom: 2px solid var(--edge);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
}

.title{
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winbtns{ display: flex; gap: 8px; }
.winbtns .btn{
  width: 26px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--edge);
  background: rgba(0,0,0,.25);
  color: var(--muted);
  font-size: 10px;
}
.winbtns .btn.danger{ color: var(--danger); }

.content{ padding: 14px 16px 16px; }

.topnav{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0 12px;
  border-bottom: 2px dashed rgba(255,255,255,.12);
  margin-bottom: 14px;
}

.topnav a{
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
}
.topnav a:hover{ color: var(--ink); text-decoration: underline; }

.hero .kicker{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}

h1{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  text-shadow: 0 0 14px rgba(167,255,90,.14);
}

.tagline{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.95;
  max-width: 72ch;
}

.ctaRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 10px;
}

.socialRow{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.statusbar{
  margin-top: 12px;
  padding: 10px;
  border: 2px solid var(--edge2);
  background: rgba(0,0,0,.18);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}

.dot{ opacity: .45; }
.muted{ color: var(--muted); }

a{ color: var(--accent2); text-decoration: none; }
a:hover{ text-decoration: underline; }

.btnPrimary, .btnGhost{
  display: inline-block;
  padding: 12px 12px;
  border: 2px solid var(--edge);
  font-size: 11px;
  text-decoration: none !important;
}

.btnPrimary{
  background: rgba(167,255,90,.12);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(167,255,90,.08) inset;
}

.btnGhost{
  background: rgba(0,0,0,.25);
  color: var(--muted);
}

.rule{
  border: 0;
  border-top: 2px dashed rgba(255,255,255,.14);
  margin: 18px 0;
}

.section h2{
  margin: 0 0 10px;
  font-size: 14px;
}

.section p{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.95;
}

.small{
  font-size: 10px !important;
  line-height: 1.95 !important;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.95;
}

.grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card{
  border: 2px solid var(--edge);
  background: rgba(0,0,0,.18);
  padding: 12px;
}

.card h3{
  margin: 0 0 8px;
  font-size: 12px;
}

.folder{
  display: grid;
  place-items: center;
  padding: 16px 12px;
  border: 2px solid var(--edge);
  background: rgba(0,0,0,.22);
  color: var(--ink);
  font-size: 10px;
  text-decoration: none !important;
  text-align: center;
}
.folder:hover{
  background: rgba(167,255,90,.08);
  text-decoration: none !important;
}

.hint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.95;
}

/* Gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shot{
  border: 2px solid var(--edge2);
  background: rgba(0,0,0,.25);
  display: block;
}

.shot img{
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: contrast(1.1) saturate(.9);
}

/* Videos */
.video{
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  margin: 10px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sounds */
.soundRow{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 2px dashed rgba(255,255,255,.12);
}
.soundRow:first-of-type{ border-top: 0; }

.label{
  font-size: 10px;
  color: var(--muted);
}

audio{ width: 100%; }

/* Discord embeds */
.embedWrap{
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  padding: 8px;
  overflow: hidden;
}
.embedWrap iframe{
  width: 100%;
  height: 500px;
  border: 0;
}

/* Updates */
.log{
  border: 2px solid rgba(255,255,255,.14);
  padding: 12px;
  background: rgba(0,0,0,.18);
  margin: 10px 0;
}

.log h3{
  margin: 0 0 8px;
  font-size: 12px;
}

/* Footer */
.footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.sep{ opacity: .4; }

.blink{
  color: var(--accent);
  text-shadow: 0 0 10px rgba(167,255,90,.25);
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink{ 50%{ opacity: .25; } }

@media (max-width: 860px){
  .grid3{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .grid2{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .soundRow{ grid-template-columns: 1fr; }
  h1{ font-size: 18px; }
}
.counterBox{
  margin-top: 12px;
  padding: 12px;
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  display: inline-block;
}
.counterBox img{
  display: block;
  image-rendering: pixelated;
}