.explore-singapore, .usdc-world-entry, .singapore-return, .singapore-building-label, .singapore-card {
  border: 1px solid var(--hud-line);
  border-radius: 8px;
  background: var(--hud);
  box-shadow: 0 2px 0 #0b213d7a, 0 6px 22px #0a2e495c, inset 0 1px #c1e8ff21;
}

.explore-singapore, .usdc-world-entry, .singapore-return {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--hud-ink);
  font: 700 13px/1 var(--text);
  cursor: pointer;
}
.map-entry-points {
  position: absolute;
  z-index: 5;
  top: var(--edge);
  right: var(--edge);
  display: flex;
  gap: 6px;
}
.singapore-return { position: absolute; top: var(--edge); left: var(--edge); }
:is(.explore-singapore, .usdc-world-entry, .singapore-return) span { color: var(--hud-gold); }
:is(.explore-singapore, .usdc-world-entry, .singapore-return):hover { background: #25516d; }
.usdc-world-entry { border-color: #e4bc6bba; }
.usdc-world-entry span { font-size: 17px; }

.game-shell:is([data-singapore-mode], [data-usdc-mode]) :is(.game-header, .game-dock, .map-entry-points, .map-portfolio) { display: none; }
.game-shell[data-singapore-mode] .board-camera { visibility: hidden; }
.game-shell:is([data-singapore-mode], [data-usdc-mode]) .map-controls { top: var(--edge); bottom: auto; }
.game-shell:is([data-singapore-mode], [data-usdc-mode]) .music-error { top: calc(100% + 5px); bottom: auto; }

.singapore-board {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #1a597d;
}
.singapore-camera {
  position: absolute;
  inset: 0;
  overflow: clip;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.singapore-camera:focus { outline: none; }
.singapore-camera:focus-visible { outline: 2px solid var(--hud-gold); outline-offset: -3px; }
.singapore-camera[data-dragging] { cursor: grabbing; }
.singapore-terrain {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--terrain-width);
  height: var(--terrain-height);
  transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px))) scale(var(--map-zoom, 1));
}
.singapore-art { display: block; width: 100%; height: 100%; pointer-events: none; }

