/*
 * Home Team Section
 */

/* =========================================================
    Home / Team
    AI猫チーム紹介
    ========================================================= */
.s-home-team__story {
  max-width: none;
}

.s-home-team-roster {
  display: grid;
  gap: var(--space-4);
}

.s-home-team-card {
  display: grid;
  gap: var(--space-3);
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.96),
    rgba(247, 241, 231, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + var(--space-1));
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.s-home-team-card__role,
.s-home-consult-panel__label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   Home / Team
   猫スタッフ紹介
   ========================================================= */
.s-home-team {
  display: block;
  --home-team-ink: hsl(26, 34%, 18%);
  --home-team-muted: hsl(26, 18%, 42%);
  --home-team-paper: hsl(42, 35%, 94%);
  --home-team-brass: hsl(38, 54%, 52%);
  --home-team-brass-dark: hsl(30, 43%, 31%);
  --home-team-window: hsla(25, 22%, 14%, 0.94);
  --home-team-window-2: hsla(28, 25%, 10%, 0.96);
  --home-team-teal: hsl(176, 46%, 54%);
  --home-team-shadow: hsla(26, 34%, 14%, 0.26);
  position: relative;
  scroll-margin-top: clamp(6.5rem, 12vh, 8rem);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.25rem, 7vw, 5.75rem);
  background:
    radial-gradient(
      ellipse 72% 54% at 50% 15%,
      hsla(38, 52%, 70%, 0.22),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      hsl(38, 31%, 91%),
      hsl(31, 31%, 83%) 54%,
      hsl(26, 29%, 77%)
    );
}

.s-home-team__inner {
  width: min(
    var(--l-width-max, 1200px),
    calc(100% - clamp(1.25rem, 4vw, 3rem))
  );
  margin-inline: auto;
}

.s-home-team__header {
  text-align: center;
  margin-bottom: clamp(1.35rem, 3vw, 2.15rem);
}

.s-home-team__eyebrow {
  margin-bottom: var(--s-2, 8px);
  color: hsl(28, 42%, 48%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.s-home-team__title {
  margin-bottom: var(--s-3, 12px);
  color: var(--home-team-ink);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.s-home-team__lead {
  max-width: 38em;
  margin-inline: auto;
  color: var(--home-team-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.s-home-team__stage-shell {
  position: relative;
  box-sizing: border-box;
  border-radius: 14px;
  padding: clamp(0.36rem, 1vw, 0.6rem);
  background:
    linear-gradient(180deg, hsla(38, 40%, 62%, 0.44), hsla(25, 32%, 22%, 0.26)),
    hsl(28, 28%, 29%);
  box-shadow:
    0 14px 40px var(--home-team-shadow),
    inset 0 1px 0 hsla(40, 50%, 80%, 0.34);
}

.s-home-team__stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(520px, 56vw, 690px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid hsla(38, 42%, 62%, 0.42);
  border-radius: 10px;
  background: hsl(26, 32%, 18%);
  isolation: isolate;
}

.s-home-team__bg,
.s-home-team__stage-vignette,
.s-home-team__light-beam,
.s-home-team__floor-mark {
  pointer-events: none;
}

.s-home-team__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-home-team__stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 38% 34% at 50% 62%,
      transparent 0 48%,
      hsla(26, 34%, 10%, 0.18) 80%,
      hsla(26, 34%, 8%, 0.36) 100%
    ),
    linear-gradient(
      180deg,
      hsla(25, 30%, 8%, 0.18),
      transparent 24%,
      hsla(25, 28%, 8%, 0.3)
    );
}

.s-home-team__light-beam {
  position: absolute;
  z-index: 2;
  top: -8%;
  left: 50%;
  width: 34%;
  height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at top,
    hsla(42, 75%, 78%, 0.34),
    hsla(40, 60%, 64%, 0.13) 42%,
    transparent 72%
  );
  filter: blur(1px);
  mix-blend-mode: screen;
}

.s-home-team__floor-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 21%;
  width: min(42%, 430px);
  aspect-ratio: 2.9 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    hsla(42, 74%, 72%, 0.26),
    hsla(38, 48%, 52%, 0.12) 46%,
    transparent 72%
  );
  box-shadow: 0 0 34px hsla(42, 70%, 68%, 0.2);
}

