/* =========================================================================
   Junagadh Rangoli Utsav 2026 — site.css
   Bootstrap 5.3 customisation via CSS variables + lean `ru-` components.
   Sections:
     1. Tokens & Bootstrap overrides     8. Steps / awards / sponsors
     2. Base & typography                9. Entry card & rank badges
     3. State / vote-mode visibility    10. CTA band & footer
     4. Buttons                         11. Sticky bars
     5. Header & offcanvas              12. Entry page & lightbox
     6. Hero                            13. Modal, toast, dev switcher
     7. Banner & stats strip            14. Reduced motion
   ========================================================================= */

/* 1. Tokens & Bootstrap overrides ---------------------------------------- */
:root {
  --ru-kumkum: #C8102E;
  --ru-kumkum-dark: #A00D25;
  --ru-marigold: #F59E0B;
  --ru-haldi: #FFD23F;
  --ru-teal: #0E7C86;
  --ru-rani: #D6246E;
  --ru-night: #1C1030;
  --ru-night-2: #2C1A4A;
  --ru-cream: #FFF8EC;
  --ru-cream-2: #F6E9D3;
  --ru-sand: #E9D6B5;
  --ru-ink: #2A1A12;
  --ru-ink-soft: #5E4A3C;       /* 7.4:1 on cream */
  --ru-wa: #0B7A3E;             /* WhatsApp-style green, white text 5.4:1 */
  --ru-wa-dark: #08602F;
  --ru-ji-green: #1F5A3D;       /* junagadh.info forest green (default) */
  --ru-ji-amber: #C98A3E;       /* junagadh.info sandstone amber (default) */

  --ru-font-head: "Baloo Bhai 2", "Noto Sans Gujarati", system-ui, sans-serif;
  --ru-font-body: "Mukta Vaani", "Noto Sans Gujarati", system-ui, sans-serif;

  --ru-radius: 1rem;
  --ru-radius-lg: 1.5rem;
  --ru-shadow: 0 1px 2px rgb(42 26 18 / .06), 0 8px 24px -10px rgb(42 26 18 / .25);
  --ru-shadow-lg: 0 2px 4px rgb(42 26 18 / .08), 0 24px 48px -18px rgb(42 26 18 / .4);
  --ru-glow: 0 0 0 1px rgb(255 210 63 / .35), 0 6px 22px -4px rgb(245 158 11 / .65);
  --ru-header-h: 4rem;
  --ru-bar-h: 4.75rem;

  /* Bootstrap overrides */
  --bs-body-bg: var(--ru-cream);
  --bs-body-color: var(--ru-ink);
  --bs-body-font-family: var(--ru-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-primary: var(--ru-kumkum);
  --bs-primary-rgb: 200, 16, 46;
  --bs-secondary-color: var(--ru-ink-soft);
  --bs-link-color: var(--ru-kumkum);
  --bs-link-color-rgb: 200, 16, 46;
  --bs-link-hover-color: var(--ru-kumkum-dark);
  --bs-link-hover-color-rgb: 160, 13, 37;
  --bs-border-color: var(--ru-sand);
  --bs-border-radius: .75rem;
  --bs-border-radius-lg: var(--ru-radius);
  --bs-border-radius-xl: var(--ru-radius-lg);
  --bs-focus-ring-color: rgb(214 36 110 / .45);
  --bs-heading-color: var(--ru-ink);
}

/* 2. Base & typography --------------------------------------------------- */
html { scroll-padding-top: calc(var(--ru-header-h) + 1rem); }
body { background: var(--ru-cream); overflow-x: clip; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .ru-head { font-family: var(--ru-font-head); font-weight: 800; line-height: 1.2; }
h5, h6 { font-family: var(--ru-font-head); font-weight: 600; }
.ru-en { font-family: var(--ru-font-body); font-weight: 400; opacity: .78; font-size: .78em; }
.ru-sub-en { display: block; font-family: var(--ru-font-body); font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--ru-ink-soft); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ru-rani); outline-offset: 2px; border-radius: .35rem; }
.ru-on-dark :focus-visible, .ru-header :focus-visible, .ru-hero :focus-visible, .ru-footer :focus-visible { outline-color: var(--ru-haldi); }
.ru-visually-hidden-focusable:focus { position: fixed; z-index: 2000; top: .5rem; left: .5rem; }
.ru-skip { background: var(--ru-haldi); color: var(--ru-ink); padding: .75rem 1rem; border-radius: .5rem; font-weight: 600; }

/* 3. State / vote-mode visibility ----------------------------------------
   Any element with data-states="a b" only shows in those competition states.
   Any element with data-vote-modes="whatsapp|device" only shows in that mode.
   In Razor these become server-side `if` blocks; CSS keeps the static mock honest. */
body[data-state="upcoming"]     [data-states]:not([data-states~="upcoming"]),
body[data-state="entries-open"] [data-states]:not([data-states~="entries-open"]),
body[data-state="voting-only"]  [data-states]:not([data-states~="voting-only"]),
body[data-state="closed"]       [data-states]:not([data-states~="closed"]),
body[data-state="results"]      [data-states]:not([data-states~="results"]),
body[data-vote-mode="whatsapp"] [data-vote-modes]:not([data-vote-modes~="whatsapp"]),
body[data-vote-mode="device"]   [data-vote-modes]:not([data-vote-modes~="device"]) { display: none !important; }

/* 4. Buttons ------------------------------------------------------------- */
.btn {
  --bs-btn-padding-y: .65rem;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  min-height: 44px;
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .45rem;
  line-height: 1.25;
}
.btn > i { flex: none; }
.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.6rem; --bs-btn-font-size: 1.125rem; min-height: 52px; }
.btn .ru-en { opacity: .85; }

