:root {
  --sentinel-z-tutorial: 3200;
}

.sentinel-tutorial-layer,
.sentinel-tutorial-offer,
.sentinel-tutorial-chooser,
.sentinel-smart-tip {
  font-family: inherit;
}

.sentinel-tutorial-layer {
  position: fixed;
  inset: 0;
  z-index: var(--sentinel-z-tutorial);
  pointer-events: none;
}

.sentinel-tutorial-layer.hidden,
.sentinel-tutorial-offer.hidden,
.sentinel-tutorial-chooser.hidden,
.sentinel-smart-tip.hidden {
  display: none !important;
}

.sentinel-tutorial-scrim {
  position: fixed;
  background: rgb(1 8 15 / 56%);
  pointer-events: none;
  transition: left 170ms ease, top 170ms ease, width 170ms ease, height 170ms ease;
}

.sentinel-tutorial-focus {
  position: fixed;
  border: 2px solid rgb(255 196 57 / 96%);
  border-radius: 11px;
  box-shadow:
    0 0 0 2px rgb(5 20 32 / 88%),
    0 0 20px rgb(245 176 31 / 28%),
    inset 0 0 18px rgb(41 186 219 / 10%);
  pointer-events: none;
  transition: left 170ms ease, top 170ms ease, width 170ms ease, height 170ms ease;
  animation: tutorial-focus-breathe 1500ms ease-in-out infinite;
}

