
.gaming-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 104px);
  overflow: hidden;
  border-bottom: 1px solid rgba(149, 255, 177, 0.16);
}

.gaming-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 55%, rgba(143, 246, 255, 0.06) 56%, transparent 57%) center / 28rem 28rem no-repeat,
    linear-gradient(90deg, transparent 0, rgba(143, 246, 255, 0.08) 50%, transparent 100%) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(143, 246, 255, 0.08) 50%, transparent 100%) center / 1px 100% no-repeat;
  opacity: 0.55;
}

.gaming-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(149, 255, 177, 0.05), transparent 18%, transparent 82%, rgba(149, 255, 177, 0.04)),
    linear-gradient(180deg, rgba(2, 8, 5, 0.28), rgba(2, 8, 5, 0.74));
}

.gaming-hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gaming-hero-video-el,
.gaming-hero-video-fallback {
  width: 100%;
  height: 100%;
}

.gaming-hero-video-el {
  object-fit: cover;
  opacity: 0.96;
  filter: saturate(0.72) brightness(0.42) contrast(1.05) hue-rotate(-22deg);
}

.gaming-hero-video-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(149, 255, 177, 0.16), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(95, 225, 132, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(5, 12, 8, 0.2), rgba(5, 12, 8, 0.72) 56%, rgba(5, 12, 8, 0.9) 100%);
}

.gaming-scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 4px);
}

.gaming-hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--hero-width), calc(100% - 64px));
  min-height: inherit;
  padding: 3.5rem 0;
}

.gaming-hero-card-stage {
  position: absolute;
  inset: clamp(1rem, 3vw, 2.25rem);
  z-index: 1;
  pointer-events: none;
}

.gaming-hero-card {
  --card-rotate: 0deg;
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  position: absolute;
  width: clamp(180px, 18vw, 280px);
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.62),
    0 16px 34px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: translate3d(var(--card-shift-x), var(--card-shift-y), 0) rotate(var(--card-rotate));
  transform-origin: center;
  transition: transform 160ms ease-out, box-shadow 220ms ease-out;
  will-change: transform;
}

.gaming-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 46%);
}

.gaming-hero-card img {
  width: 100%;
  height: auto;
}

.gaming-hero-card-kas {
  right: clamp(-4.5rem, -3vw, -1.75rem);
  bottom: clamp(-0.5rem, 2vh, 1.5rem);
  width: clamp(190px, 19vw, 290px);
  --card-rotate: 15deg;
  z-index: 3;
}

.gaming-hero-card-smk {
  top: clamp(0.5rem, 4vh, 2.5rem);
  right: clamp(-3.5rem, -2vw, -1.25rem);
  width: clamp(180px, 18vw, 270px);
  --card-rotate: 10deg;
  z-index: 4;
}

.gaming-hero-card-rad {
  top: clamp(8.5rem, 21vh, 12.75rem);
  left: clamp(-3.75rem, -3vw, -1.5rem);
  width: clamp(170px, 17vw, 255px);
  opacity: 0.82;
  --card-rotate: -20deg;
  z-index: 1;
}

.gaming-hero-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 48rem);
  padding: 34px 34px 30px;
  background:
    linear-gradient(180deg, rgba(9, 23, 14, 0.82), rgba(6, 16, 10, 0.8)),
    rgba(7, 18, 12, 0.76);
  border: 1px solid rgba(149, 255, 177, 0.22);
  border-radius: 26px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(201, 255, 214, 0.12),
    inset 0 0 0 1px rgba(149, 255, 177, 0.04);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.gaming-hero-panel::before,
.gaming-card::before,
.gaming-library-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid transparent;
  pointer-events: none;
  mask:
    linear-gradient(#000 0 0) top left,
    linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left,
    linear-gradient(#000 0 0) bottom right;
  mask-size: 18px 18px;
  mask-repeat: no-repeat;
}

.gaming-hero-panel::before {
  inset: 10px;
  border-color: rgba(143, 246, 255, 0.16);
}

.gaming-heading {
  max-width: 18ch;
  margin: 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: var(--display-weight);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #edfff0;
  text-shadow: 0 0 26px rgba(149, 255, 177, 0.12);
  text-wrap: balance;
}

.gaming-heading::after {
  content: "";
  display: block;
  width: clamp(3.8rem, 8vw, 6rem);
  height: 1px;
  margin-top: 0.32em;
  background: linear-gradient(90deg, currentColor, rgba(255, 255, 255, 0));
  opacity: 0.24;
}

.gaming-subtext {
  max-width: 41rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1.03rem, 1.8vw, 1.24rem);
  line-height: 1.66;
  color: rgba(224, 255, 229, 0.88);
}

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

