/* Change the 4 colors here to re-theme the whole page. */
:root {
  --bg: #0e0a03;
  --panel: #1a1408;
  --text: #fff7e0;
  --muted: #b8a77c;
  --accent: #ffc632;
  --accent-2: #ff8c1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  position: relative;
  min-height: 100vh;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
/* Roblox-style studded baseplate: grid tiles with a raised stud in each cell, all CSS.
   Change --tile for stud size. Disabled automatically when a backgroundImage is set. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  --tile: 48px;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,198,50,.16) 0 9px, rgba(255,198,50,.05) 10px, transparent 12px),
    linear-gradient(rgba(255,198,50,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,198,50,.08) 1px, transparent 1px);
  background-size: var(--tile) var(--tile), var(--tile) var(--tile), var(--tile) var(--tile);
  background-position: 0 0, 0 0, 0 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 40%, rgba(0,0,0,.2));
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 40%, rgba(0,0,0,.2));
}
body.has-bg::before { display: none; }
body.has-bg {
  background-size: cover; background-position: center; background-attachment: fixed;
}
body.has-bg::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: rgba(14,10,3,.72); /* darken custom image so text stays readable */
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
h2 { font-size: 1.5rem; margin: 0 0 14px; }
section { margin: 48px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 64px 0 40px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,198,50,.22), transparent 70%);
}
.logo {
  width: 120px; height: 120px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; color: #000;
  overflow: hidden;
}
.logo.has-img { background: none; border-radius: 0; width: 200px; height: 140px; }
.logo img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 12px 30px rgba(255,180,40,.35)); }
h1 { font-size: 2.6rem; margin: 0; letter-spacing: -.02em; }
.ticker { font-size: 1.3rem; color: var(--accent); font-weight: 700; margin: 4px 0 0; }
.tagline { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 10px auto 24px; }

.ca {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid #2e2410; border-radius: 12px;
  padding: 10px 14px; max-width: 100%;
}
.ca-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.ca code { word-break: break-all; font-size: .9rem; }
.ca button {
  border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer;
  background: var(--accent); color: #000; font-weight: 700;
}
.ca button:hover { filter: brightness(1.1); }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 16px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 1px solid #3d3015; color: var(--text); background: var(--panel);
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.1); }

.socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid #3d3015;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.social svg { width: 18px; height: 18px; fill: var(--accent); flex: 0 0 auto; }
.social:hover { border-color: var(--accent); }

/* Sections */

table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 14px; overflow: hidden; }
td { padding: 12px 16px; border-bottom: 1px solid #2e2410; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted); width: 40%; }


.lore { display: grid; gap: 12px; }
.lore-item { background: var(--panel); border: 1px solid #2e2410; border-radius: 14px; padding: 16px 18px; }
.lore-item h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--accent); }
.lore-item p { margin: 0; color: var(--muted); font-size: .95rem; }

#how-list { padding-left: 22px; }
#how-list li { margin: 8px 0; }

.disclaimer { color: var(--muted); font-size: .85rem; border-top: 1px solid #2e2410; padding-top: 20px; }

footer { color: var(--muted); font-size: .85rem; padding: 20px 20px 40px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--accent); color: #000; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .hero { padding-top: 44px; }
}
