/* === Reset & Base Styles === */
html, body {
  margin: 0;
      min-height: 100vh;
  height: 100%;
  background: #000;
  
}
.filter-actions,
#btnSelectAll,
#btnSelectNone,
#filterStats, 
.leaderboard-loading,
.leaderboard-stats,
.leaderboard-toggle {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  contain: paint;
}

/* Filter toggle */
.filter-toggle {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  contain: paint;
}

/* =====================================
   UNLOCK AFTER MAP READY
   ===================================== */

body.app-ready .filter-actions,
body.app-ready #btnSelectAll,
body.app-ready #btnSelectNone,
body.app-ready #filterStats,
body.app-ready .filter-toggle,
body.app-ready .leaderboard-loading,
body.app-ready .leaderboard-stats,
body.app-ready .leaderboard-toggle{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* === Map Container === */
#map {
  width: 100%;
  min-height: 100vh; /* kunci anti CLS */
  background-color: #000; /* fallback solid */
  background-image: url("assets/ui/map-placeholder.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden; /* cegah spill */
}

/* === Dev Tools Panel === */
.dev-tools-panel {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-tools-button {
  padding: 10px 15px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.dev-tools-button:hover {
  background: #45a049;
}

.dev-tools-button:active {
  background: #3d8b40;
}

/* === Popup Styles === */
.leaflet-popup-content {
  margin: 0;
}

/* Container utama Leaflet popup */
.leaflet-popup {
  box-shadow: none;
}

/* ============================================================
   LEAFLET POPUP BASE STYLES
============================================================ */
.leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.95) 0%, rgba(101, 67, 33, 0.98) 100%);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(218, 165, 32, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.2);
  padding: 0;
  border: 2px solid rgba(218, 165, 32, 0.8);
  animation: popupGlow 2s ease-in-out infinite alternate;
}

@keyframes popupGlow {
  0% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(218, 165, 32, 0.3),
      inset 0 1px 0 rgba(255, 215, 0, 0.2);
  }
  100% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(218, 165, 32, 0.5),
      inset 0 1px 0 rgba(255, 215, 0, 0.3);
  }
}

.leaflet-popup-tip {
  background: rgba(101, 67, 33, 0.98);
  border-top: 2px solid rgba(218, 165, 32, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   MARKER POPUP CONTAINER
============================================================ */
.marker-popup {
  position: relative;
  min-width: 280px;
  max-width: 350px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.95) 0%, rgba(101, 67, 33, 0.98) 50%, rgba(139, 90, 43, 0.95) 100%);
  color: #f5f5f5;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

/* ============================================================
   CATEGORY SECTION
============================================================ */
.marker-popup-category {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.3) 0%, rgba(184, 134, 11, 0.3) 100%);
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.marker-popup-category-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: none !important;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.marker-popup-category-name {
  color: #f3d59b;
  font-weight: bold;
  font-size: 18px;
  line-height: 32px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   IMAGE SECTION
============================================================ */
.marker-popup-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  padding: 20px 20px 5px 20px;
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.marker-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.marker-popup-image img:hover {
  transform: scale(1.2);
}
/* ===============================
   IMAGE TOGGLE SECTION (GLOBAL)
   =============================== */
.marker-popup-image-toggle-section {
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;
  gap: 10px;

  align-items: center;
  justify-content: center;
}
.marker-popup-image-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 24px;
  width: 100%;

  border: 2px solid rgba(218, 165, 32, 0.8);
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.3),
    rgba(184, 134, 11, 0.3)
  );

  color: #FFD700;
  font-weight: bold;
  font-size: 14px;

  cursor: pointer;
  transition: all 0.3s ease;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-popup-image-toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.5),
    rgba(184, 134, 11, 0.5)
  );
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
  transform: translateY(-2px);
  border-color: #FFD700;
}

.marker-popup-image-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-popup-image-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.marker-popup-image-toggle .toggle-text {
  white-space: nowrap;
}

