/* OTAKU NOIR · Leaderboard / corkboard bulletin
 *
 * BONES ONLY — designed to look passable with CSS-only textures, but built
 * to accept real art:
 *   - corkboard texture     → assets/leaderboard/cork-bg.jpg
 *   - paper note texture    → assets/leaderboard/note-paper.jpg
 *   - portrait fallback     → assets/<char>/default/idle.gif
 *   - washi / kraft tape    → swap .cork-tape backgrounds for an image
 *
 * Each card is positioned absolutely so drag-to-rearrange is trivial; layout
 * is persisted per-browser in localStorage.swm.cork_layout.
 */

:root {
  --cork-bg:        #7d5a35;
  --cork-bg-dark:   #5a3f22;
  --cork-board-w:   1180px;
  --paper:          #f4ead1;
  --paper-shadow:   rgba(0, 0, 0, 0.35);
  --pin-red:        #d8443c;
  --pin-blue:       #5c89c4;
  --pin-gold:       #d8b347;
  --pin-green:      #6aa55a;
  --display-font:   "Bebas Neue", "JetBrains Mono", monospace;
  --paper-font:     "Caveat", cursive;
  --label-font:     "JetBrains Mono", monospace;
}

body {
  background: #2a1f12;
  min-height: 100vh;
  margin: 0;
}

.lb-main {
  padding: 80px 24px 40px;          /* clear the nav */
  display: flex;
  justify-content: center;
}

/* ─── corkboard frame ─────────────────────────────────────── */
.cork {
  position: relative;
  width: 100%;
  max-width: var(--cork-board-w);
  min-height: 78vh;
  padding: 50px 40px 70px;
  border-radius: 6px;
  /* Wooden frame outside, corkboard inside */
  background:
    /* Cork speckle — CSS-only placeholder; replace with cork-bg.jpg later */
    radial-gradient(ellipse 2px 1px at 10% 20%, rgba(0,0,0,0.25), transparent 100%),
    radial-gradient(ellipse 1px 2px at 30% 60%, rgba(0,0,0,0.18), transparent 100%),
    radial-gradient(ellipse 2px 2px at 50% 30%, rgba(255,255,255,0.06), transparent 100%),
    radial-gradient(ellipse 1px 2px at 70% 70%, rgba(0,0,0,0.20), transparent 100%),
    radial-gradient(ellipse 2px 1px at 85% 25%, rgba(0,0,0,0.15), transparent 100%),
    radial-gradient(circle at 25% 35%, rgba(0,0,0,0.10), transparent 25%),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,0.04), transparent 30%),
    linear-gradient(135deg, var(--cork-bg) 0%, var(--cork-bg-dark) 100%);
  background-image: url("../assets/leaderboard/cork-bg.jpg"),
    radial-gradient(circle at 25% 35%, rgba(0,0,0,0.10), transparent 25%),
    linear-gradient(135deg, var(--cork-bg) 0%, var(--cork-bg-dark) 100%);
  background-size: cover, auto, auto;
  background-position: center;
  /* Wooden frame */
  box-shadow:
    inset 0 0 0 14px #4a3220,
    inset 0 0 0 18px #2a1a0c,
    inset 0 0 90px rgba(0, 0, 0, 0.55),
    0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Decorative washi tape at top corners */
