:root {
  --bg: #071019;
  --bg-soft: #0f1d2d;
  --ink: #ebf5ff;
  --ink-dim: #b9cade;
  --line: #26425e;
  --accent: #3ec2ff;
  --accent-2: #7bffb8;
  --card: rgba(14, 29, 44, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% 10%, #17314a, var(--bg) 40%);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.22;
}

.orb-a {
  background: #00b0ff;
  top: -10rem;
  left: -10rem;
}

.orb-b {
  background: #6dffb2;
  bottom: -18rem;
  right: -16rem;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.95rem;
  margin-top: 0.5rem;
  position: sticky;
  top: 0.65rem;
  z-index: 100;
  border: 1px solid rgba(57, 96, 129, 0.82);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(12, 27, 40, 0.96), rgba(8, 18, 30, 0.93));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.nav-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.music-inline-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid #355f83;
  border-radius: 999px;
  background: rgba(9, 23, 36, 0.82);
  padding: 0.22rem 0.3rem;
}

.music-btn-inline {
  border: 1px solid #3b678c;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(15, 33, 50, 0.95);
  color: #d7ecff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
}

.music-btn-inline:hover {
  border-color: #68c3f0;
}

.music-mini-state {
  font-size: 0.72rem;
  color: #9dc9e7;
  min-width: 3.9rem;
  text-align: center;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #59cfff, #81ffc3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(92, 145, 187, 0.9);
  background: rgba(8, 22, 33, 0.93);
  color: #d9eeff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: #d9eeff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 15, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  padding-bottom: 2.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3.5rem;
}

.kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Rajdhani", sans-serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin: 0.5rem 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

p {
  margin-top: 0;
  color: var(--ink-dim);
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(50, 120, 170, 0.25);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #6ca3ff);
  color: #04101d;
  border-color: transparent;
  font-weight: 700;
}

.btn.ghost {
  color: var(--ink);
}

.stamp {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: #8fb0c9;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.section {
  margin: 2rem auto;
  padding: 1rem 0 0.5rem;
}

.section > h2,
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section > h2::before,
.section-head h2::before {
  content: "";
  width: 0.4rem;
  height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #4ecbff, #86ffc8);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-sub {
  margin-bottom: 1.1rem;
}

.section-controls {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 1rem;
}

.section-controls input,
.section-controls select {
  background: rgba(12, 24, 36, 0.88);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  min-height: 2.35rem;
}

.section-controls input:focus,
.section-controls select:focus {
  outline: none;
  border-color: #66cdfd;
  box-shadow: 0 0 0 3px rgba(101, 201, 245, 0.22);
}

.section-controls input {
  min-width: 16rem;
  flex: 1 1 16rem;
}

.section-controls select {
  min-width: 11rem;
}

.section-controls input::placeholder {
  color: #8aa8c4;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.8rem 0 1rem;
}

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

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