.s-home-team__scene-label {
  position: absolute;
  z-index: 8;
  top: clamp(0.7rem, 1.5vw, 1rem);
  left: clamp(0.7rem, 1.5vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2, 8px);
  min-height: 2.25rem;
  padding: 0.36rem 0.68rem;
  border: 1px solid hsla(38, 50%, 68%, 0.58);
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    hsla(29, 26%, 18%, 0.94),
    hsla(24, 22%, 10%, 0.9)
  );
  color: hsl(42, 34%, 88%);
  box-shadow:
    inset 0 0 0 1px hsla(25, 25%, 8%, 0.65),
    0 4px 12px hsla(25, 28%, 8%, 0.2);
}

.s-home-team__scene-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.s-home-team__scene-state {
  color: hsla(42, 44%, 84%, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
}

.s-home-team__cast {
  position: absolute;
  z-index: 9;
  top: clamp(4.1rem, 8vw, 5.5rem);
  left: clamp(0.7rem, 1.5vw, 1rem);
  display: grid;
  gap: 0.5rem;
  width: clamp(76px, 8vw, 96px);
}

.s-home-team__first-cue {
  position: absolute;
  z-index: 12;
  top: clamp(4.35rem, 8.1vw, 5.8rem);
  left: clamp(6.7rem, 10.7vw, 8.65rem);
  display: inline-flex;
  align-items: center;
  max-width: min(17rem, 34vw);
  padding: 0.58rem 0.82rem;
  border: 1.5px solid hsla(43, 82%, 78%, 0.86);
  border-radius: 7px;
  background: linear-gradient(
    180deg,
    hsla(46, 58%, 90%, 0.98),
    hsla(39, 55%, 78%, 0.96)
  );
  color: hsl(26, 34%, 22%);
  box-shadow:
    0 0 0 2px hsla(25, 28%, 10%, 0.14),
    0 0 18px hsla(43, 82%, 70%, 0.34),
    0 0.9rem 1.7rem hsla(25, 32%, 8%, 0.3);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 900;
  line-height: 1.3;
  pointer-events: none;
  text-align: center;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.s-home-team__game.has-team-interacted .s-home-team__first-cue,
.s-home-team__first-cue[hidden] {
  display: none;
}

.s-home-team__first-cue-text {
  display: block;
  min-width: 0;
}

.s-home-team__first-cue-arrow {
  position: absolute;
  top: 50%;
  left: -3.75rem;
  display: block;
  width: 3.2rem;
  height: 3px;
  border-radius: 999px;
  background: hsl(43, 88%, 76%);
  box-shadow:
    0 0 0.75rem hsla(43, 90%, 72%, 0.72),
    0 0.16rem 0.35rem hsla(25, 34%, 8%, 0.22);
  transform: translateY(-50%);
  animation: homeTeamFirstCueArrow 1.05s ease-in-out infinite;
}

.s-home-team__first-cue-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.05rem;
  width: 0.68rem;
  aspect-ratio: 1;
  border-bottom: 3px solid hsl(43, 88%, 76%);
  border-left: 3px solid hsl(43, 88%, 76%);
  transform: translateY(-50%) rotate(45deg);
}

.s-home-team__game[data-cat="guide"] .s-home-team__cast-btn {
  border-color: hsla(43, 78%, 74%, 0.82);
  box-shadow:
    inset 0 1px 0 hsla(42, 70%, 78%, 0.22),
    0 0 0 2px hsla(43, 78%, 72%, 0.12),
    0 0 16px hsla(43, 78%, 68%, 0.26),
    0 5px 14px hsla(25, 30%, 8%, 0.26);
  animation: homeTeamCastInvite 2.4s ease-in-out infinite;
}

.s-home-team__game[data-cat="guide"] .s-home-team__cast-btn:nth-child(2) {
  animation-delay: 0.18s;
}

.s-home-team__game[data-cat="guide"] .s-home-team__cast-btn:nth-child(3) {
  animation-delay: 0.36s;
}

.s-home-team__cast-btn {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.16rem;
  place-items: center;
  min-height: clamp(82px, 8.6vw, 102px);
  padding: 0.42rem 0.34rem 0.34rem;
  border: 1px solid hsla(38, 42%, 62%, 0.48);
  border-radius: 7px;
  background: linear-gradient(
    180deg,
    hsla(35, 24%, 16%, 0.86),
    hsla(25, 22%, 10%, 0.84)
  );
  color: hsla(42, 36%, 90%, 0.9);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 hsla(42, 50%, 78%, 0.14),
    0 5px 14px hsla(25, 30%, 8%, 0.26);
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.s-home-team__cast-btn:hover,
.s-home-team__cast-btn.is-active {
  border-color: hsla(42, 70%, 70%, 0.82);
  background: linear-gradient(
    180deg,
    hsla(38, 46%, 28%, 0.94),
    hsla(27, 34%, 16%, 0.9)
  );
  box-shadow:
    inset 0 1px 0 hsla(42, 70%, 78%, 0.24),
    0 0 0 2px hsla(38, 64%, 66%, 0.16),
    0 8px 20px hsla(25, 30%, 8%, 0.32);
  transform: translateX(2px);
}

.s-home-team__cast-portrait {
  display: grid;
  place-items: center;
  position: relative;
  width: clamp(56px, 6.2vw, 70px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid hsla(38, 45%, 64%, 0.54);
  border-radius: 6px;
  background: radial-gradient(
    circle at 50% 42%,
    hsl(43, 40%, 86%),
    hsl(27, 22%, 17%) 72%
  );
  box-shadow:
    inset 0 0 0 1px hsla(25, 30%, 8%, 0.38),
    0 3px 8px hsla(25, 34%, 8%, 0.28);
}

.s-home-team__cast-face {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.s-home-team__cast-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-home-team__cast-btn.is-active .s-home-team__cast-portrait {
  border-color: hsla(42, 78%, 70%, 0.95);
  box-shadow:
    inset 0 0 0 1px hsla(25, 30%, 8%, 0.35),
    0 0 0 2px hsla(42, 78%, 70%, 0.16),
    0 0 16px hsla(42, 72%, 58%, 0.36),
    0 4px 10px hsla(25, 34%, 8%, 0.34);
}

.s-home-team__cast-copy {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
}

.s-home-team__cast-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-home-team__cast-copy strong {
  font-size: 0.72rem;
  line-height: 1.15;
}

.s-home-team__sprite-frame {
  --sprite-scale: 1;
  --sprite-y: 0%;
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(7.8rem, 14vw, 10.7rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: clamp(210px, 26vw, 340px);
  aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
}

.s-home-team__sprite-frame:focus-visible {
  outline: none;
}

.s-home-team__sprite-frame:focus-visible .s-home-team__sprite {
  filter: drop-shadow(0 0 12px hsla(44, 92%, 78%, 0.8))
    drop-shadow(0 0 28px hsla(176, 60%, 70%, 0.28))
    drop-shadow(0 8px 12px hsla(25, 36%, 8%, 0.42));
}

.s-home-team__game[data-cat="guide"] .s-home-team__sprite-frame {
  cursor: pointer;
  pointer-events: auto;
}

.s-home-team__sprite {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(var(--sprite-y)) scale(var(--sprite-scale));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 10px hsla(42, 52%, 94%, 0.72))
    drop-shadow(0 0 24px hsla(42, 60%, 82%, 0.32))
    drop-shadow(0 0 14px hsla(42, 60%, 80%, 0.3))
    drop-shadow(0 8px 12px hsla(25, 36%, 8%, 0.42));
  transition:
    transform 0.25s ease,
    opacity 0.22s ease,
    filter 0.25s ease;
}

.s-home-team__sprite.is-switching {
  opacity: 0.18;
  filter: blur(2px) drop-shadow(0 8px 12px hsla(25, 36%, 8%, 0.3));
}

.s-home-team__pet-hand {
  position: absolute;
  z-index: 7;
  top: 12%;
  left: 50%;
  width: clamp(46px, 5.4vw, 68px);
  aspect-ratio: 1;
  opacity: 0.74;
  transform: translate(-50%, 0) rotate(-8deg);
  animation: homeTeamPetHand 0.85s ease-in-out infinite;
  filter: drop-shadow(0 0 8px hsla(42, 80%, 78%, 0.36))
    drop-shadow(0 3px 8px hsla(25, 36%, 8%, 0.34));
}

.s-home-team__pet-hand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes homeTeamPetHand {
  0%,
  100% {
    transform: translate(-50%, 0) rotate(-8deg);
  }
  50% {
    transform: translate(-50%, 8px) rotate(-3deg);
  }
}

.s-home-team__state-fx {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.s-home-team__state-fx span {
  position: absolute;
  display: block;
  width: clamp(24px, 3.1vw, 42px);
  aspect-ratio: 1;
  background-image: var(--home-team-fx-work);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  filter: drop-shadow(0 0 6px hsla(42, 78%, 76%, 0.48))
    drop-shadow(0 3px 6px hsla(25, 34%, 8%, 0.2));
  animation: homeTeamFloatFx 3.8s ease-in-out infinite;
}

.s-home-team__game[data-state="work"] .s-home-team__state-fx span {
  background-image: var(--home-team-fx-work);
}
.s-home-team__game[data-state="rest"] .s-home-team__state-fx span {
  background-image: var(--home-team-fx-rest);
}
.s-home-team__game[data-state="play"] .s-home-team__state-fx span {
  background-image: var(--home-team-fx-play);
}
.s-home-team__game[data-state="meal"] .s-home-team__state-fx span {
  background-image: var(--home-team-fx-meal);
}

.s-home-team__game[data-cat="guide"] .s-home-team__sprite {
  transform: translateY(4%) scale(1.12);
  filter: drop-shadow(0 0 8px hsla(42, 70%, 86%, 0.58))
    drop-shadow(0 0 22px hsla(176, 55%, 68%, 0.18))
    drop-shadow(0 8px 12px hsla(25, 36%, 8%, 0.42));
  animation: homeTeamBellInvite 2.2s ease-in-out infinite;
}

.s-home-team__game[data-cat="guide"] .s-home-team__sprite-frame:hover .s-home-team__sprite,
.s-home-team__game[data-cat="guide"] .s-home-team__sprite-frame:focus-visible .s-home-team__sprite {
  filter:
    drop-shadow(0 0 14px hsla(44, 92%, 78%, 0.82))
    drop-shadow(0 0 32px hsla(176, 60%, 70%, 0.3))
    drop-shadow(0 8px 12px hsla(25, 36%, 8%, 0.42));
}

.s-home-team__game[data-cat="guide"] .s-home-team__state-fx span {
  background-image: var(--home-team-fx-work);
  animation-name: homeTeamBellFx;
}

.s-home-team__game[data-cat="guide"] .s-home-team__state-fx span:nth-child(1) {
  top: 50%;
  left: 59%;
  width: clamp(20px, 2.6vw, 34px);
  animation-delay: 0s;
}

.s-home-team__game[data-cat="guide"] .s-home-team__state-fx span:nth-child(2) {
  top: 55%;
  left: 37%;
  width: clamp(16px, 2.3vw, 30px);
  background-image: var(--home-team-fx-play);
  animation-delay: 1.05s;
}

.s-home-team__game[data-cat="guide"] .s-home-team__state-fx span:nth-child(3) {
  top: 45%;
  left: 48%;
  width: clamp(18px, 2.4vw, 32px);
  animation-delay: 2.05s;
}

.s-home-team__state-fx span:nth-child(1) {
  top: 16%;
  left: 58%;
  animation-delay: 0s;
}

.s-home-team__state-fx span:nth-child(2) {
  top: 24%;
  left: 32%;
  width: clamp(18px, 2.5vw, 34px);
  animation-delay: 1.15s;
}

.s-home-team__state-fx span:nth-child(3) {
  top: 8%;
  left: 44%;
  width: clamp(20px, 2.6vw, 36px);
  animation-delay: 2.25s;
}

@keyframes homeTeamFloatFx {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.82) rotate(-5deg);
  }
  18% {
    opacity: 0.86;
  }
  58% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-22px) scale(1.06) rotate(8deg);
  }
}

@keyframes homeTeamBellFx {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.76) rotate(-4deg);
  }
  20% {
    opacity: 0.82;
  }
  58% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.08) rotate(7deg);
  }
}

