/* princessbid.lol — pink sky, no wallets */

:root {
  --pink-50:  #fff2f8;
  --pink-100: #ffe3f0;
  --pink-200: #ffd0e4;
  --pink-300: #ffb3d5;
  --pink-400: #ff8ec0;
  --pink-500: #f4609f;
  --pink-600: #e0407f;
  --pink-700: #c62a67;
  --ink:      #a32b5c;
  --ink-soft: #b8547e;

  --card:      rgba(255, 255, 255, .55);
  --card-hard: rgba(255, 255, 255, .78);
  --edge:      rgba(255, 255, 255, .85);
  --shadow:    0 10px 30px rgba(214, 46, 110, .13);
  --shadow-sm: 0 4px 14px rgba(214, 46, 110, .12);
  --radius:    26px;
}

* { box-sizing: border-box; }

/* .list and .more set display:, which would otherwise beat the hidden attribute */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Quicksand, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -10%, #ffe9f3 0%, #ffd5e8 42%, #ffc0dd 100%) fixed;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- decorative sky ---------- */

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.clouds {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0) 70%) -6% 78% / 46% 34% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.80), rgba(255,255,255,0) 70%) 104% 62% / 44% 30% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.62), rgba(255,255,255,0) 70%) 20% 104% / 60% 26% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0) 70%) 86% 100% / 52% 24% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.45), rgba(255,255,255,0) 70%) 50% -8% / 70% 26% no-repeat;
  filter: blur(2px);
}

.sparkles { position: absolute; inset: 0; }

.sp {
  position: absolute;
  color: #fff;
  opacity: .9;
  animation: twinkle 3.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(224, 64, 127, .25));
}

@keyframes twinkle {
  0%, 100% { transform: scale(.7) rotate(0deg);   opacity: .35; }
  50%      { transform: scale(1.12) rotate(12deg); opacity: 1; }
}

/* ---------- layout ---------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}

/* ---------- hero ---------- */

.hero { text-align: center; }

.crown {
  width: 78px; height: auto;
  margin: 0 auto -14px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(224, 64, 127, .28));
  animation: bob 4.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-7px) rotate(2deg); }
}

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(58px, 13vw, 104px);
  line-height: 1;
  margin: 0;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #ff9ac9 0%, var(--pink-600) 55%, #b52a63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 10px rgba(224, 64, 127, .22));
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 7px 20px 7px 8px;
  background: var(--card-hard);
  border: 1px solid var(--edge);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  font-size: 15px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.live-chip i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.live-text { color: var(--pink-600); font-weight: 600; }