.result-count {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #99bdd8;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1rem;
  border-radius: 0.9rem;
  backdrop-filter: blur(4px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #3f76a2;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.card p,
.card li {
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.tip-category {
  display: inline-flex;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  color: #89d7ff;
  border: 1px solid #2f5f87;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.char-card,
.build-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.char-head,
.build-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.char-avatar,
.build-avatar {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #335b7e;
  background: #0b1b2a;
}

.meta-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  border: 1px solid var(--line);
}

.tier-s {
  background: rgba(62, 194, 255, 0.2);
  color: #8ce4ff;
}

.tier-a {
  background: rgba(123, 255, 184, 0.18);
  color: #9dffd0;
}

.tier-b {
  background: rgba(253, 217, 105, 0.14);
  color: #ffd976;
}

.tier-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.tier-table th,
.tier-table td {
  padding: 0.75rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(38, 66, 94, 0.65);
}

.tier-table th {
  color: #b9dfff;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
}

.tier-char-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tier-chip {
  display: inline-flex;
  gap: 0.33rem;
  align-items: center;
  background: rgba(22, 44, 63, 0.72);
  border: 1px solid #2e5577;
  border-radius: 999px;
  padding: 0.15rem 0.48rem 0.15rem 0.2rem;
  font-size: 0.8rem;
  color: #cae6ff;
}

.tier-chip img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid #406d92;
}

.tier-empty {
  color: #7b9ab5;
}

.build-list {
  margin: 0;
  padding-left: 1.05rem;
}

.build-list li {
  margin: 0.18rem 0;
}

.empty-state p {
  margin: 0;
}

.gallery-section {
  margin-top: 2.4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.gallery img {
  width: 100%;
  height: 11.4rem;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.gallery img:hover {
  transform: translateY(-2px);
  border-color: #70c9f3;
}

.gallery-item figcaption {
  color: #a8c9e4;
  font-size: 0.8rem;
  line-height: 1.3;
}

body.no-scroll {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(2, 9, 14, 0.92);
  padding: 1.1rem;
  backdrop-filter: blur(2px);
}

.lightbox-panel {
  width: min(96vw, 68rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  align-self: flex-end;
  border: 1px solid rgba(103, 152, 190, 0.92);
  background: rgba(9, 27, 40, 0.92);
  color: #d5ebff;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
}

.lightbox-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid rgba(86, 140, 182, 0.92);
  background: #0c1f30;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(114, 165, 206, 0.92);
  background: rgba(8, 24, 36, 0.9);
  color: #d7ecff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.lightbox-prev {
  left: 0.55rem;
}

.lightbox-next {
  right: 0.55rem;
}

.lightbox-caption {
  margin: 0;
  color: #c8e4fa;
  text-align: center;
  font-size: 0.9rem;
}

.gacha-disclaimer p {
  margin-top: 0.35rem;
}

.banner-schedule-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.banner-schedule-card {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.85rem;
  padding: 0.72rem;
}

.banner-schedule-media {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(80, 136, 178, 0.86);
  min-height: 5.2rem;
}

.banner-schedule-media img {
  width: 100%;
  height: 100%;
  min-height: 5.2rem;
  object-fit: cover;
  display: block;
}

.banner-schedule-copy h3 {
  margin: 0.2rem 0 0.35rem;
}

.banner-schedule-copy p {
  margin: 0.14rem 0;
}

.banner-schedule-kicker {
  color: #9cd0ef;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-schedule-meta {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.banner-schedule-timer {
  color: #d8f0ff;
  font-size: 0.9rem;
}

.banner-schedule-note {
  color: #f4d68f;
  font-size: 0.78rem;
}

.gacha-controls .btn {
  min-width: 10rem;
  appearance: none;
  -webkit-appearance: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #d9eeff;
  background: rgba(9, 27, 40, 0.92);
  border: 1px solid rgba(81, 137, 178, 0.92);
  cursor: pointer;
}

.gacha-controls .btn.primary {
  color: #04101d;
  border-color: transparent;
}

.gacha-controls .btn.ghost {
  color: #d9eeff;
  background: rgba(9, 27, 40, 0.92);
}

.gacha-controls .btn:disabled {
  color: #8faec8;
  border-color: rgba(60, 94, 120, 0.85);
  background: rgba(9, 23, 35, 0.55);
  cursor: not-allowed;
  transform: none;
}

.gacha-controls .btn:not(:disabled):hover {
  border-color: #76cdf5;
}

.gacha-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric-card {
  padding: 0.8rem 0.95rem;
}

.metric-card p {
  margin: 0;
  color: var(--ink-dim);
}

.metric-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

.gacha-stage {
  margin-top: 1rem;
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  padding: 0;
}

.gacha-stage img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  display: block;
}

.gacha-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 14, 22, 0.86), rgba(4, 14, 22, 0.2)),
    radial-gradient(circle at 25% 20%, rgba(87, 190, 255, 0.22), transparent 58%);
  pointer-events: none;
}

.gacha-stage-copy {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 2;
}

.gacha-stage-copy h3 {
  margin: 0.2rem 0;
}

.gacha-stage-copy p {
  margin: 0.28rem 0;
}

.gacha-stage::before {
  content: "";
  position: absolute;
  inset: -4rem 0 auto 0;
  height: 4.8rem;
  background: linear-gradient(to bottom, rgba(140, 219, 255, 0.42), rgba(140, 219, 255, 0));
  opacity: 0;
  pointer-events: none;
}

.gacha-stage.rolling::before {
  opacity: 1;
  animation: gacha-scan 1.05s linear infinite;
}

.gacha-stage.reveal {
  box-shadow: 0 0 0 1px rgba(134, 212, 255, 0.45), 0 0 32px rgba(114, 192, 236, 0.22);
}

@keyframes gacha-scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(22rem);
  }
}

