@font-face {
  font-family: "CoFo Sans Pixel";
  src: url("assets/Font/CoFoSansPixel-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --dialog-line-reveal-duration: 520ms;
  --dialog-line-hide-duration: 520ms;
  --dialog-line-stagger: 440ms;
  --app-height: 100vh;
}

* {
  box-sizing: border-box;
}

button,
a,
[role="button"],
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  background: #000;
  font-family: "CoFo Sans Pixel", sans-serif;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  inset: 0;
}

.main-panel {
  width: 100%;
  height: 100%;
  max-height: var(--app-height, 100vh);
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  width: min(100%, calc(var(--app-height, 100vh) * (1080 / 1920)));
  height: min(var(--app-height, 100vh), calc(100vw * (1920 / 1080)));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#sceneVideo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.desktopFrame {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#interactiveBackground {
  display: none;
  position: absolute;
  background: #000;
  pointer-events: none;
  z-index: 1;
}

#debugElapsedTime {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 20;
  transition: top 0.2s ease, right 0.2s ease;
}

.interactive-skip-button {
  display: block;
  position: absolute;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  z-index: 30;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.interactive-skip-button-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#dialogBoxLayer, .dialogBoxLayer {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  --line-reveal-alpha: 0;
  --line-thickness-px: 3px;
  --line-step-px: 6px;
  -webkit-mask-image: repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, var(--line-reveal-alpha)) 0 var(--line-thickness-px),
      rgba(0, 0, 0, 0) var(--line-thickness-px) var(--line-step-px));
  mask-image: repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, var(--line-reveal-alpha)) 0 var(--line-thickness-px),
      rgba(0, 0, 0, 0) var(--line-thickness-px) var(--line-step-px));
}

#dialogBoxMask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
}

#dialogBoxBody,
#dialogBoxTop {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#dialogBoxTop {
  position: absolute;
  left: 0;
  top: 0;
}

#dialogBodyTextWrap {
  display: none;
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translateX(-50%);
  width: min(58vw, 920px);
  z-index: 4;
  pointer-events: none;
  text-align: left;
}

#dialogOverlayImageWrap {
  display: none;
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
}

#dialogOverlayImage {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

#dialogOverlayVideoWrap {
  display: none;
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
}

#dialogOverlayVideo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

#dialogBodyText {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  white-space: normal;
}

.dialog-overlay-line {
  display: block;
  overflow-x: visible;
  overflow-y: hidden;
}

.dialog-overlay-line+.dialog-overlay-line {
  margin-top: var(--dialog-line-gap, 0px);
}

.dialog-overlay-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineSlideIn var(--dialog-line-reveal-duration) cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  animation-delay: calc(var(--line-index, 0) * var(--dialog-line-stagger));
}

.dialog-overlay-line-inner.is-static {
  animation: none;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

#dialogBodyText.is-hiding .dialog-overlay-line-inner {
  animation: lineSlideOut var(--dialog-line-hide-duration) cubic-bezier(0.4, 0, 1, 1) forwards !important;
  animation-delay: 0ms !important;
}

.dialogTitleText.is-hiding .dialog-overlay-line-inner,
.dialogBodyText.is-hiding .dialog-overlay-line-inner {
  animation: lineSlideOut var(--dialog-line-hide-duration) cubic-bezier(0.4, 0, 1, 1) forwards !important;
  animation-delay: 0ms !important;
}

@keyframes lineSlideIn {
  0% {
    opacity: 1;
    transform: translateY(100%);
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lineSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(100%);
    filter: blur(2px);
  }
}

#interactiveLayer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 14;
  pointer-events: none;
}


.dialogBoxLayer,
.dialogMask,
.dialogTop,
.interactive-choice-button,
.interactive-skip-button {
  -webkit-tap-highlight-color: transparent;
}

.dialogBoxLayer:focus,
.dialogBoxLayer:focus-visible,
.interactive-choice-button:focus,
.interactive-choice-button:focus-visible,
.interactive-skip-button:focus,
.interactive-skip-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.dialogMask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}

