/* ============================================================
   MILLER THE FARMER — Farm World (css/world.css)
   Owner: world worker. Built on site.css custom properties and
   the exact chip tints site.css already uses. Reuses knowledge.css
   .ka-* text styles inside the location view so lesson typography
   matches the Academy.
   Also owns: mobile tabbar tuning for 8 items (site.css untouched),
   the Games picker "3D Farm Games" card art, and the world toast.
   ============================================================ */

/* ============ Games picker — 3D Farm Games section ============ */
.w3d-title { margin-top: var(--space-10); }
.game-emoji-3d { display: block; width: 74px; height: 74px; margin: 0 auto 10px; }
.game-emoji-3d svg { width: 100%; height: 100%; display: block; }
.world3d-card { position: relative; }
.world3d-card::after {
  content: "3D";
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  background: var(--sky); color: var(--bark);
  padding: 2px 9px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lifted);
}
/* friendly disabled state while world3d.js has not landed */
.world3d-card.is-locked, .w3d-btn.is-locked { filter: grayscale(.85); opacity: .72; }
.w3d-btn.is-locked { cursor: help; }
.world3d-picker-note { margin-top: var(--space-3); }

/* ============ Farm World tab — map ============ */
.world-map-wrap {
  position: relative; max-width: 980px; margin: 0 auto;
  aspect-ratio: 1000 / 620;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lifted-card);
  background: #c9efff;
}
.world-map-wrap > svg.farm-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* location pins — touch-first 56px targets */
.world-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 56px; height: 56px; padding: 0; border: 0;
  background: transparent; cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.world-marker img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; background: #fff;
  box-shadow: 0 4px 0 rgba(74, 44, 26, .18), 0 8px 18px rgba(74, 44, 26, .18);
  transition: transform var(--transition-fast);
}
.world-marker:hover img { transform: scale(1.08); }
.world-marker:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; }
.world-marker.locked { cursor: default; }
.world-marker.locked img { filter: grayscale(1); opacity: .55; }
.world-marker.visited img { border-color: var(--grass); }
.wm-badge {
  position: absolute; right: -5px; bottom: -3px;
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-inverse); font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 0 rgba(74, 44, 26, .2);
}
.wm-check { background: var(--grass-dark); }
.wm-lock { background: rgba(74, 44, 26, .6); }
.wm-lock svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

/* "Next stop" hint arrow above the first unvisited pin */
.world-hint {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 42px));
  background: var(--barn); color: var(--text-inverse);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lifted);
  animation: worldBob 1.4s ease-in-out infinite;
}
.world-hint::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px;
  border: 8px solid transparent; border-top-color: var(--barn); border-bottom: 0;
}
/* keep the bubble on the map for pins near the edges */
.world-hint.hint-left { transform: translate(-10%, calc(-100% - 42px)); }
.world-hint.hint-left::after { left: 12%; }
.world-hint.hint-right { transform: translate(-90%, calc(-100% - 42px)); }
.world-hint.hint-right::after { left: 88%; }
@keyframes worldBob { 0%, 100% { margin-top: 0; } 50% { margin-top: -7px; } }

/* progress line + dots */
.world-progress-line {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--barn-dark); margin: 0 auto var(--space-3);
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  flex-wrap: wrap; min-height: 30px;
}
.world-dots { display: inline-flex; gap: 6px; }
.world-dots span { width: 13px; height: 13px; border-radius: 50%; background: rgba(74, 44, 26, .15); }
.world-dots span.done { background: var(--grass); }
.world-dots span.now { background: var(--hay); }
.world-done-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grass); color: var(--text-inverse);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 7px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lifted);
}
.world-legend { margin-top: var(--space-3); }

/* ============ Home = Farm World (the map is the front page) ============ */
.home-head {
  max-width: 1160px; margin: 0 auto;
  padding: var(--space-4) var(--space-5) var(--space-3);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.home-head-logo { width: 150px; flex: 0 0 auto; }
.home-head-text { flex: 1 1 280px; min-width: 0; }
.home-head-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 30px); margin: 0; color: var(--barn-dark); }
.home-head-sub { margin: var(--space-1) 0 0; color: var(--text-secondary); font-size: 15px; }
.home-map-zone { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-5) var(--space-2); }
.home-map-zone .world-map-wrap { max-width: none; } /* the map IS the main menu — let it fill the zone */

