@font-face {
  font-family: "JetBrainsMono Nerd";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBM_Plex_Sans/static/IBMPlexSans_Condensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBM_Plex_Sans/static/IBMPlexSans_Condensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* background */
body {
  min-height: 100vh;
  background: #0a1025;
  font-family: system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* floating back button */
#back-floating {
  position: fixed;
  top: 1rem;
  left: 1rem;
  color: #7aa2ff;
  text-decoration: none;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  z-index: 10000;
  opacity: 0.8;
}

#back-floating:hover {
  opacity: 1;
}

/* page wrapper */
.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* stamper coordinate system */
.stamper-wrap {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  min-width: 0;
}

/* image */
.stamper-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* welded text */
.overlay-text {
  position: absolute;
  top: 32%;
  left: 26%;
  width: 34%;
  color: white;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-style: italic;
  font-size: clamp(0.75rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* tablet tuning */
@media (min-width: 601px) and (max-width: 1024px) {
  .stamper-wrap {
    max-width: 1100px;
  }
}

/* rotate notice */
#rotate-notice {
  position: fixed;
  inset: 0;
  background: #0a1025;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rotate-box {
  text-align: center;
  color: white;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1rem;
  padding: 2rem;
  max-width: 320px;
}

.rotate-box a {
  display: inline-block;
  margin-top: 1.5rem;
  color: #7aa2ff;
  text-decoration: none;
}

/* UI elements use nerd font */
#back-floating,
#rotate-notice,
.rotate-box,
.rotate-box a {
  font-family: "JetBrainsMono Nerd", monospace;
  letter-spacing: 0.02em;
}