.s-home-team__bubble,
.s-home-team__status {
  background: linear-gradient(
    180deg,
    var(--home-team-window),
    var(--home-team-window-2)
  );
  border: 1.5px solid hsla(38, 42%, 56%, 0.58);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px hsla(25, 22%, 8%, 0.74),
    inset 0 0 0 3.5px hsla(38, 38%, 54%, 0.2),
    0 8px 22px hsla(25, 28%, 8%, 0.34);
  color: hsla(42, 32%, 90%, 0.95);
}

.s-home-team__bubble[hidden],
.s-home-team__status[hidden],
.s-home-team__pet-hand[hidden] {
  display: none;
}

.s-home-team__bubble,
.s-home-team__status {
  position: absolute;
  z-index: 10;
  top: clamp(0.85rem, 2vw, 1.4rem);
  left: 50%;
  width: min(58%, 520px);
  min-height: 5rem;
  padding: 1.08rem 1rem 0.78rem;
  transform: translateX(-50%);
}

.s-home-team__status {
  min-height: 0;
  left: clamp(8.6rem, 15vw, 11.8rem);
  width: min(29%, 360px);
  padding-right: 3rem;
  transform: none;
}

.s-home-team__bubble::before,
.s-home-team__bubble::after,
.s-home-team__status::before,
.s-home-team__status::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 0;
  background-image: var(--home-team-window-corner);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.82;
  pointer-events: none;
}

