:root{
  --bg:#f7f9fc;
  --text:#101828;
  --muted:#475467;
  --muted-2:#667085;
  --accent:#4c43c9;
  --accent-soft:#ede9fe;
  --accent-soft-2:#f4f3ff;
  --card:#ffffff;
  --line:rgba(16,24,40,.14);
  --line-strong:rgba(16,24,40,.18);
  --shadow:0 16px 44px rgba(16,24,40,.10);
  --shadow-soft:0 18px 40px rgba(16,24,40,.10);
  --gold:#c99700;
  --silver:#7a7a86;
  --bronze:#9a5b32;
  --success:#027a48;
  --success-bg:#ecfdf3;
  --success-line:#6ce9a6;
  --danger:#b42318;
  --danger-bg:#fef3f2;
  --danger-line:#fda29b;
  --max:1120px;
  --content:920px;
  --content-sm:820px;
  --radius-card:20px;
  --radius-md:14px;
  --radius-sm:12px;
}

*{box-sizing:border-box;}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

html,
body {
  margin: 0;
  padding: 0;
}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 520px at 15% 0%, rgba(255,204,102,.18), transparent 58%),
    radial-gradient(900px 520px at 85% 18%, rgba(110,203,255,.14), transparent 58%),
    var(--bg);
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

.page{
  padding:34px 0 80px;
}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

.container-sm{
  width:min(var(--content-sm), calc(100% - 32px));
  margin:0 auto;
}

.content-narrow{
  max-width:var(--content);
  margin:0 auto;
}

.center{
  text-align:center;
}

.stack-lg{
  display:grid;
  gap:24px;
}

.top-gap-sm{
  margin-top:18px;
}

.top-gap-md{
  margin-top:20px;
}

/* Shared header */

.site-header{
  padding:34px 0 0;
}

.site-header-inner{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:240px 1fr 240px;
  align-items:center;
  gap:30px;
}

.site-logo img{
  width:72px;
  max-width:72px;
  height:auto;
  display:block;
}

.site-nav{
  grid-column:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:54px;
  flex-wrap:wrap;
}

.site-user-status{
  grid-column:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}

.site-nav a{
  font-size:28px;
  line-height:1.1;
  font-weight:500;
  padding:6px 0 10px;
  border-bottom:3px solid transparent;
}

.site-nav a:hover{
  opacity:.75;
}

.site-nav a.is-active,
.site-nav a[aria-current="page"]{
  border-bottom-color:var(--accent);
  font-weight:700;
}

.site-user-status{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}

.site-auth-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  white-space:nowrap;
}

.site-auth-links a,
.site-login-link,
.site-signup-link,
.site-account-link,
.site-logout-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:999px;
  padding:9px 16px;
  font-size:15px;
  line-height:1;
  font-weight:900;
  border:1px solid transparent;
}

.site-login-link{
  background:#ffffff;
  color:#1d3557;
  border-color:rgba(29,53,87,.18);
  box-shadow:0 8px 20px rgba(16,24,40,.05);
}

.site-login-link:hover{
  background:#f8fbff;
}

.site-signup-link{
  background:var(--accent);
  color:#ffffff;
  border-color:var(--accent);
  box-shadow:0 10px 24px rgba(76,67,201,.22);
}

.site-signup-link:hover{
  filter:brightness(1.05);
}

.site-login-link.is-active,
.site-signup-link.is-active{
  outline:2px solid rgba(76,67,201,.24);
  outline-offset:2px;
}

.site-user-block{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}

.site-user-name{
  font-size:15px;
  font-weight:900;
  color:#1d3557;
}

.site-vote-balance{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  border:1px solid rgba(22,101,52,.20);
  font-size:13px;
  font-weight:900;
}

.site-account-link{
  background:#e9f3ff;
  color:#1d3557;
}

.site-logout-link{
  background:#fee2e2;
  color:#7f1d1d;
}

/* Shared footer */

.site-footer{
  padding:10px 0 36px;
}

.site-footer-inner{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}

/* Cards and sections */

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow);
}

.card-lg{
  padding:24px;
}

.section{
  margin-bottom:48px;
}

.section-heading{
  margin-bottom:18px;
}

.page-title{
  margin:0;
  font-size:42px;
  line-height:1.1;
  font-weight:600;
  color:#111827;
}