.gaming-cta {
  color: #071109;
  background: linear-gradient(180deg, #95ffb1 0%, #5fe184 100%);
  border: 1px solid rgba(182, 255, 196, 0.36);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.gaming-cta:hover,
.gaming-cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #adffc1 0%, #74ee95 100%);
}

.gaming-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(149, 255, 177, 0.18);
  color: #defee5;
}

.gaming-ghost:hover,
.gaming-ghost:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.gaming-grid-section,
.gaming-insights-section {
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, rgba(247, 250, 247, 0.97) 0%, rgba(236, 243, 237, 0.98) 100%);
  border-bottom: 1px solid rgba(44, 65, 50, 0.1);
  color: var(--text-dark);
}

.gaming-grid-section::before,
.gaming-insights-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 33, 23, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 33, 23, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.gaming-grid-shell,
.gaming-insights-shell {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: 58px 0 64px;
}

.gaming-section-intro {
  max-width: 76rem;
  margin-bottom: 0;
}

.gaming-section-intro-tight {
  margin-bottom: 0;
}

.gaming-card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.gaming-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f4 100%);
  border: 1px solid rgba(20, 39, 29, 0.08);
  border-radius: 26px;
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.14),
    0 10px 24px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gaming-card::before,
.gaming-library-card::before {
  border-color: rgba(95, 225, 132, 0.18);
  opacity: 0.7;
}

.gaming-card:hover {
  transform: translateY(-5px);
  border-color: rgba(95, 225, 132, 0.24);
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.18),
    0 14px 30px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.gaming-card-large {
  grid-column: span 5;
}

.gaming-card-grid .gaming-card:not(.gaming-card-large):first-child,
.gaming-card-grid .gaming-card:not(.gaming-card-large):nth-child(3),
.gaming-card-grid .gaming-card:not(.gaming-card-large):nth-child(4) {
  grid-column: span 3;
}

.gaming-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe5ec;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gaming-card-large .gaming-card-media {
  aspect-ratio: 16 / 11;
}

.gaming-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gaming-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 24%),
    linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 32%);
}

.gaming-card-body {
  display: grid;
  grid-template-rows: auto minmax(3.2em, auto) 1fr;
  gap: 0.8rem;
  flex: 1 1 auto;
  padding: 1.25rem 1.35rem 1.5rem;
}

.gaming-card-large .gaming-card-body {
  padding: 1.45rem 1.5rem 1.7rem;
}

.gaming-card-tag,
.gaming-library-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #5f6b62;
}

.gaming-card-tag::before,
.gaming-library-meta::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #95ffb1 0%, #8ff6ff 100%);
  box-shadow: 0 0 0 1px rgba(23, 45, 34, 0.08);
}

.gaming-card-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.9rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1c1f26;
  text-wrap: balance;
}

.gaming-card-large .gaming-card-title {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2.35rem);
}

.gaming-card-copy {
  max-width: 34ch;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4f5561;
}

.gaming-card-large .gaming-card-copy {
  font-size: 1.02rem;
}

