/* Foldfall 2.5D preview — only additions on top of main.css. */

/* Link back to the flat 2D game. In menus it sits in the bottom-right corner;
   in a match main25d.js parks it at the top centre of the board area (between
   the HUD columns / under the portrait top bar), above the paper's far edge. */
#mode-switch {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 50;
  font-family: "Patrick Hand", cursive;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  color: #fbf6e6;
  background: rgba(30, 20, 12, 0.55);
  padding: 2px 9px;
  border-radius: 10px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity .2s;
}
#mode-switch:hover, #mode-switch:focus-visible { opacity: 1; }
#mode-switch.in-board {
  right: auto;
  bottom: auto;
  font-size: 12px;
  padding: 1px 8px;
  opacity: 0.45;
  transform: translateX(-50%);
}
/* Overlays (pause, game over, handoff) and the tutorial own the screen. */
body.overlay-open #mode-switch.in-board { display: none; }