.s-home-team__bubble::before,
.s-home-team__status::before {
  top: 3px;
  left: 3px;
}

.s-home-team__bubble::after,
.s-home-team__status::after {
  right: 3px;
  bottom: 3px;
  transform: rotate(180deg);
}

.s-home-team__bubble.is-entering {
  animation: homeTeamPanelIn 0.22s ease;
}

@keyframes homeTeamPanelIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.s-home-team__status.is-entering {
  animation: homeTeamStatusIn 0.22s ease;
}

@keyframes homeTeamStatusIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s-home-team__bubble-name {
  position: absolute;
  top: -0.64rem;
  left: 0.68rem;
  padding: 0.08rem 0.5rem;
  border: 1px solid hsla(38, 42%, 56%, 0.58);
  border-radius: 3px;
  background: hsla(25, 22%, 12%, 0.98);
  color: hsla(42, 32%, 90%, 0.96);
  font-size: 0.72rem;
  font-weight: 800;
}

.s-home-team__bubble-text {
  color: hsla(42, 32%, 90%, 0.94);
  font-size: clamp(0.86rem, 1.5vw, 0.98rem);
  line-height: 1.7;
}

.s-home-team__status-close {
  position: absolute;
  top: 0.46rem;
  right: 0.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid hsla(38, 42%, 66%, 0.52);
  border-radius: 4px;
  background: hsla(25, 20%, 8%, 0.58);
  color: hsla(42, 34%, 92%, 0.95);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 hsla(42, 45%, 72%, 0.16);
}

