/* Varsara in-app tutorial videos (see tutorial.js).
   Wide screens (1200px and up): two buttons in the header beside the avatar.
   Phones, tablets and narrow windows (under 1200px): a full-width row at the top of the page, 44px tall buttons, so the header never crowds. */
.tut-hdr { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
.tut-b { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 600 14px/1 "Inter Tight", system-ui, sans-serif; border-radius: 999px; cursor: pointer; min-height: 36px; padding: 0 14px; position: relative; -webkit-tap-highlight-color: transparent; }
.tut-b[hidden] { display: none; }
.tut-b em { font-style: normal; font-weight: 500; font-size: 12px; opacity: .75; }
.tut-ico { flex: none; }
.tut-b:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tut-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #FF6A1F; border: 2px solid #0B1426; box-sizing: content-box; }
.tut-dot[hidden] { display: none; }
/* In the dark header: the page guide is the filled button, the full tutorial the outlined one */
.tut-hdr .tut-guide { background: #FF6A1F; color: #0B1426; border: 1px solid #FF6A1F; }
.tut-hdr .tut-guide:hover { background: #ff8247; }
.tut-hdr .tut-full { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.tut-hdr .tut-full:hover { background: rgba(255,255,255,.1); }
.tut-bar { display: none; }

@media (max-width: 1199px) {
  .tut-hdr { display: none; }
  .tut-bar { display: flex; gap: 8px; margin: 0 0 14px; }
  .tut-bar .tut-b { flex: 1 1 0; justify-content: center; min-height: 44px; font-size: 15px; padding: 0 10px; }
  .tut-bar .tut-guide { background: #FF6A1F; color: #0B1426; border: 1px solid #FF6A1F; }
  .tut-bar .tut-full { background: #fff; color: #0B1426; border: 1px solid #c5cddd; }
  .tut-bar .tut-b:focus-visible { outline-color: #0B1426; }
  .tut-bar .tut-dot { border-color: #fff; }
  .tut-bar .tut-t { display: none; }
  .tut-bar.one .tut-full { flex: 1 1 100%; }
}
@media (max-width: 360px) { .tut-bar .tut-b { font-size: 14px; } .tut-bar .tut-ico { display: none; } }

.tut-modal[hidden] { display: none; }
.tut-modal { position: fixed; inset: 0; z-index: 9500; background: rgba(8,14,28,.82); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.tut-box { width: min(960px, 100%); background: #0B1426; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.tut-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; color: #fff; }
.tut-top strong { font: 600 16px "Inter Tight", system-ui, sans-serif; }
.tut-close { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; min-width: 44px; min-height: 44px; border-radius: 10px; }
.tut-close:hover { background: rgba(255,255,255,.12); }
.tut-close:focus-visible { outline: 2px solid #fff; }
.tut-stage { position: relative; background: #000; aspect-ratio: 16 / 9; }
.tut-stage video { width: 100%; height: 100%; display: block; background: #000; }
.tut-err { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; color: #fff; background: rgba(0,0,0,.75); }
.tut-err[hidden] { display: none; }
.tut-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 22px; }
.tut-foot-btns { display: flex; gap: 8px; margin-left: auto; }
.tut-hint { color: #A9BAD8; font-size: 13px; }
.tut-skip[hidden], .tut-restart[hidden] { display: none; }
html.tut-open { overflow: hidden; }
@media (max-width: 560px) { .tut-hint { display: none; } .tut-foot-btns .btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .tut-b { transition: none; } }