.marker-popup-image-toggle .marker-image-toggle-icon {
  display: flex;
  align-items: center;
}
/* ============================================================
   HEADER SECTION
============================================================ */
/* === NAME HEADER (Normal) === */
.marker-popup-header {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 16px;
  padding-right: 20px;
  border-bottom: 2px solid rgba(218, 165, 32, 0.6);
  text-align: center;
}

.marker-popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #FFD700;
  line-height: 1.4;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(218, 165, 32, 0.5);
}

/* === NAME HEADER (Editing Mode) === */
.marker-popup-header.editing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}
/* HANYA sembunyikan edit NAME di header */
.marker-popup-header > .marker-popup-section-edit-btn {
  display: none !important;
}
/* ============================================================
   COORDINATES SECTION
============================================================ */
.marker-popup-coords {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.marker-popup-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0px;
}

.marker-popup-coords-title {
  color: #DAA520;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Coordinate Display Grid */
.marker-popup-coords-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.marker-popup-coord-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 10px;
  background: rgba(218, 165, 32, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.marker-popup-coord-item:hover {
  background: rgba(218, 165, 32, 0.25);
  border-color: rgba(218, 165, 32, 0.6);
  box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
  transform: translateY(-2px);
}

.marker-popup-coord-label {
  color: #FFD700;
  font-weight: bold;
}

.marker-popup-coord-value {
  color: #f5f5f5;
  font-family: 'Courier New', monospace;
  flex: 1;
}

.marker-popup-copy-icon {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.marker-popup-coord-item:hover .marker-popup-copy-icon {
  opacity: 1;
}

/* Coordinate Empty State */
.marker-popup-coords-fallback {
  padding: 12px;
  text-align: center;
  color: #DAA520;
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  margin-top: 6px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Coordinate Edit Fields */
.marker-popup-coords-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.marker-popup-coord-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marker-popup-coord-edit-label {
  color: #FFD700;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.marker-popup-coord-edit-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(218, 165, 32, 0.6);
  background: rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.marker-popup-coord-edit-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(218, 165, 32, 0.7);
  background: rgba(0, 0, 0, 0.4);
}

/* ============================================================
   DESCRIPTION + LOCATION TYPE SECTION
============================================================ */

.marker-popup-desc {
  display: flex;              /* ⬅️ WAJIB */
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 15px;
  gap: 2px;                   /* boleh 1–3 */
}

/* ============================================================
   LOCATION TYPE HEADER (MATCH DESC HEADER)
============================================================ */

.marker-popup-loc-type-header {
  display: flex;
  align-items: center;
  justify-content: center;   /* ⬅️ CENTER UTAMA */
  gap: 8px;
  padding: 0 15px;
  background: rgba(0, 0, 0, 0.15);
  position: relative;       /* ⬅️ untuk tombol edit */
}

/* Kurangi padding button edit di dalamnya */
.marker-popup-loc-type-header .marker-popup-section-edit-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Kurangi spacing di inline wrapper */
.marker-popup-loc-type-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
/* ICON — samakan feel SVG */
.marker-popup-loc-type-icon {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  transform: translateY(1px);
}

/* TEXT */
.marker-popup-loc-type-text {
  font-size: 12px;   /* SAMA seperti desc title */
  font-weight: bold;
  color: #DAA520;
  text-shadow: 1px 1px 2px rgba(0,0,0,.7);
  padding-left: 0;   /* sudah sejajar */
}
.marker-popup-desc-title {
  color: #DAA520;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ---------- DESCRIPTION TEXT ---------- */

.marker-popup-desc-text {
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.6;
  max-height: 100px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar */
.marker-popup-desc-text::-webkit-scrollbar {
  width: 6px;
}

.marker-popup-desc-text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.marker-popup-desc-text::-webkit-scrollbar-thumb {
  background: rgba(218, 165, 32, 0.5);
  border-radius: 3px;
}

.marker-popup-desc-text::-webkit-scrollbar-thumb:hover {
  background: rgba(218, 165, 32, 0.7);
}

/* ---------- EDIT MODE ---------- */

.marker-popup-desc-edit {
  width: 100%;
  min-height: 80px;
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid rgba(218, 165, 32, 0.6);
  background: rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  transition: all 0.25s ease;
  resize: vertical;
  box-sizing: border-box;
}

.marker-popup-desc-edit:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(218, 165, 32, 0.7);
  background: rgba(0, 0, 0, 0.4);
}

/* ---------- EMPTY STATE ---------- */

.marker-popup-empty {
  color: #999;
  font-style: italic;
  font-size: 12px;
}

/* ============================================================
   EDIT BUTTONS (SECTION HEADER)
============================================================ */
.marker-popup-section-edit-btn {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.marker-popup-section-edit-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.marker-popup-section-edit-btn:hover img {
  transform: scale(1.15) rotate(10deg);
  filter: brightness(1.3);
}

/* Tooltip */
.marker-popup-section-edit-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.marker-popup-section-edit-btn::before {
  content: '';
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 6px 5px 0;
  border-color: transparent rgba(0, 0, 0, 0.85) transparent transparent;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.marker-popup-section-edit-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.marker-popup-section-edit-btn:hover::before {
  opacity: 1;
}

/* ============================================================
   FOOTER SECTION (VISITED + YS_ID + LINK)
============================================================ */
.marker-popup-footer {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
  flex-wrap: nowrap;               /* <- wajib */
}

/* Visited Checkbox */
.marker-popup-visited {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.marker-popup-visited:hover {
  background: rgba(218, 165, 32, 0.1);
}

.marker-popup-visited input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #DAA520;
}

.marker-popup-visited-label {
  color: #e0e0e0;
  font-size: 15px;
  font-weight: 500;
  user-select: none;
}

/* YS_ID Display */
.marker-popup-ysid {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(184, 134, 11, 0.15));
  border: 1px solid rgba(218, 165, 32, 0.5);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.marker-popup-ysid:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.25), rgba(184, 134, 11, 0.25));
  border-color: rgba(218, 165, 32, 0.7);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.4);
  transform: translateY(-1px);
}

.marker-popup-ysid-label {
  color: #FFD700;
  font-size: 15px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
}
.footer-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;      /* <- mencegah wrap */
}

/* ============================
   LINK INFO (Golden Style)
============================ */
.marker-popup-link-info {
  display: flex;
  align-items: center;
}

/* Tombol Link */
.marker-popup-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;

  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.15),
    rgba(184, 134, 11, 0.15)
  );
  border: 1px solid rgba(218, 165, 32, 0.5);

  border-radius: 20px;
  color: #FFD700;

  font-size: 10px;
  font-weight: bold;
  font-family: 'Lato', sans-serif;

  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.3px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover effect selaras dengan YS_ID */