.s-home-team__status-close:hover {
  background: hsla(30, 42%, 36%, 0.72);
  border-color: hsla(38, 58%, 68%, 0.75);
}

.s-home-team__status-kicker {
  margin-bottom: 0.16rem;
  color: hsla(38, 55%, 68%, 0.84);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-home-team__status-name {
  display: block;
  margin-right: 0;
  color: hsla(42, 36%, 90%, 0.98);
  font-size: 1.08rem;
}

.s-home-team__status-role {
  display: block;
  margin-top: 0.1rem;
  color: hsla(42, 30%, 76%, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
}

.s-home-team__status-summary {
  margin: 0.32rem 0 0.55rem;
  color: hsla(42, 28%, 86%, 0.9);
  font-size: 0.74rem;
  line-height: 1.5;
}

.s-home-team__status-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.12rem;
  align-items: start;
}

.s-home-team__status-list dt {
  color: hsla(38, 50%, 68%, 0.86);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.s-home-team__status-list dt:not(:first-child) {
  margin-top: 0.34rem;
}

.s-home-team__status-list dd {
  min-width: 0;
  margin: 0;
  color: hsla(42, 28%, 88%, 0.92);
  font-size: 0.66rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.s-home-team__control-dock {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: clamp(0.6rem, 1.6vw, 1.1rem);
  width: min(64%, 740px);
  transform: translateX(-50%);
  display: grid;
  grid-template-rows: auto auto;
  filter: drop-shadow(0 8px 18px hsla(25, 32%, 8%, 0.42));
  color: hsla(42, 32%, 90%, 0.95);
}

.s-home-team__state-panel {
  position: relative;
  z-index: 2;
  width: 72%;
  margin: 0 auto -1px;
}

.s-home-team__states {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.s-home-team__state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem clamp(0.3rem, 0.8vw, 0.6rem);
  border: 1px solid hsla(38, 38%, 48%, 0.6);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(
    180deg,
    hsla(28, 22%, 22%, 0.97) 0%,
    hsla(25, 20%, 16%, 0.96) 100%
  );
  color: hsla(42, 32%, 88%, 0.92);
  cursor: pointer;
  font-size: clamp(0.62rem, 1vw, 0.74rem);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 hsla(42, 50%, 76%, 0.1);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.s-home-team__state img {
  display: block;
  width: clamp(0.9rem, 1.3vw, 1.2rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px hsla(25, 34%, 8%, 0.3));
}

.s-home-team__state span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-home-team__state:hover {
  background: linear-gradient(
    180deg,
    hsla(28, 26%, 26%, 0.98),
    hsla(25, 22%, 18%, 0.97)
  );
  border-color: hsla(42, 52%, 62%, 0.72);
}

.s-home-team__state.is-active {
  border-color: hsla(176, 48%, 52%, 0.85);
  background: linear-gradient(
    180deg,
    hsl(174, 36%, 28%) 0%,
    hsl(172, 34%, 20%) 100%
  );
  color: hsl(42, 38%, 96%);
  box-shadow:
    inset 0 1px 0 hsla(176, 50%, 72%, 0.2),
    0 0 10px hsla(176, 46%, 48%, 0.12);
}

.s-home-team__command-panel {
  position: relative;
  z-index: 1;
}

.s-home-team__command-panel::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--home-team-dock-frame);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
}

.s-home-team__commands {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.4rem, 1.2vw, 0.8rem);
  aspect-ratio: 902 / 210;
  padding: 2.8% 6.5% 2.5% 6.5%;
  box-sizing: border-box;
  align-items: stretch;
}

.s-home-team__cmd {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0 clamp(0.5rem, 1vw, 0.8rem);
  border: 1px solid hsla(38, 42%, 52%, 0.5);
  border-radius: 5px;
  background: hsla(25, 22%, 12%, 0.65);
  backdrop-filter: blur(1px);
  color: hsla(42, 36%, 92%, 0.95);
  box-shadow:
    inset 0 1px 0 hsla(42, 50%, 74%, 0.12),
    inset 0 -1px 0 hsla(25, 30%, 8%, 0.3),
    0 2px 8px hsla(25, 34%, 8%, 0.3);
  cursor: pointer;
  font-size: clamp(0.78rem, 1.3vw, 0.94rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 1px 3px hsla(25, 40%, 6%, 0.6);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.s-home-team__cmd-icon {
  display: grid;
  place-items: center;
  width: clamp(2rem, 3.2vw, 2.8rem);
  aspect-ratio: 1;
  border-radius: 5px;
  background: hsla(38, 40%, 54%, 0.15);
}

.s-home-team__cmd-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px hsla(42, 70%, 72%, 0.35))
    drop-shadow(0 1px 3px hsla(25, 34%, 8%, 0.35));
}

.s-home-team__cmd:hover {
  background: hsla(25, 24%, 16%, 0.78);
  border-color: hsla(42, 56%, 64%, 0.72);
  box-shadow:
    inset 0 1px 0 hsla(42, 55%, 78%, 0.18),
    inset 0 -1px 0 hsla(25, 30%, 8%, 0.24),
    0 0 12px hsla(42, 52%, 60%, 0.14),
    0 3px 10px hsla(25, 34%, 8%, 0.26);
}

.s-home-team__cmd.is-active {
  background: hsla(25, 26%, 18%, 0.82);
  border-color: hsla(42, 62%, 66%, 0.82);
  box-shadow:
    inset 0 1px 0 hsla(42, 60%, 80%, 0.22),
    inset 0 -1px 0 hsla(25, 30%, 8%, 0.2),
    0 0 0 1px hsla(42, 58%, 64%, 0.12),
    0 0 16px hsla(42, 52%, 58%, 0.18);
}

.s-home-team__cmd:active {
  transform: translateY(1px);
}

.s-home-team__note {
  margin-top: clamp(1.35rem, 3vw, 2.4rem);
  color: var(--home-team-muted);
  font-size: 0.86rem;
  line-height: 1.8;
  text-align: center;
}

@keyframes homeTeamFirstCueArrow {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(-0.58rem);
  }
}

