/* ââ Mushroom Mascot v3 â unified SVG, glowing aura, alive ââ */

.ep-launcher {
  position: fixed; right: 30px; bottom: 24px;
  width: 90px; height: 110px;
  z-index: 9998; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center;
  transition: filter .2s;
  animation: ep-launcher-walk 9s ease-in-out infinite;
}
.ep-launcher:hover { filter: drop-shadow(0 0 18px rgba(255,200,100,0.7)); }

/* Walking the launcher across the screen */
@keyframes ep-launcher-walk {
  0%   { transform: translateX(0)    scaleX(1); }
  10%  { transform: translateX(-12px) scaleX(1); }
  20%  { transform: translateX(-24px) scaleX(1); }
  30%  { transform: translateX(-20px) scaleX(1); }
  40%  { transform: translateX(0)    scaleX(1); }
  50%  { transform: translateX(0)    scaleX(-1); }
  60%  { transform: translateX(-20px) scaleX(-1); }
  70%  { transform: translateX(-24px) scaleX(-1); }
  80%  { transform: translateX(-12px) scaleX(-1); }
  90%  { transform: translateX(0)    scaleX(-1); }
  100% { transform: translateX(0)    scaleX(1); }
}

.ep-launcher-mushroom {
  width: 100%; height: 100%;
  display: block;
  animation: ep-hop 0.6s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255,180,80,0.45));
  transform-origin: center bottom;
}

