.mouse-detail-page {
  background:
    radial-gradient(circle at 14% 12%, rgba(56,189,248,.12), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(168,85,247,.14), transparent 34%),
    #0a0a0f;
  color: #e5e7eb;
}

.mouse-detail-root {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 92px 0 52px;
}

.mouse-loading,
.mouse-empty {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20,18,38,.76), rgba(12,10,26,.58));
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.mouse-loading-mark,
.mouse-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  color: #7dd3fc;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.28);
}

.md-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: .82rem;
}

.md-breadcrumb a {
  color: #bae6fd;
  text-decoration: none;
}

.md-hero {
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  margin-bottom: 1.2rem;
}

.md-visual,
.md-main,
.md-panel,
.md-card {
  border: 1px solid rgba(148,163,184,.18);
  background: linear-gradient(160deg, rgba(20,18,38,.82), rgba(12,10,26,.68));
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
}

.md-visual {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.md-visual::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 16px;
  background: radial-gradient(circle, rgba(56,189,248,.12), transparent 70%);
  transform: skewX(-4deg);
}

.md-visual img {
  position: relative;
  z-index: 1;
  max-width: 86%;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0,0,0,.42));
}

.md-visual .fav-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.md-main {
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.md-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: .85rem;
}

.md-brand {
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.md-tier {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .2rem .6rem;
  border-radius: 999px;
  color: #f8fafc;
  background: linear-gradient(90deg, rgba(168,85,247,.58), rgba(56,189,248,.42));
  border: 1px solid rgba(255,255,255,.22);
  font-size: .75rem;
  font-weight: 900;
}

.md-main h1 {
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.md-desc {
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.md-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.1rem;
}

.md-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 32px;
  padding: .35rem .7rem;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(56,189,248,.09);
  border: 1px solid rgba(125,211,252,.18);
  font-size: .8rem;
  font-weight: 700;
}

.md-actions,
.md-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: .62rem;
}

.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .68rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.25);
  color: #e5e7eb;
  background: rgba(255,255,255,.055);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
}

.md-btn.primary {
  color: #04121f;
  border-color: transparent;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.md-btn.buy {
  color: #06121f;
  border-color: transparent;
  background: linear-gradient(90deg, #67e8f9, #c084fc, #f0abfc);
}

.md-actions .cmp-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: auto;
  min-width: 160px;
  min-height: 42px;
  padding: .68rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.25);
  color: #e5e7eb;
  background: rgba(255,255,255,.055);
  box-shadow: none;
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
}

.md-actions .cmp-btn::after {
  content: '比較リストに追加';
}

.md-actions .cmp-btn.is-cmp {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
}

.md-actions .cmp-btn.is-cmp::after {
  content: '比較リストから外す';
}

.md-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 1rem;
}

.md-panel,
.md-card {
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.md-panel h2,
.md-card h2 {
  margin: 0 0 .85rem;
  font-size: 1.05rem;
}

.md-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.md-spec {
  min-width: 0;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(148,163,184,.14);
}

.md-spec span {
  display: block;
  margin-bottom: .2rem;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
}

.md-spec b {
  display: block;
  color: #f8fafc;
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.md-note-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-note-list li {
  color: #cbd5e1;
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
  font-size: .9rem;
}

.md-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.md-warning {
  margin: 0 0 .9rem;
  padding: .8rem .9rem;
  border-radius: 12px;
  color: #fed7aa;
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.28);
  line-height: 1.65;
  font-size: .88rem;
}

.md-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.md-related-card {
  min-width: 0;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.md-related-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: rgba(255,255,255,.035);
  padding: .55rem;
}

.md-related-body {
  padding: .72rem;
}

.md-related-name {
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

.md-related-meta {
  margin-top: .25rem;
  color: #94a3b8;
  font-size: .72rem;
}

@media (max-width: 860px) {
  .md-hero,
  .md-grid {
    grid-template-columns: 1fr;
  }
  .md-visual {
    min-height: 300px;
  }
  .md-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mouse-detail-root {
    width: min(100% - 18px, 1180px);
    padding-top: 82px;
  }
  .md-main,
  .md-panel,
  .md-card {
    border-radius: 14px;
  }
  .md-specs,
  .md-related {
    grid-template-columns: 1fr;
  }
  .md-actions .md-btn,
  .md-actions .cmp-btn,
  .md-store-links .md-btn {
    width: 100%;
  }
}
