@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --felt: #0c4a2a;          /* deep casino felt green */
  --felt-dark: #08321d;     /* darker felt for depth */
  --gold: #e2b84a;          /* casino gold */
  --gold-dark: #b8912f;
  --red: #d7090e;
  --red-dark: #a5050a;
  --black: #111;
  --white: #fff;
  --muted: #a9c4b3;         /* muted green-grey for felt text */
  --line: rgba(226, 184, 74, 0.25); /* gold-tinted divider */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Press Start 2P', monospace;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(226,184,74,0.12), transparent 60%),
    var(--felt);
  color: var(--white);
  line-height: 2;
  font-size: 10px;
  -webkit-font-smoothing: none;
}

a { color: inherit; text-decoration: none; }

img { image-rendering: pixelated; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- nav ---------- */
.nav {
  border-bottom: 2px solid var(--gold);
  background: var(--felt-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gold);
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 9px;
}
.links a { color: var(--muted); padding: 4px 0; }
.links a:hover { color: var(--white); }
.links a.active { color: var(--gold); }

.connect {
  font-size: 9px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Press Start 2P', monospace;
}
.connect:hover { background: #f0cf74; }
.connect.connected { background: var(--gold); color: var(--black); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 56px 20px 40px;
}
.hero .logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px var(--gold);
}
.hero h1 {
  font-size: 28px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--white);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}
.hero h1 span { color: var(--gold); }
.hero .tag {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.hero .tag strong { color: var(--gold); }
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-size: 11px;
  border-radius: 4px;
  padding: 14px 22px;
  cursor: pointer;
  border: none;
  font-family: 'Press Start 2P', monospace;
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(226,184,74,0.12); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
  color: var(--gold);
}
.section .lead {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 10px;
}

/* ---------- rules / list ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  list-style: none;
}
.rules li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(0,0,0,0.22);
}
.rules li b { display: block; font-size: 11px; margin-bottom: 10px; color: var(--gold); }
.rules li span { color: var(--muted); font-size: 9px; line-height: 1.9; }
.rules li b.red { color: var(--red); }

/* ---------- steps ---------- */
.steps { list-style: none; max-width: 640px; margin: 0 auto; }
.steps li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps .num {
  flex: 0 0 34px;
  height: 34px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.steps b { font-size: 11px; color: var(--white); }
.steps span { color: var(--muted); font-size: 9px; line-height: 1.9; }

/* ---------- panel (mint / casino) ---------- */
.panel {
  max-width: 480px;
  margin: 48px auto;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  background: rgba(0,0,0,0.22);
  box-shadow: 0 8px 0 rgba(0,0,0,0.3);
}
.panel .panel-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}
.panel h2 { font-size: 16px; font-weight: 400; color: var(--gold); }
.panel .sub { color: var(--muted); font-size: 9px; margin: 14px 0 22px; line-height: 1.9; }
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  text-align: left;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .k { color: var(--muted); }
.stat-row .v { font-weight: 400; word-break: break-all; color: var(--white); }
.amount { font-size: 16px; margin: 6px 0 2px; }
.amount small { font-size: 10px; color: var(--muted); }

.status {
  margin: 18px 0;
  font-size: 9px;
  color: var(--muted);
  min-height: 22px;
  line-height: 1.9;
}
.status.ok { color: #4ade80; }
.status.err { color: var(--red); }

.panel .btn { width: 100%; margin-top: 10px; }
.panel .btn:disabled { opacity: 0.4; cursor: not-allowed; }

.config-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--black);
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  letter-spacing: 1px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  margin-top: 20px;
}
footer .x-link { color: var(--gold); font-size: 11px; }
footer .x-link:hover { text-decoration: underline; }
.disclaimer {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 8px;
  color: var(--muted);
  line-height: 2;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 16px; }
  .links { gap: 12px; }
  .nav-inner { gap: 12px; }
  .brand span { display: none; }
  .connect { padding: 10px 12px; font-size: 8px; }
}