.marker-popup-link-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.25),
    rgba(184, 134, 11, 0.25)
  );
  border-color: rgba(218, 165, 32, 0.7);
  color: #FFF8DC;

  box-shadow: 0 0 12px rgba(218, 165, 32, 0.4);
  transform: translateY(-1px);
}
/* ============================================================
   COMMENTS SECTION (VERTIKAL)
============================================================ */
.marker-popup-comments-section {
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;   /* ⬅️ PENTING */
  gap: 10px;                /* jarak atas–bawah */

  align-items: center;
  justify-content: center;
}

/* Comments Button */
.marker-popup-comments-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  width: 100%;
  max-width: 200px;
  border: 2px solid rgba(218, 165, 32, 0.8);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(184, 134, 11, 0.3));
  color: #FFD700;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-popup-comments-btn:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.5), rgba(184, 134, 11, 0.5));
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
  transform: translateY(-2px);
  border-color: #FFD700;
}

.marker-popup-comments-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   REPORT SECTION
============================================================ */
.marker-popup-report-section {
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 8px 0;
}

.marker-popup-report-btn {
  background: transparent;
  border: 1px solid rgba(214, 169, 111, 0.6);
  color: #ffd88a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.marker-popup-report-btn:hover {
  background: rgba(255, 215, 135, 0.25);
  border-color: #ffcc82;
  transform: translateY(-1px);
}

