:root {
  --bg: #f4efe6;
  --bg-deep: #e1d4bf;
  --ink: #172126;
  --muted: #5f6a71;
  --card: rgba(255, 250, 242, 0.78);
  --card-strong: rgba(255, 248, 235, 0.92);
  --line: rgba(23, 33, 38, 0.12);
  --accent: #bf5b32;
  --accent-strong: #8f3918;
  --accent-soft: #f0c18e;
  --ct: #86c3d5;
  --t: #d8a15a;
  --shadow: 0 18px 60px rgba(55, 37, 19, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: #f2f4f8;
  background:
    linear-gradient(180deg, #151c2a 0%, #0b1019 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero,
.section {
  padding: 24px clamp(20px, 4vw, 48px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 1240px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(63, 46, 25, 0.08);
}

.brand,
.eyebrow,
.panel-label,
.column-label,
.stat-label,
.detail-kicker,
.collection-status {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-copy,
.hero-panel,
.loadout-column,
.collection-card,
.notes-grid article,
.detail-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.95), rgba(242, 230, 212, 0.78)),
    linear-gradient(90deg, rgba(191, 91, 50, 0.08), rgba(134, 195, 213, 0.08));
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(191, 91, 50, 0.26), rgba(216, 161, 90, 0.05));
  transform: rotate(16deg);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--accent-strong);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.hero-text,
.section-heading p,
.notes-grid p,
.collection-card p,
.detail-description,
.detail-section p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.skin-card:hover,
.collection-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #d98441 100%);
  color: #fffaf5;
  box-shadow: 0 12px 32px rgba(191, 91, 50, 0.25);
}

.button-secondary {
  border-color: rgba(23, 33, 38, 0.16);
  background: rgba(255, 250, 242, 0.76);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(249, 242, 231, 0.95), rgba(231, 219, 200, 0.88));
}

.panel-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.focus-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(23, 33, 38, 0.08);
}

.focus-card span,
.detail-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.focus-card strong,
.detail-meta strong {
  font-size: 1.05rem;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.loadout-columns,
.collection-grid,
.notes-grid {
  display: grid;
  gap: 20px;
}

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

.loadout-column {
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--card-strong), rgba(243, 233, 219, 0.74));
}

.loadout-column[data-side="ct"] {
  background:
    linear-gradient(180deg, rgba(250, 252, 251, 0.94), rgba(228, 241, 245, 0.88));
}

.loadout-column[data-side="t"] {
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(246, 230, 208, 0.88));
}

.column-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.column-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
}

.column-header h3 {
  margin: 0;
  font-size: 2rem;
  font-family: "Chakra Petch", sans-serif;
}

.side-stat {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(23, 33, 38, 0.08);
  text-align: right;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
}

.skin-list {
  display: grid;
  gap: 14px;
}

.skin-card {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.84);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.skin-card:hover {
  box-shadow: 0 16px 34px rgba(72, 52, 28, 0.12);
  border-color: rgba(191, 91, 50, 0.24);
}

.skin-card-top,
.collection-meta,
.progress-labels,
.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.skin-card-top {
  align-items: start;
  margin-bottom: 10px;
}

.skin-slot {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.skin-card h4,
.collection-card h3,
.notes-grid h3,
.detail-panel h3,
.detail-section h4 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
}

.skin-card h4 {
  font-size: 1.35rem;
}

.skin-finish {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.skin-flag {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fffaf5;
}

.skin-flag.ct {
  background: linear-gradient(135deg, #5aa6bb, var(--ct));
}

.skin-flag.t {
  background: linear-gradient(135deg, #ba7437, var(--t));
}

.skin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.collection-card {
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(237, 225, 207, 0.84));
}

.collection-status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 33, 38, 0.06);
  font-size: 0.78rem;
}

.collection-meta {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 33, 38, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.progress-labels {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.notes-grid article {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.72);
}

.detail-drawer {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.detail-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 24, 0.42);
  backdrop-filter: blur(6px);
}

.detail-panel {
  position: relative;
  margin: auto 0 auto auto;
  width: min(540px, 100%);
  max-height: 100vh;
  padding: 24px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(241, 229, 211, 0.96));
  border-radius: 34px 0 0 34px;
}

.detail-dismiss {
  display: inline-flex;
  margin-left: auto;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.84);
  cursor: pointer;
}

.detail-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.detail-panel h3 {
  font-size: 2rem;
}

.detail-finish {
  margin: 8px 0 12px;
  color: var(--accent-strong);
  font-weight: 600;
}

.detail-meta {
  margin: 24px 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.84);
  border: 1px solid rgba(23, 33, 38, 0.08);
}

