@font-face {
  font-family: "WFVisualSans";
  src: url("WFVisualSansVF.ttf") format("truetype");
  font-weight: 100 900;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  background: #690d0d;
}

body {
  min-height: 100vh;
  font-family: "WFVisualSans", sans-serif;
  background: linear-gradient(141deg, #ed1d1d 0%, #690d0d 100%);
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-text {
  position: absolute;
  top: clamp(16px, 3vmin, 52px);
  right: clamp(16px, 3vmin, 52px);
  text-align: right;
  line-height: 1;
  pointer-events: none;
}

.top-text .line {
  display: block;
  font-size: clamp(34px, min(8.5vw, 9.5vh), 108px);
  color: #ffffff;
  font-weight: 685;
  font-variation-settings: "opsz" 100;
  letter-spacing: -0.015em;
}

a.highlight {
  pointer-events: auto;
}

.highlight {
  color: #ffd666;
  text-decoration: underline;
  text-underline-offset: 0.05em;
  text-decoration-thickness: 0.055em;
}

.eye-wrap {
  position: relative;
  width: clamp(260px, min(88vw, 75vh), 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-wrap::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(215, 52, 52, 0.65) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.eye-wrap svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.bottom-left {
  position: absolute;
  bottom: clamp(16px, 3vmin, 52px);
  left: clamp(16px, 3vmin, 52px);
  pointer-events: none;
  line-height: 1.15;
}

.bottom-left .main-text {
  display: block;
  font-size: clamp(20px, min(4.5vw, 5.2vh), 60px);
  color: #fff8d6;
  font-weight: 800;
}

.bottom-left .sub-text {
  display: block;
  font-size: clamp(11px, min(2.1vw, 2.5vh), 28px);
  color: #fff8d6;
  font-weight: 500;
}

.bottom-right {
  position: absolute;
  bottom: clamp(16px, 4vmin, 52px);
  right: clamp(16px, 4vmin, 52px);
  line-height: 0;
}

#qr-code {
  display: block;
  width: clamp(72px, min(14vw, 16vh), 160px);
  height: auto;
  image-rendering: pixelated;
}

/* 404.html */

.not-found {
  font-size: clamp(48px, min(12vw, 14vh), 160px);
  font-weight: 685;
  font-variation-settings: "opsz" 100;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}

/* sik.html */

.lore-wrap {
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  word-wrap: break-word;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 6vmin, 64px);
  gap: clamp(16px, 3vmin, 36px);
}

.lore-title {
  font-size: clamp(24px, min(5vw, 6vh), 64px);
  font-weight: 685;
  font-variation-settings: "opsz" 100;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.015em;
  line-height: 1;
}

.lore-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 214, 102, 0.2);
  border-radius: 12px;
  padding: clamp(20px, 4vmin, 48px);
  max-width: 640px;
  width: 100%;
  backdrop-filter: blur(4px);
}

.lore {
  font-size: clamp(13px, min(2vw, 2.4vh), 22px);
  color: #fff8d6;
  font-weight: 500;
  line-height: 1.7;
}

.btn-link {
  text-decoration: none;
}

.btn-highlight {
  text-decoration: underline;
  text-underline-offset: 0.05em;
  text-decoration-thickness: 0.055em;
  font-weight: 700;
}

.btn {
  font-family: "WFVisualSans", sans-serif;
  font-size: clamp(13px, min(2vw, 2.2vh), 20px);
  font-weight: 700;
  font-weight: 500;
  color: #690d0d;
  background: #ffd666;
  border: none;
  border-radius: 8px;
  padding: clamp(10px, 1.5vmin, 18px) clamp(20px, 3vmin, 40px);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
}

/* portrait mobile */
@media (max-width: 768px) and (orientation: portrait) {
  html {
    height: 100dvh;
    overflow: hidden;
  }

  body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
}

/* landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
  html {
    height: 100dvh;
    overflow: hidden;
  }

  body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  /* index.html: column layout so nothing overlaps */
  body:has(.eye-wrap) {
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 8px 12px;
  }

  body:has(.eye-wrap) .top-text {
    position: static;
    text-align: right;
    flex-shrink: 0;
  }

  body:has(.eye-wrap) .top-text .line {
    font-size: clamp(16px, min(5vw, 7vh), 40px);
  }

  body:has(.eye-wrap) .eye-wrap {
    width: clamp(80px, 45vh, 200px);
    align-self: center;
    flex-shrink: 0;
  }

  body:has(.eye-wrap) .bottom-left {
    position: static;
    flex-shrink: 0;
    padding-right: 72px;
  }

  body:has(.eye-wrap) .bottom-left .main-text {
    font-size: clamp(14px, min(3vw, 4vh), 28px);
  }

  body:has(.eye-wrap) .bottom-left .sub-text {
    font-size: clamp(10px, min(1.8vw, 2.2vh), 18px);
  }

  body:has(.eye-wrap) .bottom-right {
    bottom: 8px;
    right: 12px;
  }

  body:has(.eye-wrap) #qr-code {
    width: clamp(40px, 9vh, 60px);
  }

  /* sik.html: allow scroll so button isn't cut off */
  .lore-wrap {
    min-height: 100dvh;
    height: 100dvh;
    overflow-y: auto;
    padding: 12px 16px;
    gap: clamp(8px, 2vh, 16px);
  }
}
