/* Home, claim and message pages */
* { box-sizing: border-box; }
html { background: #0b0b0b; }
html, body { margin: 0; min-height: 100%; color: #eee; font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.site-bg { position: fixed; inset: 0; z-index: -1; background: #4a4a4a; overflow: hidden; }
.site-bg i { position: absolute; border-radius: 45% 55% 50% 50%; background: #030303; filter: blur(24px); animation: d 26s ease-in-out infinite alternate; }
.site-bg i:nth-child(1) { width: 46vmax; height: 40vmax; left: -8%; top: -10%; }
.site-bg i:nth-child(2) { width: 40vmax; height: 46vmax; right: -10%; top: -6%; animation-duration: 32s; }
.site-bg i:nth-child(3) { width: 36vmax; height: 30vmax; left: 20%; bottom: -14%; animation-duration: 22s; }
.site-bg i:nth-child(4) { width: 28vmax; height: 30vmax; right: 8%; bottom: -8%; animation-duration: 36s; }
.site-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.55) 1px, transparent 1px); background-size: 4px 4px; }
@keyframes d { to { transform: translate(5vmax, 4vmax) rotate(25deg) scale(1.08); } }

.center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.glass {
  width: min(460px, 100%); padding: 34px 32px; border-radius: 24px;
  background: rgba(7, 7, 7, .88); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
}
.hero { text-align: center; }
.hand { font-family: 'Mansalva', cursive; font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0 0 8px; color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.7); }
.hero p { margin: 6px 0; color: #bbb; }
.hero a { color: #ddd; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 10px; }
.muted { color: #888 !important; } .small { font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #fff; color: #000;
  font: 600 15px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: #fff; }
.btn.discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.btn:hover { filter: brightness(1.08); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form h1 { text-align: center; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #aaa; }
.form input {
  height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: #fff; font: 15px Inter, system-ui, sans-serif; outline: none; width: 100%;
}
.form input:focus { border-color: rgba(255,255,255,.4); }
.prefix { display: flex; align-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.prefix span { padding-left: 12px; color: #777; font-size: 15px; white-space: nowrap; }
.prefix input { border: 0; background: transparent; padding-left: 2px; }
.note { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(88,101,242,.15); color: #c9cdfb; font-size: 13px; }
.error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(242,63,67,.15); color: #ffb3b5; font-size: 13px; }

/* ---------- /badges ---------- */
.wide { width: min(1080px, 100%); margin: 0 auto; padding: 28px 18px 60px; }
.bhead { text-align: center; margin: 10px auto 26px; max-width: 640px; }
.bhead .hand { font-size: 56px; }
.bhead p { color: #cfcfcf; margin: 6px 0 16px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.back { display: inline-block; margin-bottom: 8px; color: #ddd; text-decoration: none; font-size: 14px; opacity: .8; }
.back:hover { opacity: 1; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bcard {
  display: flex; gap: 16px; padding: 18px; border-radius: 20px;
  background: rgba(7, 7, 7, .88); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(6px);
}
.bicon {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.bicon { font-size: 26px; }
.bicon .bicon-x { filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
.bbody { min-width: 0; flex: 1; }
.bbody h2 { margin: 2px 0 4px; font: 400 24px/1.1 'Mansalva', cursive; color: #fff; text-shadow: 0 0 7px rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auto { font: 600 10px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #000; background: #fff; padding: 4px 7px; border-radius: 99px; text-shadow: none; }
.bbody p { margin: 0 0 10px; color: #bdbdbd; font-size: 14px; }
.holders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.holders .count { font-size: 12px; color: #8a8a8a; margin-right: 2px; }
.holders .count.none { font-style: italic; }
.holders a { font-size: 12px; color: #eee; text-decoration: none; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.holders a:hover { background: rgba(255,255,255,.15); }
.holders .more { font-size: 12px; color: #8a8a8a; }
@media (max-width: 520px) { .bhead .hand { font-size: 44px; } .bgrid { grid-template-columns: 1fr; } }

/* ---------- shared nav ---------- */
.sitenav { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; backdrop-filter: blur(6px); }
.sitenav a { padding: 6px 12px; border-radius: 99px; color: #bbb; text-decoration: none; font-size: 13px; font-weight: 500; }
.sitenav a:hover { color: #fff; }
.sitenav a.on { background: #fff; color: #000; }

/* ---------- /leaderboard ---------- */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.board {
  padding: 18px 16px 14px; border-radius: 20px; background: rgba(7, 7, 7, .88);
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(6px);
}
.board h2 { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; font: 400 26px/1.1 'Mansalva', cursive; color: #fff; text-shadow: 0 0 7px rgba(255,255,255,.6); }
.board h2 .ico { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 12px; }
.lb li:hover { background: rgba(255,255,255,.04); }
.lb .rank { width: 22px; flex: none; text-align: center; font: 400 18px 'Mansalva', cursive; color: #888; }
.lb .top .rank { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.8); }
.lb .top1 { background: rgba(255,255,255,.07); }
.lb .top1 .rank { font-size: 22px; }
.lb .who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.lb img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #222; flex: none; border: 1px solid rgba(255,255,255,.1); }
.lb .top1 img { width: 44px; height: 44px; box-shadow: 0 0 12px rgba(255,255,255,.35); }
.lb .nm { display: flex; flex-direction: column; min-width: 0; }
.lb .nm b { font: 400 17px/1.15 'Mansalva', cursive; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .nm small { color: #888; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.lb .val { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.lb .val b { font: 400 18px/1.1 'Mansalva', cursive; color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.5); }
.lb .val small { color: #888; font-size: 11px; }
.lb .mini { display: flex; gap: 2px; margin-top: 3px; }
.lb .mini i { display: inline-flex; color: #ddd; }
.lb .mini i { font-size: 12px; }
.lb-empty { color: #888; font-size: 14px; margin: 6px 4px 8px; font-style: italic; }
.lb-note { color: #777; font-size: 12px; margin: 10px 4px 0; }
@media (max-width: 960px) { .boards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* badge icons (built-in or custom SVG) */
.bicon-x { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(1em * var(--bs, 1)); height: calc(1em * var(--bs, 1)); line-height: 0; }
.bicon-x > svg, .bicon-x > .bi-img, .bicon-x > .bi-tint { width: 100%; height: 100%; display: block; }
.bicon-x > .bi-img { object-fit: contain; }

/* ---------- /i/<slug> image host ---------- */
.imgwrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; box-sizing: border-box; }
.imgbox { max-width: min(1100px, 100%); display: grid; place-items: center; }
.imgbox img, .imgbox video { display: block; max-width: 100%; max-height: 78dvh; height: auto; width: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #111; }
.imgmeta { width: min(720px, 100%); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.imgmeta .im-l { display: flex; flex-direction: column; min-width: 0; }
.imgmeta .im-l b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imgmeta .im-l span { color: #aaa; font-size: 13px; }
.imgmeta .im-l a { color: #fff; }
.imgmeta .im-r { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: #ff8a8a; }

/* ---------- report popup ---------- */
.rp-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); font: 14px/1.4 Inter, system-ui, sans-serif; }
.rp { width: min(420px, 100%); padding: 20px; border-radius: 18px; background: #101010; border: 1px solid rgba(255,255,255,.1); color: #eee; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.rp h2 { margin: 0 0 4px; font: 600 18px Inter, system-ui, sans-serif; color: #fff; text-shadow: none; }
.rp-sub { margin: 0 0 14px; color: #999; font-size: 13px; }
.rp-reasons { display: grid; gap: 6px; margin-bottom: 12px; }
.rp-reasons label { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: #1a1a1a; border: 1px solid #262626; cursor: pointer; }
.rp-reasons label:has(input:checked) { border-color: #fff; background: #222; }
.rp-reasons input { accent-color: #fff; margin: 0; }
.rp textarea { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px; background: #1a1a1a; border: 1px solid #262626; color: #eee; font: inherit; resize: vertical; }
.rp-err { color: #ff8a8a; margin: 8px 0 0; font-size: 13px; }
.rp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rp-btns button, .rp-btns a { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #333; background: #1a1a1a; color: #eee; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.rp-btns .rp-send { background: #fff; color: #000; border-color: #fff; }
.rp-btns .rp-send:disabled { opacity: .5; }
