* { box-sizing: border-box; margin: 0; }
:root {
  --bg: #07080f; --card: rgba(21, 24, 41, 0.72); --edge: rgba(129, 140, 190, 0.18);
  --edge-hi: rgba(240, 182, 41, 0.45);
  --text: #eef0fa; --dim: #9aa2c2; --gold: #f0b429; --gold-2: #ffd76a; --violet: #7c5cff;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body);
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden; position: relative;
}
/* ambient glows — subtle */
.glow { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.glow-a { width: 420px; height: 420px; top: -180px; right: -140px; background: rgba(124, 92, 255, 0.09); }
.glow-b { width: 380px; height: 380px; bottom: -160px; left: -160px; background: rgba(240, 180, 41, 0.06); }
/* film grain */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
header.top, main, footer { position: relative; z-index: 1; }
.mono-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--dim); font-weight: 400; }

header.top { padding: 18px 22px; display: flex; }
.brand {
  font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: 3px;
  text-decoration: none;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, #c77e10);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand span { display: block; color: var(--dim); -webkit-text-fill-color: var(--dim); font-family: var(--body); font-weight: 500; letter-spacing: 3px; font-size: 9.5px; margin-top: 3px; }

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 18px; }
footer { text-align: center; color: var(--dim); font-size: 12.5px; padding: 22px; }

h1, h2 { font-family: var(--display); }

/* ---------- landing ---------- */
.landing { max-width: 1020px; margin: 0 auto; position: relative; }
.deco { position: absolute; color: var(--gold); opacity: 0.5; font-size: 15px; pointer-events: none; }
.d1 { top: 30px; left: -6%; } .d2 { top: 46%; right: -4%; font-size: 22px; color: var(--dim); }
.d3 { bottom: 8%; left: 4%; font-size: 11px; } .d4 { top: 12%; right: 30%; color: var(--dim); }
main:has(.landing) { max-width: 1080px; }
.hero-l { display: grid; gap: 40px; align-items: center; padding: 30px 0 10px; grid-template-columns: 1fr; }
.kicker { color: var(--gold); letter-spacing: 5px; font-size: 11.5px; font-weight: 700; margin-bottom: 14px; }
.hero-l h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.14; font-weight: 900; letter-spacing: 0.5px; }
.hero-l h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pitch { color: var(--dim); font-size: 16.5px; line-height: 1.65; max-width: 46ch; margin: 18px 0 26px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta {
  display: inline-block; font-weight: 700; font-size: 16px; padding: 15px 28px;
  border-radius: 12px; text-decoration: none; color: #14131e;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 70%);
  box-shadow: 0 8px 30px rgba(240, 180, 41, 0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(240, 180, 41, 0.4), inset 0 1px 0 rgba(255,255,255,0.35); }
.cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--edge); box-shadow: none; }
.cta.ghost:hover { border-color: var(--edge-hi); }

/* the holo member card */
.cardstack { position: relative; height: 360px; display: grid; place-items: center; }
.tcard { width: 235px; height: 330px; border-radius: 18px; position: absolute; }
.tc-back {
  background: linear-gradient(160deg, #1c2140, #0d101f);
  border: 1px solid var(--edge);
  transform: rotate(9deg) translate(26px, 8px);
}
.tc-front {
  background:
    linear-gradient(165deg, rgba(30, 34, 60, 0.96), rgba(13, 15, 28, 0.98)) padding-box,
    conic-gradient(from 180deg, #ffd76a, #ff8ac2, #7c5cff, #4ad8ff, #ffd76a) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 16px; display: flex; flex-direction: column;
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}
.tc-shine {
  position: absolute; inset: 0;
  background: conic-gradient(from 210deg at 60% 30%, transparent 0 18%, rgba(255,215,106,0.14) 26%, rgba(124,92,255,0.16) 38%, rgba(74,216,255,0.12) 50%, transparent 60%);
  animation: shine 7s linear infinite;
}
@keyframes float { 0%,100% { transform: rotate(-4deg) translateY(0);} 50% { transform: rotate(-4deg) translateY(-12px);} }
@keyframes shine { to { transform: rotate(360deg) scale(1.6); } }
.tc-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 2.5px; color: var(--gold); font-weight: 700; }
.tc-rarity { color: var(--gold-2); }
.tc-art {
  flex: 1; display: grid; place-items: center; margin: 14px 0;
  font-family: var(--display); font-weight: 900; font-size: 92px;
  background: linear-gradient(150deg, var(--gold-2), var(--gold) 45%, #8a5a0a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid var(--edge); border-radius: 12px;
}
.tc-name { font-family: var(--display); font-weight: 700; letter-spacing: 2px; font-size: 14px; text-align: center; color: var(--text); }
.tc-serial { font-family: var(--mono); color: var(--dim); font-size: 9px; letter-spacing: 1.5px; text-align: center; margin-top: 6px; }
.tc-barcode {
  height: 16px; margin: 10px 26px 2px; opacity: 0.7;
  background: repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 3px, var(--text) 3px 5px, transparent 5px 6px, var(--text) 6px 7px, transparent 7px 10px);
}

/* marquee strip */
.marquee {
  overflow: hidden; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: 11px 0; margin: 40px 0 6px; background: rgba(240, 180, 41, 0.04);
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 28s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--gold); opacity: 0.85; padding-right: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* bento */
.bento { margin: 40px 0 10px; display: grid; gap: 14px; }
.perk {
  background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 26px;
  backdrop-filter: blur(8px); transition: border-color 0.2s; position: relative;
}
.perk:hover { border-color: var(--edge-hi); }
.perk .num {
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  border: 1px solid rgba(240, 180, 41, 0.35); border-radius: 999px; padding: 3px 10px;
  position: absolute; top: 22px; right: 22px;
}
.perk h3 { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.5px; padding-right: 60px; }
.perk p { color: var(--dim); font-size: 14.5px; line-height: 1.6; }

.closer { text-align: center; padding: 56px 0 34px; }
.closer .mono-tag { margin-bottom: 14px; display: block; color: var(--gold); opacity: 0.75; }
.closer h2 { font-size: clamp(21px, 3vw, 30px); font-weight: 700; margin-bottom: 24px; color: var(--text); text-transform: none; letter-spacing: 0.5px; line-height: 1.3; }

footer .foot-line { font-family: var(--display); font-weight: 700; letter-spacing: 2px; font-size: 12px; color: var(--text); margin-bottom: 6px; }
footer .foot-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; }

