:root {
  --navy: #0a2d56;
  --navy-deep: #08305c;
  --ink: #0f2a45;
  --paper: #fffdf7;
  --white: #ffffff;
  --muted: #4a647c;
  --green: #2faf55;
  --red: #ef4b4b;
  --blue: #3a7bfd;
  --yellow: #f0c12a;
  --yellow-deep: #e5ae24;
  --sky: #e8f4ff;
  --mint: #e9f9ef;
  --sun: #fff6d6;
  --blush: #ffe8e8;
  --shadow: 0 14px 40px rgba(10, 45, 86, 0.14);
  --radius: 20px;
  --font-en: "Outfit", system-ui, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f3f8ff;
  color: var(--ink);
  font-family: var(--font-en);
  overflow: hidden;
}

body {
  min-height: 100dvh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 12%, rgba(47, 175, 85, 0.28), transparent 55%),
    radial-gradient(ellipse 65% 50% at 92% 18%, rgba(58, 123, 253, 0.28), transparent 52%),
    radial-gradient(ellipse 55% 45% at 78% 88%, rgba(240, 193, 42, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 40% at 18% 85%, rgba(239, 75, 75, 0.18), transparent 50%),
    linear-gradient(165deg, #dff0ff 0%, #fff8e8 45%, #e8fff2 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: var(--green);
  top: -70px;
  left: -50px;
}

.orb-b {
  width: 340px;
  height: 340px;
  background: var(--blue);
  top: 18%;
  right: -90px;
  animation-delay: -4s;
}

.orb-c {
  width: 260px;
  height: 260px;
  background: var(--yellow);
  bottom: -50px;
  left: 32%;
  animation-delay: -7s;
}

.orb-d {
  width: 220px;
  height: 220px;
  background: var(--red);
  bottom: 20%;
  right: 12%;
  animation-delay: -2s;
  opacity: 0.35;
}

.float-shapes .shape {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}

.float-shapes .s-green { background: var(--green); top: 18%; left: 8%; }
.float-shapes .s-red { background: var(--red); top: 28%; right: 10%; animation-delay: -3s; }
.float-shapes .s-blue { background: var(--blue); bottom: 22%; left: 14%; animation-delay: -6s; }
.float-shapes .s-yellow { background: var(--yellow); bottom: 30%; right: 18%; animation-delay: -9s; }
.float-shapes .s2 { width: 16px; height: 16px; opacity: 0.4; }
.float-shapes .s-green.s2 { top: 55%; left: 4%; }
.float-shapes .s-red.s2 { top: 12%; right: 28%; }
.float-shapes .s-blue.s2 { bottom: 12%; right: 6%; }
.float-shapes .s-yellow.s2 { top: 70%; left: 40%; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(12deg); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 45, 86, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 45, 86, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(24px) scale(1.05); }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.1rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(10, 45, 86, 0.08);
}

.iepec-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 25%, var(--red) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75% 100%);
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.grade-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--sun));
  border: 1px solid rgba(10, 45, 86, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 2px solid rgba(10, 45, 86, 0.12);
  background: var(--sun);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sound-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 45, 86, 0.12);
}

.sound-btn[aria-pressed="false"] {
  opacity: 0.65;
  background: #eee;
}

/* Full-bleed content area */
.deck {
  position: relative;
  z-index: 1;
  height: 100dvh;
  padding: 0;
  outline: none;
}

.slide {
  position: absolute;
  inset: 4.35rem 0 5.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.995);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
  pointer-events: none;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0.35rem 0.45rem;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide.is-exit {
  opacity: 0;
  transform: translateY(-12px);
}

.slide-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 3.25rem) clamp(1.75rem, 5vw, 4.5rem);
  border: 2px solid rgba(255, 255, 255, 0.95);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  animation: slideIn 0.45s ease both;
  position: relative;
}

.slide-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--green), var(--red), var(--blue), var(--yellow));
}

