/* ═══════════════════════════════════════════════════════════════
   OllieBoard — Walker System + Modals
═══════════════════════════════════════════════════════════════ */

/* ── Cell glow when walker steps ─────────────────────────────── */
@keyframes cellGlowFade {
  0%   { opacity: 0.9; transform: scale(1.05); }
  60%  { opacity: 0.6; }
  100% { opacity: 0;   transform: scale(0.95); }
}
.walker-cell-glow {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}
.walker-step-glow {
  background: rgba(201,168,76,0.3) !important;
  box-shadow: 0 0 12px rgba(201,168,76,0.6) inset !important;
  transition: background 0.3s ease;
}

/* ── Board walkers ───────────────────────────────────────────── */
.board-walker {
  position: absolute;
  z-index: 25;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  pointer-events: none;
  transition: left 1.8s ease-in-out, top 1.8s ease-in-out;
}
.board-walker img {
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9));
}
.walker-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.48rem; font-weight: 700;
  letter-spacing: 0.05em;
  color: #E8D9A0;
  background: rgba(8,6,4,0.8);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
}

/* ── Map walker (Ollie Board) ────────────────────────────────── */
#ollie-map-walker { pointer-events: all !important; }
#ollie-map-walker img {
  width: 40px; height: 40px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.6));
  animation: mapWalkerFloat 3s ease-in-out infinite;
}
@keyframes mapWalkerFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}
.map-walker-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #C9A84C;
  background: rgba(8,6,4,0.82);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px; padding: 2px 6px;
  white-space: nowrap;
}

/* ── Name picker ──────────────────────────────────────────────── */
#teamNamePicker {
  display: flex; flex-direction: column; gap: 3px;
}
.name-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: default;
  transition: background 0.15s ease;
}
.name-pill.on-shift  { background: rgba(201,168,76,0.08); }
.name-pill.off-shift { opacity: 0.4; }
.name-pill:hover     { background: rgba(201,168,76,0.14); }
.active-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.7);
  flex-shrink: 0;
}
.pill-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  color: #E8D9A0; flex: 1;
}
.pill-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem; color: #5A4E30;
  white-space: nowrap;
}

/* ── Walker tooltip ──────────────────────────────────────────── */
.walker-tooltip {
  position: fixed; z-index: 9999;
  background: rgba(13,13,21,0.97);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  min-width: 190px;
}
.walker-tooltip img {
  width: 48px; height: 48px;
  image-rendering: pixelated;
  border-radius: 6px; flex-shrink: 0;
}
.tooltip-info { display: flex; flex-direction: column; gap: 3px; }
.tooltip-name  { font-family:'Inter',sans-serif; font-size:0.75rem; font-weight:700; color:#E8D9A0; }
.tooltip-role  { font-family:'Inter',sans-serif; font-size:0.62rem; color:#7A6E50; }
.tooltip-schedule { font-family:'Inter',sans-serif; font-size:0.68rem; font-weight:600; color:#C9A84C; }

/* ── OA Bonus Modal ───────────────────────────────────────────── */
#oaBonusModal {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
#oaBonusModal.oabm-visible { opacity: 1; }
.oabm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.oabm-card {
  position: relative; z-index: 1;
  background: #13121a;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 18px;
  padding: 28px 28px 24px;
  width: min(360px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.85);
}
.oabm-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none;
  color: #5A4E30; font-size: 0.8rem;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.oabm-close:hover { color: #C9A84C; }
.oabm-header { display: flex; align-items: center; gap: 12px; }
.oabm-icon   { font-size: 1.8rem; line-height: 1; }
.oabm-title  { font-family:'Inter',sans-serif; font-size:1rem; font-weight:800; color:#E8D9A0; }
.oabm-subtitle { font-family:'Inter',sans-serif; font-size:0.65rem; color:#5A4E30; margin-top:2px; }
.oabm-pool {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem; font-weight: 900;
  color: #C9A84C; letter-spacing: -0.02em; text-align: center;
}
.oabm-pool-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; color: #5A4E30;
  text-align: center; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: -10px;
}
.oabm-breakdown {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.oabm-row {
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: 0.72rem; color: #7A6E50;
}
.oabm-row span:last-child { color: #C9A84C; font-weight: 600; }
.oabm-row-highlight span  { color: #E8D9A0 !important; font-weight: 700 !important; font-size: 0.78rem !important; }
.oabm-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; color: #4A4030;
  line-height: 1.5; text-align: center;
}

/* ── Employer Rating Modal ────────────────────────────────────── */
#employerRatingModal {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
#employerRatingModal.erm-visible { opacity: 1; }
.erm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); }
.erm-card {
  position: relative; z-index: 1;
  background: #13121a;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 18px; padding: 28px 28px 24px;
  width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.85);
}
.erm-close { position:absolute; top:14px; right:14px; background:transparent; border:none; color:#5A4E30; font-size:0.8rem; cursor:pointer; padding:4px 6px; }
.erm-close:hover { color:#C9A84C; }
.erm-title    { font-family:'Inter',sans-serif; font-size:1rem; font-weight:800; color:#E8D9A0; }
.erm-subtitle { font-family:'Inter',sans-serif; font-size:0.65rem; color:#C9A84C; margin-top:2px; }
.erm-gate {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px; padding: 12px 14px;
}
.erm-gate-icon { font-size: 1.4rem; flex-shrink: 0; }
.erm-gate-text { font-family:'Inter',sans-serif; font-size:0.72rem; color:#9A8E72; line-height:1.55; }
.erm-gate-text strong { color: #C9A84C; }
.erm-examples-label { font-family:'Inter',sans-serif; font-size:0.62rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#5A4E30; }
.erm-examples { display: flex; flex-direction: column; gap: 8px; }
.erm-review   { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px 12px; display:flex; flex-direction:column; gap:4px; }
.erm-stars    { color: #C9A84C; font-size: 0.75rem; letter-spacing: 0.05em; }
.erm-review-text { font-family:'Inter',sans-serif; font-size:0.68rem; color:#7A6E50; line-height:1.5; font-style:italic; }

/* ── Web-only toast ───────────────────────────────────────────── */
#ollie-web-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9500;
  background: rgba(13,13,21,0.96);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px; padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; white-space: nowrap;
}
#ollie-web-toast.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon { font-size: 0.9rem; }
.toast-msg  { font-family:'Inter',sans-serif; font-size:0.75rem; color:#9A8E72; }

/* ── Audio player hide when board open ───────────────────────── */
body.board-modal-open #ollie-audio-player {
  opacity: 0 !important; pointer-events: none !important;
  transition: opacity 0.2s ease;
}