body.page-gaming .gaming-card-grid {
  --gaming-grid-columns: 8;
  --gaming-grid-gap: 4px;
  --gaming-grid-unit: 7.25rem;
  container-type: inline-size;
  grid-template-columns: repeat(var(--gaming-grid-columns), minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: var(--gaming-grid-unit);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  gap: var(--gaming-grid-gap);
  align-items: stretch;
}

body.page-gaming .gaming-card-grid > .gaming-card {
  grid-column: span 1;
  grid-row: span 1;
  border-radius: 0;
}

body.page-gaming .gaming-card-grid > .gaming-card:first-child,
body.page-gaming .gaming-card-grid > .gaming-card:nth-child(3),
body.page-gaming .gaming-card-grid > .gaming-card:nth-child(4),
body.page-gaming .gaming-card-grid.gaming-card-mosaic-grid > .gaming-card.gaming-card-mosaic-chip {
  grid-column: span 1;
  grid-row: span 1;
}

body.page-gaming .gaming-card-grid > .gaming-card.gaming-card-compact {
  grid-column: span 1;
  grid-row: span 1;
}

body.page-gaming .gaming-card-grid > .gaming-card.gaming-card-square,
body.page-gaming .gaming-card-grid > .gaming-card.gaming-card-tall {
  grid-column: span 1;
  grid-row: span 1;
}

body.page-gaming .gaming-card-grid > .gaming-card.gaming-card-wide,
body.page-gaming .gaming-card-grid > .gaming-card.gaming-card-hero,
body.page-gaming .gaming-card-grid.gaming-card-mosaic-grid > .gaming-card.gaming-card-mosaic-chip.gaming-card-wide,
body.page-gaming .gaming-card-grid.gaming-card-mosaic-grid > .gaming-card.gaming-card-mosaic-chip.gaming-card-hero {
  grid-column: span 2;
  grid-row: span 1;
}

body.page-gaming .gaming-card-grid > .gaming-card.gaming-card-large,
body.page-gaming .gaming-card-grid.gaming-card-mosaic-grid > .gaming-card.gaming-card-mosaic-chip.gaming-card-large {
  grid-column: span 1;
  grid-row: span 2;
}

body.page-gaming .gaming-card::before {
  content: none;
}

body.page-gaming .gaming-card {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: #0f1418;
  border-color: rgba(20, 39, 29, 0.08);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.12),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.page-gaming .gaming-card:hover {
  border-color: rgba(20, 39, 29, 0.14);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.16),
    0 10px 22px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body.page-gaming .gaming-card-media,
body.page-gaming .gaming-card-media img {
  border-radius: 0;
}

body.page-gaming .gaming-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
  border-bottom: 0;
  background: #0f1418;
}

body.page-gaming .gaming-card-media img {
  position: absolute;
  inset: 0;
}

body.page-gaming .gaming-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0.62rem 0.72rem 0.68rem;
  background: linear-gradient(180deg, rgba(9, 12, 15, 0) 0%, rgba(9, 12, 15, 0.78) 58%, rgba(9, 12, 15, 0.92) 100%);
}

body.page-gaming .gaming-card-large .gaming-card-body {
  padding: 0.82rem 0.92rem 0.92rem;
}

body.page-gaming .gaming-card-title {
  color: #f7faf8;
  font-size: clamp(0.82rem, 0.76rem + 0.2vw, 1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  text-wrap: pretty;
}

body.page-gaming .gaming-card-large .gaming-card-title {
  font-size: clamp(1rem, 0.92rem + 0.28vw, 1.26rem);
}

body.page-gaming .gaming-card-tag,
body.page-gaming .gaming-card-copy {
  display: none;
}

.gaming-card-mosaic-grid {
  grid-auto-rows: minmax(5.25rem, auto);
}

.gaming-card-mosaic-grid .gaming-card-large {
  grid-column: span 8;
  grid-row: span 3;
}

.gaming-card-grid.gaming-card-mosaic-grid .gaming-card.gaming-card-mosaic-chip:nth-child(n) {
  grid-column: span 4;
}

.gaming-card-mosaic {
  position: relative;
  min-height: 0;
  background: linear-gradient(180deg, #24272c 0%, #15191d 100%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 24px 54px rgba(4, 8, 12, 0.24),
    0 10px 22px rgba(4, 8, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gaming-card-mosaic::before {
  border-color: rgba(255, 255, 255, 0.08);
}

.gaming-card-mosaic .gaming-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-bottom: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(46, 52, 58, 0.36), rgba(16, 18, 22, 0.74));
}

.gaming-card-mosaic .gaming-card-media::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, rgba(11, 13, 17, 0.04), rgba(11, 13, 17, 0.18) 38%, rgba(11, 13, 17, 0.78) 100%);
}

.gaming-card-mosaic .gaming-card-media img {
  transform: scale(1.04);
  filter: brightness(0.38) saturate(0.82);
}

.gaming-card-mosaic .gaming-card-body {
  position: relative;
  z-index: 1;
  min-height: 100%;
  grid-template-rows: auto auto 1fr;
  gap: 0.72rem;
  padding: 1.35rem 1.45rem 1.5rem;
}