@keyframes slideIn {
  from { opacity: 0.7; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.en {
  display: block;
  font-family: var(--font-en);
  line-height: 1.4;
}

.ar {
  display: block;
  font-family: var(--font-ar);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 600;
}

h1 .ar,
h2 .ar,
h3 .ar {
  margin-top: 0.3rem;
  color: #355574;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 800;
  color: var(--blue);
}

.eyebrow.ar {
  text-transform: none;
  letter-spacing: 0;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero-title {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  color: var(--navy);
  font-weight: 800;
}

.hero-title .ar {
  font-size: 0.72em;
  color: #355574;
}

.hero-sub {
  margin: 0.2rem 0;
  font-size: clamp(1.15rem, 2.7vw, 1.55rem);
  color: var(--ink);
}

.hero-sub.ar {
  margin-bottom: 1.25rem;
}

.hero-date {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint), var(--sky), var(--sun));
  border: 2px solid rgba(10, 45, 86, 0.08);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.title-slide {
  text-align: center;
  align-items: center;
}

.slide-title {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  color: var(--navy);
  font-weight: 800;
}

.slide-lead {
  margin: 0.2rem 0;
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
}

.slide-lead.ar {
  margin-bottom: 1.4rem;
}

.bilingual {
  margin: 0 0 1.2rem;
}

.bilingual .en {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: var(--ink);
  font-weight: 600;
}

.bilingual .ar {
  margin-top: 0.3rem;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
}

.bilingual.center {
  text-align: center;
}

.step-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  color: var(--white);
  background: var(--navy);
}

.step-badge[data-tone="green"] { background: var(--green); }
.step-badge[data-tone="red"] { background: var(--red); }
.step-badge[data-tone="blue"] { background: var(--blue); }
.step-badge[data-tone="yellow"] { background: #d4a40f; color: #1a1a1a; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1.4rem, 3.5vw, 3.25rem);
  align-items: center;
  height: 100%;
}

.copy-col,
.visual-col {
  min-width: 0;
}

.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #2a62e0 40%, var(--green));
  background-size: 180% 180%;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(58, 123, 253, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
  animation: pulseCta 2.8s ease-in-out infinite;
  font-size: 1.1rem;
}

.cta .ar {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.cta:hover {
  transform: translateY(-2px) scale(1.03);
  background-position: 100% 50%;
}

@keyframes pulseCta {
  0%, 100% { box-shadow: 0 12px 28px rgba(58, 123, 253, 0.35); }
  50% { box-shadow: 0 14px 34px rgba(47, 175, 85, 0.4); }
}

.hero-art {
  position: relative;
  width: min(420px, 85vw);
  margin: 0.5rem 0 1.5rem;
  min-height: 180px;
}

.iepec-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 72px;
  margin: 0 auto 0.75rem;
}

.iepec-tiles .tile {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  animation: tilePulse 2.4s ease-in-out infinite;
}

.tile.t-green { border: 3px solid var(--green); background: rgba(47, 175, 85, 0.15); }
.tile.t-red { border: 3px solid var(--red); background: rgba(239, 75, 75, 0.15); animation-delay: 0.2s; }
.tile.t-blue { border: 3px solid var(--blue); background: rgba(58, 123, 253, 0.15); animation-delay: 0.4s; }
.tile.t-yellow { border: 3px solid var(--yellow); background: rgba(240, 193, 42, 0.2); animation-delay: 0.6s; }

@keyframes tilePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.ballot-visual {
  width: min(240px, 55vw);
  height: 150px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.ballot-box {
  position: absolute;
  inset: 40px 30px 10px;
  background: linear-gradient(180deg, #1d5a94, var(--navy));
  border-radius: 12px;
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.08);
}

.ballot-slot {
  position: absolute;
  top: -8px;
  left: 18%;
  right: 18%;
  height: 10px;
  background: #041525;
  border-radius: 4px;
}

.ballot-paper {
  position: absolute;
  width: 54px;
  height: 70px;
  background: #fff;
  border: 2px solid #d7e4f2;
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: dropBallot 2.4s ease-in-out infinite;
}

.ballot-paper.p1 { animation-delay: 0s; }
.ballot-paper.p2 { animation-delay: 0.8s; opacity: 0.7; }
.ballot-paper.p3 { animation-delay: 1.6s; opacity: 0.45; }

@keyframes dropBallot {
  0% { top: -10px; opacity: 0; }
  25% { opacity: 1; }
  70% { top: 55px; opacity: 1; }
  100% { top: 70px; opacity: 0; }
}

.students-row {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  font-size: 1.5rem;
}

.students-row .stu {
  animation: bob 2s ease-in-out infinite;
  display: inline-block;
}
.students-row .s2 { animation-delay: 0.2s; }
.students-row .s3 { animation-delay: 0.4s; }
.students-row .s4 { animation-delay: 0.6s; }

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkles i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkles i:nth-child(1) { top: 10%; left: 12%; background: var(--green); }
.sparkles i:nth-child(2) { top: 20%; right: 14%; background: var(--red); animation-delay: 0.3s; }
.sparkles i:nth-child(3) { bottom: 30%; left: 8%; background: var(--blue); animation-delay: 0.6s; }
.sparkles i:nth-child(4) { top: 40%; right: 8%; background: var(--yellow); animation-delay: 0.9s; }
.sparkles i:nth-child(5) { bottom: 15%; right: 22%; background: var(--green); animation-delay: 1.1s; }
.sparkles i:nth-child(6) { top: 8%; left: 48%; background: var(--red); animation-delay: 1.4s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.4rem 0 0.85rem;
}

.election-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.slide[data-slide="1"] .slide-title,
.slide[data-slide="9"] .slide-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

.slide[data-slide="9"] .slide-title {
  margin-bottom: 0.2rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.slide[data-slide="9"] .slide-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.35rem;
  justify-content: flex-start;
}

.slide[data-slide="9"] .slide-lead {
  font-size: 1.02rem;
}

.slide[data-slide="9"] .role-card {
  padding: 0.55rem 0.8rem 0.6rem;
}

.slide[data-slide="1"] .slide-lead.ar {
  margin-bottom: 0.55rem;
}

.slide[data-slide="9"] .slide-lead.ar {
  margin-bottom: 0.25rem;
}

.election-note {
  border-radius: 16px;
  padding: 0.65rem 0.95rem 0.7rem;
  border: 2px solid transparent;
}

.election-note[data-tone="green"] {
  background: var(--mint);
  border-color: var(--green);
}

.election-note[data-tone="blue"] {
  background: var(--sky);
  border-color: var(--blue);
}

.election-note strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.election-note strong.ar {
  margin-bottom: 0.25rem;
}

.election-note p {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.election-note p.ar {
  margin-top: 0.15rem;
}

.grade-card {
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 0.7rem 0.35rem;
  background: linear-gradient(180deg, #fff, #f5faff);
  box-shadow: 0 8px 22px rgba(10, 45, 86, 0.08);
  border: 3px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
}

.grade-card span {
  display: block;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 800;
  color: var(--navy);
}

.grade-card small,
.grade-card em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.grade-card:hover,
.grade-card.is-selected {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 16px 30px rgba(10, 45, 86, 0.14);
}

.grade-card[data-tone="green"].is-selected,
.grade-card[data-tone="green"]:hover { border-color: var(--green); background: var(--mint); }
.grade-card[data-tone="red"].is-selected,
.grade-card[data-tone="red"]:hover { border-color: var(--red); background: var(--blush); }
.grade-card[data-tone="blue"].is-selected,
.grade-card[data-tone="blue"]:hover { border-color: var(--blue); background: var(--sky); }
.grade-card[data-tone="yellow"].is-selected,
.grade-card[data-tone="yellow"]:hover { border-color: var(--yellow); background: var(--sun); }

.hint {
  margin: 0.2rem 0;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f4f9ff);
  border: 2px solid rgba(10, 45, 86, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(10, 45, 86, 0.12);
}

.journey-step .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  flex-shrink: 0;
}

.journey-step .j-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.journey-step[data-tone="green"] .num { background: var(--green); }
.journey-step[data-tone="red"] .num { background: var(--red); }
.journey-step[data-tone="blue"] .num { background: var(--blue); }
.journey-step[data-tone="yellow"] .num { background: #d4a40f; }

.journey-step strong.en {
  font-size: 1.1rem;
  color: var(--navy);
}

.journey-step strong.ar {
  font-size: 1rem;
}

.journey-path {
  margin-top: 1rem;
  height: 36px;
  opacity: 0.85;
}

.journey-path svg {
  width: 100%;
  height: 100%;
}

.graphic {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(58, 123, 253, 0.1), rgba(47, 175, 85, 0.12), rgba(240, 193, 42, 0.12)),
    #eef6ff;
  border: 2px solid rgba(10, 45, 86, 0.06);
  overflow: hidden;
}

.scene-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 2rem;
  z-index: 3;
  animation: bob 2s ease-in-out infinite;
}

.megaphone-scene { display: grid; place-items: center; }

.megaphone {
  width: 100px;
  height: 60px;
  background: linear-gradient(90deg, var(--red), #ff7a45);
  clip-path: polygon(0 35%, 55% 15%, 55% 85%, 0 65%);
  position: relative;
  z-index: 2;
  animation: wiggle 1.8s ease-in-out infinite;
}

.megaphone::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid #fff3c4;
}

.sound-wave {
  position: absolute;
  left: 58%;
  top: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: ripple 2s linear infinite;
}

.sound-wave.w2 { animation-delay: 0.4s; border-color: var(--green); }
.sound-wave.w3 { animation-delay: 0.8s; border-color: var(--yellow); }

@keyframes ripple {
  0% { width: 30px; height: 30px; opacity: 0.7; }
  100% { width: 150px; height: 150px; opacity: 0; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

.poster-card {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(10, 45, 86, 0.25);
  animation: bob 2.5s ease-in-out infinite;
}

.mini-kids {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 0.35rem;
  font-size: 1.4rem;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-scene {
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.phone {
  width: min(240px, 72%);
  background: #122033;
  border-radius: 30px;
  padding: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  animation: phoneIn 0.8s ease both;
}

.phone-notch {
  width: 42%;
  height: 10px;
  background: #222;
  border-radius: 999px;
  margin: 0 auto 0.7rem;
}

.msg {
  background: #1e4a7a;
  color: #e8f1ff;
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 0.55rem;
  animation: msgPop 0.6s ease both 0.2s;
}

.msg-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #9fd0ff;
  margin-bottom: 0.3rem;
}

.msg p { margin: 0; font-size: 0.88rem; }

.msg.reply {
  background: var(--green);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  animation-delay: 0.7s;
}

@keyframes phoneIn {
  from { transform: translateY(20px); opacity: 0; }
}
@keyframes msgPop {
  from { transform: translateY(8px); opacity: 0; }
}

.campaign-scene { display: grid; place-items: center; }

.poster {
  position: absolute;
  width: 120px;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  animation: floatPoster 3s ease-in-out infinite;
  font-size: 0.9rem;
}

.poster-a { background: var(--green); left: 10%; top: 18%; transform: rotate(-8deg); }
.poster-b { background: var(--blue); right: 12%; top: 14%; transform: rotate(7deg); animation-delay: -1s; }
.poster-c { background: var(--red); left: 32%; bottom: 22%; transform: rotate(3deg); animation-delay: -1.8s; }

.campaign-kids {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 0.4rem;
  font-size: 1.6rem;
}

@keyframes floatPoster {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  animation: confettiFall 3.2s linear infinite;
}

.confetti.c1 { background: var(--yellow); left: 18%; top: -10%; }
.confetti.c2 { background: var(--blue); left: 50%; top: -20%; animation-delay: 0.8s; }
.confetti.c3 { background: var(--green); left: 75%; top: -5%; animation-delay: 1.5s; }
.confetti.c4 { background: var(--red); left: 35%; top: -15%; animation-delay: 2s; width: 8px; height: 8px; }
.confetti.c5 { background: var(--yellow); left: 88%; top: -8%; animation-delay: 2.4s; border-radius: 50%; }

@keyframes confettiFall {
  to { transform: translateY(320px) rotate(240deg); opacity: 0; }
}

.speech-scene {
  display: grid;
  place-items: end center;
  padding-bottom: 1rem;
}

.stage {
  width: 85%;
  height: 200px;
  position: relative;
}

.mic {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: 14px;
  height: 52px;
  background: #333;
  border-radius: 8px;
  transform: translateX(-50%);
}

.mic::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #666, #222);
  box-shadow: 0 0 0 4px rgba(58, 123, 253, 0.3);
  animation: glowMic 1.5s ease-in-out infinite;
}

@keyframes glowMic {
  0%, 100% { box-shadow: 0 0 0 4px rgba(58, 123, 253, 0.25); }
  50% { box-shadow: 0 0 0 12px rgba(47, 175, 85, 0.3); }
}

.speaker {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 50% 50% 40% 40%;
  transform: translateX(-50%);
}

.crowd {
  position: absolute;
  bottom: 8px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
}

.crowd span {
  width: 24px;
  height: 30px;
  border-radius: 10px 10px 4px 4px;
  background: var(--blue);
  animation: cheer 0.9s ease-in-out infinite;
}

.crowd span:nth-child(2) { background: var(--green); animation-delay: 0.1s; }
.crowd span:nth-child(3) { background: var(--red); animation-delay: 0.2s; }
.crowd span:nth-child(4) { background: var(--yellow); animation-delay: 0.15s; }
.crowd span:nth-child(5) { background: var(--blue); animation-delay: 0.25s; }

@keyframes cheer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.vote-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.25rem;
}

.big-date {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--navy);
  font-weight: 800;
}

.big-date .d { font-size: clamp(3rem, 6vw, 4rem); line-height: 1; color: var(--red); }
.big-date .m { font-size: 1.5rem; letter-spacing: 0.08em; }
.big-date .y { font-size: 1.3rem; color: var(--blue); }

.ballot-drop {
  position: relative;
  width: 150px;
  height: 130px;
}

.drop-box {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 75px;
  background: linear-gradient(180deg, #1d5a94, var(--navy));
  border-radius: 10px;
}

.drop-box::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18%;
  right: 18%;
  height: 8px;
  background: #041525;
  border-radius: 3px;
}

.drop-paper {
  position: absolute;
  left: 50%;
  top: 0;
  width: 42px;
  height: 56px;
  margin-left: -21px;
  background: white;
  border: 2px solid #cfe0f2;
  border-radius: 3px;
  opacity: 0;
}

.drop-paper.is-dropping {
  animation: voteDrop 0.9s ease forwards;
}

@keyframes voteDrop {
  0% { top: -10px; opacity: 0; transform: rotate(-8deg); }
  20% { opacity: 1; }
  100% { top: 48px; opacity: 0; transform: rotate(6deg); }
}

.winners-scene {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.trophy {
  font-size: 4.5rem;
  animation: trophyBounce 1.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(240, 193, 42, 0.5));
}

@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.06); }
}

