:root {
  --bg: #fff9ec;
  --ink: #2b2a2e;
  --muted: #5a5560;
  --hint: #7a7370;
  --pink-1: #ff8ad2;
  --pink-2: #ff4fb3;
  --pink-3: #e8329a;
  --pink-edge: #b8207a;
  --green-1: #d9ff86;
  --green-2: #b3ef47;
  --green-3: #8fd222;
  --green-edge: #6fa818;
  --cyan-1: #a9ecff;
  --cyan-2: #7fe0ff;
  --cyan-3: #5cc9ee;
  --cyan-edge: #43b3d6;
  --cream-1: #fff;
  --cream-2: #fff0d2;
  --cream-edge: #ead9b6;
  --shadow: #f2dfb8;
  --font: "Zen Maru Gothic", sans-serif;
  --gloss: radial-gradient(ellipse 60% 40% at 28% 22%, rgba(255,255,255,.95), rgba(255,255,255,0));
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-3); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.svg-filters { position: absolute; width: 0; height: 0; }

.deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: url(#wob);
}
.deco-pink {
  top: -14px;
  right: 120px;
  width: 54px;
  height: 36px;
  border-radius: 60% 40% 55% 45% / 50% 70% 30% 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 14%, #ffd6ee 15%, #ff5cc0 75%);
  box-shadow: 0 6px 10px rgba(255,92,192,.3);
}
.deco-green {
  bottom: 40px;
  left: -10px;
  width: 40px;
  height: 52px;
  border-radius: 50% 50% 40% 60% / 70% 60% 40% 30%;
  background: radial-gradient(circle at 35% 25%, #fff 0 12%, #e6ffb0 13%, #a3e63a 70%);
  box-shadow: 0 6px 10px rgba(120,200,30,.3);
}
.site-header, main { position: relative; z-index: 1; }

.show-sp { display: none !important; }
@media (max-width: 800px) {
  .hide-sp { display: none !important; }
  .show-sp { display: revert !important; }
  .deco-pink { right: 72px; width: 40px; height: 26px; }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 36px 18px;
}
.site-header.is-compact { padding-bottom: 10px; }
.site-header.has-back { justify-content: space-between; }
.logo img { height: 64px; filter: drop-shadow(0 4px 0 rgba(120, 80, 20, .12)); }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.site-nav a.is-current { color: var(--pink-3); }
.header-spacer { width: 44px; }

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  border: 0;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  border-radius: 14px 12px 16px 12px / 12px 16px 12px 14px;
  box-shadow: inset 0 -3px 4px rgba(200,150,60,.25), 0 3px 0 var(--cream-edge);
}