.dialogBody,
.dialogTop {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.dialogTop {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  cursor: pointer;
}

.dialogTitleTextWrap,
.dialogBodyTextWrap {
  display: none;
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translateX(-50%);
  width: min(58vw, 920px);
  z-index: 17;
  pointer-events: none;
  text-align: left;
}

.dialogBodyTextWrap {
  pointer-events: auto;
}

.dialogExpandIcon {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  height: auto;
  z-index: 17;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.dialogTitleText,
.dialogBodyText {
  margin: 0;
  font-size: clamp(0.82rem, 1.42vw, 1.25rem);
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  line-height: 1.45;
  white-space: pre-wrap;
  user-select: none;
}

.dialogBodyText {
  pointer-events: auto;
}

.interactive-dialog-inline-link {
  color: inherit;
  text-decoration: underline;
  pointer-events: auto;
  cursor: pointer;
}

.interactive-choice-list {
  position: absolute;
  left: 50%;
  bottom: min(4vh, 28px);
  transform: translateX(-50%);
  width: min(95vw, 1260px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
  pointer-events: none;
}

.interactive-choice-button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: min(31vw, 395px);
  flex: 0 0 auto;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  transition: transform 110ms ease;
}

.interactive-choice-button:hover {
  transform: translateY(-2px);
}

.interactive-choice-button:disabled {
  cursor: default;
  transform: none;
}

.interactive-choice-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 900px) {
  .interactive-choice-list {
    width: 100%;
    padding-inline: 10px;
    bottom: 10px;
  }
}

.social-share-layer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.social-share-profile-box {
  position: absolute;
  pointer-events: none;
}

.social-share-profile-box-image {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.social-share-profile-image {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.social-share-buttons {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}

.social-share-button {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  font-family: "CoFo Sans Pixel", sans-serif;
  color: #fff;
  text-align: left;
}

.social-share-button-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.social-share-button-icon,
.social-share-button-arrow {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.social-share-button-text {
  position: absolute;
  display: block;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}

.social-share-separator {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.social-share-toast {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-50% + var(--toast-hidden-y, 18px)));
  z-index: 70;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-family: "CoFo Sans Pixel", sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.denied-privacy-layer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.denied-privacy-image {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.denied-privacy-buttons {
  position: absolute;
  display: block;
  pointer-events: none;
}

.denied-privacy-button {
  flex: 0 0 auto;
  pointer-events: auto;
}

.social-share-about-dialog-layer {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 60;
  --line-reveal-alpha: 0;
  --line-thickness-px: 3px;
  --line-step-px: 6px;
  -webkit-mask-image: repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, var(--line-reveal-alpha)) 0 var(--line-thickness-px),
      rgba(0, 0, 0, 0) var(--line-thickness-px) var(--line-step-px));
  mask-image: repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, var(--line-reveal-alpha)) 0 var(--line-thickness-px),
      rgba(0, 0, 0, 0) var(--line-thickness-px) var(--line-step-px));
}

.social-share-about-dialog-mask,
.social-share-about-dialog-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}

.social-share-about-dialog-body,
.social-share-about-dialog-top {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.social-share-about-dialog-top {
  pointer-events: auto;
}

.social-share-about-dialog-title,
.social-share-about-dialog-subtitle,
.social-share-about-dialog-body-text {
  position: absolute;
  margin: 0;
  font-family: "CoFo Sans Pixel", sans-serif;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
  user-select: none;
  pointer-events: none;
}

.social-share-about-dialog-subtitle {
  font-weight: 600;
}

.social-share-about-dialog-body-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.social-share-about-dialog-logo {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.social-share-about-dialog-collapse {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: pointer;
}

.social-share-about-dialog-website-button {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.social-share-about-dialog-website-button-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.social-share-about-dialog-website-button-text {
  position: absolute;
  display: block;
  color: #fff;
  font-family: "CoFo Sans Pixel", sans-serif;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  pointer-events: none;
}

.social-share-about-dialog-website-button-arrow {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
