:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, "Source Han Sans SC", "Noto Sans SC", sans-serif;
  background: #030303;
  color: #f7f7f2;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #030303;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.orchid-page {
  --mx: 0px;
  --my: 0px;
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(181, 160, 255, 0.12), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.055), transparent 27%),
    #030303;
}

.canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.technical-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translate3d(calc(var(--mx) * -0.22), calc(var(--my) * -0.18), 0);
  opacity: 0.86;
  pointer-events: none;
}

.grid-plane {
  position: absolute;
  inset: 8vh 5vw;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 68%);
}

.arc {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.arc-one {
  width: 46vw;
  height: 46vw;
  left: 27vw;
  top: 16vh;
  border-left-color: rgba(181, 160, 255, 0.24);
  border-bottom-color: transparent;
}

.arc-two {
  width: 28vw;
  height: 28vw;
  right: 9vw;
  bottom: 8vh;
  border-top-color: rgba(255, 255, 255, 0.14);
  border-right-color: transparent;
}

.crosshair {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.42);
}

.crosshair::before {
  left: 31px;
  top: 0;
  width: 1px;
  height: 64px;
}

.crosshair::after {
  top: 31px;
  left: 0;
  width: 64px;
  height: 1px;
}

.crosshair-left {
  left: 7vw;
  bottom: 18vh;
}

.crosshair-right {
  right: 10vw;
  top: 20vh;
}

.axis-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.axis-horizontal {
  left: 12vw;
  right: 12vw;
  top: 50%;
  height: 1px;
}

.axis-vertical {
  top: 10vh;
  bottom: 10vh;
  left: 50%;
  width: 1px;
}

.interface {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(420px, 1.35fr) minmax(260px, 0.58fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(24px, 4vw, 72px);
  pointer-events: none;
}

.topbar {
  position: fixed;
  z-index: 5;
  left: clamp(20px, 3vw, 54px);
  right: clamp(20px, 3vw, 54px);
  top: clamp(18px, 3vw, 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  pointer-events: none;
}

.topbar a {
  pointer-events: auto;
}

.topbar a:hover {
  color: #fff;
}

.title-panel {
  grid-column: 1;
  max-width: 540px;
  padding-top: 8vh;
  pointer-events: auto;
}

.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(181, 160, 255, 0.82);
}

.title-panel h1 {
  margin: 0;
  font-size: clamp(56px, 6.8vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.title-panel h1 span {
  display: block;
  margin-top: 18px;
  font-size: clamp(32px, 3.4vw, 72px);
  letter-spacing: -0.055em;
  color: rgba(255, 255, 255, 0.72);
}

.title-panel p:last-child {
  max-width: 430px;
  margin: 34px 0 0;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.view-panel {
  grid-column: 3;
  justify-self: end;
  width: min(290px, 100%);
  padding-top: 10vh;
  pointer-events: auto;
}

.view-count {
  margin-bottom: 24px;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thumb-card {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(8, 8, 8, 0.72);
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease, color 220ms ease;
}

.thumb-card span,
.thumb-card small {
  display: block;
}

.thumb-card span {
  font-size: 20px;
  font-weight: 800;
}

.thumb-card small {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.thumb-card:hover,
.thumb-card.is-active {
  transform: translateY(-3px);
  color: #fff;
  border-color: #fff;
}

.arrow-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.arrow-row button {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #050505;
  background: #b5a0ff;
  cursor: pointer;
  font-size: 24px;
  transition: transform 220ms ease, background 220ms ease;
}

.arrow-row button:hover {
  transform: translateY(-2px);
  background: #fff;
}

.model-loading,
.model-error {
  min-width: 240px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
  text-align: center;
}

.model-loading span {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.model-loading-bar {
  height: 2px;
  margin: 18px 0 12px;
  background: rgba(255, 255, 255, 0.18);
}

.model-loading-bar i {
  display: block;
  height: 100%;
  background: #b5a0ff;
}

.model-loading small,
.model-error span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.64);
}

.model-error strong {
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 1180px) {
  .interface {
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
    padding: 42px;
  }

  .view-panel {
    grid-column: 2;
    align-self: end;
    padding-top: 0;
  }

  .title-panel {
    padding-top: 10vh;
  }
}

@media (max-width: 760px) {
  .orchid-page {
    min-height: 100svh;
  }

  .canvas-wrap {
    top: 22svh;
    bottom: 20svh;
    height: auto;
  }

  .interface {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    padding: 22px;
  }

  .topbar {
    position: relative;
    inset: auto;
    font-size: 10px;
  }

  .topbar span {
    display: none;
  }

  .title-panel {
    max-width: none;
    padding-top: 28px;
  }

  .title-panel h1 {
    font-size: clamp(44px, 14vw, 74px);
    letter-spacing: -0.08em;
  }

  .title-panel h1 span {
    max-width: 310px;
    font-size: clamp(26px, 7vw, 42px);
  }

  .title-panel p:last-child {
    max-width: 340px;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.65;
  }

  .view-panel {
    width: 100%;
    padding: 0;
  }

  .view-count {
    margin-bottom: 12px;
    font-size: 42px;
  }

  .thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .thumb-card {
    min-height: 64px;
    padding: 10px;
    border-radius: 14px;
  }

  .thumb-card span {
    font-size: 15px;
  }

  .thumb-card small {
    margin-top: 12px;
    font-size: 8px;
  }

  .arrow-row {
    position: absolute;
    right: 22px;
    bottom: 112px;
  }

  .arrow-row button {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}
