:root {
  --maroon-900: #3a0710;
  --maroon-800: #5a0b18;
  --maroon-700: #7a1022;
  --maroon-600: #94182e;
  --maroon-100: #f6e4e6;
  --gold: #e8b04b;
  --gold-soft: #f7deaa;
  --cream: #fbf7f1;
  --paper: #ffffff;
  --ink: #1e1416;
  --ink-2: #4a3d40;
  --muted: #7d6f72;
  --line: #ecdfd8;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(58, 7, 16, .06), 0 8px 24px -12px rgba(58, 7, 16, .18);
  --shadow-lg: 0 2px 4px rgba(58, 7, 16, .06), 0 24px 48px -20px rgba(58, 7, 16, .35);
  --font: "Outfit", "Hind Siliguri", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-bn: "Hind Siliguri", "Outfit", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.bn { font-family: var(--font-bn); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 241, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--maroon-600), var(--maroon-900));
  color: var(--gold); font-weight: 800; font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(232, 176, 75, .35);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand__text small { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 9px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.tabs a:hover { background: var(--maroon-100); color: var(--maroon-800); }
.tabs a.is-active { background: var(--maroon-800); color: #fff; }
.lang {
  display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
}
.lang button {
  border: 0; background: transparent; color: var(--ink-2);
  min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s;
}
.lang button[lang="bn"] { font-family: var(--font-bn); font-size: 14px; }
.lang button.is-on { background: var(--gold); color: var(--maroon-900); }
@media (max-width: 960px) {
  .topbar__inner { flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; }
  .lang { margin-left: auto; }
  .tabs { order: 3; margin: 0 -16px; padding: 4px 16px 10px; width: calc(100% + 32px); }
  .tabs a { font-size: 14px; padding: 8px 13px; background: var(--paper); border: 1px solid var(--line); }
  .tabs a.is-active { border-color: var(--maroon-800); }
}
@media (min-width: 720px) and (max-width: 960px) {
  .tabs { margin: 0 -28px; padding: 4px 28px 10px; width: calc(100% + 56px); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn--gold { background: var(--gold); color: var(--maroon-900); box-shadow: 0 10px 30px -10px rgba(232, 176, 75, .7); }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--maroon { background: var(--maroon-800); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 168, 85, .7); }
.btn--text { background: transparent; color: var(--muted); padding: 0 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232, 176, 75, .22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(148, 24, 46, .9), transparent 60%),
    linear-gradient(160deg, var(--maroon-700) 0%, var(--maroon-900) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; right: -90px; top: 50%; translate: 0 -50%; z-index: -1;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(232, 176, 75, .3);
  box-shadow: 0 0 0 40px rgba(232, 176, 75, .04), 0 0 0 90px rgba(232, 176, 75, .03);
}
.hero__glow::after {
  content: ""; position: absolute; inset: 20%;
  background: url("assets/buet-logo.svg") center / contain no-repeat;
  filter: grayscale(1) brightness(4); opacity: .08;
}
@media (min-width: 1000px) { .hero__glow { width: 360px; height: 360px; right: 4vw; } }

/* compact landing hero — short info, so Featured is visible on the first screen */
.hero__inner {
  display: grid; gap: 18px 40px; align-items: center;
  padding-top: clamp(22px, 4vh, 44px); padding-bottom: clamp(22px, 4vh, 44px);
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.eyebrow--dark { background: var(--maroon-100); color: var(--maroon-800); box-shadow: none; margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 176, 75, .25); }
.hero__title {
  margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(30px, 5vw, 60px);
}
.hero__title span {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold) 0%, #fff0c9 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 560px; margin: 10px 0 0; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .8); }
.hero__side { display: flex; flex-direction: column; gap: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: 100%;
  margin: 0; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .14);
}
.stats div { display: flex; flex-direction: column; justify-content: space-between; background: rgba(58, 7, 16, .55); padding: 10px 14px; }
.stats dt { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .65); }
.stats dd { margin: 2px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--gold-soft); }
@media (max-width: 560px) {
  .hero__inner { gap: 14px; padding-top: 18px; padding-bottom: 20px; }
  .hero__lead { font-size: 14px; margin-top: 6px; }
  .hero__side { gap: 10px; }
  .hero__cta { flex-wrap: nowrap; gap: 8px; }
  .hero__cta .btn { flex: 1 1 auto; min-height: 42px; padding: 0 12px; font-size: 13.5px; white-space: nowrap; }
  .hero__cta .btn [aria-hidden] { display: none; }
  .stats div { padding: 8px 10px; }
  .stats dt { font-size: 10.5px; }
  .stats dd { font-size: 20px; }
}