/* Hopping motion */
@keyframes ep-hop {
  0%, 100% { transform: translateY(0)    rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

/* ââ Aura + body animations targeting SVG internals ââ */
.ep-launcher-mushroom .ep-aura,
.ep-mascot .ep-aura {
  transform-origin: 100px 110px;
  animation: ep-aura-pulse 2.2s ease-in-out infinite;
}
@keyframes ep-aura-pulse {
  0%, 100% { opacity: 0.6;  transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* Whole body breathing */
.ep-launcher-mushroom .ep-body,
.ep-mascot .ep-body {
  transform-origin: center center;
  animation: ep-breathe 2.6s ease-in-out infinite;
}
@keyframes ep-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Cap spots â tiny wiggle */
.ep-launcher-mushroom .ep-spots ellipse,
.ep-mascot .ep-spots ellipse {
  transform-origin: center;
  animation: ep-spot-pulse 2.6s ease-in-out infinite;
}
.ep-launcher-mushroom .ep-spots ellipse:nth-child(2),
.ep-mascot .ep-spots ellipse:nth-child(2) { animation-delay: 0.4s; }
.ep-launcher-mushroom .ep-spots ellipse:nth-child(3),
.ep-mascot .ep-spots ellipse:nth-child(3) { animation-delay: 0.8s; }
.ep-launcher-mushroom .ep-spots ellipse:nth-child(4),
.ep-mascot .ep-spots ellipse:nth-child(4) { animation-delay: 1.2s; }
@keyframes ep-spot-pulse {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* Eye blink (scaleY on whole eye group) */
.ep-launcher-mushroom .ep-eye-l,
.ep-launcher-mushroom .ep-eye-r,
.ep-mascot .ep-eye-l,
.ep-mascot .ep-eye-r {
  transform-origin: center;
  animation: ep-blink 4s ease-in-out infinite;
}
@keyframes ep-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%          { transform: scaleY(0.1); }
  96%          { transform: scaleY(1); }
}

/* Pupil dart around for "alive" feel */
.ep-launcher-mushroom .ep-eye-l circle:nth-of-type(1),
.ep-launcher-mushroom .ep-eye-r circle:nth-of-type(1),
.ep-mascot .ep-eye-l circle:nth-of-type(1),
.ep-mascot .ep-eye-r circle:nth-of-type(1) {
  transform-origin: center;
  animation: ep-pupil-dart 6s ease-in-out infinite;
}
@keyframes ep-pupil-dart {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(1.5px, -0.5px); }
  40%      { transform: translate(-1.5px, 0.5px); }
  60%      { transform: translate(1px, 1px); }
  80%      { transform: translate(-1px, -1px); }
}

/* Face gentle bounce */
.ep-launcher-mushroom .ep-face,
.ep-mascot .ep-face {
  transform-origin: center;
  animation: ep-face-bounce 2.4s ease-in-out infinite;
}
@keyframes ep-face-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}

/* Arms waving */
.ep-launcher-mushroom .ep-arm-l,
.ep-mascot .ep-arm-l {
  transform-origin: 42px 145px;
  animation: ep-wave-l 1.8s ease-in-out infinite;
}
.ep-launcher-mushroom .ep-arm-r,
.ep-mascot .ep-arm-r {
  transform-origin: 158px 145px;
  animation: ep-wave-r 1.8s ease-in-out infinite 0.4s;
}
@keyframes ep-wave-l {
  0%, 100% { transform: rotate(20deg); }
  50%      { transform: rotate(-25deg); }
}
@keyframes ep-wave-r {
  0%, 100% { transform: rotate(-20deg); }
  50%      { transform: rotate(25deg); }
}

/* Legs walking */
.ep-launcher-mushroom .ep-leg-l,
.ep-mascot .ep-leg-l {
  transform-origin: center top;
  animation: ep-leg-walk-l 0.5s ease-in-out infinite;
}
.ep-launcher-mushroom .ep-leg-r,
.ep-mascot .ep-leg-r {
  transform-origin: center top;
  animation: ep-leg-walk-r 0.5s ease-in-out infinite;
}
@keyframes ep-leg-walk-l {
  0%, 100% { transform: translateY(0)    rotate(-5deg); }
  50%      { transform: translateY(-3px) rotate(5deg); }
}
@keyframes ep-leg-walk-r {
  0%, 100% { transform: translateY(-3px) rotate(5deg); }
  50%      { transform: translateY(0)    rotate(-5deg); }
}

/* Shadow scales with hop */
.ep-launcher-mushroom .ep-shadow,
.ep-mascot .ep-shadow {
  transform-origin: center;
  animation: ep-shadow-hop 0.6s ease-in-out infinite;
}
@keyframes ep-shadow-hop {
  0%, 100% { opacity: 0.5; transform: scaleX(1); }
  50%      { opacity: 0.3; transform: scaleX(0.6); }
}

/* ââ Sitting/Reading states ââ */
/* When sitting: pause the walk and tilt the mushroom down. */
.ep-launcher.ep-sitting {
  animation: none !important;
  transform: translateX(0) translateY(8px) rotate(-3deg) !important;
  transition: transform 0.6s ease-out;
}
.ep-launcher.ep-sitting .ep-launcher-mushroom {
  transform: scale(0.9) translateY(4px) !important;
  transition: transform 0.6s ease-out;
}
/* Show newspaper in SVG when sitting */
.ep-launcher-mushroom .ep-newspaper {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-newspaper {
  opacity: 1;
  animation: ep-paper-fade 0.5s ease-out 0.1s both;
}
@keyframes ep-paper-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Slow down body/eye/arm animations when sitting */
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-body,
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-arm-l,
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-arm-r,
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-leg-l,
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-leg-r,
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-eye-l,
.ep-launcher.ep-sitting .ep-launcher-mushroom .ep-eye-r {
  animation-duration: 5s !important;
}

/* Scared state - quick hop + run away */
.ep-launcher.ep-scared {
  animation: none !important;
  transform: translateX(-60px) translateY(0) rotate(0deg) !important;
  transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1);
}
.ep-launcher.ep-scared .ep-launcher-mushroom {
  animation: ep-scare-hop 0.6s ease-out !important;
}
@keyframes ep-scare-hop {
  0%   { transform: translateY(0)    scale(1)   rotate(0deg); }
  25%  { transform: translateY(-14px) scale(1.12) rotate(-6deg); }
  50%  { transform: translateY(0)    scale(0.92) rotate(4deg); }
  75%  { transform: translateY(-8px) scale(1.05) rotate(-3deg); }
  100% { transform: translateY(0)    scale(1)   rotate(0deg); }
}
.ep-launcher.ep-scared .ep-launcher-mushroom .ep-eye-l circle:first-of-type,
.ep-launcher.ep-scared .ep-launcher-mushroom .ep-eye-r circle:first-of-type {
  animation: ep-scared-pupils 0.6s ease-out !important;
}
@keyframes ep-scared-pupils {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(0, -4px) scale(1.5); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ââ Big wink (every ~60s) ââ */
/* Override position so we can truly center the launcher on screen.
   Then animate the inner mushroom. */
.ep-launcher.ep-big {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 320px !important;
  height: 380px !important;
  z-index: 99999;
  pointer-events: none;
  animation: ep-big-pulse 5s ease-in-out !important;
}
@keyframes ep-big-pulse {
  0%   { filter: drop-shadow(0 0 0px rgba(255,180,80,0)); }
  40%  { filter: drop-shadow(0 0 50px rgba(255,180,80,0.9)); }
  70%  { filter: drop-shadow(0 0 60px rgba(255,180,80,1)); }
  100% { filter: drop-shadow(0 0 0px rgba(255,180,80,0)); }
}
.ep-launcher.ep-big .ep-launcher-mushroom {
  animation: ep-big-grow 5s cubic-bezier(.34, 1.3, .64, 1) !important;
  transform-origin: center center;
  width: 100% !important;
  height: 100% !important;
}
@keyframes ep-big-grow {
  0%   { transform: scale(1)    translateY(0)    rotate(0deg); }
  10%  { transform: scale(1.2)  translateY(-10px) rotate(-2deg); }
  25%  { transform: scale(2.2)  translateY(-30px) rotate(3deg); }
  35%  { transform: scale(3.5)  translateY(-50px) rotate(-3deg); }
  55%  { transform: scale(3.8)  translateY(-50px) rotate(2deg); }
  70%  { transform: scale(3.5)  translateY(-50px) rotate(-2deg); }
  85%  { transform: scale(2.0)  translateY(-20px) rotate(3deg); }
  100% { transform: scale(1)    translateY(0)    rotate(0deg); }
}
/* Wink in the middle of the animation */
@keyframes ep-big-wink {
  0%, 38%  { transform: scaleY(1); }
  43%      { transform: scaleY(0.1); }
  48%      { transform: scaleY(1); }
  55%      { transform: scaleY(0.1); }  /* double-wink! */
  60%      { transform: scaleY(1); }
  100%     { transform: scaleY(1); }
}
.ep-launcher.ep-big .ep-launcher-mushroom .ep-eye-l,
.ep-launcher.ep-big .ep-launcher-mushroom .ep-eye-r {
  animation: ep-big-wink 5s ease-in-out !important;
  transform-origin: center;
}
.ep-launcher.ep-big .ep-launcher-mushroom .ep-aura {
  animation: ep-big-aura 5s ease-in-out !important;
}
@keyframes ep-big-aura {
  0%   { opacity: 0.6; transform: scale(1); }
  35%  { opacity: 1;   transform: scale(2); }
  70%  { opacity: 1;   transform: scale(2); }
  100% { opacity: 0.6; transform: scale(1); }
}
/* Big smile during the moment */
.ep-launcher.ep-big .ep-launcher-mushroom .ep-mouth {
  stroke-width: 4 !important;
}

/* ââ Sleeping state (no active events) ââ */
.ep-launcher.ep-sleeping {
  animation: none !important;
  transform: translateY(0) rotate(-3deg) !important;
  cursor: pointer;
}
.ep-launcher.ep-sleeping .ep-launcher-mushroom {
  animation: ep-sleep-breathe 3.5s ease-in-out infinite !important;
}
@keyframes ep-sleep-breathe {
  0%, 100% { transform: scale(1)    translateY(0)    rotate(0deg); }
  50%      { transform: scale(1.03) translateY(-2px) rotate(-1deg); }
}
.ep-launcher.ep-sleeping .ep-launcher-mushroom .ep-eye-l,
.ep-launcher.ep-sleeping .ep-launcher-mushroom .ep-eye-r {
  transform-origin: center;
  animation: ep-sleep-eye 4s ease-in-out infinite !important;
}
@keyframes ep-sleep-eye {
  0%, 100%  { transform: scaleY(0.1); }   /* closed */
  3%        { transform: scaleY(0.1); }
  5%        { transform: scaleY(1); }     /* brief open */
  7%        { transform: scaleY(0.1); }   /* close again */
}
.ep-launcher.ep-sleeping .ep-launcher-mushroom .ep-arm-l,
.ep-launcher.ep-sleeping .ep-launcher-mushroom .ep-arm-r {
  animation: none !important;
  transform: rotate(70deg) !important;
}
.ep-launcher.ep-sleeping .ep-launcher-mushroom .ep-leg-l,
.ep-launcher.ep-sleeping .ep-launcher-mushroom .ep-leg-r {
  animation: none !important;
  transform: rotate(0deg) !important;
}

/* Awake state (after 3 clicks on sleeping mushroom) */
.ep-launcher.ep-sleeping-awake .ep-launcher-mushroom .ep-eye-l,
.ep-launcher.ep-sleeping-awake .ep-launcher-mushroom .ep-eye-r {
  transform: scaleY(1) !important;
  animation: ep-awake-look 3s ease-in-out !important;
}
@keyframes ep-awake-look {
  0%, 100% { transform: scaleY(1); }
  30%      { transform: scaleY(1) translateY(-1px); }
  60%      { transform: scaleY(0.6); }
  80%      { transform: scaleY(1); }
}
.ep-launcher.ep-sleeping-awake .ep-launcher-mushroom {
  animation: ep-awake-bounce 0.4s ease-out !important;
}
@keyframes ep-awake-bounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1) translateY(-6px); }
  100% { transform: scale(1); }
}

