/* Cutie Index - girly pastel theme */
:root {
  --cream: #FFF9FB;
  --blush: #FFD6E8;
  --blush-2: #FFC2D4;
  --pink: #F472B6;
  --hot: #FF5C8A;
  --lav: #C4B5FD;
  --lav-2: #E9D5FF;
  --plum: #4A1942;
  --body: #6E4460;
  --muted: #9A6B88;
  --line: #F8D7E5;
  --card: #FFFFFF;
  --shadow: 0 8px 24px rgba(244, 114, 182, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4, .logo {
  font-family: "Quicksand", "Nunito", sans-serif;
  color: var(--plum);
  line-height: 1.2;
}

a { color: var(--hot); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .heart { color: var(--hot); display: inline-flex; }
.logo em { font-style: normal; color: var(--hot); }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--plum);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--blush); text-decoration: none; }
.main-nav a.shelf-link { background: var(--lav-2); }
.main-nav a.shelf-link:hover { background: var(--lav); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blush) 0%, var(--lav-2) 100%);
  border-radius: 28px;
  padding: 48px 40px;
  margin: 28px 0;
  text-align: center;
}
.hero h1 { font-size: 44px; margin: 0 0 10px; }
.hero p { font-size: 19px; max-width: 640px; margin: 0 auto 22px; color: #5B2A4E; }
.hero .sparkles { color: var(--hot); letter-spacing: 6px; font-size: 18px; }

/* Buttons and pills */
.btn {
  display: inline-block;
  background: var(--hot);
  color: #fff;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 92, 138, 0.35);
}
.btn:hover { background: #F0447C; text-decoration: none; }
.btn.ghost {
  background: #fff;
  color: var(--plum);
  box-shadow: var(--shadow);
}
.btn.small { padding: 7px 14px; font-size: 14px; box-shadow: none; }
.btn.saved { background: var(--lav); box-shadow: none; }
.pill {
  display: inline-block;
  background: var(--blush);
  color: var(--plum);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
}
.pill.lav { background: var(--lav-2); }
.pill.secret {
  background: linear-gradient(135deg, var(--hot), var(--pink));
  color: #fff;
}
.pill.regular { background: var(--lav-2); }

/* Search */
.search-box { max-width: 560px; margin: 0 auto; position: relative; }
.search-box input {
  width: 100%;
  padding: 15px 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-size: 17px;
  font-family: "Nunito", sans-serif;
  box-shadow: var(--shadow);
  outline: none;
}
.search-box input:focus { border-color: var(--pink); }
.search-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
}
.search-results.open { display: block; }
.search-results li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--plum);
  font-weight: 700;
}
.search-results li a:hover { background: var(--blush); text-decoration: none; }
.search-results .muted { color: var(--muted); font-weight: 400; font-size: 14px; }

/* Sections and cards */
section { margin: 40px 0; }
section h2 { font-size: 28px; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 18px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card { color: var(--body); display: block; }
a.card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 14px 30px rgba(244, 114, 182, 0.22); }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 6px 0; }
.card .price { font-weight: 800; color: var(--plum); }
.card .meta { font-size: 14px; color: var(--muted); }

