@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* Global layout */
:root {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #4CAF50;
  --panel-bg: rgba(255,255,255,0.15);
  --panel-border: rgba(255,255,255,0.2);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.editor-page { min-height: 100vh; display: grid; place-items: center; background: url('../images/bkg.jpg') center/cover fixed no-repeat, var(--bg-color); }
* { box-sizing: border-box; }
html, body { height: 100%; min-height: 100vh; margin: 0; font-family: var(--font-family); color: var(--text-color); }
body:not(.editor-page) { background: var(--bg-color); }

/* App shell */
#app { position: relative; width: 100%; height: 100%; min-height: 100vh; overflow: hidden; }
.slide-container { position: relative; width: 100%; height: 100%; min-height: 100vh; }
.slide { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.6s ease-in-out; }
.slide.active { opacity: 1; }
.overlay { width: min(90%, 1200px); padding: 30px 40px; border-radius: 24px; background: var(--panel-bg); border: 2px solid var(--panel-border); box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3); text-align: center; }
.overlay .title { font-size: clamp(1.6rem, 4vw, 4rem); font-weight: bold; margin-bottom: 12px; letter-spacing: 0.5px; }
.overlay .subtitle { font-size: clamp(1rem, 2.2vw, 2.2rem); margin-bottom: 18px; opacity: 0.9; }
.overlay .lines { display: grid; grid-template-columns: 1fr; gap: 8px; }
.overlay .lines .line { font-size: clamp(1rem, 1.8vw, 1.6rem); }