.cork-tape {
  position: absolute;
  top: 28px;
  width: 90px;
  height: 26px;
  background: linear-gradient(135deg, #fff5b1 0%, #f0d860 100%);
  opacity: 0.85;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.cork-tape-l { left: 30px; transform: rotate(-22deg); }
.cork-tape-r { right: 30px; transform: rotate(18deg); background: linear-gradient(135deg, #f0a8a8 0%, #d05870 100%); }

/* Header on the board itself */
.cork-header {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  color: #fff5d4;
  text-shadow: 0 2px 0 #2a1a0c, 0 0 18px rgba(0, 0, 0, 0.7);
}
.cork-title-jp {
  display: block;
  font-family: "Noto Sans JP", serif;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: rgba(255, 245, 212, 0.7);
  margin-bottom: 6px;
}
.cork-title {
  font-family: var(--display-font);
  font-size: 48px;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin: 0;
}
.cork-title .cork-subtitle {
  font-size: 18px;
  letter-spacing: 0.45em;
  color: rgba(255, 245, 212, 0.75);
  display: block;
  margin-top: -2px;
}

.cork-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 245, 212, 0.75);
}
.cork-meta .cork-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6aa55a;
  box-shadow: 0 0 8px #6aa55a;
}
.cork-meta .cork-dot.disconnected { background: #d8443c; box-shadow: 0 0 8px #d8443c; }

/* Edit-mode toggle (top right of corkboard) */
.cork-edit-toggle {
  position: absolute;
  top: 28px;
  right: 130px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 245, 212, 0.4);
  color: #fff5d4;
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.25em;
  padding: 6px 14px;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cork-edit-toggle:hover { background: rgba(0, 0, 0, 0.55); border-color: #fff5d4; }
.cork.is-editing .cork-edit-toggle {
  background: rgba(216, 179, 71, 0.3);
  border-color: var(--pin-gold);
  color: #fff5d4;
}

/* ─── board area (cards live here) ───────────────────────── */
.cork-board {
  position: relative;
  min-height: 800px;
  /* Cards positioned absolutely; we set explicit top/left from JS so drag
     works naturally. This div is just the bounding canvas. */
}

/* Edit mode shows a subtle grid behind the cards */
.cork.is-editing .cork-board {
  background-image:
    linear-gradient(rgba(255, 245, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 212, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── character card (the bulletin) ───────────────────────── */
.bulletin {
  position: absolute;
  width: 280px;
  background: var(--paper);
  background-image: url("../assets/leaderboard/note-paper.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  color: #2a1a0c;
  font-family: var(--label-font);
  padding: 28px 18px 18px;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.35);
  user-select: none;
  transition: transform 0.18s cubic-bezier(.2, 1, .3, 1), box-shadow 0.18s;
}
.bulletin:hover {
  transform: scale(1.03) rotate(0deg);
  z-index: 20;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.55),
    0 24px 50px rgba(0, 0, 0, 0.4);
}
.cork.is-editing .bulletin {
  cursor: grab;
  box-shadow:
    0 0 0 2px var(--pin-gold),
    0 8px 16px rgba(0, 0, 0, 0.5);
}
.cork.is-editing .bulletin.is-dragging {
  cursor: grabbing;
  transform: rotate(-2deg) scale(1.04);
  z-index: 50;
}

/* Pushpin — sits at the top center of each bulletin */
.bulletin-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%),
    radial-gradient(circle at 50% 60%, var(--pin-red) 0%, var(--pin-red) 60%, #5a1815 100%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
  z-index: 4;
}
.bulletin[data-pin="blue"]  .bulletin-pin { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), radial-gradient(circle at 50% 60%, var(--pin-blue) 0%, var(--pin-blue) 60%, #1c3759 100%); }
.bulletin[data-pin="gold"]  .bulletin-pin { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), radial-gradient(circle at 50% 60%, var(--pin-gold) 0%, var(--pin-gold) 60%, #5a4915 100%); }
.bulletin[data-pin="green"] .bulletin-pin { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), radial-gradient(circle at 50% 60%, var(--pin-green) 0%, var(--pin-green) 60%, #2a4520 100%); }

/* Card content */
.bulletin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bulletin-portrait {
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bulletin-portrait img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.bulletin-name-block { flex: 1; min-width: 0; }
.bulletin-name {
  font-family: var(--display-font);
  font-size: 24px;
  letter-spacing: 0.12em;
  line-height: 1;
  font-weight: 700;
  margin: 0;
}
.bulletin-arch {
  font-family: var(--label-font);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(42, 26, 12, 0.65);
  text-transform: uppercase;
  margin-top: 4px;
}

.bulletin-status {
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255, 250, 225, 0.5);
  border-left: 3px solid var(--pin-red);
  font-family: var(--paper-font);
  font-size: 16px;
  line-height: 1.2;
  color: #2a1a0c;
}
.bulletin-status .bs-mood {
  font-weight: 700;
  color: #5a3a1a;
}

.bulletin-section {
  margin-bottom: 10px;
}
.bulletin-section-label {
  font-family: var(--label-font);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(42, 26, 12, 0.55);
  text-transform: uppercase;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(42, 26, 12, 0.2);
  padding-bottom: 2px;
}

.bulletin-skill-row {
  display: grid;
  grid-template-columns: 60px 1fr 30px;
  gap: 6px;
  align-items: center;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.bulletin-skill-row .bs-label { font-weight: 700; }
.bulletin-skill-row .bs-bar {
  height: 6px;
  background: rgba(42, 26, 12, 0.12);
  border: 1px solid rgba(42, 26, 12, 0.25);
  position: relative;
  overflow: hidden;
}
.bulletin-skill-row .bs-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pin-gold), #fff3a0);
  transition: width 0.4s ease;
}
.bulletin-skill-row .bs-fill.bs-fill-combat    { background: linear-gradient(90deg, var(--pin-red), #ff8870); }
.bulletin-skill-row .bs-fill.bs-fill-focus     { background: linear-gradient(90deg, var(--pin-blue), #a0d8ff); }
.bulletin-skill-row .bs-fill.bs-fill-endurance { background: linear-gradient(90deg, var(--pin-green), #b8e898); }
.bulletin-skill-row .bs-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 11px;
}

.bulletin-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bulletin-trait {
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  background: rgba(216, 179, 71, 0.3);
  border: 1px solid rgba(90, 73, 21, 0.4);
  color: #5a4915;
  font-weight: 700;
}
.bulletin-trait.is-empty {
  background: transparent;
  border: 1px dashed rgba(42, 26, 12, 0.25);
  color: rgba(42, 26, 12, 0.5);
  font-style: italic;
  font-weight: 400;
}

.bulletin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 10px;
}
.bulletin-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(42, 26, 12, 0.15);
}
.bulletin-stat-row .bsr-label {
  color: rgba(42, 26, 12, 0.65);
  letter-spacing: 0.08em;
}
.bulletin-stat-row .bsr-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bulletin-note {
  margin-top: 8px;
  font-family: var(--paper-font);
  font-size: 14px;
  color: #4a3218;
  font-style: italic;
  line-height: 1.3;
  padding: 6px 4px;
  border-top: 1px dashed rgba(42, 26, 12, 0.25);
}
.bulletin-note.is-empty {
  color: rgba(42, 26, 12, 0.4);
  font-style: italic;
}

.bulletin-footer {
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(42, 26, 12, 0.5);
  text-align: right;
  text-transform: uppercase;
}

/* Footer notice on the corkboard */
.cork-footer {
  position: relative;
  margin-top: 40px;
  padding-top: 16px;
  text-align: center;
  color: rgba(255, 245, 212, 0.55);
  font-family: var(--label-font);
  font-size: 9px;
  letter-spacing: 0.25em;
}
.cork-footer-jp {
  display: block;
  font-family: "Noto Sans JP", serif;
  font-size: 11px;
  margin-bottom: 4px;
  color: rgba(255, 245, 212, 0.4);
}

/* Loading / empty state */
.cork-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 245, 212, 0.5);
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 0.25em;
}

/* ─── filter / sort toolbar ─────────────────────────────── */
.cork-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 245, 212, 0.25);
  color: #fff5d4;
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  flex-wrap: wrap;
}
.cork-toolbar .ct-label {
  color: rgba(255, 245, 212, 0.55);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.cork-toolbar .ct-select {
  background: rgba(255, 245, 212, 0.1);
  border: 1px solid rgba(255, 245, 212, 0.4);
  color: #fff5d4;
  font-family: var(--label-font);
  font-size: 11px;
  padding: 4px 8px;
  letter-spacing: 0.1em;
}
.cork-toolbar .ct-clear {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 245, 212, 0.4);
  color: #fff5d4;
  font-family: var(--label-font);
  font-size: 9px;
  letter-spacing: 0.25em;
  padding: 6px 12px;
  cursor: pointer;
  text-transform: uppercase;
}
.cork-toolbar .ct-clear:hover { background: rgba(255, 245, 212, 0.1); }

/* Fade non-matching bulletins when filtered */
.bulletin.is-filtered-out {
  opacity: 0.25;
  filter: grayscale(60%);
  pointer-events: none;
}

/* ─── bragging banners (achievements on cards) ─────────── */
.bulletin-banners {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.bulletin-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 22px;
  font-family: var(--label-font);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #fff5e0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  /* Ribbon tail effect on the right */
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}
.bulletin-banner::before {
  content: "★";
  position: absolute;
  left: 6px;
  font-size: 11px;
  color: rgba(255, 245, 212, 0.95);
}
.bulletin-banner.banner-gold    { background: linear-gradient(90deg, #b8851c, #d8b347); }
.bulletin-banner.banner-red     { background: linear-gradient(90deg, #9a2018, #d8443c); }
.bulletin-banner.banner-blue    { background: linear-gradient(90deg, #1c3759, #5c89c4); }
.bulletin-banner.banner-green   { background: linear-gradient(90deg, #2a4520, #6aa55a); }
.bulletin-banner.banner-purple  { background: linear-gradient(90deg, #4a1e6b, #8244c4); }
.bulletin-banner.banner-dark    { background: linear-gradient(90deg, #1a1a1a, #4a3220); color: #fff5a0; }

/* Section hiding via card_style.hide */
.bulletin[data-hide-status="1"]   .bulletin-status,
.bulletin[data-hide-training="1"] .bulletin-section[data-section="training"],
.bulletin[data-hide-traits="1"]   .bulletin-section[data-section="traits"],
.bulletin[data-hide-record="1"]   .bulletin-section[data-section="record"],
.bulletin[data-hide-note="1"]     .bulletin-note {
  display: none;
}

/* ─── per-card customize popover ───────────────────────── */
.bulletin-customize {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(42, 26, 12, 0.7);
  border: 1px solid rgba(255, 245, 212, 0.4);
  color: #fff5d4;
  font-size: 12px;
  cursor: pointer;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
}
.bulletin.is-mine .bulletin-customize { display: flex; }
.bulletin-customize:hover { background: var(--pin-gold); color: #2a1a0c; }

.customize-popover {
  position: absolute;
  top: 36px;
  right: 6px;
  z-index: 100;
  width: 240px;
  background: rgba(20, 15, 10, 0.96);
  border: 1px solid var(--pin-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  padding: 12px;
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #fff5d4;
}
.customize-popover[hidden] { display: none; }
.customize-popover h5 {
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 245, 212, 0.6);
  text-transform: uppercase;
}
.customize-popover .cp-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 245, 212, 0.2);
}
.customize-popover .cp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cp-pins { display: flex; gap: 6px; }
.cp-pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}
.cp-pin.is-active { border-color: #fff5d4; box-shadow: 0 0 8px rgba(255, 245, 212, 0.6); }
.cp-pin[data-pin="red"]   { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), var(--pin-red); }
.cp-pin[data-pin="blue"]  { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), var(--pin-blue); }
.cp-pin[data-pin="gold"]  { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), var(--pin-gold); }
.cp-pin[data-pin="green"] { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 30%), var(--pin-green); }

.cp-hide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.cp-hide-btn {
  background: transparent;
  border: 1px solid rgba(255, 245, 212, 0.3);
  color: rgba(255, 245, 212, 0.8);
  font-family: var(--label-font);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  cursor: pointer;
  text-transform: uppercase;
}
.cp-hide-btn:hover { border-color: #fff5d4; }
.cp-hide-btn.is-hidden {
  background: rgba(255, 68, 89, 0.2);
  border-color: var(--pin-red);
  color: #ffd0c8;
}
.cp-hide-btn.is-hidden::after { content: " ⊘"; }

.cp-portrait-select {
  width: 100%;
  background: rgba(255, 245, 212, 0.08);
  border: 1px solid rgba(255, 245, 212, 0.3);
  color: #fff5d4;
  font-family: var(--label-font);
  font-size: 10px;
  padding: 4px 6px;
}

.cp-status {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 245, 212, 0.55);
}
.cp-status.is-ok { color: #b8e898; }
.cp-status.is-error { color: #ffa090; }

/* ─── 牛舎掲示板 · public Herd Board ───
   Sits below the character corkboard on /leaderboard.html.
   Clean monospace table on dark — independent of the cork aesthetic. */
.herd-public {
  margin: 40px auto;
  max-width: 1100px;
  background: rgba(8, 8, 10, 0.92);
  border: 1px solid #2a2a2a;
  padding: 24px 28px;
  font-family: "JetBrains Mono", monospace;
  color: #e8e2d2;
}
.herd-public-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.herd-public-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #f48fb1;
}
.herd-public-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #fff;
  font-weight: 800;
}
.herd-public-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  margin-left: auto;
}

.herd-public-showrow {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(90deg, rgba(244, 143, 177, 0.12), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(244, 143, 177, 0.35);
  border-left: 3px solid #f48fb1;
  padding: 12px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.herd-public-cat-jp {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
}
.herd-public-cat-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}
.herd-public-last {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
}
.herd-public-last-label {
  display: block;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: #fbbf24;
  margin-bottom: 2px;
}
.herd-public-last-value {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.herd-public-last-sub {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.herd-public-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.herd-public-table thead th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 6px;
  border-bottom: 1px solid #2a2a2a;
}
.herd-public-table tbody td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e8e2d2;
}
.herd-public-table tbody tr:hover { background: rgba(244, 143, 177, 0.05); }
.hp-rank { color: rgba(255, 255, 255, 0.4); font-weight: 700; width: 32px; }
.hp-name { min-width: 160px; }
.hp-name-main {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.hp-name-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.hp-weight {
  font-weight: 800;
  color: #fbbf24;
  font-size: 14px;
}
.hp-unit {
  font-size: 9px;
  font-weight: 400;
  margin-left: 2px;
  opacity: 0.6;
}

.herd-public-empty {
  text-align: center;
  padding: 50px 20px;
  color: rgba(255, 255, 255, 0.45);
}
.herd-public-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.herd-public-loading {
  padding: 30px 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
}

.herd-public-past-title {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin: 28px 0 8px;
  padding-top: 18px;
  border-top: 1px solid #2a2a2a;
}
.herd-public-past {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.herd-public-past thead th {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.herd-public-past tbody td {
  padding: 6px 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

