/* Tutorial tab (Settings > Tutorial). Class prefix .tut-; uses the root tokens from styles.css. */

.tut-nav {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin-bottom: 8px;
  border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06);
}
.tut-nav button {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--muted);
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.tut-nav button span { font-size: 14px; line-height: 1; }
.tut-nav button:hover { color: var(--text); border-color: rgba(212,175,55,.3); }
.tut-nav button.sel {
  color: var(--gold-2); border-color: var(--panel-border);
  background: linear-gradient(180deg, rgba(212,175,55,.22), rgba(212,175,55,.05));
}
.tut-nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.tut-body {
  max-height: 56vh; overflow-y: auto; overflow-x: hidden; padding: 4px 6px 4px 2px;
  color: var(--text); font-size: 14px; line-height: 1.55; animation: tut-in .25s both;
  scrollbar-color: rgba(212,175,55,.4) transparent;
}
@keyframes tut-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tut-article { min-width: 0; overflow-wrap: anywhere; }
.tut-article h2 { margin: 2px 0 6px; font: 700 22px Georgia, serif; color: var(--gold-2); }
.tut-article h3 {
  margin: 16px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--gold);
}
.tut-article p { margin: 6px 0; color: var(--text); opacity: .92; }
.tut-article b { color: var(--gold-2); font-weight: 700; }

/* Card images */
.tut-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.tut-card {
  height: 64px; width: auto; max-width: 100%; border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,.55); flex: 0 0 auto;
}

/* Hand ranking examples */
.tut-ranks { display: flex; flex-direction: column; gap: 2px; }
.tut-rank {
  display: flex; flex-direction: column; gap: 4px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tut-rank:last-child { border-bottom: 0; }
.tut-rank-name { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.tut-rank-name b { color: var(--text); }
.tut-rank .tut-cards { margin: 0; }

/* Numbered steps */
.tut-steps { list-style: none; margin: 8px 0; padding: 0; counter-reset: tut-step; }
.tut-steps li {
  counter-increment: tut-step; position: relative; padding: 4px 0 8px 36px; color: var(--text);
}
.tut-steps li::before {
  content: counter(tut-step); position: absolute; left: 0; top: 3px; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font: 700 12px Georgia, serif;
  color: #1a1408; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 10px rgba(212,175,55,.35);
}

/* Plain bullet lists */
.tut-list { margin: 6px 0; padding-left: 20px; }
.tut-list li { margin: 4px 0; padding-left: 2px; }
.tut-list li::marker { color: var(--gold); }

/* Callout */
.tut-tip {
  margin: 12px 0 4px; padding: 10px 12px 10px 14px; border-radius: 10px;
  border-left: 3px solid var(--gold); background: rgba(212,175,55,.08);
  font-size: 13px; line-height: 1.45; color: var(--text);
}
.tut-tip-label {
  display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
}

/* Tables (payouts, modes, controls) */
.tut-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.tut-table th {
  text-align: left; padding: 6px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gold); border-bottom: 1px solid var(--panel-border);
}
.tut-table td {
  padding: 7px 8px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text);
}
.tut-table td:first-child { color: var(--gold-2); font-weight: 600; }
.tut-table td:last-child { font-variant-numeric: tabular-nums; }
.tut-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.tut-table kbd { margin-left: 0; margin-right: 2px; }

/* Narrow phones: nav keeps wrapping, cards shrink, tables get tighter. */
@media (max-width: 600px) {
  .tut-nav { gap: 5px; padding: 3px; }
  .tut-nav button { padding: 5px 9px; font-size: 12px; }
  .tut-body { max-height: 60vh; font-size: 13.5px; }
  .tut-article h2 { font-size: 19px; }
  .tut-card { height: 50px; }
  .tut-steps li { padding-left: 32px; }
  .tut-table { font-size: 12px; }
  .tut-table th, .tut-table td { padding: 6px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-body { animation: none; }
  .tut-nav button { transition: none; }
}
