/* BLACK WIZORLD — bright & warm. Cream, sunshine gold, deep warm ink.
   The black-and-gold lives in the logo; the world itself is bright. */
:root {
  --bg: #fff8ee;
  --card: #ffffff;
  --ink: #2b2118;
  --ink-soft: #6f5f4c;
  --gold: #c9a227;
  --gold-bright: #f2c94c;
  --sun: #ffb347;
  --accent: #e4572e;
  --green: #2e933c;
  --line: #f0e2c8;
  --shadow: 0 2px 14px rgba(120, 84, 20, 0.10);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  background: rgba(255, 248, 238, 0.96); border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: #000; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.2px; }
.brand-gold { color: var(--gold); }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a {
  padding: 6px 11px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
}
.topnav a.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.topnav a:hover { text-decoration: none; border-color: var(--gold); }

.wrap { max-width: 680px; margin: 0 auto; padding: 18px 14px 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
h1 { font-size: 1.55rem; margin: 4px 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.soft { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.center { text-align: center; }

/* Founding Week banner */
.founding-banner {
  background: linear-gradient(120deg, #ffe9a8, #ffd76e 55%, #ffc93c);
  border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.founding-banner h2 { margin: 0 0 4px; font-size: 1.2rem; }
.founding-count { font-size: 1.05rem; font-weight: 700; }
.progress { height: 12px; background: rgba(255,255,255,0.65); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--sun), var(--accent)); border-radius: 999px; }

/* Posts */
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--sun));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #5b4300; border: 2px solid #fff; box-shadow: var(--shadow);
}
.post-author { font-weight: 700; }
.post-handle { color: var(--ink-soft); font-size: 0.88rem; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 800; letter-spacing: 0.4px; vertical-align: middle; margin-left: 6px;
}
.badge-founding { background: #000; color: var(--gold-bright); }
.badge-first { background: var(--accent); color: #fff; }
.badge-promo { background: var(--gold); color: #fff; }
.post-body { white-space: pre-wrap; word-wrap: break-word; margin: 6px 0 10px; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 0.88rem; cursor: pointer; font-weight: 600; color: var(--ink);
}
.chip-btn:hover { border-color: var(--gold); }
.chip-btn.liked { background: #ffe9a8; border-color: var(--gold); }
.comments { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.comment { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.comment:last-child { border-bottom: none; }

textarea, input[type="text"], input[type="password"], input[type="number"], input[type="datetime-local"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: #fffdf8; color: var(--ink);
}
textarea { min-height: 74px; resize: vertical; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
.btn {
  display: inline-block; border: none; cursor: pointer; font: inherit; font-weight: 800;
  padding: 12px 20px; border-radius: 999px; background: var(--gold); color: #fff;
  box-shadow: var(--shadow);
}
.btn:hover { background: #b08d1e; text-decoration: none; }
.btn.big { font-size: 1.08rem; padding: 14px 28px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.warn { background: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.notice { border-radius: 12px; padding: 11px 13px; margin-bottom: 12px; font-weight: 600; }
.notice.good { background: #e5f6e8; border: 1px solid #bfe6c6; }
.notice.bad { background: #fdeceb; border: 1px solid #f5c6c0; }
.notice.gold { background: #fff3cf; border: 1px solid var(--gold); }

/* Wallet / store tables */
table.ledger { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.ledger td, table.ledger th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--accent); font-weight: 700; }
.balance-big { font-size: 2rem; font-weight: 900; color: var(--gold); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.pack { text-align: center; }
.pack .coins { font-size: 1.35rem; font-weight: 900; }
.wall-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.wall-num { font-size: 1.3rem; font-weight: 900; color: var(--gold); width: 52px; flex: none; text-align: right; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }

.foot { text-align: center; padding: 26px 14px 40px; color: var(--ink-soft); }
.foot-mark { width: 44px; height: 44px; border-radius: 50%; background: #000; }
.foot-links a { color: var(--ink-soft); }
.hero { text-align: center; padding: 26px 16px; }
.hero img { width: 110px; height: 110px; border-radius: 50%; background: #000; box-shadow: var(--shadow); }
.hero h1 { font-size: 1.9rem; }
