:root {
  --project-title-left: 14.5rem;
}

[local-style="37603894"],
[local-style="18059028"] {
  mix-blend-mode: difference;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #000;
  overflow: hidden;
  cursor: none !important;
}

a:active { opacity: 0.7; }
.page a.active { opacity: .4; }

img {
  border: 0;
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0 0 0 2em;
}

blockquote {
  margin: 0;
  padding: 0 0 0 2em;
}

hr {
  background: rgba(127, 127, 127, 0.2);
  border: 0;
  height: 1px;
}

[data-css-preset] body { background-color: #000; }
[data-css-preset] .page { background-color: initial; }

/* === WebGL homepage === */

#homeViewer {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  cursor: none !important;
  border-radius: 0 !important;
}

#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: none !important;
  border-radius: 0 !important;
}

/* === Top Bar === */

#topBar {
  position: fixed;
  top: 0.7rem;
  left: 0.8rem;
  right: 0.8rem;
  z-index: 40;

  display: flex;
  justify-content: space-between;

  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.6rem;
  line-height: 1;

  mix-blend-mode: difference;
}

#topBar.hidden {
  opacity: 0;
  pointer-events: none;
}

#topLeft {
  display: flex;
  gap: 1.2rem;
}

#topRight {
  display: flex;
  gap: 1.8rem;
}

#topRight button,
#closeAbout {
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#autoplayBtn {
  display: none !important;
}

/* === Cursor === */

#navZone {
  position: fixed;
  inset: 0;
  z-index: 25;
  cursor: none !important;
}

#navZone.hidden {
  pointer-events: none;
}

#cursorHint {
  position: fixed;
  pointer-events: none;
  z-index: 50;

  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.5rem;
  line-height: 1;

  transform: translate(-50%, -50%);
  white-space: nowrap;
  mix-blend-mode: difference;
}

/* === About === */

#aboutPanel {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  overflow-y: auto;
  border-radius: 0 !important;
}

#aboutPanel.active {
  opacity: 1;
  pointer-events: auto;
}

#aboutPanel,
#aboutPanel * {
  cursor: auto !important;
}

#aboutTopBar {
  position: fixed;
  top: 0.7rem;
  left: 0.8rem;
  right: 0.8rem;
  z-index: 90;

  display: flex;
  justify-content: space-between;

  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.6rem;
  line-height: 1;

  mix-blend-mode: difference;
}

#aboutLeft {
  display: flex;
  gap: 1.2rem;
}

#aboutRight {
  display: flex;
  gap: 1.8rem;
}

/* === About Text === */

#aboutText {
  padding: 0.8rem 1.2rem 4rem 1.2rem;
  max-width: 96vw;

  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

#aboutText p {
  margin: 0 0 2.5rem 0;
}

#aboutText p:nth-of-type(-n+3) {
  margin-left: 0;
  max-width: 96vw;
}

#aboutText p:nth-of-type(n+4) {
  margin-left: var(--project-title-left);
  max-width: calc(96vw - var(--project-title-left));

  font-size: 2rem;
  line-height: 1.5;
}

#aboutText p:nth-of-type(4) {
  margin-top: 4rem;
}

/* === Info list === */

.infoList {
  margin-top: 4rem;

  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.05;
}

.infoRow {
  display: grid;
  grid-template-columns: var(--project-title-left) 1fr;
  column-gap: 0;
  margin-bottom: 0.35rem;
}

.infoRow div:first-child:not(:empty) {
  grid-column: 1 / -1;
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
}

.infoRow div:first-child:empty {
  display: none;
}

.infoRow div:nth-child(2) {
  grid-column: 1;
}

.infoRow div:nth-child(3) {
  grid-column: 2;
}

.infoDivider {
  border: 0;
  margin: 2.8rem 0 0 0;
}

/* === Contact === */

.contactBlock {
  margin-top: 6rem;
  margin-left: 0;
  max-width: 96vw;

  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.contactBlock p {
  margin: 0 0 2.5rem 0;
}

.contactBlock a {
  color: #fff;
  text-decoration: none;
}

.contactBlock a:hover {
  opacity: 0.6;
}

/* === Mobile === */

@media (max-width: 768px) {

  #homeViewer,
  #heroCanvas {
    height: 100vh;
  }

  /* 顶部：只放 SONOSONO 和 About */
  #topBar {
    top: 0.6rem;
    bottom: auto;
    left: 0.7rem;
    right: 0.7rem;

    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    justify-content: space-between;
  }

  #topLeft {
    position: static;
    display: block;
    max-width: 60vw;
  }

  #topLeft span:first-child {
    display: block;
    margin-bottom: 0;
  }

  /* 手机端隐藏底部信息在 topLeft 里的默认位置 */
  #projectIndex,
  #projectTitle {
    display: none;
  }

  #topRight {
    position: static;
    display: flex;
    gap: 0.8rem;
  }

  /* 底部：只放 06/25 Project 06... */
  #projectIndex {
    display: inline;
    position: fixed;
    bottom: 0.7rem;
    left: 0.7rem;
    margin-right: 0.4rem;
  }

  #projectTitle {
    display: inline;
    position: fixed;
    bottom: 0.7rem;
    left: 5.2rem;
    max-width: calc(100vw - 5.9rem);
    white-space: normal;
  }

  #aboutTopBar {
    top: 0.6rem;
    left: 0.7rem;
    right: 0.7rem;
    font-size: 1.5rem;
  }

  #cursorHint {
    display: none;
  }

  #navZone {
    cursor: auto;
  }

  /* 手机端 About：只调字号和行距 */
  #aboutText {
    padding: 0.7rem;
    font-size: 1.85rem;
    line-height: 1.35;
  }

  #aboutText p:nth-of-type(-n+3) {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-left: 0;
    max-width: 100%;
  }

  #aboutText p:nth-of-type(n+4) {
    margin-left: 0;
    max-width: 100%;
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .infoList {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .infoRow {
    grid-template-columns: 6.5rem 1fr;
  }

  .infoRow div:nth-child(3) {
    line-height: 1.3;
  }

  .contactBlock {
    margin-left: 0;
    max-width: 100%;
    font-size: 1.85rem;
    line-height: 1.35;
  }
}

/* Remove possible Cargo radius */

html,
body,
#homeViewer,
#heroCanvas,
#aboutPanel,
.main_container,
.content_container,
.page,
.container {
  border-radius: 0 !important;
}

#aboutText p:nth-of-type(n+4):nth-of-type(-n+6) {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #000;
  overflow: hidden;
  cursor: none !important;
  height: 100%;
}

#homeViewer {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  cursor: none !important;
  border-radius: 0 !important;
}

#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: none !important;
  border-radius: 0 !important;
}