.tagline {
  margin: 26px 0 0;
  font-size: clamp(17px, 4.2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.u {
  color: var(--pink-600);
  font-weight: 700;
  background: linear-gradient(transparent 72%, var(--pink-300) 72%, var(--pink-300) 88%, transparent 88%);
  padding: 0 2px;
}

.headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(34px, 8.6vw, 62px);
  line-height: 1.08;
  margin: 16px 0 0;
  color: var(--pink-700);
  text-shadow: 0 3px 10px rgba(224, 64, 127, .16);
}

.headline .no1 { color: var(--pink-500); font-style: italic; }

.headline .count {
  font-style: italic;
  background: linear-gradient(180deg, var(--pink-500), var(--pink-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- enter card ---------- */

.enter {
  margin: 26px auto 0;
  max-width: 620px;
  padding: 22px 22px 20px;
  background: var(--card-hard);
  border: 1.5px solid var(--edge);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.enter-lead {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pink-700);
}

.enter-lead b { font-weight: 700; }

.enter-sub {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
}

.post-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid var(--pink-200);
  text-decoration: none;
  text-align: left;
  box-shadow: 0 3px 10px rgba(214, 46, 110, .1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.post-link:hover {
  transform: translateY(-2px);
  border-color: var(--pink-400);
  box-shadow: var(--shadow);
}

.post-avatar {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--pink-200), var(--pink-400));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.post-meta { flex: 1; min-width: 0; }

.post-meta b {
  display: block;
  font-size: 16px;
  color: var(--pink-700);
}

.post-meta span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: .8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-go {
  flex: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-500);
}

.btn {
  flex: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff86bf 0%, var(--pink-600) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.65),
    inset 0 -2px 6px rgba(160, 20, 76, .28),
    0 6px 16px rgba(214, 46, 110, .32);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.btn:hover  { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(.985); }

.btn-lg { padding: 16px 32px; font-size: 17px; }

.enter .btn-lg { display: block; text-align: center; }

.hint {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: .9;
  line-height: 1.5;
}

.hint b { color: var(--pink-600); }
.hint i { font-style: normal; color: var(--pink-600); font-weight: 700; }

.steps a { color: var(--pink-600); font-weight: 700; }

/* ---------- leaderboard ---------- */

.board { margin: 34px 0 0; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.row.is-1 {
  background: linear-gradient(120deg, rgba(255,255,255,.9), rgba(255,214,234,.75));
  border-color: #fff;
  box-shadow: 0 12px 34px rgba(214, 46, 110, .22);
}

.row.hit {
  animation: found 1.6s ease;
  border-color: var(--pink-500);
}

@keyframes found {
  0%, 100% { box-shadow: var(--shadow-sm); }
  30%      { box-shadow: 0 0 0 6px rgba(244, 96, 159, .35); }
}

.rank {
  flex: none;
  min-width: 54px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), 0 4px 10px rgba(214,46,110,.24);
}

.is-1 .rank { background: linear-gradient(180deg, #ffcf5c, #f0912a); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), 0 4px 12px rgba(240,145,42,.35); }
.is-2 .rank { background: linear-gradient(180deg, #dfe6ee, #a9b6c6); }
.is-3 .rank { background: linear-gradient(180deg, #f0c2a0, #cf8f65); }

.ava {
  flex: none;
  position: relative;
  width: 62px; height: 62px;
}

.ava img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: var(--pink-200);
  box-shadow: 0 4px 12px rgba(214, 46, 110, .22);
  display: block;
}

.ava .fallback {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--pink-300), var(--pink-500));
  box-shadow: 0 4px 12px rgba(214, 46, 110, .22);
}

.ava .badge {
  position: absolute;
  right: -3px; bottom: -3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(214,46,110,.3);
}

.meta { flex: 1; min-width: 0; }

.who {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.who a {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-600);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who .tier { flex: none; }

.who a:hover { text-decoration: underline; }

.who .tier { font-size: 14px; }

/* the X profile bio — keeps its own line breaks, capped at two lines */
.bio {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.views { flex: none; text-align: right; }

.views b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-600);
  line-height: 1.1;
}

.is-1 .views b { font-size: 26px; color: var(--pink-700); }

.views span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
  white-space: nowrap;
}

.more {
  display: block;
  margin: 16px auto 0;
  padding: 12px 26px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--card-hard);
  color: var(--pink-600);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.more:hover { background: #fff; }

/* ---------- empty state ---------- */

.empty {
  text-align: center;
  padding: 44px 26px;
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.empty-crown { font-size: 44px; animation: bob 4.5s ease-in-out infinite; }

.empty h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: var(--pink-700);
}

.empty p {
  margin: 0 auto 18px;
  max-width: 42ch;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0;
  color: var(--pink-400);
  font-size: 15px;
}

.divider::before, .divider::after {
  content: "";
  height: 2px;
  flex: 1;
  max-width: 190px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--pink-300));
}

.divider::after { background: linear-gradient(90deg, var(--pink-300), transparent); }

.divider .mini-crown { font-size: 22px; color: var(--pink-500); }
.divider .dot { font-size: 11px; opacity: .8; }

/* ---------- rules ---------- */

.rules {
  padding: 30px 28px 26px;
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.rules h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
  color: var(--pink-700);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.steps li { display: flex; gap: 14px; align-items: flex-start; }

.step-n {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-600));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6);
}

.steps b { font-size: 17px; color: var(--pink-700); }

.steps p {
  margin: 3px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.fineprint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- faq ---------- */

.faq {
  margin: 20px 0 0;
  padding: 30px 28px 26px;
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.faq h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
  color: var(--pink-700);
}

.faq dl { margin: 0; display: grid; gap: 18px; }

.qa {
  padding: 16px 20px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--edge);
  border-radius: 22px;
}

.faq dt {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--pink-600);
}

.faq dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  z-index: 20;
  max-width: min(92vw, 440px);
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff86bf, var(--pink-600));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(214, 46, 110, .38), inset 0 1.5px 0 rgba(255,255,255,.5);
  transition: transform .38s cubic-bezier(.2, .9, .3, 1.2);
}

.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  .wrap { padding: 24px 14px 48px; }

  .enter { padding: 18px 16px 16px; border-radius: 26px; }
  .enter-lead { font-size: 15px; }
  .post-link { padding: 10px 12px; gap: 10px; }
  .btn-lg { padding: 15px 22px; font-size: 16px; }

  /* rank · avatar · handle · views on one line, the compliment underneath */
  .row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px;
    gap: 10px;
    border-radius: 22px;
  }

  .ava { width: 48px; height: 48px; }
  .ava .badge { width: 20px; height: 20px; font-size: 10px; }
  .rank { min-width: 40px; height: 38px; font-size: 16px; padding: 0 8px; border-radius: 13px; }
  .who a { font-size: 16px; }

  .bio {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .views b { font-size: 18px; }
  .is-1 .views b { font-size: 20px; }
  .views span { font-size: 10px; }

  .rules, .faq { padding: 24px 18px; }
  .qa { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