/* Diya button — primary CTA: marigold flame with a soft glow */
.ru-btn-diya {
  --bs-btn-color: var(--ru-ink);
  --bs-btn-bg: var(--ru-marigold);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--ru-ink);
  --bs-btn-hover-bg: #FBB12E;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--ru-ink);
  --bs-btn-active-bg: #E89207;
  --bs-btn-disabled-bg: var(--ru-sand);
  background-image: linear-gradient(180deg, var(--ru-haldi) -40%, var(--ru-marigold) 70%);
  box-shadow: var(--ru-glow);
  transition: box-shadow .25s ease, transform .15s ease;
}
.ru-btn-diya:hover { box-shadow: 0 0 0 1px rgb(255 210 63 / .55), 0 8px 30px -2px rgb(245 158 11 / .85); }
.ru-btn-diya:active { transform: translateY(1px); }

.ru-btn-kumkum {
  --bs-btn-color: #fff; --bs-btn-bg: var(--ru-kumkum); --bs-btn-border-color: var(--ru-kumkum);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ru-kumkum-dark); --bs-btn-hover-border-color: var(--ru-kumkum-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #870A1F; --bs-btn-active-border-color: #870A1F;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #9C8A80; --bs-btn-disabled-border-color: #9C8A80;
}
.ru-btn-wa {
  --bs-btn-color: #fff; --bs-btn-bg: var(--ru-wa); --bs-btn-border-color: var(--ru-wa);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ru-wa-dark); --bs-btn-hover-border-color: var(--ru-wa-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #064A24; --bs-btn-active-border-color: #064A24;
}
.ru-btn-ghost-light {
  --bs-btn-color: var(--ru-cream); --bs-btn-border-color: rgb(255 248 236 / .55);
  --bs-btn-hover-color: var(--ru-night); --bs-btn-hover-bg: var(--ru-cream); --bs-btn-hover-border-color: var(--ru-cream);
  --bs-btn-active-color: var(--ru-night); --bs-btn-active-bg: var(--ru-haldi); --bs-btn-active-border-color: var(--ru-haldi);
  --bs-btn-bg: transparent;
}
.ru-btn-outline {
  --bs-btn-color: var(--ru-ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--ru-sand);
  --bs-btn-hover-color: var(--ru-ink); --bs-btn-hover-bg: var(--ru-cream-2); --bs-btn-hover-border-color: #D8BF96;
  --bs-btn-active-color: var(--ru-ink); --bs-btn-active-bg: var(--ru-sand); --bs-btn-active-border-color: #D8BF96;
}
.ru-icon-btn {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ru-sand); background: #fff; color: var(--ru-ink); font-size: 1.15rem;
}
.ru-icon-btn:hover { background: var(--ru-cream-2); }

/* Vote button — device mode voted state */
.ru-vote-btn .ru-vote-done { display: none; }
.ru-vote-btn.is-voted { --bs-btn-bg: var(--ru-teal); --bs-btn-border-color: var(--ru-teal); --bs-btn-disabled-bg: var(--ru-teal); --bs-btn-disabled-border-color: var(--ru-teal); --bs-btn-disabled-opacity: 1; }
.ru-vote-btn.is-voted .ru-vote-idle { display: none; }
.ru-vote-btn.is-voted .ru-vote-done { display: inline-flex; gap: .4rem; align-items: center; }
.ru-vote-closed { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; background: var(--ru-cream-2); color: var(--ru-ink-soft); font-weight: 600; }

