/* =========================
   Base & Space Layout
========================= */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #010308;
}

.service-space {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
  background: linear-gradient(135deg, #010308 0%, #060a12 48%, #010308 100%);
  /* Ensure it fills the screen in the app */
  width: 100vw;
  max-width: 100vw;
}

/* =========================
   Nebula Gas Clouds
========================= */
.nebula-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nebula-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: nebula-pulse 28s infinite alternate ease-in-out;
  will-change: transform, opacity;
}

@keyframes nebula-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 1;
  }
}

.service-space::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* =========================
   Starry Sky (Twinkling Stars)
========================= */
.constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  background-color: white;
  border-radius: 50%;
  position: absolute;
  animation-name: star;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.star.style1 { animation-duration: 1.5s; }
.star.style2 { animation-duration: 2.5s; }
.star.style3 { animation-duration: 4.0s; }
.star.style4 { animation-duration: 5.0s; animation-name: starFeat; }

.star.tam1 { width: 1px; height: 1px; }
.star.tam2 { width: 2px; height: 2px; }
.star.tam3 { width: 3px; height: 3px; }

.star.opacity1 { opacity: 1; }
.star.opacity2 { opacity: .5; }
.star.opacity3 { opacity: .1; }

@keyframes star {
  0% { box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4); opacity: 1; }
  100% { box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.05); }
}

@keyframes starFeat {
  0% { background-color: #FFFFFF; box-shadow: 0 0 10px 0px rgba(255, 255, 255, 1); }
  20% { background-color: #FFC4C4; box-shadow: 0 0 10px 0px rgb(255, 196, 196, 1); }
  80% { background-color: #C4CFFF; box-shadow: 0 0 10px 0px rgb(196, 207, 255, 1); }
  100% { background-color: #FFFFFF; box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.2); }
}

/* =========================
   Header
========================= */
.service-space__header {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-space__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 20px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: #bae6fd;
  text-transform: uppercase;
  opacity: 0.9;
}

.service-space__eyebrow::before,
.service-space__eyebrow::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(186, 230, 253, 0.6));
}

.service-space__eyebrow::after {
  background: linear-gradient(to left, transparent, rgba(186, 230, 253, 0.6));
}

.service-space__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin: 0 0 28px 0;
  color: #f8fafc;
  text-shadow: 0 0 24px rgba(186, 230, 253, 0.5);
  line-height: 1.3;
}

.service-space__lead {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: #cbd5e1;
  opacity: 0.85;
}

/* =========================
   Stage & Links
========================= */
.service-space__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin-top: 48px;
  margin-bottom: 40px;
  isolation: isolate;
}

.service-space__links {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.service-link {
  fill: none;
  stroke: rgba(125, 211, 252, 0.34);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.34));
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.service-link-flow {
  fill: none;
  stroke: rgba(165, 243, 252, 0.72);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 136;
  stroke-dashoffset: 0;
  opacity: 0.34;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.46)) drop-shadow(0 0 16px rgba(103, 232, 249, 0.2));
  animation: service-link-flow 3.6s linear infinite;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.service-link.is-active {
  stroke: rgba(165, 243, 252, 1);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.9)) drop-shadow(0 0 22px rgba(103, 232, 249, 0.6));
}

.service-link-flow.is-active {
  stroke: #ffffff;
  stroke-width: 3;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(165, 243, 252, 1)) drop-shadow(0 0 28px rgba(103, 232, 249, 0.8));
}

.service-link.is-filtered-out,
.service-link-flow.is-filtered-out {
  opacity: 0.08;
}

.service-link.is-search-hit {
  stroke: rgba(165, 243, 252, 0.78);
  stroke-width: 2;
}

.service-link-flow.is-search-hit {
  stroke: rgba(255, 255, 255, 0.92);
  opacity: 0.78;
}

.service-space.is-parent-active .service-link {
  stroke: rgba(165, 243, 252, 0.9);
  opacity: 1;
}

.service-space.is-parent-active .service-link-flow {
  stroke: rgba(255, 255, 255, 0.96);
  opacity: 0.96;
}

@keyframes service-link-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -158; }
}

/* =========================
   Service Card (HUD Mode)
========================= */
.service-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 140px;
  max-width: 220px;
  height: 48px;
  padding: 0 16px 0 12px;
  gap: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)),
    rgba(15, 23, 42, 0.8);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition:
    border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease, filter 150ms ease;
}

.service-card__core {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.7), transparent 42%);
  filter: blur(8px);
  opacity: 0.14;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-paused {
  border-color: rgba(165, 243, 252, 0.9);
  box-shadow:
    0 0 28px rgba(103, 232, 249, 0.7),
    0 0 56px rgba(103, 232, 249, 0.3),
    0 12px 48px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 10;
  outline: none;
}

