/* Hobby Horse Academy: Compete, the monthly photo contest (same app tokens). */
.hs-compete { --cp-card: #121214; --cp-raise: #1c1c1e; --cp-ease: cubic-bezier(0.23, 1, 0.32, 1); --cp-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --cp-gold: #ffcf5a; --cp-silver: #d7dbe3; --cp-bronze: #b86b3a; --cp-heart: #ff3d9a; }

/* hero */
.hs-compete .cp-hero { display: grid; gap: 10px; justify-items: center; padding: 24px 20px; border-radius: 24px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 20, 138, 0.28), rgba(212, 20, 138, 0) 60%), var(--cp-card); }
.hs-compete p.cp-kicker { margin: 0; font-size: 13px; font-weight: 700; color: #ff3d9a !important; }
.hs-compete .cp-hero-title { margin: 0; font: 800 clamp(22px, 6.2vw, 28px) / 1.15 var(--hha-font-display) !important; letter-spacing: -0.02em; text-wrap: balance; color: var(--hha-ink); }
.hs-compete p.cp-hero-sub { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.45; color: #c7c7cc !important; }
.hs-compete p.cp-ends { margin: 2px 0 4px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 13.5px; color: var(--hha-ink) !important; }
.hs-compete .cp-ends svg { width: 16px; height: 16px; }
.hs-compete .cp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: #d4148a; color: #fff !important; font: 700 17px / 1 var(--hha-font-body); cursor: pointer; text-decoration: none !important; transition: transform 160ms var(--cp-ease); }
.hs-compete .cp-cta svg { width: 22px; height: 22px; }
.hs-compete .cp-cta:active { transform: scale(0.97); }
.hs-compete .cp-mine { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--cp-raise); color: var(--hha-ink); text-align: left; cursor: pointer; font: inherit; }
.hs-compete .cp-mine img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.hs-compete .cp-mine b { display: block; font-size: 15px; }
.hs-compete .cp-mine small { font-size: 13px; color: var(--hha-muted); }
.hs-compete .cp-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.hs-compete .cp-prize { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 13px; font-weight: 600; color: var(--hha-ink); }
.hs-compete .cp-prize b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: #1a1205; }
.hs-compete .cp-gold b, .hs-compete .cp-m1 { background: var(--cp-gold); }
.hs-compete .cp-silver b, .hs-compete .cp-m2 { background: var(--cp-silver); }
.hs-compete .cp-bronze b, .hs-compete .cp-m3 { background: var(--cp-bronze); }

/* head + sort */
.hs-compete .cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hs-compete .cp-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: var(--cp-raise); font-size: 13px; vertical-align: 3px; }
.hs-compete .cp-sort { display: flex; padding: 3px; border-radius: 999px; background: var(--cp-card); }
.hs-compete .cp-sort-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--hha-muted); font: 600 14px / 1 var(--hha-font-body); cursor: pointer; }
.hs-compete .cp-sort-btn.is-on { background: #fff; color: #000; }

/* photo grid */
.hs-compete .cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .hs-compete .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hs-compete .cp-card { display: grid; gap: 8px; animation: cp-in 360ms var(--cp-ease) both; }
@keyframes cp-in { from { opacity: 0; transform: translateY(8px); } }
.hs-compete .cp-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #161618; cursor: zoom-in; }
.hs-compete .cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-compete .cp-medal { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 14px; color: #1a1205; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.hs-compete .cp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.hs-compete .cp-who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--hha-ink) !important; text-decoration: none !important; }
.hs-compete .cp-who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: #1f1f22; }
.hs-compete .cp-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-compete .cp-crown { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--cp-gold); color: #1a1205; margin-left: 4px; }

/* hearts */
.hs-compete .cp-heart { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 11px 0 9px; border: 0; border-radius: 999px; background: var(--cp-raise); color: var(--hha-ink); font: 700 14px / 1 var(--hha-font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: transform 160ms var(--cp-ease), background-color 200ms ease; }
.hs-compete .cp-heart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.hs-compete .cp-heart.is-on { background: rgba(255, 61, 154, 0.16); color: var(--cp-heart); }
.hs-compete .cp-heart.is-on svg { fill: currentColor; }
.hs-compete .cp-heart.is-mine { opacity: 0.6; }
.hs-compete .cp-heart:active { transform: scale(0.94); }
.hs-compete .cp-heart.is-pop svg { animation: cp-pop 520ms var(--cp-ease); }
/* heart meter: no numbers. A bar right of the photo rises from the bottom towards one star; the star is gold / silver / bronze for the current top 3. */
.hs-compete .cp-card { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 6px; }
.hs-compete .cp-card > .cp-photo { grid-column: 1; grid-row: 1; }
.hs-compete .cp-card > .cp-meter { grid-column: 2; grid-row: 1; }
.hs-compete .cp-card > .cp-card-foot { grid-column: 1 / -1; }
.hs-compete .cp-meter { --pad-a: 24px; --pad-b: 2px; position: relative; display: block; width: 20px; height: 100%; }
.hs-compete .cp-meter-track { position: absolute; left: 50%; top: var(--pad-a); bottom: var(--pad-b); width: 6px; margin-left: -3px; border-radius: 999px; background: var(--cp-raise); overflow: hidden; }
.hs-compete .cp-meter-track i { position: absolute; inset: 0; border-radius: inherit; background: var(--cp-heart); transform-origin: center bottom; transform: scaleY(var(--f, 0)); transition: transform 700ms var(--cp-ease); }
.hs-compete.cp-intro .cp-meter-track i { animation: cp-fill-y 1100ms var(--cp-ease) 250ms backwards; }
@keyframes cp-fill-y { from { transform: scaleY(0); } }
.hs-compete .cp-star { position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -10px; display: grid; place-items: center; color: #5a5a5f; transition: color 300ms ease; }
.hs-compete .cp-star svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.hs-compete .cp-star.is-p1 { color: var(--cp-gold); }
.hs-compete .cp-star.is-p2 { color: var(--cp-silver); }
.hs-compete .cp-star.is-p3 { color: var(--cp-bronze); }
.hs-compete .cp-star.is-lit svg { fill: currentColor; }
.hs-compete.cp-intro .cp-star.is-lit { animation: cp-star-pop 520ms var(--cp-ease) 1300ms backwards; }
@keyframes cp-star-pop { from { scale: 0.4; color: #5a5a5f; } 60% { scale: 1.25; } }
.hs-compete .cp-meter--h .cp-star { top: 50%; left: auto; right: 0; margin: -10px 0 0; }
/* in the big photo view the same meter lies flat under the photo */
.hs-compete .cp-big-foot .cp-meter { flex: 1 0 100%; order: 3; width: 100%; height: 20px; }
.hs-compete .cp-meter--h .cp-meter-track { left: var(--pad-b); right: var(--pad-a); top: 50%; bottom: auto; width: auto; height: 6px; margin: -3px 0 0; }
.hs-compete .cp-meter--h .cp-meter-track i { transform-origin: left center; transform: scaleX(var(--f, 0)); animation: cp-fill-x 900ms var(--cp-ease) 150ms backwards; }
@keyframes cp-fill-x { from { transform: scaleX(0); } }
/* a heart was just given: the meter swells and bounces once */
.hs-compete .cp-meter.is-boost .cp-meter-track { animation: cp-boost 700ms var(--cp-ease); }
.hs-compete .cp-meter--h.is-boost .cp-meter-track { animation-name: cp-boost-h; }
@keyframes cp-boost { 30% { transform: scaleX(2.2); } }
@keyframes cp-boost-h { 30% { transform: scaleY(2.2); } }
.cp-burst { position: fixed; z-index: 10003; width: 12px; height: 12px; pointer-events: none; color: #ff3d9a; }
.cp-burst svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) { .hs-compete .cp-meter-track i, .hs-compete .cp-star, .hs-compete .cp-meter.is-boost .cp-meter-track { animation: none !important; transition: none !important; } .cp-burst { display: none; } }
@keyframes cp-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* empty */
.hs-compete .cp-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 20px; border-radius: 22px; background: var(--cp-card); text-align: center; }
.hs-compete .cp-empty-ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--cp-raise); color: #ff3d9a; }
.hs-compete .cp-empty-ico svg { width: 30px; height: 30px; }
.hs-compete p.cp-empty-title { margin: 4px 0 0; font: 700 19px / 1.2 var(--hha-font-display); color: var(--hha-ink) !important; }
.hs-compete p.cp-empty-sub { margin: 0; font-size: 15px; color: var(--hha-muted) !important; }

/* last month's podium */
.hs-compete .cp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.hs-compete .cp-win { display: grid; gap: 6px; justify-items: center; padding: 0; border: 0; background: transparent; color: var(--hha-ink); cursor: pointer; font: inherit; text-align: center; }
.hs-compete .cp-win-img { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.hs-compete .cp-win-img img { width: 100%; height: 100%; object-fit: cover; }
.hs-compete .cp-gold .cp-win-img { box-shadow: 0 0 0 3px var(--cp-gold); }
.hs-compete .cp-silver .cp-win-img { box-shadow: 0 0 0 3px var(--cp-silver); }
.hs-compete .cp-bronze .cp-win-img { box-shadow: 0 0 0 3px var(--cp-bronze); }
.hs-compete .cp-win .cp-medal { top: 6px; left: 6px; }
.hs-compete .cp-gold .cp-medal { background: var(--cp-gold); } .hs-compete .cp-silver .cp-medal { background: var(--cp-silver); } .hs-compete .cp-bronze .cp-medal { background: var(--cp-bronze); }
.hs-compete .cp-win-name { font-size: 13.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-compete .cp-win-meta { font-size: 12.5px; color: var(--hha-muted); }
.hs-compete p.cp-rules { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--cp-card); font-size: 13.5px; line-height: 1.45; color: var(--hha-muted) !important; text-align: center; }

/* sheets */
.hs-compete .cp-sheet { position: fixed; inset: 0; z-index: 10001; }
.hs-compete .cp-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); opacity: 0; transition: opacity 260ms ease; }
.hs-compete .cp-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: #161618; transform: translateY(100%); transition: transform 380ms var(--cp-drawer); }
.hs-compete .cp-sheet.is-open .cp-sheet-bg { opacity: 1; }
.hs-compete .cp-sheet.is-open .cp-sheet-panel { transform: translateY(0); }
.hs-compete .cp-sheet-panel--photo { padding-top: 14px; }
.hs-compete .cp-grab { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #3a3a3e; }
.hs-compete .cp-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
.hs-compete .cp-x svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .hs-compete .cp-sheet-panel { left: 50%; right: auto; bottom: 50%; width: min(560px, 92vw); border-radius: 26px; transform: translate(-50%, 54%) scale(0.98); opacity: 0; transition: transform 320ms var(--cp-ease), opacity 220ms ease; }
  .hs-compete .cp-sheet.is-open .cp-sheet-panel { transform: translate(-50%, 50%); opacity: 1; }
  .hs-compete .cp-grab { display: none; }
}
.hs-compete .cp-big { width: 100%; max-height: 62svh; object-fit: contain; border-radius: 18px; background: #0d0d0f; display: block; }
.hs-compete .cp-big-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.hs-compete .cp-who--big { font-size: 15.5px; }
.hs-compete .cp-who--big img { width: 32px; height: 32px; }
.hs-compete .cp-past-votes { font-weight: 700; color: var(--hha-muted); }
.hs-compete p.cp-caption { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--hha-ink) !important; }
.hs-compete .cp-big-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.hs-compete .cp-link { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--hha-muted); font: 600 14px / 1 var(--hha-font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hs-compete .cp-link--danger { color: #ff8a8a; margin-left: auto; }

/* upload form */
.hs-compete .cp-form { display: grid; gap: 14px; }
.hs-compete .cp-form-title { margin: 0; padding-right: 44px; font: 800 24px / 1.15 var(--hha-font-display) !important; color: var(--hha-ink); }
.hs-compete .cp-drop { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 20px; border: 2px dashed #3a3a3e; background: #0d0d0f; overflow: hidden; cursor: pointer; }
.hs-compete .cp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hs-compete .cp-drop-empty { display: grid; justify-items: center; gap: 6px; color: var(--hha-muted); text-align: center; pointer-events: none; }
.hs-compete .cp-drop-empty svg { width: 40px; height: 40px; color: #ff3d9a; }
.hs-compete .cp-drop-empty b { font-size: 16px; color: var(--hha-ink); }
.hs-compete .cp-drop-empty small { font-size: 13.5px; }
.hs-compete .cp-drop-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hs-compete .cp-drop.has-photo { border-style: solid; border-color: #ff3d9a; }
.hs-compete .cp-field { display: grid; gap: 6px; }
.hs-compete .cp-field > span { font-size: 14px; font-weight: 600; color: var(--hha-ink); }
.hs-compete .cp-field small { font-weight: 400; color: var(--hha-muted); }
.hs-compete .cp-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #2c2c30 !important; border-radius: 14px !important; background: #0d0d0f !important; color: var(--hha-ink) !important; font: 16px / 1.4 var(--hha-font-body) !important; box-shadow: none !important; }
.hs-compete .cp-field input:focus { outline: none; border-color: #ff3d9a !important; }
.hs-compete .cp-field input::placeholder { color: #8e8e93; }
.hs-compete .cp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #c7c7cc; cursor: pointer; }
.hs-compete .cp-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #d4148a; }
.hs-compete .cp-err { font-style: normal; font-size: 13px; color: #ff8a8a; margin-top: -8px; }
.hs-compete .cp-err:empty { display: none; }
.hs-compete p.cp-msg { margin: 0; font-size: 14px; color: #ff8a8a !important; }
.hs-compete p.cp-msg:empty { display: none; }
.hs-compete .cp-submit { min-height: 54px; border: 0; border-radius: 999px; background: #d4148a; color: #fff; font: 700 17px / 1 var(--hha-font-body); cursor: pointer; transition: transform 160ms var(--cp-ease), opacity 200ms ease; }
.hs-compete .cp-submit:active { transform: scale(0.97); }
.hs-compete .cp-submit[disabled] { opacity: 0.6; }

/* toast */
.hs-compete .cp-toast { position: fixed; z-index: 10002; left: 50%; top: calc(70px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 15px; text-align: center;
  transition: transform 320ms var(--cp-ease), opacity 240ms ease; }
.hs-compete .cp-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .hs-compete .cp-photo img { transition: transform 500ms var(--cp-ease); }
  .hs-compete .cp-photo:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-compete .cp-card, .hs-compete .cp-heart.is-pop svg { animation: none !important; }
  .hs-compete .cp-sheet-panel, .hs-compete .cp-toast { transition: opacity 200ms ease !important; }
}

/* prizes: three equal steps */
.hs-compete .cp-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 360px; margin-top: 8px; }
.hs-compete .cp-prize { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px; border-radius: 16px; font-size: 15px; font-weight: 800; }
.hs-compete .cp-prize small { font-size: 12px; font-weight: 600; color: var(--hha-muted); }
.hs-compete .cp-hero { gap: 12px; }
.hs-compete .cp-hero .cp-cta, .hs-compete .cp-hero .cp-mine { margin-top: 4px; }
.hs-compete .cp-prize em.cp-place { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--hha-ink); margin-bottom: 2px; }

/* ---------- Compete, more visual: trophy, podium, how it works ---------- */
.hs-compete .cp-hero { position: relative; overflow: hidden; }
.hs-compete .cp-trophy { position: relative; width: 112px; height: 112px; margin: -4px auto 2px; }
.hs-compete .cp-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 207, 90, 0.45), rgba(255, 207, 90, 0) 70%); animation: cp-glow 3.2s ease-in-out infinite; }
@keyframes cp-glow { 0%, 100% { opacity: 0.6; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }
.hs-compete .cp-cup { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); animation: cp-float 3.6s ease-in-out infinite; }
@keyframes cp-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
.hs-compete .cp-cup-shine { animation: cp-shine 3.6s ease-in-out infinite; }
@keyframes cp-shine { 0%, 60% { transform: translateX(0); opacity: 0; } 70% { opacity: 0.55; } 100% { transform: translateX(44px); opacity: 0; } }
.hs-compete .cp-spark { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; opacity: 0;
  background: #fff6d6; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: cp-twinkle 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes cp-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }

/* prizes as a podium: 2nd, 1st, 3rd */
.hs-compete .cp-podium-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; width: 100%; max-width: 360px; margin: 10px auto 0; }
.hs-compete .cp-step { display: grid; justify-items: center; gap: 2px; text-align: center; opacity: 0; transform: translateY(18px); animation: cp-rise 700ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: calc(250ms + var(--k) * 140ms); }
@keyframes cp-rise { to { opacity: 1; transform: none; } }
.hs-compete .cp-medal-big { width: 44px; height: 52px; display: block; margin-bottom: 2px; }
.hs-compete .cp-medal-big svg { width: 100%; height: 100%; overflow: visible; }
.hs-compete .cp-gold .cp-mcoin { fill: #ffcf5a; } .hs-compete .cp-silver .cp-mcoin { fill: #d9dde3; } .hs-compete .cp-bronze .cp-mcoin { fill: #b86b3a; }
.hs-compete .cp-gold .cp-medal-big { width: 52px; height: 60px; animation: cp-bob 2.8s ease-in-out 1.2s infinite; }
@keyframes cp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hs-compete b.cp-step-place { font-size: 13px; font-weight: 800; color: #fff; }
.hs-compete .cp-step-pts { font-size: 14px; font-weight: 800; color: #ffcf5a; font-variant-numeric: tabular-nums; }
.hs-compete .cp-step-pts small { font-size: 11.5px; font-weight: 600; color: var(--hha-muted); }
.hs-compete .cp-step-block { display: block; width: 100%; margin-top: 6px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)); }
.hs-compete .cp-gold .cp-step-block { height: 46px; background: linear-gradient(180deg, rgba(255, 207, 90, 0.4), rgba(255, 207, 90, 0.06)); }
.hs-compete .cp-silver .cp-step-block { height: 30px; }
.hs-compete .cp-bronze .cp-step-block { height: 20px; background: linear-gradient(180deg, rgba(184, 107, 58, 0.34), rgba(184, 107, 58, 0.05)); }

/* how it works */
.hs-compete .cp-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hs-compete .cp-how-step { display: grid; justify-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px; background: #121214; text-align: center; }
.hs-compete .cp-how-step b { font-size: 14px; }
.hs-compete .cp-how-step small { font-size: 12px; color: var(--hha-muted); line-height: 1.3; }
.hs-compete .cp-how-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 4px; }
.hs-compete .cp-how-ico svg { width: 24px; height: 24px; }
.hs-compete .cp-how-cam { background: rgba(111, 211, 255, 0.14); color: #6fd3ff; }
.hs-compete .cp-how-cam svg { animation: cp-flash 3s ease-in-out infinite; }
@keyframes cp-flash { 0%, 86%, 100% { filter: none; transform: none; } 90% { filter: drop-shadow(0 0 8px #fff) brightness(2); transform: scale(1.08); } }
.hs-compete .cp-how-heart { background: rgba(255, 61, 154, 0.14); color: #ff3d9a; }
.hs-compete .cp-how-heart svg { fill: currentColor; animation: cp-beat 1.6s ease-in-out infinite; }
@keyframes cp-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 28% { transform: scale(1.08); } }
.hs-compete .cp-how-cup { background: rgba(255, 207, 90, 0.14); color: #ffcf5a; }
.hs-compete .cp-how-cup svg { animation: cp-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cp-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-10deg); } 86% { transform: rotate(9deg); } 94% { transform: rotate(-4deg); } }
.hs-compete .cp-empty-ico svg { animation: cp-flash 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hs-compete .cp-glow, .hs-compete .cp-cup, .hs-compete .cp-cup-shine, .hs-compete .cp-spark, .hs-compete .cp-medal-big, .hs-compete .cp-how-ico svg, .hs-compete .cp-empty-ico svg { animation: none !important; }
  .hs-compete .cp-step { animation: none; opacity: 1; transform: none; }
  .hs-compete .cp-spark { opacity: 0.7; }
}
.hs-compete .cp-step b.cp-step-place { background: none !important; width: auto !important; height: auto !important; border-radius: 0; display: block; color: #fff !important; }

/* ---------- theme, rank, hall of fame, live photos, share ---------- */
.hs-compete .cp-link--theme { margin-top: -4px; font-size: 13px; color: var(--hha-muted); }
.hs-compete .cp-mine small.cp-rank { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: #ff5aa8; }
.hs-compete .cp-mine small.cp-rank:empty { display: none; }
.hs-compete .cp-months { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--hx-pad)); padding: 0 var(--hx-pad); }
.hs-compete .cp-months::-webkit-scrollbar { display: none; }
.hs-compete .cp-month { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--cp-card); color: var(--hha-ink); font: 600 14px / 1 var(--hha-font-body); cursor: pointer; white-space: nowrap; transition: background-color 180ms ease, color 180ms ease; }
.hs-compete .cp-month.is-on { background: #fff; color: #000; }
.hs-compete p.cp-hall-theme { margin: -4px 0 0; font-size: 14px; color: var(--hha-muted) !important; }
.hs-compete p.cp-hall-theme:empty { display: none; }
.hs-compete .cp-card.is-new .cp-photo { box-shadow: 0 0 0 2px #ff3d9a; animation: cp-newglow 2.4s ease-out forwards; }
@keyframes cp-newglow { to { box-shadow: 0 0 0 0 rgba(255, 61, 154, 0); } }
.hs-compete .cp-link--share { color: var(--hha-ink); }
.hs-compete .cp-field select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1.5px solid #2c2c30 !important; border-radius: 14px !important; background: #0d0d0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px !important; color: var(--hha-ink) !important; font: 16px / 1.4 var(--hha-font-body) !important; -webkit-appearance: none; appearance: none; color-scheme: dark; }
.hs-compete p.cp-fine { margin: -4px 0 0; font-size: 13px; line-height: 1.4; color: var(--hha-muted) !important; }
@media (prefers-reduced-motion: reduce) { .hs-compete .cp-card.is-new .cp-photo { animation: none; box-shadow: none; } }

/* ---------- more fun: white doodles, flashes, floating hearts, confetti ---------- */
.hs-compete .cp-trophy { width: 150px; height: 150px; margin: -6px auto 0; }
.hs-compete .cp-cup { display: none; }
.hs-compete .cp-doodle { position: absolute; display: block; height: auto; filter: drop-shadow(0 0 14px rgba(255, 61, 154, 0.55)); }
.hs-compete .cp-doodle--trophy { left: 50%; top: 14px; width: 118px; margin-left: -59px; animation: cp-float 3.6s ease-in-out infinite; }
.hs-compete .cp-doodle--crown { left: 50%; top: -14px; width: 64px; margin-left: -32px; transform-origin: 50% 100%; animation: cp-crown 3.6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 207, 90, 0.7)) sepia(1) saturate(4) hue-rotate(5deg) brightness(1.05); }
@keyframes cp-crown { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
.hs-compete .cp-glow { inset: -10%; background: radial-gradient(closest-side, rgba(255, 61, 154, 0.4), rgba(255, 61, 154, 0) 70%); }
.hs-compete .cp-spark { background: #fff; width: 14px; height: 14px; }
.hs-compete .cp-how { gap: 10px; }
.hs-compete .cp-how-step { padding: 16px 6px 14px; border-radius: 20px; background: linear-gradient(180deg, #17171a, #121214); overflow: hidden; position: relative; }
.hs-compete .cp-how-ico { position: relative; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 8px; }
.hs-compete .cp-how-ico img { width: 46px; height: 46px; object-fit: contain; }
.hs-compete .cp-how-cam, .hs-compete .cp-how-cup { background: #1c1c1e; color: #fff; }
.hs-compete .cp-how-cam img { animation: cp-snap 3s ease-in-out infinite; }
@keyframes cp-snap { 0%, 84%, 100% { transform: none; } 88% { transform: scale(0.94); } 92% { transform: scale(1.06); } }
.hs-compete .cp-flashlight { position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; animation: cp-flashlight 3s ease-out infinite; }
@keyframes cp-flashlight { 0%, 88%, 100% { opacity: 0; } 90% { opacity: 0.85; } 94% { opacity: 0; } }
.hs-compete .cp-how-heart { width: 64px; height: 64px; border-radius: 20px; }
.hs-compete .cp-how-heart svg { width: 30px; height: 30px; }
.hs-compete .cp-how-cup img { animation: cp-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.hs-compete .cp-how-step::after { content: ""; position: absolute; left: 50%; bottom: -30px; width: 90px; height: 60px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 61, 154, 0.22), rgba(255, 61, 154, 0)); pointer-events: none; }
.hs-compete .cp-empty { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(212, 20, 138, 0.18), rgba(212, 20, 138, 0) 60%), var(--cp-card); }
.hs-compete .cp-empty-ico { position: relative; width: 96px; height: 96px; border-radius: 28px; background: #1c1c1e; }
.hs-compete .cp-empty-ico img { width: 66px; height: 66px; object-fit: contain; animation: cp-snap 3s ease-in-out infinite; }
.hs-compete .cp-empty-ico svg { display: none; }
.hs-compete .cp-drop-doodle { width: 72px; height: 72px; object-fit: contain; opacity: 0.9; }
.hs-compete .cp-drop-empty small { max-width: 26ch; line-height: 1.35; }
/* little hearts float up when you give one */
.cp-fly { position: fixed; z-index: 10003; width: 18px; height: 18px; pointer-events: none; color: #ff3d9a; }
.cp-fly svg { width: 100%; height: 100%; fill: currentColor; }
/* confetti when you are on the podium */
.cp-confetti { position: fixed; z-index: 10003; top: -12px; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }
/* photo cards tilt a little on hover */
@media (hover: hover) and (pointer: fine) {
  .hs-compete .cp-card { transition: transform 300ms var(--cp-ease); }
  .hs-compete .cp-card:hover { transform: translateY(-3px) rotate(-0.6deg); }
  .hs-compete .cp-card:nth-child(even):hover { transform: translateY(-3px) rotate(0.6deg); }
  .hs-compete .cp-how-step { transition: transform 300ms var(--cp-ease); }
  .hs-compete .cp-how-step:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-compete .cp-doodle, .hs-compete .cp-how-cam img, .hs-compete .cp-flashlight, .hs-compete .cp-how-cup img, .hs-compete .cp-empty-ico img { animation: none !important; }
  .cp-fly, .cp-confetti { display: none; }
}

/* ---------- line icons instead of the doodle pictures ---------- */
.hs-compete .cp-doodle { display: none; }
.hs-compete .cp-icon { position: absolute; color: #fff; filter: drop-shadow(0 0 14px rgba(255, 61, 154, 0.6)); }
.hs-compete .cp-icon--trophy { left: 50%; top: 18px; width: 112px; height: 112px; margin-left: -56px; animation: cp-float 3.6s ease-in-out infinite; }
.hs-compete .cp-icon--crown { left: 50%; top: -8px; width: 44px; height: 44px; margin-left: -22px; color: #ffcf5a; transform-origin: 50% 100%; animation: cp-crown 3.6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 207, 90, 0.7)); }
.hs-compete .cp-how-ico svg { width: 30px; height: 30px; animation: none; }
.hs-compete .cp-how-cam svg { animation: cp-snap 3s ease-in-out infinite; }
.hs-compete .cp-how-cup svg { animation: cp-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.hs-compete .cp-empty-ico svg { display: block; width: 44px; height: 44px; color: #fff; animation: cp-snap 3s ease-in-out infinite; }
.hs-compete .cp-drop-empty svg { width: 44px; height: 44px; color: #ff3d9a; }
@media (prefers-reduced-motion: reduce) { .hs-compete .cp-icon, .hs-compete .cp-how-ico svg, .hs-compete .cp-empty-ico svg { animation: none !important; } }

.hs-compete .cp-hall-empty, .cp-hall-empty { margin: 0; padding: 16px 18px; border-radius: 18px; background: #121214; font-size: 14.5px; line-height: 1.5; color: #c7c7cc; }

/* the empty upload box clearly says what to do */
.hs-compete .cp-drop-empty svg { width: 52px !important; height: 52px !important; padding: 12px; border-radius: 50%; background: rgba(255, 61, 154, 0.14); color: #ff3d9a; box-sizing: content-box; animation: cp-nudge 1.8s ease-in-out infinite; }
.hs-compete .cp-drop-empty b { font: 700 20px / 1.1 "Oswald", "Arial Narrow", sans-serif !important; letter-spacing: 0.04em; text-transform: uppercase; color: #fff !important; margin-top: 4px; }
@keyframes cp-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .hs-compete .cp-drop-empty svg { animation: none; } }
.hs-compete .cp-drop-preview[hidden] { display: none !important; }
.hs-compete .cp-drop-empty { position: relative; z-index: 1; }

/* no flashing: glow, sparkles, shine and camera flash stand still (they looked like an error). Only the gentle float stays. */
.hs-compete .cp-glow, .hs-compete .cp-cup-shine, .hs-compete .cp-how-cam svg, .hs-compete .cp-empty-ico svg, .hs-compete .cp-card.is-new .cp-photo { animation: none !important; }
.hs-compete .cp-glow { opacity: 0.75; transform: none; }
.hs-compete .cp-cup-shine { opacity: 0; }
.hs-compete .cp-spark { animation: none !important; opacity: 0.7; transform: none; }
.hs-compete .cp-card.is-new .cp-photo { box-shadow: none; }
.hs-compete .cp-flashlight { animation: none !important; display: none !important; }

/* the golden trophy from the contest card in the feed: same cup, same gentle float, glow and sparkles (no flashing) */
.hs-compete .cp-trophy { width: 150px; height: 150px; margin: -6px auto 0; }
.hs-compete .cp-goldcup { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); animation: hcp-float 3.4s ease-in-out infinite; }
@keyframes hcp-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.hs-compete .cp-glow { background: radial-gradient(closest-side, rgba(255, 61, 154, 0.38), rgba(255, 61, 154, 0) 72%) !important; }
.hs-compete .cp-spark { background: #fff6d6; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .hs-compete .cp-goldcup { animation: none; } }
/* same type as the contest card in the feed: Oswald caps title with a pink glow, Oswald kicker and button */
.hs-compete p.cp-kicker { font: 700 13px / 1 "Oswald", "Arial Narrow", sans-serif !important; letter-spacing: 0.12em; text-transform: uppercase; color: #ff3d9a !important; }
.hs-compete .cp-hero-title { font: 700 clamp(30px, 9vw, 40px) / 1.02 "Oswald", "Arial Narrow", sans-serif !important; letter-spacing: 0.02em !important; text-transform: uppercase; color: #fff !important; text-shadow: 0 0 24px rgba(255, 61, 154, 0.45); }
.hs-compete p.cp-hero-sub { color: #e6dbe3 !important; line-height: 1.4; }
.hs-compete p.cp-ends { color: #ffcf5a !important; font-weight: 600; }
.hs-compete .cp-hero .cp-cta { min-height: 50px; padding: 0 28px; font: 700 18px / 1 "Oswald", "Arial Narrow", sans-serif !important; letter-spacing: 0.05em; text-transform: uppercase; }

/* the banner = the contest card in the feed, 1:1: plum to pink gradient with a thin gold edge, soft pulsing glow, twinkling gold stars */
.hs-compete .cp-hero { background: radial-gradient(120% 80% at 50% 0%, #5a1d48 0%, #2a0f24 55%, #160812 100%) !important; box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.25) !important; isolation: isolate; }
.hs-compete .cp-glow { inset: auto !important; left: 50% !important; top: -20px !important; width: 240px !important; height: 240px !important; margin-left: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 154, 0.45), rgba(255, 61, 154, 0) 70%) !important; animation: hcp-glow 3.2s ease-in-out infinite !important; }
@keyframes hcp-glow { 0%, 100% { opacity: 0.6; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.06); } }
.hs-compete .cp-spark { width: 11px !important; height: 11px !important; background: #fff6d6 !important; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: hcp-tw 2.4s ease-in-out infinite !important; animation-delay: var(--d) !important; }
@keyframes hcp-tw { 0%, 100% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .hs-compete .cp-glow, .hs-compete .cp-spark { animation: none !important; } .hs-compete .cp-spark { opacity: 0.7; } }

