/* spinoff_005 — Solitary 7 light landing, crimson accents */
:root {
  --s5-bg: #f7f5f4;
  --s5-bg-card: #ffffff;
  --s5-fg: #1a1a1a;
  --s5-muted: #5c5c5c;
  --s5-line: #e8e0de;
  --s5-red: #c62828;
  --s5-red-deep: #9e1c1c;
  --s5-red-soft: rgba(198, 40, 40, 0.08);
  --s5-blue: #1e5bb8;
  --s5-blue-deep: #164892;
  --s5-radius: 12px;
  --s5-radius-sm: 8px;
  --s5-wrap: min(720px, calc(100% - 1.5rem));
  --s5-font: "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;
  --s5-display: "Outfit", "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--s5-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--s5-fg);
  background: var(--s5-bg);
}

.s5-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.s5-wrap {
  width: var(--s5-wrap);
  margin-inline: auto;
}

.s5-main {
  flex: 1;
  padding: 1.25rem 0 2.5rem;
}

/* —— Topbar —— */
.s5-topbar {
  /* Dark bar so 82lottery-logo (white mark on black) sits cleanly; red accent via nav */
  background: linear-gradient(180deg, #1a1212 0%, #0e0a0a 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  border-bottom: 2px solid var(--s5-red);
}

.s5-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding-block: 0.45rem;
}

.s5-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.s5-logo {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.s5-nav-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.s5-nav-scroll::-webkit-scrollbar {
  display: none;
}

.s5-nav-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  padding: 0.15rem 0.1rem 0.15rem 0.35rem;
}

.s5-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.38rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.s5-nav-link:hover,
.s5-nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.s5-nav-link.s5-nav-on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.s5-nav-login {
  background: var(--s5-red);
  border-color: var(--s5-red);
  color: #fff;
}

.s5-nav-login:hover,
.s5-nav-login:focus-visible {
  background: var(--s5-red-deep);
  border-color: var(--s5-red-deep);
  color: #fff;
}

/* legacy pill classes kept unused */
.s5-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* —— Crumb —— */
.s5-crumb {
  background: #fff;
  border-bottom: 1px solid var(--s5-line);
  font-size: 0.8125rem;
}

.s5-crumb-inner {
  padding-block: 0.55rem;
}

.s5-crumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--s5-muted);
}

.s5-crumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

.s5-crumb-link {
  color: var(--s5-red);
  text-decoration: none;
}

.s5-crumb-now {
  color: var(--s5-fg);
  font-weight: 600;
}

/* —— Hero —— */
.s5-hero {
  position: relative;
  margin: 0 0 1.35rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.s5-hero-inner {
  position: relative;
  text-align: center;
  padding: 2.35rem 1.15rem 1.9rem;
  border-radius: calc(var(--s5-radius) + 2px);
  border: 1px solid var(--s5-line);
  background:
    linear-gradient(165deg, rgba(198, 40, 40, 0.09) 0%, transparent 42%),
    linear-gradient(180deg, #1a1212 0%, #2a1818 48%, #3d1f1f 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(26, 18, 18, 0.18);
  overflow: hidden;
  animation: s5-hero-in 0.55s ease both;
}

.s5-hero-inner::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(198, 40, 40, 0.35), transparent 68%);
  pointer-events: none;
}

.s5-hero-brand {
  position: relative;
  display: inline-flex;
  margin: 0 auto 1.1rem;
  text-decoration: none;
  animation: s5-hero-rise 0.6s 0.05s ease both;
}