@media (max-width: 640px) {
  .home-head { padding: var(--space-3) var(--space-4) var(--space-2); gap: var(--space-3); }
  .home-head-logo { width: 112px; }
  .home-map-zone { padding: 0 var(--space-3) var(--space-2); }
}

/* ============ location view (fullscreen overlay) ============ */
.world-overlay {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  background: linear-gradient(180deg, #bfe9ff 0%, var(--surface-base) 26%);
  opacity: 0; transition: opacity 200ms ease;
}
.world-overlay.world-open { opacity: 1; }
body.world-lock { overflow: hidden; }

.world-close {
  position: fixed; top: calc(env(safe-area-inset-top) + 12px); right: 14px; z-index: 96;
  width: 52px; height: 52px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: var(--surface-primary); box-shadow: 0 3px 0 rgba(74, 44, 26, .25);
  display: grid; place-items: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.world-close:hover { transform: scale(1.08); }
.world-close svg { width: 26px; height: 26px; fill: none; stroke: var(--bark); stroke-width: 3; stroke-linecap: round; }
.world-close:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; }

.world-sheet {
  max-width: 900px; margin: 0 auto; min-height: 100%;
  background: var(--surface-base);
  box-shadow: 0 0 40px rgba(74, 44, 26, .22);
  padding-bottom: var(--space-10);
}
.world-loc-head { height: clamp(180px, 30vh, 300px); background: #c9efff; overflow: hidden; }
.world-loc-head svg { width: 100%; height: 100%; display: block; }

.world-loc-body { padding: var(--space-5) var(--space-6) 0; }
.world-loc-kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  background: var(--sun); color: var(--bark);
  padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: var(--space-2);
}
.world-loc-body h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; }
.world-loc-blurb { font-size: 17px; margin: var(--space-1) 0 var(--space-4); }
.world-bands { margin: 0 0 var(--space-4); }
.world-loc-body h3 { font-size: 21px; margin: var(--space-6) 0 var(--space-3); }

/* characters you meet — tap to hear their voice */
.world-chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-3); }
.world-char {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--surface-primary); border: 0; cursor: pointer;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lifted);
  padding: var(--space-3); min-height: 56px; text-align: left;
  font-family: var(--font-body); transition: transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.world-char:hover { transform: translateY(-2px); }
.world-char:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; }
.world-char img { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sun); }
.world-char.playing img { animation: pulse 1s ease infinite; }
.world-char-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.world-bubble {
  position: relative; display: block;
  background: var(--surface-secondary); border: 2px solid rgba(74, 44, 26, .08);
  border-radius: 14px; padding: 8px 12px;
  font-size: 14.5px; font-weight: 700; color: var(--text-primary); line-height: 1.4;
}
.world-bubble::after {
  content: ""; position: absolute; left: -8px; top: 15px;
  border: 7px solid transparent; border-right-color: rgba(74, 44, 26, .08); border-left: 0;
}
.world-char-voice { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--text-secondary); letter-spacing: .3px; }

/* machines that live here */
.world-machines { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.world-machine {
  background: var(--surface-primary); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted); padding: var(--space-3);
  width: 158px; text-align: center;
}
.world-machine img { height: 76px; object-fit: contain; margin: 0 auto 6px; }
.world-machine h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--barn-dark); }
.world-machine p { font-size: 12px; line-height: 1.4; color: var(--text-secondary); margin-top: 3px; }
.world-empty {
  background: var(--surface-secondary); border-radius: var(--radius-md);
  padding: 12px 16px; font-weight: 700; color: var(--text-secondary);
}

/* activity buttons */
.world-acts { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.world-acts .btn { min-height: 56px; }
.world-acts .btn:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; }

/* ============ toast (gentle guidance) ============ */
.world-toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  background: var(--bark); color: var(--cream);
  font-weight: 800; font-size: 15px; text-align: center;
  padding: 13px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop); z-index: 120;
  opacity: 0; transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(92vw, 500px); pointer-events: none;
}
.world-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 901px) { .world-toast { bottom: 30px; } }