/* Floating Report Popup */
.report-popup {
  position: absolute;
  bottom: 45px;
  right: 12px;
  background: linear-gradient(135deg, rgba(40, 30, 15, 0.96), rgba(25, 18, 8, 0.96));
  border: 2px solid rgba(218, 165, 32, 0.85);
  padding: 14px;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 230px;
  z-index: 99999;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(218, 165, 32, 0.35);
  animation: reportPopupFadeIn 0.25s ease;
}

.report-popup.show {
  display: flex;
}

@keyframes reportPopupFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Report Link Item */
.report-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(218, 165, 32, 0.6);
  border-radius: 8px;
  text-decoration: none;
  color: #f3d59b;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.25s ease;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(184, 134, 11, 0.12));
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.report-link:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.25), rgba(184, 134, 11, 0.25));
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.4);
  transform: translateX(4px);
}

/* ============================================================
   SECTION ACTIONS (SAVE/CANCEL BUTTONS)
============================================================ */
.marker-popup-section-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}

.marker-popup-edit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 4px 2px;
  border: 1px solid rgba(218, 165, 32, 0.8);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(184, 134, 11, 0.3));
  color: #FFD700;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.marker-popup-edit-btn:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.5), rgba(184, 134, 11, 0.5));
  box-shadow: 0 0 10px rgba(218, 165, 32, 0.6);
  transform: translateY(-1px);
}

.marker-popup-edit-btn.editing {
  background: linear-gradient(135deg, #fff8e7, #f9e6a9, #f6d97a);
  color: #8B5A2B;
  border-color: rgba(218, 165, 32, 1);
}

.marker-popup-edit-btn.cancel {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(176, 42, 55, 0.3));
  border-color: rgba(220, 53, 69, 0.7);
  color: #ff6b6b;
}

.marker-popup-edit-btn.cancel:hover {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.5), rgba(176, 42, 55, 0.5));
}

.marker-popup-edit-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.marker-popup-section-actions .marker-popup-edit-btn {
  flex: 1;
  justify-content: center;
  margin: 0;
}

/* ============================================================
   UTILITIES
============================================================ */
.marker-popup input,
.marker-popup textarea,
.marker-popup button {
  cursor: pointer;
}

.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(76, 175, 80, 0.4);
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  border: 2px solid rgba(129, 199, 132, 0.8);
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 400px) {
  .marker-popup {
    min-width: 260px;
  }
  
  .marker-popup-section-edit-btn {
    width: 20px;
    height: 20px;
  }
  
  .marker-popup-section-edit-btn::after {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .marker-popup-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .marker-popup-ysid {
    align-self: flex-end;
  }

.marker-popup-link-btn {
  padding: 4px 30px;
  border-radius: 10px;
  gap: 4px;

  font-size: 6px;        /* ⬅️ SAMA DENGAN COMMENT */
  line-height: 1;
  letter-spacing: 0.2px;
}
  .marker-popup-link-btn svg {
    width: 7px;
    height: 7px;
  }

  .marker-popup-comments-btn {
    max-width: 100%;
    padding: 8px 20px;
  }
}

@media (max-width: 350px) {
  .marker-popup-footer {
    padding: 8px 12px;
  }
  
  .marker-popup-comments-section {
    padding: 10px 12px;
  }
  
  .marker-popup-comments-btn {
    font-size: 13px;
  }
}
/* ========================================
   MARKER GLOW EFFECT
   Efek highlight saat marker dipilih dari Book Panel
   ======================================== */

/**
 * Knowledge Part Series Highlight Effects
 */

/* Series highlight - persistent glow (GOLDEN/KUNING) */
.series-highlight {
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1))
          drop-shadow(0 0 25px rgba(255, 215, 0, 0.8))
          drop-shadow(0 0 35px rgba(255, 215, 0, 0.6))
          drop-shadow(0 0 45px rgba(255, 165, 0, 0.4)) !important;
  animation: series-pulse 2.5s ease-in-out infinite !important;
  z-index: 999 !important;
  transform: scale(1.2) !important;
  transition: all 0.3s ease !important;
}