.s5-hero-logo {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: min(14rem, 72vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.s5-hero-title {
  position: relative;
  margin: 0 0 0.65rem;
  font-family: var(--s5-display);
  font-size: clamp(1.75rem, 5.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #fff;
  text-wrap: balance;
  animation: s5-hero-rise 0.6s 0.12s ease both;
}

.s5-hero-sub {
  position: relative;
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
  animation: s5-hero-rise 0.6s 0.18s ease both;
}

.s5-hero-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  animation: s5-hero-rise 0.6s 0.24s ease both;
}

.s5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 9rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--s5-radius-sm);
  font-family: var(--s5-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.s5-btn-ico {
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
}

.s5-btn:hover .s5-btn-ico {
  opacity: 1;
}

.s5-btn:hover {
  transform: translateY(-1px);
}

.s5-btn-reg {
  background: var(--s5-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.45);
}

.s5-btn-reg:hover {
  background: var(--s5-red-deep);
}

.s5-btn-login {
  background: var(--s5-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 91, 184, 0.3);
}

.s5-btn-login:hover {
  background: var(--s5-blue-deep);
}

.s5-hero .s5-btn-login {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.s5-hero .s5-btn-login:hover {
  background: rgba(255, 255, 255, 0.2);
}

.s5-hero-fine {
  position: relative;
  margin: 0 auto;
  max-width: 26rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  animation: s5-hero-rise 0.6s 0.3s ease both;
}

@keyframes s5-hero-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes s5-hero-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .s5-hero-inner,
  .s5-hero-brand,
  .s5-hero-title,
  .s5-hero-sub,
  .s5-hero-cta,
  .s5-hero-fine {
    animation: none;
  }
}

/* —— Home activity carousel (same data as /activities) —— */
/* Height follows banner image (1024×296); do not force a taller frame */
.s5-carousel {
  position: relative;
  width: 100%;
  margin: 0 0 1.25rem;
  border-radius: var(--s5-radius);
  overflow: hidden;
  background: #1a1212;
  border: 1px solid var(--s5-line);
  box-shadow: 0 8px 22px rgba(26, 18, 18, 0.12);
  line-height: 0;
}

.s5-carousel-track {
  position: relative;
  width: 100%;
}

.s5-carousel-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
}

.s5-carousel-slide.s5-on {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.s5-carousel-link {
  display: block;
  position: relative;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.s5-carousel-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.s5-carousel-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 296;
  background:
    linear-gradient(145deg, rgba(198, 40, 40, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #2a1818 0%, #1a1212 100%);
}

.s5-carousel-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.15rem 0.85rem 1.35rem;
  font-family: var(--s5-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 10, 10, 0.82) 78%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s5-carousel-link.s5-textonly .s5-carousel-cap {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: transparent;
  text-align: center;
  font-size: 1.05rem;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.s5-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.5rem;
  pointer-events: none;
}

.s5-carousel-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.s5-carousel-dot.s5-on {
  background: var(--s5-red);
  transform: scale(1.15);
}

.s5-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .s5-carousel-slide {
    transition: none;
  }
}

/* —— Hot games horizontal scroll —— */
.s5-hot {
  margin: 0 0 1.25rem;
  padding: 1rem 0 0.85rem;
  border-radius: var(--s5-radius);
  border: 1px solid var(--s5-line);
  background: var(--s5-bg-card);
  overflow: hidden;
}

.s5-hot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
}

.s5-hot-title {
  margin: 0;
  font-family: var(--s5-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--s5-fg);
}

.s5-hot-all {
  flex-shrink: 0;
  color: var(--s5-red);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.s5-hot-all:hover {
  color: var(--s5-red-deep);
}

.s5-hot-row {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0 1rem 0.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.s5-hot-row::-webkit-scrollbar {
  display: none;
}

.s5-hot-card {
  position: relative;
  flex: 0 0 calc((100% - 1.3rem) / 3);
  min-width: 5.5rem;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #1a1212;
  box-shadow: 0 4px 12px rgba(26, 18, 18, 0.18);
}

.s5-hot-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.s5-hot-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #2a1818;
}

.s5-hot-name {
  display: block;
  padding: 0.45rem 0.4rem 0.55rem;
  font-family: var(--s5-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #2a1818 0%, #1a1212 100%);
}

.s5-hot-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--s5-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.s5-hot-hint {
  padding: 0.65rem 1rem 0.15rem;
}

.s5-hot-hint.s5-hidden {
  visibility: hidden;
}

.s5-hot-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: var(--s5-line);
  overflow: hidden;
}

.s5-hot-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: var(--s5-red);
  transform: translateX(0);
  will-change: transform;
}

/* —— Boxes / facts —— */
.s5-box {
  background: var(--s5-bg-card);
  border: 1px solid var(--s5-line);
  border-radius: var(--s5-radius);
  padding: 1.15rem 1.1rem;
  margin-bottom: 1rem;
}

.s5-facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.s5-facts-table th,
.s5-facts-table td {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--s5-line);
  text-align: left;
  vertical-align: top;
}

.s5-facts-table tr:last-child th,
.s5-facts-table tr:last-child td {
  border-bottom: none;
}

.s5-facts-table th {
  width: 38%;
  color: var(--s5-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.s5-facts-table td {
  font-weight: 600;
  color: var(--s5-fg);
}

.s5-intro p {
  margin: 0;
  color: var(--s5-muted);
  font-size: 1.02rem;
}

/* —— Features —— */
.s5-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .s5-features {
    grid-template-columns: 1fr 1fr;
  }
}

.s5-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--s5-bg-card);
  border: 1px solid var(--s5-line);
  border-radius: var(--s5-radius);
  padding: 1rem 1rem 1.05rem;
}

