:root {
  --fit-paper: #eef7f8;
  --fit-muted: #9eb7c0;
  --fit-cyan: #8ed9ef;
  --fit-cyan-hot: #d9f8ff;
  --fit-orange: #f09a51;
  --fit-ink: #04090f;
  --fit-panel: #08141d;
  --fit-line: rgba(142, 217, 239, 0.24);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

.fitting-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 4%, rgba(240, 154, 81, 0.12), transparent 30rem),
    radial-gradient(circle at 10% 34%, rgba(142, 217, 239, 0.09), transparent 35rem),
    var(--fit-ink);
  color: var(--fit-paper);
}

.fitting-page::before {
  position: fixed;
  z-index: 0;
  inset: 70px 0 0;
  background-image:
    linear-gradient(rgba(142, 217, 239, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 217, 239, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.fitting-page main,
.fitting-footer {
  position: relative;
  z-index: 1;
}

.fitting-page a,
.fitting-page button {
  -webkit-tap-highlight-color: transparent;
}

.fitting-page a:focus-visible,
.fitting-page button:focus-visible {
  outline: 2px solid var(--fit-cyan-hot);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 120;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--fit-cyan-hot);
  color: #041018;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.fitting-topbar {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: minmax(235px, 1fr) auto minmax(235px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 8px clamp(20px, 3.5vw, 62px);
  border-bottom: 1px solid rgba(142, 217, 239, 0.2);
  background: rgba(3, 8, 14, 0.9);
  backdrop-filter: blur(18px) saturate(0.82);
}

.fitting-topbar__brand {
  display: block;
  width: clamp(220px, 20vw, 320px);
  height: 52px;
  overflow: hidden;
}

.fitting-topbar__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.85));
  mix-blend-mode: screen;
}

.fitting-topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 34px);
}

.fitting-topbar nav a {
  padding: 9px 0;
  border-bottom: 1px solid rgba(142, 217, 239, 0.34);
  color: rgba(224, 239, 242, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.fitting-topbar nav a:hover {
  border-color: var(--fit-orange);
  color: #fff;
}

.fitting-topbar > p {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--fit-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.fitting-topbar > p span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fit-orange);
  box-shadow: 0 0 13px rgba(240, 154, 81, 0.8);
}

.fitting-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 900px;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(22px, 5vw, 92px) 54px;
  border-bottom: 1px solid var(--fit-line);
}

.fitting-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 14, 0.99) 0%, rgba(3, 8, 14, 0.88) 38%, rgba(3, 8, 14, 0.2) 78%),
    radial-gradient(circle at 76% 42%, rgba(142, 217, 239, 0.16), transparent 34%),
    linear-gradient(140deg, #07131e, #02060a 72%);
  content: "";
}

