.serverinfo-page {
  background:
    linear-gradient(180deg, rgba(41, 212, 167, .05), transparent 360px),
    var(--bg);
}

.serverinfo-page .announcement {
  margin-bottom: 24px;
}

.info-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.info-hero-media,
.info-hero-shade {
  position: absolute;
  inset: 0;
}

.info-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.info-hero-shade {
  background:
    linear-gradient(180deg, rgba(9, 13, 15, .28), rgba(9, 13, 15, .72) 52%, #090d0f 100%),
    linear-gradient(90deg, rgba(9, 13, 15, .94), rgba(9, 13, 15, .48) 52%, rgba(9, 13, 15, .82));
}

.info-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.info-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .92;
}

.info-hero p:not(.kicker) {
  max-width: 680px;
  color: #d9e6e2;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.info-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.info-hero-stats span,
.config-source {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(8, 13, 14, .7);
  color: #dce8e4;
  font-weight: 800;
}

.info-hero-stats strong,
.config-source {
  color: var(--accent);
}

.info-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 72px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: start;
}

.info-shell.single-flow {
  display: block;
}

.info-content {
  min-width: 0;
}

.cluster-picker,
.selected-config,
.info-block {
  margin-bottom: 34px;
}

.cluster-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(18, 26, 29, .72);
}

.selected-config[hidden] {
  display: none;
}

.tab-panel[hidden] {
  display: none;
}

.compact-head {
  align-items: end;
  margin-bottom: 18px;
}

.compact-head h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.04;
}

.dino-policy-head .kicker {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.signal-grid,
.rate-grid,
.cluster-grid,
.system-grid,
.rule-list,
.dino-board,
.buff-grid,
.cave-grid {
  display: grid;
  gap: 12px;
}

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

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

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

.signal-card,
.rate-card,
.cluster-card,
.system-card,
.rule-card,
.dino-panel,
.cluster-feature,
.note-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 34, 37, .96), rgba(14, 20, 22, .96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.signal-card,
.rate-card,
.cluster-card,
.system-card,
.rule-card,
.dino-panel {
  padding: 16px;
}

.signal-card span,
.rate-card span,
.cluster-card span,
.system-card span,
.rule-card span,
.dino-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong,
.rate-card strong,
.cluster-card strong,
.system-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
}

.signal-card p,
.rate-card p,
.cluster-card p,
.system-card p,
.rule-card p,
.dino-panel p {
  margin: 10px 0 0;
  color: #cbd9d5;
  line-height: 1.45;
}

.note-strip {
  margin-top: 14px;
  padding: 14px 16px;
  color: #dce8e4;
}

.note-strip strong {
  color: var(--accent);
}

.cluster-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
}

.cluster-feature h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
}

.cluster-feature p {
  margin: 8px 0 0;
  color: #cbd9d5;
  line-height: 1.5;
}

#cluster-source-note {
  max-width: 720px;
  color: #9fb0ab;
  font-size: 14px;
  font-weight: 750;
}

.cluster-limit {
  min-width: 130px;
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(41, 212, 167, .28);
  background: rgba(41, 212, 167, .1);
  color: var(--accent);
  text-align: center;
  font-weight: 900;
}

.cluster-limit strong {
  display: block;
  color: #fff;
  font-size: 42px;
  line-height: .95;
}

.cluster-card.active {
  border-color: rgba(41, 212, 167, .52);
  background:
    radial-gradient(circle at center, rgba(41, 212, 167, .24), transparent 58%),
    linear-gradient(120deg, rgba(41, 212, 167, .04), rgba(41, 212, 167, .2), rgba(41, 212, 167, .04)),
    linear-gradient(180deg, rgba(21, 54, 48, .96), rgba(14, 20, 22, .96));
  background-size: 100% 100%, 260% 100%, 100% 100%;
  box-shadow:
    0 0 0 1px rgba(41, 212, 167, .2),
    0 0 34px rgba(41, 212, 167, .3),
    0 20px 58px rgba(41, 212, 167, .16);
  animation: clusterGlow 2.8s ease-in-out infinite, clusterPulse 2.4s ease-in-out infinite;
}

.cluster-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 86px;
  display: grid;
  place-items: center;
  appearance: none;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.cluster-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, transparent, rgba(41, 212, 167, .95), #fff, rgba(41, 212, 167, .95), transparent);
  background-size: 260% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s ease;
}

.cluster-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 34%, rgba(255, 255, 255, .32) 48%, rgba(41, 212, 167, .38) 52%, transparent 66%, transparent 100%);
  transform: translateX(-125%);
  opacity: 0;
  pointer-events: none;
}

