@font-face {
  font-family: "OtherHand";
  src: url("assets/fonts/OtherHand.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OtherHand";
  src: url("assets/fonts/OtherHand-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --text: #f0f0f0;
  --accent: #ff2a2a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  font-family: "OtherHand", system-ui, sans-serif;
  color: var(--text);
}

body {
  position: fixed;
  inset: 0;
  touch-action: manipulation;
  overscroll-behavior: none;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
}

.desktop-warning {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 10;
  text-align: center;
  padding: 24px;
}

.desktop-warning__inner {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 6;
  transition: opacity 0.7s ease;
}

.intro.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro__content {
  text-align: center;
  padding: 24px;
}

.intro__text {
  font-size: 22px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.intro__button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-family: "OtherHand", system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.intro__button:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.viewer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.tap-btn {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(255, 42, 42, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.12) inset;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "OtherHand", system-ui, sans-serif;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  opacity: 0;
  pointer-events: none;
}

body.is-started .tap-btn {
  opacity: 1;
  pointer-events: auto;
}

.tap-btn:active {
  transform: translateX(-50%) scale(0.94);
  box-shadow: 0 6px 16px rgba(255, 42, 42, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.2) inset;
}

.tap-btn__label {
  pointer-events: none;
}

body.desktop .desktop-warning {
  display: flex;
}

body.desktop .intro,
body.desktop .viewer,
body.desktop .tap-btn {
  display: none;
}