.fitting-hero::after {
  position: absolute;
  z-index: -1;
  right: -9vw;
  bottom: -30vw;
  width: 64vw;
  height: 64vw;
  border: 1px solid rgba(142, 217, 239, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(142, 217, 239, 0.025),
    0 0 0 17vw rgba(142, 217, 239, 0.018);
  content: "";
}

.fitting-hero__shell {
  display: grid;
  width: min(1600px, 100%);
  grid-template-columns: minmax(420px, 0.82fr) minmax(520px, 1fr);
  gap: clamp(42px, 6vw, 110px);
  align-items: center;
  margin: 0 auto;
}

.fitting-kicker,
.gear-focus__head > div > p,
.equipment-fitting__head > div > p,
.npc-fitting__head > div > p,
.fitting-guide__copy > p:first-child {
  margin: 0;
  color: var(--fit-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.fitting-hero h1 {
  max-width: 840px;
  margin: 17px 0 25px;
  font-family: var(--display);
  font-size: clamp(4.1rem, 7.2vw, 8.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.fitting-hero h1 span {
  display: inline-block;
  margin-top: 0.14em;
  color: #fff;
  font-size: 0.54em;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.fitting-hero__lead {
  max-width: 47em;
  margin: 0;
  color: rgba(226, 239, 242, 0.78);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.98rem;
  line-height: 2;
}

.fitting-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.fitting-hero__links a {
  min-width: 184px;
  padding: 12px 16px;
  border: 1px solid rgba(142, 217, 239, 0.38);
  color: var(--fit-paper);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.fitting-hero__links a:first-child {
  border-color: var(--fit-cyan);
  background: var(--fit-cyan);
  color: #051018;
}

.fitting-hero__links a:hover {
  border-color: var(--fit-orange);
}

.fitting-hero__facts {
  display: grid;
  max-width: 590px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 35px 0 0;
  border-top: 1px solid rgba(142, 217, 239, 0.25);
  border-bottom: 1px solid rgba(142, 217, 239, 0.25);
}

.fitting-hero__facts div {
  padding: 14px 16px 15px 0;
  border-right: 1px solid rgba(142, 217, 239, 0.18);
}

.fitting-hero__facts div + div {
  padding-left: 16px;
}

.fitting-hero__facts div:last-child {
  border-right: 0;
}

.fitting-hero__facts dt,
.fitting-hero__facts dd {
  margin: 0;
}

.fitting-hero__facts dt {
  color: var(--fit-muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.fitting-hero__facts dd {
  margin-top: 4px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.fitting-hero__visual {
  position: relative;
  margin: 0;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid rgba(142, 217, 239, 0.32);
  background:
    linear-gradient(135deg, rgba(142, 217, 239, 0.12), transparent 44%),
    rgba(6, 17, 25, 0.86);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.48);
}

.fitting-hero__visual::before,
.fitting-hero__visual::after {
  position: absolute;
  width: 76px;
  height: 7px;
  content: "";
}

.fitting-hero__visual::before {
  top: -1px;
  left: 9%;
  background: var(--fit-cyan);
  box-shadow: 0 0 18px rgba(142, 217, 239, 0.62);
}

.fitting-hero__visual::after {
  right: 7%;
  bottom: -1px;
  background: var(--fit-orange);
  box-shadow: 0 0 18px rgba(240, 154, 81, 0.62);
}

.fitting-hero__image-frame {
  position: relative;
  overflow: hidden;
  background: #e8eae7;
}

.fitting-hero__image-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 40px rgba(3, 10, 15, 0.12);
  content: "";
  pointer-events: none;
}

.fitting-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.fitting-hero__visual figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 16px;
  padding: 17px 3px 0;
}

.fitting-hero__visual figcaption span {
  grid-column: 1 / -1;
  color: var(--fit-orange);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.fitting-hero__visual figcaption b {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  font-weight: 500;
}

.fitting-hero__visual figcaption small {
  color: var(--fit-muted);
  font-size: 0.66rem;
}

.gear-focus,
.npc-fitting,
.fitting-guide {
  width: min(1500px, calc(100% - clamp(36px, 8vw, 140px)));
  margin: 0 auto;
}

.gear-focus {
  padding: clamp(84px, 10vw, 150px) 0 clamp(96px, 11vw, 170px);
}

.gear-focus__head,
.equipment-fitting__head,
.npc-fitting__head {
  display: grid;
  grid-template-columns: minmax(400px, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(40px, 9vw, 150px);
  align-items: end;
}

.gear-focus__head h2,
.equipment-fitting__head h2,
.npc-fitting__head h2,
.fitting-guide h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5.7vw, 6.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.gear-focus__head > p,
.equipment-fitting__head > p,
.npc-fitting__head > p {
  margin: 0;
  padding: 20px 0 3px 28px;
  border-left: 1px solid rgba(142, 217, 239, 0.34);
  color: rgba(222, 237, 241, 0.7);
  font-size: 0.9rem;
  line-height: 2;
}

.gear-focus__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 50px;
  padding: 2px;
  background: rgba(142, 217, 239, 0.17);
}

.gear-focus__points article {
  display: grid;
  min-height: 230px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  padding: 30px clamp(22px, 2.3vw, 38px);
  background:
    linear-gradient(145deg, rgba(142, 217, 239, 0.07), transparent 45%),
    #07121a;
}

.gear-focus__points article > span {
  color: rgba(142, 217, 239, 0.72);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}

.gear-focus__points small,
.gear-focus__points h3,
.gear-focus__points p {
  margin: 0;
}

.gear-focus__points small {
  color: var(--fit-orange);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.gear-focus__points h3 {
  margin-top: 7px;
  font-size: 1.05rem;
}

.gear-focus__points p {
  margin-top: 12px;
  color: rgba(220, 235, 239, 0.66);
  font-size: 0.78rem;
  line-height: 1.8;
}

.gear-focus__note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(240, 154, 81, 0.28);
  border-left: 4px solid var(--fit-orange);
  background: rgba(240, 154, 81, 0.065);
  color: rgba(228, 239, 242, 0.75);
  font-size: 0.78rem;
  line-height: 1.75;
}

.gear-focus__note b {
  color: var(--fit-orange);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.gear-focus__note a {
  padding: 9px 13px;
  border: 1px solid rgba(142, 217, 239, 0.38);
  color: var(--fit-paper);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.equipment-fitting {
  position: relative;
  padding: clamp(88px, 10vw, 154px) clamp(18px, 4vw, 70px) clamp(98px, 11vw, 170px);
  overflow: hidden;
  border-top: 1px solid rgba(142, 217, 239, 0.18);
  border-bottom: 1px solid rgba(142, 217, 239, 0.18);
  background:
    linear-gradient(rgba(142, 217, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 217, 239, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 92% 12%, rgba(240, 154, 81, 0.13), transparent 30rem),
    radial-gradient(circle at 6% 80%, rgba(142, 217, 239, 0.1), transparent 34rem),
    #061019;
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

.equipment-fitting::before {
  position: absolute;
  top: 0;
  left: 8vw;
  width: min(42vw, 580px);
  height: 6px;
  background: linear-gradient(90deg, var(--fit-cyan), transparent);
  content: "";
}

.equipment-fitting__inner {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.equipment-fitting__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 54px;
  padding: 2px;
  background: rgba(142, 217, 239, 0.19);
}

.equipment-sheet-card {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #07131c;
  color: var(--fit-paper);
  text-align: left;
  cursor: zoom-in;
}

.equipment-sheet-card::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 5px;
  background: var(--fit-cyan);
  content: "";
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 260ms ease;
}

.equipment-sheet-card--accent::after {
  background: var(--fit-orange);
}

.equipment-sheet-card:hover::after,
.equipment-sheet-card:focus-visible::after {
  transform: scaleX(1);
}

.equipment-sheet-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e8eae7;
}

.equipment-sheet-card figure::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 32px rgba(3, 9, 14, 0.1);
  content: "";
  pointer-events: none;
}

.equipment-sheet-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 240ms ease, transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.equipment-sheet-card:hover img,
.equipment-sheet-card:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.018);
}

.equipment-sheet-card > div {
  display: grid;
  min-height: 214px;
  align-content: start;
  padding: 23px 24px 25px;
  border-top: 1px solid rgba(142, 217, 239, 0.16);
}

.equipment-sheet-card span,
.equipment-sheet-card h3,
.equipment-sheet-card p,
.equipment-sheet-card small {
  display: block;
  margin: 0;
}

.equipment-sheet-card span {
  color: var(--fit-cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.equipment-sheet-card h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.equipment-sheet-card p {
  margin-top: 13px;
  color: rgba(224, 237, 241, 0.74);
  font-size: 0.88rem;
  line-height: 1.75;
}

.equipment-sheet-card small {
  margin-top: 17px;
  color: var(--fit-orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.equipment-fitting__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(142, 217, 239, 0.22);
  border-left: 4px solid var(--fit-cyan);
  background: rgba(3, 10, 16, 0.72);
  color: rgba(225, 238, 241, 0.76);
  font-size: 0.88rem;
  line-height: 1.75;
}

.equipment-fitting__note a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(142, 217, 239, 0.4);
  color: var(--fit-paper);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.npc-fitting {
  padding: clamp(82px, 9vw, 140px) 0 clamp(90px, 10vw, 150px);
  border-top: 1px solid rgba(142, 217, 239, 0.18);
}

.npc-fitting__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 54px;
  padding: 2px;
  background: rgba(142, 217, 239, 0.2);
}

.fit-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #07121a;
  color: var(--fit-paper);
  text-decoration: none;
}

.fit-card::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 4px;
  background: var(--fit-cyan);
  content: "";
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 280ms ease;
}

.fit-card--accent::after {
  background: var(--fit-orange);
}

.fit-card:hover::after,
.fit-card:focus-visible::after {
  transform: scaleX(1);
}

.fit-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0a151e;
}

.fit-card figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 9, 14, 0.48));
  content: "";
  pointer-events: none;
}

.fit-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 260ms ease, transform 450ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.fit-card:hover img,
.fit-card:focus-visible img {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.025);
}

.fit-card__copy {
  display: flex;
  min-height: 222px;
  flex-direction: column;
  padding: 20px 20px 22px;
  border-top: 1px solid rgba(142, 217, 239, 0.16);
}

.fit-card__copy .route-cue__action {
  margin-top: auto;
  padding-top: 14px;
  color: var(--fit-cyan-hot);
}

.fit-card__copy span,
.fit-card__copy h3,
.fit-card__copy p,
.fit-card__copy small {
  display: block;
  margin: 0;
}

.fit-card__copy span {
  color: var(--fit-cyan);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.fit-card__copy h3 {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
}

.fit-card__copy p {
  margin-top: 9px;
  color: rgba(220, 234, 238, 0.68);
  font-size: 0.76rem;
  line-height: 1.72;
}

.fit-card__copy small {
  margin-top: 14px;
  color: rgba(240, 154, 81, 0.78);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.fitting-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.42fr);
  align-items: stretch;
  margin-bottom: clamp(92px, 10vw, 150px);
  overflow: hidden;
  border: 1px solid rgba(142, 217, 239, 0.28);
  border-top: 6px solid var(--fit-cyan);
  background:
    linear-gradient(140deg, rgba(142, 217, 239, 0.1), transparent 42%),
    #07131d;
}

.fitting-guide__copy {
  padding: clamp(34px, 5vw, 74px);
}

.fitting-guide h2 {
  font-size: clamp(2.6rem, 4.8vw, 5.4rem);
}

.fitting-guide__copy > p:nth-of-type(2) {
  max-width: 62em;
  margin: 25px 0 0;
  color: rgba(223, 237, 241, 0.72);
  font-size: 0.86rem;
  line-height: 1.95;
}

.fitting-guide nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.fitting-guide nav a {
  padding: 11px 14px;
  border: 1px solid rgba(142, 217, 239, 0.4);
  color: var(--fit-paper);
  font-size: 0.73rem;
  font-weight: 900;
  text-decoration: none;
}

.fitting-guide nav a:first-child {
  background: var(--fit-cyan);
  color: #061019;
}

.fitting-guide figure {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: end center;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(142, 217, 239, 0.25), transparent 48%),
    linear-gradient(180deg, #102b3d, #061018);
}

.fitting-guide figure img {
  display: block;
  width: min(100%, 470px);
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}

.fitting-guide figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  background: rgba(3, 10, 15, 0.82);
  backdrop-filter: blur(10px);
}

.fitting-guide figcaption span,
.fitting-guide figcaption b {
  display: block;
}

.fitting-guide figcaption span {
  color: var(--fit-orange);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.fitting-guide figcaption b {
  margin-top: 4px;
  font-size: 0.82rem;
}

.fitting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 84px);
  border-top: 1px solid rgba(142, 217, 239, 0.2);
  background: #020609;
}