.gacha-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.2rem, 1fr));
  gap: 0.6rem;
}

.gacha-card {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  padding: 0.65rem 0.55rem;
}

.gacha-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gacha-card.rarity-6 {
  border-color: rgba(255, 209, 112, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 112, 0.5);
}

.gacha-card.rarity-5 {
  border-color: rgba(192, 136, 255, 0.9);
}

.gacha-card.rarity-4 {
  border-color: rgba(91, 166, 227, 0.9);
}

.gacha-rarity {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 149, 191, 0.88);
  font-size: 0.74rem;
  margin-bottom: 0.38rem;
}

.gacha-card-avatar {
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(86, 142, 184, 0.85);
  background: #102535;
}

.gacha-card h3 {
  margin: 0.45rem 0 0.2rem;
  font-size: 0.95rem;
}

.gacha-card p {
  margin: 0;
  font-size: 0.78rem;
  color: #a9cce8;
}

.gacha-featured {
  display: inline-block;
  margin-top: 0.36rem;
  font-size: 0.74rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(214, 173, 82, 0.25);
  border: 1px solid rgba(214, 173, 82, 0.72);
}

.gacha-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.6rem;
}

.history-item h3 {
  margin: 0.18rem 0 0.3rem;
}

.history-item p {
  margin: 0.14rem 0;
}

.source-list {
  padding-left: 1.05rem;
}

.source-list li {
  margin-bottom: 0.35rem;
  color: var(--ink-dim);
}

a {
  color: #86d8ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #7cd8ff;
  outline-offset: 2px;
}

.disclaimer {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
}

.footer p {
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .team-comp-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section-controls input,
  .section-controls select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 20rem);
    height: 100dvh;
    padding: 5rem 1.1rem 1.2rem;
    background: rgba(6, 16, 25, 0.98);
    border-left: 1px solid rgba(56, 98, 129, 0.92);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    transform: translateX(106%);
    transition: transform 0.28s ease;
    z-index: 110;
    pointer-events: none;
  }

  .nav.menu-open .nav-links {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(42, 69, 92, 0.55);
  }

  .nav.menu-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav.menu-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav.menu-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-brand-cluster {
    max-width: calc(100% - 3.1rem);
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .music-inline-controls {
    flex-wrap: wrap;
  }

  .music-mini-state {
    min-width: 0;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .tips-grid,
  .build-grid,
  .gear-db-grid {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 9.8rem;
  }

  .gallery-item figcaption {
    font-size: 0.75rem;
  }

  .gacha-metrics {
    grid-template-columns: 1fr;
  }

  .banner-schedule-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .banner-schedule-media,
  .banner-schedule-media img {
    min-height: 8.6rem;
  }

  .gacha-controls .btn {
    min-width: 0;
  }

  .gacha-stage {
    min-height: 14.2rem;
  }

  .gacha-stage img {
    min-height: 14.2rem;
  }

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

  .lightbox-nav {
    padding: 0.23rem 0.5rem;
    font-size: 0.78rem;
  }

  .lightbox-prev {
    left: 0.3rem;
  }

  .lightbox-next {
    right: 0.3rem;
  }
}

.nav-links a.active {
  color: var(--ink);
}

.page-hero {
  padding-bottom: 1.1rem;
}

.page-hero-compact {
  padding-bottom: 0.35rem;
}

.page-hero-copy {
  padding: 0.9rem 0 1.45rem;
}

.page-hero-copy p {
  max-width: 52rem;
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card-link:hover .detail-link {
  color: #b8e9ff;
}

.detail-link {
  display: inline-flex;
  margin-top: 0.28rem;
  color: #88dbff;
  font-size: 0.88rem;
}

.inline-link {
  text-decoration: none;
}

.back-link {
  color: #9edbff;
  text-decoration: none;
  font-size: 0.95rem;
}

.character-shell {
  margin-bottom: 0.95rem;
}

.character-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.character-portrait {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #355c7d;
  background: #0b1b2a;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.45rem;
}

.mini-chip {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border: 1px solid #2e5577;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #cce8ff;
  background: rgba(16, 34, 50, 0.75);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.section-block {
  margin: 0.6rem 0 0.95rem;
}

.skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.skill-icon {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid #335b7e;
  background: #0e2132;
}

.skill-type {
  margin-bottom: 0.2rem;
  color: #93d8ff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.story-list {
  margin: 0;
  padding-left: 1rem;
}

.story-list li {
  margin: 0.3rem 0;
  color: var(--ink-dim);
}

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

.gear-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gear-head {
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.gear-icon {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid #355b7a;
  background: #0d2031;
}

.gear-meta {
  font-size: 0.82rem;
  color: #a4c8e4;
}

.gear-stats {
  margin: 0;
  padding-left: 1rem;
}

.gear-stats li {
  margin: 0.22rem 0;
  font-size: 0.9rem;
}

.gear-db-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gear-slot {
  margin: 0;
}

.owner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.owner-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #345f83;
  border-radius: 999px;
  background: rgba(16, 35, 52, 0.74);
  color: #c9e6ff;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.18rem 0.52rem;
}

.owner-chip:hover {
  border-color: #67c3ef;
  color: #e5f4ff;
}

.bestfor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.bestfor-label {
  font-size: 0.82rem;
  color: #98bdd8;
}

.bestfor-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #355f83;
  padding: 0.12rem 0.5rem;
  font-size: 0.76rem;
  background: rgba(14, 32, 48, 0.76);
  color: #d5ecff;
}

.bestfor-dps {
  border-color: #3f9dff;
  color: #9ad3ff;
}

.bestfor-sub-dps {
  border-color: #72c0ff;
  color: #bce4ff;
}

.bestfor-support {
  border-color: #63d7b1;
  color: #a7f0d9;
}

.bestfor-sustain {
  border-color: #8fd886;
  color: #cef7c5;
}

.bestfor-vanguard {
  border-color: #f2be6a;
  color: #ffe0a7;
}

.bestfor-flex {
  border-color: #89a7c2;
  color: #c9ddef;
}

.gear-title-link {
  color: inherit;
  text-decoration: none;
}

.gear-title-link:hover {
  color: #c2e9ff;
}

.gear-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gear-shell {
  margin-bottom: 0.95rem;
}

.gear-shell-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.gear-shell-icon {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid #3a6284;
  background: #0d2133;
}

.owner-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.owner-mini {
  border: 1px solid rgba(53, 87, 119, 0.75);
  border-radius: 0.75rem;
  background: rgba(10, 23, 35, 0.72);
}

.owner-mini-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  padding: 0.65rem;
}

.owner-mini-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #3d678d;
  background: #0c1f31;
}