@keyframes homeTeamFirstCueArrowDown {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(0.48rem);
  }
}

@keyframes homeTeamCastInvite {
  0%,
  100% {
    filter: brightness(1);
    transform: translateX(0);
  }
  50% {
    filter: brightness(1.14);
    transform: translateX(3px);
  }
}

@keyframes homeTeamBellInvite {
  0%,
  100% {
    transform: translateY(4%) scale(1.12);
  }
  50% {
    transform: translateY(2%) scale(1.15);
  }
}

@media (max-width: 980px) {
  .s-home-team__stage {
    aspect-ratio: auto;
    height: clamp(560px, 72vw, 640px);
    min-height: 0;
  }

  .s-home-team__bubble,
  .s-home-team__status {
    width: min(66%, 500px);
  }

  .s-home-team__status-list {
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
    gap: 0.22rem 0.48rem;
    align-items: baseline;
  }

  .s-home-team__status-list dt:not(:first-child) {
    margin-top: 0;
  }

  .s-home-team__control-dock {
    width: min(calc(100% - 1.4rem), 640px);
  }

  .s-home-team__state-panel {
    width: 78%;
  }

  .s-home-team__commands {
    padding: 3% 7% 2.6% 7%;
  }

  .s-home-team__sprite-frame {
    bottom: clamp(12.2rem, 25vw, 15rem);
    width: clamp(180px, 28vw, 265px);
  }
}