.fitting-footer p {
  margin: 0;
  color: var(--fit-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.fitting-footer a {
  color: var(--fit-paper);
  font-size: 0.73rem;
  font-weight: 900;
  text-decoration: none;
}

.sheet-dialog {
  width: min(1460px, 96vw);
  height: min(940px, 92svh);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 217, 239, 0.42);
  background: #050d14;
  color: var(--fit-paper);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.75);
}

.sheet-dialog::backdrop {
  background: rgba(1, 4, 7, 0.88);
  backdrop-filter: blur(8px);
}

.sheet-dialog__shell {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
}

.sheet-dialog__visual {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  margin: 0;
  overflow: auto;
  background: #e8eae7;
}

.sheet-dialog__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sheet-dialog__copy {
  display: grid;
  align-content: end;
  padding: clamp(34px, 4vw, 62px) clamp(26px, 3vw, 48px);
  border-left: 1px solid rgba(142, 217, 239, 0.22);
  background:
    linear-gradient(145deg, rgba(142, 217, 239, 0.11), transparent 40%),
    #07131d;
}

.sheet-dialog__copy p,
.sheet-dialog__copy h2,
.sheet-dialog__copy small {
  margin: 0;
}

.sheet-dialog__copy > p:first-child {
  color: var(--fit-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sheet-dialog__copy h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 4.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.sheet-dialog__copy > p:nth-child(3) {
  margin-top: 22px;
  color: rgba(225, 238, 241, 0.76);
  font-size: 0.94rem;
  line-height: 1.85;
}

.sheet-dialog__copy small {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(142, 217, 239, 0.22);
  color: var(--fit-orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sheet-dialog__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(142, 217, 239, 0.45);
  background: rgba(3, 9, 14, 0.88);
  color: #fff;
  cursor: pointer;
}

.sheet-dialog__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 2px;
  background: currentColor;
}

.sheet-dialog__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sheet-dialog__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sheet-dialog-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .fitting-topbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .fitting-topbar > p {
    display: none;
  }

  .fitting-hero__shell {
    grid-template-columns: minmax(350px, 0.72fr) minmax(450px, 1fr);
    gap: 42px;
  }

  .fitting-hero h1 {
    font-size: clamp(3.8rem, 7vw, 6.2rem);
  }

  .npc-fitting__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-fitting__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr);
  }

  .fit-card__copy {
    min-height: 0;
    align-content: end;
    padding: 22px;
    border-top: 0;
    border-left: 1px solid rgba(142, 217, 239, 0.16);
  }
}