.btn-primary, .btn-cyan, .btn-cream {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  height: 46px;
  padding: 0 26px;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary {
  color: #3a0f26;
  border-radius: 30px 24px 28px 34px / 26px 34px 24px 30px;
  background: var(--gloss), linear-gradient(180deg, var(--pink-1), var(--pink-2) 55%, var(--pink-3));
  box-shadow:
    inset 0 -6px 8px rgba(150,0,80,.35),
    inset 0 2px 2px rgba(255,255,255,.9),
    0 5px 0 var(--pink-edge),
    0 10px 16px rgba(232,50,154,.25);
}
.btn-primary:disabled {
  opacity: 0.55;
  pointer-events: none;
}
.btn-primary::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -11px;
  width: 12px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: linear-gradient(180deg, var(--pink-3), #c4247f);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.5);
  pointer-events: none;
}
.btn-primary.btn-lg { height: 56px; padding: 0 36px; font-size: 16px; font-weight: 900; white-space: nowrap; flex: none; }
.btn-cyan {
  color: #0e2a36;
  font-weight: 900;
  border-radius: 26px 20px 24px 30px / 22px 30px 20px 26px;
  background: var(--gloss), linear-gradient(180deg, var(--cyan-1), var(--cyan-2) 50%, var(--cyan-3));
  box-shadow:
    inset 0 -5px 7px rgba(0,90,130,.28),
    inset 0 2px 2px rgba(255,255,255,.9),
    0 4px 0 var(--cyan-edge);
}
.btn-cream {
  border-radius: 20px 16px 18px 22px / 18px 22px 16px 20px;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  box-shadow: inset 0 -3px 4px rgba(200,150,60,.25), inset 0 1px 0 #fff, 0 3px 0 var(--cream-edge);
}

.page-home, .page-ranking, .page-category { padding: 0 36px 48px; }
.page-submit, .page-rules { max-width: 720px; margin: 0 auto; padding: 8px 36px 48px; }
.page-submit { max-width: 640px; }
.page-detail { padding: 0 36px 48px; }

.ranking-head, .category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.page-home .category-head { justify-content: flex-end; }
.lead, .muted { color: var(--muted); }
.lead { line-height: 1.6; }
.inline-link {
  color: var(--pink-3);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.inline-link:hover { color: var(--pink-edge); }
.muted { color: var(--hint); }
h1 { margin: 0 0 8px; font-size: 30px; font-weight: 900; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px 12px 18px 10px / 10px 12px 26px 12px;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  box-shadow: inset 0 -3px 4px rgba(200,150,60,.25), inset 0 1px 0 #fff, 0 3px 0 var(--cream-edge);
}
.chip::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 9px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: var(--cream-edge);
  pointer-events: none;
}
.chip.is-on, .chip.pick.is-picked {
  color: #3a0f26;
  background: var(--gloss), linear-gradient(180deg, var(--pink-1), var(--pink-2) 55%, var(--pink-3));
  box-shadow:
    inset 0 -5px 7px rgba(150,0,80,.35),
    inset 0 1px 0 rgba(255,255,255,.8),
    0 3px 0 var(--pink-edge);
}
.chip.is-on::after, .chip.pick.is-picked::after { background: var(--pink-3); }
.chip.pick.is-picked {
  color: #1f2a10;
  background: var(--gloss), linear-gradient(180deg, var(--green-1), var(--green-2) 55%, var(--green-3));
  box-shadow:
    inset 0 -5px 7px rgba(70,120,0,.3),
    inset 0 1px 0 rgba(255,255,255,.8),
    0 3px 0 var(--green-edge);
}
.chip.pick.is-picked::after { background: var(--green-edge); }
.chip.pick { border: 0; height: 44px; padding: 0 18px; }

.cat-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 6px 6px 14px 8px / 6px 6px 22px 10px;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  box-shadow: inset 0 -2px 3px rgba(200,150,60,.25), 0 2px 0 var(--cream-edge);
}
.cat-label::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -6px;
  width: 7px;
  height: 8px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: var(--cream-edge);
  pointer-events: none;
}

.masonry { columns: 3; column-gap: 18px; }
form.is-locked { pointer-events: none; }
form.is-locked button,
form.is-locked input[type="submit"] { opacity: 0.55; }

