:root {
  --bg: #0f0b0b;          /* page */
  --surface: #151010;     /* content area behind cards */
  --card: #1d1616;        /* cards */
  --card-2: #261d1d;      /* inputs, rows */
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b9adad;
  --red: #e5262b;         /* brand red from the logo */
  --red-hover: #ff3d42;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 60rem;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Alexandria", sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Phones: no blue box when tapping or holding buttons, links and pictures (text like the bio stays copyable) */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="tab"], [role="button"], kbd, img, svg, .btn, .chip, .texture-card {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
img { -webkit-user-drag: none; }
/* No focus ring after a tap or click; keyboard users still get one */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
svg { flex-shrink: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 11, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; border: 2px solid #000; }
.top-socials { display: flex; gap: 0.35rem; }
.top-socials a {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.top-socials a:hover { background: var(--card-2); transform: translateY(-2px); }
.top-socials svg { width: 1.1rem; height: 1.1rem; fill: #fff; }

/* ---------- Banner ---------- */
.banner {
  position: relative;
  height: clamp(11rem, 26vw, 17rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(229, 38, 43, 0.35), transparent 70%),
    linear-gradient(180deg, #1a0f0f, #0f0b0b);
}
.banner-bg {
  position: absolute; inset: 0;
  background: url("/assets/bg.svg") 50% 100% / auto 100% repeat-x;
  opacity: 1;
}
/* Rising red bubbles (drawn by app.js) */
.banner-fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.banner-logo {
  position: relative;
  z-index: 1;
  width: min(32rem, 80%);
  margin-top: -1.5rem;
  transition: transform 1.125s ease;
  animation: float 6s ease-in-out infinite;
}
.banner-logo:hover { transform: scale(1.08); }
@keyframes float { 50% { translate: 0 -6px; } }

/* ---------- Profile row ---------- */
/* Only the avatar reaches up into the banner; name and buttons always start below its edge */
.profile {
  --overlap: 3.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}
.profile-avatar {
  flex-shrink: 0;
  width: 8rem; height: 8rem;
  margin-top: calc(-1 * (var(--overlap) + 0.9rem));
  border: 7px solid #000;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 3px var(--bg);
  transition: transform 3s ease;
}
.profile-avatar:hover { transform: rotate(10deg); }
.profile-info { flex: 1; min-width: 0; padding-top: 0.2rem; }
.profile-info h1 { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.name-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* LIVE badge: shown while GiftCraft reports a TikTok / YouTube live */
.live-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem; border-radius: 2rem;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 0 0 0 rgba(229, 38, 43, 0.7);
  animation: live-pulse 1.8s ease-out infinite;
  transition: transform 0.2s var(--ease);
}
.live-badge[hidden] { display: none; }
.live-badge:hover { transform: scale(1.06); }
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; animation: live-blink 1.2s ease-in-out infinite; }
.live-where { font-weight: 400; letter-spacing: 0; opacity: 0.9; }
.live-where:not(:empty)::before { content: "· "; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 38, 43, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(229, 38, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 38, 43, 0); }
}
@keyframes live-blink { 50% { opacity: 0.35; } }

.supporters-line { display: flex; align-items: center; gap: 0.4rem; margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.supporters-line svg { width: 1rem; height: 1rem; fill: var(--red); }
.profile-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; padding-top: 0.3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 2.9rem; padding: 0 1.4rem;
  border: 0; border-radius: 2rem;
  font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; fill: var(--ic, currentColor); }
.btn:hover { transform: scale(1.0425); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px -8px rgba(229, 38, 43, 0.8); }
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 10px 28px -8px rgba(229, 38, 43, 0.9); }
.btn-light { background: #fff; color: #000; box-shadow: 0 0 0 2px #000; }
.btn-light:hover { background: #f3f3f3; }
.btn-light.yt { color: #f70000; }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 3.6rem; padding: 0 2.2rem; font-size: 1.05rem; }

.btn-round {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%;
  background: var(--card-2); cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.btn-round:hover { background: #352828; transform: scale(1.06); }
.btn-round svg { width: 1.2rem; height: 1.2rem; fill: #fff; }

/* "..." menu */
.profile.menu-open { z-index: 40; } /* above the sticky tab bar (20) and top bar (30) */
.more { position: relative; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  min-width: 13rem; padding: 0.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  transform-origin: top right;
  animation: pop 0.2s var(--ease);
}
.more-menu a, .more-menu button {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.6rem 0.75rem; border: 0; border-radius: 0.6rem; background: none;
  text-decoration: none; font-size: 0.9rem; text-align: left; cursor: pointer;
  transition: background-color 0.15s ease;
}
.more-menu a:hover, .more-menu button:hover { background: var(--card-2); }
.more-menu svg { width: 1.05rem; height: 1.05rem; fill: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(0.95) translateY(-4px); } }

/* ---------- Tabs ---------- */
.tabs-bar {
  position: sticky; top: 3.5rem; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tabs { position: relative; display: flex; gap: 0.5rem; }
.tabs a {
  padding: 0.95rem 0.9rem; text-decoration: none;
  font-weight: 600; font-size: 1rem; color: var(--muted);
  transition: color 0.25s ease;
}
.tabs a:hover { color: #fff; }
.tabs a[hidden], .more-menu [hidden] { display: none; }
.dashboard-card { min-height: 12rem; }
.tabs a[aria-selected="true"] { color: var(--red); }
.tab-indicator {
  position: absolute; bottom: -1px; left: 0; height: 3px; width: 0;
  background: var(--red); border-radius: 3px 3px 0 0;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}

/* ---------- Content ---------- */
.content { background: var(--surface); padding: 1.5rem 0 3rem; min-height: 60vh; }
.panel { animation: panel-in 0.45s var(--ease) both; }
/* swipe between tabs on phones: horizontal moves go to app.js, vertical scroll and pinch-zoom stay native */
.content { touch-action: pan-y pinch-zoom; }
.panel.slide-left { animation: slide-from-right 0.35s var(--ease) both; }
.panel.slide-right { animation: slide-from-left 0.35s var(--ease) both; }
@keyframes slide-from-right { from { opacity: 0; transform: translateX(48px); } }
@keyframes slide-from-left { from { opacity: 0; transform: translateX(-48px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1rem; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; align-items: stretch; }
.col { display: grid; gap: 1rem; }
.panel > .card, .panel > .grid-2 { margin-bottom: 1rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.card-head .card-title { margin: 0; }
.card-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 700; }
.title-ic { width: 1.15rem; height: 1.15rem; fill: var(--red); }
.muted { color: var(--muted); margin: 0 0 1rem; font-size: 0.92rem; }
.text-link { color: var(--muted); font-size: 0.88rem; text-underline-offset: 3px; transition: color 0.2s ease; }
.text-link:hover { color: #fff; }

.bio { margin: 0 0 1rem; }
.link-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.35rem; }
.link-list a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--muted); font-size: 0.92rem; text-underline-offset: 3px;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.link-list a:hover { color: #fff; transform: translateX(3px); }
.link-list svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.tags { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { padding: 0.2rem 0.65rem; border-radius: 1rem; background: var(--card-2); color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.received { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.95rem; }
.received svg { width: 1.1rem; height: 1.1rem; fill: var(--red); }
.stack { display: grid; gap: 0.75rem; }

.support-logo { width: 100%; margin: 0.25rem 0 0.9rem; transition: transform 0.3s var(--ease); }
.support-logo:hover { transform: scale(1.03); }
.mini-supporters { display: grid; gap: 0.5rem; margin: 1rem 0 0.75rem; }
.mini-supporters:empty { display: none; }

.featured { display: block; border-radius: 1rem; overflow: hidden; }
.featured img { transition: transform 0.6s var(--ease); }
.featured:hover img { transform: scale(1.04); }

/* Segmented control (setup) */
.segmented {
  position: relative; display: inline-flex; padding: 0.25rem;
  background: var(--card-2); border-radius: 2rem;
}
.segmented button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem; border: 0; border-radius: 2rem; background: none;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--muted);
  cursor: pointer; transition: color 0.25s ease;
}
.segmented button svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }
.segmented button[aria-selected="true"] { color: #000; }
.seg-indicator {
  position: absolute; top: 0.25rem; bottom: 0.25rem; left: 0; width: 0;
  background: #fff; border-radius: 2rem;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}

.setup-pane { animation: panel-in 0.4s var(--ease) both; }
.setup-title { width: auto; max-height: 4rem; margin: 0.5rem auto 1.25rem; }
.shots { display: grid; gap: 1rem; margin-top: 1rem; }
.shots:first-child { margin-top: 0; }
.shots-2 { grid-template-columns: repeat(2, 1fr); }
.shots-3 { grid-template-columns: repeat(3, 1fr); }
.shot { width: 100%; border-radius: 1rem; }
.shot.reveal { filter: saturate(0); transition: filter 3s ease, transform 0.4s var(--ease); }
.shot.reveal:hover { filter: saturate(1); transform: translateY(-3px); }

/* Spec / keybind tables (rebuilt from the old table images) */
.spec-table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  font-size: 0.92rem;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.6rem 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spec-table th, .spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}
.spec-table th {
  width: 38%;
  background: linear-gradient(90deg, #8e1317, #6c0f12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spec-table td { background: var(--card-2); font-weight: 400; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
/* rounded corners on the cells themselves (the caption sits outside the table's box) */
.spec-table tr:first-child th { border-top-left-radius: 1rem; }
.spec-table tr:first-child td { border-top-right-radius: 1rem; }
.spec-table tr:last-child th { border-bottom-left-radius: 1rem; }
.spec-table tr:last-child td { border-bottom-right-radius: 1rem; }
.spec-table tr:hover th { background: linear-gradient(90deg, #b3181d, #8a1317); }
.spec-table tr:hover td { background: #312424; }

kbd {
  display: inline-block;
  min-width: 1.9rem;
  padding: 0.18rem 0.55rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #000;
  font: 700 0.8rem "Alexandria", sans-serif;
  text-align: center;
  box-shadow: 0 2px 0 #8d8d8d, 0 0 0 1px #000;
}

/* ---------- Textures ---------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.panel-title-img { width: auto; max-height: 3.5rem; }
.chips { display: flex; gap: 0.5rem; }
.chip {
  padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card);
  font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.chip:hover { color: #fff; transform: translateY(-1px); }
.chip.is-active { background: #fff; border-color: #fff; color: #000; }

.texture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.texture-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden;
  cursor: pointer; text-align: left; padding: 0;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: panel-in 0.45s var(--ease) both;
}
.texture-card:hover { transform: translateY(-4px); border-color: rgba(229, 38, 43, 0.5); box-shadow: 0 18px 36px -18px rgba(229, 38, 43, 0.6); }
.texture-thumb { position: relative; aspect-ratio: 16 / 9; background: #120d0d; overflow: hidden; }
.texture-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.texture-thumb img.contain { object-fit: contain; padding: 1.25rem; }
.texture-card:hover .texture-thumb img { transform: scale(1.05); }
.badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  padding: 0.2rem 0.6rem; border-radius: 1rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.premium { background: #ffcc33; color: #2a1a00; }
.badge.free { background: #3ddc84; color: #002914; }
.texture-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.texture-body h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.texture-body p { margin: 0; color: var(--muted); font-size: 0.85rem; flex: 1; }
.price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.4rem; font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.price .free-label { color: #3ddc84; }

/* ---------- Posts ---------- */
.post-list { display: grid; gap: 1rem; max-width: 42rem; margin: 0 auto; }
.post { animation: panel-in 0.45s var(--ease) both; }
.post-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; color: var(--muted); font-size: 0.8rem; }
.post-pin {
  padding: 0.15rem 0.55rem; border-radius: 1rem;
  background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.post-title { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.post-image { width: 100%; border-radius: 1rem; margin: 0.25rem 0 0.9rem; }
.post-body { margin: 0; overflow-wrap: anywhere; }
.post-body a { color: #ff8a8d; text-underline-offset: 3px; }
.post-empty { text-align: center; }
.post-admin { margin-top: 0.9rem; }

/* Admin writing a post right on the Posts tab */
.composer { border-color: rgba(229, 38, 43, 0.45); }
.post-editor { display: grid; gap: 0.6rem; }
.post-editor [hidden] { display: none; }
.post-editor .post-image { margin: 0; }
.input, .textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 0.8rem;
  border: 1px solid var(--line); background: var(--card-2); color: #fff;
  font: 400 0.95rem "Alexandria", sans-serif;
}
.textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.check { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.8rem; }
.btn-sm { height: 2.4rem; padding: 0 1.1rem; font-size: 0.8rem; }
.post-empty p { margin: 0; }

/* ---------- Donate ---------- */
.donate-hero { text-align: center; padding: 2rem 1.5rem; }
.donate-logo { width: min(26rem, 90%); margin: 0 auto 1rem; }
.donate-hero p { color: var(--muted); margin: 0 auto 1.25rem; max-width: 30rem; }
.stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1.5rem; }
.stats div { display: grid; }
.stats strong { font-size: 1.6rem; font-weight: 700; }
.stats span { color: var(--muted); font-size: 0.82rem; }

.leaderboard, .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.leaderboard li, .feed li, .mini-supporters .row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.8rem; border-radius: 0.9rem; background: var(--card-2);
  animation: panel-in 0.4s var(--ease) both;
}
.rank {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: #352828; font-weight: 700; font-size: 0.85rem;
}
/* Top 3: pixel-art badges at 2× (40px) so every pixel stays square */
.rank-badge {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  margin: -0.3rem -0.3rem -0.3rem -0.3rem;
  image-rendering: pixelated;
  transition: transform 0.25s var(--ease);
}
.leaderboard li:hover .rank-badge { transform: scale(1.12) rotate(-6deg); }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { display: block; color: var(--muted); font-size: 0.8rem; }
.who .msg { color: #e8dede; font-size: 0.85rem; margin-top: 0.15rem; overflow-wrap: anywhere; }
.amt { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--red); flex-shrink: 0; }
/* Appreciation list entry with drboxco's like / reply */
.feed li.feed-item { display: block; }
.feed-main { display: flex; align-items: center; gap: 0.75rem; }
.liked {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin: 0.5rem 0 0 1.3rem; padding: 0.15rem 0.55rem; border-radius: 1rem;
  background: rgba(229, 38, 43, 0.15); color: #ff8a8d; font-size: 0.75rem; font-weight: 600;
}
.liked svg { width: 0.8rem; height: 0.8rem; fill: var(--red); }
.reply {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: 0.6rem 0 0 1.3rem; padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--red); border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(0, 0, 0, 0.25);
}
.reply img { width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; border: 2px solid #000; flex-shrink: 0; }
.reply-head { display: flex; align-items: baseline; gap: 0.5rem; }
.reply-head b { font-size: 0.85rem; color: #fff; }
.reply-head small { color: var(--muted); font-size: 0.75rem; }
.reply p { margin: 0.15rem 0 0; font-size: 0.88rem; overflow-wrap: anywhere; }

/* Admin-only buttons (shown when the /admin key is saved in this browser) */
.admin-tools { margin: 0.6rem 0 0 1.3rem; }
.reply-actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 1rem;
  background: transparent; color: var(--muted); font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s var(--ease);
}
.mini-btn svg { width: 0.8rem; height: 0.8rem; fill: currentColor; }
.mini-btn:hover { color: #fff; transform: scale(1.04); }
.mini-btn.on { background: var(--red); border-color: var(--red); color: #fff; }
.reply-form { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.reply-form[hidden] { display: none; }
.reply-form textarea {
  width: 100%; padding: 0.55rem 0.7rem; border-radius: 0.7rem; resize: vertical;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: #fff; font: 400 0.9rem "Alexandria", sans-serif;
}
.reply-note { color: var(--muted); }

.empty { color: var(--muted); font-size: 0.9rem; padding: 0.75rem 0; text-align: center; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); animation: fade 0.25s ease; }
.modal-box {
  position: relative; width: min(44rem, 100%); max-height: calc(100vh - 2rem); overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem;
  animation: pop 0.3s var(--ease);
}
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; background: rgba(0, 0, 0, 0.6); }
.modal-gallery { display: grid; gap: 0.5rem; padding: 0.75rem 0.75rem 0; }
.modal-gallery img { width: 100%; border-radius: 1rem; }
.modal-gallery img.contain { background: #120d0d; padding: 2rem; }
.modal-info { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: 0.6rem; }
.modal-info h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.modal-info p { margin: 0; color: var(--muted); }
.modal-info .btn { justify-self: start; margin-top: 0.4rem; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Sociabuzz popup (their script) ---------- */
/* Their floating "Beri Dukungan" button is hidden; only the popup is used, opened by our Donate button */
#wrapperFloatingBtn { display: none !important; }
#sbModal { border-radius: 1.25rem; overflow: hidden; }
.sb-close {
  position: fixed; top: 0.75rem; right: 0.75rem; z-index: 10000000;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: #000; cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
  animation: pop 0.2s var(--ease);
}
.sb-close[hidden] { display: none; }
.sb-close svg { width: 1.3rem; height: 1.3rem; fill: #fff; }

/* ---------- Footer ---------- */
.note { margin: 1.5rem 0 0; font-size: 0.72rem; font-weight: 100; text-align: center; color: var(--muted); }
.footer { text-align: center; padding: 1.75rem 1rem 2.25rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.footer p { margin: 0; }

/* ---------- Pixel icons (scripts/pixel-icons.mjs) ----------
   Drawn on a 20×20 grid, so they're shown at exactly 20px: one art pixel = one screen pixel, no blur. */
.top-socials svg, .more-menu svg, .link-list svg, .btn svg, .title-ic, .supporters-line svg {
  width: 20px; height: 20px;
}
/* Top-right socials at 2× (40px); the coins have a transparent rim, so the links sit closer together */
.top-socials { gap: 0; margin-right: -0.4rem; }
.top-socials a { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }
.top-socials a:hover { background: transparent; }
.top-socials svg { width: 40px; height: 40px; }
.top-socials a:hover svg, .link-list a:hover svg { transform: translateY(-1px); }
.top-socials svg, .link-list svg { transition: transform 0.2s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* not enough room for name + buttons side by side: buttons get their own row */
  .profile { flex-wrap: wrap; }
  .profile-actions { width: 100%; padding-top: 0; }
  .profile-actions .btn { flex: 1; }
  .texture-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.even { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile { --overlap: 2.75rem; gap: 0.9rem; padding-top: 0.75rem; }
  .profile-avatar { width: 6.25rem; height: 6.25rem; margin-top: calc(-1 * (var(--overlap) + 0.75rem)); border-width: 5px; border-radius: 1.2rem; }
  .profile-info h1 { font-size: 1.4rem; }
  .profile-actions .btn { padding: 0 1rem; }
  .tabs { justify-content: space-between; gap: 0; }
  .tabs a { flex: 1; text-align: center; padding: 0.9rem 0.25rem; }
  .card { padding: 1.1rem; }
  .card-head { flex-direction: column; align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 0.5rem 0.4rem; font-size: 0.7rem; }
  .shots-3 { grid-template-columns: repeat(2, 1fr); }
  .spec-table { font-size: 0.85rem; }
  .spec-table th, .spec-table td { padding: 0.65rem 0.75rem; }
  .spec-table th { width: 46%; font-size: 0.7rem; }
  .texture-grid { grid-template-columns: 1fr; }
  .panel-head { justify-content: center; }
  .stats { gap: 1.5rem; }
}