@media (max-width: 940px) {
  .fitting-topbar nav {
    gap: 16px;
  }

  .fitting-hero {
    padding-top: 112px;
  }

  .fitting-hero__shell {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .fitting-hero__copy {
    max-width: 760px;
  }

  .fitting-hero h1 {
    font-size: clamp(4rem, 11vw, 7.4rem);
  }

  .fitting-hero__visual {
    width: min(760px, 100%);
    justify-self: center;
  }

  .gear-focus__head,
  .equipment-fitting__head,
  .npc-fitting__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gear-focus__head > p,
  .equipment-fitting__head > p,
  .npc-fitting__head > p {
    max-width: 70ch;
    padding: 18px 0 0;
    border-top: 1px solid rgba(142, 217, 239, 0.28);
    border-left: 0;
  }

  .gear-focus__points {
    grid-template-columns: 1fr;
  }

  .gear-focus__points article {
    min-height: 0;
  }

  .gear-focus__note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gear-focus__note a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .fitting-guide {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.48fr);
  }

  .sheet-dialog__shell {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  }
}

@media (max-width: 760px) {
  .fitting-page::before {
    top: 58px;
  }

  .fitting-topbar {
    min-height: 58px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 4px 16px;
  }

  .fitting-topbar__brand {
    width: min(270px, 78vw);
    height: 48px;
  }

  .fitting-topbar nav {
    display: none;
  }

  .fitting-hero {
    min-height: 0;
    padding: 100px 16px 58px;
  }

  .fitting-hero::after {
    display: none;
  }

  .fitting-hero h1 {
    margin-top: 12px;
    font-size: clamp(3.3rem, 16vw, 5.5rem);
  }

  .fitting-hero h1 span {
    font-size: 0.48em;
  }

  .fitting-hero__lead {
    font-size: 0.86rem;
    line-height: 1.9;
  }

  .fitting-hero__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .fitting-hero__links a {
    min-width: 0;
    padding-inline: 10px;
  }

  .fitting-hero__facts dd {
    font-size: 0.72rem;
  }

  .fitting-hero__visual {
    padding: 10px;
  }

  .fitting-hero__visual figcaption {
    grid-template-columns: 1fr;
  }

  .fitting-hero__visual figcaption small {
    margin-top: 2px;
  }

  .gear-focus,
  .npc-fitting,
  .fitting-guide {
    width: calc(100% - 20px);
  }

  .gear-focus {
    padding: 78px 0 96px;
  }

  .gear-focus__head h2,
  .equipment-fitting__head h2,
  .npc-fitting__head h2 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .gear-focus__points {
    margin-top: 34px;
  }

  .gear-focus__points article {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 22px 18px;
  }

  .gear-focus__points article > span {
    font-size: 1.9rem;
  }

  .gear-focus__note {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .gear-focus__note a {
    grid-column: auto;
  }

  .npc-fitting {
    padding: 78px 0 98px;
  }

  .equipment-fitting {
    padding: 78px 10px 98px;
  }

  .equipment-fitting__grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .equipment-sheet-card {
    grid-template-columns: minmax(0, 0.94fr) minmax(180px, 1.06fr);
  }

  .equipment-sheet-card > div {
    min-height: 0;
    align-content: end;
    padding: 18px;
    border-top: 0;
    border-left: 1px solid rgba(142, 217, 239, 0.16);
  }

  .equipment-sheet-card h3 {
    font-size: clamp(1.15rem, 4.2vw, 1.7rem);
  }

  .equipment-sheet-card p {
    font-size: 0.82rem;
  }

  .equipment-fitting__note {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .equipment-fitting__note a {
    text-align: center;
    white-space: normal;
  }

  .npc-fitting__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
  }

  .fit-card {
    display: block;
  }

  .fit-card__copy {
    min-height: 164px;
    padding: 14px 13px 16px;
    border-top: 1px solid rgba(142, 217, 239, 0.16);
    border-left: 0;
  }

  .fit-card__copy h3 {
    font-size: 1.35rem;
  }

  .fit-card__copy p {
    font-size: 0.68rem;
    line-height: 1.62;
  }

  .fit-card__copy small {
    font-size: 0.46rem;
  }

  .fitting-guide {
    grid-template-columns: 1fr;
    margin-bottom: 94px;
  }

  .fitting-guide__copy {
    padding: 34px 20px 38px;
  }

  .fitting-guide h2 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .fitting-guide nav {
    display: grid;
  }

  .fitting-guide nav a {
    text-align: center;
  }

  .fitting-guide figure {
    min-height: 340px;
  }

  .fitting-guide figure img {
    max-height: 370px;
  }

  .fitting-footer {
    display: grid;
    justify-items: center;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .sheet-dialog {
    width: calc(100vw - 16px);
    height: auto;
    max-height: calc(100svh - 16px);
    overflow-y: auto;
  }

  .sheet-dialog__shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .sheet-dialog__visual {
    max-height: 69svh;
  }

  .sheet-dialog__visual img {
    height: auto;
    max-height: 69svh;
  }

  .sheet-dialog__copy {
    padding: 25px 20px 28px;
    border-top: 1px solid rgba(142, 217, 239, 0.22);
    border-left: 0;
  }

  .sheet-dialog__copy h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .sheet-dialog__close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 420px) {
  .fitting-hero__links {
    grid-template-columns: 1fr;
  }

  .fitting-hero__facts {
    grid-template-columns: 1fr;
  }

  .fitting-hero__facts div,
  .fitting-hero__facts div + div {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(142, 217, 239, 0.14);
  }

  .fitting-hero__facts div:last-child {
    border-bottom: 0;
  }

  .fitting-hero__facts dd {
    margin-top: 0;
  }

  .npc-fitting__grid {
    grid-template-columns: 1fr;
  }

  .fit-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(135px, 0.85fr);
  }

  .fit-card__copy {
    min-height: 0;
    align-content: end;
    border-top: 0;
    border-left: 1px solid rgba(142, 217, 239, 0.16);
  }

  .fit-card__copy small {
    display: none;
  }

  .equipment-sheet-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(156px, 1.1fr);
  }

  .equipment-sheet-card > div {
    padding: 13px;
  }

  .equipment-sheet-card span,
  .equipment-sheet-card small {
    font-size: 0.68rem;
  }

  .equipment-sheet-card h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .equipment-sheet-card p {
    margin-top: 8px;
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .equipment-sheet-card small {
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fit-card::after,
  .fit-card img,
  .equipment-sheet-card::after,
  .equipment-sheet-card img {
    transition: none;
  }
}
