/* Onboarding -- see onboard.js. */

/* toast: power.js's .pw-note, with the juice drop */
.ob-note {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-note img { height: 1.3em; width: auto; }
.ob-note b { color: #b8f28a; font-weight: inherit; }

/* bouncing marker over the next task's spot (room view) */
.ob-marker {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ob-marker-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #1a1626;
  color: #1a1626;
  font-family: "Londrina Solid", system-ui, sans-serif;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: ob-bob 1.4s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.ob-marker-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 3px solid #1a1626;
  border-bottom: 3px solid #1a1626;
  transform: translateX(-50%) rotate(45deg) scaleY(0.75);
}
.ob-marker-tag img { height: 1.25em; width: auto; }
.ob-marker-tag b { font-weight: inherit; }
.ob-marker-tag i { font-style: normal; color: #3c8f1f; }
@keyframes ob-bob {
  0%, 100% { transform: translate(-50%, -18px); }
  50% { transform: translate(-50%, -30px); }
}
@media (prefers-reduced-motion: reduce) {
  .ob-marker-tag { animation: none; transform: translate(-50%, -22px); }
}

/* preview card for things that unlock once Carrot is on */
.ob-card {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 8, 18, 0.55);
}
.ob-card.is-on { display: flex; animation: ob-fade 0.25s ease-out; }
.ob-card-in {
  width: min(440px, 100%);
  padding: 26px 28px 24px;
  border-radius: 22px;
  background: #84fffe;
  border: 4px solid #1a1626;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  color: #0c3b3f;
  font-family: "Londrina Solid", system-ui, sans-serif;
  text-align: center;
  animation: ob-pop 0.3s ease-out;
}
.ob-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.ob-text {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
}
.ob-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 59, 63, 0.1);
  font-size: clamp(16px, 1.9vw, 19px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: left;
}
.ob-lock img { height: 1.6em; width: auto; flex: 0 0 auto; }
.ob-ok {
  font: inherit;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 34px;
  border: 0;
  border-radius: 14px;
  background: #b8f28a;
  color: #0c3b3f;
  cursor: pointer;
}
.ob-ok:hover, .ob-ok:focus-visible { background: #fff; outline: none; }
@keyframes ob-fade { from { opacity: 0; } }
@keyframes ob-pop { from { transform: scale(0.92); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ob-card.is-on, .ob-card-in { animation: none; }
}

/* mission card, room view top left (onboard.js) */
.ob-mission {
  position: fixed;
  left: 16px;
  top: 64px;
  z-index: 22;
  width: min(270px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 13, 25, 0.86);
  border: 2px solid rgba(132, 255, 254, 0.5);
  color: #fff;
  font-family: "Londrina Solid", system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ob-mission:empty { display: none; }
.ob-mission.is-on { opacity: 1; transform: none; }
.ob-m-head { display: flex; justify-content: space-between; align-items: center; }
.ob-m-num { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #84fffe; }
.ob-m-cells { display: flex; gap: 4px; }
.ob-m-cells i { width: 10px; height: 14px; border-radius: 2px; border: 2px solid #84fffe; }
.ob-m-cells i.is-full { background: #62ba34; border-color: #62ba34; }
.ob-m-cells i.is-now { background: #f5b72b; border-color: #f5b72b; }
.ob-m-title { display: block; margin-top: 4px; font-size: 21px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.ob-m-task { display: block; margin-top: 2px; font-size: 15px; line-height: 1.2; opacity: 0.85; }
.ob-m-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ob-m-list li { font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.ob-m-list li.is-done { background: #62ba34; color: #0c3b3f; }
.ob-mission { display: none !important; }

/* first visit to a spot: the reward box -- the juice tube fills while the
   total counts up (onboard.js rewardCard). Green panel like the console's
   Knowledge Juice screen. */
.ob-reward .ob-card-in { width: min(460px, 100%); }
.ob-rw {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 2px 0 18px;
  padding: 14px 20px;
  border-radius: 18px;
  background: #8ee675;
}
.ob-rw-tube { position: relative; flex: 0 0 auto; height: 150px; aspect-ratio: 215 / 740; }
.ob-rw-tube img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ob-rw-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.ob-rw-plus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.ob-rw-plus img { height: 1.1em; width: auto; }
.ob-rw.is-filling .ob-rw-plus { opacity: 1; transform: none; }
.ob-rw-label { margin-top: 6px; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.ob-rw-total { font-size: 44px; line-height: 0.95; letter-spacing: 0.01em; }
.ob-rw-total b { font-weight: inherit; }
.ob-rw.is-done .ob-rw-total { animation: ob-rw-bump 0.35s ease-out; }
@keyframes ob-rw-bump { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .ob-rw-plus { transition: none; }
  .ob-rw.is-done .ob-rw-total { animation: none; }
}
.ob-rw-why { margin: -6px 0 14px; font-size: 18px; letter-spacing: 0.02em; }
.ob-rw-claim { display: inline-flex; align-items: center; gap: 8px; animation: ob-rw-nudge 1.6s ease-in-out 0.6s infinite; }
.ob-rw-claim img { height: 1.1em; width: auto; }
@keyframes ob-rw-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.06); } 90% { transform: scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .ob-rw-claim { animation: none; } }
