/* The poster is the exact opening frame. The 3D scene takes over in place. */
.hero-view.world-touring .world-canvas { opacity: 1; }
.world-control { touch-action: pinch-zoom; }
.world-control .coin,
.world-control.is-dragging .coin {
  animation: none;
  translate: none;
  transition: none;
}
.world-control .coin::after {
  content: '';
  position: absolute;
  inset: .14rem;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid #dcffc428;
  border-block-start-color: #e2ffca73;
}
.geo-map .coin { inset: 0 auto auto 0; z-index: 1; }
.currency-orbit:not(.geo-map) .atlas-coin { display: none; }
.atlas-coin {
  --coin-size: clamp(2rem, 4.9vw, 3.75rem);
  font-size: clamp(.67rem, 1.4vw, 1.12rem);
}
.atlas-coin[data-kind=crypto] {
  color: #fff0c7;
  border-color: #f2d187b3;
  background: radial-gradient(circle at 33% 24%, #6a6035, #353a20 65%, #14241a);
}
.atlas-coin[data-kind=stable] {
  border-color: #bce8c9bb;
  background: radial-gradient(circle at 33% 24%, #407166, #124739 64%, #062820);
}
.coin:is([data-kind=crypto], [data-kind=stable]) {
  --coin-size: clamp(2.85rem, 5vw, 4.25rem);
}
.coin:is([data-code=USDC], [data-code=EURC]) {
  /* The circular marks stay at least 32px even at the globe's far limb. */
  --well-size: 92%;
  --art-size: 100%;
}
.coin:is([data-kind=crypto], [data-kind=stable]) .coin-face {
  display: grid;
  place-items: center;
  inline-size: var(--well-size, 84%);
  block-size: var(--well-size, 84%);
  border-radius: 50%;
  background: #f5f8ed;
}
.coin .currency-mark {
  display: block;
  inline-size: var(--art-size, 90%);
  block-size: var(--art-size, 90%);
  object-fit: contain;
}
.geo-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  color: #dcf8a5;
}
.geo-anchor::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 2px #abd26650, 0 0 .45rem #b1f855;
}
.geo-anchor i {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
  background: #cfed9b85;
}
@media (prefers-reduced-motion: no-preference) {
  .world-touring .world-canvas, .world-active .world-canvas { transition: opacity .22s ease; }
}

.globe-directions {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  inset: auto .65rem .55rem auto;
  border: 1px solid #bad5b378;
  border-radius: 2rem;
  padding: .05rem .1rem;
  background: #06251bf5;
  box-shadow: 0 .15rem .7rem #03190e45;
  touch-action: manipulation;
}
.globe-directions[hidden], .world-control .rotate-hint[hidden] { display: none; }
.globe-directions button {
  display: grid;
  place-items: center;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #e0ffb6;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.globe-directions button:focus-visible {
  outline: 2px solid #d3ff99;
  outline-offset: -3px;
}
@media (hover: hover) {
  .globe-directions button:hover { background: #78af7040; }
}
.globe-directions button:active { background: #9ecd834d; }
.globe-directions i {
  position: relative;
  display: block;
  width: .99rem;
  height: .99rem;
  rotate: var(--bearing);
  pointer-events: none;
}
.globe-directions i::before, .globe-directions i::after {
  content: '';
  position: absolute;
  inset: 50% auto auto auto;
}
.globe-directions i::before {
  inset-inline-start: 0;
  width: .92rem;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
}
.globe-directions i::after {
  inset-inline-end: 1px;
  width: .39rem;
  height: .39rem;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
.globe-directions [data-turn=left] { --bearing: 180deg; --nudge-x: -.13rem; --nudge-y: 0; }
.globe-directions [data-turn=up] { --bearing: -90deg; --nudge-x: 0; --nudge-y: -.13rem; }
.globe-directions [data-turn=right] { --bearing: 0deg; --nudge-x: .13rem; --nudge-y: 0; }
.globe-directions [data-turn=down] { --bearing: 90deg; --nudge-x: 0; --nudge-y: .13rem; }
@media (prefers-reduced-motion: no-preference) {
  .globe-directions:not([hidden]) i { animation: globe-direction-pulse .80s ease-in-out 2; }
  .globe-directions button:active i { scale: .86; }
}
@keyframes globe-direction-pulse {
  0%, 100% { translate: 0 0; opacity: .85; }
  50% { translate: var(--nudge-x) var(--nudge-y); opacity: 1; }
}
@media (max-width: 600px) and (scripting: enabled) {
  /* A separate 44px control row keeps every currency unobstructed. */
  .hero-view:has(.globe-directions) { --globe-controls-height: 3.1rem; padding-block-end: var(--globe-controls-height); }
  .hero-view:has(.globe-directions) :is(.world-canvas,.currency-orbit) { inset-block-end: var(--globe-controls-height); block-size: calc(100% - var(--globe-controls-height)); }
  .globe-directions {
    inset: auto 0 0;
    height: var(--globe-controls-height);
    justify-content: center;
    gap: .55rem;
    padding: 0;
    border: 0;
    border-top: 1px solid #c4f89c35;
    border-radius: 0;
    background: #09291e;
    box-shadow: none;
  }
  .globe-directions button { inline-size: 2.75rem; block-size: 2.75rem; }
  .hero-view:has(.globe-directions) .rotate-hint { inset: auto .75rem .78rem auto; }
}