.detail-section + .detail-section {
  margin-top: 24px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shot-card {
  min-height: 124px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(134, 195, 213, 0.18), rgba(216, 161, 90, 0.18));
  border: 1px dashed rgba(23, 33, 38, 0.18);
}

.shot-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Chakra Petch", sans-serif;
}

@media (max-width: 980px) {
  .hero-grid,
  .loadout-columns,
  .collection-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-links,
  .column-header,
  .collection-meta,
  .progress-labels,
  .detail-meta {
    align-items: start;
  }

  .topbar,
  .column-header,
  .collection-meta,
  .progress-labels,
  .detail-meta {
    flex-direction: column;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding-inline: 16px;
  }

  .topbar {
    border-radius: 28px;
  }

  .hero-copy,
  .hero-panel,
  .loadout-column,
  .collection-card,
  .notes-grid article {
    border-radius: 24px;
  }

  .detail-panel {
    border-radius: 24px 24px 0 0;
    margin: auto 0 0 0;
    width: 100%;
  }

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

.loadout-shell {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(63, 70, 74, 0.94), rgba(48, 55, 60, 0.96)),
    radial-gradient(circle at top center, rgba(255, 198, 92, 0.12), transparent 35%);
  box-shadow: 0 22px 80px rgba(16, 22, 24, 0.28);
  color: #f2eee8;
}

.loadout-topbar,
.loadout-nav,
.inventory-header,
.inventory-filters,
.operator-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.loadout-topbar {
  align-items: center;
  margin-bottom: 18px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.loadout-nav {
  color: rgba(242, 238, 232, 0.74);
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.loadout-nav .is-active {
  color: #fff5d9;
}

.loadout-side-switch {
  display: flex;
  gap: 10px;
}

.side-switch-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 238, 232, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.side-switch-button.active {
  background: #d6c38e;
  color: #2e3133;
  border-color: #eadcae;
  font-weight: 700;
}

.loadout-stage {
  min-height: 560px;
}

.stage-panel {
  display: grid;
  grid-template-columns: 92px minmax(280px, 0.95fr) minmax(320px, 1.1fr);
  gap: 18px;
  min-height: 100%;
}

.gear-rail,
.weapon-panel,
.operator-bay,
.loadout-inventory {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.gear-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
}

.gear-slot {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.gear-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
}

.gear-name {
  font-size: 0.72rem;
  color: rgba(242, 238, 232, 0.76);
  text-align: center;
}

.operator-bay {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px;
}

.operator-label-row {
  justify-content: start;
}

.operator-chip {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(214, 195, 142, 0.94);
  color: #2f3437;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.operator-chip.muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 238, 232, 0.84);
}

.operator-silhouette {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.15), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.operator-outline,
.weapon-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.operator-outline {
  bottom: 0;
  width: 220px;
  height: 320px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.74) 0 10%, transparent 11%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22));
  clip-path: polygon(44% 0, 56% 0, 62% 8%, 65% 22%, 76% 30%, 82% 58%, 73% 100%, 58% 100%, 54% 77%, 46% 77%, 42% 100%, 27% 100%, 18% 58%, 24% 30%, 35% 22%, 38% 8%);
  opacity: 0.72;
}

.weapon-glow {
  bottom: 98px;
  width: 210px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(246, 214, 147, 0.9), transparent);
  transform: translateX(-50%) rotate(-18deg);
}

.operator-silhouette.ct::after,
.operator-silhouette.t::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px;
  height: 3px;
}

.operator-silhouette.ct::after {
  background: linear-gradient(90deg, transparent, rgba(134, 195, 213, 0.8), transparent);
}

.operator-silhouette.t::after {
  background: linear-gradient(90deg, transparent, rgba(216, 161, 90, 0.85), transparent);
}

.operator-copy h3,
.inventory-header h3 {
  margin: 0;
  font-size: 2rem;
  font-family: "Chakra Petch", sans-serif;
}

.operator-copy p {
  margin: 8px 0 0;
  color: rgba(242, 238, 232, 0.72);
}

.weapon-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.weapon-category {
  display: grid;
  gap: 8px;
}

.weapon-category-title {
  color: rgba(242, 238, 232, 0.72);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weapon-slot-list {
  display: grid;
  gap: 8px;
}

.weapon-slot,
.inventory-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #f2eee8;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.weapon-slot {
  padding: 14px 12px;
}