/* Zzz floating */
.ep-launcher.ep-sleeping::after {
  content: 'z z z';
  position: absolute;
  top: -10px; right: -8px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--ice, #8ecfea);
  opacity: 0.8;
  letter-spacing: 2px;
  animation: ep-zzz 3s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(142, 207, 234, 0.6);
}
@keyframes ep-zzz {
  0%   { opacity: 0; transform: translate(0, 0)    scale(0.6); }
  30%  { opacity: 0.9; transform: translate(8px, -8px) scale(1); }
  100% { opacity: 0; transform: translate(20px, -24px) scale(1.4); }
}

/* ââ Speech bubble (after 3 clicks on sleeping mushroom) ââ */
.ep-speech {
  position: absolute;
  bottom: calc(100% + 18px);
  right: 0;
  background: #fff;
  color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 2px rgba(201,162,39,0.5);
  opacity: 0;
  transform: translateY(8px) scale(0.8);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 10;
}
.ep-speech::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #fff;
}
.ep-speech.ep-speech-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: ep-speech-pop .4s cubic-bezier(.34, 1.5, .64, 1);
}
@keyframes ep-speech-pop {
  0%   { transform: translateY(8px) scale(0.7); }
  60%  { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(0)    scale(1); }
}

/* ââ Badge ââ */
.ep-launcher-badge {
  position: absolute; top: -6px; right: -2px;
  background: linear-gradient(135deg, #ffd700 0%, #c9a227 100%);
  color: #1a1a1a;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  animation: ep-badge-pulse 1.4s ease-in-out infinite;
  z-index: 10;
}
@keyframes ep-badge-pulse {
  0%, 100% { transform: scale(1)    rotate(-5deg); }
  50%      { transform: scale(1.2) rotate(5deg); }
}

/* ââ Modal mascot ââ */
.ep-mascot-wrap {
  position: relative;
  width: 220px; height: 250px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.ep-mascot {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 25px rgba(255,180,80,0.5)) drop-shadow(0 8px 12px rgba(0,0,0,0.4));
  animation: ep-mascot-breathe 3.2s ease-in-out infinite;
}
@keyframes ep-mascot-breathe {
  0%, 100% { transform: scale(1)    translateY(0)    rotate(-1deg); }
  50%      { transform: scale(1.04) translateY(-6px) rotate(1deg); }
}

/* ââ Overlay / Modal ââ */
.ep-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 22, 33, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: ep-fade-in .25s ease-out both;
}
.ep-overlay[hidden] { display: none; }
@keyframes ep-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ep-modal {
  position: relative;
  background: linear-gradient(160deg, #0d2233 0%, #0a1a26 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 18px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px 26px 24px;
  color: var(--text, #c8e8f5);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,162,39,0.1);
  animation: ep-pop .55s cubic-bezier(.2,.9,.3,1.4) both;
}
@keyframes ep-pop {
  0%   { transform: translateY(40px) scale(.7)  rotate(-6deg); opacity: 0; }
  60%  { transform: translateY(-6px) scale(1.05) rotate(2deg); opacity: 1; }
  100% { transform: translateY(0)    scale(1)    rotate(0deg); opacity: 1; }
}
.ep-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; color: var(--muted, #a8c4d2);
  font-size: 26px; cursor: pointer; line-height: 1;
  transition: transform .2s, color .2s;
  z-index: 5;
}
.ep-close:hover { color: #fff; transform: rotate(90deg); }
.ep-title {
  font-family: 'Cinzel', serif;
  font-size: 22px; letter-spacing: 1.5px;
  color: var(--ice, #8ecfea);
  text-align: center;
  margin: 6px 0 4px;
}
.ep-subtitle {
  text-align: center;
  font-size: 13px; color: var(--muted, #a8c4d2);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ââ Player search wall ââ */
.ep-search-wall { margin-top: 10px; }
.ep-label {
  display: block;
  font-size: 12px; color: var(--muted, #a8c4d2);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}
.ep-search-row { display: flex; gap: 8px; }
.ep-input {
  flex: 1;
  background: rgba(142, 207, 234, 0.08);
  border: 1px solid rgba(142, 207, 234, 0.25);
  color: var(--ice2, #c8e8f5);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.ep-input:focus { border-color: var(--accent, #4fb8d8); background: rgba(142,207,234,0.12); }
.ep-search-results {
  margin-top: 10px;
  max-height: 220px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.ep-result {
  display: flex; align-items: center; gap: 12px;
  background: rgba(142, 207, 234, 0.05);
  border: 1px solid rgba(142, 207, 234, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: inherit; font-family: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.ep-result:hover { border-color: var(--accent, #4fb8d8); background: rgba(142,207,234,0.1); transform: translateX(2px); }
.ep-result-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ep-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-avatar-placeholder {
  color: var(--muted, #a8c4d2);
  font-weight: 700;
}
.ep-result-meta { display: flex; flex-direction: column; }
.ep-result-name { font-weight: 600; color: var(--ice, #8ecfea); font-size: 14px; }
.ep-result-sub { font-size: 11px; color: var(--muted, #a8c4d2); }
.ep-empty {
  padding: 10px; text-align: center;
  color: var(--muted, #a8c4d2); font-size: 13px;
}
.ep-hint {
  margin-top: 10px;
  font-size: 12px; color: var(--muted, #a8c4d2);
  text-align: center;
}

.ep-selected { margin-top: 10px; }
.ep-player-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
}
.ep-player-card img {
  width: 48px; height: 48px; border-radius: 8px;
  object-fit: cover;
  background: rgba(0,0,0,0.3);
}
.ep-player-meta { flex: 1; min-width: 0; }
.ep-player-name { font-weight: 700; color: var(--ice, #8ecfea); font-size: 15px; }
.ep-player-alliance { font-size: 12px; color: var(--gold, #c9a227); }
.ep-player-id { font-size: 11px; color: var(--muted, #a8c4d2); }

.ep-vote-area { margin-top: 16px; }
.ep-phase-note {
  text-align: center; color: var(--muted, #a8c4d2);
  font-size: 13px; margin-bottom: 10px;
}
.ep-proposals, .ep-dates {
  display: flex; flex-direction: column; gap: 10px;
}
.ep-prop, .ep-date {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(142, 207, 234, 0.05);
  border: 1px solid rgba(142, 207, 234, 0.2);
  border-radius: 12px;
  padding: 12px;
  transition: border-color .15s, transform .15s;
  flex-wrap: wrap;
}
.ep-prop:hover, .ep-date:hover { transform: translateY(-1px); }
.ep-prop.ep-reached {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
  animation: ep-reached-glow 2s ease-in-out infinite;
}
@keyframes ep-reached-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(201,162,39,0); }
  50%      { box-shadow: 0 0 20px rgba(201,162,39,0.4); }
}
.ep-prop.ep-voted, .ep-date.ep-voted {
  border-color: var(--success-text, #7ec44a);
  background: rgba(126, 196, 74, 0.06);
}
.ep-prop-img {
  flex-shrink: 0;
  align-self: flex-start;
}
.ep-prop-img img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
}
.ep-prop-video-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  border: 1px solid var(--border2);
}
.ep-prop-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.ep-prop-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s;
  padding: 0 0 0 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.ep-prop-play-btn:hover { transform: scale(1.08); background: rgba(0,0,0,0.8); }
.ep-prop-body, .ep-date-body {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}
.ep-prop-title, .ep-date-label {
  font-family: 'Cinzel', serif;
  color: var(--ice, #8ecfea);
  font-size: 15px;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  flex-basis: 100%;
}
.ep-prop-summary {
  font-size: 12px;
  color: var(--muted, #a8c4d2);
  margin-bottom: 6px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-wrap: break-word;
  line-height: 1.5;
  max-height: none;
  flex-basis: 100%;
  order: 5;
}
.ep-prop-bar {
  height: 6px; border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 4px;
}
.ep-prop-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #c9a227, #ff6b6b);
  transition: width .8s cubic-bezier(.2,.8,.3,1);
  border-radius: 99px;
}
.ep-prop-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted, #a8c4d2);
  flex-basis: 100%;
}
.ep-prop-tag {
  background: var(--gold, #c9a227);
  color: #1a1a1a;
  padding: 2px 8px; border-radius: 99px;
  font-weight: 700; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase;
  animation: ep-tag-bounce 1.6s ease-in-out infinite;
}
@keyframes ep-tag-bounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.ep-date-when { font-size: 13px; color: var(--text, #c8e8f5); margin-bottom: 4px; }

.ep-btn {
  background: linear-gradient(135deg, #4fb8d8 0%, #2a8aaa 100%);
  color: #0a1a26;
  border: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  align-self: center;
  white-space: nowrap;
}
.ep-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(79,184,216,0.3); }
.ep-btn:active { transform: translateY(0); }
.ep-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.ep-btn-ghost {
  background: transparent;
  color: var(--muted, #a8c4d2);
  border: 1px solid rgba(142, 207, 234, 0.3);
}
.ep-btn-ghost:hover { color: var(--ice, #8ecfea); border-color: var(--ice, #8ecfea); }
.ep-btn-vote {
  min-width: 110px;
  align-self: flex-start;
  margin-left: auto;
  flex-shrink: 0;
}

.ep-message {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  min-height: 18px;
}
.ep-msg-error  { color: var(--danger-text, #f08080); }
.ep-msg-success { color: var(--success-text, #7ec44a); }
.ep-msg-info   { color: var(--muted, #a8c4d2); }

body.ep-body-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .ep-launcher, .ep-launcher-mushroom, .ep-mascot, .ep-mascot-wrap,
  .ep-launcher-mushroom .ep-aura, .ep-launcher-mushroom .ep-body,
  .ep-launcher-mushroom .ep-spots ellipse,
  .ep-launcher-mushroom .ep-eye-l, .ep-launcher-mushroom .ep-eye-r,
  .ep-launcher-mushroom .ep-arm-l, .ep-launcher-mushroom .ep-arm-r,
  .ep-launcher-mushroom .ep-leg-l, .ep-launcher-mushroom .ep-leg-r,
  .ep-launcher-mushroom .ep-shadow, .ep-launcher-mushroom .ep-face,
  .ep-mascot .ep-aura, .ep-mascot .ep-body, .ep-mascot .ep-spots ellipse,
  .ep-mascot .ep-eye-l, .ep-mascot .ep-eye-r,
  .ep-mascot .ep-arm-l, .ep-mascot .ep-arm-r,
  .ep-mascot .ep-leg-l, .ep-mascot .ep-leg-r,
  .ep-mascot .ep-shadow, .ep-mascot .ep-face,
  .ep-launcher-badge, .ep-prop.ep-reached, .ep-prop-tag {
    animation: none !important;
  }
  .ep-modal, .ep-overlay { animation: none !important; }
}

@media (max-width: 600px) {
  .ep-launcher { right: 16px; bottom: 16px; width: 78px; height: 96px; }
  .ep-modal { padding: 22px 18px 20px; border-radius: 14px; }
  .ep-title { font-size: 19px; }
  .ep-mascot-wrap { width: 170px; height: 200px; }
}
