/* gtawiki.lol — small additions on top of the Tailwind design tokens */
html, body { margin: 0; padding: 0; }
body { overscroll-behavior: none; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { max-width: 100%; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #100c18; }
::-webkit-scrollbar-thumb { background: #373340; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #4d4354; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; user-select: none; }
button.material-symbols-outlined { background: none; border: 0; cursor: pointer; }

select { color-scheme: dark; }
input[type=file] { cursor: pointer; }

.toast { animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.toast-out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal > div:last-child { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.mobile-nav.flex { display: flex; }
.search-dropdown { max-height: 70vh; overflow-y: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Leonida map viewer */
.map-stage { will-change: transform; }
.map-stage .map-img { max-width: none; }
.map-pin { transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); transform-origin: center; padding: 0; background: none; border: 0; cursor: pointer; z-index: 5; }
.map-pin:hover, .map-pin.is-active { z-index: 10; }
.map-pin.is-active .map-pin-dot { outline: 3px solid #fff; outline-offset: 2px; }
.map-pin:focus-visible .map-pin-dot { outline: 3px solid #4cd7f6; outline-offset: 2px; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }

/* Extra map pin categories + suggest-a-pin mode */
.pin-weapon { background: #ef4444; color: #fff; }
.pin-money { background: #facc15; color: #3b2a00; }
.pin-activity { background: #22c55e; color: #052e16; }
.map-pin-draft .map-pin-dot { background: #fff; color: #b76dff; animation: pin-pulse 1.2s ease-in-out infinite; }
@keyframes pin-pulse { 50% { box-shadow: 0 0 0 8px rgba(183, 109, 255, .35); } }
.map-viewport.is-picking, .map-viewport.is-picking .map-pin { cursor: crosshair; }
.map-viewport.is-picking .map-pin { opacity: .55; }