.weapon-slot:hover,
.inventory-card:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 195, 142, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.weapon-slot-type,
.inventory-slot {
  display: block;
  margin-bottom: 6px;
  color: rgba(242, 238, 232, 0.62);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.weapon-slot strong,
.inventory-card strong {
  display: block;
  font-size: 1rem;
}

.weapon-slot-finish,
.inventory-finish {
  display: block;
  margin-top: 6px;
  color: #d9c78f;
  font-size: 0.82rem;
}

.loadout-inventory {
  margin-top: 18px;
  padding: 14px;
}

.inventory-header {
  align-items: end;
  margin-bottom: 12px;
}

.inventory-filters {
  color: rgba(242, 238, 232, 0.66);
}

.inventory-filter {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.inventory-filter.active {
  color: #fff5d9;
  border-color: rgba(214, 195, 142, 0.46);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.inventory-card {
  min-height: 118px;
  padding: 14px;
}

@media (max-width: 980px) {
  .loadout-topbar,
  .inventory-header {
    align-items: start;
    flex-direction: column;
  }

  .stage-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .gear-rail,
  .weapon-panel,
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

.loadout-shell {
  padding: 20px;
  border-radius: 28px;
  background: #0d1119;
  color: #f1f3f5;
  box-shadow: 0 28px 90px rgba(10, 14, 20, 0.35);
}

.loadout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.loadout-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(241, 243, 245, 0.62);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loadout-nav .is-active {
  color: #f8f4cf;
}

.loadout-side-switch {
  display: flex;
  gap: 10px;
}

.side-switch-button {
  min-width: 54px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 243, 245, 0.76);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.side-switch-button.active {
  background: #f2d992;
  border-color: #f8e5b2;
  color: #171b1f;
}

.scene-wrap {
  display: grid;
  gap: 18px;
}

.scene-copy {
  max-width: 44rem;
}

.scene-heading {
  display: inline-block;
  margin-bottom: 10px;
  color: #f2d992;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-copy h3 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.scene-copy p,
.scene-hint p,
.scene-hint span {
  color: rgba(241, 243, 245, 0.72);
}

.scene-copy p {
  margin: 10px 0 0;
}

.scene-board {
  position: relative;
  min-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 51% 30%, rgba(255, 255, 255, 0.08), transparent 23%),
    radial-gradient(circle at 51% 76%, rgba(255, 255, 255, 0.05), transparent 16%);
}

.scene-board.ct {
  background-color: #3e5567;
}

.scene-board.t {
  background-color: #71562f;
}

.scene-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 29%;
  background:
    linear-gradient(180deg, rgba(9, 14, 22, 0.16), rgba(9, 14, 22, 0.4));
  pointer-events: none;
}

.scene-overlay-left {
  left: 0;
}

.scene-overlay-right {
  right: 0;
}

.scene-side-hitbox {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28.06%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.scene-side-hitbox.left {
  left: 0;
}

.scene-side-hitbox.right {
  right: 0;
}

.scene-agent {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 19%;
  min-width: 150px;
  height: 62%;
  transform: translateX(-50%);
}

.scene-agent-body,
.scene-agent-weapon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.scene-agent-body {
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.8) 0 9%, transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18));
  clip-path: polygon(45% 0, 55% 0, 62% 7%, 66% 22%, 77% 30%, 84% 56%, 74% 100%, 58% 100%, 54% 79%, 46% 79%, 42% 100%, 26% 100%, 16% 56%, 23% 30%, 34% 22%, 38% 7%);
  opacity: 0.65;
}

.scene-agent-weapon {
  bottom: 38%;
  width: 118%;
  height: 3%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249, 224, 154, 0.95), transparent);
  transform: translateX(-50%) rotate(-18deg);
}