/* 5. Header & offcanvas -------------------------------------------------- */
.ru-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgb(28 16 48 / .94);
  backdrop-filter: saturate(1.4) blur(10px);
  color: var(--ru-cream);
  border-bottom: 1px solid rgb(255 210 63 / .14);
}
.ru-header .navbar { min-height: var(--ru-header-h); padding-block: .35rem; }
.ru-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ru-cream); text-decoration: none; min-height: 44px; }
.ru-brand:hover { color: #fff; }
.ru-brand img { width: 40px; height: 40px; flex: none; }
.ru-brand-text { display: flex; flex-direction: column; line-height: 1; }
.ru-brand-name { font-family: var(--ru-font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; }
.ru-brand-by { font-size: .72rem; font-weight: 600; color: var(--ru-haldi); letter-spacing: .06em; margin-top: .15rem; }
.ru-nav .nav-link { color: rgb(255 248 236 / .86); font-weight: 600; min-height: 44px; display: flex; align-items: center; padding-inline: .9rem !important; border-radius: 999px; }
.ru-nav .nav-link:hover, .ru-nav .nav-link:focus-visible { color: #fff; background: rgb(255 255 255 / .08); }
.ru-nav .nav-link.active, .ru-nav .nav-link[aria-current="page"] { color: var(--ru-haldi); }
.ru-menu-btn { color: var(--ru-cream); border: 1px solid rgb(255 248 236 / .3); background: transparent; }
.ru-menu-btn:hover { background: rgb(255 255 255 / .1); color: #fff; }
.ru-offcanvas { --bs-offcanvas-width: min(86vw, 340px); --bs-offcanvas-bg: var(--ru-night); --bs-offcanvas-color: var(--ru-cream); }
.ru-offcanvas .btn-close { filter: invert(1) grayscale(1); width: 44px; height: 44px; padding: 0; }
.ru-offcanvas .nav-link { font-size: 1.15rem; min-height: 52px; border-bottom: 1px solid rgb(255 255 255 / .08); border-radius: 0; padding-inline: .25rem !important; }
.ru-offcanvas .nav-link i { color: var(--ru-marigold); width: 1.75rem; }

/* 6. Hero ---------------------------------------------------------------- */
.ru-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgb(214 36 110 / .35), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(14 124 134 / .35), transparent 60%),
    var(--ru-night);
  color: var(--ru-cream);
  padding-block: 2.25rem 5.5rem;
}
.ru-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/kolam-pattern.svg") center / 120px 120px repeat;
  opacity: .22;
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .4) 70%, transparent 100%);
}
.ru-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: rgb(255 210 63 / .12); color: var(--ru-haldi);
  font-weight: 600; font-size: .9rem; border: 1px solid rgb(255 210 63 / .3);
}
.ru-hero-title { font-size: clamp(2.1rem, 8.6vw, 4rem); margin: .9rem 0 .15rem; color: #fff; }
.ru-hero-title-en { display: block; font-family: var(--ru-font-body); font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.3rem); color: rgb(255 248 236 / .8); letter-spacing: .03em; margin-bottom: 1rem; }
.ru-hero-tagline { font-family: var(--ru-font-head); font-weight: 600; font-size: clamp(1.25rem, 5vw, 1.75rem); color: var(--ru-haldi); line-height: 1.3; }
.ru-hero-sub { color: rgb(255 248 236 / .88); font-size: 1.075rem; max-width: 34rem; }
.ru-hero-ctas .btn { width: 100%; }
@media (min-width: 576px) { .ru-hero-ctas .btn { width: auto; } }
.ru-hero-art { position: relative; max-width: 420px; margin-inline: auto; }
.ru-hero-art::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 210 63 / .35), rgb(245 158 11 / .12) 60%, transparent 75%);
  z-index: -1;
}
.ru-hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ru-radius-lg); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7); border: 4px solid rgb(255 248 236 / .12); }
.ru-hero-art figcaption { position: absolute; left: .75rem; bottom: .75rem; background: rgb(28 16 48 / .82); color: var(--ru-cream); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
@media (min-width: 992px) { .ru-hero { padding-block: 4rem 7rem; } }

/* 7. Banner & stats strip ------------------------------------------------ */
.ru-banner {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--ru-radius);
  background: #fff; border: 1px solid var(--ru-sand); box-shadow: var(--ru-shadow);
  border-inline-start: 6px solid var(--ru-marigold);
}
.ru-banner i { font-size: 1.35rem; line-height: 1.3; color: var(--ru-marigold); }
.ru-banner strong { font-family: var(--ru-font-head); font-weight: 600; font-size: 1.1rem; display: block; line-height: 1.3; }
.ru-banner p { margin: 0; color: var(--ru-ink-soft); font-size: .98rem; }
.ru-banner[data-states="entries-open"] { border-inline-start-color: var(--ru-wa); }
.ru-banner[data-states="entries-open"] i { color: var(--ru-wa); }
.ru-banner[data-states="voting-only"] { border-inline-start-color: var(--ru-rani); }
.ru-banner[data-states="voting-only"] i { color: var(--ru-rani); }
.ru-banner[data-states="closed"] { border-inline-start-color: var(--ru-teal); }
.ru-banner[data-states="closed"] i { color: var(--ru-teal); }
.ru-banner[data-states="results"] { border-inline-start-color: var(--ru-kumkum); background: linear-gradient(90deg, #FFF1D6, #fff); }
.ru-banner[data-states="results"] i { color: var(--ru-kumkum); }
.ru-banner-wrap { margin-top: -3.5rem; position: relative; z-index: 2; }
@media (min-width: 992px) { .ru-banner-wrap { margin-top: -4.5rem; } }

.ru-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .75rem;
}
.ru-stat {
  background: #fff; border: 1px solid var(--ru-sand); border-radius: var(--ru-radius);
  padding: .7rem .75rem; box-shadow: var(--ru-shadow); min-width: 0;
}
.ru-stat-num { font-family: var(--ru-font-head); font-weight: 800; font-size: clamp(1.35rem, 6vw, 1.9rem); line-height: 1.1; color: var(--ru-ink); font-variant-numeric: tabular-nums; }
.ru-stat-label { color: var(--ru-ink-soft); font-size: .92rem; font-weight: 600; line-height: 1.3; }
.ru-stat-label .ru-en { font-weight: 400; display: block; }
.ru-stat-count .ru-stat-label .ru-en { display: inline; }
.ru-stat-count { grid-column: 1 / -1; background: var(--ru-night); color: var(--ru-cream); border-color: transparent; }
.ru-stat-count .ru-stat-label { color: rgb(255 248 236 / .82); }
.ru-countdown { display: flex; gap: .5rem; margin-top: .35rem; }
.ru-countdown > div { flex: 1; text-align: center; background: rgb(255 255 255 / .07); border-radius: .65rem; padding: .35rem .25rem; }
.ru-countdown b { display: block; font-family: var(--ru-font-head); font-weight: 800; font-size: 1.6rem; color: var(--ru-haldi); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ru-countdown span { font-size: .8rem; color: rgb(255 248 236 / .8); }
.ru-countdown-done { font-family: var(--ru-font-head); font-weight: 600; font-size: 1.3rem; color: var(--ru-haldi); margin: .35rem 0 0; }
@media (min-width: 768px) {
  .ru-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.8fr); gap: .75rem; }
  .ru-stat-count { grid-column: auto; }
}

/* 8. Sections, steps, awards, sponsors ----------------------------------- */
.ru-section { padding-block: 2.75rem; }
@media (min-width: 992px) { .ru-section { padding-block: 4rem; } }
.ru-section-alt { background: var(--ru-cream-2); }
.ru-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.ru-section-title { font-size: clamp(1.55rem, 5.6vw, 2.25rem); margin: 0; }
.ru-section-title .ru-sub-en { margin-top: .1rem; }
.ru-divider { height: 16px; background: url("../img/divider.svg") center / 48px 16px repeat-x; opacity: .9; }
.ru-link-more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; white-space: nowrap; }
.ru-link-more:hover { text-decoration: underline; }

.ru-steps { counter-reset: step; display: grid; gap: .9rem; }
@media (min-width: 768px) { .ru-steps { grid-template-columns: repeat(3, 1fr); } }
.ru-step {
  position: relative; background: #fff; border-radius: var(--ru-radius); border: 1px solid var(--ru-sand);
  padding: 1.1rem 1.1rem 1.1rem 4.6rem; box-shadow: var(--ru-shadow); min-height: 6rem;
}
.ru-step-icon {
  position: absolute; left: 1rem; top: 1.1rem; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem; color: #fff;
}
.ru-step:nth-child(1) .ru-step-icon { background: var(--ru-rani); }
.ru-step:nth-child(2) .ru-step-icon { background: var(--ru-teal); }
.ru-step:nth-child(3) .ru-step-icon { background: var(--ru-wa); }
.ru-step h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.ru-step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--ru-marigold); }
.ru-step p { margin: 0; color: var(--ru-ink-soft); font-size: .98rem; }