.owner-mini-name {
  margin: 0;
  color: #d9eeff;
  font-size: 0.95rem;
}

.owner-mini-meta {
  margin: 0.1rem 0 0;
  color: #95bddb;
  font-size: 0.78rem;
}

.progression-grid {
  grid-template-columns: 1fr;
}

.progression-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progression-head {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.progression-focus {
  margin: 0;
  color: #95bddd;
}

.progression-note {
  margin: 0;
  color: #b9d2e8;
  font-size: 0.92rem;
}

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

.slot-card {
  border: 1px solid rgba(53, 87, 119, 0.75);
  background: rgba(10, 23, 35, 0.72);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slot-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slot-icon {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #375f83;
  background: #0c1f30;
}

.slot-label {
  margin: 0 0 0.16rem;
  color: #95d6ff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.slot-meta {
  margin: 0;
  color: #9bbcd8;
  font-size: 0.8rem;
}

.slot-card h4 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.compact-stats li {
  font-size: 0.86rem;
}

.team-comp-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.team-comp-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.team-member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border: 1px solid rgba(60, 103, 140, 0.82);
  border-radius: 999px;
  background: rgba(11, 27, 40, 0.84);
  color: #d8ecff;
  text-decoration: none;
  padding: 0.16rem 0.46rem 0.16rem 0.16rem;
  font-size: 0.78rem;
}

.team-member-chip img {
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(76, 121, 160, 0.9);
  background: #102535;
}

.team-member-chip:hover {
  border-color: #70c9f3;
}

.team-member-chip.ghost {
  cursor: default;
}

.team-rotation {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.team-rotation li {
  margin: 0.2rem 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .owner-mini-grid {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .character-top {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .character-portrait {
    width: 4.6rem;
    height: 4.6rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .gear-shell-top {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .gear-shell-icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .nav-brand-cluster {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .music-inline-controls {
    padding: 0.2rem 0.26rem;
  }

  .music-mini-state {
    min-width: 3.1rem;
  }
}