.feed-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.feed-loader { display: flex; gap: 6px; }
.feed-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 45% 55% / 60% 55% 45% 40%;
  background: linear-gradient(180deg, var(--pink-1), var(--pink-3));
  animation: feed-blob 0.9s ease-in-out infinite;
}
.feed-loader span:nth-child(2) {
  animation-delay: 0.15s;
  background: linear-gradient(180deg, var(--green-1), var(--green-3));
}
.feed-loader span:nth-child(3) {
  animation-delay: 0.3s;
  background: linear-gradient(180deg, var(--cyan-1), var(--cyan-3));
}
@keyframes feed-blob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08, 0.86); }
}
.post-card {
  break-inside: avoid;
  margin: 0 0 18px;
  position: relative;
  background: #fff;
  padding: 10px 10px 12px;
  box-shadow: inset 0 1px 0 #fff, 0 10px 0 -4px var(--shadow), 0 16px 26px rgba(120,80,20,.12);
}
.card-nub {
  position: absolute;
  right: -9px;
  top: 42%;
  width: 16px;
  height: 22px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 18%, #fff 19%, var(--shadow) 60%);
  box-shadow: 2px 3px 4px rgba(120,80,20,.15);
}
.card-media img, .detail-image-card img, .rank-card img {
  width: 100%;
  background: repeating-linear-gradient(45deg, #f3ede2 0 10px, #faf6ee 10px 20px);
}
.card-media img, .detail-image-card img {
  height: auto;
  object-fit: contain;
}
.card-media img { border-radius: 10px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin: 10px 2px 8px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.35; min-width: 0; }
@media (max-width: 800px) {
  .masonry { columns: 2; column-gap: 14px; }
  .masonry .post-card { margin-bottom: 14px; padding: 8px; }
  .masonry .card-media img { border-radius: 8px; }
  .page-home .card-meta .cat-label { display: none; }
  .masonry .card-title { display: block; margin: 8px 2px; }
  .masonry .variant-pair-row { flex-direction: column; }
}

.rank-badge {
  position: absolute;
  left: -8px;
  top: -10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  font-size: 17px;
  font-weight: 900;
  color: #3a0f26;
  border-radius: 50% 50% 45% 55% / 60% 55% 45% 40%;
  background: var(--gloss), linear-gradient(180deg, var(--pink-1), var(--pink-2) 60%, var(--pink-3));
  box-shadow: inset 0 -4px 6px rgba(150,0,80,.35), 0 4px 8px rgba(232,50,154,.35);
}
.rank-badge::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -9px;
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: var(--pink-3);
  pointer-events: none;
}
.rank-badge.rank-lg {
  width: 70px;
  height: 56px;
  font-size: 21px;
  left: -10px;
  top: -12px;
}
.voted-seal {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 10px 10px 16px 10px / 10px 10px 22px 12px;
  box-shadow: inset 0 -2px 3px rgba(40,80,0,.2), 0 2px 0 rgba(80,120,40,.28);
}
.voted-up {
  background: linear-gradient(180deg, var(--green-1), var(--green-3));
  color: #1f2a10;
}
.voted-down {
  background: linear-gradient(180deg, var(--cyan-1), var(--cyan-3));
  color: #0e2a36;
}

