/* ============================================
 * MISSION SCENE
 * Re-extracted from old_style.css
 * Contains all #ojol-mission-root styles
 * ============================================ */

#ojol-mission-root {
  position: fixed;
  inset: 0;
  display: none; /* ditoggle dari MissionScene */
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 100;
}

#ojol-mission-root .mission-scene {
  width: 100%;
  height: calc(100vh - 0px);
  aspect-ratio: 9 / 16;
  background: url('../../backgrounds/mission-scene-bg.webp') no-repeat center top;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#ojol-mission-root .mission-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 0;
}

#ojol-mission-root .mission-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 20px 20px 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#ojol-mission-root .mission-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mission-ojol-greeting {
    background: radial-gradient(circle at 20% 0, #e9e9e6 0, #edddb6 45%, #e5cdac 100%);
    border-radius: 32px;
    padding: 2px 10px 2px 4px;
    box-shadow: 4px 7px 0 rgba(149, 88, 0, 0.95), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.mission-ojol-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
img.mission-avatar-img {
    max-height: 32px;
    padding: 4px 0;
}
.mission-nickname {
    color: #3f3d3d;
    font-size: 12px;
    font-weight: 600;
}
.mission-ojol-usr-coin {
    background: radial-gradient(circle at 20% 0, #e9e9e6 0, #edddb6 45%, #e5cdac 100%);
    border-radius: 32px;
    padding: 2px 6px 2px 10px;
    box-shadow: 4px 7px 0 rgba(149, 88, 0, 0.95), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.mission-user-coin-info {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mission-coin-count {
    color: #3f3d3d;
    font-size: 12px;
    font-weight: 600;
}
img.mission-coin-img {
    max-height: 32px;
}


#ojol-mission-root .mission-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

#ojol-mission-root .mission-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  background: #ffe9c9;
}

#ojol-mission-root .mission-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ojol-mission-root .mission-top-name {
  font-weight: 600;
  font-size: 14px;
}

#ojol-mission-root .mission-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: radial-gradient(circle at 20% 0, #e9e9e6 0, #edddb6 45%, #e5cdac 100%);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 4px 7px 0 rgba(149, 88, 0, 0.95), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#ojol-mission-root .mission-coin-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff5cc 0, #ffd86b 40%, #ffb72d 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(204, 141, 31, 0.9);
}

#ojol-mission-root .mission-card {
  /* background: #fffdf77a;
  border-radius: 28px;
  padding: 32px 16px 32px;
  box-shadow:
    5px 5px 0px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9); */
  margin-top: 110px;
}

#ojol-mission-root .mission-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

#ojol-mission-root .mission-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 22px;
  background: #ffe9c9;
  box-shadow:
    0 4px 0 rgba(222, 161, 84, 0.9),
    0 8px 12px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#ojol-mission-root .mission-avatar-wrap img {
  width: 90%;
  height: auto;
}

#ojol-mission-root .mission-profile-info {
  flex: 1;
}

#ojol-mission-root .mission-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

#ojol-mission-root .mission-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffedc7;
  font-size: 12px;
  box-shadow:
    0 2px 0 rgba(209, 153, 68, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

#ojol-mission-root .mission-points-label {
  font-size: 11px;
  opacity: 0.8;
}

#ojol-mission-root .mission-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

#ojol-mission-root .mission-stat-card {
  background: radial-gradient(circle at 20% 0, #e9e9e61c 0, #edddb621 45%, #e5cdac26 100%);
  border-radius: 16px;
  padding: 10px 10px 12px;
  box-shadow: 2px 4px 0 rgb(149 88 0 / 61%), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 76px;
  backdrop-filter: blur(5px);
}

#ojol-mission-root .mission-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: .5px;
}

#ojol-mission-root .mission-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #e8ddbe;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 2px 5px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -2px 2px rgba(255, 200, 100, 0.6);
}

#ojol-mission-root .mission-stat-sub {
  font-size: 11px;
  color: #e6d09a;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 2px 5px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -2px 2px rgba(255, 200, 100, 0.6);
}

#ojol-mission-root .mission-streak-card {
  background: radial-gradient(circle at 20% 0, #e9e9e61c 0, #edddb621 45%, #e5cdac26 100%);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: 2px 4px 0 rgb(149 88 0 / 61%), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

#ojol-mission-root .mission-streak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#ojol-mission-root .mission-streak-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: .5px;
}

#ojol-mission-root .mission-streak-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff2d3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#ojol-mission-root .mission-streak-days {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e6d09a;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 2px 5px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -2px 2px rgba(255, 200, 100, 0.6);
}

#ojol-mission-root .mission-streak-icons {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