.sentinel-tutorial-tooltip {
  position: fixed;
  width: min(340px, calc(100vw - 20px));
  padding: 14px;
  border: 1px solid rgb(62 173 206 / 55%);
  border-top-color: rgb(245 176 31 / 80%);
  border-radius: 9px;
  background: linear-gradient(155deg, rgb(8 24 38 / 98%), rgb(4 14 24 / 98%));
  box-shadow: 0 18px 46px rgb(0 0 0 / 48%);
  color: var(--sentinel-text, #edf5fb);
  pointer-events: auto;
  transition: left 170ms ease, top 170ms ease, opacity 170ms ease;
}

.sentinel-tutorial-meta,
.sentinel-tutorial-actions,
.sentinel-tutorial-offer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentinel-tutorial-meta {
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--sentinel-text-muted, #8da2b5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sentinel-tutorial-skip,
.sentinel-smart-tip-close {
  border: 0;
  background: transparent;
  color: var(--sentinel-text-muted, #9badbd);
  cursor: pointer;
}

.sentinel-tutorial-skip {
  padding: 3px 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sentinel-tutorial-skip:hover,
.sentinel-tutorial-skip:focus-visible,
.sentinel-smart-tip-close:hover,
.sentinel-smart-tip-close:focus-visible {
  color: var(--sentinel-amber, #f5b01f);
}

.sentinel-tutorial-tooltip h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.sentinel-tutorial-tooltip p {
  margin: 8px 0 13px;
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 13px;
  line-height: 1.5;
}

.sentinel-tutorial-actions {
  justify-content: flex-end;
}

.sentinel-tutorial-actions .btn {
  min-height: 32px;
  padding: 6px 12px;
}

.sentinel-tutorial-offer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: calc(var(--sentinel-z-tutorial) - 10);
  width: min(350px, calc(100vw - 24px));
  padding: 15px;
  border: 1px solid rgb(245 176 31 / 48%);
  border-radius: 10px;
  background: linear-gradient(150deg, rgb(8 25 39 / 98%), rgb(4 15 25 / 98%));
  box-shadow: 0 18px 42px rgb(0 0 0 / 42%);
  color: var(--sentinel-text, #edf5fb);
  animation: sentinel-onboarding-enter 170ms ease-out both;
}

.sentinel-tutorial-offer-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--sentinel-amber, #f5b01f);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sentinel-tutorial-offer strong {
  display: block;
  font-size: 15px;
}

.sentinel-tutorial-offer p {
  margin: 7px 0 12px;
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 12px;
  line-height: 1.45;
}

.sentinel-tutorial-offer-actions {
  justify-content: flex-end;
}

.sentinel-tutorial-offer-actions .btn {
  min-height: 32px;
  padding: 6px 11px;
}

.tutorial-page-help {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgb(67 158 191 / 42%);
  border-radius: 7px;
  background: rgb(8 25 38 / 76%);
  color: var(--sentinel-cyan, #55bed9);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 170ms ease, color 170ms ease, background 170ms ease;
}

.tutorial-page-help:hover,
.tutorial-page-help:focus-visible {
  border-color: rgb(245 176 31 / 72%);
  background: rgb(22 38 49 / 92%);
  color: var(--sentinel-amber, #f5b01f);
}

.sentinel-smart-tip {
  position: fixed;
  z-index: calc(var(--sentinel-z-tutorial) - 20);
  width: min(290px, calc(100vw - 20px));
  padding: 12px 32px 12px 12px;
  border: 1px solid rgb(73 176 207 / 48%);
  border-left: 3px solid var(--sentinel-cyan, #55bed9);
  border-radius: 8px;
  background: rgb(7 22 35 / 98%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 40%);
  color: var(--sentinel-text, #edf5fb);
  animation: sentinel-onboarding-enter 170ms ease-out both;
}

.sentinel-tutorial-chooser {
  position: fixed;
  inset: 0;
  z-index: calc(var(--sentinel-z-tutorial) + 40);
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(1 7 13 / 22%);
}

.sentinel-tutorial-chooser-card {
  width: min(560px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid rgb(72 173 205 / 56%);
  border-top-color: rgb(245 176 31 / 86%);
  border-radius: 16px;
  background: linear-gradient(150deg, rgb(8 24 38 / 98%), rgb(3 12 21 / 98%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 56%);
  color: var(--sentinel-text, #edf5fb);
}

.sentinel-tutorial-chooser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--sentinel-amber, #f5b01f);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sentinel-tutorial-chooser-card h3 {
  margin: 8px 0 4px;
  color: #fff;
}

.sentinel-tutorial-chooser-card p {
  margin: 0 0 14px;
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 13px;
}

.sentinel-tutorial-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sentinel-tutorial-choice {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 13px;
  border: 1px solid rgb(67 158 191 / 42%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
  color: var(--sentinel-text, #edf5fb);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sentinel-tutorial-choice:hover,
.sentinel-tutorial-choice:focus-visible {
  border-color: rgb(245 176 31 / 74%);
  background: rgb(245 176 31 / 8%);
  transform: translateY(-1px);
}

.sentinel-tutorial-choice strong {
  color: #fff;
  font-size: 14px;
}

.sentinel-tutorial-choice span {
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 12px;
  line-height: 1.35;
}

.sentinel-tutorial-choice.disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
}

.sentinel-smart-tip strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.sentinel-smart-tip p {
  margin: 5px 0 0;
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 12px;
  line-height: 1.42;
}

.sentinel-smart-tip-close {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 22px;
  height: 22px;
  font-size: 13px;
}

.settings-tutorial-card .cta-row {
  margin-top: 10px;
}

#settingsTutorialStatus {
  margin: 9px 0 0;
}

@keyframes sentinel-onboarding-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tutorial-focus-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgb(5 17 28 / 78%),
      0 0 14px rgb(245 176 31 / 24%),
      inset 0 0 0 1px rgb(245 176 31 / 18%);
  }
  50% {
    box-shadow:
      0 0 0 4px rgb(245 176 31 / 14%),
      0 0 28px rgb(245 176 31 / 38%),
      inset 0 0 0 1px rgb(85 190 217 / 18%);
  }
}

@media (max-width: 820px) {
  .sentinel-tutorial-offer {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .sentinel-tutorial-tooltip {
    width: min(330px, calc(100vw - 16px));
  }

  .sentinel-tutorial-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sentinel-tutorial-scrim,
  .sentinel-tutorial-focus,
  .sentinel-tutorial-tooltip,
  .tutorial-page-help {
    transition: none;
  }

  .sentinel-tutorial-offer,
  .sentinel-smart-tip,
  .sentinel-tutorial-focus {
    animation: none;
  }
}

.sentinel-tutorial2-layer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--sentinel-z-tutorial) + 80);
  pointer-events: none;
}

.sentinel-tutorial2-layer.hidden,
.sentinel-tutorial2-finale.hidden {
  display: none !important;
}

.sentinel-tutorial2-scrim {
  position: fixed;
  inset: 0;
  background: rgb(1 7 13 / 18%);
  backdrop-filter: none;
}

.sentinel-tutorial2-focus {
  position: fixed;
  border: 2px solid rgb(255 196 57 / 98%);
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgb(5 17 28 / 80%),
    0 0 22px rgb(245 176 31 / 34%),
    inset 0 0 0 1px rgb(245 176 31 / 22%);
  background: transparent;
  transition: left 170ms ease, top 170ms ease, width 170ms ease, height 170ms ease;
  animation: tutorial-focus-breathe 1500ms ease-in-out infinite;
}

.sentinel-tutorial2-guide-line {
  position: fixed;
  height: 1px;
  transform-origin: left center;
  border-top: 1px dashed rgb(85 190 217 / 48%);
  transition: left 170ms ease, top 170ms ease, width 170ms ease, transform 170ms ease;
}

.sentinel-tutorial2-card,
.sentinel-tutorial2-finale {
  position: fixed;
  width: min(390px, calc(100vw - 18px));
  border: 1px solid rgb(72 173 205 / 58%);
  border-top-color: rgb(245 176 31 / 88%);
  border-radius: 14px;
  background: linear-gradient(150deg, rgb(8 24 38 / 98%), rgb(3 12 21 / 98%));
  color: var(--sentinel-text, #edf5fb);
  box-shadow: 0 22px 56px rgb(0 0 0 / 52%);
  pointer-events: auto;
}

.sentinel-tutorial2-card {
  padding: 15px;
  transition: left 170ms ease, top 170ms ease;
}

.sentinel-tutorial2-meta,
.sentinel-tutorial2-actions,
.sentinel-tutorial2-final-actions,
.sentinel-tutorial2-feedback div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentinel-tutorial2-meta {
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--sentinel-text-muted, #91a7b8);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sentinel-tutorial2-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentinel-tutorial2-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--sentinel-amber, #f5b01f);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sentinel-tutorial2-card h3,
.sentinel-tutorial2-finale h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.sentinel-tutorial2-card p,
.sentinel-tutorial2-finale p {
  margin: 8px 0 13px;
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 13px;
  line-height: 1.45;
}

.sentinel-tutorial2-wait {
  padding: 9px 10px;
  border: 1px solid rgb(245 176 31 / 34%);
  border-radius: 9px;
  background: rgb(245 176 31 / 9%);
  color: #ffe3a0 !important;
  font-weight: 800;
}

.sentinel-tutorial2-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sentinel-tutorial2-actions .btn {
  min-height: 31px;
  padding: 6px 10px;
}

.sentinel-tutorial2-skip {
  border: 0;
  background: transparent;
  color: var(--sentinel-text-muted, #95a9b8);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sentinel-tutorial2-skip:hover,
.sentinel-tutorial2-skip:focus-visible {
  color: var(--sentinel-amber, #f5b01f);
}

.sentinel-tutorial2-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: translate(-3px, -2px);
  transition: left 360ms cubic-bezier(.2,.8,.2,1), top 360ms cubic-bezier(.2,.8,.2,1), opacity 120ms ease;
}

.sentinel-tutorial2-cursor.active {
  opacity: 1;
}

.sentinel-tutorial2-cursor::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 15px;
  height: 20px;
  clip-path: polygon(0 0, 0 100%, 34% 76%, 56% 100%, 78% 88%, 58% 65%, 100% 65%);
  background: #fff;
  border: 1px solid rgb(3 12 21 / 72%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 45%);
}

.sentinel-tutorial2-cursor span {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sentinel-amber, #f5b01f);
  opacity: 0;
}

.sentinel-tutorial2-cursor.clicking span {
  animation: tutorial2-click-ring 180ms ease-out both;
}

.sentinel-tutorial2-pulse {
  animation: tutorial2-pulse 620ms ease-out both;
}

.tutorial-demo-composer {
  margin-top: 12px;
  padding: 12px;
  border-color: rgb(245 176 31 / 44%);
}

.tutorial-demo-composer-head,
.tutorial-demo-composer-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tutorial-demo-composer-head span,
.tutorial-demo-composer-name span {
  color: var(--sentinel-text-muted, #93a8b8);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-demo-slot-row,
.tutorial-demo-focus-card .inline-character-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.tutorial-demo-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 54px;
  color: var(--sentinel-text-secondary, #b9c9d6);
  font-size: 10px;
}

.tutorial-demo-portrait {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--portrait-color, #55bed9), white 20%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgb(255 255 255 / 22%), transparent 28%),
    linear-gradient(145deg, var(--portrait-color, #55bed9), rgb(2 11 19));
  box-shadow: inset 0 -8px 12px rgb(0 0 0 / 24%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.tutorial-demo-discouraged {
  margin-top: 10px;
  border: 1px solid rgb(245 176 31 / 26%);
  border-radius: 10px;
  background: rgb(8 24 38 / 56%);
}

.tutorial-real-fallback-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgb(245 176 31 / 42%);
  border-radius: 10px;
  background: rgb(245 176 31 / 10%);
  color: var(--sentinel-text-secondary, #c8d7e2);
}

.tutorial-real-fallback-notice strong {
  color: var(--sentinel-amber, #f5b01f);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tutorial-real-fallback-notice span {
  font-size: 12px;
  line-height: 1.4;
}

.tutorial-demo-discouraged summary {
  padding: 10px 12px;
  cursor: pointer;
}

.tutorial-demo-focus-mode {
  position: fixed;
  inset: 5vh max(16px, 12vw);
  z-index: calc(var(--sentinel-z-tutorial) + 70);
  padding: 16px;
  border: 1px solid rgb(245 176 31 / 48%);
  border-radius: 18px;
  background: linear-gradient(150deg, rgb(6 21 34 / 98%), rgb(2 8 15 / 98%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 58%);
  color: var(--sentinel-text, #edf5fb);
  pointer-events: auto;
}

.tutorial-demo-focus-mode header,
.tutorial-demo-focus-card,
.tutorial-demo-focus-grid {
  display: grid;
  gap: 10px;
}

.tutorial-demo-focus-mode header {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.tutorial-demo-focus-mode header span {
  color: var(--sentinel-amber, #f5b01f);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorial-demo-focus-card,
.tutorial-demo-focus-grid section,
.sentinel-tutorial2-feedback {
  padding: 12px;
  border: 1px solid rgb(68 159 192 / 28%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
}

.tutorial-demo-focus-card strong {
  color: #fff;
  font-size: 22px;
}

.tutorial-demo-focus-card span,
.tutorial-demo-focus-grid span {
  color: var(--sentinel-text-muted, #91a6b7);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-demo-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-demo-focus-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--sentinel-text-secondary, #c2d1dc);
  font-size: 13px;
  line-height: 1.45;
}

.tutorial-demo-resolved {
  opacity: .68;
}

.tutorial-demo-resolved .war-live-queue-index {
  background: rgb(42 190 92 / 18%);
  color: #7df09f;
}

.sentinel-tutorial2-finale {
  left: 50%;
  top: 50%;
  padding: 20px;
  transform: translate(-50%, -50%);
}

.sentinel-tutorial2-feedback {
  margin: 14px 0;
}

.sentinel-tutorial2-feedback strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.sentinel-tutorial2-final-actions,
.sentinel-tutorial2-feedback div {
  justify-content: flex-end;
  flex-wrap: wrap;
}

@keyframes tutorial2-pulse {
  0% { box-shadow: 0 0 0 0 rgb(245 176 31 / 0%); }
  35% { box-shadow: 0 0 0 5px rgb(245 176 31 / 22%); }
  100% { box-shadow: 0 0 0 0 rgb(245 176 31 / 0%); }
}

@keyframes tutorial2-click-ring {
  from { opacity: .95; transform: scale(.4); }
  to { opacity: 0; transform: scale(4.2); }
}

@media (max-width: 820px) {
  .sentinel-tutorial2-card,
  .sentinel-tutorial2-finale {
    width: min(360px, calc(100vw - 16px));
  }

  .tutorial-demo-focus-mode {
    inset: 10px;
    overflow: auto;
  }

  .tutorial-demo-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sentinel-tutorial2-focus,
  .sentinel-tutorial2-guide-line,
  .sentinel-tutorial2-card,
  .sentinel-tutorial2-cursor {
    transition: none;
  }

  .sentinel-tutorial2-cursor.clicking span,
  .sentinel-tutorial2-pulse,
  .sentinel-tutorial2-focus {
    animation: none;
  }
}