.vote-pair { display: flex; gap: 8px; }
.vote-pair form { flex: 1; min-width: 0; display: flex; }
.vote-pair form .vote-btn { width: 100%; }
.variant-pair-stack, .variant-detail-stack { flex-direction: column; }
.variant-rank-row form { flex: none; }
.vote-btn {
  position: relative;
  flex: 1;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 900;
}
.variant-detail-row .vote-btn { height: 64px; }
.variant-detail-stack .vote-btn { height: 56px; }
.variant-rank-row { width: auto; }
.variant-rank-row .vote-btn { width: 150px; flex: none; }
.vote-blob {
  position: absolute;
  inset: 0;
  transition: transform .38s cubic-bezier(.3, 1.7, .5, 1) .06s;
}
.vote-up { color: #1f2a10; }
.vote-up .vote-blob {
  border-radius: 24px 20px 22px 26px / 30px 22px 28px 20px;
  background: var(--gloss), linear-gradient(180deg, var(--green-1), var(--green-2) 55%, var(--green-3));
  box-shadow:
    inset 0 -6px 8px rgba(70,120,0,.35),
    inset 0 2px 2px rgba(255,255,255,.9),
    0 4px 0 var(--green-edge);
}
.vote-down { color: #0e2a36; }
.vote-down .vote-blob {
  inset: 4px 0 0 0;
  border-radius: 36% 40% 46% 42% / 80% 70% 30% 30%;
  background: linear-gradient(180deg, var(--cyan-1), var(--cyan-2) 50%, var(--cyan-3));
  box-shadow:
    inset 0 5px 6px rgba(0,90,130,.28),
    inset 0 -2px 2px rgba(255,255,255,.7),
    0 2px 0 var(--cyan-edge);
}
.vote-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  white-space: nowrap;
  font-size: 12.5px;
}
.variant-detail-row .vote-label { flex-direction: column; line-height: 1.15; font-size: 16px; }
.variant-detail-row .vote-label b { font-size: 20px; }
.vote-btn:active:not(:disabled) .vote-blob {
  transform: scale(1.06, .74) translateY(5px);
  transition: transform .08s ease-out;
}
.vote-btn.is-voted .vote-blob { transform: scale(.97, .9) translateY(3px); }
.vote-btn.is-dim, .vote-pair.is-reported .vote-btn { opacity: .45; }
.vote-btn:disabled { cursor: default; }

.empty-state, .empty-inline {
  text-align: center;
  padding: 64px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.detail-image-card {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 22px 22px 22px 40px / 22px 22px 22px 56px;
  box-shadow: inset 0 1px 0 #fff, 0 12px 0 -5px var(--shadow), 0 20px 30px rgba(120,80,20,.12);
}
.detail-image-card img { border-radius: 14px; width: 100%; }
.detail-meta { display: flex; flex-direction: column; gap: 18px; }
.detail-kicker, .author-row, .detail-notes { display: flex; align-items: center; gap: 10px; }
.detail-notes { justify-content: space-between; font-size: 13px; color: var(--hint); }
.text-link { border: 0; background: none; color: var(--hint); padding: 0; }
.avatar {
  width: 36px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 12%, #e6ffb0 13%, #a3e63a 75%);
  box-shadow: inset 0 -3px 4px rgba(60,110,0,.25), 0 3px 0 #7fb928;
}
.comment-card {
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px 14px 14px 24px / 14px 14px 14px 34px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 -3px var(--shadow), 0 10px 16px rgba(120,80,20,.08);
}
.comment-head { display: flex; gap: 8px; font-size: 12.5px; color: var(--hint); margin-bottom: 4px; }
.comment-head b { color: var(--ink); }
.comment-form { display: flex; gap: 10px; align-items: flex-end; }
.comment-form textarea, .comment-form input, .submit-form input, .report-dialog textarea, .report-sheet textarea {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--cream-edge);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}
.comment-form textarea { min-height: 48px; resize: vertical; }
@media (max-width: 800px) {
  .comment-form textarea {
    min-height: 46px;
    height: 46px;
    resize: none;
    padding: 12px;
  }
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px 8px 14px 8px / 8px 8px 20px 10px;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  box-shadow: inset 0 -2px 3px rgba(200,150,60,.25), 0 2px 0 var(--cream-edge);
}
.submit-form { display: flex; flex-direction: column; gap: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.submit-form input { height: 48px; }
.submit-form input.is-error, .comment-form textarea.is-error, .dropzone.is-error { border-color: #e8329a; }
.field-error { color: #e8329a; font-size: 13px; font-style: normal; }
.dropzone {
  position: relative;
  min-height: 220px;
  border: 3px dashed var(--cream-edge);
  border-radius: 22px 22px 22px 36px / 22px 22px 22px 50px;
  background: repeating-linear-gradient(45deg, #fffdf7 0 12px, #fff9ec 12px 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  overflow: hidden;
}
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.dropzone.is-filled {
  border-style: solid;
  background: #fff;
  cursor: pointer;
}
.dropzone.is-filled [data-drop-copy],
.dropzone.is-filled [data-drop-copy-sp],
.dropzone.is-filled [data-pick-file] {
  display: none !important;
}
.submit-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.period-tabs { display: flex; gap: 8px; }
.rank-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.rank-card, .rank-card-sp {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 18px 18px 18px 34px / 18px 18px 18px 48px;
  box-shadow: inset 0 1px 0 #fff, 0 12px 0 -5px var(--shadow), 0 18px 28px rgba(120,80,20,.12);
}
.rank-card img { aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.rank-card-meta { display: flex; align-items: center; gap: 8px; margin: 12px 2px 10px; }
.rank-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 10px 16px 10px 10px;
  border-radius: 14px 14px 14px 22px / 14px 14px 14px 30px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 -3px var(--shadow), 0 8px 14px rgba(120,80,20,.08);
}
.rank-row-link { display: grid; grid-template-columns: 56px 64px minmax(0, 1fr); gap: 16px; align-items: center; min-width: 0; }
.rank-row-text b { display: block; }
.rank-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.rank-oval {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  font-size: 14px;
  font-weight: 900;
  border-radius: 16px 14px 18px 14px / 14px 16px 14px 16px;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  box-shadow: inset 0 -3px 4px rgba(200,150,60,.25), 0 3px 0 var(--cream-edge);
}
.rank-row-votes .vote-pair { gap: 8px; }
.rank-top-sp, .rank-card-sp { display: flex; flex-direction: column; gap: 10px; }
.rank-sp-main { display: flex; gap: 12px; align-items: center; }
.rank-sp-main img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }

.cat-counts { margin: 0; }
.cat-hero {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 26px;
  font-size: 26px;
  font-weight: 900;
  color: #3a0f26;
  border-radius: 28px 22px 26px 32px / 24px 30px 22px 28px;
  background: var(--gloss), linear-gradient(180deg, var(--pink-1), var(--pink-2) 55%, var(--pink-3));
  box-shadow:
    inset 0 -6px 8px rgba(150,0,80,.35),
    inset 0 2px 2px rgba(255,255,255,.9),
    0 5px 0 var(--pink-edge);
}
.category-title, .category-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tools-divider { width: 1px; height: 24px; background: var(--cream-edge); }

.rule-card {
  background: #fff;
  padding: 18px 20px;
  margin: 16px 0;
  border-radius: 16px 16px 16px 28px / 16px 16px 16px 40px;
  box-shadow: 0 8px 0 -3px var(--shadow), 0 12px 20px rgba(120,80,20,.1);
}
.rule-h {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  border-radius: 10px 10px 18px 12px / 10px 10px 28px 14px;
}
.rule-h.green {
  color: #1f2a10;
  background: linear-gradient(180deg, var(--green-1), var(--green-2) 55%, var(--green-3));
  box-shadow: inset 0 -4px 6px rgba(70,120,0,.3), 0 3px 0 var(--green-edge);
}
.rule-h.cyan {
  color: #0e2a36;
  background: linear-gradient(180deg, var(--cyan-1), var(--cyan-2) 50%, var(--cyan-3));
  box-shadow: inset 0 -4px 6px rgba(0,90,130,.3), 0 3px 0 var(--cyan-edge);
}
.rule-h.pink {
  color: #3a0f26;
  background: linear-gradient(180deg, var(--pink-1), var(--pink-2) 55%, var(--pink-3));
  box-shadow: inset 0 -4px 6px rgba(150,0,80,.3), 0 3px 0 var(--pink-edge);
}

.report-root { position: fixed; inset: 0; z-index: 20; display: none; }
.report-root.is-open { display: block; }
.report-backdrop { position: absolute; inset: 0; background: rgba(60,40,30,.38); }
.report-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  max-width: calc(100vw - 32px);
  background: var(--bg);
  padding: 26px 28px;
  border-radius: 26px 26px 26px 44px / 26px 26px 26px 60px;
  box-shadow: inset 0 1px 0 #fff, 0 14px 0 -6px var(--shadow), 0 30px 60px rgba(120,80,20,.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.report-head { display: flex; justify-content: space-between; gap: 16px; }
.report-target {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  padding: 10px;
  border-radius: 14px 14px 14px 24px / 14px 14px 14px 34px;
  box-shadow: 0 6px 0 -3px var(--shadow);
}
.report-target img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.report-target-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  padding-right: 9.5em;
}
.report-target-text b { font-weight: 900; }
.report-target-text span, .report-target-date { color: var(--hint); font-size: 13px; font-weight: 700; }
.report-target-date {
  position: absolute;
  right: 12px;
  bottom: 10px;
}
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reason-grid label, .reason-stack label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  background: #fff;
  border: 2px solid var(--cream-edge);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}
.reason-grid label:has(input:checked), .reason-stack label:has(input:checked) {
  border-color: var(--pink-2);
  box-shadow: 0 0 0 3px rgba(255,79,179,.18);
}
.reason-grid input, .reason-stack input { position: absolute; opacity: 0; }
.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--cream-edge);
  flex: none;
}
label:has(input:checked) .radio-dot {
  border-color: var(--pink-2);
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, var(--pink-1) 22%, var(--pink-3));
}
.span-2 { grid-column: 1 / -1; }
.report-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.report-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 12px 16px 24px;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet-handle { width: 48px; height: 5px; border-radius: 99px; background: var(--cream-edge); margin: 4px auto 8px; }
.reason-stack { display: flex; flex-direction: column; gap: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  padding: 14px 16px;
  border-radius: 16px 16px 16px 24px / 16px 16px 16px 34px;
  box-shadow: 0 10px 0 -4px var(--shadow), 0 18px 30px rgba(120,80,20,.2);
  z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
  .vote-blob { transition: none !important; }
  .vote-btn:active:not(:disabled) .vote-blob { transform: none; }
  .feed-loader span { animation: none; }
}