/* Pulse animation for series markers */
@keyframes series-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1))
            drop-shadow(0 0 25px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 35px rgba(255, 215, 0, 0.6));
    transform: scale(1.2);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1))
            drop-shadow(0 0 35px rgba(255, 215, 0, 0.9))
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.7))
            drop-shadow(0 0 65px rgba(255, 165, 0, 0.5));
    transform: scale(1.25);
  }
}

/* Temporary marker navigation glow (CYAN/BIRU) */
.marker-glow-effect {
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 1))
          drop-shadow(0 0 30px rgba(0, 255, 255, 0.9))
          drop-shadow(0 0 45px rgba(0, 255, 255, 0.7))
          drop-shadow(0 0 60px rgba(0, 200, 255, 0.5)) !important;
  animation: marker-glow 1s ease-in-out 3 !important;
  z-index: 1000 !important;
  transform: scale(1.3) !important;
  transition: all 0.3s ease !important;
}

@keyframes marker-glow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(0, 255, 255, 1))
            drop-shadow(0 0 30px rgba(0, 255, 255, 0.9));
    transform: scale(1.3);
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 1))
            drop-shadow(0 0 45px rgba(0, 255, 255, 1))
            drop-shadow(0 0 65px rgba(0, 255, 255, 0.8));
    transform: scale(1.35);
  }
}

/* Optional: Add border ring effect */
.series-highlight::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  animation: ring-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}
/* Mobile: sedikit lebih kecil */
@media (max-width: 768px) {
  .marker-glow-effect {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #FFD700) 
            drop-shadow(0 0 12px #FFA500);
  }
  
  .marker-glow-effect::before {
    width: 50px;
    height: 50px;
  }
}


/* ============================================================
   KNOWLEDGE PART NAVIGATION
   Styling untuk navigasi antar Part pada marker Knowledge
============================================================ */

.knowledge-part-navigation {
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(218, 165, 32, 0.3);
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.part-nav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #DAA520;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.part-nav-header svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.part-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.part-btn {
  padding: 6px 14px;
  border: 1px solid rgba(218, 165, 32, 0.6);
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.15),
    rgba(184, 134, 11, 0.15)
  );
  color: #FFD700;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.part-btn:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.3),
    rgba(184, 134, 11, 0.3)
  );
  border-color: rgba(218, 165, 32, 0.9);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.5);
  transform: translateY(-2px);
}

.part-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.part-btn.current {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.4),
    rgba(218, 165, 32, 0.4)
  );
  border-color: #FFD700;
  color: #FFF8DC;
  cursor: default;
  box-shadow: 
    0 0 15px rgba(218, 165, 32, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.2);
  animation: currentPartPulse 2s ease-in-out infinite;
}

@keyframes currentPartPulse {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(218, 165, 32, 0.6),
      inset 0 1px 3px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(218, 165, 32, 0.8),
      inset 0 1px 3px rgba(255, 255, 255, 0.3);
  }
}

.part-btn:disabled {
  opacity: 1;
  pointer-events: none;
}

/* ========================================
   MOBILE COMPACT POPUP (≤480px)
   FINAL & STABLE VERSION
   ======================================== */