#ojol-mission-root .streak-day {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #e0d9cf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: #f7f4ef;
}

#ojol-mission-root .streak-day.active {
  border-color: transparent;
  background: transparent;
  background-image: url('../../icon/claimed-daily-login-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#ojol-mission-root .streak-day.pending {
  border-color: transparent;
  background: transparent;
  background-image: url('../../icon/daily-login-coin.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#ojol-mission-root .streak-day.empty {
  background: #f2eee8;
  border-style: dashed;
  opacity: 0.7;
}

#ojol-mission-root .mission-daily-section {
  /* background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 10px 12px 12px;
  box-shadow:
    5px 5px 0px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9); */
  margin-top: 22px;
}

#ojol-mission-root .mission-daily-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

#ojol-mission-root .mission-daily-title {
  font-size: 13px;
  font-weight: 700;
  color: #dfdfdf;
  margin: 5px 0;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 1px 1px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -1px 1px rgba(255, 200, 100, 0.6);
  letter-spacing: .8px;
  text-transform: uppercase;
}

#ojol-mission-root .mission-daily-reset {
  font-size: 10px;
  font-weight: 400;
  color: #dfdfdf;
  margin: 5px 0;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 1px 1px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -1px 1px rgba(255, 200, 100, 0.6);
  letter-spacing: .8px;
  text-transform: uppercase;
}

#ojol-mission-root .mission-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#ojol-mission-root .mission-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: radial-gradient(circle at 20% 0, #e9e9e61c 0, #edddb621 45%, #e5cdac26 100%);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 2px 4px 0 rgb(149 88 0 / 61%), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

#ojol-mission-root .mission-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #ffe4c0;
  box-shadow:
    0 3px 0 rgba(206, 148, 82, 0.95),
    0 5px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

#ojol-mission-root .mission-item-icon img {
  width: 80%;
  height: auto;
}

#ojol-mission-root .mission-item-main {
  flex: 1;
}

#ojol-mission-root .mission-item-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  color: white;
  letter-spacing: 0.4px;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 2px 5px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -2px 2px rgba(255, 200, 100, 0.6);
}

#ojol-mission-root .mission-item-sub {
  font-size: 11px;
  color: #dfdfdf;
  margin-bottom: 4px;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 1px 1px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -1px 1px rgba(255, 200, 100, 0.6);
  letter-spacing: .8px;
  font-weight: 400;
}

#ojol-mission-root .mission-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

#ojol-mission-root .mission-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #f1e1ce;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#ojol-mission-root .mission-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5df2a2, #00c853);
  width: 0%;
}

#ojol-mission-root .mission-progress-text {
  font-size: 11px;
  min-width: 46px;
  text-align: right;
  color: #dfdfdf;
  text-shadow: 1px 1px 0 rgb(26 24 21), 0 1px 1px rgba(0, 0, 0, 0.45), 0 -1px 0 rgb(255 255 255 / 0%), 0 -1px 1px rgba(255, 200, 100, 0.6);
  font-weight: 600;
}

#ojol-mission-root .mission-item-status {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

#ojol-mission-root .status-available {
  background: #ffffff;
  color: #8b4b01;
  box-shadow:
    0 1px 0 rgba(191, 140, 71, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#ojol-mission-root .status-progress {
  background: #e3fff2;
  color: #006c3b;
  box-shadow:
    0 1px 0 rgba(71, 137, 103, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#ojol-mission-root .status-claim {
  background: linear-gradient(90deg, #ffe5b4, #ffbf5f);
  color: #5c3600;
  box-shadow:
    0 1px 0 rgba(142, 90, 19, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#ojol-mission-root .bottom-lounge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  padding: 16px 24px 20px;
  background: radial-gradient(circle at 20% 0, #e9e9e61c 0, #edddb621 45%, #e5cdac26 100%);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 4px 7px 0 rgba(149, 88, 0, 0.95), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(5px);
}

#ojol-mission-root .shop-container {
  background: radial-gradient(circle at 20% 0, #e9e6da 0, #e5c984 45%, #efbe7a 100%);
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  flex-direction: column;
  color: #000000;
  font-size: 12px;
  font-weight: 400;
  position: relative;
  cursor: pointer;
  box-shadow: 4px 7px 0 rgba(149, 88, 0, 0.95), 0 9px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#ojol-mission-root .btm-lounge-img {
  height: 32px;
  width: auto;
}

#ojol-mission-root .neo-btn {
  padding: 10px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 30% 0%, #facc15, #f97316);
  color: #111827;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 4px 7px 0px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(15, 23, 42, 0.9);
  text-transform: uppercase;
}