.service-card:hover .service-card__core,
.service-card:focus-visible .service-card__core,
.service-card.is-paused .service-card__core {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.service-card:hover::before,
.service-card:focus-visible::before,
.service-card.is-paused::before {
  opacity: 0.8;
}

.service-card::after {
  content: attr(data-title);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

/* =========================
   Shine Sweep Effect
========================= */
.service-card__shine-wrapper {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.service-card__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}

.service-card:hover .service-card__shine,
.service-card:focus-visible .service-card__shine {
  animation: shine-sweep 0.6s ease-out forwards;
}

@keyframes shine-sweep {
  0% { left: -100%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

.service-card.is-filtered-out {
  opacity: 0.18;
  filter: grayscale(0.8);
}

.service-card.is-search-hit {
  border-color: rgba(165, 243, 252, 0.8);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.4);
}

.service-card--parent {
  min-width: 160px;
  height: 56px;
  border-radius: 28px;
}

.service-card--parent .service-card__core {
  width: 18px;
  height: 18px;
  background: #cffafe;
  box-shadow: 0 0 16px rgba(165, 243, 252, 0.8);
}

.service-card--parent::before {
  opacity: 0.24;
  background: radial-gradient(circle at top right, rgba(125, 211, 252, 0.88), transparent 64%);
}

.service-card--parent::after {
  font-size: 15px;
  font-weight: 700;
}

.service-card--violet .service-card__core {
  background: #f0abfc;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.6);
}

.service-card--violet::before {
  background: radial-gradient(circle at top right, rgba(217, 70, 239, 0.8), transparent 42%);
}

.service-card--green .service-card__core {
  background: #5eead4;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.service-card--green::before {
  background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.8), transparent 42%);
}

.service-card--orange .service-card__core {
  background: #fdba74;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
}

.service-card--orange::before {
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.8), transparent 42%);
}

.service-card__detail {
  display: none;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.service-card__list-title {
  display: none;
  font-size: 18px;
  font-weight: bold;
  order: 0;
  margin-bottom: 2px;
  color: #ffffff;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(165, 243, 252, 0.34);
  border-radius: 999px;
  color: #cffafe;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: middle;
  background: rgba(8, 47, 73, 0.56);
  box-shadow:
    0 0 14px rgba(103, 232, 249, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card--parent::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  pointer-events: none;
  border-radius: 32px;
  background: rgba(56, 189, 248, 0.05);
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.18),
    0 0 32px rgba(103, 232, 249, 0.22),
    inset 0 0 24px rgba(56, 189, 248, 0.15);
  filter: none;
  opacity: 0.72;
  animation: parent-gravity-ring 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.service-card--parent:hover::before,
.service-card--parent.is-paused::before {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.34),
    0 0 48px rgba(103, 232, 249, 0.42),
    inset 0 0 24px rgba(56, 189, 248, 0.3);
}

@keyframes parent-gravity-ring {
  0%, 18%, 42%, 100% { opacity: 0.62; transform: scale(1); }
  9% { opacity: 0.92; transform: scale(1.06); }
  28% { opacity: 0.96; transform: scale(1.08); }
}

/* =========================
   HUD Panel (NEW)
========================= */
.hud-panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 15;
  width: 320px;
  padding: 20px;
  border: 1px solid rgba(165, 243, 252, 0.12);
  border-radius: 16px;
  background-color: rgba(15, 23, 42, 0.3);
  background-image: linear-gradient(135deg, rgba(165, 243, 252, 0.12), transparent);
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease, transform 180ms ease, border-color 300ms ease, box-shadow 300ms ease;
  overflow: hidden;
}

.hud-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(165, 243, 252, 0.6);
  box-shadow:
    0 0 40px rgba(103, 232, 249, 0.2),
    0 0 0 1px rgba(165, 243, 252, 0.4),
    0 24px 80px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hud-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 3px;
  height: 40px;
  background: #38bdf8;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px #38bdf8;
  opacity: 0.5;
  transition: opacity 300ms;
}

.hud-panel.is-active::before {
  opacity: 1;
}

.hud-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  filter: blur(2px) grayscale(30%);
}

.hud-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-panel__label {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  color: #010308;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #67e8f9, #38bdf8);
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.5);
}

.hud-panel__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.hud-panel__hashtag {
  color: #f472b6;
  font-size: 13px;
  margin: 0;
}

.hud-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #a5f3fc;
  border-top: 1px dashed rgba(165, 243, 252, 0.3);
  padding-top: 8px;
}

