:root {
  color: #18312c;
  background: #f7f3e9;
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 95, 55, 0.15), transparent 30rem),
    #f7f3e9;
}

a {
  color: inherit;
}

.portal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.portal-hero {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow,
.route-label {
  margin: 0 0 10px;
  color: #a84224;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.portal-hero > p:last-child {
  color: #52635f;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.route-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(24, 49, 44, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 55px rgba(24, 49, 44, 0.08);
}

.route-card-viewer {
  color: #f7f3e9;
  background: #18312c;
}

.route-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.route-card > p:not(.route-label) {
  color: #687672;
  line-height: 1.75;
}

.route-card-viewer > p:not(.route-label) {
  color: #c3d0cc;
}

.route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: #b64e2d;
  font-weight: 800;
  text-decoration: none;
}

.route-card-viewer .route-link {
  color: #18312c;
  background: #d9b96e;
}

.route-link:hover,
.route-link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.portal-note {
  margin-top: 24px;
  color: #687672;
  font-size: 0.9rem;
  text-align: center;
}

.viewer-body {
  color: #f7f3e9;
  background:
    radial-gradient(circle at 65% 45%, rgba(217, 185, 110, 0.18), transparent 24rem),
    #0d1e1b;
}

.viewer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.viewer-navigation {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.viewer-navigation a {
  color: #d5dfdc;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.viewer-stage {
  display: grid;
  min-height: calc(100vh - 116px);
  align-items: center;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(40px, 7vw, 96px);
}

.viewer-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 185, 110, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-object {
  display: grid;
  width: 34%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #d9b96e;
  border-radius: 38% 62% 55% 45%;
  color: #d9b96e;
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 900;
  box-shadow: 0 0 60px rgba(217, 185, 110, 0.18);
  transform: rotate(-8deg);
}

.viewer-orbit {
  position: absolute;
  width: 72%;
  height: 28%;
  border: 1px solid rgba(217, 185, 110, 0.38);
  border-radius: 50%;
}

.viewer-orbit-one {
  transform: rotate(22deg);
}

.viewer-orbit-two {
  transform: rotate(-45deg);
}

.viewer-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.viewer-copy > p:not(.eyebrow) {
  color: #b9c7c3;
  line-height: 1.8;
}

.viewer-status {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.viewer-status div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.viewer-status dt {
  font-weight: 700;
}

.viewer-status dd {
  margin: 0;
  color: #d9b96e;
}

@media (max-width: 760px) {
  .portal-shell {
    padding-top: 44px;
  }

  .route-grid,
  .viewer-stage {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 290px;
  }

  .viewer-navigation {
    justify-content: flex-start;
  }

  .viewer-placeholder {
    max-width: 560px;
  }
}