@media (min-width: 860px) {
  .hero-l { grid-template-columns: 1.15fr 0.85fr; padding: 52px 0 10px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .perk.wide { grid-column: 1 / -1; padding-right: 200px; }
  .cardstack { height: 420px; }
}

/* ---------- app ---------- */
.card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 16px;
  padding: 22px; margin-bottom: 16px; backdrop-filter: blur(8px);
}
h1 { font-size: 21px; margin-bottom: 14px; font-weight: 700; }
h2 { font-size: 13px; margin-bottom: 12px; color: var(--dim); letter-spacing: 2px; font-weight: 500; text-transform: uppercase; }
label { display: block; margin-bottom: 13px; font-size: 14px; color: var(--dim); }
input {
  width: 100%; margin-top: 5px; padding: 13px; border-radius: 10px;
  border: 1px solid var(--edge); background: rgba(7, 8, 15, 0.6); color: var(--text);
  font-size: 16px; font-family: var(--body); transition: border-color 0.15s;
}
input:focus { outline: none; border-color: var(--edge-hi); }
button {
  width: 100%; padding: 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 70%); color: #14131e;
  font-size: 16px; font-weight: 700; font-family: var(--body);
  box-shadow: 0 6px 22px rgba(240, 180, 41, 0.22);
}
.error { background: rgba(125, 43, 67, 0.25); border: 1px solid #7d2b43; color: #ff9db4; padding: 11px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.flash { background: rgba(44, 110, 73, 0.22); border: 1px solid #2c6e49; color: #7ee2a8; padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; }
.alt, .sub { color: var(--dim); font-size: 14px; margin-top: 13px; line-height: 1.5; } .alt a { color: var(--gold); }
.auth { margin-top: 26px; }

.hero { text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background: conic-gradient(from 220deg at 50% -10%, transparent 40%, rgba(255,215,106,0.1) 50%, rgba(124,92,255,0.12) 58%, transparent 68%);
}
.hello { color: var(--dim); }
.balance .num {
  font-family: var(--display); font-size: 54px; font-weight: 900; display: block; line-height: 1.25;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.balance .label { color: var(--dim); letter-spacing: 4px; font-size: 11px; text-transform: uppercase; }
.checkin { margin-top: 18px; }
.checkin.done { background: transparent; border: 1px solid var(--edge); color: var(--dim); box-shadow: none; }
.ledger { list-style: none; } .ledger li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 14.5px; }
.ledger li:last-child { border-bottom: 0; }
.delta.pos { color: #7ee2a8; font-weight: 600; } .delta.neg { color: #ff9db4; font-weight: 600; }
.logout button { background: transparent; border: 1px solid var(--edge); color: var(--dim); box-shadow: none; }
.adminlink { color: var(--gold); text-decoration: none; font-weight: 600; }
.search { display: flex; gap: 8px; margin-bottom: 14px; } .search button { width: auto; padding: 0 20px; }
.member { border-top: 1px solid var(--edge); padding: 13px 0; }
.who { font-size: 14px; margin-bottom: 9px; }
.award { display: flex; gap: 8px; } .award input[name=delta] { max-width: 92px; } .award button { width: auto; padding: 0 18px; }