.hud-panel__description {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   Controls
========================= */
.portal-controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.48)), rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  color: #cffafe;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48)), rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.portal-button:hover,
.portal-button:focus-visible {
  border-color: rgba(165, 243, 252, 0.86);
  color: #ffffff;
  box-shadow: 0 0 34px rgba(103, 232, 249, 0.38), 0 12px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.portal-button.is-frozen,
.portal-button.is-list-mode {
  border-color: rgba(248, 113, 113, 0.46);
  color: #fecaca;
  background: linear-gradient(135deg, rgba(69, 10, 10, 0.62), rgba(15, 23, 42, 0.56)), rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 34px rgba(248, 113, 113, 0.22), 0 12px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.service-search__input {
  width: 220px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.44)), rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  outline: none;
  transition: width 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-search__input:focus {
  width: 280px;
  border-color: rgba(165, 243, 252, 0.82);
  box-shadow: 0 0 28px rgba(103, 232, 249, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.service-search__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  color: #cffafe;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.service-search__count.is-zero {
  border-color: rgba(248, 113, 113, 0.38);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
}

.service-search__clear {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  color: #cffafe;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

/* =========================
   List Mode
========================= */
.service-space.is-list-mode {
  overflow: auto;
}

.service-space.is-list-mode .service-space__stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  min-height: auto;
  padding-bottom: 120px;
}

.service-space.is-list-mode .service-space__links {
  display: none;
}

.service-space.is-list-mode .hud-panel {
  display: none;
}

.service-space.is-list-mode .service-card,
.service-space.is-list-mode .service-card--parent {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  min-height: 80px;
  border-radius: 16px;
  transform: none !important;
  cursor: pointer;
  touch-action: auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 20px;
  gap: 6px;
}

.service-space.is-list-mode .service-card__core {
  display: none;
}

.service-space.is-list-mode .service-card::after {
  display: none;
}

.service-card__list-bg,
.service-card__list-hashtag,
.service-card__list-meta {
  display: none;
}

.service-space.is-list-mode .service-card,
.service-space.is-list-mode .service-card--parent {
  overflow: hidden;
}

.service-space.is-list-mode .service-card.is-filtered-out {
  display: none !important;
}

.service-space.is-list-mode .service-card__list-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(2px) grayscale(30%);
  pointer-events: none;
}

.service-space.is-list-mode .service-card > *:not(.service-card__list-bg) {
  position: relative;
  z-index: 1;
}

.service-space.is-list-mode .service-card__list-title {
  display: flex;
  align-items: center;
}

.service-space.is-list-mode .service-card__list-hashtag {
  display: block;
  order: 1;
  color: #f472b6;
  font-size: 12px;
  margin-bottom: 2px;
}

.service-space.is-list-mode .service-card__detail {
  order: 2;
  display: block;
}

.service-space.is-list-mode .service-card__list-meta {
  display: block;
  order: 3;
  font-size: 12px;
  color: #a5f3fc;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(165, 243, 252, 0.3);
  width: 100%;
}

/* =========================
   Responsive
========================= */
@media (max-width: 760px) {
  .service-space {
    padding: 24px 18px;
    overflow: auto;
    min-height: 100dvh;
    display: block;
  }

  .service-space__title {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
  }

  .service-space__lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .service-space__stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    margin-top: 32px;
    padding-bottom: 140px;
  }

  .service-card,
  .service-card--parent {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 80px;
    border-radius: 16px;
    transform: none !important;
    cursor: pointer;
    touch-action: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 6px;
  }

  .service-card::after {
    display: none;
  }

  .service-card,
  .service-card--parent {
    overflow: hidden;
  }

  .service-card.is-filtered-out {
    display: none !important;
  }

  .service-card__list-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(2px) grayscale(30%);
    pointer-events: none;
  }

  .service-card > *:not(.service-card__list-bg),
  .service-card--parent > *:not(.service-card__list-bg) {
    position: relative;
    z-index: 1;
  }

  .service-card__list-title {
    display: flex;
  }

  .service-card__list-hashtag {
    display: block;
    order: 1;
    color: #f472b6;
    font-size: 12px;
    margin-bottom: 2px;
  }

  .service-card__core {
    display: none;
  }

  .service-card__detail {
    display: block;
    order: 2;
  }

  .service-card__list-meta {
    display: block;
    order: 3;
    font-size: 12px;
    color: #a5f3fc;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(165, 243, 252, 0.3);
    width: 100%;
  }

  .hud-panel {
    display: none;
  }

  .portal-controls {
    left: 18px;
    right: 18px;
    bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    border-radius: 24px;
  }

  #motionToggle,
  #viewToggle {
    display: none;
  }

  .service-search {
    width: 100%;
  }

  .service-search__input {
    width: 100%;
    flex: 1;
  }
}
