/* ══════════════════════════════════════════════════════
   LOOT KEY ROLLER — Tutorial Overlay  v10
══════════════════════════════════════════════════════ */

/* ── Shared card ───────────────────────────────────── */
.tut-card {
  width: min(340px, calc(100vw - 32px));
  background: linear-gradient(155deg, #3e2510 0%, #1e0e04 100%);
  border: 2px solid #c8a84b;
  border-radius: 3px;
  padding: 16px 18px 14px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(200,168,75,.08),
    0 12px 40px rgba(0,0,0,.75),
    0 0 28px rgba(200,168,75,.1),
    inset 0 1px 0 rgba(200,168,75,.12);
  font-family: 'Crimson Pro', serif;
}
.tut-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0d060, transparent);
}

/* ── Close button ──────────────────────────────────── */
.tut-close-btn {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none;
  color: #c8a84b; font-size: 16px; line-height: 1;
  cursor: pointer; padding: 2px 4px; opacity: .7;
  transition: opacity .14s, color .14s; font-family: sans-serif;
}
.tut-close-btn:hover { opacity: 1; color: #f0d060; }

/* ── Badge ─────────────────────────────────────────── */
.tut-tt-badge {
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: 2.5px;
  color: #7a5a22; text-transform: uppercase;
  margin-bottom: 7px; padding-right: 20px;
}

/* ── Title ─────────────────────────────────────────── */
.tut-title {
  font-family: 'Cinzel', serif;
  font-size: 15px; font-weight: 700;
  color: #f0d060; letter-spacing: 1px;
  margin-bottom: 9px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  -webkit-font-smoothing: antialiased;
  padding-right: 20px;
}

/* ── Body ──────────────────────────────────────────── */
.tut-body {
  font-size: 14px; color: #e8d5a3;
  line-height: 1.5; margin-bottom: 10px;
}
.tut-body strong { color: #f0d060; font-weight: 600; }
.tut-body em     { color: #c4a96b; font-style: italic; }
.tut-body small  {
  font-size: 12px; color: #8a6830; font-style: italic;
  display: block; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(200,168,75,.12); line-height: 1.4;
}
/* br adds less visual space now that line-height is tighter */

/* ── Rules list ────────────────────────────────────── */
.tut-rules {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.tut-rules li {
  padding-left: 16px; position: relative;
  color: #e8d5a3; font-size: 14px; line-height: 1.5;
}
.tut-rules li::before {
  content: '⚔'; position: absolute; left: 0;
  font-size: 11px; top: 2px; color: #c8a84b;
}

/* ── Settings layout ───────────────────────────────── */
.tut-settings-body { display: flex; flex-direction: column; gap: 5px; }

.tut-settings-intro {
  font-size: 12px; color: #c4a96b; margin-bottom: 4px; line-height: 1.5;
}
.tut-settings-intro strong { color: #f0d060; }

.tut-settings-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: #e8d5a3; line-height: 1.4;
  padding: 5px 8px;
  background: rgba(200,168,75,.05);
  border: 1px solid rgba(200,168,75,.1);
  border-radius: 2px;
}
.tut-settings-row span { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .3px; }
.tut-settings-row strong { color: #f0d060; }

.tut-settings-tagline {
  text-align: center; margin-top: 3px;
  font-size: 12px; color: #c4a96b; font-style: italic;
}

/* ── Wait note ─────────────────────────────────────── */
.tut-wait-note {
  font-family: 'Cinzel', serif;
  font-size: 11px; color: #c8a84b; letter-spacing: 1px;
  text-align: center; padding: 6px 10px; margin-bottom: 10px;
  background: rgba(200,168,75,.06);
  border: 1px dashed rgba(200,168,75,.28); border-radius: 2px;
  animation: tutPulse 2s ease-in-out infinite;
}
@keyframes tutPulse { 0%,100% { opacity:.65; } 50% { opacity:1; } }

/* ── Footer ────────────────────────────────────────── */
.tut-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(200,168,75,.16);
  flex-wrap: wrap;
}
.tut-dots { display: flex; gap: 5px; align-items: center; }
.tut-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3e2a0a; flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.tut-dot-active { background: #f0d060; transform: scale(1.35); }
.tut-btn-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tut-btn-col { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

/* ── Buttons ───────────────────────────────────────── */
.tut-btn {
  font-family: 'Cinzel', serif; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: all .14s; line-height: 1;
}
.tut-btn-sm { padding: 7px 12px; font-size: 11px; }
.tut-btn-primary {
  background: linear-gradient(180deg, #9a6820 0%, #5e3c10 100%);
  border: 2px solid #f0d060; color: #f0d060;
  padding: 10px 22px; font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.tut-btn-primary:hover {
  background: linear-gradient(180deg, #b07a28 0%, #724818 100%);
  box-shadow: 0 0 16px rgba(240,208,96,.4); transform: scale(1.03);
}
.tut-btn-ghost {
  background: transparent; border: 1px solid #4e3510;
  color: #8a6830; padding: 10px 22px; font-size: 13px;
}
.tut-btn-ghost:hover { border-color: #c8a84b; color: #f0d060; }

/* ── Tutorial button glow ──────────────────────────── */
.tut-btn-glow {
  animation: tutBtnGlow 1.4s ease-in-out infinite !important;
  position: relative;
  z-index: 1;
}
@keyframes tutBtnGlow {
  0%, 100% {
    box-shadow: 0 0 6px 2px rgba(200,168,75,.45), 0 0 18px 4px rgba(200,168,75,.18);
  }
  50% {
    box-shadow: 0 0 14px 5px rgba(240,208,96,.75), 0 0 32px 10px rgba(200,168,75,.35);
  }
}

/* ── Welcome only ──────────────────────────────────── */
.tut-welcome-inner { text-align: center; }
.tut-icon { font-size: 32px; display: block; margin-bottom: 6px; }
.tut-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,75,.3), transparent);
  margin: 12px 0;
}