.cluster-card span {
  position: relative;
  z-index: 2;
  color: #e8f2ee;
  font-size: 14px;
  line-height: 1.15;
}

.cluster-card.active span {
  color: transparent;
  background: linear-gradient(90deg, #e8f2ee 0%, var(--accent) 34%, #fff 50%, var(--accent) 66%, #e8f2ee 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(41, 212, 167, .38);
  animation: clusterTextShine 2.2s ease-in-out infinite, clusterTextPulse 1.8s ease-in-out infinite;
}

.cluster-card.active::before,
.cluster-card:hover::before {
  opacity: 1;
  animation: clusterBorder 1.65s linear infinite;
}

.cluster-card.active::after {
  opacity: 1;
  animation: clusterBeam 2.1s ease-in-out infinite;
}

.cluster-card:hover {
  border-color: rgba(41, 212, 167, .36);
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(41, 212, 167, .08);
}

@keyframes clusterGlow {
  0% {
    background-position: 0 0, 160% 0, 0 0;
  }

  50% {
    background-position: 0 0, 20% 0, 0 0;
  }

  100% {
    background-position: 0 0, 160% 0, 0 0;
  }
}

@keyframes clusterPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.012);
  }
}

@keyframes clusterBorder {
  to {
    background-position: -160% 0;
  }
}

@keyframes clusterBeam {
  0%,
  18% {
    transform: translateX(-125%);
  }

  58%,
  100% {
    transform: translateX(125%);
  }
}

@keyframes clusterTextShine {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@keyframes clusterTextPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(41, 212, 167, 0));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 9px rgba(41, 212, 167, .65));
    transform: scale(1.035);
  }
}

.config-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(9, 13, 15, .72);
}

.config-tab {
  min-height: 42px;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.config-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

.config-tab.active {
  color: var(--accent);
  border-color: rgba(41, 212, 167, .38);
  background: rgba(41, 212, 167, .12);
  box-shadow: inset 0 -2px 0 rgba(41, 212, 167, .32);
}

.breeding-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: stretch;
}

.breeding-radar {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(41, 212, 167, .2), transparent 58%),
    rgba(18, 26, 29, .9);
  overflow: hidden;
}

.breeding-radar::before {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(41, 212, 167, .82) 58deg, transparent 118deg, transparent 360deg);
  opacity: .7;
  animation: breedingSpin 3.2s linear infinite;
  mask: radial-gradient(circle, transparent 0 54%, #000 55% 58%, transparent 59%);
  -webkit-mask: radial-gradient(circle, transparent 0 54%, #000 55% 58%, transparent 59%);
}

.breeding-radar span {
  position: absolute;
  width: calc(var(--i) * 22%);
  aspect-ratio: 1;
  border: 1px solid rgba(41, 212, 167, .2);
  border-radius: 50%;
}

.breeding-radar b {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 58px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(41, 212, 167, .42), 0 0 42px rgba(41, 212, 167, .24);
  animation: breedingTextPulse 1.8s ease-in-out infinite;
}

@keyframes breedingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breedingTextPulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.08);
    filter: brightness(1.22);
  }
}