.page-subtitle{
  margin:8px 0 0;
  color:var(--muted);
  font-size:16px;
}

.section-title{
  margin:0 0 14px;
  font-size:32px;
  line-height:1.15;
  font-weight:600;
  color:#111827;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.account-panel-title {
  margin: 0 0 6px;
  font-size: 26px;
}

.account-panel-subtitle {
  margin: 0;
  color: var(--muted);
}

.account-profile-list {
  display: grid;
  gap: 18px;
}

.account-profile-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}

.account-profile-label,
.account-stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.account-profile-value {
  font-size: 22px;
  font-weight: 900;
}

.account-profile-empty {
  color: var(--muted);
  font-weight: 700;
}

.account-stat-grid {
  display: grid;
  gap: 12px;
}

.account-stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.account-stat-card strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  color: #25304f;
}

.account-stat-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.account-action-stack {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.account-action-stack .btn {
  width: auto;
  min-width: 150px;
}

.account-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.account-empty-state {
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: #fbfcfe;
}

.account-empty-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.account-empty-state h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.account-empty-state p {
  margin: 0 auto 18px;
  max-width: 420px;
  color: var(--muted);
}

@media (max-width:900px) {
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-action-stack .btn {
    width: 100%;
  }
}

/* Text blocks */

.section p{
  margin:0 auto 26px;
  max-width:860px;
  font-size:18px;
  line-height:1.52;
  color:#1f2937;
}

.faq{
  display:grid;
  gap:28px;
}

.faq-item{
  margin:0 auto;
  max-width:760px;
}

.faq-q{
  font-size:18px;
  line-height:1.45;
  margin-bottom:10px;
}

.faq-a{
  font-size:18px;
  line-height:1.45;
  color:#1f2937;
}

/* Alerts */

.alert{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
}

.alert-error{
  background:var(--danger-bg);
  color:var(--danger);
  border:1px solid var(--danger-line);
}

.alert-success{
  background:var(--success-bg);
  color:var(--success);
  border:1px solid var(--success-line);
}

.empty-state{
  color:var(--muted);
  font-size:16px;
}

/* Buttons */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  font-weight:800;
  font-size:15px;
  text-decoration:none;
  transition:filter .12s ease, transform .12s ease;
}

.btn:hover{
  filter:brightness(1.02);
}

.btn-primary{
  background:#e8c85a;
  color:#111827;
}

.btn-secondary{
  background:#eaecf0;
  color:#111827;
}

.btn-danger{
  background:#fee4e2;
  color:#b42318;
}

.btn-block{
  width:100%;
}

.btn-cta{
  min-width:340px;
  max-width:100%;
  padding:20px 34px;
  border-radius:14px;
  background:#4c43c9;
  color:#f7f06c;
  font-size:44px;
  line-height:1;
  font-weight:900;
  box-shadow:var(--shadow);
}

.btn-edit{
  max-width:100%;
  padding:20px 34px;
  border-radius:14px;
  background:#4c43c9;
  color:#f7f06c;
}

/* Forms */

.form-stack{
  display:grid;
  gap:18px;
}

.grid{
  display:grid;
  gap:18px;
}

.grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  display:block;
  font-weight:800;
  font-size:14px;
  color:#111827;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
}

.field input[readonly],
.field textarea[readonly]{
  background:#f9fafb;
  color:#344054;
}

.field textarea{
  min-height:110px;
  resize:vertical;
}

.field-help{
  color:var(--muted-2);
  font-size:13px;
  font-weight:600;
  margin-top:4px;
}

.field-help-inline{
  color:var(--muted-2);
  font-size:13px;
  font-weight:600;
}

.field-header-space{
  margin-bottom:18px;
}

.field-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.button-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.button-split{
  display:flex;
  gap:12px;
  justify-content:space-between;
  margin-top:24px;
  flex-wrap:wrap;
}

/* Stepper */

.stepper{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:24px;
}

.stepper-item{
  border:1px solid #d0d5dd;
  border-radius:14px;
  padding:12px;
  background:#fff;
  text-align:center;
  font-size:14px;
  font-weight:800;
  color:var(--muted-2);
}

.stepper-item.is-current{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
}