/* Flip digits (for index_special and counters) */
.flip-display { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.digit { display: flex; align-items: center; justify-content: center; width: clamp(60px, 9vw, 120px); height: clamp(80px, 12vw, 160px); text-align: center; font-size: clamp(3rem, 10vw, 8rem); font-weight: bold; color: #ffffff; background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #1a1a1a); border-radius: 14px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.3); text-shadow: 0 0 35px rgba(255,255,255,0.8), 0 0 55px rgba(255,255,255,0.6), 0 4px 8px rgba(0,0,0,0.3); animation: flipIn 360ms ease-out both; }
.digit::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: #555; z-index: 1; box-shadow: 0 0 6px rgba(0,0,0,0.5); }

.stat-label { font-size: 1.1rem; font-weight: bold; color: #ddd; margin: 6px 0 10px; text-transform: uppercase; letter-spacing: 0.8px; }
.stat-card { margin: 12px auto; padding: 18px 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(240,240,240,0.15)); border: 2px solid var(--panel-border); box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3); }

/* Progress circle */
.progress-circle { position: absolute; bottom: 22px; left: 22px; width: clamp(56px, 7vw, 92px); height: clamp(56px, 7vw, 92px); z-index: 10; }
.progress-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bg-circle { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 4; }
.progress { fill: none; stroke: var(--accent-color); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 0; }
/* Progress circle centering fix (grid overlay) */
.progress-circle { display: grid; place-items: center; }
.progress-circle svg { grid-area: 1 / 1; transform-origin: 50% 50%; }
.progress-circle .timer-text {
  grid-area: 1 / 1;
  position: static;
  transform: none;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Conic-gradient progress ring */
.progress-circle.progress-conic { display: grid; place-items: center; }
.progress-circle.progress-conic .ring-track,
.progress-circle.progress-conic .ring-gradient,
.progress-circle.progress-conic .timer-text { grid-area: 1 / 1; }
.progress-circle.progress-conic { --thickness: 3px; --angle: 0deg; --accent-start: #22d3ee; --accent-end: #4ade80; }
.progress-circle.progress-conic .ring-track,
.progress-circle.progress-conic .ring-gradient { width: 100%; height: 100%; border-radius: 50%; }
.progress-circle.progress-conic .ring-track {
  background: conic-gradient(rgba(255,255,255,0.22) 360deg, rgba(255,255,255,0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(50% - var(--thickness)), #000 calc(50% - var(--thickness)));
  mask: radial-gradient(farthest-side, #0000 calc(50% - var(--thickness)), #000 calc(50% - var(--thickness)));
}
.progress-circle.progress-conic .ring-gradient {
  background: conic-gradient(from 270deg, var(--accent-start), var(--accent-end));
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(50% - var(--thickness)), #000 calc(50% - var(--thickness))),
                 conic-gradient(#000 0deg var(--angle), #0000 var(--angle) 360deg);
  mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 calc(50% - var(--thickness))),
        conic-gradient(#000 0deg var(--angle), transparent var(--angle) 360deg);
}


/* Logo */
.logo { position: absolute; top: 20px; left: 20px; width: clamp(120px, 12vw, 260px); height: auto; z-index: 10; display: none !important; }

/* Thumbnails grid (editor) */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 8px 16px rgba(0,0,0,0.3); }
.thumb .thumb-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.thumb .thumb-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: rgba(0,0,0,0.45); font-weight: 600; font-size: 0.95rem; }
.thumb .badge { position: absolute; top: 8px; right: 8px; font-size: 0.75rem; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.25); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.form label { font-size: 0.9rem; opacity: 0.85; }
.form input[type="text"],
.form input[type="number"],
.form input[type="date"],
.form select,
.form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; }
.form textarea { min-height: 80px; grid-column: 1 / -1; }
.btn { display: inline-block; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; cursor: pointer; }
.btn.primary { background: #2f7d32; }
.btn.danger { background: #b00020; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Utility */
.hidden { display: none !important; }
.center { text-align: center; }

@media (max-width: 1200px) {
  .overlay { width: min(90%, 900px); padding: 24px 30px; }
  .digit { width: clamp(52px, 8vw, 96px); height: clamp(68px, 10vw, 132px); font-size: clamp(2.8rem, 9vw, 7rem); }
  .progress-circle { width: 60px; height: 60px; bottom: 16px; left: 16px; }
  .timer-text { font-size: 12px; }
}

@keyframes flipIn { 0% { transform: rotateX(0deg) scale(1); } 10% { transform: rotateX(-90deg); } 15% { transform: rotateX(0deg) scale(1.05); } 20% { transform: rotateX(0deg) scale(1); } 100% { transform: rotateX(0deg) scale(1); } }
.accident-stat .digit { background: linear-gradient(135deg, #ffb3ba, #ff9aa2, #ffb3ba); color: #333; text-shadow: 0 0 25px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.7), 0 3px 6px rgba(0,0,0,0.2); }
.riddor-stat .digit { background: linear-gradient(135deg, #b5e7a0, #a8e6cf, #b5e7a0); color: #333; text-shadow: 0 0 25px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.7), 0 3px 6px rgba(0,0,0,0.2); }
.ytd-stat .digit { background: linear-gradient(135deg, #ffe4b5, #ffd3a5, #ffe4b5); color: #333; text-shadow: 0 0 25px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.7), 0 3px 6px rgba(0,0,0,0.2); }

/* Index Special right-aligned panel */
.overlay.stats-overlay { width: clamp(560px, 33vw, 800px); margin-left: auto; text-align: center; padding: 22px 26px; border-radius: 20px; background: var(--panel-bg); border: 2px solid var(--panel-border); box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3); display: flex; flex-direction: column; gap: 18px; }
.overlay.stats-overlay .stat-card { width: 100%; margin: 8px 0; }
.overlay.stats-overlay .flip-display { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(10px, 1vw, 22px); }
.overlay.stats-overlay .stat-label { font-size: clamp(18px, 1.6vw, 28px); letter-spacing: 1.5px; color: #fff; font-weight: 700; text-shadow: 0 2px 3px rgba(0,0,0,0.85), 0 0 3px rgba(0,0,0,0.8); }
.overlay.stats-overlay .digit { width: 100%; height: clamp(150px, 12vw, 260px); font-size: clamp(80px, 9.5vw, 220px); border-radius: 12px; }

@media (max-width: 1200px) {
  /* Right-side stats: 1/3 viewport, large digits (override) */
  .overlay.stats-overlay { width: clamp(560px, 33vw, 800px); }
  .overlay.stats-overlay .flip-display { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(10px, 1vw, 22px); justify-content: stretch; }
  .overlay.stats-overlay .digit { width: 100%; height: clamp(150px, 12vw, 260px); font-size: clamp(80px, 9.5vw, 220px); }
  
}
.overlay.packed-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.5vh, 28px);
  padding-top: clamp(12px, 3vh, 40px);
}

.overlay.packed-overlay .page-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 32px);
  text-shadow: 0 2px 3px rgba(0,0,0,0.7);
  margin-bottom: clamp(6px, 1.5vh, 12px);
}

.overlay.packed-overlay .line-counter {
  width: min(780px, 90vw);
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: clamp(10px, 2vh, 18px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.overlay.packed-overlay .line-title {
  color: #222;
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 22px);
  margin: 0 0 clamp(8px, 1.5vh, 12px) 0;
  letter-spacing: 0.6px;
}

.overlay.packed-overlay .flip-display {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(6px, 1vw, 12px);
}

.overlay.packed-overlay .flip-display .digit { background: linear-gradient(180deg, #3a3a3a 0%, #1f1f1f 100%); color: #fff; font-weight: 700; border-radius: 8px; position: relative; display: grid; place-items: center; width: clamp(44px, 7vw, 92px); height: clamp(58px, 9vw, 118px); font-size: clamp(28px, 5vw, 56px); box-shadow: inset 0 -3px 0 rgba(255,255,255,0.1), 0 6px 14px rgba(0,0,0,0.35); text-shadow: 0 2px 3px rgba(0,0,0,0.55); animation: packedPop 360ms ease-out both; }

@keyframes packedPop {
  0% { transform: scale(0.9); filter: brightness(0.7); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Taglist (First Aid team) */
.overlay.taglist-overlay {
  width: clamp(640px, 48vw, 900px);
  height: 100vh;
  margin: 0;
  padding: clamp(16px, 2.6vh, 24px);
  border-radius: 0 16px 16px 0;
  background: rgba(0,0,0,0.50);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: none;
  overflow: auto;
}
.overlay.taglist-overlay .taglist-title {
  display: inline-block;
  background: rgba(0,0,0,0.65);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,0.8);
  margin-bottom: clamp(12px, 2vh, 18px);
}
.overlay.taglist-overlay .taglist-list {
  background: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.8vh, 20px);
}
.overlay.taglist-overlay .name-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: clamp(12px, 1.8vh, 18px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.overlay.taglist-overlay .name-text {
  font-size: clamp(22px, 2.4vw, 32px);
}
.overlay.taglist-overlay .tag-badge {
  font-size: clamp(16px, 1.6vw, 20px);
  padding: 8px 14px;
}
.overlay.taglist-overlay .tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.overlay.taglist-overlay .tag-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7b6cff 0%, #6a58f0 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.7px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.overlay.efseason-overlay {
  position: relative;
  max-width: 70vw;
  padding: 20px 30px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.overlay.efseason-overlay .page-title {
  font-size: 42px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.overlay.efseason-overlay .description {
  font-size: 22px;
  opacity: 0.9;
}
.overlay.efseason-overlay .flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.overlay.efseason-overlay .digit-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.overlay.efseason-overlay .separator {
  font-size: 64px;
  line-height: 1;
  margin: 0 6px;
}
.overlay.efseason-overlay .digit { width: 64px; height: 84px; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(0,0,0,0.35)); border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.35); animation: digitFlip 360ms ease both; }

@keyframes digitFlip {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Slide 1 (Index Special) — match ihs.php styling */
.slide.stats-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  padding-right: 100px;
}
.slide.stats-inline .stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(240,240,240,0.15));
  border-radius: 25px;
  padding: 35px 50px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(15px);
  margin: 12px 0;
  min-width: 600px;
  text-align: center;
}
.slide.stats-inline .stat-label {
  font-size: 1.4rem;
  color: #444;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.slide.stats-inline .flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
}
.slide.stats-inline .digit {
  display: inline-block;
  width: 100px;
  height: 130px;
  line-height: 130px;
  text-align: center;
  font-size: 6.5rem;
  font-weight: bold;
  border-radius: 15px;
  position: relative;
}

@keyframes digitFlip {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Taglist visual tweaks for slide id 2 */
.overlay.taglist-overlay { background: none; border: none; box-shadow: none; }
.overlay.taglist-overlay .taglist-title { font-size: clamp(30px, 3.2vw, 42px); }
.overlay.taglist-overlay .name-text { font-size: clamp(26px, 2.8vw, 36px); }
.overlay.taglist-overlay .tags-wrap { justify-content: flex-end; }
.overlay.taglist-overlay .name-item { grid-template-columns: minmax(0,1fr) auto; }
.overlay.taglist-overlay .tag-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7b6cff 0%, #6a58f0 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.7px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.overlay.efseason-overlay {
  position: relative;
  max-width: 70vw;
  padding: 20px 30px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.overlay.efseason-overlay .page-title {
  font-size: 42px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.overlay.efseason-overlay .description {
  font-size: 22px;
  opacity: 0.9;
}
.overlay.efseason-overlay .flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.overlay.efseason-overlay .digit-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.overlay.efseason-overlay .separator {
  font-size: 64px;
  line-height: 1;
  margin: 0 6px;
}
.overlay.efseason-overlay .digit {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(0,0,0,0.35));
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  animation: digitFlip 320ms ease both;
}

@keyframes digitFlip {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Slide 1 (Index Special) — match ihs.php styling */
.slide.stats-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  padding-right: 100px;
}
.slide.stats-inline .stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(240,240,240,0.15));
  border-radius: 25px;
  padding: 35px 50px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(15px);
  margin: 12px 0;
  min-width: 600px;
  text-align: center;
}
.slide.stats-inline .stat-label {
  font-size: 1.4rem;
  color: #444;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.slide.stats-inline .flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
}
.slide.stats-inline .digit {
  display: inline-block;
  width: 100px;
  height: 130px;
  line-height: 130px;
  text-align: center;
  font-size: 6.5rem;
  font-weight: bold;
  border-radius: 15px;
  position: relative;
}

@keyframes digitFlip {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Taglist visual tweaks for slide id 2 */
.overlay.taglist-overlay { background: none; border: none; box-shadow: none; }
.overlay.taglist-overlay .taglist-title { font-size: clamp(30px, 3.2vw, 42px); }
.overlay.taglist-overlay .name-text { font-size: clamp(26px, 2.8vw, 36px); }
.overlay.taglist-overlay .tags-wrap { justify-content: flex-end; }
.overlay.taglist-overlay .name-item { grid-template-columns: minmax(0,1fr) auto; }
.overlay.taglist-overlay .tag-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7b6cff 0%, #6a58f0 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.7px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.overlay.efseason-overlay {
  position: relative;
  max-width: 70vw;
  padding: 20px 30px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.overlay.efseason-overlay .page-title {
  font-size: 42px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.overlay.efseason-overlay .description {
  font-size: 22px;
  opacity: 0.9;
}
.overlay.efseason-overlay .flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.overlay.efseason-overlay .digit-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.overlay.efseason-overlay .separator {
  font-size: 64px;
  line-height: 1;
  margin: 0 6px;
}
.overlay.efseason-overlay .digit {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(0,0,0,0.35));
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  animation: digitFlip 320ms ease both;
}

@keyframes digitFlip {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}
/* Score (OEE Dashboard) — match score.php styling while responsive */
.overlay.score-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  width: min(95%, 1200px);
  backdrop-filter: blur(10px);
}
.overlay.score-overlay .page-title {
  font-size: clamp(24px, 2.4vw, 40px);
  color: #333;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.85);
  margin: 0 0 6px 0;
}
.overlay.score-overlay .date-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
  border-radius: 20px;
  padding: clamp(12px, 1.8vh, 20px) clamp(22px, 3vw, 40px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  text-align: center;
}
.overlay.score-overlay .date-text {
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 700;
  color: #444;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.overlay.score-overlay .metrics-row {
  display: flex;
  gap: clamp(16px, 2.5vw, 30px);
  flex-wrap: wrap;
  justify-content: center;
}
.overlay.score-overlay .metric-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
  border-radius: 20px;
  padding: clamp(16px, 2vh, 30px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  text-align: center;
  min-width: clamp(240px, 28vw, 320px);
}
.overlay.score-overlay .metric-title {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 700;
  color: #444;
  margin-bottom: clamp(10px, 1.2vh, 20px);
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.overlay.score-overlay .flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 8px);
}
.overlay.score-overlay .digit { display: inline-flex; align-items: center; justify-content: center; width: clamp(60px, 6vw, 80px); height: clamp(80px, 9vw, 110px); font-size: clamp(40px, 6.2vw, 64px); font-weight: 800; color: #fff; background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #1a1a1a); border-radius: 16px; margin: 0 2px; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,0.45), inset 0 2px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.3); text-shadow: 0 0 20px rgba(255,255,255,0.75), 0 2px 4px rgba(0,0,0,0.3); animation: flipIn 360ms ease both; }
.overlay.score-overlay .digit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: #555;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.overlay.score-overlay .separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 4.2vw, 44px);
  height: clamp(80px, 9vw, 110px);
  font-size: clamp(40px, 6.2vw, 64px);
  font-weight: 800;
  color: #444;
}
.overlay.score-overlay .oee-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
  border-radius: 25px;
  padding: clamp(22px, 3vh, 40px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 3px solid rgba(255,255,255,0.3);
  text-align: center;
  min-width: clamp(340px, 40vw, 480px);
}
.overlay.score-overlay .oee-title {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 700;
  color: #444;
  margin-bottom: clamp(12px, 1.6vh, 20px);
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.overlay.score-overlay .oee-flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
}
.overlay.score-overlay .oee-digit { display: inline-flex; align-items: center; justify-content: center; width: clamp(90px, 9vw, 120px); height: clamp(120px, 13vw, 150px); font-size: clamp(60px, 10vw, 96px); font-weight: 800; color: #fff; background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #1a1a1a); border-radius: 20px; margin: 0 3px; position: relative; box-shadow: 0 12px 30px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.3); text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 4px 8px rgba(0,0,0,0.3); animation: flipIn 360ms ease both; }
.overlay.score-overlay .oee-digit::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 3px;
  background: #555;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.overlay.score-overlay .oee-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(50px, 6vw, 60px);
  height: clamp(120px, 13vw, 150px);
  font-size: clamp(60px, 10vw, 96px);
  font-weight: 800;
  color: #444;
}

@keyframes flipIn {
  0% { transform: rotateX(-90deg); opacity: 0; }
  50% { transform: rotateX(0deg) scale(1.08); opacity: 1; }
  100% { transform: rotateX(0deg) scale(1); }
}

@media (max-width: 1200px) {
  .overlay.score-overlay .metrics-row { flex-direction: column; align-items: center; }
}

/* Monthly Achieved (slide 23) */
.overlay.monthly-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vh, 28px);
  width: min(95%, 1000px);
  backdrop-filter: blur(10px);
}
.overlay.monthly-overlay .page-title {
  font-size: clamp(24px, 2.4vw, 40px);
  color: #333;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.85);
  margin: 0 0 8px 0;
}
.overlay.monthly-overlay .oee-flip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
}
.overlay.monthly-overlay .oee-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 9vw, 120px);
  height: clamp(120px, 13vw, 150px);
  font-size: clamp(60px, 10vw, 96px);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #1a1a1a);
  border-radius: 20px;
  margin: 0 3px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.3);
  text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 4px 8px rgba(0,0,0,0.3);
  animation: flipIn 360ms ease both;
}
.overlay.monthly-overlay .oee-digit::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 3px;
  background: #555;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.overlay.monthly-overlay .oee-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(50px, 6vw, 60px);
  height: clamp(120px, 13vw, 150px);
  font-size: clamp(60px, 10vw, 96px);
  font-weight: 800;
  color: #444;
}
.overlay.monthly-overlay .oee-title {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 800;
  color: #444;
  margin-top: clamp(10px, 1.4vh, 16px);
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
/* Slide 4 — match slide4.php layout */
.slide.slide4 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100vh;
  padding: 2rem;
  gap: 1rem;
  padding-top: 5rem;
}
.slide.slide4 .content-section {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.slide.slide4 .slide-title {
  font-family: var(--font-family);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin: 0;
  line-height: 1.2;
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.slide.slide4 .slide-text {
  font-family: var(--font-family);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin: 0.5rem 0;
  line-height: 1.4;
  white-space: pre-line;
  font-size: clamp(1.2rem, 4vw, 3rem);
}
.slide.slide4 .name-line {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.slide.slide4 .name-part {
  display: inline-block;
  min-width: 15ch;
  max-width: 25ch;
  text-align: left;
  font-size: 1em;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.slide.slide4 .dept-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7em;
  font-weight: 600;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.slide.slide4 .dept-hr,
.slide.slide4 .dept-it,
.slide.slide4 .dept-finance,
.slide.slide4 .dept-marketing,
.slide.slide4 .dept-sales,
.slide.slide4 .dept-operations,
.slide.slide4 .dept-management,
.slide.slide4 .dept-default {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
@media (max-width: 1400px) {
  .slide.slide4 .slide-title { font-size: 4rem; }
  .slide.slide4 .slide-text { font-size: 2.5rem; }
}
@media (max-width: 1200px) {
  .slide.slide4 .slide-title { font-size: 3.5rem; }
  .slide.slide4 .slide-text { font-size: 2rem; }
  .slide.slide4 .content-section { padding: 1.5rem; }
}
@media (max-width: 992px) {
  .slide.slide4 .slide-title { font-size: 3rem; }
  .slide.slide4 .slide-text { font-size: 1.8rem; }
  .slide.slide4 { padding: 1rem; }
}
@media (max-width: 768px) {
  .slide.slide4 .slide-title { font-size: 2.5rem; }
  .slide.slide4 .slide-text { font-size: 1.5rem; }
  .slide.slide4 .content-section { padding: 1rem; }
}
@media (max-width: 576px) {
  .slide.slide4 .slide-title { font-size: 2rem; }
  .slide.slide4 .slide-text { font-size: 1.2rem; }
  .slide.slide4 .dept-badge { font-size: 0.7em; padding: 0.3rem 0.6rem; }
}