.player-stat-panel {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 149, 255, .08), transparent 42%),
    linear-gradient(180deg, rgba(13, 14, 22, .82), rgba(4, 5, 10, .86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 22px 70px rgba(0, 0, 0, .24);
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 14px;
}

.player-stat-card {
  min-height: 102px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  padding: 16px 17px;
  background:
    radial-gradient(circle at 12% 18%, var(--stat-glow, rgba(138, 148, 255, .2)), transparent 34%),
    linear-gradient(150deg, rgba(29, 31, 40, .98), rgba(10, 12, 19, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 16px 42px rgba(0, 0, 0, .28);
}

.player-stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--stat-color, #9eadff) 55%, white 8%);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--stat-color, #9eadff) 75%, white 8%), color-mix(in srgb, var(--stat-color, #9eadff) 45%, black 35%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 0 18px color-mix(in srgb, var(--stat-color, #9eadff) 34%, transparent);
  color: #fff;
  font-size: 0;
}

.player-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-stat-card span:not(.player-stat-icon) {
  display: block;
  color: #efefe8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.player-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--stat-text, #aab7ff);
  font-size: 23px;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.player-stat-card p {
  margin: 9px 0 0;
  color: #7f8792;
  font-size: 11px;
  font-weight: 800;
}

.player-stat-card.default-stat {
  opacity: .74;
}

.player-stat-card.default-stat strong {
  color: rgba(255, 255, 255, .42);
}

.stat-pulse {
  --stat-color: #ff4f8b;
  --stat-text: #ff8fb4;
  --stat-glow: rgba(255, 79, 139, .18);
}

.stat-battery {
  --stat-color: #ffad3d;
  --stat-text: #ffc470;
  --stat-glow: rgba(255, 173, 61, .17);
}

.stat-wind {
  --stat-color: #8f7cff;
  --stat-text: #b1a6ff;
  --stat-glow: rgba(143, 124, 255, .18);
}

.stat-leaf {
  --stat-color: #36d977;
  --stat-text: #73ee9f;
  --stat-glow: rgba(54, 217, 119, .16);
}

.stat-waves {
  --stat-color: #43c8ff;
  --stat-text: #8edfff;
  --stat-glow: rgba(67, 200, 255, .17);
}

.stat-crate {
  --stat-color: #d6b45f;
  --stat-text: #f0d987;
  --stat-glow: rgba(214, 180, 95, .16);
}

.stat-target {
  --stat-color: #ff6b57;
  --stat-text: #ff9b8c;
  --stat-glow: rgba(255, 107, 87, .17);
}

.stat-chevrons {
  --stat-color: #2de0c4;
  --stat-text: #75f4df;
  --stat-glow: rgba(45, 224, 196, .16);
}

.stat-mountain {
  --stat-color: #a4df5f;
  --stat-text: #c7f48f;
  --stat-glow: rgba(164, 223, 95, .15);
}

.stat-cog {
  --stat-color: #f0f0f0;
  --stat-text: #f2efe4;
  --stat-glow: rgba(255, 255, 255, .12);
}

.player-stat-card.warning-stat {
  border-color: rgba(255, 255, 255, .22);
}

.player-stat-card.warning-stat .player-stat-icon {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #f3f0e8;
}

.player-stat-card.warning-stat strong {
  color: #f2efe4;
}

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

.rule-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.rule-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(41, 212, 167, .12);
  color: var(--accent);
  font-weight: 900;
}

.dino-board {
  grid-template-columns: 1fr 1fr;
}

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

.cave-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cave-total-panel {
  position: relative;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  border: 1px solid rgba(41, 212, 167, .28);
  border-radius: 8px;
  padding: 0 12px;
  background:
    radial-gradient(circle at 18% 50%, rgba(41, 212, 167, .18), transparent 30%),
    linear-gradient(135deg, rgba(14, 32, 31, .96), rgba(8, 13, 15, .96));
  box-shadow: 0 20px 58px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .035);
  animation: cavePanelGlow 1.9s ease-in-out infinite;
}

.cave-total-panel::before,
.cave-total-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cave-total-panel::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(41, 212, 167, .12), transparent),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(41, 212, 167, .055) 52px 53px);
  opacity: .72;
  animation: caveTotalScan 5s linear infinite;
}

.cave-total-panel::after {
  inset: 1px;
  border-radius: inherit;
  border: 2px solid rgba(41, 212, 167, .46);
  box-shadow: 0 0 28px rgba(41, 212, 167, .32), inset 0 0 22px rgba(41, 212, 167, .14);
  animation: caveBorderPulse 1.4s ease-in-out infinite;
}

.cave-total-copy,
.cave-total-copy strong {
  position: relative;
  z-index: 1;
}

.cave-total-copy {
  min-width: 0;
}

.cave-total-copy strong {
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #fff 26%, var(--accent) 43%, #fff 56%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(41, 212, 167, .35);
  animation: caveTextShimmer 1.7s linear infinite, caveTotalNumber 1.25s ease-in-out infinite;
}

.cave-total-copy b {
  color: var(--accent);
  font: inherit;
  filter: drop-shadow(0 0 14px rgba(41, 212, 167, .78));
}

.cave-map-tab {
  min-height: 38px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(18, 26, 29, .86);
  color: #dce8e4;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.cave-map-tab span {
  color: var(--accent);
}

.cave-map-tab.active,
.cave-map-tab:hover {
  border-color: rgba(41, 212, 167, .42);
  background: rgba(41, 212, 167, .12);
  color: #fff;
}

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

.cave-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(24, 34, 37, .96), rgba(14, 20, 22, .96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.cave-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  object-fit: cover;
}

.cave-video-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, .38);
}

.cave-video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(41, 212, 167, .14), transparent 30%),
    linear-gradient(180deg, rgba(5, 8, 10, .08), rgba(5, 8, 10, .62));
  pointer-events: none;
  z-index: 1;
}

.cave-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.cave-video-play {
  position: relative;
  z-index: 2;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(41, 212, 167, .54);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(41, 212, 167, .16);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(41, 212, 167, .2);
}