@media (max-width: 480px) {

  /* ===============================
     LEAFLET POPUP WRAPPER (ANTI JEBOL)
     =============================== */
  .leaflet-popup-content-wrapper {
    max-width: 92vw;
    width: auto;
  }

  .leaflet-popup-content {
    max-width: 92vw;
    width: auto;
    margin: 0;
    overflow-x: hidden;
  }

  /* ===============================
     MAIN POPUP CONTAINER
     =============================== */
  .marker-popup {
    max-width: 100%;
    width: auto;
    min-width: unset;
  }

  /* ===============================
     CATEGORY SECTION
     =============================== */
  .marker-popup-category {
    padding: 6px 10px;
  }

  .marker-popup-category-name {
    font-size: 13px;
    line-height: 1.25;
  }


  /* ===============================
     IMAGE SECTION (COMPACT)
     =============================== */
  .marker-popup-image {
    height: 105px;
    padding: 8px 10px 4px;
  }

  /* ===============================
     HEADER / NAME
     =============================== */
  .marker-popup-header {
    padding: 2px 10px;
  }

  .marker-popup-header h3 {
    font-size: 8px;
    line-height: 1.3;
  }

  /* ===============================
     COORDINATES SECTION
     =============================== */
  .marker-popup-coords {
    padding: 6px 10px;
  }

  .marker-popup-coords-title {
    font-size: 10.5px;
  }

  .marker-popup-coord-item {
    font-size: 11.5px;
    padding: 4px 6px;
    gap: 4px;
  }

  /* ===============================
     DESCRIPTION SECTION
     =============================== */
.marker-popup-desc {
  padding: 5px 10px;
  gap: 0;
}

  .marker-popup-desc-title {
    font-size: 7.5px;
  }
  /* HEADER WRAPPER */
  .marker-popup-loc-type-header {
    padding: 0 10px;
  }
.marker-popup-loc-type-header .marker-popup-section-edit-btn {
  width: 18px;   /* ⬅️ UBAH dari 50px */
  height: 18px;  /* ⬅️ UBAH dari 50px */
  padding: 0;  /* ⬅️ UBAH dari 4px */
}
  /* INLINE ROW */
  .marker-popup-loc-type-inline {
    gap: 1px;
  }

  /* ICON */
  .marker-popup-loc-type-icon {
    width: 7px;
    height: 7px;
    transform: translateY(1px);
  }

  /* TEXT (MATCH DESC TITLE MOBILE) */
  .marker-popup-loc-type-text {
    font-size: 7px;
    font-weight: bold;
  }

  /* EDIT BUTTON */
  .marker-popup-section-edit-btn {
    width: 40px;
    height: 40px;
  }
  
.marker-popup-desc-title svg {
  width: 7px ;
  height: 7px ;
  stroke-width: 1.2;
  flex-shrink: 0;
}
  .marker-popup-desc-text {
    font-size: 6.5px;
    line-height: 1.4;
    max-height: 70px;
    overflow-y: auto;
  }
.marker-popup-desc-icon {
  width: 7px;
  height: 7px;
  stroke-width: 1.2;
  flex-shrink: 0;
}
  .marker-popup-desc-edit {
    font-size: 6.5px;
    min-height: 65px;
  }
.marker-popup-content span {
  font-size: 6px;
  line-height: 1.1;
}
.marker-popup-desc-text {
  font-size: 6.5px;
  line-height: 1.4;
  max-height: 70px;
  overflow-y: auto;

  /* === PENTING: CEGAH MELEBAR === */
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
  /* Scrollbar tipis */
  .marker-popup-desc-text::-webkit-scrollbar {
    width: 6px;
  }

  /* ===============================
     KNOWLEDGE / PART NAVIGATION
     =============================== */
  .knowledge-part-navigation {
    padding: 6px 10px;
  }

  .part-nav-header {
    font-size: 6.5px;
    margin-bottom: 6px;
  }

  .part-nav-buttons {
    gap: 5px;
  }

  .part-btn {
    padding: 3px 8px;
    font-size: 3.5px;
    border-radius: 5px;
  }
 /* ===============================
     YS ID (MOBILE COMPACT)
     =============================== */
  .marker-image-btn.upload-btn,
  .marker-image-btn.fullview-btn {
    font-size: 5px;
    padding: 6px 10px;
    min-width: unset;
    width: auto;
    gap: 4px;
  }
  
  .marker-popup-ysid {
    padding: 2px 6px;
    border-radius: 6px;
    max-width: 100%;
  }

  .marker-popup-ysid-label {
    font-size: 3.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  /* Biar LINK + YSID rapi berdampingan */
  .footer-right-group {
    gap: 6px;
    align-items: center;
  }

}
  /* ===============================
     EDIT SECTION BUTTON
     =============================== */
  .marker-popup-section-edit-btn {
    width: 28px;
    height: 28px;
  }

  .marker-popup-section-edit-btn img {
    transform: none;
  }

  /* Disable tooltip on mobile */
  .marker-popup-section-edit-btn::before,
  .marker-popup-section-edit-btn::after {
    display: none;
  }

/* ===============================
   FOOTER SECTION (FORCE ROW)
   =============================== */
.marker-popup-footer {
  display: flex !important;
  flex-direction: row !important;   /* ⬅️ INI KUNCINYA */
  align-items: center;
  justify-content: space-between;

  padding: 6px 10px;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ===============================
   VISITED (LEFT)
   =============================== */
.marker-popup-visited {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px;

  flex: 0 1 auto;
  white-space: nowrap;
}

.marker-popup-visited input[type="checkbox"] {
  width: 10px;
  height: 10px;
  margin: 0;
  transform: scale(0.6);
  transform-origin: left center;
  flex-shrink: 0;
}

.marker-popup-visited-label {
  display: inline-flex ;
  flex-direction: row ;
  align-items: center;
  gap: 3px;

  font-size: 6px;
  line-height: 1;
  white-space: nowrap;
}

.marker-popup-visited-label svg {
  width: 6px;
  height: 6px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.marker-popup-visited-label span {
  font-size: 6px;
}

/* ===============================
   RIGHT GROUP YSID
   =============================== */
.footer-right-group {
  display: flex ;
  flex-direction: row ;   /* ⬅️ PAKSA KE SAMPING */
  align-items: center;
  gap: 6px;

  flex: 0 0 auto;
  white-space: nowrap;
}

.marker-popup-ysid {
  padding: 3px 6px;
}

.marker-popup-ysid-label {
  font-size: 6px;
}


/* ===============================
   SMALL LABEL
   =============================== */
.marker-popup-full-label {
  font-size: 4px;
}
/* ===============================
   COMMENTS + LINK (VERTIKAL)
   =============================== */
.marker-popup-comments-section {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;   /* ⬅️ KUNCI UTAMA */
  gap: 6px;                 /* jarak atas–bawah */
  align-items: center;      /* tengah horizontal */
}

  .marker-popup-comments-btn {
    min-width: 120px;
    justify-content: center;
    padding: 8px 12px;
  }
 .marker-popup-comments-btn svg {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
  }
  .marker-popup-comments-btn span {
    font-size: 6px;
  }
  
  /* SECTION */
  .marker-popup-image-toggle-section {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.15);
  }

  /* BUTTON */
  .marker-popup-image-toggle {
    padding: 6px 10px;
    min-width: 110px;

    border: 1px solid rgba(218, 165, 32, 0.8);
    font-size: 6px;
  }

  .marker-popup-image-toggle svg {
    width: 8px;
    height: 8px;
  }

  .marker-popup-image-toggle .toggle-text {
    font-size: 6px;
  }
  
  /* ===============================
     REPORT SECTION
     =============================== */
  .marker-popup-report-section {
    padding: 6px 10px;
  }

  .marker-popup-report-btn {
    font-size: 4px;
    padding: 4px 10px;
  }
  .marker-popup-report-btn svg {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
  }
  /* ===============================
     SAVE / CANCEL ACTIONS
     =============================== */
  .marker-popup-section-actions {
    gap: 6px;
    margin-top: 6px;
  }

  .marker-popup-edit-btn {
    font-size: 6.5px;
    padding: 6px 10px;
  }

}


/* Responsive Design */
@media (max-width: 400px) {
  .knowledge-part-navigation {
    padding: 10px 12px;
  }

  .part-nav-buttons {
    gap: 6px;
  }

  .part-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
}

@media (max-width: 350px) {
  .part-btn {
    padding: 4px 10px;
    font-size: 10px;
  }
}

/* === Preload Overlay (dengan background image) === */
#preloadOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  visibility: hidden;
  opacity: 0;
  contain: paint;
}

@media (min-width: 769px) {
  #preloadOverlay {
    background-image: url('https://cdn1.epicgames.com/spt-assets/a55e4c8b015d445195aab2f028deace6/where-winds-meet-1n85i.jpg');
  }
}