.ru-award {
  height: 100%; border-radius: var(--ru-radius-lg); padding: 1.4rem; position: relative; overflow: hidden;
  color: var(--ru-cream); background: var(--ru-night); box-shadow: var(--ru-shadow-lg);
}
.ru-award::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: url("../img/mark.svg") center / contain no-repeat; opacity: .16; }
.ru-award-people { background: linear-gradient(150deg, var(--ru-rani), #8E1650); }
.ru-award-jury { background: linear-gradient(150deg, var(--ru-teal), #0A4F5A); }
.ru-award-kids { background: linear-gradient(150deg, #B85F00, #7A3E00); }
.ru-award i { font-size: 2rem; color: var(--ru-haldi); }
.ru-award h3 { color: #fff; font-size: 1.45rem; margin: .5rem 0 .15rem; }
.ru-award .ru-sub-en { color: rgb(255 248 236 / .85); }
.ru-award p { color: rgb(255 248 236 / .92); margin: .6rem 0 0; }
.ru-prize { display: inline-block; margin-top: .9rem; padding: .3rem .85rem; border-radius: 999px; background: rgb(255 255 255 / .16); font-weight: 600; }
.ru-everyone { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px dashed var(--ru-marigold); border-radius: var(--ru-radius); padding: 1rem 1.1rem; }
.ru-everyone i { font-size: 1.8rem; color: var(--ru-marigold); }
.ru-sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 768px) { .ru-sponsors { grid-template-columns: repeat(4, 1fr); } }
.ru-sponsor-slot { aspect-ratio: 3 / 1.3; display: grid; place-items: center; text-align: center; border: 2px dashed var(--ru-sand); border-radius: var(--ru-radius); color: var(--ru-ink-soft); font-size: .9rem; font-weight: 600; background: rgb(255 255 255 / .55); padding: .5rem; }

/* 9. Entry card & rank badges -------------------------------------------- */
.ru-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .ru-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .ru-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

.ru-entry-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--ru-radius); overflow: hidden;
  box-shadow: var(--ru-shadow); border: 1px solid rgb(233 214 181 / .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ru-entry-card:hover { transform: translateY(-2px); box-shadow: var(--ru-shadow-lg); }
.ru-entry-card-media { position: relative; aspect-ratio: 1; background: var(--ru-cream-2); }
.ru-entry-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ru-entry-card-link { color: inherit; text-decoration: none; }
.ru-entry-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.ru-entry-card-link:focus-visible { outline: none; }
.ru-entry-card:has(.ru-entry-card-link:focus-visible) { outline: 3px solid var(--ru-rani); outline-offset: 2px; }
.ru-entry-num {
  position: absolute; top: .5rem; left: .5rem; z-index: 2;
  background: rgb(28 16 48 / .82); color: #fff; font-weight: 600; font-size: .82rem;
  padding: .15rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.ru-entry-card-body { padding: .6rem .7rem .55rem; display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.ru-entry-name { font-family: var(--ru-font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-entry-loc { font-size: .88rem; color: var(--ru-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-entry-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .25rem; }
.ru-entry-votes { font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: .3rem; }
.ru-entry-votes i { color: var(--ru-kumkum); }
.ru-entry-card-actions { position: relative; z-index: 2; display: flex; gap: .15rem; }
.ru-entry-card-actions .ru-icon-btn { border: 0; background: transparent; width: 44px; height: 44px; font-size: 1.1rem; }
.ru-entry-card-actions .ru-icon-btn:hover { background: var(--ru-cream-2); }
.ru-entry-card-actions .bi-whatsapp { color: var(--ru-wa); }
.ru-entry-card-actions .bi-heart, .ru-entry-card-actions .bi-heart-fill { color: var(--ru-kumkum); }

.ru-rank-badge {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  min-width: 2.4rem; height: 2.4rem; padding-inline: .45rem; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--ru-font-head); font-weight: 800; font-size: 1rem;
  background: rgb(255 248 236 / .94); color: var(--ru-ink); box-shadow: 0 2px 8px rgb(0 0 0 / .25);
}
.ru-rank-badge[data-rank="1"] { background: linear-gradient(140deg, #FFE27A, #F2A900); color: #3A2400; }
.ru-rank-badge[data-rank="2"] { background: linear-gradient(140deg, #F4F4F6, #B9BCC6); color: #26283A; }
.ru-rank-badge[data-rank="3"] { background: linear-gradient(140deg, #F2C29A, #B8733D); color: #3A1D06; }
.ru-rank-badge { display: flex; align-items: center; justify-content: center; gap: .2rem; }
.ru-rank-badge i { font-size: .85rem; }

/* Horizontal scroll-snap strip (mobile) → grid (desktop) */
.ru-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: .25rem 1rem 1rem; margin-inline: -1rem; scrollbar-width: thin;
  scroll-padding-inline: 1rem;
}
.ru-strip > * { scroll-snap-align: start; }
@media (min-width: 576px) { .ru-strip { grid-auto-columns: 42%; } }
@media (min-width: 992px) {
  .ru-strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; gap: 1.1rem; }
}
@media (min-width: 992px) { .ru-strip-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ru-wa-icon { color: var(--ru-wa); }
.ru-strip-hint { font-size: .85rem; color: var(--ru-ink-soft); }
@media (min-width: 992px) { .ru-strip-hint { display: none; } }

/* Skeleton card (gallery load-more) */
.ru-skeleton .ru-entry-card-media, .ru-skeleton .ru-sk-line { background: linear-gradient(90deg, var(--ru-cream-2) 25%, #fff 50%, var(--ru-cream-2) 75%); background-size: 200% 100%; animation: ru-shimmer 1.2s infinite linear; }
.ru-sk-line { height: .9rem; border-radius: .4rem; margin: .35rem 0; }
@keyframes ru-shimmer { to { background-position: -200% 0; } }

/* 10. CTA band & footer -------------------------------------------------- */
.ru-cta-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ru-kumkum) 0%, var(--ru-rani) 60%, #8E1650 100%);
  padding-block: 2.75rem;
}
.ru-cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/kolam-pattern.svg") center / 120px repeat; opacity: .25; }
.ru-cta-band h2 { color: #fff; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.ru-cta-band p { color: rgb(255 255 255 / .92); }

.ru-footer { background: var(--ru-night); color: rgb(255 248 236 / .86); padding-top: 2.5rem; }
.ru-footer a { color: var(--ru-cream); text-decoration: none; }
.ru-footer a:hover { color: var(--ru-haldi); text-decoration: underline; }
.ru-footer h2 { font-size: 1.05rem; color: var(--ru-haldi); font-family: var(--ru-font-head); font-weight: 600; margin-bottom: .6rem; }
.ru-footer-links { list-style: none; padding: 0; margin: 0; }
.ru-footer a:not(.ru-brand) { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; min-width: 44px; }
.ru-footer-ji { margin-top: 2rem; background: var(--ru-ji-green); color: #fff; padding-block: 1rem; font-size: .95rem; border-top: 4px solid var(--ru-ji-amber); }
.ru-footer-ji a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ru-footer-ji .ru-ji-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ru-ji-amber); margin-right: .45rem; }

/* 11. Sticky bars -------------------------------------------------------- */
.ru-mobile-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1020;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgb(28 16 48 / .96); backdrop-filter: blur(8px);
  border-top: 1px solid rgb(255 210 63 / .25);
  transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
}
.ru-mobile-cta.is-visible { transform: none; visibility: visible; }
.ru-mobile-cta .btn { width: 100%; }
@media (min-width: 992px) { .ru-mobile-cta { display: none; } }

/* Entry page bar is always on (mobile); body padding keeps footer clear of it */
.ru-action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1020;
  display: flex; gap: .5rem; align-items: center;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgb(255 248 236 / .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--ru-sand); box-shadow: 0 -8px 24px -12px rgb(42 26 18 / .35);
}
.ru-action-bar > .ru-vote-slot { flex: 1; min-width: 0; }
.ru-action-bar .ru-vote-slot .btn, .ru-action-bar .ru-vote-slot .ru-vote-closed { width: 100%; justify-content: center; }
.ru-action-bar .ru-bar-share { flex: none; }
.ru-action-bar .ru-en { display: none; }
.ru-action-bar .btn-lg { --bs-btn-padding-x: 1rem; }
.ru-has-action-bar { padding-bottom: calc(var(--ru-bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 992px) {
  .ru-action-bar { display: none; }
  .ru-has-action-bar { padding-bottom: 0; }
}

/* 12. Entry page --------------------------------------------------------- */
.ru-entry-hero { padding-block: 1rem 2rem; }
@media (min-width: 992px) { .ru-entry-hero { padding-block: 2.25rem 3rem; } }
.ru-breadcrumb { font-size: .92rem; margin-bottom: .75rem; }
.ru-breadcrumb a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; text-decoration: none; font-weight: 600; }
.ru-photo-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ru-cream-2);
  border-radius: var(--ru-radius-lg); overflow: hidden; box-shadow: var(--ru-shadow-lg); cursor: zoom-in;
}
.ru-photo-btn img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ru-photo-zoom { position: absolute; right: .75rem; bottom: .75rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(28 16 48 / .78); color: #fff; font-size: 1.15rem; }
.ru-pending-badge {
  position: absolute; left: .75rem; top: .75rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--ru-haldi); color: var(--ru-ink); font-weight: 600; font-size: .9rem;
  padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 2px 10px rgb(0 0 0 / .25);
}
.ru-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 600; font-size: .92rem; background: #fff; border: 1px solid var(--ru-sand); }
.ru-chip-rank { background: var(--ru-night); color: var(--ru-haldi); border-color: var(--ru-night); }
.ru-entry-by { font-size: clamp(1.5rem, 6vw, 2.1rem); margin: .6rem 0 .1rem; }
.ru-entry-by small { display: block; font-family: var(--ru-font-body); font-weight: 600; font-size: .95rem; color: var(--ru-ink-soft); }
.ru-entry-desc { font-size: 1.08rem; background: #fff; border-radius: var(--ru-radius); padding: .85rem 1rem; border: 1px solid var(--ru-sand); position: relative; }
.ru-entry-desc::before { content: "“"; position: absolute; top: -.6rem; left: .6rem; font-family: var(--ru-font-head); font-size: 2.4rem; color: var(--ru-marigold); line-height: 1; }
.ru-vote-total { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0; }
.ru-vote-total b { font-family: var(--ru-font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--ru-kumkum); font-variant-numeric: tabular-nums; }
.ru-vote-total span { font-weight: 600; color: var(--ru-ink-soft); }
.ru-entry-panel { background: rgb(255 255 255 / .6); border-radius: var(--ru-radius-lg); }
@media (min-width: 992px) {
  .ru-entry-panel { position: sticky; top: calc(var(--ru-header-h) + 1.5rem); background: #fff; padding: 1.5rem; border: 1px solid var(--ru-sand); box-shadow: var(--ru-shadow); }
}
.ru-share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.ru-share-row .btn { flex: 1 1 auto; }
.ru-made-too { border-radius: var(--ru-radius-lg); background: var(--ru-night); color: var(--ru-cream); padding: 1.4rem; position: relative; overflow: hidden; isolation: isolate; }
.ru-made-too::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/kolam-pattern.svg") center / 100px repeat; opacity: .18; }
.ru-made-too h2 { color: #fff; font-size: 1.5rem; }
.ru-gone { text-align: center; padding: 2.5rem 1rem; background: #fff; border-radius: var(--ru-radius-lg); border: 1px solid var(--ru-sand); box-shadow: var(--ru-shadow); }
.ru-gone i { font-size: 3rem; color: var(--ru-marigold); }

/* Entry variants: data-entry-status on .ru-entry root */
.ru-entry[data-entry-status="hidden"] .ru-entry-live { display: none !important; }
.ru-entry:not([data-entry-status="hidden"]) .ru-entry-gone { display: none !important; }
.ru-entry:not([data-entry-status="pending"]) .ru-pending-badge { display: none !important; }

/* Lightbox (native <dialog>) */
.ru-lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: rgb(10 6 18 / .96); color: #fff; }
.ru-lightbox::backdrop { background: rgb(10 6 18 / .9); }
.ru-lightbox[open] { display: grid; place-items: center; }
.ru-lightbox img { max-width: 100vw; max-height: 100dvh; width: auto; height: auto; object-fit: contain; }
.ru-lightbox-close { position: absolute; top: .75rem; right: .75rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .16); color: #fff; font-size: 1.4rem; }
.ru-lightbox-close:hover { background: rgb(255 255 255 / .28); }

/* 13. Modal, toast, dev switcher ----------------------------------------- */
.ru-modal .modal-content { border: 0; border-radius: var(--ru-radius-lg); background: var(--ru-cream); }
.ru-modal .modal-header { border: 0; padding-bottom: 0; }
.ru-modal .btn-close { width: 44px; height: 44px; padding: 0; }
.ru-modal-icon { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--ru-wa); color: #fff; font-size: 2rem; margin: 0 auto .75rem; box-shadow: 0 0 0 8px rgb(11 122 62 / .12); }
.ru-modal-steps { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.ru-modal-steps li { display: flex; gap: .6rem; align-items: center; background: #fff; border-radius: .75rem; padding: .55rem .75rem; border: 1px solid var(--ru-sand); }
.ru-modal-steps b { width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ru-marigold); color: var(--ru-ink); }

.ru-toast { position: fixed; left: 50%; bottom: calc(var(--ru-bar-h) + 1rem); transform: translate(-50%, 1rem); z-index: 1090; background: var(--ru-night); color: #fff; padding: .65rem 1.1rem; border-radius: 999px; box-shadow: var(--ru-shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 2rem); text-align: center; }
.ru-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.ru-dev { position: fixed; left: .5rem; bottom: calc(var(--ru-bar-h) + .75rem); z-index: 1040; font-size: .85rem; }
@media (min-width: 992px) { .ru-dev { bottom: 1rem; } }
.ru-dev-toggle { min-height: 44px; border-radius: 999px; border: 2px dashed #FF4FD8; background: #111; color: #FF9AF0; font-weight: 700; padding: .3rem .8rem; letter-spacing: .05em; }
.ru-dev-panel { position: absolute; left: 0; bottom: calc(100% + .5rem); width: min(300px, calc(100vw - 1rem)); background: #111; color: #eee; border: 2px dashed #FF4FD8; border-radius: .75rem; padding: .75rem; box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
.ru-dev-panel[hidden] { display: none; }
.ru-dev-panel fieldset { margin-bottom: .6rem; }
.ru-dev-panel legend { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #FF9AF0; margin-bottom: .3rem; }
.ru-dev-panel label { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; margin-right: .6rem; cursor: pointer; }
.ru-dev-note { font-size: .72rem; color: #aaa; margin: 0; }

/* 15. Inner pages -------------------------------------------------------- */
.ru-announce { background: var(--ru-haldi); color: var(--ru-ink); font-weight: 600; font-size: .95rem; text-align: center; padding: .5rem 1rem; }
.ru-announce[hidden] { display: none; }

.ru-page-head {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ru-cream);
  background: radial-gradient(40rem 18rem at 90% 0%, rgb(214 36 110 / .35), transparent 60%), var(--ru-night);
  padding-block: 1.75rem 2.25rem;
}
.ru-page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/kolam-pattern.svg") center / 110px repeat; opacity: .16; }
.ru-page-head h1 { color: #fff; font-size: clamp(1.8rem, 7vw, 2.75rem); margin: 0; }
.ru-page-head h1 .ru-sub-en { color: rgb(255 248 236 / .8); }
.ru-page-head p { color: rgb(255 248 236 / .88); margin: .5rem 0 0; max-width: 40rem; }
.ru-page-head .btn { margin-top: 1rem; }

/* Gallery filters */
.ru-filters {
  display: grid; gap: .6rem; background: #fff; border: 1px solid var(--ru-sand); border-radius: var(--ru-radius);
  padding: .75rem; box-shadow: var(--ru-shadow); margin-top: -1.25rem; position: relative; z-index: 2;
}
@media (min-width: 768px) { .ru-filters { grid-template-columns: 1fr auto; align-items: end; padding: 1rem; } }
.ru-filters .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.form-select, .form-control { min-height: 48px; font-size: 1.05rem; border-color: #D8BF96; }
.form-select:focus, .form-control:focus, .form-check-input:focus { border-color: var(--ru-rani); box-shadow: 0 0 0 .25rem rgb(214 36 110 / .2); }
.ru-seg { display: flex; background: var(--ru-cream-2); border-radius: 999px; padding: .25rem; gap: .25rem; }
.ru-seg .btn { flex: 1; --bs-btn-padding-x: .9rem; --bs-btn-color: var(--ru-ink); --bs-btn-hover-bg: rgb(255 255 255 / .6); white-space: nowrap; }
.ru-seg .btn-check:checked + .btn { background: var(--ru-night); color: #fff; }
.ru-result-count { color: var(--ru-ink-soft); font-weight: 600; margin: 1rem 0 .75rem; }
.ru-empty { text-align: center; padding: 2.5rem 1rem; border: 2px dashed var(--ru-sand); border-radius: var(--ru-radius-lg); background: rgb(255 255 255 / .6); }
.ru-empty i { font-size: 2.6rem; color: var(--ru-marigold); }
.ru-empty[hidden] { display: none; }

/* Forms (upload) */
.ru-form-wrap { max-width: 640px; margin-inline: auto; }
.ru-form .form-label { font-weight: 600; font-size: 1.05rem; margin-bottom: .3rem; }
.ru-form .form-label .ru-en { font-weight: 400; }
.ru-form .form-text { color: var(--ru-ink-soft); font-size: .9rem; }
.ru-form .invalid-feedback { font-size: .92rem; font-weight: 600; color: var(--ru-kumkum); }
.ru-form .form-control.is-invalid, .ru-form .form-select.is-invalid { border-color: var(--ru-kumkum); }
.ru-field:has(.form-check-input.is-invalid) > .invalid-feedback { display: block; }
.ru-field { background: #fff; border: 1px solid var(--ru-sand); border-radius: var(--ru-radius); padding: 1rem; margin-bottom: .9rem; }
.ru-prefix { background: var(--ru-cream-2); border-color: #D8BF96; font-weight: 600; min-width: 3.6rem; justify-content: center; }
.ru-private { display: inline-flex; gap: .35rem; align-items: center; color: var(--ru-teal); font-weight: 600; font-size: .9rem; margin-top: .35rem; }
.ru-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  min-height: 12rem; padding: 1.25rem; border: 2px dashed var(--ru-marigold); border-radius: var(--ru-radius);
  background: repeating-linear-gradient(45deg, #FFFBF3, #FFFBF3 12px, #FFF4E0 12px, #FFF4E0 24px); cursor: pointer;
}
.ru-dropzone:hover { border-color: var(--ru-rani); }
.ru-dropzone i { font-size: 2.6rem; color: var(--ru-rani); }
.ru-dropzone strong { font-family: var(--ru-font-head); font-weight: 600; font-size: 1.2rem; }
.ru-photo-field:focus-within .ru-dropzone { outline: 3px solid var(--ru-rani); outline-offset: 2px; }
.ru-photo-field.is-invalid .ru-dropzone { border-color: var(--ru-kumkum); background: #FFF0F0; }
.ru-photo-field .invalid-feedback { display: none; }
.ru-photo-field.is-invalid .invalid-feedback { display: block; }
.ru-preview { position: relative; }
.ru-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ru-radius); box-shadow: var(--ru-shadow); background: var(--ru-cream-2); }
.ru-preview-meta { font-size: .88rem; color: var(--ru-ink-soft); }
.ru-processing { display: flex; align-items: center; gap: .6rem; padding: 1rem; color: var(--ru-ink-soft); font-weight: 600; }
.ru-counter { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--ru-ink-soft); }
.ru-counter.is-near { color: var(--ru-kumkum); font-weight: 600; }
.form-check { min-height: 44px; display: flex; gap: .7rem; align-items: flex-start; padding-left: 0; }
.form-check .form-check-input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; flex: none; float: none; border-color: #B89B70; }
.form-check-input:checked { background-color: var(--ru-kumkum); border-color: var(--ru-kumkum); }
.form-check-label { cursor: pointer; }
.form-switch { padding-left: 0; }
.form-switch .form-check-input { width: 3rem; height: 1.6rem; }
.ru-progress { height: 1.1rem; border-radius: 999px; background: var(--ru-cream-2); }
.ru-progress .progress-bar { background: linear-gradient(90deg, var(--ru-rani), var(--ru-marigold)); font-weight: 600; }
.ru-tips { background: var(--ru-cream-2); border-radius: var(--ru-radius); padding: 1rem 1.1rem; }
.ru-tips ul { margin: 0; padding-left: 1.2rem; }
.ru-notice { text-align: center; background: #fff; border: 1px solid var(--ru-sand); border-radius: var(--ru-radius-lg); padding: 2rem 1.25rem; box-shadow: var(--ru-shadow); }
.ru-notice > i { font-size: 2.8rem; color: var(--ru-marigold); }

/* Upload success */
.ru-success { max-width: 560px; margin-inline: auto; text-align: center; }
.ru-success-badge { width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto .75rem; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: var(--ru-wa); box-shadow: 0 0 0 10px rgb(11 122 62 / .14), var(--ru-glow); }
.ru-success-thumb { width: min(260px, 70vw); aspect-ratio: 1; object-fit: cover; border-radius: var(--ru-radius-lg); box-shadow: var(--ru-shadow-lg); border: 4px solid #fff; transform: rotate(-2deg); }
.ru-entry-no { font-family: var(--ru-font-head); font-weight: 800; font-size: 2.6rem; color: var(--ru-kumkum); line-height: 1; }
.ru-linkbox { display: flex; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--ru-sand); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; text-align: left; }
.ru-linkbox .ru-en { display: none; }
.ru-linkbox code { flex: 1; min-width: 0; color: var(--ru-ink); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-msg-preview { white-space: pre-line; text-align: left; background: #E7F6EC; border-radius: 0 var(--ru-radius) var(--ru-radius) var(--ru-radius); padding: .85rem 1rem; font-size: .98rem; border: 1px solid #C5E6CF; }
.ru-confetti { position: fixed; inset: 0 0 auto 0; height: 0; pointer-events: none; z-index: 1035; }
.ru-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; opacity: 0; animation: ru-fall 2.8s ease-in forwards; }
.ru-confetti i:nth-child(4n+1) { background: var(--ru-kumkum); }
.ru-confetti i:nth-child(4n+2) { background: var(--ru-marigold); border-radius: 50%; }
.ru-confetti i:nth-child(4n+3) { background: var(--ru-teal); }
.ru-confetti i:nth-child(4n) { background: var(--ru-rani); width: 8px; height: 8px; border-radius: 50%; }
.ru-confetti i:nth-child(1) { left: 6%; animation-delay: .05s; } .ru-confetti i:nth-child(2) { left: 14%; animation-delay: .4s; }
.ru-confetti i:nth-child(3) { left: 22%; animation-delay: .2s; } .ru-confetti i:nth-child(4) { left: 31%; animation-delay: .6s; }
.ru-confetti i:nth-child(5) { left: 39%; animation-delay: .1s; } .ru-confetti i:nth-child(6) { left: 47%; animation-delay: .5s; }
.ru-confetti i:nth-child(7) { left: 55%; animation-delay: .25s; } .ru-confetti i:nth-child(8) { left: 63%; animation-delay: .7s; }
.ru-confetti i:nth-child(9) { left: 71%; animation-delay: .15s; } .ru-confetti i:nth-child(10) { left: 79%; animation-delay: .45s; }
.ru-confetti i:nth-child(11) { left: 87%; animation-delay: .3s; } .ru-confetti i:nth-child(12) { left: 94%; animation-delay: .55s; }
@keyframes ru-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(85vh) rotate(540deg); }
}

/* Leaderboard */
.ru-updated { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: rgb(255 248 236 / .85); margin-top: .6rem; }
.ru-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-items: end; margin-top: -1.25rem; position: relative; z-index: 2; }
.ru-podium-item { position: relative; text-align: center; background: #fff; border-radius: var(--ru-radius); padding: .5rem .45rem .75rem; box-shadow: var(--ru-shadow-lg); border: 1px solid var(--ru-sand); color: inherit; text-decoration: none; min-width: 0; }
.ru-podium-item:hover { color: inherit; transform: translateY(-2px); }
.ru-podium-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .7rem; }
.ru-podium-item[data-rank="1"] { order: 2; padding-bottom: 1.4rem; border: 2px solid #F2A900; }
.ru-podium-item[data-rank="2"] { order: 1; }
.ru-podium-item[data-rank="3"] { order: 3; }
.ru-podium-item .ru-rank-badge { top: -.8rem; left: 50%; right: auto; transform: translateX(-50%); }
.ru-podium-name { font-family: var(--ru-font-head); font-weight: 600; font-size: .98rem; margin-top: .4rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-podium-votes { font-weight: 800; font-family: var(--ru-font-head); color: var(--ru-kumkum); font-size: 1.15rem; }
@media (min-width: 768px) { .ru-podium { gap: 1.25rem; max-width: 860px; margin-inline: auto; } .ru-podium-item { padding: .75rem .75rem 1rem; } .ru-podium-name { font-size: 1.15rem; } }
.ru-rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ru-rank-row { display: grid; grid-template-columns: 2.5rem 3.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; background: #fff; border: 1px solid var(--ru-sand); border-radius: var(--ru-radius); padding: .5rem .75rem .5rem .5rem; color: inherit; text-decoration: none; min-height: 4.5rem; }
.ru-rank-row:hover { color: inherit; background: #FFFDF8; border-color: #D8BF96; }
.ru-rank-row img { width: 3.5rem; height: 3.5rem; border-radius: .6rem; object-fit: cover; }
.ru-rank-num { font-family: var(--ru-font-head); font-weight: 800; font-size: 1.3rem; text-align: center; color: var(--ru-ink-soft); }
.ru-rank-who { min-width: 0; }
.ru-rank-who b { display: block; font-family: var(--ru-font-head); font-weight: 600; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-rank-who span { display: block; font-size: .88rem; color: var(--ru-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-rank-votes { font-family: var(--ru-font-head); font-weight: 800; color: var(--ru-kumkum); font-size: 1.15rem; text-align: right; line-height: 1.1; }
.ru-rank-votes small { display: block; font-family: var(--ru-font-body); font-weight: 400; font-size: .75rem; color: var(--ru-ink-soft); }
.ru-choice-note { display: grid; gap: .75rem; }
@media (min-width: 768px) { .ru-choice-note { grid-template-columns: 1fr 1fr; } }
.ru-choice-note > div { background: #fff; border-radius: var(--ru-radius); border: 1px solid var(--ru-sand); padding: 1rem; border-top: 4px solid var(--ru-rani); }
.ru-choice-note > div + div { border-top-color: var(--ru-teal); }

/* Rules */
.ru-toc { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-top: -1.4rem; position: relative; z-index: 2; scrollbar-width: none; }
.ru-toc a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--ru-sand); box-shadow: var(--ru-shadow); color: var(--ru-ink); font-weight: 600; text-decoration: none; }
.ru-toc a:hover { background: var(--ru-cream-2); }
.ru-rules { counter-reset: rule; list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ru-rules li { counter-increment: rule; position: relative; background: #fff; border: 1px solid var(--ru-sand); border-radius: var(--ru-radius); padding: .85rem 1rem .85rem 3.4rem; }
.ru-rules li::before { content: counter(rule); position: absolute; left: .85rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--ru-night); color: var(--ru-haldi); font-family: var(--ru-font-head); font-weight: 800; font-size: .95rem; }
.ru-rules p { margin: 0; }
.ru-rules .ru-rule-en { color: var(--ru-ink-soft); font-size: .92rem; margin-top: .2rem; }
.ru-privacy { background: #fff; border-radius: var(--ru-radius-lg); border: 1px solid var(--ru-sand); padding: 1.25rem; border-inline-start: 6px solid var(--ru-teal); }
.ru-privacy ul { padding-left: 1.2rem; margin-bottom: 0; }
.ru-faq { --bs-accordion-bg: #fff; --bs-accordion-border-color: var(--ru-sand); --bs-accordion-border-radius: var(--ru-radius); --bs-accordion-inner-border-radius: calc(var(--ru-radius) - 1px); --bs-accordion-active-bg: var(--ru-cream-2); --bs-accordion-active-color: var(--ru-ink); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgb(214 36 110 / .25); }
.ru-faq .accordion-button { font-family: var(--ru-font-head); font-weight: 600; font-size: 1.08rem; min-height: 56px; }
.ru-faq .accordion-button .ru-en { margin-left: .4rem; }

/* 404 */
.ru-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 3rem; }
.ru-404-num { font-family: var(--ru-font-head); font-weight: 800; font-size: clamp(4.5rem, 22vw, 8rem); line-height: 1; color: var(--ru-kumkum); display: inline-flex; align-items: center; gap: .1em; }
.ru-404-num img { width: .85em; height: .85em; }

/* 14. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .ru-confetti { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ru-entry-card:hover { transform: none; }
}
.ru-alert-row { display: flex; gap: .5rem; align-items: flex-start; }
.ru-alert-row[hidden] { display: none; }

/* OTP verification + step indicator (upload / login) */
.ru-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .9rem; }
.ru-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--ru-sand); color: var(--bs-secondary-color); }
.ru-steps li > span:first-child { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; background: var(--ru-sand); font-weight: 700; color: var(--ru-ink); }
.ru-steps li.is-current { border-color: currentColor; color: var(--ru-ink); font-weight: 600; }
.ru-steps li.is-done > span:first-child { background: #198754; color: #fff; }
.ru-steps .ru-en { display: none; }
@media (min-width: 576px) { .ru-steps .ru-en { display: inline; } }
.ru-otp-code { letter-spacing: .5em; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
