/* First-time tutorial (client/tutorial.ts): a dimmed screen with one lit target and a vellum card beside it. */
.tut { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.tut-block { position: fixed; pointer-events: auto; }
.tut-ring {
  position: fixed; border-radius: 6px; pointer-events: none;
  border: 2px solid var(--gilt-hi, #c9b282);
  box-shadow: 0 0 0 200vmax rgba(10, 7, 4, .66), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 22px 2px rgba(201, 169, 94, .45);
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease;
}
.tut-ring { pointer-events: auto; }
.tut-card {
  position: fixed; left: 0; top: 0; width: 280px; max-width: calc(100vw - 20px); padding: 12px 14px 10px; pointer-events: auto;
  transition: transform .28s ease, opacity .2s ease;
}
.tut-top { display: flex; align-items: baseline; gap: 8px; }
/* The Nursery walkthrough's card (style.css .nu-card), Cole 2026-11-13: plain cream, a rust title, step dots, two buttons. */
.dialog.tut-card, [data-theme] .dialog.tut-card { border: 0; border-image: none; border-radius: 8px; background: #f6ead0; color: #2a1c10; padding: 12px 14px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px #b39a66; }
.tut-top b { display: block; font-size: 16px; font-weight: 700; color: #7a2e12; }
.tut-card p { margin: 4px 0 8px; color: #2a1c10; font-size: 14px; line-height: 1.35; text-wrap: pretty; }
.tut-acts { display: flex; align-items: center; gap: 8px; }
.tut-acts .btn { min-height: 34px; white-space: nowrap; }
.tut-card:has([data-tut="auto"]) { width: 330px; }
@media (max-width: 380px) { .tut-acts .btn { white-space: normal; } }
.tut-skip { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 12px; color: #7d6a4c; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.tut-skip:hover, .tut-skip:focus-visible { color: #2a1c10; }
.tut-dots { flex: 1; display: flex; gap: 5px; }
.tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9b38a; }
.tut-dots i.on { background: #7a2e12; }
/* Before the target is in view (or while the first wilds walk in) the screen dims without a light. */
.tut-wait .tut-ring, .tut-free .tut-ring { width: 0 !important; height: 0 !important; left: 50% !important; top: 50% !important; border-color: transparent; }
.tut-wait .tut-card { opacity: 0; pointer-events: none; }
.tut-wait .tut-block:first-child, .tut-free .tut-block:first-child { inset: 0 !important; width: auto !important; height: auto !important; }
@media (prefers-reduced-motion: reduce) { .tut-ring, .tut-card { transition: none; } }
/* A card coming onto the screen (new, or back from the Map) takes its place at once instead of sliding from the corner. */
.tut-snap .tut-ring, .tut-snap .tut-card { transition: none; }
.tut-unplaced .tut-card { visibility: hidden; }
/* Before the first hunt is chosen the scene is empty: no hunt card, log or session numbers. */
.tut-hold :is(#fieldhead, #suggest, #combatlog, #session, #strip) { visibility: hidden; }
/* The first-hunt choice: one row per open hunt. */
.tut-hunts { display: grid; gap: 6px; margin: 8px 0 10px; }
.tut-hunt { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 6px 10px 6px 6px; border: 1px solid var(--rule-soft, rgba(140, 115, 80, .45)); border-radius: 4px; background: var(--inlay, rgba(244, 233, 205, .26)); color: var(--ink); cursor: pointer; font: inherit; }
.tut-hunt:hover, .tut-hunt:focus-visible { border-color: var(--gilt-lo, #7e6440); background: var(--inlay-hi, rgba(244, 233, 205, .42)); outline: none; }
.tut-hunt img { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.tut-hn { display: flex; align-items: center; gap: 6px; }
.tut-hn b { font-size: 16px; }
.tut-hv { font-size: 13px; color: var(--muted); }
.tut-card:has(.tut-hunts) { width: 320px; }
/* The name step (client/namepick.ts). */
.dialog.np-pick { width: min(360px, 100%); box-sizing: border-box; padding: 0 20px 4px; text-align: center; }
.np-pick h3 { padding-top: 16px; }
.np-pick input { width: 100%; box-sizing: border-box; font-size: 18px; text-align: center; margin: 4px 0 2px; }
.np-pick .err { min-height: 18px; font-size: 13px; color: var(--bad); }
.np-pick .actions { justify-content: center; border-top: 0; }
.np-on :is(#top .trainer b, #top .avatar, #playercard .pc-name) { visibility: hidden; }
/* A "go there" step (the Kinhall's Road): the lit plate takes the click. */
.tut-act .tut-ring { pointer-events: none; }
/* The pulse is a brighter glow fading in and out over the ring's own. Only its opacity moves, so the browser blends it
   on the graphics chip; animating the ring's shadow repainted the whole dimmed screen (its 200vmax shadow) every
   frame, which made the tutorial stutter on phones. */
.tut-ring::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 30px 6px rgba(201, 169, 94, .62); opacity: 0; }
.tut-act .tut-ring::after { animation: tut-pulse 1.6s ease-in-out infinite; will-change: opacity; }
@keyframes tut-pulse { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tut-act .tut-ring::after { animation: none; } }
.tut-pre :is(#teamlist, #playercard) { visibility: hidden; }
/* The throw step holds Next back for a while (client/tutorial.ts). */
.tut-acts .btn[hidden] { display: none !important; }
/* The save screen sits above the tutorial: the tutorial's click blocker covered its buttons, so a guest who opened it
   mid-tutorial could type but not press Save (itch, 2026-11-07). The tutorial waits, then comes back where it was. */
body:has(.gsave-scrim) .tut { display: none; }

/* The First Road's guided throws (client/tutorial.ts roadMode): no dimming and nothing blocked, the screen is bare already. */
.tut-road .tut-ring { box-shadow: none; border-color: transparent; }
.tut-road:not(.tut-wait) .tut-block { pointer-events: none; }
.tut-road .tut-ring { pointer-events: none; }
/* The grade card (after the first claim) rings the new creature's slot in gold. */
.tut-road.tut-grade .tut-ring { border-color: #f0c45a; box-shadow: 0 0 0 3px rgba(240, 196, 90, .35), 0 0 16px rgba(240, 196, 90, .6); }
