:root {
  color-scheme: dark;
  --ink: #050607;
  --paper: #f3f3f2;
  --muted: #96989a;
  --line: rgba(243, 243, 242, .42);
  --accent: #ff4a1f;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

.join-slide {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.route-baked-mobile { display: none; }
.scene.route-baked { object-position: center !important; }

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 5, 6, .95) 0%, rgba(4, 5, 6, .80) 21%, rgba(4, 5, 6, .18) 48%, rgba(4, 5, 6, .18) 76%, rgba(4, 5, 6, .64) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .30), transparent 38%, rgba(0, 0, 0, .36));
}

.title-block {
  position: absolute;
  z-index: 4;
  left: clamp(46px, 5.4vw, 92px);
  top: clamp(74px, 13.5vh, 134px);
  width: 350px;
}

.title-block h1,
.title-block h2,
.title-block p { margin: 0; }

.title-block h1 {
  font-size: clamp(44px, 3.2vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .18em;
  white-space: nowrap;
}

.title-en {
  margin-top: 13px !important;
  color: #b8b9bb;
  font: 400 20px/1.2 Arial, sans-serif;
  letter-spacing: .18em;
}

.title-block h2 {
  margin-top: 54px !important;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .13em;
}

.title-note {
  margin-top: 10px !important;
  color: var(--muted);
  font: 400 12px/1.55 Arial, sans-serif;
  letter-spacing: .08em;
}

.continuity-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.continuity-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.continuity-line circle {
  fill: var(--accent);
  stroke: rgba(243, 243, 242, .78);
  stroke-width: .7;
}

.role-notes {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.role {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  min-width: 240px;
  color: var(--paper);
}

.role::before {
  content: "";
  position: absolute;
  top: 8px;
  right: calc(100% + 12px);
  width: 88px;
  height: 1px;
  background: var(--line);
}

.role i {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 74, 31, .55);
}

.role span { font-size: 14px; letter-spacing: .12em; }
.role small { margin-top: 7px; color: var(--muted); font: 400 10px/1.2 Arial, sans-serif; letter-spacing: .08em; }
.role-one { right: 5.5%; top: 19%; }
.role-two { right: 4.2%; top: 37%; }
.role-three { right: 5.6%; top: 57%; }
.role-four { right: 4.4%; top: 75%; }

.join-entry {
  position: absolute;
  z-index: 4;
  left: clamp(46px, 5.4vw, 92px);
  bottom: 118px;
  width: 230px;
  padding: 20px 22px;
  border: 1px solid rgba(243, 243, 242, .68);
  color: var(--paper);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.join-entry:hover { border-color: var(--accent); background: rgba(255, 74, 31, .06); }
.join-entry:active { transform: translateY(1px); }
.join-entry strong { display: block; font-size: 16px; font-weight: 400; letter-spacing: .14em; }
.join-entry span { display: block; margin-top: 10px; color: #b5b7b9; font: 400 11px/1 Arial, sans-serif; letter-spacing: .1em; }

.slide-footer {
  position: absolute;
  z-index: 4;
  left: clamp(46px, 5.4vw, 92px);
  bottom: 42px;
  display: grid;
  gap: 8px;
}

.slide-footer p,
.slide-footer span { margin: 0; }
.slide-footer p { color: #c8c9ca; font-size: 11px; letter-spacing: .11em; }
.slide-footer span { color: #63666a; font: 400 9px/1 Arial, sans-serif; letter-spacing: .14em; }

@media (max-width: 900px) {
  .route-baked-desktop { display: none; }
  .route-baked-mobile { display: block; }

  body { overflow: auto; }
  .join-slide { min-height: 100dvh; }
  .scene { object-position: 58% center; }
  .scene-shade { background: linear-gradient(180deg, rgba(4,5,6,.9), rgba(4,5,6,.25) 52%, rgba(4,5,6,.74)); }
  .title-block { top: 54px; left: 28px; width: calc(100% - 56px); }
  .title-block h1 { font-size: 40px; }
  .title-en { font-size: 15px; }
  .title-block h2 { margin-top: 28px !important; font-size: 18px; }
  .continuity-line { display: block; }
  .role-notes { display: none; }
  .join-entry { left: 28px; bottom: 96px; }
  .slide-footer { left: 28px; bottom: 30px; }
}

@media (max-width: 760px) {
  .join-entry { bottom: max(146px, calc(132px + env(safe-area-inset-bottom))); }
  .slide-footer { bottom: max(82px, calc(68px + env(safe-area-inset-bottom))); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
