:where(.og-farflung) :where(*:not(svg, svg *)) { all: revert; }
/* Farflung tutorial (js/tutorial.js). Everything stays inside the game container (#ff-app, already position: relative). */
.og-farflung .farflung-tut-layer { position: absolute; inset: 0; z-index: 29; overflow: hidden; pointer-events: none; font: 16px/1.4 var(--ff-sans); }
.og-farflung .farflung-tut-layer[hidden] { display: none; }
.og-farflung .farflung-tut-block { position: absolute; pointer-events: auto; }
.og-farflung .farflung-tut-layer:not(.farflung-tut-has-spot) .farflung-tut-block-t { background: rgba(38, 34, 27, .55); }
.og-farflung .farflung-tut-spot {
  display: none; position: absolute; border-radius: 14px; border: 3px solid var(--ff-sel, #e7b765);
  box-shadow: 0 0 0 200vmax rgba(38, 34, 27, .55); transition: left .2s, top .2s, width .2s, height .2s;
}
.og-farflung .farflung-tut-has-spot .farflung-tut-spot { display: block; animation: farflung-tut-glow 1.4s ease-in-out infinite; }
@keyframes farflung-tut-glow { 50% { border-color: var(--ff-red, #b5452b); } }
.og-farflung .farflung-tut-card {
  position: absolute; left: 0; right: 0; width: calc(100% - 20px); max-width: 360px; margin: 0 auto;
  pointer-events: auto; padding: 12px 14px 14px; border-radius: 14px; background: var(--ff-card, #fbf6ea); color: var(--ff-ink, #2d2a24);
  border: 1.5px solid var(--ff-land-edge, #9c8a68); box-shadow: 0 14px 36px rgba(0, 0, 0, .3); outline: none;
  animation: farflung-tut-in .18s ease-out;
}
.og-farflung .farflung-tut-card.farflung-tut-card-side { right: auto; margin: 0; }
@keyframes farflung-tut-in { from { opacity: 0; transform: translateY(6px); } }
.og-farflung .farflung-tut-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.og-farflung .farflung-tut-count { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ff-ink-2, #6a604f); }
.og-farflung .farflung-tut-title { margin: 4px 0 2px; font: 700 20px/1.2 var(--ff-serif, Georgia, serif); }
.og-farflung .farflung-tut-text { margin: 0; font-size: 15px; line-height: 1.4; }
.og-farflung .farflung-tut-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.og-farflung .farflung-tut-layer button {
  font: inherit; font-size: 15px; font-weight: 700; min-height: 42px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.og-farflung .farflung-tut-layer button[hidden] { display: none; }
.og-farflung .farflung-tut-layer button:focus-visible { outline: 3px solid var(--ff-sel, #e7b765); outline-offset: 2px; }
.og-farflung .farflung-tut-layer .farflung-tut-skip {
  min-height: 34px; padding: 0 12px; border: 1.5px solid var(--ff-land-edge, #9c8a68); background: transparent;
  color: var(--ff-ink-2, #6a604f); font-size: 14px; font-weight: 600;
}
.og-farflung .farflung-tut-layer .farflung-tut-btn-back,
.og-farflung .farflung-tut-layer .farflung-tut-btn-extra { border: 1.5px solid var(--ff-land-edge, #9c8a68); background: transparent; color: var(--ff-ink, #2d2a24); }
.og-farflung .farflung-tut-layer .farflung-tut-btn-next { margin-left: auto; border: 0; background: var(--ff-btn, #24423f); color: #fbf4e2; box-shadow: 0 2px 0 var(--ff-btn-2, #1a312f); }
.og-farflung .farflung-tut-layer .farflung-tut-btn-next:hover { background: #2d524e; }
@media (prefers-reduced-motion: reduce) {
  .og-farflung .farflung-tut-card,
.og-farflung .farflung-tut-has-spot .farflung-tut-spot { animation: none; }
  .og-farflung .farflung-tut-spot { transition: none; }
}