.s5-feature-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.1rem;
  border-radius: 0.7rem;
  background: var(--s5-red-soft);
  color: var(--s5-red);
}

.s5-feature-ico svg {
  display: block;
}

.s5-feature-copy {
  min-width: 0;
  flex: 1;
}

.s5-feature-title {
  margin: 0 0 0.35rem;
  font-family: var(--s5-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--s5-red);
  line-height: 1.35;
}

.s5-feature-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--s5-muted);
}

/* —— SEO long-form —— */
.s5-seo h2 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--s5-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--s5-fg);
  line-height: 1.3;
}

.s5-seo h2:first-child {
  margin-top: 0;
}

.s5-seo p {
  margin: 0 0 0.65rem;
  color: var(--s5-muted);
}

.s5-prose-list {
  white-space: pre-line;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--s5-red-soft);
  border-radius: var(--s5-radius-sm);
  border-left: 3px solid var(--s5-red);
  color: var(--s5-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* —— FAQ —— */
.s5-faq h2 {
  margin: 0 0 0.85rem;
  font-family: var(--s5-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.s5-acc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.s5-acc-item {
  border: 1px solid var(--s5-line);
  border-radius: var(--s5-radius-sm);
  background: #fafafa;
  overflow: hidden;
}

.s5-acc-sum {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 650;
  font-family: var(--s5-display);
  color: var(--s5-fg);
}

.s5-acc-sum::-webkit-details-marker {
  display: none;
}

.s5-acc-sum::after {
  content: "+";
  float: right;
  color: var(--s5-red);
  font-weight: 700;
}

.s5-acc-item[open] .s5-acc-sum::after {
  content: "–";
}

.s5-acc-body {
  padding: 0 1rem 0.95rem;
  color: var(--s5-muted);
  font-size: 0.9375rem;
}

.s5-acc-body p {
  margin: 0;
}

.s5-legal {
  font-size: 0.875rem;
  color: var(--s5-muted);
}

.s5-legal p {
  margin: 0 0 0.5rem;
}

.s5-dim {
  color: #8a8a8a;
  font-size: 0.8125rem;
}

.s5-lead {
  color: var(--s5-muted);
}

.s5-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--s5-display);
  font-size: 1.5rem;
}

.s5-fallback-hero h1 {
  margin-top: 0;
  font-family: var(--s5-display);
}

/* —— Contact page —— */
.s5-contact {
  background: var(--s5-bg-card);
  border: 1px solid var(--s5-line);
  border-radius: var(--s5-radius);
  padding: 1.35rem 1.15rem 1.5rem;
}

.s5-contact-title {
  margin: 0 0 0.75rem;
  font-family: var(--s5-display);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.s5-contact-intro {
  margin: 0 0 1.1rem;
  color: var(--s5-muted);
}

.s5-toc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fafafa;
}

.s5-toc:hover,
.s5-toc:focus-visible {
  border-color: var(--s5-red);
  color: var(--s5-red-deep);
  outline: none;
}

.s5-contact-sections {
  display: grid;
  gap: 1.35rem;
}

.s5-rail-title {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.85rem 0.55rem 0.95rem;
  font-family: var(--s5-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--s5-red-deep);
  background: linear-gradient(90deg, #fdeaea 0%, #fff5f5 100%);
  border-left: 4px solid var(--s5-red);
  border-radius: 0 8px 8px 0;
}

.s5-contact-block p {
  margin: 0;
  color: #333;
}

.s5-contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem !important;
}

.s5-mail-ico {
  display: inline-flex;
  color: var(--s5-blue);
}

.s5-contact-mail a {
  color: var(--s5-blue);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.s5-contact-mail a:hover,
.s5-contact-mail a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.s5-contact-thanks {
  margin: 1.5rem 0 0.85rem;
  color: var(--s5-muted);
}

.s5-contact-rule {
  border: 0;
  border-top: 1px solid var(--s5-line);
  margin: 0;
}

.s5-page-stub {
  padding: 1.25rem 1.1rem;
}

.s5-page-stub h1 {
  margin: 0 0 0.65rem;
  font-family: var(--s5-display);
  font-size: 1.5rem;
}

.s5-page-stub p {
  margin: 0;
  color: var(--s5-muted);
}

/* —— Guide pages (referral / agent / terms) —— */
.s5-guide {
  background: var(--s5-bg-card);
  border: 1px solid var(--s5-line);
  border-radius: var(--s5-radius);
  padding: 1.35rem 1.15rem 1.6rem;
}

.s5-guide-title {
  margin: 0 0 0.75rem;
  font-family: var(--s5-display);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.s5-guide-intro {
  margin: 0 0 1.2rem;
  color: var(--s5-muted);
}

.s5-guide-block {
  margin-bottom: 1.35rem;
}

.s5-guide-block:last-child {
  margin-bottom: 0;
}

.s5-guide-block > p {
  margin: 0;
  color: #333;
}

.s5-list {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  color: #333;
}

.s5-list li {
  margin: 0.35rem 0;
}

.s5-list li::marker {
  color: var(--s5-red);
}

.s5-toc-panel {
  margin: 0 0 1.35rem;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}

.s5-toc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 0;
  background: transparent;
  color: #444;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.s5-toc-toggle:hover,
.s5-toc-toggle:focus-visible {
  color: var(--s5-red-deep);
  outline: none;
}

.s5-toc-action {
  flex-shrink: 0;
  color: var(--s5-blue);
  font-weight: 600;
  font-size: 0.8125rem;
}

.s5-toc-menu {
  display: grid;
  gap: 0.15rem;
  padding: 0 0.65rem 0.75rem;
  border-top: 1px solid #e6e6e6;
}

.s5-toc-menu[hidden] {
  display: none;
}

.s5-toc-menu a {
  padding: 0.4rem 0.35rem;
  color: var(--s5-blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
}

.s5-toc-menu a:hover,
.s5-toc-menu a:focus-visible {
  background: rgba(30, 91, 184, 0.08);
  outline: none;
}

.s5-guide-cta {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.s5-guide-closing {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--s5-red-deep);
}

/* —— Footer —— */
.s5-foot {
  background: linear-gradient(180deg, var(--s5-red) 0%, var(--s5-red-deep) 100%);
  color: #fff;
  padding: 1.35rem 0 1.6rem;
  margin-top: auto;
}

.s5-foot-responsible {
  margin: 0 0 0.55rem;
  font-family: var(--s5-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.s5-foot-note {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.92;
  text-align: center;
}

.s5-foot .s5-dim {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

body.lang-hi {
  font-family: "Noto Sans Devanagari", var(--s5-font);
}

/* —— Activities page —— */
.s5-activities {
  margin-bottom: 0.5rem;
}

.s5-activities-head {
  margin-bottom: 1rem;
}

.s5-activities-title {
  margin: 0 0 0.4rem;
  font-family: var(--s5-display);
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--s5-fg);
}

.s5-activities-sub {
  margin: 0;
  color: var(--s5-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.s5-activities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.s5-activity-card {
  display: block;
  position: relative;
  border-radius: var(--s5-radius);
  overflow: hidden;
  border: 1px solid var(--s5-line);
  background: #1a1212;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(26, 18, 18, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.s5-activity-card:hover,
.s5-activity-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 18, 18, 0.18);
}

.s5-activity-card:focus-visible {
  outline: 2px solid var(--s5-red);
  outline-offset: 2px;
}

.s5-activity-media {
  display: block;
  width: 100%;
  line-height: 0;
  background: #2a1818;
}

.s5-activity-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.s5-activity-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.85rem 0.8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 10, 10, 0.86) 70%);
  color: #fff;
}

.s5-activity-tap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--s5-red);
  color: #fff;
}

.s5-activity-name {
  margin: 0;
  font-family: var(--s5-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s5-activity-card.s5-textonly {
  min-height: 8rem;
  background:
    linear-gradient(145deg, rgba(198, 40, 40, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #2a1818 0%, #1a1212 100%);
}

.s5-activity-card.s5-textonly .s5-activity-cap {
  inset: 0;
  background: transparent;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
}

.s5-activities-empty {
  margin: 0;
  padding: 1.25rem 1.1rem;
  border-radius: var(--s5-radius);
  border: 1px dashed var(--s5-line);
  background: var(--s5-bg-card);
  color: var(--s5-muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .s5-activity-card,
  .s5-activity-card:hover,
  .s5-activity-card:focus-visible {
    transition: none;
    transform: none;
  }
}