@media (max-width: 640px) {
  .s-home-team__inner {
    width: min(100% - 1rem, var(--l-width-max, 1200px));
  }

  .s-home-team__stage-shell {
    border-radius: 10px;
    padding: 0.3rem;
  }

  .s-home-team__stage {
    aspect-ratio: auto;
    height: clamp(560px, 151vw, 665px);
    min-height: 0;
  }

  .s-home-team__bg {
    object-position: 50% 50%;
  }

  .s-home-team__scene-label {
    top: 0.55rem;
    left: 0.55rem;
    min-height: 2rem;
    padding: 0.28rem 0.5rem;
  }

  .s-home-team__cast {
    top: auto;
    left: 0.55rem;
    right: 0.55rem;
    bottom: calc(100vw * 210 / 902 + 2.8rem);
    display: flex;
    justify-content: center;
    width: auto;
    overflow-x: auto;
    padding-bottom: 0.18rem;
    scroll-snap-type: x proximity;
  }

  .s-home-team__first-cue {
    top: auto;
    bottom: calc(100vw * 210 / 902 + 6.35rem);
    left: 50%;
    max-width: calc(100% - 1.6rem);
    padding: 0.46rem 0.74rem;
    font-size: 0.76rem;
    transform: translateX(-50%);
  }

  .s-home-team__first-cue-arrow {
    top: auto;
    bottom: -2.55rem;
    left: 50%;
    width: 3px;
    height: 2.1rem;
    transform: translateX(-50%);
    animation: homeTeamFirstCueArrowDown 1.05s ease-in-out infinite;
  }

  .s-home-team__first-cue-arrow::before {
    top: auto;
    bottom: -0.05rem;
    left: 50%;
    border: 0;
    border-right: 3px solid hsl(43, 88%, 76%);
    border-bottom: 3px solid hsl(43, 88%, 76%);
    transform: translateX(-50%) rotate(45deg);
  }

  .s-home-team__cast-btn {
    flex: 0 0 98px;
    min-height: 50px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.38rem;
    padding: 0.24rem 0.38rem;
    text-align: left;
    scroll-snap-align: center;
  }

  .s-home-team__cast-btn:hover,
  .s-home-team__cast-btn.is-active {
    transform: translateY(-2px);
  }

  .s-home-team__cast-portrait {
    width: 34px;
  }

  .s-home-team__cast-copy strong {
    font-size: 0.72rem;
  }

  .s-home-team__cast-copy span {
    font-size: 0.52rem;
  }

  .s-home-team__bubble,
  .s-home-team__status {
    top: 3rem;
    left: 50%;
    width: calc(100% - 1.1rem);
    min-height: 4.65rem;
    box-sizing: border-box;
    padding: 0.78rem 0.82rem 0.68rem;
    transform: translateX(-50%);
  }

  .s-home-team__status {
    top: 2.55rem;
    display: block;
    min-height: 0;
    padding: 0.9rem 2.75rem 0.58rem 0.82rem;
    background: linear-gradient(
      180deg,
      hsla(206, 32%, 19%, 0.86),
      hsla(205, 34%, 14%, 0.9)
    );
    box-shadow:
      inset 0 0 0 2px hsla(25, 22%, 8%, 0.58),
      inset 0 0 0 3.5px hsla(38, 38%, 54%, 0.16),
      0 8px 20px hsla(25, 28%, 8%, 0.26);
  }

  .s-home-team__status-close {
    top: 0.34rem;
    right: 0.42rem;
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
  }

  .s-home-team__status-kicker {
    position: absolute;
    top: -0.6rem;
    left: 0.68rem;
    margin: 0;
    padding: 0.08rem 0.48rem;
    border: 1px solid hsla(38, 42%, 56%, 0.58);
    border-radius: 3px;
    background: hsla(25, 22%, 12%, 0.98);
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .s-home-team__status-name {
    display: inline;
    font-size: 1rem;
    line-height: 1.25;
  }

  .s-home-team__status-role {
    display: inline;
    margin: 0 0 0 0.56rem;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .s-home-team__status-summary {
    margin: 0.28rem 0 0.32rem;
    font-size: 0.66rem;
    line-height: 1.32;
    white-space: normal;
  }

  .s-home-team__status-list {
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
    gap: 0.18rem 0.42rem;
  }

  .s-home-team__status-list dt {
    font-size: 0.55rem;
    line-height: 1.28;
  }

  .s-home-team__status-list dd {
    font-size: 0.62rem;
    line-height: 1.28;
  }

  .s-home-team__sprite-frame {
    left: 50%;
    bottom: calc(100vw * 210 / 902 + 6rem);
    width: min(45vw, 170px);
  }

  .s-home-team__floor-mark {
    bottom: 28%;
    width: 74%;
  }

  .s-home-team__control-dock {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: none;
  }

  .s-home-team__state-panel {
    width: 86%;
  }

  .s-home-team__states {
    gap: 2px;
  }

  .s-home-team__state {
    grid-template-columns: auto 1fr;
    gap: 0.18rem;
    padding: 0.22rem 0.28rem;
    font-size: 0.6rem;
  }

  .s-home-team__state img {
    width: 0.9rem;
  }

  .s-home-team__commands {
    gap: clamp(0.28rem, 1.5vw, 0.5rem);
    padding: 3.2% 7% 2.8% 7%;
  }

  .s-home-team__cmd {
    grid-template-columns: auto 1fr;
    gap: 0.28rem;
    padding: 0 0.4rem;
    font-size: clamp(0.62rem, 2.8vw, 0.78rem);
  }

  .s-home-team__cmd-icon {
    width: clamp(1.4rem, 5.5vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-home-team__game[data-cat="guide"] .s-home-team__cast-btn,
  .s-home-team__game[data-cat="guide"] .s-home-team__sprite,
  .s-home-team__first-cue-arrow,
  .s-home-team__pet-hand,
  .s-home-team__state-fx span,
  .s-home-team__bubble.is-entering,
  .s-home-team__status.is-entering {
    animation: none;
  }
}
