

#screen-howtoplay.rw-onboarding-tour {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: block;
  align-items: initial;
  background: transparent !important;
  pointer-events: none;
  isolation: isolate;
  color: #f5f8ff;
  font-family: Inter, system-ui, sans-serif;
}

#screen-howtoplay.rw-onboarding-tour.hidden { display: none !important; }

.rw-onboarding-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(45, 213, 255, .045), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(171, 81, 255, .04), transparent 25%);
}

.rw-onboarding-focus {
  position: fixed;
  z-index: 1;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid #54def8;
  border-radius: 12px;
  pointer-events: none;
  background: rgba(84, 222, 248, .025);
  box-shadow:
    0 0 0 4px rgba(84, 222, 248, .09),
    0 0 26px rgba(84, 222, 248, .58),
    inset 0 0 18px rgba(84, 222, 248, .07);
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease, opacity .16s ease;
}

.rw-onboarding-focus::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(245, 199, 87, .58);
  border-radius: 15px;
  animation: rw-onboarding-focus-breathe 1.8s ease-in-out infinite;
}

.rw-onboarding-focus.is-hidden { opacity: 0; }
.rw-onboarding-focus.is-pulsing { animation: rw-onboarding-focus-pulse .85s ease both; }

.rw-onboarding-focus-label {
  position: absolute;
  left: 8px;
  top: -27px;
  max-width: 180px;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgba(84, 222, 248, .58);
  border-radius: 7px;
  background: rgba(5, 16, 29, .96);
  color: #c4f7ff;
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rw-onboarding-card {
  position: fixed;
  z-index: 2;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(82, 217, 244, .42);
  border-radius: 21px;
  background:
    linear-gradient(128deg, rgba(8, 27, 43, .985), rgba(7, 13, 26, .988) 52%, rgba(24, 10, 36, .988)),
    #080d18;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(128, 72, 255, .13) inset,
    0 0 42px rgba(49, 199, 239, .13);
  animation: rw-onboarding-card-in .22s ease both;
}

.rw-onboarding-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .26;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.rw-onboarding-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(143, 180, 213, .15);
  background: rgba(4, 11, 22, .34);
}

.rw-onboarding-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .16em;
  white-space: nowrap;
}

.rw-onboarding-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 225, 252, .58);
  border-radius: 10px;
  color: #68e8ff;
  box-shadow: 0 0 18px rgba(49, 211, 255, .16) inset;
  font: 700 18px Georgia, serif;
}

.rw-onboarding-brand b { display: block; color: #f4f8ff; font-size: 11px; line-height: 1; }
.rw-onboarding-brand small { display: block; margin-top: 5px; overflow: hidden; color: #7891aa; font-size: 7px; letter-spacing: .18em; text-overflow: ellipsis; }

.rw-onboarding-header-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ca3ba;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rw-onboarding-header-status b { color: #f3c961; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }

.rw-onboarding-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(158, 187, 217, .26);
  border-radius: 10px;
  background: rgba(7, 14, 26, .66);
  color: #aebed0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: .16s ease;
}

.rw-onboarding-close:hover,
.rw-onboarding-close:focus-visible {
  border-color: #61e2fa;
  color: #fff;
  background: rgba(25, 91, 130, .34);
  transform: translateY(-1px);
}

.rw-onboarding-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 18px 20px 14px;
}

.rw-onboarding-binows {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rw-onboarding-binows-glow {
  position: absolute;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 211, 238, .23), rgba(92, 60, 201, .09) 42%, transparent 70%);
  filter: blur(3px);
}

.rw-onboarding-binows img {
  position: relative;
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 13px 13px rgba(0,0,0,.48)) drop-shadow(0 0 13px rgba(56, 219, 244, .2));
  animation: rw-onboarding-binows-in .28s ease both;
}

.rw-onboarding-binows strong {
  position: relative;
  margin-top: -3px;
  color: #f4cf6a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
}

.rw-onboarding-binows small {
  position: relative;
  margin-top: 3px;
  color: #6f93a9;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .13em;
}

.rw-onboarding-content { min-width: 0; text-align: left; }

.rw-onboarding-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #62e0f5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rw-onboarding-eyebrow > span:first-child { color: #efc65f; font-size: 11px; }

.rw-onboarding-content h1 {
  margin: 7px 0 8px;
  color: #f7fbff;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.rw-onboarding-content > p {
  margin: 0;
  color: #bdccda;
  font-size: 12px;
  line-height: 1.48;
}