.brand-card { text-align: center; padding: 28px 20px; }
.brand-card .dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}
.dot.sa { background: linear-gradient(135deg, var(--pink), var(--hot)); }
.dot.sm { background: linear-gradient(135deg, var(--lav), #8B7CF6); }
.dot.lb { background: linear-gradient(135deg, #FF8FB3, var(--hot)); }
.dot.sr { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
.dot.jc { background: linear-gradient(135deg, #C4B5FD, #A78BFA); }
.dot.dr { background: linear-gradient(135deg, #7DD3FC, #38BDF8); }

/* Leaderboard */
.board {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: #FFF0F6; }
.rank {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--pink);
  width: 34px;
  text-align: center;
  flex-shrink: 0;
}
.board-row .who { flex: 1; min-width: 0; }
.board-row .who a { color: var(--plum); font-weight: 800; }
.board-row .num { font-weight: 800; color: var(--hot); white-space: nowrap; }
.board-row .sub { font-size: 14px; color: var(--muted); }

/* Images never overflow their container. */
img { max-width: 100%; }

/* Figure tile (placeholder art, or real photo when one exists) */
.tile {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 44px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(74, 25, 66, 0.25);
  margin-bottom: 12px;
  overflow: hidden;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}
.tile.big { aspect-ratio: 1 / 1; font-size: 88px; border-radius: 22px; }
.tile.big img { border-radius: 22px; }
.tile.sa { background: linear-gradient(135deg, #FFC2D4, #F472B6); }
.tile.sm { background: linear-gradient(135deg, #C4B5FD, #8B7CF6); }
.tile.lb { background: linear-gradient(135deg, #FDA4AF, #FF5C8A); }
.tile.sr { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
.tile.jc { background: linear-gradient(135deg, #DDD6FE, #A78BFA); }

/* Series lineup image on series pages: never stretched, never taller
   than the page can hold. Tall lineups letterbox inside the cap instead
   of being cropped or stretched. */
.series-hero { margin: 18px 0 4px; }
.series-hero img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 22px;
  display: block;
  box-shadow: var(--shadow);
}

/* Representative character photo on brand pages */
.brand-hero { margin: 18px 0 4px; text-align: center; }
.brand-hero img {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: inline-block;
  box-shadow: var(--shadow);
}

/* Figure page */
.figure-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  margin: 28px 0;
}
.stat-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.stat-box dl { margin: 0; }
.stat-box dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; margin-top: 12px; }
.stat-box dt:first-child { margin-top: 0; }
.stat-box dd { margin: 2px 0 0; font-weight: 700; color: var(--plum); font-size: 18px; }
.buy-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.note {
  background: var(--lav-2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
}

/* Forms */
.signup {
  background: linear-gradient(135deg, var(--blush), var(--lav-2));
  border-radius: 28px;
  padding: 36px;
  text-align: center;
}
.signup h2 { margin-top: 0; }
.signup form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.signup input[type="email"] {
  flex: 1;
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-size: 16px;
  font-family: "Nunito", sans-serif;
  outline: none;
  min-width: 0;
}
.signup input[type="email"]:focus { border-color: var(--pink); }

/* My Shelf */
.shelf-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.shelf-stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  min-width: 180px;
}
.shelf-stat .big-num { font-family: "Quicksand", sans-serif; font-size: 32px; font-weight: 700; color: var(--hot); }
.shelf-stat .label { font-size: 14px; color: var(--muted); font-weight: 700; }
.shelf-group { margin: 26px 0; }
.shelf-group h3 { margin-bottom: 10px; }
.shelf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(244, 114, 182, 0.08);
}
.shelf-item input { width: 20px; height: 20px; accent-color: var(--hot); flex-shrink: 0; }
.shelf-item a { color: var(--plum); font-weight: 700; }
.shelf-item .resale { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.shelf-item.owned { background: #FFF0F6; }

/* Guide */
.guide h3 { margin-top: 28px; }
.guide ul li { margin-bottom: 8px; }
.callout {
  border-left: 5px solid var(--hot);
  background: #FFF0F6;
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--plum);
  color: #F5D5E8;
  margin-top: 56px;
  padding: 36px 0;
}
.site-footer a { color: #FFC2D4; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine { margin-top: 28px; font-size: 14px; color: #D8A9C6; }

@media (max-width: 720px) {
  section { margin: 28px 0; }
  section h2 { font-size: 24px; }
  .grid { gap: 14px; }

  /* Header: one slim row, logo + horizontally scrollable nav (no hamburger,
     no two-line sticky header eating phone screens). */
  .site-header .wrap { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 22px; flex-shrink: 0; }
  .main-nav { margin-left: 0; flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 10px 12px; white-space: nowrap; }

  .hero { padding: 34px 22px; }
  .hero h1 { font-size: 32px; }
  .hero .btn { display: block; width: 100%; max-width: 320px; margin: 8px auto 0; }

  /* Tap targets: 44px minimum on the small buttons and shelf checkboxes. */
  .btn.small { padding: 11px 16px; }
  .shelf-item input { width: 24px; height: 24px; }

  .figure-layout { grid-template-columns: 1fr; gap: 20px; }
  .tile.big { font-size: 64px; }
  .series-hero img { max-height: 300px; }
  .stat-box { padding: 16px; }
  .crumbs { font-size: 13px; }

  /* Leaderboard rows: tighter padding, smaller rank, long names wrap. */
  .board-row { padding: 12px 14px; gap: 10px; }
  .rank { width: 28px; font-size: 19px; }
  .board-row .who a { overflow-wrap: anywhere; }

  /* My Shelf: stats stack full-width, rows wrap instead of squeezing. */
  .shelf-stats { gap: 12px; }
  .shelf-stat { flex: 1 1 100%; min-width: 0; }
  .shelf-item { flex-wrap: wrap; gap: 10px; }

  .signup { padding: 28px 20px; }
  .signup form { flex-direction: column; }
}

/* Recent activity (figure pages) */
#activity { margin-top: 28px; }
.act-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.act-chips, .act-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #F9A8D4; background: #fff; color: #4A1942; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.active { background: #FF5C8A; border-color: #FF5C8A; color: #fff; }
.act-sort { margin-left: auto; font-size: 14px; color: #4A1942; display: flex; align-items: center; gap: 8px; }
.act-sort select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 1px solid #F9A8D4; background: #fff; color: #4A1942; }
.act-count { font-size: 13px; color: #6b5563; margin: 4px 0 10px; }
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #F9E2EC; border-radius: 12px; padding: 10px 14px; }
.act-badge { background: #E9D5FF; color: #4A1942; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.act-kind { font-size: 12px; font-weight: 700; color: #FF5C8A; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.act-title { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #4A1942; }
.act-date { font-size: 13px; color: #6b5563; white-space: nowrap; }
.act-price { font-weight: 700; color: #4A1942; white-space: nowrap; }
.act-empty { color: #6b5563; }
@media (max-width: 720px) {
  .act-sort { margin-left: 0; width: 100%; }
  .act-sort select { flex: 1; }
  .act-row { flex-wrap: wrap; }
  .act-title { flex: 1 1 100%; order: 3; }
}