.stars {
  display: flex;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}

.stars span {
  width: 14px;
  height: 14px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 1.2s ease-in-out infinite;
}

.stars span:nth-child(2) { animation-delay: 0.2s; }
.stars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.winner-banner {
  background: var(--navy);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  margin-bottom: 0.75rem;
}

.winner-banner .ar { color: rgba(255, 255, 255, 0.88); }

.winner-avatars {
  display: flex;
  gap: 0.75rem;
  font-size: 2rem;
}

.burst {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: burstOut 2s ease-out infinite;
}

.burst.b1 { background: var(--yellow); top: 20%; left: 18%; }
.burst.b2 { background: var(--red); top: 25%; right: 16%; animation-delay: 0.4s; }
.burst.b3 { background: var(--blue); bottom: 28%; left: 22%; animation-delay: 0.8s; }

@keyframes burstOut {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2) translateY(-20px); opacity: 0; }
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.role-card {
  background: linear-gradient(180deg, #fff, #f6faff);
  border-radius: 18px;
  padding: 0.8rem 1rem 0.9rem;
  border-top: 5px solid var(--navy);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 45, 86, 0.12);
}

.role-card[data-tone="green"] { border-top-color: var(--green); background: linear-gradient(180deg, #fff, var(--mint)); }
.role-card[data-tone="red"] { border-top-color: var(--red); background: linear-gradient(180deg, #fff, var(--blush)); }
.role-card[data-tone="blue"] { border-top-color: var(--blue); background: linear-gradient(180deg, #fff, var(--sky)); }
.role-card[data-tone="yellow"] { border-top-color: var(--yellow); background: linear-gradient(180deg, #fff, var(--sun)); }

.role-icon { font-size: 1.45rem; margin-bottom: 0.15rem; }

.role-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--navy);
}

.role-card h3.ar {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.role-card p {
  margin: 0;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
}

.role-card p.ar {
  margin-top: 0.25rem;
  font-size: 1rem;
}

.org-duties {
  margin-top: 0.4rem;
  border-radius: 18px;
  padding: 0.5rem 0.75rem 0.55rem;
  border-top: 5px solid var(--yellow);
  background: linear-gradient(180deg, #fff, var(--sun));
}

.org-duties h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.org-duties h3.ar {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.duty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
  counter-reset: duty;
}

.duty-list li {
  counter-increment: duty;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
}

.duty-list li::before {
  content: counter(duty);
  grid-row: 1 / span 2;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.duty-list .en,
.duty-list .ar {
  display: block;
  font-size: clamp(0.9rem, 1.35vw, 1rem);
}

.duty-list .en {
  font-weight: 700;
  color: var(--navy);
}

.duty-list .ar {
  margin-top: 0.1rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.2rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(58, 123, 253, 0.1), rgba(47, 175, 85, 0.1));
  border-left: 6px solid var(--blue);
  animation: fadeUp 0.5s ease both;
}

.why-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.why-list li:nth-child(2) { border-left-color: var(--green); animation-delay: 0.08s; }
.why-list li:nth-child(3) { border-left-color: var(--red); animation-delay: 0.16s; }
.why-list li:nth-child(4) { border-left-color: var(--yellow); animation-delay: 0.24s; }

.why-list .en {
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
}

.closing-logo {
  height: 72px;
  margin-bottom: 1.1rem;
  object-fit: contain;
}

.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(10, 45, 86, 0.08);
  box-shadow: 0 -8px 24px rgba(10, 45, 86, 0.06);
}

.controls-progress {
  padding: 0.55rem 1rem 0;
}

.progress-wrap {
  position: relative;
  height: 10px;
  background: #e4ecf5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--yellow), var(--red));
  transition: width 0.35s ease;
}

.controls-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1rem 0.65rem;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(10, 45, 86, 0.12);
  background: white;
  color: var(--navy);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  font-weight: 700;
}

.nav-btn:hover:not(:disabled) { transform: scale(1.06); }

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-btn.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.slide-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.8rem;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 var(--yellow-deep);
  line-height: 1;
  user-select: none;
}

.slide-counter .counter-sep {
  opacity: 0.65;
  margin: 0 0.05rem;
}

.slide-counter .counter-total {
  opacity: 0.85;
  font-size: 0.95em;
}

.controls-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 25%, var(--red) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75% 100%);
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 100%;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #c5d3e3;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dot.is-active {
  background: var(--navy);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(240, 193, 42, 0.55);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 6.8rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 50;
  background: var(--navy);
  color: white;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 4px 0 var(--yellow-deep);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
  max-width: min(90vw, 380px);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast .ar {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .visual-col .graphic { min-height: 210px; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles-grid { grid-template-columns: 1fr; }
  .duty-list { grid-template-columns: 1fr; }
  .grade-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .election-notes { grid-template-columns: 1fr; }
  .brand-logo { height: 42px; }
  .grade-pill { display: none; }
  .slide { inset: 4.2rem 0 5.8rem; padding: 0.35rem; }
}

@media (max-width: 520px) {
  .slide { inset: 4rem 0 6rem; padding: 0.25rem; }
  .slide-inner { padding: 1.25rem 1.1rem; }
  .grade-grid { gap: 0.5rem; }
  .grade-card { padding: 0.7rem 0.25rem; }
  .grade-card span { font-size: 1.35rem; }
  .journey { grid-template-columns: 1fr; }
  .sound-label { display: none; }
  .journey-step .j-icon { display: none; }
}

@media (max-height: 860px) {
  .slide-inner {
    padding: 0.75rem 1.4rem 0.65rem;
  }

  .slide-title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    margin-bottom: 0.35rem;
  }

  .slide-lead,
  .bilingual .en {
    font-size: 1.05rem;
  }

  .slide-lead.ar { margin-bottom: 0.45rem; }
  .bilingual { margin-bottom: 0.6rem; }

  .eyebrow.ar { margin-bottom: 0.25rem; }

  .hero-title {
    font-size: clamp(1.85rem, 4.2vw, 2.7rem);
    margin: 0.05rem 0 0.3rem;
  }

  .hero-sub { font-size: 1.05rem; }
  .hero-sub.ar { margin-bottom: 0.4rem; }

  .hero-date {
    padding: 0.45rem 1rem;
    margin-bottom: 0.35rem;
    font-size: 1rem;
  }

  .hero-art {
    min-height: 0;
    margin: 0.15rem 0 0.55rem;
  }

  .iepec-tiles { margin-bottom: 0.2rem; }
  .ballot-visual { height: 124px; }

  .cta {
    padding: 0.65rem 1.3rem;
    font-size: 1rem;
  }

  .graphic { min-height: 180px; }
  .step-badge { margin-bottom: 0.4rem; padding: 0.28rem 0.7rem; }

  .why-list { gap: 0.4rem; }
  .why-list li { padding: 0.55rem 0.85rem; }
  .why-list .en { font-size: 1.02rem; }
  .why-emoji { font-size: 1.35rem; }

  .closing-logo { height: 52px; margin-bottom: 0.4rem; }
  .journey { gap: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