.stepper-item.is-complete{
  border-color:#7f56d9;
  background:var(--accent-soft-2);
  color:#5b21b6;
}

/* Checkbox / terms blocks */

.terms-box{
  border:1px solid #d0d5dd;
  border-radius:14px;
  background:#fbfcfe;
  padding:16px;
  color:#344054;
  font-size:14px;
  line-height:1.55;
}

.checkbox-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px;
  border:1px solid #d0d5dd;
  border-radius:14px;
  background:#fff;
}

.checkbox-card input{
  margin-top:3px;
  transform:scale(1.15);
}

.text-link-muted{
  color:var(--muted-2);
  font-weight:700;
  text-decoration:none;
}

/* Home */

.home-hero{
  text-align:center;
}

.home-slideshow{
  width:100%;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  position:relative;
  aspect-ratio:16 / 6;
  min-height:240px;
}

.home-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 900ms ease-in-out;
}

.home-slide.active{
  opacity:1;
}

.home-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.home-copy{
  margin-top:34px;
}

.home-copy .page-title{
  margin-bottom:10px;
  font-size:52px;
  line-height:1.08;
  font-weight:500;
}

.competition-list{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:0 0 28px;
}

.competition-item{
  font-size:22px;
  line-height:1.35;
  color:#1f2937;
}

.competition-empty{
  font-size:20px;
  color:var(--muted);
  margin-bottom:28px;
}

.home-cta-wrap{
  display:flex;
  justify-content:center;
}

/* Auth */

.auth-page{
  min-height:calc(100vh - 120px);
  display:flex;
  align-items:center;
}

.auth-container{
  width:min(840px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:18px;
}

.auth-simple-container{
  width:min(520px, calc(100% - 32px));
  margin:0 auto;
}

.auth-simple-card{
  width:100%;
}

.auth-simple-title{
  font-size:38px;
}

.auth-simple-subtitle{
  max-width:420px;
  margin-left:auto;
  margin-right:auto;
}

.auth-simple-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.auth-back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.auth-hero,
.auth-card{
  overflow:hidden;
}

.auth-badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-weight:900;
}

.auth-logo{
  width:44px;
  height:44px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(16,24,40,.12);
  background:#fff;
}

.auth-badge-sub{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.auth-title{
  margin-top:14px;
  margin-bottom:8px;
  font-size:32px;
  letter-spacing:-0.02em;
}

.auth-subtitle{
  color:var(--muted);
  font-weight:650;
  line-height:1.45;
}

.auth-hero-image{
  margin-top:16px;
  border-radius:16px;
  border:1px solid rgba(16,24,40,.12);
  height:220px;
  background:
    linear-gradient(135deg, rgba(255,204,102,.35), rgba(110,203,255,.18)),
    url("/images/placeholder-pet.jpg") center/cover no-repeat;
}

.auth-card-title{
  font-size:22px;
  font-weight:950;
  margin:0 0 6px;
}

.auth-card-subtitle{
  color:var(--muted);
  font-weight:650;
  margin:0 0 14px;
}

.auth-link-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-between;
  margin-top:14px;
}

.auth-tiny{
  font-size:12px;
  color:var(--muted);
  font-weight:650;
  margin-top:10px;
}

/* Enter / Signup shared shell */

.enter-shell{
  padding:28px;
}

/* Account page */

.pet-rank-list{
  display:grid;
  gap:18px;
}

.pet-rank-card{
  display:grid;
  grid-template-columns:140px 1fr auto;
  gap:18px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fffdfa;
}

.pet-rank-photo img{
  width:120px;
  height:120px;
  border-radius:999px;
  object-fit:cover;
  border:4px solid #f3d57b;
  display:block;
  background:#eef2f6;
}

.pet-rank-badge{
  color:var(--gold);
  font-weight:800;
  font-size:18px;
  margin-bottom:10px;
}

.pet-rank-title{
  margin:0 0 10px;
  font-size:20px;
  font-weight:700;
}

.pet-rank-competition{
  font-weight:600;
}

.pet-rank-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:var(--muted);
  font-size:15px;
  margin-bottom:10px;
}

.pet-rank-note{
  color:#344054;
  font-size:15px;
  line-height:1.45;
}