.scene-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scene-hotspot {
  position: absolute;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.scene-hotspot:hover,
.scene-hotspot:focus-visible {
  border-color: rgba(248, 229, 178, 0.9);
  background: rgba(248, 229, 178, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  outline: none;
}

.scene-tooltip {
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  bottom: 2.8%;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(10, 13, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.scene-tooltip-slot {
  color: #f2d992;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-tooltip strong {
  font-size: 1.08rem;
}

.scene-tooltip-finish {
  color: rgba(241, 243, 245, 0.68);
  font-size: 0.92rem;
}

.scene-hint {
  display: grid;
  gap: 6px;
}

.scene-hint p,
.scene-hint span {
  margin: 0;
}

.inventory-header.image-map,
.inventory-filters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.inventory-header.image-map {
  align-items: end;
  margin-top: 18px;
  margin-bottom: 12px;
}

.inventory-grid.image-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.inventory-card.image-map {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f1f3f5;
  text-align: left;
  cursor: pointer;
}

.inventory-card.image-map:hover,
.inventory-card.image-map:focus-visible {
  border-color: rgba(248, 229, 178, 0.82);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

@media (max-width: 980px) {
  .loadout-topbar,
  .inventory-header.image-map {
    align-items: start;
    flex-direction: column;
  }

  .scene-board {
    min-height: 560px;
  }

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

@media (max-width: 640px) {
  .scene-board {
    min-height: 460px;
  }

  .scene-agent {
    width: 24%;
    height: 56%;
  }

  .inventory-grid.image-map {
    grid-template-columns: 1fr;
  }
}

.collection-page {
  min-height: 100vh;
  padding-top: 14px;
}

.section-loadouts {
  max-width: none;
  padding: 0 24px 40px;
}

.section-loadouts .section-heading {
  max-width: none;
  margin-bottom: 22px;
  text-align: center;
}

.section-loadouts .section-heading h1 {
  margin: 0;
  color: #f3f5f8;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.loadout-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.loadout-stage {
  min-height: auto;
}

.loadout-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
  padding: 0.25rem 0 2rem;
}

.loadout-status {
  width: min(560px, 92vw);
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 24, 37, 0.96), rgba(10, 14, 22, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.loadout-status h2 {
  margin: 0;
  color: #f3f5f8;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.8rem;
}

.loadout-status p {
  margin: 12px 0 0;
  color: rgba(214, 220, 230, 0.78);
  line-height: 1.65;
}

.loadout-view {
  width: min(1675px, 99vw);
  position: relative;
  user-select: none;
}

.img-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.loadout-art {
  position: relative;
  width: 100%;
  aspect-ratio: 2079 / 754;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  background: #101722;
}

.loadout-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hover-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  display: none;
  z-index: 3;
  pointer-events: none;
  border-radius: 0.6rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
}

.side-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28.06%;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: default;
}

.side-zone.left {
  left: 0;
}

.side-zone.right {
  right: 0;
}

.side-zone.is-active {
  cursor: pointer;
}

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  border-radius: 0.35rem;
  cursor: default;
  background: transparent;
  border: 0;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
  outline: none;
  pointer-events: auto;
}

.hotspot[data-inspectable="true"] {
  cursor: pointer;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hotspot-accent, #60a5fa) 72%, transparent);
}

.hotspot[data-inspectable="true"]:hover,
.hotspot[data-inspectable="true"]:focus-visible {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--hotspot-accent, #60a5fa) 72%, transparent),
    0 0 0 2px color-mix(in srgb, var(--hotspot-accent, #60a5fa) 72%, transparent),
    0 0 24px color-mix(in srgb, var(--hotspot-accent, #60a5fa) 28%, transparent);
  background-color: color-mix(in srgb, var(--hotspot-accent, #60a5fa) 14%, transparent);
}

.hint {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(214, 220, 230, 0.7);
  font-size: 0.96rem;
}

.preview-bar {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  text-align: center;
  color: #e8ecf2;
}

.preview-label {
  color: #c4764d;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-bar strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.preview-bar span:last-child {
  color: rgba(214, 220, 230, 0.72);
  font-size: 0.94rem;
}

.detail-popover-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.detail-popover-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.detail-popover {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(14, 19, 29, 0.98), rgba(9, 13, 22, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.detail-popover-content {
  padding: 26px;
}

.detail-popover-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f5f8;
  cursor: pointer;
}

.detail-popover-header {
  padding-right: 92px;
}

.detail-popover-kicker,
.popover-section h3,
.attribute-row dt {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-popover-kicker {
  color: #c98a58;
  font-size: 0.82rem;
}

.detail-popover-header h2 {
  margin: 8px 0 0;
  color: #f5f7fa;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.detail-hero {
  margin: 22px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at top center, rgba(201, 138, 88, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(19, 26, 39, 0.98), rgba(9, 13, 22, 0.98));
}

.detail-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.popover-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popover-section h3 {
  color: #d7dde6;
  font-size: 0.84rem;
}

.popover-section p {
  margin: 10px 0 0;
  color: rgba(229, 234, 241, 0.86);
  line-height: 1.7;
}

.popover-section a {
  color: #f6c977;
}

.video-embed {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(18, 24, 37, 0.96), rgba(9, 13, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.attribute-list {
  margin: 12px 0 0;
}

.attribute-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.attribute-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.attribute-row dt {
  color: rgba(215, 221, 230, 0.72);
  font-size: 0.78rem;
}

.attribute-row dd {
  margin: 0;
  color: #f5f7fa;
  font-size: 1rem;
  text-align: right;
}

@media (max-width: 980px) {
  .loadout-wrap {
    min-height: auto;
  }

  .loadout-view {
    width: min(1675px, 99vw);
  }

  .preview-bar {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .detail-popover-layer {
    padding: 12px;
  }

  .detail-popover {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .detail-popover-content {
    padding: 18px;
  }

  .detail-popover-close {
    top: 12px;
    right: 12px;
  }

  .detail-popover-header {
    padding-right: 80px;
  }

  .attribute-row {
    display: grid;
    gap: 6px;
  }

  .attribute-row dd {
    text-align: left;
  }
}
