
.nav-tab--howto {
  color: #6b5a2e;
}
.nav-tab--howto .nav-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #8a6a32;
  background: rgba(212, 175, 92, 0.18);
  opacity: 1;
}

body.tut-lock { overflow: hidden; }

.tut-layer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
}

.tut-veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.52);
  pointer-events: auto;
  animation: tut-veil-in 0.35s ease;
}

.tut-hole {
  position: fixed;
  border-radius: 12px;
  pointer-events: auto;
  box-shadow:
    0 0 0 2px rgba(255, 224, 138, 0.95),
    0 0 0 8px rgba(255, 214, 102, 0.16),
    0 0 28px rgba(255, 210, 90, 0.28);
  animation: tut-pulse 1.4s ease-in-out infinite;
}

.tut-hole--rainbow {
  animation: tut-pulse 1.6s ease-in-out infinite, tut-rainbow 4.5s linear infinite;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 18px rgba(180, 160, 255, 0.22);
  background:
    conic-gradient(from var(--tut-ang, 0deg),
      rgba(255, 120, 120, 0.55),
      rgba(255, 210, 90, 0.55),
      rgba(120, 210, 140, 0.55),
      rgba(110, 170, 255, 0.55),
      rgba(180, 130, 255, 0.55),
      rgba(255, 120, 120, 0.55));
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.tut-on {
  position: relative;
  z-index: 4001;
}

.tut-card {
  position: fixed;
  z-index: 4002;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: rgba(18, 20, 26, 0.92);
  color: #f6f1e6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  overflow: visible;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tut-card-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.tut-num {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  color: #1a1712;
  background: #f3d27a;
  animation: tut-blink 1.2s ease-in-out infinite;
}

.tut-sub {
  font-size: 12px;
  font-weight: 700;
  color: #d8c48a;
}

.tut-card-title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.tut-card-text {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(246, 241, 230, 0.78);
}

.tut-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.tut-key {
  border: 1px solid rgba(246, 241, 230, 0.18);
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #efe6cf;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.tut-key--skip { color: #d8c48a; }
.tut-key--space { color: #f3d27a; }

.tut-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4003;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.92);
  pointer-events: auto;
  white-space: nowrap;
}

.tut-bar button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tut-skip {
  color: #d8d0c2;
  background: transparent;
}

.tut-next {
  color: #1a1712;
  background: #f3d27a;
}

.tut-progress {
  min-width: 46px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #f6f1e6;
}

@keyframes tut-veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.95), 0 0 0 8px rgba(255, 214, 102, 0.12), 0 0 18px rgba(255, 210, 90, 0.18); }
  50% { box-shadow: 0 0 0 2px rgba(255, 244, 200, 1), 0 0 0 12px rgba(255, 214, 102, 0.2), 0 0 28px rgba(255, 210, 90, 0.32); }
}

@keyframes tut-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.06); }
}

@property --tut-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes tut-rainbow {
  to { --tut-ang: 360deg; }
}

@media (max-width: 900px) {
  .tut-card {
    max-width: calc(100vw - 20px);
    padding: 10px 12px 12px;
  }
  .tut-card-title { font-size: 13px; }
  .tut-bar {
    width: calc(100vw - 16px);
    max-width: 420px;
    justify-content: space-between;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .tut-card { width: calc(100vw - 16px) !important; left: 8px !important; }
  .tut-keys { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-hole, .tut-hole--rainbow, .tut-num { animation: none; }
}