.pet-rank-actions{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Leaderboard */

.leaderboard-page{
  padding-bottom:120px;
}

.leaderboard-summary{
  margin-top:12px;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

.leaderboard-selector label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  color:var(--muted);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.leaderboard-selector select{
  width:min(480px,100%);
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}

.leaderboard-podium{
  display:grid;
  gap:18px;
}

.leaderboard-entry{
  display:grid;
  grid-template-columns:120px 220px 1fr;
  gap:18px;
  align-items:start;
  padding:18px;
  border-radius:20px;
}

.leaderboard-rank{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:140px;
  border-radius:16px;
  background:#fafafa;
  border:1px solid var(--line);
}

.leaderboard-rank-num{
  font-size:40px;
  font-weight:900;
}

.leaderboard-rank-label{
  margin-top:8px;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
}

.leaderboard-rank.is-gold .leaderboard-rank-num{color:var(--gold)}
.leaderboard-rank.is-silver .leaderboard-rank-num{color:var(--silver)}
.leaderboard-rank.is-bronze .leaderboard-rank-num{color:var(--bronze)}

.leaderboard-entry-image img{
  width:100%;
  max-width:220px;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  display:block;
  background:#eef2f6;
}

.leaderboard-entry-main{
  min-width:0;
}

.leaderboard-entry-title{
  margin:0 0 8px;
  font-size:30px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.leaderboard-entry-title a:hover{
  text-decoration:underline;
}

.vote-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  background:#f4f4f5;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

.leaderboard-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#f4f4f5;
  color:#344054;
  font-size:13px;
  font-weight:800;
}

.leaderboard-note{
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

.leaderboard-list-card{
  overflow:hidden;
}

.leaderboard-table-wrap{
  overflow-x:auto;
}

.leaderboard-table{
  width:100%;
  border-collapse:collapse;
}

.leaderboard-table th,
.leaderboard-table td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}

.leaderboard-table th{
  background:#fafafa;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  font-weight:800;
}

.thumb{
  width:64px;
  height:64px;
  max-width:64px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--line);
  display:block;
  background:#eef2f6;
}

.leaderboard-pet-name{
  font-size:18px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.leaderboard-pet-name a:hover{
  text-decoration:underline;
}

.leaderboard-pet-sub{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.leaderboard-inline-links{
  margin-top:8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.leaderboard-inline-link{
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.leaderboard-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  padding:20px;
}

.page-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  text-decoration:none;
}

.page-link.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.page-link.disabled{
  opacity:.45;
  pointer-events:none;
}

.sticky-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(247,249,252,.92);
  backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
}

.sticky-cta-inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  justify-content:center;
}

/* Pet detail / voting polish */

.vote-mini,
.js-vote-link{
  transition:filter .12s ease, transform .12s ease;
}

.js-user-vote-count,
.pet-detail-user-votes{
  color:#166534;
  background:#dcfce7;
  border:1px solid rgba(22,101,52,.18);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  display:inline-flex;
  width:fit-content;
}

.pet-detail-vote-message{
  color:#166534;
  font-weight:900;
}

.pet-detail-title{
  font-size:clamp(2rem, 5vw, 3rem);
}

.pet-detail-photo-card img{
  border:8px solid #fff;
}

/* ===== Pet Detail Page ===== */

.pet-detail-shell{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(360px, .95fr);
  gap:28px;
  align-items:start;
}

.pet-detail-photo-panel{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:10px;
}

.pet-detail-photo-panel img{
  width:100%;
  max-height:640px;
  object-fit:cover;
  border-radius:18px;
  display:block;
  background:#eef2f6;
}

.pet-detail-panel{
  position:sticky;
  top:28px;
}

.pet-detail-title{
  margin:10px 0 4px;
  font-size:clamp(2.6rem, 5vw, 4.4rem);
  line-height:.98;
  font-weight:900;
  color:#25304f;
  letter-spacing:-.04em;
}

.pet-detail-meta-clean{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0;
}

.pet-detail-meta-clean span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 13px;
  border-radius:999px;
  background:#f4f4f5;
  color:#25304f;
  font-size:14px;
  font-weight:900;
}

.pet-detail-story-card{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfcfe;
}

.pet-detail-story-card h2{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.2;
  color:#111827;
}

.pet-detail-story-card p{
  margin:0;
  font-size:17px;
  line-height:1.5;
  color:#1f2937;
}

