/* Isometric city (city/iso.js). Replaces the old street view inside #city. */

.iso {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(#5aa7dc, #a9d6ee 50%, #4f9fc4 51%);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.iso-back, .iso-world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.iso-world { cursor: grab; }
/* Drawn past its edges so a dragged map (moved as one picture, see panTo in iso.js) has no empty borders. */
.iso-world { inset: auto; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
/* No 'grabbing' cursor while dragging: cursor is inherited, so switching it restyled all 12 000 shapes of the town. */
/* The town holds still while the map is dragged or zoomed (iso.js holdWorld; city/bake.js pauses the animations
   themselves: a rule on every shape here made the browser restyle the whole city at each drag start and end). */

/* Buildings */
.iso-bld { cursor: pointer; outline: none; transition: filter .2s ease; }
/* Main buildings under the cursor light up in their own neon colour (--glow, set per building in iso.js). */
.iso-bld:hover, .iso-bld:focus-visible { filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 4px var(--glow, #fff8e0)) drop-shadow(0 0 12px var(--glow, #fff8e0)) drop-shadow(0 0 26px var(--glow, #fff8e0)) brightness(1.15) saturate(1.2); }
.iso-sign { font-family: Cinzel, Georgia, serif; font-weight: 900; text-anchor: middle; letter-spacing: 1px; paint-order: stroke; stroke: #2b1d12; stroke-width: 3px; stroke-linejoin: round; }
.iso-tag { display: none; } /* the name plates (.iso-plate) say it now */
/* Name plates over the landmarks (iso.js NAME_PLATES): positioned at the roof point, the plate sits above it */
.iso-plates { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.iso-plate { --c: #ff3ea5; position: absolute; left: 0; top: 0; pointer-events: none; cursor: pointer; padding: 0; border: 0; background: none; color: #fff; font: inherit; will-change: transform;
  opacity: 0; transition: opacity .16s ease; }
/* Shown only while the cursor is on its building (or on the plate itself, or the building has keyboard focus) */
.iso-plate.show, .iso-plate:hover, .iso-plate:focus-visible { opacity: 1; pointer-events: auto; }
.iso-plate > .iso-plate-ic, .iso-plate > .iso-plate-t { position: relative; }
.iso-plate::before { /* the plate */
  content: ''; position: absolute; inset: 0; border-radius: 13px;
  background: linear-gradient(180deg, rgba(34, 9, 58, .92), rgba(16, 4, 30, .92));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, #fff 0%), 0 0 0 1px rgba(0, 0, 0, .35), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 20px rgba(0, 0, 0, .45);
  transition: box-shadow .2s ease; }
.iso-plate { display: flex; align-items: center; gap: 8px; padding: 6px 13px 7px 6px; transform-origin: 0 0; }
.iso-plate::after { /* the stem down to the roof, with a light at its foot */
  content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 15px; margin-left: -1px;
  background: linear-gradient(var(--c), transparent); box-shadow: 0 0 8px var(--c); }
.iso-plate-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 55%, #2a0b4a));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 12px color-mix(in srgb, var(--c) 70%, transparent); }
.iso-plate-ic svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.iso-plate-t { display: grid; text-align: left; line-height: 1; }
.iso-plate-t b { font: 700 17px/1 Oswald, Inter, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; transform: skewX(-8deg); white-space: nowrap;
  text-shadow: 0 2px 0 #12061f, 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.iso-plate-t small, .iso-plate-t em { margin-top: 3px; font: 600 10px/1.1 Inter, system-ui, sans-serif; letter-spacing: .9px; text-transform: uppercase; white-space: nowrap; }
.iso-plate-t small { color: rgba(246, 236, 255, .72); }
.iso-plate-t em { display: none; font-style: normal; color: var(--c); }
.iso-plate-t::after { /* sunset edge under the name */
  content: ''; height: 2px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, #ffb347, #ff6a5c 30%, #ff3ea5 55%, #b04dff 80%, #3ad7e6); opacity: .9; }
.iso-plate:hover::before, .iso-plate:focus-visible::before { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 1px rgba(0, 0, 0, .35), 0 0 30px var(--c), 0 10px 20px rgba(0, 0, 0, .45); }
.iso-plate:hover small, .iso-plate:focus-visible small { display: none; }
.iso-plate:hover em, .iso-plate:focus-visible em { display: block; }
.iso-plate:focus-visible { outline: none; }
.iso.dragging .iso-plates { pointer-events: none; }
@media (max-width: 640px) {
  .iso-plate { gap: 6px; padding: 4px 10px 5px 4px; }
  .iso-plate-ic { width: 24px; height: 24px; border-radius: 7px; }
  .iso-plate-ic svg { width: 15px; height: 15px; }
  .iso-plate-t b { font-size: 14px; letter-spacing: 1px; }
  .iso-plate-t small, .iso-plate:hover em { display: none; }
}

.iso-bld:hover .iso-tag, .iso-bld:focus-visible .iso-tag { opacity: 1; }
.iso-tag rect { fill: #2b1d12; stroke: #d9b25c; stroke-width: 2; }
.iso-tag text { fill: #f6ead0; font: 700 13px Inter, sans-serif; letter-spacing: .5px; text-anchor: middle; dominant-baseline: central; }

/* Ground */
.iso-hl { fill: rgba(255, 238, 180, .28); stroke: #f3d27a; stroke-width: 2; pointer-events: none; }
.iso-pulse { fill: none; stroke: #fff3c4; stroke-width: 2.5; animation: iso-pulse .7s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes iso-pulse { to { transform: scale(5); opacity: 0; } }

/* Statue, avatar, small animations */
.iso-palm, .iso-statue { pointer-events: none; }
.iso-coin { animation: iso-coin 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes iso-coin { 0%, 70% { transform: scaleX(1); } 78% { transform: scaleX(.06); } 86%, 100% { transform: scaleX(1); } }
.iso-coin-d { font-family: Cinzel, Georgia, serif; font-size: 42px; fill: #8a4f00; text-anchor: middle; }
/* The DaCity badge on the square (iso.js statue): the D like the hub's logo, a pulsing neon glow */
.iso-badge-d { font-family: Oswald, Inter, sans-serif; font-weight: 700; font-size: 66px; text-anchor: middle; paint-order: stroke; stroke: rgba(58, 11, 74, .35); stroke-width: 3px; }
.iso-badge { filter: drop-shadow(0 0 10px rgba(255, 62, 165, .65)); }
.iso-badge-glow { animation: iso-badge-glow 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes iso-badge-glow { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
.iso-badge-neon { filter: drop-shadow(0 0 4px #ff3ea5); }
.iso-avatar { pointer-events: none; }
.iso-name { font: 700 10.5px Inter, sans-serif; fill: #ffe9a8; text-anchor: middle; }
.iso-avatar.walking .av-body { animation: iso-step .15s ease-in-out infinite alternate; }
@keyframes iso-bob { to { transform: translateY(-3px); } }
/* Walking: a slight rise on every step (two per stride, in time with the legs) instead of a 3 px hop. */
@keyframes iso-step { from { transform: translateY(0); } to { transform: translateY(-.8px); } }
.iso-steam circle { animation: iso-steam 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes iso-steam { 50% { transform: translateY(-6px) scale(1.15); opacity: .08; } }
.iso-beacon { animation: iso-blink 1.6s steps(1) infinite; }
@keyframes iso-blink { 50% { opacity: .15; } }
.iso-flicker { animation: iso-flicker 7s steps(1) infinite; }
@keyframes iso-flicker { 62% { opacity: .25; } 66% { opacity: 1; } 68% { opacity: .3; } 70% { opacity: 1; } }
.iso-vault { animation: iso-turn 12s linear infinite; }
@keyframes iso-turn { to { transform: rotate(360deg); } }

/* HUD overlays */
.iso-card, .iso-online, .iso-zoom button {
  background: rgba(43, 31, 21, .9);
  border: 1px solid #8a6a3d;
  color: var(--text, #f6ead0);
  box-shadow: inset 0 0 0 1px rgba(255, 233, 180, .08), 0 6px 18px -8px rgba(0, 0, 0, .6);
}
.iso-card {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 14px; min-width: 220px;
}
.iso-card-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2, #1f1540); border: 2px solid var(--pink, #ff3ea5); color: var(--muted, #a99cc9);
}
.iso-card strong { display: block; font-size: 15px; }
.iso-card small { color: var(--muted, #a99cc9); font-size: 12.5px; }
.iso-online {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  min-width: 190px; padding: 14px 16px; border-radius: 14px;
}
.iso-online p { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted, #a99cc9); margin-bottom: 8px; }
.iso-online ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.iso-online li { display: flex; align-items: center; gap: 10px; }
.iso-online li span { width: 9px; height: 9px; border-radius: 50%; }
.iso-zoom { position: absolute; right: 16px; bottom: 24px; z-index: 5; display: grid; gap: 8px; }
.iso-zoom button {
  width: 44px; height: 42px; border-radius: 11px;
  font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer;
}
.iso-zoom button:hover { border-color: #d9b25c; }
/* The joystick for phones (iso.js stick): touch screens only, bottom left (the minimap moves to the top there). */
.iso-stick { display: none; position: absolute; left: 18px; bottom: 96px; z-index: 6; width: 112px; height: 112px; border-radius: 50%;
  touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle, rgba(18, 6, 31, .35), rgba(18, 6, 31, .7)); border: 2px solid rgba(255, 62, 165, .55);
  box-shadow: 0 0 18px rgba(255, 62, 165, .25), inset 0 0 18px rgba(0, 0, 0, .4); }
.iso-stick-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffd6ef, #ff3ea5 58%, #8a1f6a); box-shadow: 0 4px 12px rgba(0, 0, 0, .5), 0 0 14px rgba(255, 62, 165, .6);
  transition: transform .12s ease-out; pointer-events: none; }
.iso-stick.on { border-color: #ff3ea5; }
.iso-stick.on .iso-stick-knob { transition: none; }
@media (hover: none) and (pointer: coarse) { .iso-stick { display: block; } }
@media (max-width: 640px) {
  .iso-online { display: none; }
  .iso-card { top: 12px; left: 12px; min-width: 0; padding: 8px 12px 8px 8px; }
  .iso-card-avatar { width: 34px; height: 34px; }
  .iso-zoom { right: 12px; bottom: 84px; }
}

/* Decorations */
.iso-deco { pointer-events: none; }
.iso-beam { opacity: .13; animation: iso-beam 3s ease-in-out infinite; }
@keyframes iso-beam { 50% { opacity: .03; } }
.iso-bulb { animation: iso-flicker 5s steps(1) infinite; }
.iso-blink { animation: iso-blink 1.2s steps(1) infinite; }
.iso-rotor { animation: iso-turn .5s linear infinite; }
.iso-spray { animation: iso-spray 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes iso-spray { 0% { transform: translateY(0) scale(.6); opacity: .9; } 100% { transform: translateY(-26px) scale(1.4); opacity: 0; } }
.iso-foam { animation: iso-foam 3s linear infinite; }
@keyframes iso-foam { to { stroke-dashoffset: -44; } }

/* Cars */
.iso-car { cursor: pointer; }
.iso-car.npc { pointer-events: none; }
.iso-underglow { opacity: .28; }
.iso-car:not(.npc):hover .iso-underglow { opacity: .6; }
.iso-car.mine .iso-underglow { opacity: .7; animation: iso-glow 1.2s ease-in-out infinite alternate; }
@keyframes iso-glow { to { opacity: .35; } }

/* Helicopter: rotor idles slowly on the ground, spins fast once you are aboard */
.iso-heli { cursor: pointer; }
.iso-heli-blades, .iso-heli-tail { transform-box: fill-box; transform-origin: center; animation: iso-turn 2.4s linear infinite; }
.iso-heli-tail { animation-duration: .9s; }
.iso-heli-disc { opacity: .06; transition: opacity .6s; }
.mine .iso-heli-blades, .flying .iso-heli-blades { animation-duration: .16s; opacity: .55; }
.mine .iso-heli-tail, .flying .iso-heli-tail { animation-duration: .1s; }
.mine .iso-heli-disc, .flying .iso-heli-disc { opacity: .22; }
.iso-heli:hover > g, .iso-heli.mine > g { filter: drop-shadow(0 0 3px #fff8e0); }
.iso-drive {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 14px;
  background: rgba(43, 31, 21, .95); border: 1px solid #d9b25c; color: var(--text, #f6ead0);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
}
/* The Driving / Flying panel is not shown (owner's choice); the GET OUT label above the vehicle and F / E / Esc remain. */
.iso-drive, .iso-drive[hidden] { display: none !important; }
.iso-drive strong { display: block; font-size: 14px; }
.iso-drive span { color: var(--muted, #a99cc9); font-size: 12.5px; }
.iso-drive button {
  height: 44px; padding: 0 22px; border: 0; border-radius: 12px; white-space: nowrap; flex: none;
  background: var(--pink, #ff3ea5); color: #14081f; font-size: 15px; font-weight: 800; cursor: pointer;
  animation: iso-exit-glow 1.2s ease-in-out infinite alternate;
}
@keyframes iso-exit-glow { from { box-shadow: 0 0 0 0 rgba(217, 178, 92, .8); } to { box-shadow: 0 0 0 7px rgba(217, 178, 92, 0); } }

/* "Get out" label above the vehicle you are in */
/* The F key hints over vehicles (HTML over the city, see keyHint in iso.js): "F · Get in" next to a vehicle (dark glass,
   neon border), "F · Get out" over the one you are in (sunset gradient). A white key cap, a pointer down to the vehicle;
   they pop in and float gently. Only taps on a phone press them; on a computer F does. */
.iso-keyhint {
  position: absolute; left: 0; top: 0; z-index: 6; margin: 0; padding: 0; border: 0; background: none;
  pointer-events: none; font: inherit; cursor: default;
}
.iso-keyhint[hidden] { display: none; }
@media (hover: none) and (pointer: coarse) { .iso-keyhint { pointer-events: auto; cursor: pointer; } }
.iso-keyhint .kh {
  position: absolute; left: 0; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; padding: 6px 15px 6px 6px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, #30104e, #140624);
  border: 2px solid #ff3ea5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 16px rgba(255, 62, 165, .65), 0 8px 18px rgba(10, 2, 24, .55);
  animation: kh-pop .3s cubic-bezier(.3, 1.6, .5, 1) both, kh-bob 1.6s ease-in-out .3s infinite alternate;
}
/* the pointer under the pill */
.iso-keyhint .kh::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px;
  background: #140624; border-right: 2px solid #ff3ea5; border-bottom: 2px solid #ff3ea5;
  transform: rotate(45deg); border-bottom-right-radius: 3px;
}
.iso-keyhint kbd {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font: 800 16px/1 Inter, system-ui, sans-serif; color: #2a0f3d;
  background: linear-gradient(180deg, #ffffff, #efe4ff);
  box-shadow: 0 3px 0 #b49ad6, 0 4px 6px rgba(0, 0, 0, .35);
}
.iso-keyhint b { font: 700 15px/1 Oswald, Inter, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; text-shadow: 0 0 10px rgba(255, 62, 165, .7); }
.iso-keyhint.exit .kh { background: linear-gradient(90deg, #ff8a3d, #ff3ea5 55%, #9b4dff); border-color: #ffd1ec; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 18px rgba(255, 62, 165, .75), 0 8px 18px rgba(10, 2, 24, .55); }
.iso-keyhint.exit .kh::after { background: #ff3ea5; border-color: #ffd1ec; }
.iso-keyhint.exit b { text-shadow: 0 1px 2px rgba(80, 0, 40, .5); }
@keyframes kh-pop { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.7); } }
@keyframes kh-bob { from { transform: translateX(-50%); } to { transform: translateX(-50%) translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .iso-keyhint .kh { animation: none; } }
@media (max-width: 640px) {
  .iso-drive { top: auto; bottom: 84px; left: 12px; right: 76px; transform: none; }
  .iso-drive span { display: none; }
}

/* ---------- Things to do around town ---------- */
.iso-deco.iso-act { pointer-events: auto; cursor: pointer; }
.iso-deco.iso-act:hover { filter: brightness(1.18) drop-shadow(0 0 6px rgba(255, 255, 255, .45)); }
.lights-off .win-lit { fill: #4d6575; animation: none; }

/* Avatar states */
.av-water, .av-board, .av-held { display: none; }
.iso-avatar.swimming .av-water, .iso-avatar.wading .av-water { display: inline; }
.iso-avatar.swimming .av-shadow, .iso-avatar.wading .av-shadow, .iso-avatar.swimming .av-ring { display: none; }
.iso-avatar.swimming .av-body { transform: translateY(14px); animation: iso-swim 1s ease-in-out infinite alternate; }
.iso-avatar.wading .av-body { transform: translateY(6px); }
@keyframes iso-swim { from { transform: translateY(14px) rotate(-4deg); } to { transform: translateY(12px) rotate(4deg); } }
.av-ripple { transform-box: fill-box; transform-origin: center; animation: iso-ripple 1.6s ease-out infinite; }
.av-ripple.late { animation-delay: -.8s; }
@keyframes iso-ripple { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.iso-avatar.skating .av-board { display: inline; }
.iso-avatar.skating .av-body { transform: translateY(-5px); }
.iso-avatar.skating.walking .av-body { animation: none; }
.av-move.ollie { animation: iso-ollie .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes iso-ollie { 50% { transform: translateY(-26px) rotate(-12deg); } }
.iso-avatar.dancing .av-body { transform-box: fill-box; transform-origin: 50% 100%; animation: iso-dance .45s ease-in-out infinite alternate; }
@keyframes iso-dance { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(10deg) translateY(-4px); } }
.iso.party .iso-beam { animation-duration: .5s; opacity: .3; }
.iso-avatar.sitting .av-body { transform: translateY(5px); }
.iso-avatar.sitting .av-pants { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(.45); }
.iso-avatar.lying .av-move { transform-box: fill-box; transform-origin: 50% 100%; transform: translate(10px, -4px) rotate(-80deg); }
.iso-avatar.lookout .av-body { animation: iso-look 2.4s ease-in-out infinite; }
@keyframes iso-look { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 70% { transform: rotate(6deg); } }
.iso-avatar.eating .av-held { display: inline; }
.iso-car.refuel .iso-underglow { opacity: .9; fill: #7dff6a; animation: iso-glow .3s ease-in-out infinite alternate; }

/* ---------- Effects ---------- */
.iso-fx, .iso-ground-fx { pointer-events: none; }
.iso-particle-text { font-family: Inter, sans-serif; font-weight: 800; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(43, 29, 18, .7); stroke-width: 2px; }
.iso-pop-inner { animation: iso-pop 1.7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes iso-pop {
  0% { transform: scale(.2) rotate(var(--tilt)); opacity: 0; }
  12% { transform: scale(1.25) rotate(var(--tilt)); opacity: 1; }
  22% { transform: scale(1) rotate(var(--tilt)); }
  70% { opacity: 1; }
  100% { transform: translateY(-40px) scale(1) rotate(var(--tilt)); opacity: 0; }
}
.iso-pop-text {
  font: 900 15px Inter, sans-serif; text-anchor: middle; dominant-baseline: central;
  paint-order: stroke; stroke-width: 4px; stroke-linejoin: round; letter-spacing: .4px;
}
.iso-pop.big .iso-pop-text { font: 400 22px Cinzel, Georgia, serif; stroke-width: 5px; }
.iso-world.shake { animation: iso-shake .42s ease; }
@keyframes iso-shake {
  15% { translate: var(--shake) calc(var(--shake) * -.6); }
  35% { translate: calc(var(--shake) * -1) calc(var(--shake) * .5); }
  55% { translate: calc(var(--shake) * .6) calc(var(--shake) * .4); }
  75% { translate: calc(var(--shake) * -.3) 0; }
}
.av-move.dive { animation: iso-dive .45s ease-out; }
@keyframes iso-dive { 40% { transform: translateY(-24px) rotate(10deg); } }
.av-board.kickflip { transform-box: fill-box; transform-origin: center; animation: iso-kickflip .5s ease; }
@keyframes iso-kickflip { to { transform: rotate(360deg) scaleX(-1); } }
.lights-flash { animation: iso-lights .7s ease; }
@keyframes iso-lights { 30% { filter: brightness(1.8) drop-shadow(0 0 24px #ffe9a8); } }

/* Other players */
.iso-remote { pointer-events: none; }
.iso.over-player, .iso.over-player * { cursor: pointer; }
.iso-name.remote { fill: #d6f2ff; }
.iso-say { pointer-events: none; animation: iso-say-in .25s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes iso-say-in { from { transform: translate(0, -74px) scale(.6); opacity: 0; } }
.iso-say-text { font: 700 12px Inter, sans-serif; fill: #2b1d12; text-anchor: middle; dominant-baseline: central; }

/* Nicer decorations */
.iso-caustic { animation: iso-caustic 3.2s linear infinite; }
@keyframes iso-caustic { to { stroke-dashoffset: -64; } }
.iso-poollight { animation: iso-pool-glow 3s ease-in-out infinite alternate; }
@keyframes iso-pool-glow { to { opacity: .25; } }
.iso-cone { opacity: .55; animation: iso-cone 4s ease-in-out infinite alternate; }
@keyframes iso-cone { to { opacity: .35; } }
.iso-eq { transform-box: fill-box; transform-origin: 50% 100%; animation: iso-eq .7s ease-in-out infinite alternate; }
@keyframes iso-eq { from { transform: scaleY(.25); } to { transform: scaleY(1.6); } }
.iso-flag { transform-box: fill-box; transform-origin: 50% 0; animation: iso-flag 1.6s ease-in-out infinite alternate; }
@keyframes iso-flag { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.iso-sock { transform-box: fill-box; transform-origin: 0 50%; animation: iso-sock 2.2s ease-in-out infinite alternate; }
@keyframes iso-sock { from { transform: rotate(-6deg) scaleX(.9); } to { transform: rotate(5deg) scaleX(1.05); } }
.iso-chase { animation: iso-chase 1.3s steps(1) infinite; }
@keyframes iso-chase { 50% { opacity: .15; } }
.iso-score { animation: iso-flicker 6s steps(1) infinite; }

/* Daylight: no neon flicker, softer light effects, clouds drift */
.iso-flicker, .iso-bulb, .iso-score, .iso-chase { animation: none; }
.iso-beam { opacity: .06; }
.iso-cone { opacity: .18; animation: none; }
.iso-clouds { animation: iso-clouds 90s linear infinite alternate; }
@keyframes iso-clouds { to { transform: translateX(120px); } }
.iso-card-avatar { border-color: #d9b25c; background: #3a2b1d; }

/* Rank looks */
.av-aura { display: none; }
.legend > .av-aura { display: inline; }
.av-aura ellipse:first-child { transform-box: fill-box; transform-origin: center; animation: iso-aura 1.8s ease-in-out infinite; }
@keyframes iso-aura { 50% { transform: scale(1.18); opacity: .55; } }
.iso-car.boss .iso-underglow { fill: #b07ae8; opacity: .75; animation: iso-glow 1s ease-in-out infinite alternate; }
.iso-boat { transform-box: fill-box; transform-origin: 50% 100%; animation: iso-boat 3.2s ease-in-out infinite alternate; }
@keyframes iso-boat { from { transform: translateY(0) rotate(-.6deg); } to { transform: translateY(-3px) rotate(.6deg); } }
/* Life: townsfolk, gulls, day and night */
.iso-npc, .iso-sailing, .iso-birds, .iso-lights, .iso-carglow, .iso-shade { pointer-events: none; }
.iso-npc.walking .av-body { animation: iso-step .15s ease-in-out infinite alternate; }
.iso-npc-say { animation: iso-say-in .25s ease-out; }
.iso-shade { mix-blend-mode: multiply; }
.iso-objects .iso-sprite-noc { visibility: hidden; }
/* A place with its lights switched off (Lights off): its windows, signs and lamps go dark, by day too. */
.iso-objects .lights-off > .iso-sprite-noc { visibility: visible; filter: url(#isoLightsOff); opacity: .78; }
/* Moving night lights of the map places (iso.js PLACE_FX): hidden in the town, they run in the night lights. */
.iso-objects .iso-place-fx { visibility: hidden; }
.iso-place-chase { opacity: .45; animation: iso-place-chase 2.4s linear infinite; }
@keyframes iso-place-chase { 0%, 100% { opacity: .45; } 5% { opacity: 1; } 24% { opacity: .45; } }
.iso-place-pulse { transform-box: fill-box; transform-origin: center; animation: iso-place-pulse 2.4s ease-in-out infinite; }
@keyframes iso-place-pulse { 50% { transform: scale(1.35); opacity: .7; } }
.iso-place-lighthouse { transform-box: fill-box; transform-origin: 50% 50%; animation: iso-lighthouse 5s linear infinite; }
@keyframes iso-lighthouse { 0%, 100% { transform: scaleX(1); opacity: .9; } 25%, 75% { transform: scaleX(.5); opacity: .8; } 48%, 52% { transform: scaleX(.05); opacity: .45; } }
.iso-place-flash { opacity: 0; animation: iso-place-flash 5s linear infinite; }
@keyframes iso-place-flash { 0%, 42%, 58%, 100% { opacity: 0; } 50% { opacity: 1; } }
.iso-place-stagebeam { transform-box: fill-box; transform-origin: 50% 0; animation: iso-place-sweep 3.2s ease-in-out infinite alternate; }
@keyframes iso-place-sweep { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.iso-place-uplight { opacity: .8; }
.iso-place-ripple { opacity: .45; animation: iso-place-ripple 2.6s linear infinite; }
@keyframes iso-place-ripple { to { stroke-dashoffset: -34; } }
.iso-wing { transform-box: fill-box; transform-origin: 50% 100%; animation: iso-wing .5s ease-in-out infinite alternate; }
@keyframes iso-wing { to { transform: scaleY(-.6); } }
/* Orientation: minimap, signposts, area banner */
.iso-post-text { font: 800 7px Inter, system-ui, sans-serif; fill: #fbf2dc; text-anchor: middle; letter-spacing: .4px; pointer-events: none; }
.iso-map {
  position: absolute; left: 16px; bottom: 70px; z-index: 5; width: 310px;
  background: rgba(43, 31, 21, .9); border: 1px solid #8a6a3d; border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 180, .08), 0 6px 18px -8px rgba(0, 0, 0, .6);
}
.iso-map-head {
  display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 6px 12px;
  background: none; border: 0; color: #f6ead0; cursor: pointer;
  font: 800 11px Inter, system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
}
.iso-map-head b { font-size: 15px; color: #d9b25c; }
.iso-map-svg { display: block; width: 100%; height: auto; cursor: pointer; }
.iso-map.closed { width: auto; }
.iso-map.closed .iso-map-svg { display: none; }
.iso-map.closed .iso-map-head b { margin-left: 12px; }
.iso-map-blip { pointer-events: none; }
.iso-map-open {
  position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  font: 700 15px/1 Inter, system-ui, sans-serif; color: #fff; background: rgba(13, 10, 20, .72); border: 1px solid rgba(255, 255, 255, .35);
}
.iso-map-open:hover { border-color: #ff3ea5; box-shadow: 0 0 10px rgba(255, 62, 165, .5); }
.iso-map.closed .iso-map-open { display: none; }
.iso-map-name { pointer-events: none; }
.iso-map-labels { pointer-events: none; }
/* Big map over the whole city */
.iso-bigmap { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px 16px 112px; /* room for the dock */
  background: rgba(8, 4, 18, .62); backdrop-filter: blur(4px); }
.iso-bigmap[hidden] { display: none; }
.iso-bigmap-panel { width: min(100%, 1500px); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--glass, rgba(24, 8, 40, .94)); border: 1px solid var(--edge, rgba(255, 120, 200, .45)); box-shadow: var(--glow, 0 12px 26px -10px #000); }
.iso-bigmap-head { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--edge, rgba(255, 120, 200, .3));
  background: linear-gradient(90deg, rgba(255, 62, 165, .18), rgba(255, 138, 61, .12) 50%, transparent); }
.iso-bigmap-head span { font: 600 20px var(--head, Oswald, Inter, sans-serif); letter-spacing: 4px; text-transform: uppercase; color: #fff; text-shadow: 0 0 12px rgba(255, 62, 165, .75); }
.iso-bigmap-head small { flex: 1; color: var(--muted, #b9a3d4); font-size: 12px; }
.iso-bigmap-close { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px; color: #fff; background: rgba(13, 10, 20, .6); border: 1px solid var(--edge, rgba(255, 120, 200, .45)); }
.iso-bigmap-close:hover { border-color: var(--pink, #ff3ea5); box-shadow: 0 0 12px rgba(255, 62, 165, .45); }
.iso-bigmap-svg { display: block; width: 100%; height: auto; min-height: 0; max-height: calc(100vh - 300px); cursor: crosshair; }
.iso-bigmap-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 20px 12px; list-style: none; color: #f3e9ff; font: 500 12px Inter, system-ui, sans-serif; }
.iso-bigmap-legend li { display: flex; align-items: center; gap: 6px; }
.iso-bigmap-legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
@media (max-width: 640px) { .iso-bigmap-head small { display: none; } .iso-bigmap { padding: 8px 8px 92px; } }
.iso-map-bld { cursor: pointer; }
.iso-map-bld .iso-map-blip { pointer-events: auto; }
.iso-map-bld:hover polygon { filter: brightness(1.25); }
.iso-map-bld:hover .iso-map-blip circle:nth-child(2) { stroke-width: 14; }
.iso-zone {
  position: absolute; top: 18%; left: 50%; z-index: 6; margin: 0; transform: translateX(-50%);
  font: 900 30px Cinzel, Georgia, serif; letter-spacing: 3px; color: #fff3d0; white-space: nowrap; pointer-events: none;
  text-shadow: 0 2px 0 #2b1d12, 0 0 18px rgba(0, 0, 0, .55); opacity: 0;
}
.iso-zone::before, .iso-zone::after { content: '—'; margin: 0 14px; color: #d9b25c; }
.iso-zone.show { animation: iso-zone 2.4s ease forwards; }
@keyframes iso-zone { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 980px) { .iso-map { bottom: 96px; width: 260px; } }
@media (max-width: 640px) {
  .iso-map { left: auto; right: 12px; top: 12px; bottom: auto; width: 190px; }
  .iso-zone { font-size: 20px; top: 22%; }
}
.iso-map-ping { transform-box: fill-box; transform-origin: center; animation: iso-map-ping 1.6s ease-out infinite; }
@keyframes iso-map-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
/* Light: vignette, cloud shadows, sea glints */
/* Sunlight over the city: a warm wash from the top left, a violet shade towards the bottom right (static, cheap) */
.iso-sunwash { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 18% 8%, rgba(255, 220, 170, .08), transparent 70%); }
.iso.night .iso-sunwash { opacity: .25; }
.iso::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 70%, rgba(20, 30, 60, .12) 100%); }
.iso-shadow-clip, .iso-glint { pointer-events: none; }
.iso-cloud-shadow { animation: iso-cloud-shadow 90s linear infinite alternate; }
@keyframes iso-cloud-shadow { from { transform: translate(-260px, -60px); } to { transform: translate(320px, 120px); } }
.iso-glint { opacity: 0; animation: iso-glint 4s ease-in-out infinite; }
@keyframes iso-glint { 0%, 70%, 100% { opacity: 0; } 82% { opacity: .9; } }
.iso-waves { animation: iso-waves 7s linear infinite; }
@keyframes iso-waves { to { transform: translate(64px, 0); } }
/* Figures: limbs swing while walking, eyes blink */
.av-leg, .av-arm { transform-box: fill-box; }
.av-leg { transform-origin: 50% 0; }
.av-arm { transform-origin: 50% 8%; }
.iso-avatar.walking .av-leg.l, .iso-avatar.walking .av-arm.r, .iso-npc.walking .av-leg.l, .iso-npc.walking .av-arm.r { animation: iso-swing .3s ease-in-out infinite alternate; }
.iso-avatar.walking .av-leg.r, .iso-avatar.walking .av-arm.l, .iso-npc.walking .av-leg.r, .iso-npc.walking .av-arm.l { animation: iso-swing .3s ease-in-out infinite alternate-reverse; }
@keyframes iso-swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.iso-avatar.skating .av-leg, .iso-avatar.skating .av-arm, .iso-avatar.sitting .av-leg, .iso-avatar.swimming .av-leg { animation: none !important; }
.av-eyes { transform-box: fill-box; transform-origin: center; animation: iso-blink-eyes 4.2s infinite; }
@keyframes iso-blink-eyes { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.iso-avatar:not(.walking) .av-head, .iso-npc:not(.walking) .av-head { animation: iso-breathe 2.6s ease-in-out infinite; }
@keyframes iso-breathe { 50% { transform: translateY(-.8px); } }
/* MMO frames for the city HUD: gold-trimmed wooden panels with corner rivets */
.iso-card, .iso-online, .iso-map, .iso-drive {
  background: linear-gradient(rgba(58, 43, 30, .96), rgba(36, 26, 17, .96));
  border: 1px solid #d9b25c;
  box-shadow: 0 0 0 1px #3a2410, 0 0 0 3px #8a6a3d, inset 0 1px 0 rgba(255, 233, 180, .2), 0 12px 26px -10px rgba(0, 0, 0, .75);
}
.iso-card::before, .iso-online::before, .iso-map::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1;
  background:
    radial-gradient(circle at 5px 5px, #f3cf63 1.8px, #6b4a14 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 5px) 5px, #f3cf63 1.8px, #6b4a14 2.6px, transparent 3.2px),
    radial-gradient(circle at 5px calc(100% - 5px), #f3cf63 1.8px, #6b4a14 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #f3cf63 1.8px, #6b4a14 2.6px, transparent 3.2px);
}
.iso-card-avatar {
  border: 2px solid #f3cf63; color: #e3b64c;
  background: radial-gradient(circle at 50% 35%, #5a4228, #241a11);
  box-shadow: 0 0 0 2px #3a2410, 0 0 0 3px #8a6a3d, inset 0 2px 6px rgba(0, 0, 0, .5);
}
.iso-card strong { font-family: Cinzel, Georgia, serif; font-weight: 900; letter-spacing: .5px; color: #fff3d0; text-shadow: 0 1px 0 #1d150e; }
.iso-card small { color: #d8c29a; }
.iso-online p { font-family: Cinzel, Georgia, serif; color: #e3b64c; letter-spacing: 2px; padding-bottom: 6px; border-bottom: 1px solid rgba(217, 178, 92, .35); }
.iso-online li { color: #f6ead0; }
.iso-online li span { box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 6px currentColor; }
.iso-map-head { font-family: Cinzel, Georgia, serif; color: #e3b64c; border-bottom: 1px solid rgba(217, 178, 92, .35); }
.iso-map-svg { border-radius: 0 0 13px 13px; }
.iso-zoom button {
  border-radius: 50%; width: 44px; height: 44px; color: #f3cf63;
  background: radial-gradient(circle at 50% 35%, #4d3a27, #221810);
  border: 1px solid #d9b25c;
  box-shadow: 0 0 0 1px #3a2410, 0 0 0 3px #8a6a3d, inset 0 1px 0 rgba(255, 233, 180, .25), 0 6px 14px -6px rgba(0, 0, 0, .7);
}
.iso-zoom button:hover { color: #fff3d0; box-shadow: 0 0 0 1px #3a2410, 0 0 0 3px #d9b25c, 0 0 14px rgba(243, 207, 99, .45); }
.iso-name { font-family: Cinzel, Georgia, serif; font-weight: 900; }
.av-tag { stroke-width: 1.5; }
.iso-map { bottom: 24px; }
@media (max-width: 980px) { .iso-map { bottom: 96px; } }
@media (max-width: 640px) { .iso-map { bottom: auto; } }
/* Landmark signs: bigger letters with a light outline so they read from afar */
.iso-sign-big { stroke: #1d150e; letter-spacing: 1.5px; }
.iso-signboard { filter: drop-shadow(0 2px 0 rgba(29, 21, 14, .45)); }

/* ---------- Tuning: cars (city/iso.js KITS) ---------- */
.iso-car .iso-underglow { opacity: .42; }
.iso.night .iso-car .iso-underglow { opacity: .85; }
.iso-flame { opacity: 0; transform-box: fill-box; transform-origin: 0 50%; }
.iso-car.moving .iso-flame { opacity: .95; animation: iso-flame .12s steps(2) infinite; }
@keyframes iso-flame { 50% { opacity: .45; transform: scale(.65, .8); } }
.iso-lightbar { animation: iso-blink .5s steps(1) infinite; }
.iso-lightbar.b { animation-delay: .25s; }
.iso-rimglow { animation: iso-glow .8s ease-in-out infinite alternate; }
.iso-car.bounce > g { animation: iso-hop 1.4s ease-in-out infinite; }
.iso-car.bounce.moving > g { animation-duration: .5s; }
@keyframes iso-hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-5px); } 80% { transform: translateY(0); } 88% { transform: translateY(-2px); } }
.iso-glowpool { opacity: .45; filter: url(#isoCarPool); }
.iso-carglow-one .iso-beam-car { opacity: .5; filter: url(#isoCarPool); }
.iso-neonstrip { opacity: .75; }
.iso.night .iso-neonstrip { opacity: 1; filter: url(#isoNeonGlow); }

/* ---------- Tuning: landmarks (city/iso.js TUNE) ---------- */
.iso-objects .iso-searchbeam { display: none; }
.iso-searchbeam { transform-box: fill-box; transform-origin: 50% 100%; animation: iso-sweep 7s ease-in-out infinite alternate; }
@keyframes iso-sweep { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.iso-chase { animation: iso-chase 1.05s steps(1) infinite; }
.iso-orbit { animation: iso-orbit 2.4s linear infinite; }
@keyframes iso-orbit { to { stroke-dashoffset: -68; } }
.iso-led { animation: iso-orbit 1.2s linear infinite; }
.iso-engine { transform-box: fill-box; transform-origin: 50% 0; animation: iso-engine .18s steps(2) infinite; opacity: .85; }
.iso-engine.b { animation-delay: -.09s; }
@keyframes iso-engine { 50% { transform: scale(.82, .7); opacity: .6; } }
.iso-loot { animation: iso-float 1.8s ease-in-out infinite alternate; }
@keyframes iso-float { from { transform: translateY(3px); } to { transform: translateY(-9px); } }
.iso-loot-glow { animation: iso-glow 1.6s ease-in-out infinite alternate; }
.iso-spark { animation: iso-blink 1.2s steps(1) infinite; }
.iso-pixel { animation: iso-pixel 2.4s steps(1) infinite; }
@keyframes iso-pixel { 33% { fill: #ff3ea5; } 66% { fill: #22e4d9; } }
.iso-countdown { letter-spacing: 1px; }

/* ---------- Vice City landmarks (city/iso.js): Ferris wheel, name letters ---------- */
.iso-wheel { transform-box: fill-box; transform-origin: 50% 50%; animation: iso-turn 48s linear infinite; }
.iso-gondola { transform-box: fill-box; transform-origin: 50% 0; animation: iso-turn 48s linear infinite reverse; }
.iso-objects .iso-uplight { display: none; }
.iso-uplight { opacity: .9; }
.iso-ledscreen { opacity: 1; }
.iso-graffiti { paint-order: stroke; }
.iso-wake { stroke-dasharray: 10 6; animation: iso-foam 1.2s linear infinite; }
.iso-rotor { transform-box: fill-box; transform-origin: center; animation: iso-rotor .18s linear infinite; }
@keyframes iso-rotor { 50% { transform: scaleX(.25); } }
.iso-flyer { pointer-events: none; }
/* Walking people: a smaller hip swing, knees and elbows bend */
@keyframes iso-swing { from { transform: rotate(-17deg); } to { transform: rotate(17deg); } }
.av-shin, .av-fore { transform-box: fill-box; transform-origin: 50% 0; }
.iso-avatar.walking .av-leg.l .av-shin, .iso-npc.walking .av-leg.l .av-shin { animation: iso-knee .3s ease-in-out infinite alternate; }
.iso-avatar.walking .av-leg.r .av-shin, .iso-npc.walking .av-leg.r .av-shin { animation: iso-knee .3s ease-in-out infinite alternate-reverse; }
.iso-avatar.walking .av-fore, .iso-npc.walking .av-fore { animation: iso-elbow .3s ease-in-out infinite alternate; }
@keyframes iso-knee { from { transform: rotate(0deg); } to { transform: rotate(24deg); } }
@keyframes iso-elbow { from { transform: rotate(0deg); } to { transform: rotate(-18deg); } }
.iso-avatar.skating .av-shin, .iso-avatar.sitting .av-shin, .iso-avatar.swimming .av-shin, .iso-avatar.skating .av-fore { animation: none !important; }

/* Online now in the GTA VI trailer mood of the top bar: night purple glass, neon edge, sunset stripe. */
.iso-online {
  overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 120, 200, .45);
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(255, 94, 120, .32), rgba(255, 62, 165, .1) 50%, transparent 75%),
    linear-gradient(160deg, rgba(42, 12, 66, .94), rgba(18, 6, 31, .94));
  box-shadow: 0 0 16px rgba(255, 62, 165, .28), 0 12px 26px -10px rgba(10, 2, 24, .8);
  backdrop-filter: blur(6px);
}
.iso-online::before { background: none; }
.iso-online::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, #ffb347, #ff6a5c 30%, #ff3ea5 55%, #b04dff 80%, #3ad7e6);
  box-shadow: 0 0 10px rgba(255, 62, 165, .7);
}
.iso-online p {
  font-family: Oswald, Inter, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 2.4px;
  color: #fff; text-shadow: 0 0 10px rgba(255, 62, 165, .75); border-bottom: 1px solid rgba(255, 120, 200, .3);
}
.iso-online li { color: #f3e6ff; }
.iso-online li em { color: #ff9ad5; }
.iso-online li .you-name { font-weight: 500; color: rgba(243, 230, 255, .7); }
/* Endless sea: haze towards the horizon at the top of the view */
.iso-horizon { position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--horizon, #a9d6ee), transparent); opacity: var(--horizon-o, .6); transition: opacity .4s; }
/* Boats you can take out from the harbour */
.iso-ride-boat { cursor: pointer; }
.iso-ride-boat:not(.mine):hover { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255, 255, 255, .55)); }
/* The boat you sail never lights up under the pointer (it sails to where you clicked, so it ends up there). */
.iso-ride-boat.mine { cursor: default; }

/* "This is you": a ring pulsing out under your feet and a brighter name tag. */
.av-pulse { transform-box: fill-box; transform-origin: center; animation: iso-me-pulse 1.6s ease-out infinite; }
@keyframes iso-me-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.iso-avatar.swimming .av-pulse { display: none; }
.av-tag.mine { stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(255, 210, 63, .75)); }
.iso-name.mine { font-size: 13px; }
.iso-avatar:not(.iso-remote) .av-move { filter: drop-shadow(0 0 1.5px #ffd23f) drop-shadow(0 0 4px rgba(255, 210, 63, .7)); }

/* Lite mode (iso.js measures the frame rate): the purely decorative motion stops so slow devices keep up.
   People still walk, vehicles still drive and fly; flags, steam, clouds, beams, water shimmer and the like rest. */
.iso.lite :is(.iso-flag, .iso-foam, .iso-wake, .av-eyes, .iso-eq, .iso-orbit, .iso-led, .iso-spray, .av-ripple, .iso-caustic,
  .iso-cloud-shadow, .iso-clouds, .iso-waves, .iso-engine, .iso-beam, .iso-poollight, .iso-searchbeam, .iso-loot, .iso-sock,
  .iso-wheel, .iso-gondola, .iso-vault, .iso-boat, .iso-beacon, .av-glow, .iso-place-chase, .iso-place-pulse, .iso-place-stagebeam, .iso-place-ripple),
.iso.lite .iso-steam circle,
.iso.lite :is(.iso-avatar, .iso-npc):not(.walking) .av-head { animation: none !important; }

/* The tour's click demo: a hand glides to a tile and taps it (DaCityCity.demoWalk). */
.iso-demo-tap { position: absolute; z-index: 60; width: 48px; height: 48px; margin: -4px 0 0 -16px; pointer-events: none;
  transition: left .7s cubic-bezier(.3, .7, .3, 1), top .7s cubic-bezier(.3, .7, .3, 1), opacity .4s, transform .15s; }
.iso-demo-tap svg { width: 100%; height: 100%; fill: #fff; stroke: #1c0a2e; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(10, 2, 24, .6)); }
.iso-demo-tap::after { content: ''; position: absolute; left: 3px; top: -1px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 3px solid #ffd23f; opacity: 0; }
.iso-demo-tap.press { transform: scale(.85); }
.iso-demo-tap.press::after { animation: iso-demo-ring .6s ease-out; }
.iso-demo-tap.gone { opacity: 0; }
@keyframes iso-demo-ring { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(2.6); } }
/* Upgraded gear (the Workshop): your character's aura shows, coloured by the highest worn upgrade level. */
.iso-avatar[data-glow] .av-aura { display: inline; }
.iso-avatar[data-glow="1"] .av-aura ellipse:first-child { stroke: #ffffff; }
.iso-avatar[data-glow="2"] .av-aura ellipse:first-child { stroke: #50b4ff; }
.iso-avatar[data-glow="3"] .av-aura ellipse:first-child { stroke: #be5aff; }
.iso-avatar[data-glow="4"] .av-aura ellipse:first-child { stroke: #ffd23f; stroke-width: 4; }
/* Turf Wars: the holding crew's flag over its district (a pole and a waving pennant in the crew's colour). */
.iso-turf { --crew: #ff3ea5; position: absolute; left: 0; top: 0; display: block; width: 64px; height: 58px; pointer-events: auto; text-decoration: none; will-change: transform; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.iso-turf[hidden] { display: none; }
.iso-turf i { position: absolute; left: 0; bottom: 0; width: 3px; height: 58px; border-radius: 2px; background: linear-gradient(#f4eefc, #8f86a3); }
.iso-turf b { position: absolute; left: 3px; top: 2px; padding: 4px 14px 4px 7px; font: 700 13px var(--head, Oswald), sans-serif; letter-spacing: 1.5px; color: #14081f; background: var(--crew);
  clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%); box-shadow: 0 0 16px var(--crew); transform-origin: left center; animation: iso-turf-wave 2.4s ease-in-out infinite; }
.iso-turf:hover b { filter: brightness(1.15); }
@keyframes iso-turf-wave { 50% { transform: skewY(3deg) scaleX(.94); } }
@media (prefers-reduced-motion: reduce) { .iso-turf b { animation: none; } }
/* The Harbour raid marker over the water (a click opens the raid). */
.iso-raid { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; pointer-events: auto; text-decoration: none; will-change: transform;
  background: rgba(8, 20, 40, .88); box-shadow: 0 0 0 1.5px #22e4d9, 0 0 18px rgba(34, 228, 217, .55); color: #fff; font: 700 12px var(--head, Oswald), sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.iso-raid span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #22e4d9; color: #071022; font-size: 14px; animation: iso-raid-pulse 1.8s ease-in-out infinite; }
@keyframes iso-raid-pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 228, 217, 0); transform: scale(1.08); } 0% { box-shadow: 0 0 0 0 rgba(34, 228, 217, .6); } }
@media (prefers-reduced-motion: reduce) { .iso-raid span { animation: none; } }