.gaming-card-mosaic .gaming-card-tag {
  color: rgba(240, 244, 247, 0.72);
}

.gaming-card-mosaic .gaming-card-tag::before {
  background: linear-gradient(180deg, #f3f6f9 0%, #a9b4bf 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.gaming-card-mosaic .gaming-card-title {
  color: #f6f7f9;
}

.gaming-card-mosaic .gaming-card-copy {
  max-width: none;
  color: rgba(244, 246, 248, 0.9);
}

.gaming-card-mosaic-feature {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #2c2d31 0%, #171a1f 100%);
}

.gaming-card-mosaic-feature .gaming-card-body {
  padding: 1.5rem 1.65rem 1.65rem;
}

.gaming-card-mosaic-list {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.gaming-card-mosaic-chip {
  min-height: 7.1rem;
}

.gaming-card-mosaic-chip .gaming-card-body {
  align-content: end;
  justify-content: end;
  grid-template-rows: auto auto;
  gap: 0.5rem;
  padding: 1rem 1.15rem 1.05rem;
}

.gaming-card-mosaic-chip .gaming-card-tag {
  font-size: 0.64rem;
}

.gaming-card-mosaic-chip .gaming-card-title {
  font-size: clamp(1.08rem, 1rem + 0.36vw, 1.5rem);
  line-height: 1.16;
}

.gaming-card-mosaic-chip-runescape .gaming-card-media img {
  object-position: center 42%;
}

.gaming-card-mosaic-chip-blitz .gaming-card-media img {
  object-position: center;
}

.gaming-card-mosaic-chip-warplanes {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #4d5d6e 0%, #283340 54%, #161b20 100%);
}

.gaming-card-mosaic-chip-warplanes::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, rgba(9, 12, 16, 0.1), rgba(9, 12, 16, 0.22) 42%, rgba(9, 12, 16, 0.74) 100%);
  pointer-events: none;
}

.gaming-card-mosaic:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 64px rgba(4, 8, 12, 0.28),
    0 12px 26px rgba(4, 8, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gaming-insights-section {
  background: linear-gradient(180deg, rgba(247, 250, 247, 0.98) 0%, rgba(240, 246, 241, 0.98) 100%);
}

.gaming-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

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

.gaming-library-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(4.6rem, auto) 1fr auto;
  gap: 0.9rem;
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 244, 0.98));
  border: 1px solid rgba(36, 58, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(16, 24, 18, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gaming-library-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 225, 132, 0.22);
  box-shadow: 0 24px 44px rgba(16, 24, 18, 0.12);
}

.gaming-library-card img {
  width: 100%;
  aspect-ratio: 0.8 / 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

.gaming-library-card h3 {
  min-height: 3.35em;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.gaming-library-card p {
  margin: 0;
  line-height: 1.58;
  color: #4f5561;
}

.gaming-library-card .insight-link {
  margin-top: 0;
  align-self: end;
}

.boss-fight-section {
  position: relative;
  z-index: 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(133, 183, 255, 0.18), transparent 34%),
    radial-gradient(circle at 15% 20%, rgba(149, 255, 177, 0.08), transparent 22%),
    linear-gradient(180deg, #060912 0%, #0a0f19 42%, #13111f 100%);
  border-top: 1px solid rgba(173, 214, 255, 0.12);
  border-bottom: 1px solid rgba(173, 214, 255, 0.12);
}

.boss-fight-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.16;
}

.boss-fight-shell {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: 68px 0 76px;
}

.boss-fight-copy {
  max-width: 52rem;
}

.boss-fight-copy .feature-title {
  color: #f5f3ff;
}

.boss-fight-copy .feature-copy {
  color: rgba(234, 243, 255, 0.76);
}

.boss-battle {
  position: relative;
}

.boss-battle-screen {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 20%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.8), rgba(7, 11, 22, 0.94));
  border: 1px solid rgba(214, 233, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.boss-battle-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 4px);
}

.boss-battle-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 3px);
}

.boss-battle-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/battle_bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: brightness(0.72) saturate(1.05);
  transition: transform 1.2s ease;
}

.boss-battle-screen:hover .boss-battle-bg {
  transform: scale(1.03) translateY(-6px);
}

