@font-face { font-family: "Greycliff"; src: url("/fonts/GreycliffCF-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Greycliff"; src: url("/fonts/GreycliffCF-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --onyx: #000;
  --onyx-2: #070606;
  --onyx-3: #0f0d0d;
  --line: #1c1818;
  --bone: #ece5dc;
  --ash: rgba(236, 229, 220, .58);
  --dust: rgba(236, 229, 220, .4);
  --red: #ff1228;
  --blood: #9e0617;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--onyx); }
body {
  background: var(--onyx);
  color: var(--bone);
  font: 16px/1.55 "Greycliff", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.hidden { display: none !important; }
.muted { color: var(--ash); }
::selection { background: var(--red); color: #fff; }

/* film grain: kills the flat "digital" look */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay; /* leaves pure black untouched */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- ambient layers ---------- */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bleed {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 62vh;
  z-index: 1; pointer-events: none; overflow: visible;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.page .bleed { height: 40vh; }

/* ---------- header / footer ---------- */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px 16px 0;
  width: 100%; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.mini-eye { width: 40px; height: auto; display: block; }
.top-link { font-size: 15px; color: var(--ash); padding: 6px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.top-link:hover { color: var(--bone); border-color: var(--red); }
.foot {
  position: relative; z-index: 5;
  text-align: center; padding: 22px 16px 26px;
  font-size: 12.5px; color: var(--dust);
}
.foot a:hover { color: var(--bone); }

/* ---------- home ---------- */
.home main {
  position: relative; z-index: 2;
  flex: 1;
  display: grid; place-items: center;
  padding: 8px 16px 24px;
}
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.eye-wrap { position: relative; width: min(600px, 94vw); }
.eye { width: 100%; height: auto; display: block; overflow: visible; cursor: default; }

.wordmark {
  font-size: clamp(46px, 10vw, 82px);
  letter-spacing: -.045em;
  margin-top: 6px;
  filter: url(#ink);
}
.sub { color: var(--ash); font-size: 17px; margin-top: 10px; }

.cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.dl {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  height: 72px; padding: 0 44px 0 34px;
  border-radius: 18px;
  font-size: 23px; font-weight: 700; letter-spacing: -.01em;
  color: #fff;
  background: linear-gradient(180deg, #ff2638 0%, #e00d21 48%, var(--blood) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -12px 20px rgba(50, 0, 6, .45);
  transition: transform .2s ease;
}
.dl::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow: 0 14px 54px 4px rgba(255, 18, 40, .55);
  opacity: .45;
}
.dl::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity .15s;
}
.dl:hover { transform: translateY(-2px) scale(1.015); }
.dl:active { transform: translateY(0) scale(1); }
.dl:hover::before { opacity: 1; }
.dl:focus-visible { outline: none; }
.dl svg { width: 26px; height: 26px; }

.discord {
  display: inline-flex; align-items: center; gap: 12px;
  height: 72px; padding: 0 30px;
  border-radius: 18px;
  font-size: 19px; font-weight: 700;
  background: var(--onyx-2);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s, color .2s;
}
.discord svg { width: 26px; height: 26px; }
.discord:hover { background: var(--onyx-3); border-color: #352828; }

@media (max-width: 560px) {
  .cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .dl, .discord { width: 100%; justify-content: center; }
}

/* ---------- account / status ---------- */
.page main { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; padding: 56px 16px; }
.panel {
  width: 100%; max-width: 440px;
  background: var(--onyx-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.panel h1 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; }
.panel p { color: var(--ash); font-size: 15px; margin-bottom: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 9px;
  font: 700 15px/1 "Greycliff", sans-serif; cursor: pointer;
  border: 1px solid var(--line); background: var(--onyx-3); color: var(--bone);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #161313; border-color: #2c2424; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { height: 48px; font-size: 16px; }
.btn-primary { color: #fff; border-color: transparent; background: var(--red); }
.btn-primary:hover { background: #ff2e42; border-color: transparent; }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.stack { display: grid; gap: 8px; }
.stack .btn { width: 100%; }
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile img { width: 48px; height: 48px; border-radius: 50%; background: var(--onyx-3); }
.profile .name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.profile .muted { font-size: 14px; }
.rows { border-top: 1px solid var(--line); margin-bottom: 22px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.row > span:first-child { color: var(--ash); }
.row > span:last-child { text-align: right; overflow-wrap: anywhere; }
.badge { font-size: 14px; }
.badge.ok { color: var(--bone); }
.badge.warn { color: var(--ash); }
.badge.bad { color: var(--red); }
.alert { border: 1px solid #3a1418; background: #120809; border-radius: 9px; padding: 12px 14px; font-size: 14px; color: var(--ash); margin-bottom: 16px; }
.links-row { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.links-row button { background: none; border: 0; color: var(--dust); font: inherit; cursor: pointer; transition: color .15s; }
.links-row button:hover { color: var(--bone); }
.links-row .danger:hover { color: #ff5a68; }
.status-icon { display: block; margin-bottom: 16px; color: var(--red); }
.status-icon.ok { color: var(--bone); }
.status-icon svg { width: 28px; height: 28px; display: block; }
.panel-wrap { width: 100%; display: grid; justify-items: center; }
.panel:has(.signin:not(.hidden)) { max-width: 360px; }
.signin { text-align: center; padding: 6px 0 2px; }
.signin-eye { width: 64px; height: auto; display: block; margin: 0 auto 18px; }
.signin p { margin-bottom: 22px; }
.signin-btn { width: 100%; }
.skeleton { color: var(--dust); text-align: center; padding: 40px 0; }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