.usdc-launch {
  position: absolute;
  bottom: max(var(--edge), env(safe-area-inset-bottom));
  left: 50%;
  width: min(350px, calc(100% - 2 * var(--edge)));
  min-height: 72px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  border: 1px solid #e4bc6b;
  border-radius: 9px;
  background: linear-gradient(150deg, #194761, var(--hud-dark));
  box-shadow: 0 4px 18px #0a233bb0, inset 0 1px #fff0b54a;
  color: var(--hud-ink);
  font-family: var(--text);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.usdc-launch strong, .usdc-launch small { display: block; }
.usdc-launch strong { font-size: 18px; line-height: 1.2; }
.usdc-launch small { margin-top: 4px; color: var(--hud-gold); font-size: 13px; }
.usdc-launch-arrow { color: var(--hud-gold); font-size: 16px; }
.usdc-launch:hover { background: linear-gradient(150deg, #245d77, #102d44); }
.singapore-board:has(.singapore-card:not([hidden])) .usdc-launch { display: none; }

.usdc-launch-icon, .usdc-arrival {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid #ffe3a1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #37769d, #164365 70%);
  box-shadow: inset 0 0 0 3px #d6b46b44, 0 0 10px #ffd68280;
  color: #fff0be;
  font: 700 24px/1 var(--text);
}
.singapore-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--hud-muted);
  background: radial-gradient(ellipse at center, #245978, #173e60);
  font-size: 13px;
  pointer-events: none;
}
.singapore-board[data-loading] .singapore-terrain { visibility: hidden; }

.singapore-building {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--hit-width);
  height: var(--hit-height);
  transform: translate(-50%, -100%);
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  color: var(--hud-ink);
  cursor: pointer;
  touch-action: manipulation;
}
.singapore-building-label {
  position: absolute;
  top: 100%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font: 700 13px/1 var(--text);
  white-space: nowrap;
  transform: translateX(-50%) scale(var(--marker-scale, 1));
  transform-origin: center top;
}
.singapore-building-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid var(--hud-gold);
  border-radius: 1px;
  rotate: 45deg;
}
.singapore-building:is(:hover, :focus-visible, [aria-expanded="true"]) {
  z-index: 1;
}
.singapore-building:is(:hover, :focus-visible, [aria-expanded="true"]) .singapore-building-label {
  background: #254e64;
  border-color: #f3dda0b8;
  color: #fff0c1;
}
.singapore-building[aria-expanded="true"] .singapore-building-label::before { background: var(--hud-gold); }
.singapore-details {
  position: absolute;
  bottom: max(var(--edge), env(safe-area-inset-bottom));
  left: 50%;
  width: min(420px, calc(100% - 2 * var(--edge)));
  transform: translateX(-50%);
  pointer-events: none;
}
.singapore-card {
  overflow: auto;
  max-height: min(46svh, 320px);
  padding: 8px 15px 10px;
  border-top: 2px solid #abd8dd;
  background: linear-gradient(145deg, #173a52, var(--hud-dark));
  pointer-events: auto;
}
.singapore-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.singapore-card h2 { color: var(--hud-ink); font: 700 20px/1.1 var(--text); }
.singapore-card h2:focus { outline: none; }
.singapore-card p { margin-bottom: 8px; color: var(--hud-muted); font-size: 14px; line-height: 1.4; }
.singapore-card button {
  width: 44px;
  height: 44px;
  margin-right: -7px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  color: var(--hud-ink);
  font: 500 22px/1 var(--text);
  cursor: pointer;
}
.singapore-card ul { display: flex; flex-wrap: wrap; gap: 6px; }
.singapore-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--hud-line);
  border-radius: 5px;
  padding: 0 9px;
  color: var(--hud-aqua);
  font-size: 13px;
  font-weight: 700;
}
.singapore-card :is(a, button):hover { background: #28556c; }

.journal-actions a[data-explore-singapore] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #a8dcd17a;
  border-radius: 5px;
  color: var(--hud-aqua);
  font-size: 13px;
  font-weight: 700;
}
.journal-actions a[data-explore-singapore]:hover { background: #254e64; }

@media (max-width: 800px) {
  .map-entry-points { top: calc(var(--edge) + 61px); }
}
@media (max-aspect-ratio: 3/4) {
  .singapore-terrain { width: var(--portrait-width); height: var(--portrait-height); }
  .singapore-building {
    top: var(--portrait-y);
    left: var(--portrait-x);
    width: var(--portrait-hit-width);
    height: var(--portrait-hit-height);
  }
}

/* World map payment overlay */
[data-usdc-mode] :is(.board-unit, .marker-city:not([data-usdc-destination], .marker-stop-singapore)) { display: none; }
[data-usdc-mode] .board-terrain .marker-stop-singapore[aria-current] .marker-point { visibility: visible; }
[data-usdc-mode] .marker-city { pointer-events: none; }
[data-usdc-mode] [data-usdc-destination] :is(.marker-name, .marker-point) { pointer-events: auto; }
[data-usdc-mode] .marker-point::after { inset: -7px; }
[data-usdc-mode] .board-marker[aria-pressed="true"] .marker-name {
  border-color: #fff1cb;
  background: var(--hud-gold);
  color: #123148;
}
[data-usdc-mode] .board-marker[aria-pressed="true"] .marker-point { box-shadow: 0 0 0 5px #fff0c673; }

.usdc-board { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.usdc-board > * { pointer-events: auto; }
.usdc-panel {
  position: absolute;
  left: var(--edge);
  bottom: max(var(--edge), env(safe-area-inset-bottom));
  width: min(342px, calc(100% - 2 * var(--edge)));
  padding: 14px;
  border: 1px solid #81c4d180;
  border-top-color: #e4bc6b;
  border-radius: 9px;
  background: linear-gradient(145deg, #183e56, var(--hud-dark));
  box-shadow: 0 3px 18px #0a233baa, inset 0 1px #fff0b529;
}
.usdc-panel h2 { margin: 0; font: 800 20px/1.18 var(--text); }
.usdc-panel h2:focus { outline: none; }
.usdc-panel p { margin: 4px 0 10px; color: var(--hud-muted); font-size: 13px; }
.usdc-source { color: var(--hud-aqua); white-space: nowrap; }
.usdc-source:hover { text-decoration: underline; }
.usdc-panel .usdc-status { margin: 6px 0 0; }
.usdc-status:empty { display: none; }
.usdc-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--hud-line);
  border-radius: 6px;
  background: #102e43;
}
.usdc-order strong, .usdc-order small { display: block; }
.usdc-order strong { font-size: 13px; }
.usdc-order small { color: var(--hud-muted); font-size: 12px; }
.usdc-order button {
  min-width: 72px;
  min-height: 44px;
  border: 1px solid #f9e9bc;
  border-radius: 5px;
  color: #163347;
  background: var(--hud-gold);
  font: 800 14px/1 var(--text);
  cursor: pointer;
  touch-action: manipulation;
}
.usdc-order button:disabled { opacity: .45; cursor: default; }
.usdc-order button:not(:disabled):hover { background: #fff1cb; }
.usdc-order button:enabled:active { transform: translateY(1px); background: #fbe5a1; }
.usdc-recent {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.usdc-recent-links {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 5px;
  margin: 0;
  padding: 3px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  list-style: none;
  white-space: nowrap;
}
.usdc-recent-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 7px;
  border: 1px solid var(--hud-line);
  border-radius: 5px;
  color: var(--hud-gold);
  font-size: 12px;
  font-weight: 700;
}
.usdc-recent-links a:hover { background: #224f63; }
.usdc-recent button, .usdc-activity button {
  min-height: 44px;
  padding-inline: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--hud-muted);
  font: 700 13px/1.2 var(--text);
  cursor: pointer;
}
.usdc-recent button { flex-shrink: 0; color: var(--hud-aqua); }
.usdc-board :is(.usdc-recent, .usdc-activity) button:enabled:hover { background: #28516a; color: var(--hud-ink); }
.usdc-board .usdc-activity {
  position: absolute;
  right: var(--edge);
  bottom: max(var(--edge), env(safe-area-inset-bottom));
  display: flex;
  width: min(324px, calc(100% - 2 * var(--edge)));
  border: 1px solid #81c4d180;
  border-top-color: #e4bc6b;
  border-radius: 8px;
  background: var(--hud-dark);
  box-shadow: 0 4px 20px #08223890;
  flex-direction: column;
  max-height: min(445px, calc(100% - 2 * var(--edge) - 65px));
}
.usdc-activity header, .usdc-activity-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.usdc-activity header { padding: 3px 6px 3px 13px; border-bottom: 1px solid var(--hud-line); }
.usdc-activity h2 { margin: 0; font: 800 18px/1.2 var(--text); }
.usdc-activity h2:focus { outline: none; }
.usdc-activity header button { min-width: 44px; font-size: 20px; }
.usdc-activity-body { overflow: auto; overscroll-behavior: contain; padding: 0 12px 8px; }
.usdc-activity-summary p { margin: 0; color: var(--hud-muted); font-size: 12px; }
.usdc-activity-summary button:disabled { opacity: .45; cursor: default; }
.usdc-activity-summary button:enabled { color: var(--hud-aqua); }
.usdc-receipts, .usdc-batches { margin: 0; padding: 0; list-style: none; }
.usdc-receipts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: 2px;
  border-top: 1px solid var(--hud-line);
  font-size: 13px;
}
.usdc-receipts a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--hud-aqua);
  font-weight: 750;
}
.usdc-receipts small { color: var(--hud-muted); font-size: 11px; }
.usdc-receipts small[data-settled="true"] { color: #bcf0c4; }
.usdc-batches a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 6px;
  padding-inline: 8px;
  border: 1px solid var(--hud-line);
  border-radius: 5px;
  color: var(--hud-gold);
  font-size: 13px;
  font-weight: 700;
}
.usdc-receipts a:hover, .usdc-batches a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .usdc-activity:not([hidden]) { animation: usdc-slide-in 180ms ease-out; }
  @keyframes usdc-slide-in {
    from { opacity: 0; translate: 10px 0; }
  }
}
@media (max-width: 550px) and (orientation: portrait) {
  .usdc-board .usdc-activity {
    right: 50%;
    top: auto;
    bottom: max(var(--edge), env(safe-area-inset-bottom));
    width: min(342px, calc(100% - 2 * var(--edge)));
    max-height: min(480px, 55dvh);
    transform: translateX(50%);
  }
}
.usdc-flight { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.usdc-arrival {
  position: absolute;
  z-index: 5;
  width: 25px;
  height: 25px;
  transform: translate(-50%, calc(-100% - 4px));
  color: #513905;
  background: #fff1b4;
  font-size: 14px;
  text-decoration: none;
}
.usdc-arrival::after { content: ''; position: absolute; inset: -18px -9px 0; border-radius: 50%; }
.usdc-arrival:is(:hover, :focus-visible) { box-shadow: 0 0 16px 2px #ffd682; }
@media (prefers-reduced-motion: no-preference) {
  .usdc-arrival { animation: coin-land 360ms ease-out; }
  @keyframes coin-land {
    from { scale: .6; box-shadow: 0 0 14px 6px #ffe5a5; }
    55% { scale: 1.18; }
  }
}
@media (max-width: 550px) {
  .usdc-panel { left: 50%; translate: -50% 0; }
  [data-usdc-mode][data-overview] .marker-stop-bangkok { --label-x: -28px; --label-y: -11px; }
  [data-usdc-mode][data-overview] .marker-stop-da-nang { --label-x: 31px; --label-y: 10px; }
  [data-usdc-mode][data-overview] .marker-stop-kuala-lumpur { --label-x: -33px; }
}

@media (max-width: 550px) and (orientation: portrait) {
  .game-shell[data-usdc-mode] .board-camera { bottom: 96px; }
}
@media (max-width: 550px) and (max-height: 700px) and (orientation: portrait) {
  .game-shell[data-usdc-mode] .board-camera { bottom: 154px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .game-shell[data-usdc-mode] .board-camera { left: min(39vw, 320px); }
  .usdc-panel { width: min(36vw, 280px); padding: 10px; }
}