@media (max-width: 768px) {
  #preloadOverlay {
    background-image: url('https://cdn1.epicgames.com/spt-assets/a55e4c8b015d445195aab2f028deace6/where-winds-meet-1n85i.jpg');
  }
}

/* === Preload Container - DESKTOP (TRANSPARENT) === */
#preloadContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  background: transparent;
  padding: 50px 60px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  min-width: 450px;
  perspective: 1000px;
}

/* === Emotion Icon - DESKTOP (Background Transparent + Bounce) === */
#preloadEmotionIcon {
  width: 120px;
  height: 120px;
  object-fit: contain; /* ✅ untuk <img> tag */
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  transform-style: preserve-3d;
  animation: iconBounce 1s ease-in-out infinite;
}

/* === Animasi Loncat-Loncat Icon === */
@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-5px);
  }
}

/* === Preload Message Text - DESKTOP === */
#preloadMessage {
  font-size: 22px;
  line-height: 1.6;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

/* === Loading Bar Container === */
#preloadBarContainer {
  position: relative;
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* === Loading Bar Fill (Gradient Vanilla) === */
#preloadBarFill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #ffe6a8, #ffd88a);
  border-radius: 15px;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 20px rgba(255, 230, 168, 0.6);
}

/* === Loading Bar Percent Text === */
#preloadBarPercent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* === Animasi FLIP 3D (Flip selesai dulu, BARU ganti gambar) === */
@keyframes flip3DFast {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  50% {
    transform: rotateY(180deg);
    opacity: 0.6;
  }
  100% {
    transform: rotateY(360deg);
    opacity: 1;
  }
}