.boss-stars {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 18% 44%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 31% 18%, rgba(255, 255, 255, 0.7) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 43% 29%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 56% 14%, rgba(255, 255, 255, 0.7) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 64% 33%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 79% 19%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 87% 37%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px);
}

.boss-moon {
  display: none;
}

.boss-cloud {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.16;
}

.boss-cloud-1 {
  top: 18%;
  left: 12%;
  width: 15rem;
  height: 4.2rem;
  background: rgba(168, 196, 255, 0.9);
}

.boss-cloud-2 {
  top: 26%;
  right: 18%;
  width: 11rem;
  height: 3.1rem;
  background: rgba(212, 180, 255, 0.7);
}

.boss-enemy-stage {
  position: absolute;
  inset: 0 0 12.25rem;
  display: grid;
  place-items: center;
  align-items: end;
  pointer-events: none;
}

.boss-enemy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(3rem) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.boss-enemy.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.boss-enemy-nameplate {
  position: absolute;
  top: 2rem;
  right: 2rem;
  min-width: 14rem;
  padding: 0.85rem 1rem;
  background: rgba(13, 17, 34, 0.86);
  border: 2px solid rgba(241, 244, 255, 0.8);
  border-radius: 8px;
  color: #fbfbff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.boss-enemy-nameplate strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.boss-enemy-class {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(214, 226, 255, 0.72);
}

.boss-enemy-sprite {
  position: relative;
  display: grid;
  place-items: center;
  width: min(56vw, 36rem);
  aspect-ratio: 1;
  transform: translateY(4rem);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.38));
}

.boss-enemy-sprite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.boss-enemy-copyright img,
.boss-enemy-patent img,
.boss-enemy-commercial img {
  transform: scale(1.02);
}

.boss-enemy-privacy img {
  transform: scale(0.98);
}

.boss-ui {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.95fr);
  gap: 1rem;
}

.boss-status-panel,
.boss-command-panel {
  background: linear-gradient(180deg, rgba(18, 22, 40, 0.96), rgba(12, 16, 29, 0.96));
  border: 3px solid rgba(245, 246, 255, 0.84);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.boss-status-panel {
  min-height: 10.25rem;
  padding: 1rem 1rem 0.95rem;
}

.boss-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.boss-panels {
  position: relative;
  overflow: hidden;
}

.boss-info-panel {
  display: none;
  color: #f8f9ff;
}

.boss-info-panel.is-active {
  display: block;
  animation: bossPanelIn 180ms ease;
}

@keyframes bossPanelIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.boss-topic-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.54rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(211, 226, 255, 0.36);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #cfe1ff;
}

.boss-info-panel h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
  line-height: 1.15;
  color: #ffffff;
}

.boss-info-panel p {
  max-width: 60ch;
  margin: 0.65rem 0 0;
  line-height: 1.58;
  color: rgba(226, 234, 255, 0.82);
}

.boss-command-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0.45rem;
  overflow: hidden;
}

.boss-command {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  background: transparent;
  border-radius: 6px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #eef2ff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.boss-command:last-child {
  border-bottom: 0;
}

.boss-command:hover,
.boss-command:focus-visible,
.boss-command.is-active {
  background: rgba(151, 181, 255, 0.14);
}

.boss-command-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(191, 208, 255, 0.7);
}

.boss-command-text {
  position: relative;
  padding-left: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.boss-command-text::before {
  content: "\25B6";
  position: absolute;
  top: 0.02rem;
  left: 0;
  opacity: 0;
  color: #fff2a7;
  transition: opacity 160ms ease;
}

.boss-command:hover .boss-command-text::before,
.boss-command:focus-visible .boss-command-text::before,
.boss-command.is-active .boss-command-text::before {
  opacity: 1;
}

.boss-battle a,
.boss-status-panel a,
.boss-info-panel a,
.boss-enemy-nameplate a {
  color: #fff2a7;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.boss-battle a:hover,
.boss-battle a:focus-visible,
.boss-status-panel a:hover,
.boss-status-panel a:focus-visible,
.boss-info-panel a:hover,
.boss-info-panel a:focus-visible,
.boss-enemy-nameplate a:hover,
.boss-enemy-nameplate a:focus-visible {
  color: #fff7c7;
}
