:where(.og-chainle) :where(*:not(svg, svg *)) { all: revert; }
/* The on-screen tour (js/tutorial.js). Only chainle-tut- classes; the layer stays inside the game container. */
.og-chainle .chainle-tut { position: absolute; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; border-radius: inherit; }
.og-chainle .chainle-tut-plain { background: rgba(30, 34, 48, .55); }
.og-chainle .chainle-tut-block { position: absolute; pointer-events: auto; }
.og-chainle .chainle-tut-ring { position: absolute; border-radius: 12px; box-shadow: 0 0 0 2px var(--brass, #c9862b), 0 0 0 200vmax rgba(30, 34, 48, .55); pointer-events: none; }
.og-chainle .chainle-tut-ring[hidden] { display: none; }
.og-chainle .chainle-tut-ring.chainle-tut-solid { pointer-events: auto; }
.og-chainle .chainle-tut-ring::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--brass, #c9862b); animation: chainle-tut-pulse 1.6s ease-out infinite; }
@keyframes chainle-tut-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.05); } }
.og-chainle .chainle-tut-card {
  position: absolute; box-sizing: border-box; width: min(340px, calc(100% - 16px)); padding: 10px 14px 12px;
  background: var(--card, #fffdf8); color: var(--ink, #1e2230); border: 1px solid var(--line, #e4dccb); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3); pointer-events: auto; font: .97rem/1.45 var(--sans, system-ui, sans-serif);
  text-align: start; animation: chainle-tut-in .18s ease-out;
}
.og-chainle .chainle-tut-card:focus { outline: none; }
.og-chainle .chainle-tut-card:focus-visible { outline: 2px solid var(--brass, #c9862b); outline-offset: 2px; }
@keyframes chainle-tut-in { from { opacity: 0; transform: translateY(6px); } }
.og-chainle .chainle-tut-nudge { animation: chainle-tut-nudge .32s ease; }
@keyframes chainle-tut-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.og-chainle .chainle-tut-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.og-chainle .chainle-tut-count { font-size: .78rem; color: var(--muted, #6b6f7b); font-variant-numeric: tabular-nums; }
.og-chainle .chainle-tut-text { margin: 6px 0 10px; }
.og-chainle .chainle-tut-nav { display: flex; justify-content: flex-end; gap: 8px; }
.og-chainle .chainle-tut-card button { font: inherit; min-height: 40px; padding: 6px 16px; border-radius: 10px; cursor: pointer; touch-action: manipulation; }
.og-chainle .chainle-tut-card button[hidden] { display: none; }
.og-chainle .chainle-tut-skip { min-height: 36px !important; padding: 4px 6px !important; margin-inline-end: -6px; background: none; border: 0; color: var(--muted, #6b6f7b); text-decoration: underline; text-underline-offset: 3px; }
.og-chainle .chainle-tut-back { background: var(--card, #fffdf8); border: 1.5px solid var(--ink, #1e2230); color: var(--ink, #1e2230); }
.og-chainle .chainle-tut-next { background: var(--ink, #1e2230); border: 1.5px solid var(--ink, #1e2230); color: #fff; font-weight: 650; }
.og-chainle .chainle-tut-card button:focus-visible { outline: 2px solid var(--brass, #c9862b); outline-offset: 2px; }
.og-chainle .chainle-tut-arrow { position: absolute; width: 12px; height: 12px; margin-left: -6px; background: inherit; border: inherit; border-radius: 0; transform: rotate(45deg); }
.og-chainle .chainle-tut-arrow[data-side="below"] { top: -7px; border-right: 0; border-bottom: 0; }
.og-chainle .chainle-tut-arrow[data-side="above"] { bottom: -7px; border-left: 0; border-top: 0; }
.og-chainle .chainle-tut-arrow[data-side="over"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .og-chainle .chainle-tut-card,
.og-chainle .chainle-tut-ring::after,
.og-chainle .chainle-tut-nudge { animation: none; }
}