/* Class untuk trigger flip animation */
.flip-animation {
  animation: flip3DFast 0.6s ease-in-out;
}

/* === Animasi Fade Out === */
@keyframes preloadFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* === Animasi Fade In === */
@keyframes preloadFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ========================================
   RESPONSIVE - TABLET (≤768px)
   ======================================== */
@media only screen and (max-width: 768px) {
  #preloadContainer {
    min-width: 350px;
    padding: 40px 45px;
    gap: 25px;
  }

  #preloadEmotionIcon {
    width: 100px;
    height: 100px;
  }

  #preloadMessage {
    font-size: 19px;
    min-height: 50px;
  }

  #preloadBarContainer {
    height: 26px;
  }

  #preloadBarPercent {
    font-size: 14px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE (≤480px)
   ======================================== */
@media only screen and (max-width: 480px) {
  #preloadContainer {
    min-width: 280px;
    padding: 30px 35px;
    gap: 20px;
    border-radius: 16px;
  }

  #preloadEmotionIcon {
    width: 80px;
    height: 80px;
  }

  #preloadMessage {
    font-size: 16px;
    min-height: 45px;
  }

  #preloadBarContainer {
    height: 24px;
  }

  #preloadBarPercent {
    font-size: 13px;
  }
}

/* ========================================
   RESPONSIVE - EXTRA SMALL (≤360px)
   ======================================== */
@media only screen and (max-width: 360px) {
  #preloadContainer {
    min-width: 260px;
    padding: 25px 30px;
    gap: 18px;
  }

  #preloadEmotionIcon {
    width: 70px;
    height: 70px;
  }

  #preloadMessage {
    font-size: 15px;
    min-height: 40px;
  }

  #preloadBarContainer {
    height: 22px;
  }

  #preloadBarPercent {
    font-size: 12px;
  }
}
#seo-content {
  content-visibility: hidden;
  contain-intrinsic-size: 1px 1px;
}