@media (max-width: 800px) {
  .site-header { padding: 14px 16px 8px; }
  .logo img { height: 40px; }
  .site-header.has-back .logo img { height: 36px; }
  .page-home, .page-ranking, .page-category, .page-detail, .page-submit, .page-rules {
    padding: 0 16px 28px;
  }
  .btn-primary { height: 44px; padding: 0 18px; font-size: 14px; }
  .ranking-head, .category-head { flex-direction: column; align-items: stretch; }
  .filter-row, .switch-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .chip { flex: none; }
  .period-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .period-tabs .chip { height: 44px; justify-content: center; }
  .detail-grid { grid-template-columns: 1fr; }
  .two-col, .submit-foot { display: flex; flex-direction: column; }
  .dropzone { min-height: 170px; }
  .rank-row { grid-template-columns: 1fr; }
  .rank-row-link { grid-template-columns: 56px 56px minmax(0,1fr); }
  .rank-row img { width: 56px; height: 56px; }
  h1 { font-size: 24px; }
}

body.admin {
  background: #eceae4;
  color: #1f1e22;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #1f1e22;
  color: #f4f1ea;
}
.admin-brand {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.admin-brand:hover { color: #fff; }
.admin-nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 14px; }
.review-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; color: #c9c4ba; }
.review-toggle button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 99px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #3a0f26;
  background: #ff8ad2;
}
.admin-nav a { color: #c9c4ba; }
.admin-nav a:hover, .admin-nav a.is-current { color: #fff; }
.admin-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #ff4fb3;
  color: #3a0f26;
}
.admin-main { max-width: 960px; margin: 0 auto; padding: 28px 24px 48px; }
.admin-main h1 { margin: 0 0 18px; font-size: 28px; }
.admin-empty { color: #5a5560; }
.admin-queue { display: flex; flex-direction: column; gap: 28px; }
.admin-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
}
.admin-card-image img { width: 100%; height: auto; border-radius: 8px; background: #f3eee4; }
.admin-card-meta h2 { margin: 6px 0 8px; font-size: 20px; }
.admin-kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 8px; font-size: 13px; color: #5a5560; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-admin {
  height: 42px;
  padding: 0 18px;
  border: 1px solid #cfc8bb;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}
.btn-admin-ok { background: #1f1e22; color: #fff; border-color: #1f1e22; }
.btn-admin-danger { background: #fff; color: #b42318; border-color: #e8b4ae; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.admin-chip.is-on { background: #1f1e22; color: #fff; }
.admin-chip.is-on:hover { color: #fff; }
.admin-table { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  display: grid;
  grid-template-columns: 56px 64px minmax(0, 1.4fr) 90px 110px 80px 36px 130px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border-radius: 10px;
  color: inherit;
}
.admin-row:hover { color: inherit; background: #f7f4ee; }
.admin-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f3eee4; }
.admin-row-id { font-size: 12px; color: #5a5560; }
.admin-row-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-status {
  display: inline-flex;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: #eceae4;
}
.admin-status.is-pending { background: #ffe08a; }
.admin-status.is-published { background: #d4f0a8; }
.admin-status.is-hidden { background: #ddd8d0; }
.admin-status.is-rejected { background: #f3c4c0; }
.admin-reports { font-weight: 800; text-align: center; }
.admin-reports.has-reports { color: #b42318; }
.admin-detail-image { max-width: 420px; margin: 0 0 20px; }
.admin-detail-image img { width: 100%; border-radius: 10px; background: #f3eee4; }
.admin-meta {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0 0 8px;
}
.admin-meta dt { color: #5a5560; }
.admin-meta dd { margin: 0; }
.admin-section { margin-top: 32px; }
.admin-section h2 { margin: 0 0 12px; font-size: 18px; }
.admin-note { padding: 12px 0; border-top: 1px solid #ddd8d0; }
.admin-note-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 800px) {
  .admin-header { padding: 12px 16px; }
  .admin-main { padding: 20px 16px 36px; }
  .admin-card { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 48px minmax(0, 1fr) 72px 28px; }
  .admin-row img { width: 48px; height: 48px; }
  .admin-meta { grid-template-columns: 1fr; }
}