.cave-video-play span {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--accent);
  filter: drop-shadow(0 0 10px rgba(41, 212, 167, .72));
}

.cave-video-play:hover,
.cave-video-play:focus {
  background: rgba(41, 212, 167, .26);
  transform: translateY(-1px);
}

.cave-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.cave-card-head strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.cave-card-head span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.cave-card p {
  margin: 10px 0 0;
  color: #dce8e4;
  line-height: 1.45;
}

.cave-card b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

@keyframes caveTotalScan {
  from { background-position: -220px 0, 0 0; }
  to { background-position: 220px 0, 0 0; }
}

@keyframes cavePanelGlow {
  0%, 100% {
    box-shadow: 0 20px 58px rgba(0, 0, 0, .28), 0 0 0 rgba(41, 212, 167, 0), inset 0 0 0 1px rgba(255, 255, 255, .035);
  }
  50% {
    box-shadow: 0 20px 58px rgba(0, 0, 0, .28), 0 0 34px rgba(41, 212, 167, .22), inset 0 0 0 1px rgba(255, 255, 255, .06);
  }
}

@keyframes caveBorderPulse {
  0%, 100% {
    opacity: .58;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(.992);
  }
}

@keyframes caveTextShimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes caveTotalNumber {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-2px) scale(1.018); filter: brightness(1.28); }
}

@keyframes caveVideoScan {
  from { transform: translateX(-80%); }
  to { transform: translateX(80%); }
}


.buff-card {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  border: 1px solid rgba(41, 212, 167, .32);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(41, 212, 167, .08), transparent 42%),
    linear-gradient(180deg, rgba(24, 34, 37, .98), rgba(13, 18, 21, .98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.buff-card.nerf-card {
  border-color: rgba(255, 126, 87, .32);
  background:
    linear-gradient(135deg, rgba(255, 126, 87, .08), transparent 42%),
    linear-gradient(180deg, rgba(24, 34, 37, .98), rgba(13, 18, 21, .98));
}

.buff-card-head,
.buff-title,
.buff-stats {
  display: flex;
  align-items: center;
}

.buff-card-head {
  justify-content: space-between;
  gap: 14px;
}

.buff-title {
  min-width: 0;
  gap: 12px;
}

.buff-title strong {
  min-width: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.buff-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.buff-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(41, 212, 167, .42);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(41, 212, 167, .14);
  box-shadow: 0 0 18px rgba(41, 212, 167, .16);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nerf-card .buff-pill {
  border-color: rgba(255, 126, 87, .42);
  background: rgba(255, 126, 87, .14);
  box-shadow: 0 0 18px rgba(255, 126, 87, .14);
  color: #ffb094;
}

.buff-stats {
  flex-wrap: wrap;
  gap: 22px;
}

.buff-stat span {
  display: block;
  color: #c0cfca;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.buff-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
}

.nerf-card .buff-stat strong {
  color: #ffb094;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .04);
  color: #e8f2ee;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

@media (max-width: 980px) {
  .info-shell {
    grid-template-columns: 1fr;
  }

  .signal-grid,
  .rate-grid,
  .player-stat-grid,
  .system-grid,
  .cluster-grid,
  .rule-list,
  .dino-board,
  .buff-grid,
  .cave-grid,
  .breeding-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cave-total-panel {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .serverinfo-page main {
    overflow-x: hidden;
  }

  .serverinfo-page .announcement,
  .serverinfo-page .info-hero {
    width: 100vw;
    max-width: 100vw;
  }

  .serverinfo-page .announcement > div {
    width: 100%;
    min-width: 0;
  }

  .info-hero {
    min-height: 560px;
  }

  .info-hero-inner {
    width: min(calc(100% - 32px), 330px);
    margin-left: 16px;
    margin-right: auto;
  }

  .info-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: .98;
  }

  .info-hero p:not(.kicker) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .serverinfo-page .announcement h2 {
    width: 100%;
    max-width: min(100%, 330px);
    font-size: clamp(22px, 6vw, 27px);
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .serverinfo-page .announcement p:not(.kicker) {
    width: 100%;
    max-width: min(100%, 330px);
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .signal-grid,
  .rate-grid,
  .player-stat-grid,
  .system-grid,
  .cluster-grid,
  .rule-list,
  .dino-board,
  .buff-grid,
  .cave-grid,
  .breeding-layout,
  .cluster-feature {
    grid-template-columns: 1fr;
  }

  .cave-total-copy strong {
    font-size: 18px;
  }

  .cluster-limit {
    width: 100%;
  }

  .player-stat-panel {
    padding: 14px;
  }
}