.rw-onboarding-insight {
  position: relative;
  margin: 11px 0 0;
  padding: 9px 11px 9px 27px;
  border-left: 2px solid #efc55c;
  border-radius: 0 9px 9px 0;
  background: rgba(236, 189, 79, .065);
  color: #ead690;
  font-size: 10px;
  font-style: italic;
  font-weight: 750;
  line-height: 1.35;
}

.rw-onboarding-insight::before {
  content: '“';
  position: absolute;
  left: 8px;
  top: 3px;
  color: #f6d777;
  font: 900 24px Georgia, serif;
}

.rw-onboarding-target-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(79, 219, 247, .31);
  border-radius: 9px;
  background: rgba(38, 166, 199, .09);
  color: #a6f0ff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.rw-onboarding-target-hint > span { color: #f1c85f; font-size: 14px; }

.rw-onboarding-rail {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px 11px;
}

.rw-onboarding-rail-item {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 154, 185, .25);
  border-radius: 999px;
  background: rgba(10, 20, 34, .62);
  color: #70879e;
  cursor: pointer;
  font: 900 8px Inter, system-ui, sans-serif;
  transition: .18s ease;
}

.rw-onboarding-rail-item b { display: none; white-space: nowrap; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.rw-onboarding-rail-item:hover,
.rw-onboarding-rail-item:focus-visible { border-color: rgba(87, 222, 249, .6); color: #d9f8ff; }
.rw-onboarding-rail-item.is-active {
  width: auto;
  min-width: 25px;
  padding: 0 10px;
  border-color: rgba(240, 198, 91, .68);
  background: rgba(214, 165, 45, .14);
  color: #f3d47b;
  box-shadow: 0 0 14px rgba(236, 188, 66, .12);
}
.rw-onboarding-rail-item.is-active b { display: inline; }

.rw-onboarding-footer {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px 12px;
  border-top: 1px solid rgba(139, 173, 211, .13);
  background: rgba(4, 9, 19, .24);
}

.rw-onboarding-skip,
.rw-onboarding-back {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #7d90a5;
  cursor: pointer;
  font: 850 9px Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rw-onboarding-skip:hover,
.rw-onboarding-back:hover,
.rw-onboarding-skip:focus-visible,
.rw-onboarding-back:focus-visible { color: #e5f2ff; }
.rw-onboarding-back:disabled { cursor: default; opacity: .25; }

.rw-onboarding-footer-actions { display: flex; align-items: center; gap: 8px; }

.rw-onboarding-next {
  min-width: 136px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(242, 204, 104, .76);
  border-radius: 10px;
  background: linear-gradient(135deg, #f5d679, #b98022);
  color: #18120a;
  box-shadow: 0 9px 24px rgba(216, 163, 55, .18);
  cursor: pointer;
  font: 950 10px Inter, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: .17s ease;
}

.rw-onboarding-next b { font-size: 17px; line-height: 1; }
.rw-onboarding-next:hover,
.rw-onboarding-next:focus-visible { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 12px 30px rgba(216, 163, 55, .27); }

@media (min-width: 721px) {
  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-card {
    width: min(1120px, calc(100vw - 40px));
    max-height: 200px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-header {
    min-height: 40px;
    padding-inline: 13px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-brand-mark {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border-radius: 8px;
    font-size: 15px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-close {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 8px;
    font-size: 17px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-stage {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 8px 16px 7px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-binows img {
    width: 72px;
    height: 72px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-binows-glow {
    width: 82px;
    height: 82px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-binows strong {
    margin-top: -8px;
    font-size: 8px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-binows small {
    display: none;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-content {
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.05fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 18px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-eyebrow {
    grid-column: 1;
    grid-row: 1;
    font-size: 8px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-content h1 {
    grid-column: 1;
    grid-row: 2;
    margin: 3px 0 4px;
    font-size: clamp(20px, 1.6vw, 25px);
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-content > p {
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
    line-height: 1.35;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-insight {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding-block: 7px;
    font-size: 9px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-target-hint {
    grid-column: 2;
    grid-row: 3;
    margin-top: 5px;
    padding-block: 6px;
    font-size: 9px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-rail {
    display: none;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-footer {
    min-height: 40px;
    padding: 4px 12px 6px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-skip,
  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-back {
    min-height: 29px;
  }

  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-next {
    min-height: 32px;
  }

  #screen-howtoplay[data-step-id="difficulty"]:not(.hidden) ~ #rw-difficulty-modal > div {
    align-items: flex-start !important;
    padding-bottom: 215px !important;
  }
}

@media (min-width: 721px) and (max-height: 760px) {
  #screen-howtoplay[data-step-id="difficulty"] .rw-onboarding-card {
    max-height: 184px;
  }

  #screen-howtoplay[data-step-id="difficulty"]:not(.hidden) ~ #rw-difficulty-modal > div {
    padding-top: 10px !important;
    padding-bottom: 198px !important;
  }

  #screen-howtoplay[data-step-id="difficulty"]:not(.hidden) ~ #rw-difficulty-modal > div > div {
    gap: 12px !important;
    padding: 18px !important;
  }

  #screen-howtoplay[data-step-id="difficulty"]:not(.hidden) ~ #rw-difficulty-modal .rw-difficulty-card {
    gap: 7px !important;
    padding: 13px 11px !important;
  }

  #screen-howtoplay[data-step-id="difficulty"]:not(.hidden) ~ #rw-difficulty-modal .rw-difficulty-card img {
    width: 112px !important;
    height: 112px !important;
  }
}

.rw-onboarding-stage.is-changing .rw-onboarding-content { animation: rw-onboarding-copy-in .23s ease both; }
.rw-onboarding-stage.is-changing .rw-onboarding-binows img { animation: rw-onboarding-binows-in .28s ease both; }

@keyframes rw-onboarding-card-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rw-onboarding-copy-in { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rw-onboarding-binows-in { from { opacity: .25; transform: translateY(5px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rw-onboarding-focus-breathe { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes rw-onboarding-focus-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(84,222,248,.09), 0 0 26px rgba(84,222,248,.58); } 45% { box-shadow: 0 0 0 11px rgba(243,197,87,.18), 0 0 42px rgba(243,197,87,.82); } }

#screen-dashboard.dashboard-final .nav-item-help .nav-icon { color: #64e0f4; font-weight: 900; }
#screen-dashboard.dashboard-final .nav-item-help:hover { color: #dffaff; }

@media (max-width: 720px) {
  .rw-onboarding-card { width: auto; max-height: calc(100dvh - 24px); }
  .rw-onboarding-header { min-height: 55px; padding-inline: 12px; }
  .rw-onboarding-header-status span { display: none; }
  .rw-onboarding-stage { grid-template-columns: 102px minmax(0, 1fr); gap: 12px; padding: 15px 14px 12px; overflow-y: auto; }
  .rw-onboarding-binows img { width: 96px; height: 96px; }
  .rw-onboarding-binows-glow { width: 110px; height: 110px; }
  .rw-onboarding-content h1 { font-size: clamp(22px, 6.7vw, 29px); }
  .rw-onboarding-content > p { font-size: 11px; }
  .rw-onboarding-insight { font-size: 9px; }
  .rw-onboarding-rail { justify-content: flex-start; overflow-x: auto; padding-inline: 13px; scrollbar-width: none; }
  .rw-onboarding-rail::-webkit-scrollbar { display: none; }
}

@media (max-width: 460px) {
  .rw-onboarding-brand small { max-width: 145px; }
  .rw-onboarding-stage { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 13px 12px 10px; }
  .rw-onboarding-binows { align-self: start; }
  .rw-onboarding-binows img { width: 78px; height: 78px; }
  .rw-onboarding-binows-glow { width: 90px; height: 90px; }
  .rw-onboarding-binows strong { font-size: 8px; }
  .rw-onboarding-binows small { display: none; }
  .rw-onboarding-content h1 { margin: 5px 0 6px; font-size: clamp(20px, 6.6vw, 26px); }
  .rw-onboarding-content > p { font-size: 10px; line-height: 1.4; }
  .rw-onboarding-insight { margin-top: 8px; padding-block: 7px; font-size: 8.5px; }
  .rw-onboarding-target-hint { margin-top: 8px; padding-block: 7px; font-size: 9px; }
  .rw-onboarding-footer { align-items: stretch; flex-direction: column-reverse; gap: 4px; }
  .rw-onboarding-footer-actions { width: 100%; }
  .rw-onboarding-next { flex: 1; }
  .rw-onboarding-skip { min-height: 25px; }
  .rw-onboarding-focus-label { top: -25px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .rw-onboarding-card,
  .rw-onboarding-stage.is-changing .rw-onboarding-content,
  .rw-onboarding-stage.is-changing .rw-onboarding-binows img,
  .rw-onboarding-focus,
  .rw-onboarding-focus::after { animation: none !important; transition: none !important; }
}