.pet-detail-actions-clean{
  display:grid;
  gap:12px;
  margin-top:22px;
}

.pet-detail-actions-clean .btn-cta{
  width:100%;
  min-width:0;
  font-size:clamp(2rem, 4vw, 3.5rem);
}

.pet-detail-actions-clean .btn-secondary{
  width:fit-content;
}

.pet-detail-vote-message{
  margin-top:16px;
  color:#166534;
  font-weight:900;
}

.pet-detail-user-votes{
  margin-top:12px;
  color:#166534;
  background:#dcfce7;
  border:1px solid rgba(22,101,52,.18);
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  display:inline-flex;
  width:fit-content;
}

@media (max-width:900px){
  .pet-detail-shell{
    grid-template-columns:1fr;
  }

  .pet-detail-panel{
    position:static;
  }

  .pet-detail-photo-panel img{
    max-height:520px;
  }
}

/* Responsive */

@media (max-width:900px){
  .site-header-inner{
    grid-template-columns:1fr;
    gap:16px;
  }

  .site-logo,
  .site-nav,
  .site-user-status{
    justify-self:center;
  }

  .site-logo{
    justify-content:center;
  }

  .site-nav{
    gap:26px;
  }

  .site-nav a{
    font-size:22px;
  }

  .site-user-status{
    justify-content:center;
  }

  .page-title{
    font-size:34px;
  }

  .section-title{
    font-size:28px;
  }

  .home-copy .page-title{
    font-size:40px;
  }

  .competition-item{
    font-size:19px;
  }

  .btn-cta{
    font-size:34px;
    min-width:280px;
  }

  .auth-container{
    grid-template-columns:1fr;
  }

  .pet-rank-card{
    grid-template-columns:1fr;
    text-align:center;
  }

  .pet-rank-photo{
    display:flex;
    justify-content:center;
  }

  .pet-rank-meta{
    justify-content:center;
  }

  .pet-rank-actions{
    justify-content:center;
  }

  .leaderboard-entry{
    grid-template-columns:100px 1fr;
  }

  .leaderboard-entry-main{
    grid-column:1 / -1;
  }
}

@media (max-width:640px){
  .stepper,
  .grid-2{
    grid-template-columns:1fr;
  }

  .enter-shell{
    padding:22px 18px;
  }

  .button-split{
    flex-direction:column;
  }

  .button-row{
    width:100%;
  }

  .button-row .btn{
    width:100%;
  }
}

@media (max-width:560px){
  .page{
    padding:24px 0 56px;
  }

  .container{
    width:min(var(--max), calc(100% - 32px));
  }

  .site-nav{
    gap:18px 22px;
  }

  .site-nav a{
    font-size:20px;
  }

  .site-auth-links{
    gap:8px;
  }

  .site-auth-links a,
  .site-login-link,
  .site-signup-link,
  .site-account-link,
  .site-logout-link{
    padding:8px 12px;
    font-size:14px;
  }

  .site-user-block{
    flex-wrap:wrap;
    justify-content:center;
  }

  .page-title{
    font-size:32px;
  }

  .section-title{
    font-size:26px;
  }

  .section p,
  .faq-q,
  .faq-a{
    font-size:16px;
  }

  .home-copy .page-title{
    font-size:32px;
  }

  .competition-item{
    font-size:17px;
  }

  .btn-cta{
    width:100%;
    min-width:0;
    font-size:28px;
    padding:18px 20px;
  }

  .home-slideshow{
    aspect-ratio:16 / 9;
  }

  .leaderboard-entry{
    grid-template-columns:1fr;
  }

  .leaderboard-entry-image img{
    max-width:100%;
  }
}

.site-vote-balance {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-vote-alert {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(229, 72, 77, 0.35);
  pointer-events: none;
}

.site-vote-balance::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  background: #18284a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
  white-space: normal;
  text-align: center;
}

.site-vote-balance:hover::after,
.site-vote-balance:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.section {
  margin-bottom: 4.5rem;
}

.section-title,
.page-title {
  margin-top: 0;
  margin-bottom: 1.4rem;
  line-height: 1.1;
}

.section.center p {
  margin-top: 0;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.faq {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-q {
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.faq-a {
  line-height: 1.7;
}

.section-about-intro {
  padding-top: 1.25rem;
}