/* ============ mobile tabbar tuning for 7 items ============
   The vestigial .tb-ico word (a 16px duplicate of the label) is hidden;
   icons (::before blocks) and the 10px labels remain. Tabs share space
   equally; a hidden scrollbar absorbs any last pixel of overflow.
   (The 8th item, the Farm World tab, became the Home map itself.) */
.tabbar { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a {
  flex: 1 1 0; min-width: 0; overflow: hidden;
  font-size: 9.5px; padding: 5px 2px 4px;
}
.tabbar a .tb-ico { font-size: 0; }

/* ============ responsive ============ */
@media (max-width: 640px) {
  .world-loc-body { padding: var(--space-4) var(--space-4) 0; }
  .world-chars { grid-template-columns: minmax(0, 1fr); }
  .world-loc-head { height: clamp(150px, 24vh, 210px); }
  .world-machine { width: calc(50% - var(--space-2) / 2); }
  .world-machine p { display: none; } /* names only on small screens */
}

/* ============ focus + motion ============ */
@media (prefers-reduced-motion: reduce) {
  .world-hint { animation: none; }
  .world-marker img, .world-char, .world-close { transition: none; }
  .world-char.playing img { animation: none; }
  .world-overlay { transition: none; }
}

/* ============================================================
   3D FARM MAP (makeover) — the live diorama from js/universe3d.js
   (mountDiorama) under the same .world-marker pins. Book-matched
   colors come from css/tokens.css with fallbacks.
   ============================================================ */
.wm-disc { display: block; width: 100%; height: 100%; }
.wm-name, .wm-flag { display: none; }
.world-marker { z-index: 3; }
.world-marker.shake { animation: wmShake .42s ease; }
@keyframes wmShake { 20%, 60% { margin-left: -6px; } 40%, 80% { margin-left: 6px; } }

.world-map-wrap { isolation: isolate; }
.world-map-wrap.mode-3d {
  background:
    linear-gradient(180deg, var(--sky-top, #8ee7ee) 0%, var(--sky-low, #dffafa) 42%, var(--hill-lime, #b9e441) 43%, var(--hill-grass, #9ed426) 70%, var(--hill-deep, #4a974a) 100%);
  border: 3px solid var(--logo-outline, #2b1a10);
  box-shadow: 0 6px 0 rgba(43, 26, 16, .28), 0 18px 40px rgba(43, 26, 16, .18);
}
.world-map-wrap > svg.farm-map { transition: opacity .7s ease; }
.world-map-wrap.is-3d > svg.farm-map { opacity: 0; }
.world-map-wrap.is-3d .world-hint { display: none; }

.u3d-dio { position: absolute; inset: 0; z-index: 1; }
.u3d-dio-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 1; transition: opacity .7s ease; }
.u3d-dio-canvas:active { cursor: grabbing; }
.u3d-dio.is-loading .u3d-dio-canvas { opacity: 0; }
.u3d-dio-load {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--cream, #f8f2d6); color: var(--text, #2b1a10);
  border: 2.5px solid var(--logo-outline, #2b1a10); border-radius: 999px;
  padding: 4px 16px 4px 4px; box-shadow: 0 4px 0 rgba(43, 26, 16, .25);
  font-family: var(--font-book, "Patrick Hand", cursive); text-transform: uppercase; font-size: 15px; letter-spacing: .3px;
}
.u3d-dio-load img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; animation: wmBob 1.1s ease-in-out infinite; }
.u3d-dio:not(.is-loading) .u3d-dio-load { display: none; }
@keyframes wmBob { 50% { transform: translateY(-4px); } }

/* signpost pins riding on the 3D map */
.world-map-wrap.is-3d .world-marker {
  width: auto; height: auto; border-radius: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%; will-change: transform;
  transition: opacity .25s ease, filter .25s ease;
}
.world-map-wrap.is-3d .world-marker.off { opacity: 0; pointer-events: none; }
.world-map-wrap.is-3d .wm-disc {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 3px solid var(--logo-outline, #2b1a10);
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--logo-outline, #2b1a10), 0 8px 14px rgba(43, 26, 16, .3);
  margin: 7px 7px 0;
}
.world-map-wrap.is-3d .world-marker img { border: 0; box-shadow: none; border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.world-map-wrap.is-3d .wm-name {
  display: block; margin-top: 7px; position: relative;
  background: linear-gradient(180deg, #c98a4f, #a8703b);
  color: #fff8e6; border: 2.5px solid var(--logo-outline, #2b1a10); border-radius: 8px;
  padding: 2px 10px 1px; font-family: var(--font-book, "Patrick Hand", cursive); text-transform: uppercase;
  font-size: 15px; line-height: 1.15; letter-spacing: .4px; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(43, 26, 16, .55); box-shadow: 0 3px 0 rgba(43, 26, 16, .3);
}
.world-map-wrap.is-3d .wm-badge { right: 0; bottom: auto; top: 44px; width: 26px; height: 26px; border: 2.5px solid var(--logo-outline, #2b1a10); }
.world-map-wrap.is-3d .world-marker.visited .wm-disc { box-shadow: 0 0 0 4px var(--hill-grass, #9ed426), 0 0 0 7px var(--logo-outline, #2b1a10), 0 8px 14px rgba(43, 26, 16, .3); }
.world-map-wrap.is-3d .world-marker.next .wm-disc {
  box-shadow: 0 0 0 4px var(--tractor-yellow, #f5c400), 0 0 0 7px var(--logo-outline, #2b1a10), 0 0 26px 10px rgba(255, 226, 90, .75);
  animation: wmGlow 1.6s ease-in-out infinite;
}
.world-map-wrap.is-3d .world-marker.locked { filter: saturate(.25) brightness(.96); }
.world-map-wrap.is-3d .world-marker.locked img { filter: grayscale(1); opacity: .6; }
.world-map-wrap.is-3d .wm-flag {
  display: block; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--barn-red, #d9332b); color: #fff; white-space: nowrap;
  border: 2.5px solid var(--logo-outline, #2b1a10); border-radius: 999px; padding: 3px 12px;
  font-family: var(--font-book, "Patrick Hand", cursive); text-transform: uppercase; font-size: 16px; letter-spacing: .4px;
  box-shadow: 0 3px 0 rgba(43, 26, 16, .3);
}
.world-map-wrap.is-3d .wm-flag::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--logo-outline, #2b1a10); border-bottom: 0;
}
.world-map-wrap.is-3d .world-marker:hover .wm-disc, .world-map-wrap.is-3d .world-marker:focus-visible .wm-disc { transform: scale(1.08); }
.world-map-wrap.is-3d .wm-disc { transition: transform .15s ease; }
.world-map-wrap.is-3d .world-marker:focus-visible { outline: none; }
.world-map-wrap.is-3d .world-marker:focus-visible .wm-name { outline: 3px solid var(--focus, #1f6fa8); outline-offset: 2px; }
.world-map-wrap.is-flying .world-marker { pointer-events: none; }
@keyframes wmGlow { 50% { box-shadow: 0 0 0 4px var(--tractor-yellow, #f5c400), 0 0 0 7px var(--logo-outline, #2b1a10), 0 0 34px 16px rgba(255, 226, 90, .9); } }

/* map tools: flat/3D toggle (top-right) and the big Play in 3D button (bottom-right) */
.world-map-tools { position: absolute; inset: 0; z-index: 1100; pointer-events: none; }
.world-map-tools > button { pointer-events: auto; position: absolute; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.world-map-tools > button[hidden] { display: none; }
.world-mode-btn {
  top: 12px; right: 12px; min-height: 48px; padding: 0 16px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream, #f8f2d6); color: var(--text, #2b1a10);
  border: 3px solid var(--logo-outline, #2b1a10); border-radius: 999px;
  box-shadow: 0 4px 0 var(--logo-outline, #2b1a10);
  font-family: var(--font-display, "Fredoka", sans-serif); font-weight: 600; font-size: 16px;
  transition: transform .1s ease, box-shadow .1s ease;
}
.world-mode-btn svg { width: 22px; height: 22px; fill: currentColor; }
.world-play3d {
  right: 14px; bottom: 16px; min-height: 64px; padding: 6px 22px 6px 8px;
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  background: linear-gradient(180deg, #ef4a3f, var(--barn-red, #d9332b) 55%, #b9221c); color: #fff;
  border: 3px solid var(--logo-outline, #2b1a10); border-radius: 999px;
  box-shadow: 0 6px 0 var(--logo-outline, #2b1a10), 0 14px 26px rgba(43, 26, 16, .3);
  transition: transform .1s ease, box-shadow .1s ease;
}
.world-play3d-ic {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tractor-yellow, #f5c400); border: 3px solid var(--logo-outline, #2b1a10);
}
.world-play3d-ic svg { width: 24px; height: 24px; fill: var(--logo-outline, #2b1a10); margin-left: 3px; }
.world-play3d-tx b { display: block; font-family: var(--font-display, "Fredoka", sans-serif); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: .2px; text-shadow: 0 2px 0 rgba(43, 26, 16, .45); }
.world-play3d-tx small { display: block; font-family: var(--font-book, "Patrick Hand", cursive); text-transform: uppercase; font-size: 14px; letter-spacing: .4px; opacity: .95; margin-top: 2px; }
.world-mode-btn:hover, .world-play3d:hover { transform: translateY(-1px); }
.world-mode-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--logo-outline, #2b1a10); }
.world-play3d:active { transform: translateY(6px); box-shadow: 0 0 0 var(--logo-outline, #2b1a10), 0 6px 12px rgba(43, 26, 16, .25); }
.world-mode-btn:focus-visible, .world-play3d:focus-visible { outline: 3px solid var(--focus, #1f6fa8); outline-offset: 3px; }
.world-map-wrap:not(.mode-3d) .world-play3d { min-height: 56px; }

/* the location header shows the 3D view of the place when the map is in 3D */
.world-loc-head .world-loc-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.world-acts .world-play-here { box-shadow: 0 4px 0 var(--logo-outline, #2b1a10); border: 3px solid var(--logo-outline, #2b1a10); }

@media (max-width: 640px) {
  .home-map-zone .world-map-wrap.mode-3d { aspect-ratio: 4 / 5; border-radius: 22px; }
  .world-map-wrap.is-3d .wm-disc { width: 46px; height: 46px; margin: 6px 6px 0; }
  .world-map-wrap.is-3d .wm-badge { top: 32px; width: 22px; height: 22px; }
  .world-map-wrap.is-3d .wm-name { font-size: 13px; padding: 1px 7px 0; margin-top: 6px; }
  .world-map-wrap.is-3d .wm-flag { font-size: 14px; padding: 2px 10px; }
  .world-mode-btn { top: 10px; right: 10px; font-size: 14px; padding: 0 12px 0 10px; }
  .world-play3d { right: 10px; bottom: 12px; min-height: 56px; padding: 4px 16px 4px 6px; }
  .world-play3d-ic { width: 42px; height: 42px; }
  .world-play3d-tx b { font-size: 19px; }
  .world-play3d-tx small { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-map-wrap.is-3d .world-marker.next .wm-disc, .u3d-dio-load img { animation: none; }
  .world-marker.shake { animation: none; }
}
@media (max-width: 640px) {
  /* fewer words on a small map: only the next and visited stops wear name boards */
  .world-map-wrap.is-3d .world-marker.locked .wm-name { display: none; }
  .world-map-wrap.is-3d .wm-disc { width: 42px; height: 42px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--logo-outline, #2b1a10), 0 6px 10px rgba(43, 26, 16, .3); }
  .world-map-wrap.is-3d .wm-badge { top: 28px; right: -2px; }
}
@media (max-width: 640px) {
  /* on the flat map keep the corner clear of the crop-field pin */
  .world-map-wrap:not(.mode-3d) .world-play3d { min-height: 48px; padding: 3px 12px 3px 4px; gap: 6px; bottom: 8px; right: 8px; }
  .world-map-wrap:not(.mode-3d) .world-play3d-ic { width: 36px; height: 36px; border-width: 2.5px; }
  .world-map-wrap:not(.mode-3d) .world-play3d-tx b { font-size: 16px; }
  .world-map-wrap:not(.mode-3d) .world-play3d-tx small { display: none; }
  .world-map-wrap:not(.mode-3d) .world-mode-btn { min-height: 48px; top: 8px; right: 8px; font-size: 13px; }
}
