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