/* ---------- announcement bar (flash-sale style, every page) ---------- */
.promo-bar {
  display: flex; align-items: stretch; height: 36px; overflow: hidden; text-decoration: none;
  background: linear-gradient(90deg, #f3c25e, var(--gold) 40%, #f3c25e);
  color: var(--maroon-900); font-size: 14px; font-weight: 500;
}
.promo-bar__live {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px; padding: 0 14px 0 16px;
  background: var(--maroon-800); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .12em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px;
}
html[lang="bn"] .promo-bar__live { letter-spacing: 0; font-size: 13px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
.promo-bar__viewport { flex: 1; overflow: hidden; display: flex; align-items: center; }
.promo-bar__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.promo-bar:hover .promo-bar__track { animation-play-state: paused; }
.promo-bar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding-right: 64px; }
.promo-bar__item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promo-bar__item b { font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- featured ---------- */
.featured { padding-top: 28px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.promo-line { margin: 0; font-size: 15px; color: var(--muted); }

/* poster spots look like candidate photo cards, marked "Available" */
.slots { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.slot {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink);
  border: 1.5px dashed #dcc6bd;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.slot:hover { border-color: var(--maroon-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.slot__photo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 4 / 5; background: linear-gradient(165deg, #f6ece6, #ead8cf); color: #c2a79c;
}
.slot__photo svg { width: 42%; max-width: 110px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.slot__ph { font-size: 12px; font-weight: 500; color: #a78c80; }
.slot__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.slot__body b { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.slot__body small { font-size: 12.5px; color: var(--muted); }
.avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #e5f6ec; color: #13723c; box-shadow: inset 0 0 0 1px #b9e5c9;
}
.avail-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fa855; }
html[lang="bn"] .avail-badge { text-transform: none; letter-spacing: 0; font-size: 13px; }
.slot__photo .avail-badge { position: absolute; left: 10px; top: 10px; }
.slot__tag {
  position: absolute; right: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--maroon-800); color: var(--gold);
}
/* phone/tablet: top spot full width, then 2 per row, small ones 3 per row */
@media (max-width: 899px) { .slot--hero { order: -1; } }
.slot--hero { grid-column: 1 / -1; flex-direction: row; border-color: #e2c48d; background: linear-gradient(150deg, #fff 0%, #fdf3e3 100%); }
.slot--hero .slot__photo { width: 42%; aspect-ratio: auto; min-height: 200px; }
.slot--hero .slot__body { flex: 1; justify-content: center; padding: 18px; }
.slot--hero .slot__body b { font-size: clamp(18px, 2.4vw, 24px); }
.slot--hero .slot__body small { font-size: 14px; }
.slot--side, .slot--md { grid-column: span 3; }
.slot--sm { grid-column: span 2; }
.slot--sm .slot__ph, .slot--sm .slot__body small { display: none; }
.slot--sm .slot__body b { font-size: 13px; }
.slot--sm .avail-badge { font-size: 10px; padding: 3px 7px; left: 6px; top: 6px; }
@media (min-width: 640px) {
  .slots { grid-template-columns: repeat(30, minmax(0, 1fr)); }
  .slot--side { grid-column: span 15; }
  .slot--md { grid-column: span 6; }
  .slot--sm { grid-column: span 5; }
  .slot--sm .slot__body small { display: block; }
}
@media (min-width: 900px) {
  .slots { gap: 14px; }
  .slot--side { grid-column: span 7; }
  .slot--hero { grid-column: span 16; }
  .slot--hero .slot__photo { min-height: 0; }
}

/* ---------- page head ---------- */
.page-head { padding: 22px 0 14px; background: linear-gradient(180deg, #f3e7df 0%, var(--cream) 100%); }
.page-head h1 { margin: 0; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.03em; line-height: 1.05; font-family: var(--font); }
.page-head h1:lang(bn), #tab-rules h1 { font-family: var(--font-bn); letter-spacing: 0; }
.page-head p { margin: 4px 0 0; font-size: 15px; }

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: var(--topbar-h, 64px); z-index: 20;
  background: rgba(251, 247, 241, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.toolbar__inner { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--maroon-600); box-shadow: 0 0 0 4px rgba(148, 24, 46, .12); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .chips { margin: 0 -28px; padding: 2px 28px; } }
@media (min-width: 1100px) { .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; } }
.chip {
  white-space: nowrap; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s;
}
.chip:hover { border-color: var(--maroon-600); color: var(--maroon-800); }
.chip.is-on { background: var(--maroon-800); border-color: var(--maroon-800); color: #fff; }
.chip .n { font-size: 12px; opacity: .7; }
.chips--sub .chip { min-height: 32px; font-size: 13px; }
.chips--sub .chip.is-on { background: var(--gold); border-color: var(--gold); color: var(--maroon-900); }

/* ---------- groups & cards ---------- */
#groups { padding-top: 12px; padding-bottom: 40px; }
.ballot-block { margin-top: 36px; }
.ballot-block__title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon-600);
}
.ballot-block__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.post { margin-top: 22px; }
.post__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.post__title { margin: 0; font-family: var(--font-bn); font-size: 22px; font-weight: 700; line-height: 1.3; }
.post__en { display: block; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); }
.post__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--maroon-100); color: var(--maroon-800); white-space: nowrap; }
.pill--gold { background: #fbeccd; color: #7a4f05; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(236, 223, 216, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__photo { position: relative; aspect-ratio: 4 / 5; background: #f1e6e0; overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__photo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(0deg, rgba(30, 6, 12, .55), transparent);
  pointer-events: none;
}
.mono {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding-bottom: 18%;
  font-size: clamp(34px, 6vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: rgba(255, 255, 255, .92);
}
.mono::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background: radial-gradient(circle at 50% 38%, rgba(232, 176, 75, .45), transparent 55%);
}
.mono::after {
  content: attr(data-label); position: relative; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; color: rgba(247, 222, 170, .7);
}
.ballot {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; padding: 5px 10px 6px; border-radius: 12px;
  background: var(--gold); color: var(--maroon-900); line-height: 1;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45);
}
.ballot small { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.ballot b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.add {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--maroon-800);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); transition: transform .15s, background .2s;
}
.add:hover { transform: scale(1.08); }
.add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.add.is-on { background: var(--maroon-800); color: var(--gold); }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.card__dept { font-size: 13px; color: var(--ink-2); }
.card__dept b { color: var(--maroon-700); font-weight: 600; }
.card__mem { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* ---------- list rows (one row per candidate) ---------- */
.list {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(236, 223, 216, .7);
}
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; min-height: 76px;
  transition: background .15s;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #fdf9f4; }
.row .ballot {
  position: static; flex-shrink: 0;
  min-width: 54px; padding: 5px 8px 6px; box-shadow: none;
}
.row .ballot b { font-size: 21px; }
.row__photo {
  position: relative; flex-shrink: 0; width: 46px; height: 56px; border-radius: 10px; overflow: hidden;
  background: #f1e6e0;
}
.row__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.row__photo .mono { font-size: 17px; padding-bottom: 0; gap: 0; }
.row__photo .mono::after { display: none; }
.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .card__name { font-size: 16px; }
.row .card__mem { margin: 0; padding: 0; font-size: 13px; }
.row .add {
  position: static; flex-shrink: 0; width: 40px; height: 40px;
  background: var(--cream); box-shadow: inset 0 0 0 1px var(--line);
}
.row .add.is-on { background: var(--maroon-800); box-shadow: none; }
@media (max-width: 480px) {
  .row { gap: 10px; padding: 10px 12px; }
  .row .ballot { min-width: 46px; padding: 4px 6px 5px; }
  .row .ballot b { font-size: 18px; }
  .row__photo { width: 40px; height: 50px; }
  .row .card__name { font-size: 15px; }
  .row .card__dept { font-size: 12.5px; }
  .row .add { width: 36px; height: 36px; }
}

.empty { text-align: center; padding: 60px 16px 120px; color: var(--muted); font-size: 17px; }

/* ---------- panels ---------- */
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  margin: 8px auto 40px; max-width: 760px; padding: 40px 24px;
  border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.contact-card h2 { margin: 0 auto 26px; max-width: 520px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.025em; line-height: 1.15; }
.contact-card .btn { min-height: 56px; font-size: 16px; padding: 0 24px; white-space: normal; text-align: left; }
.contact-card__art { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.contact-card__art span { width: 64px; height: 80px; border-radius: 14px; background: linear-gradient(160deg, var(--maroon-100), #f3e1d0); border: 1.5px dashed #dcc6bd; }
.contact-card__art span:nth-child(2) { translate: 0 -10px; background: linear-gradient(160deg, #fbeccd, #f6d99d); border-color: #e2c48d; }

/* ---------- rules ---------- */
#rules { padding-top: 8px; padding-bottom: 32px; }
.rules-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule {
  position: relative; background: var(--paper); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.rule::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent, var(--maroon-700)); }
.rule__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rule__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); flex-shrink: 0; }
.rule__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rule__title { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.rule__sub { font-size: 13px; color: var(--muted); font-family: var(--font-bn); }
.rule__total { margin-left: auto; text-align: right; line-height: 1; }
.rule__total b { display: block; font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.rule__total small { font-size: 12px; color: var(--muted); }
.rule table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rule th, .rule td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; }
.rule th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-top: 0; padding-top: 0; }
.rule td.v, .rule th.v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; width: 90px; }
.rule th.v { font-weight: 600; }
.rule td .bn { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.rule__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.rule__link { display: inline-flex; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }
.rule__link:hover { text-decoration: underline; }
.totals { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 720px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.total-card { border-radius: 22px; padding: 22px; color: #fff; background: linear-gradient(150deg, var(--maroon-700), var(--maroon-900)); box-shadow: var(--shadow-lg); }
.total-card h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.total-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.total-card .row span { color: rgba(255, 255, 255, .75); font-size: 15px; }
.total-card .row b { font-size: 26px; color: var(--gold); line-height: 1; }
.tip {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: 18px;
  background: #fbeccd; color: #5b3a04; font-family: var(--font-bn); font-size: 17px; font-weight: 500;
}
.tip svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.source { margin-top: 18px; font-size: 13px; color: var(--muted); }
.source a { color: var(--maroon-700); }

/* ---------- fab & drawer ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 8px; border-radius: 999px; border: 0;
  background: var(--maroon-800); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 34px -10px rgba(58, 7, 16, .65);
  animation: pop .25s ease;
}
.fab__count { min-width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: var(--maroon-900); font-weight: 800; padding: 0 8px; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30, 6, 12, .45); animation: fade .2s; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%);
  background: var(--cream); padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto; animation: slide .25s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head h2 { margin: 0; font-size: 22px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 16px; }
#drawer-body { flex: 1; margin-top: 8px; }
.slip-group { margin-top: 16px; }
.slip-group h3 { margin: 0 0 6px; font-family: var(--font-bn); font-size: 15px; font-weight: 600; color: var(--maroon-800); }
.slip-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--paper); border-radius: 12px; margin-top: 6px; border: 1px solid var(--line); }
.slip-row .b { min-width: 44px; text-align: center; font-weight: 800; color: var(--maroon-900); background: var(--gold); border-radius: 8px; padding: 3px 6px; }
.slip-row .nm { flex: 1; font-size: 15px; line-height: 1.3; }
.slip-row button { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 4px; }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer__actions .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
body.has-fab .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; }
.footer__wa {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(31, 168, 85, .7); transition: transform .15s;
}
.footer__wa:hover { transform: translateY(-1px); }
.footer__wa svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.footer p { margin: 4px 0 0; max-width: 620px; color: var(--muted); }
.footer p a { color: var(--maroon-700); }

/* ---------- Bangla typography ---------- */
html[lang="bn"] body { font-family: "Hind Siliguri", "Outfit", system-ui, sans-serif; }
html[lang="bn"] .hero__title { letter-spacing: 0; line-height: 1.25; font-weight: 700; font-size: clamp(28px, 4.6vw, 54px); }
html[lang="bn"] .page-head h1,
html[lang="bn"] .section-head h2,
html[lang="bn"] .contact-card h2,
html[lang="bn"] .rule__title,
html[lang="bn"] .drawer__head h2 { letter-spacing: 0; line-height: 1.3; }
html[lang="bn"] .ballot-block__title { letter-spacing: .02em; font-size: 15px; }
html[lang="bn"] .ballot small { letter-spacing: 0; font-size: 11px; }
html[lang="bn"] .mono::after { letter-spacing: .08em; font-size: 13px; }
html[lang="bn"] .card__name,
html[lang="bn"] .card__mem,
html[lang="bn"] .slip-row .nm { font-family: "Outfit", system-ui, sans-serif; }
html[lang="bn"] .promo-bar, html[lang="bn"] .slot { font-family: var(--font-bn); }

/* ---------- motion ---------- */
.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- print (my list) ---------- */
@media print {
  body { background: #fff; }
  body > *:not(.drawer) { display: none !important; }
  .drawer { position: static; }
  .drawer__scrim, .drawer__actions, .icon-btn, .slip-row button { display: none !important; }
  .drawer__panel { position: static; width: auto; padding: 0; background: #fff; animation: none; }
  .slip-row { break-inside: avoid; }
}

/* phones in landscape: one-row header so the hero still fits the screen */
@media (max-height: 500px) and (min-width: 600px) {
  .topbar__inner { flex-wrap: nowrap; padding-top: 0; min-height: 56px; gap: 10px; }
  .tabs { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; }
  .tabs a { padding: 6px 10px; font-size: 13px; }
  .lang { margin-left: 4px; }
  .brand__text small { display: none; }
}

/* panels page: no number, point to the top bar */
.contact-card h2 { margin-bottom: 16px; }
.contact-card__hint { margin: 14px 0 0; }
@media (max-width: 560px) { .promo-bar { height: 32px; font-size: 13px; } }
.slot--hero .slot__tag { top: auto; right: auto; left: 10px; bottom: 10px; }
@media (min-width: 640px) and (max-width: 899px) { .slot--side .slot__photo { aspect-ratio: 4 / 3; } }

/* ---------- slim title strip (red section ~20% of the old height) ---------- */
.hero__inner { display: block; padding-top: 10px; padding-bottom: 10px; }
.hero__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.hero__glow { display: none; }
.brand__text small { display: none; }
.featured { padding-top: 20px; }

/* phone: the top 3 spots stack vertically, full width */
@media (max-width: 639px) {
  .slot--side { grid-column: 1 / -1; flex-direction: row; }
  .slot--side .slot__photo { width: 42%; aspect-ratio: auto; min-height: 170px; }
  .slot--side .slot__body { flex: 1; justify-content: center; padding: 16px; }
  .slot--side .slot__body b { font-size: 18px; }
  .slot--side .slot__body small { font-size: 13.5px; }
  .slot--hero .slot__photo { min-height: 190px; }
}

.featured .section-head { margin-bottom: 12px; }

/* ---------- side menu instead of the 4 tabs on small screens ---------- */
.menu-btn {
  display: none; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--maroon-800);
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 960px) {
  .topbar__inner { flex-wrap: nowrap; padding-top: 0; min-height: 60px; }
  .tabs { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
}
.navdrawer { position: fixed; inset: 0; z-index: 60; }
.navdrawer__scrim { position: absolute; inset: 0; background: rgba(30, 6, 12, .45); animation: fade .2s; }
.navdrawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--cream); box-shadow: -20px 0 40px -20px rgba(30, 6, 12, .4); animation: slide .25s ease;
}
.navdrawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.navdrawer__panel > a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px;
  text-decoration: none; font-size: 17px; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line);
}
.navdrawer__panel > a.is-active { background: var(--maroon-800); border-color: var(--maroon-800); color: #fff; }
/* very short screens (phones in landscape): tighter heading so the 3 spots still fit */
@media (max-height: 500px) {
  .featured { padding-top: 10px; }
  .featured .section-head { margin-bottom: 8px; }
  .section-head h2 { font-size: 20px; }
  .promo-line { display: none; }
  .hero__inner { padding-top: 8px; padding-bottom: 8px; }
  .hero__title { font-size: 18px; }
  .promo-bar { height: 30px; font-size: 13px; }
  .topbar__inner { min-height: 52px; }
  .menu-btn { width: 40px; height: 40px; }
}

/* ---------- top 3 spots: rotating carousel that fills the first screen ----------
   The centre card is big and shows more info; the other two peek in from the sides.
   Every 5 s the next one slides to the centre. */
.slots-top {
  position: relative; overflow: hidden; margin: 0 0 22px;
  height: calc(100vh - var(--slots-top-offset, 320px) - 12px);
  height: calc(100svh - var(--slots-top-offset, 320px) - 12px);
  min-height: 220px;
  --cw: 54%; --shift: 64%; --side-scale: .8;
}
.slots-top > .slot--top {
  position: absolute; top: 0; bottom: 0; left: 50%; width: var(--cw);
  flex-direction: row; transform: translateX(-50%);
  transition: transform .8s cubic-bezier(.22, .7, .2, 1), opacity .8s, filter .8s, box-shadow .8s, border-color .8s;
  will-change: transform;
}
.slots-top > .slot--top:hover { transform: translateX(-50%); }
.slot--top .slot__photo { aspect-ratio: auto; width: 42%; flex: 0 0 42%; min-height: 0; }
.slot--top .slot__photo svg { max-height: 40%; }
.slot--top .slot__body { flex: 1; justify-content: center; gap: 4px; padding: clamp(14px, 2.4vw, 28px); }
.slot--top .slot__body b { font-size: clamp(18px, 2.2vw, 28px); }
.slot--top .slot__body small { font-size: clamp(13px, 1.2vw, 15px); }
.slot__more { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; opacity: 0; transform: translateY(8px); transition: opacity .5s .3s, transform .5s .3s; }
.slot__line { font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--gold); }
.slot__cta {
  align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--maroon-800); color: #fff; font-size: 14px; font-weight: 600;
}
.slot--top .slot__tag { opacity: 0; transition: opacity .4s; top: auto; right: auto; left: 10px; bottom: 10px; }
/* roles */
.slot--top.is-center { z-index: 2; border-style: solid; border-color: #e2c48d; background: linear-gradient(150deg, #fff 0%, #fdf3e3 100%); box-shadow: var(--shadow-lg); }
.slot--top.is-center .slot__more { opacity: 1; transform: none; }
.slot--top.is-center .slot__tag { opacity: 1; }
.slot--top.is-left, .slot--top.is-right { z-index: 1; opacity: 1; filter: saturate(.75) brightness(.97); cursor: pointer; box-shadow: var(--shadow); }
.slot--top.is-left, .slot--top.is-left:hover { transform: translateX(calc(-50% - var(--shift))) scale(var(--side-scale)); }
.slot--top.is-right, .slot--top.is-right:hover { transform: translateX(calc(-50% + var(--shift))) scale(var(--side-scale)); }
.slot--top.is-left:hover, .slot--top.is-right:hover { filter: none; }
/* dots */
.carousel-dots { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; z-index: 3; display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow); }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #d9c2b8; transition: width .3s, background .3s; }
.carousel-dots button.is-on { width: 22px; background: var(--maroon-800); }
/* portrait screens (phones, upright tablets): tall centre card, photo on top */
@media (max-aspect-ratio: 1/1) {
  .slots-top { --cw: 76%; --shift: 70%; --side-scale: .84; min-height: 300px; }
  .slots-top > .slot--top { flex-direction: column; bottom: 30px; }
  .slot--top .slot__photo { width: auto; flex: 1 1 auto; }
  .slot--top .slot__body { flex: 0 0 auto; padding: 12px 14px 14px; }
  .slot--top .slot__body b { font-size: clamp(17px, 4.6vw, 22px); }
  .slot__more { margin-top: 6px; gap: 4px; }
  .slot__line { font-size: 13px; }
  .slot__cta { font-size: 13px; padding: 7px 12px; }
  .carousel-dots { bottom: 4px; box-shadow: none; background: transparent; }
  .slot--top .slot__tag { bottom: auto; top: 10px; left: auto; right: 10px; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .slot--top .slot__ph { display: none; }
  .slot__line + .slot__line { display: none; }
}
/* very short screens (phones in landscape) */
@media (max-height: 500px) {
  .slots-top { min-height: 150px; margin-bottom: 18px; }
  .slot--top .slot__ph, .slot__line { display: none; }
  .slot--top .slot__body { padding: 10px 14px; }
  .slot--top .slot__body b { font-size: 16px; }
  .slot__cta { font-size: 12.5px; padding: 6px 10px; }
  .slot--top .avail-badge { font-size: 10.5px; padding: 3px 8px; left: 8px; top: 8px; }
}

/* ---------- phones & tablets: no carousel, the 3 spots sit still ---------- */
.slots-top:not(.is-carousel) { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slots-top:not(.is-carousel) > .slot--top {
  position: relative; inset: auto; left: auto; width: auto; height: 100%; min-height: 0;
  transform: none; transition: border-color .2s, box-shadow .2s;
  flex-direction: column;
}
.slots-top:not(.is-carousel) > .slot--top:hover { transform: none; }
.slots-top:not(.is-carousel) .slot__photo { width: auto; flex: 1 1 auto; }
.slots-top:not(.is-carousel) .slot__body { flex: 0 0 auto; padding: 10px 12px 12px; }
.slots-top:not(.is-carousel) .slot__body b { font-size: 16px; }
.slots-top:not(.is-carousel) .slot__body small { font-size: 13px; }
.slots-top:not(.is-carousel) .slot__more { display: none; }
.slots-top:not(.is-carousel) .carousel-dots { display: none; }
.slots-top:not(.is-carousel) > .slot--top[data-i="0"] { border-style: solid; border-color: #e2c48d; background: linear-gradient(150deg, #fff 0%, #fdf3e3 100%); }
.slots-top:not(.is-carousel) > .slot--top[data-i="0"] .slot__tag { opacity: 1; }
/* portrait (phones, upright tablets): one under another, photo left, info right */
@media (max-aspect-ratio: 1/1) {
  .slots-top:not(.is-carousel) { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 330px; }
  .slots-top:not(.is-carousel) > .slot--top { flex-direction: row; bottom: auto; }
  .slots-top:not(.is-carousel) .slot__photo { width: 38%; flex: 0 0 38%; }
  .slots-top:not(.is-carousel) .slot__body { flex: 1; justify-content: center; padding: 12px 16px; }
  .slots-top:not(.is-carousel) .slot__body b { font-size: clamp(16px, 4.6vw, 22px); }
  .slots-top:not(.is-carousel) .slot__body small { font-size: 13.5px; }
  .slots-top:not(.is-carousel) > .slot--top .slot__tag { top: auto; right: auto; left: 8px; bottom: 8px; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .slots-top:not(.is-carousel) .avail-badge { font-size: 10.5px; padding: 3px 8px; left: 8px; top: 8px; }
  .slots-top:not(.is-carousel) > .slot--top .slot__tag { font-size: 11px; padding: 3px 8px; }
}

/* ID card reminder sits at the top of the Voting Instructions page */
.tip--top { margin: 0 0 16px; }

/* ---------- remaining spots: big row(s) then small row(s); a short last row is centred ---------- */
.slots { display: flex; flex-direction: column; gap: 12px; }
.slots-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.slots-row > .slot { flex: 0 0 auto; grid-column: auto; }
/* phones: 2 big per row, 3 small per row */
.slots-row--md > .slot { width: calc((100% - 12px) / 2); }
.slots-row--sm > .slot { width: calc((100% - 24px) / 3); }
@media (min-width: 640px) {
  .slots-row--md > .slot { width: calc((100% - 48px) / 5); }
  .slots-row--sm > .slot { width: calc((100% - 60px) / 6); }
}
@media (min-width: 900px) {
  .slots, .slots-row { gap: 14px; }
  .slots-row--md > .slot { width: calc((100% - 56px) / 5); }
  .slots-row--sm > .slot { width: calc((100% - 70px) / 6); }
}

/* ---------- one red header on every page: logo + "BUETians in IEB Election 26" + menu ---------- */
.topbar {
  background:
    radial-gradient(600px 120px at 90% 0%, rgba(232, 176, 75, .18), transparent 70%),
    linear-gradient(100deg, var(--maroon-600) 0%, var(--maroon-800) 45%, #4a1512 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0; box-shadow: 0 6px 20px -12px rgba(58, 7, 16, .6);
}
.topbar__inner { min-height: 64px; }
.topbar .brand__logo { width: 42px; height: 42px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(232, 176, 75, .45); }
.topbar .brand__text b { color: #fff; font-size: clamp(16px, 1.7vw, 21px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.topbar .brand__text b span {
  background: linear-gradient(90deg, var(--gold) 0%, #fff0c9 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar .tabs a { color: rgba(255, 255, 255, .86); }
.topbar .tabs a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topbar .tabs a.is-active { background: var(--gold); color: var(--maroon-900); }
.topbar .menu-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.topbar .menu-btn:hover { background: rgba(255, 255, 255, .18); }
.featured { padding-top: 22px; }
@media (max-width: 960px) { .topbar__inner { min-height: 60px; } }
@media (max-width: 380px) {
  .topbar .brand { gap: 8px; }
  .topbar .brand__logo { width: 36px; height: 36px; }
  .topbar .brand__text b { font-size: 15px; }
}
/* page heads sit right under the red header */
.page-head { background: linear-gradient(180deg, #f6ece5 0%, var(--cream) 100%); }

/* ---------- desktop, laptop, iPad: every featured spot on the first screen ----------
   top half: the 3 big spots · bottom half: a row of 5, then a row of as many small spots as fit.
   Phones (and phones in landscape) are not affected. */
@media (min-width: 768px) and (min-height: 600px) {
  .featured-stage {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px;
    height: calc(100vh - var(--slots-top-offset, 320px) - 14px);
    height: calc(100svh - var(--slots-top-offset, 320px) - 14px);
    min-height: 520px; margin-bottom: 24px;
  }
  .featured-stage > .slots-top { height: auto; min-height: 0; margin: 0; }
  .featured-stage > .slots { display: contents; }
  .featured-stage .slots-row { flex-wrap: nowrap; justify-content: center; gap: 14px; min-height: 0; height: 100%; }
  .featured-stage .slots-row > .slot { flex: 1 1 0; width: auto; min-width: 0; height: 100%; }
  .featured-stage .slots-row .slot__photo { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
  .featured-stage .slots-row .slot__photo svg { max-height: 46%; width: auto; }
  .featured-stage .slots-row .slot__ph { display: none; }
  .featured-stage .slots-row .slot__body { flex: 0 0 auto; padding: 7px 10px 9px; gap: 0; }
  .featured-stage .slots-row .slot__body b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .featured-stage .slots-row .slot__body small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .featured-stage .slots-row .avail-badge { font-size: 10px; padding: 2px 7px; gap: 4px; left: 7px; top: 7px; }
  .featured-stage .slots-row .avail-badge::before { width: 6px; height: 6px; }
  .featured-stage .slots-row--sm .slot__body small { display: none; }
  .featured-stage .slots-row--sm .slot__body b { font-size: 12.5px; }
  /* iPad (no carousel): the top 3 sit side by side */
  .featured-stage > .slots-top:not(.is-carousel) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 14px; }
  .featured-stage > .slots-top:not(.is-carousel) > .slot--top { flex-direction: column; }
  .featured-stage > .slots-top:not(.is-carousel) .slot__photo { width: auto; flex: 1 1 auto; }
  .featured-stage > .slots-top:not(.is-carousel) .slot__body { flex: 0 0 auto; justify-content: flex-start; padding: 10px 12px 12px; }
  .featured-stage > .slots-top:not(.is-carousel) .slot__body b { font-size: 17px; }
  .featured-stage > .slots-top:not(.is-carousel) > .slot--top .slot__tag { top: auto; right: auto; left: 8px; bottom: 8px; }
  /* desktop carousel in the top half */
  .featured-stage > .slots-top.is-carousel .carousel-dots { bottom: 6px; }
  .featured-stage > .slots-top.is-carousel .slot__line + .slot__line { display: none; }
}
@media (min-width: 768px) and (min-height: 600px) and (max-height: 820px) {
  .featured-stage > .slots-top.is-carousel .slot__line { display: none; }
}

/* ---------- serial numbers on every spot (#1–#14) ---------- */
.slot__no {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px;
  border-radius: 999px; background: var(--maroon-800); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px -4px rgba(58, 7, 16, .5);
}
.slot--top .slot__no { min-width: 36px; height: 28px; font-size: 14px; right: 10px; top: 10px; }
.slot--top[data-i="0"] .slot__no { background: var(--gold); color: var(--maroon-900); }
.slot--sm .slot__no { min-width: 26px; height: 21px; padding: 0 6px; font-size: 11px; right: 6px; top: 6px; }
.slot--top .slot__tag { top: auto; right: auto; left: 10px; bottom: 10px; }

/* ---------- top 3: static, the Top spot (#1) is 10% bigger ---------- */
/* phones / portrait: #1 on top, 10% taller */
@media (max-aspect-ratio: 1/1) {
  .slots-top:not(.is-carousel) { grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
}
/* desktop, laptop, iPad: #2 · #1 · #3 side by side, the middle one 10% wider */
@media (min-width: 768px) and (min-height: 600px) {
  .featured-stage > .slots-top:not(.is-carousel) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); }
  .featured-stage > .slots-top > .slot--top[data-i="1"] { order: 0; }
  .featured-stage > .slots-top > .slot--top[data-i="0"] { order: 1; }
  .featured-stage > .slots-top > .slot--top[data-i="2"] { order: 2; }
}
/* serial sits on the card corner; on the smaller cards it takes the top-left and "Available" moves to the photo bottom */
.slot > .slot__no { position: absolute; }
.slot--md > .slot__no, .slot--sm > .slot__no { left: 6px; right: auto; top: 6px; }
.slot--md .slot__photo .avail-badge, .slot--sm .slot__photo .avail-badge,
.featured-stage .slots-row .slot__photo .avail-badge { top: auto; bottom: 6px; left: 6px; }
