/* The in-world prompt under the canvas edge. (The coin, gem and level readout is pixel art on the canvas.) */

.prompt {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  background: rgba(0, 0, 0, .72);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 600px) {
  .prompt { font-size: 12px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 5px 10px; }
}

/* The full screen button in the corner of the game, only where there is a mouse: a pixel frame
   with corner brackets. The icon lives in a custom property so the shared button hover rule
   (which resets the background) cannot wipe it. */
.fs-toggle {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h6v2H3v4H1zM9 1h6v6h-2V3H9zM1 9h2v4h4v2H1zM13 9h2v6H9v-2h4z'/%3E%3C/svg%3E");
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 2px solid #0d0e15;
  border-radius: 0;
  background: #4a4b5e var(--icon) center / 18px 18px no-repeat;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 3px 3px 0 #0d0e15;
  opacity: .8;
  z-index: 7;
}
.fs-toggle:hover:not(:disabled) { background: #5a5b70 var(--icon) center / 18px 18px no-repeat; opacity: 1; }
.fs-toggle.on { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h2v6H1V5h4zM9 1h2v4h4v2H9zM1 9h6v6H5v-4H1zM9 9h6v2h-4v4H9z'/%3E%3C/svg%3E"); }
/* Phones and tablets install to their home screen to go full screen instead */
@media (hover: none), (pointer: coarse), (max-width: 700px), (max-height: 500px) { .fs-toggle { display: none !important; } }

/* The guided start: a small pixel-framed card under the HUD with the current hint and a skip button. */
.tutorial {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px);
  background: rgba(20, 22, 35, .92);
  border: 3px solid #5a5c74;
  box-shadow: 3px 3px 0 #0d0e15, inset 0 2px 0 rgba(255, 255, 255, .08);
  padding: 8px 12px 10px;
  color: #f1f1f1;
  font-size: 14px;
  line-height: 1.4;
  z-index: 5;
}
.tutorial-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tutorial-head span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8cf58c; }
.tutorial-head button {
  min-height: 0;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #4a4b5e;
  border: 2px solid #0d0e15;
  border-radius: 0;
  box-shadow: 2px 2px 0 #0d0e15;
}
.tutorial p { margin: 0; }

/* A short note over everything, menus included: the ads' cooldown when one is pressed too soon. */
.notice {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  background: rgba(20, 22, 35, .96);
  border: 3px solid #d64545;
  box-shadow: 3px 3px 0 #0d0e15, inset 0 2px 0 rgba(255, 255, 255, .08);
  padding: 6px 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  z-index: 20;
}
/* Phones: menus fill the screen with their heading at the top, so the note goes to the bottom,
   clear of the home bar, on one line. */
@media (max-width: 700px), (max-height: 500px) {
  .notice {
    position: fixed;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 700px), (max-height: 500px) {
  .tutorial { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); font-size: 13px; padding: 6px 10px 8px; }
}
