:root {
  --bg-main: #020617;
  --bg-elevated: #020818;
  --bg-panel: #02091c;
  --border-soft: rgba(148, 163, 184, 0.3);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --danger: #f97373;
  --danger-soft: rgba(248, 113, 113, 0.15);

  /* 희귀도 색상 (요청한 스펙) */
  --rarity-common: #22c55e;     /* 초록색 */
  --rarity-rare: #3b82f6;       /* 파란색 */
  --rarity-epic: #a855f7;       /* 보라색 */
  --rarity-legendary: #facc15;  /* 노란색 */
  --rarity-mythic: #ef4444;     /* 빨간색 */

  --rarity-god: linear-gradient(
    90deg,
    #22c55e,
    #22d3ee,
    #6366f1,
    #e879f9
  ); /* 레인보우 그라데이션 */
  --rarity-secret-bg: linear-gradient(
    180deg,
    #ffffff,
    #000000,
    #ffffff
  ); /* 흰/검 세로 그라데이션 */
  --rarity-og-bg: linear-gradient(
    180deg,
    #fbbf24,
    #000000,
    #fbbf24
  ); /* 금색/검정 세로 그라데이션 */

  --rarity-admin: #f97316;
  --rarity-spooky: #22c55e;
  --rarity-taco: #facc15;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #000 55%);
  color: var(--text-main);
}

body.admin-body {
  background: radial-gradient(circle at top, #020617 0, #020617 55%);
}

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

button {
  font-family: inherit;
}

/* 상단 바 */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.98)
  );
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 30%, #1f2937, #020617);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 12px 28px rgba(0, 0, 0, 0.85);
}

.site-title-main {
  font-size: 1rem;
  font-weight: 600;
}

.site-title-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tab-button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-tab-button.is-active {
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.9);
}

.nav-link {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

/* 페이지 레이아웃 */

.page-main {
  padding: 1.5rem 1.5rem 3.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tab-section {
  display: none;
}

.tab-section.is-active {
  display: block;
}

/* 홈 섹션 */

.hero-block {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
}

.hero-block h1 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.hero-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-list {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-list li {
  margin-bottom: 0.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.primary-button {
  border-radius: 999px;
  border: 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: radial-gradient(circle at 20% 0, #38bdf8, #0ea5e9);
  color: #0b1120;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.35);
}

.danger-button {
  border-radius: 999px;
  border: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
}

.danger-button.small-button {
  padding: 0.15rem 0.6rem;
}

/* 패널 공통 */

.panel {
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, #020617, #020617 45%, #000 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 0.9rem 1.1rem 0.7rem;
  border-bottom: 1px solid rgba(75, 85, 99, 0.7);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.panel-body {
  padding: 0.9rem 1.1rem 1.1rem;
}

/* 도구 레이아웃 */

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 1rem;
}

.panel-table .panel-body {
  padding: 0;
}

.table-scroll {
  max-height: 560px;
  overflow: auto;
}

/* 컨트롤 / 토글 */

.panel-controls {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.control-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-input {
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.35rem 0.8rem;
  color: var(--text-main);
  font-size: 0.8rem;
}

.search-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.toggle input {
  display: none;
}

.toggle-slider {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: rgba(75, 85, 99, 0.8);
  position: relative;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  top: 1px;
  left: 1px;
  transition: transform 0.18s ease;
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(14px);
}

.toggle-label {
  color: var(--text-muted);
}

/* 희귀도 필터 */

.rarity-filter-row {
  padding: 0.4rem 1.1rem 0.7rem;
  border-top: 1px solid rgba(55, 65, 81, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rarity-filter-button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  cursor: pointer;
}

.rarity-filter-button.is-active {
  border-color: rgba(56, 189, 248, 0.9);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
}

/* 표 */

.brainrot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.brainrot-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: radial-gradient(
    circle at top,
    #020617,
    #020617 40%,
    #020617 100%
  );
}

.brainrot-table th,
.brainrot-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  text-align: left;
}

.brainrot-table th {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.brainrot-table th.is-sorted-asc::after,
.brainrot-table th.is-sorted-desc::after {
  content: "";
  display: inline-block;
  margin-left: 0.25rem;
  border-style: solid;
  border-width: 0.25rem 0.25rem 0 0.25rem;
  border-color: var(--accent) transparent transparent transparent;
}

.brainrot-table th.is-sorted-desc::after {
  transform: rotate(180deg);
}

.brainrot-table tbody tr {
  transition: background 0.12s ease;
}

.brainrot-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* 이름 셀 */

.brainrot-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brainrot-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.8rem;
  object-fit: cover;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 8px 18px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: zoom-in;
}

.brainrot-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.95);
}

.brainrot-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brainrot-id {
  font-size: 0.8rem;
  font-weight: 500;
  color: #f9fafb;
}

.brainrot-name-kor {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.brainrot-name-nick {
  font-size: 0.76rem;
  color: #facc15;
}

/* 숫자 셀 */

.cell-number {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.cell-wait {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 희귀도 라벨 + 애니메이션 */

.rarity-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  text-transform: none;
  position: relative;
  overflow: hidden;
}

/* 텍스트 색만 적용되는 기본 희귀도 */

.rarity-common {
  color: var(--rarity-common);       /* 초록 */
}

.rarity-rare {
  color: var(--rarity-rare);         /* 파랑 */
}

.rarity-epic {
  color: var(--rarity-epic);         /* 보라 */
}

.rarity-legendary {
  color: var(--rarity-legendary);    /* 노랑 */
}

.rarity-mythic {
  color: var(--rarity-mythic);       /* 빨강 */
}

/* Brainrot God: 레인보우 그라데이션 애니메이션 */

.rarity-brainrot-god {
  background-image: var(--rarity-god);
  background-size: 200% 200%;
  color: #0f172a;
  animation: rarity-rainbow 3s linear infinite;
}

/* Secret: 흰/검 세로 그라데이션이 상하로 움직임, 글자는 흰색 */

.rarity-secret {
  background-image: var(--rarity-secret-bg);
  background-size: 100% 200%;
  background-position: 0% 0%;
  color: #ffffff;
  animation: rarity-secret-scan 2.6s linear infinite;
}

/* OG: Secret과 같은 방식, 색만 금색/검정 */

.rarity-og {
  background-image: var(--rarity-og-bg);
  background-size: 100% 200%;
  background-position: 0% 0%;
  color: #fef9c3;
  animation: rarity-secret-scan 2.6s linear infinite;
}

/* Admin / Spooky / Taco: 좌우 흐르는 그라데이션 */

.rarity-admin {
  background: linear-gradient(90deg, #f97316, #facc15);
  background-size: 200% 200%;
  color: #0b1120;
  animation: rarity-flow-horizontal 2.1s linear infinite;
}

.rarity-spooky {
  background: linear-gradient(90deg, #22c55e, #f97316);
  background-size: 200% 200%;
  color: #0b1120;
  animation: rarity-flow-horizontal 2.1s linear infinite;
}

.rarity-taco {
  background: linear-gradient(90deg, #f97316, #facc15);
  background-size: 200% 200%;
  color: #0b1120;
  animation: rarity-flow-horizontal 2.1s linear infinite;
}

/* 애니메이션 끄기(토글 ON일 때) → body에 클래스 적용 */

body.rarity-effects-off .rarity-brainrot-god {
  animation: none;
  background-image: var(--rarity-god);
  color: #0f172a;
}

body.rarity-effects-off .rarity-secret {
  animation: none;
  background-image: var(--rarity-secret-bg);
  color: #ffffff;
}

body.rarity-effects-off .rarity-og {
  animation: none;
  background-image: var(--rarity-og-bg);
  color: #fef9c3;
}

body.rarity-effects-off .rarity-admin,
body.rarity-effects-off .rarity-spooky,
body.rarity-effects-off .rarity-taco {
  animation: none;
}

/* 희귀도 애니메이션 키프레임 */

@keyframes rarity-rainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 세로 방향(상 ↔ 하)으로 움직이도록 background-position Y만 변경 */

@keyframes rarity-secret-scan {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes rarity-flow-horizontal {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 계산기 패널 */

.panel-calculator .panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.calc-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.calc-section {
  border-radius: 0.8rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  padding: 0.8rem 0.9rem;
  background: radial-gradient(circle at top, #020617, #020617 50%, #000 100%);
}

.value-section {
  border-radius: 0.8rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  padding: 0.8rem 0.9rem;
  background: radial-gradient(circle at top, #020617, #020617 50%, #000 100%);
}

.form-row {
  margin-bottom: 0.7rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.select-input,
.text-input {
  width: 100%;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.35rem 0.6rem;
  color: var(--text-main);
  font-size: 0.8rem;
}

/* 변이 pill */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}

.pill-button.is-active {
  border-color: rgba(56, 189, 248, 0.9);
  color: var(--accent);
  background: rgba(15, 23, 42, 1);
}

.pill-button.is-none {
  border-style: dashed;
}

/* 특성 */

.traits-block {
  margin-top: 0.2rem;
}

.traits-header {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.traits-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 260px;
  overflow: auto;
}

.trait-group-card {
  border-radius: 0.7rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000);
  padding: 0.45rem 0.5rem 0.5rem;
}

.trait-group-title {
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.trait-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trait-icon-tile {
  border-radius: 0.6rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.25rem 0.3rem 0.2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  min-width: 60px;
}

.trait-icon-tile img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.trait-icon-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.trait-icon-tile.is-active {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* 계산 결과 */

.calc-result-block {
  margin-top: 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000);
  padding: 0.55rem 0.6rem 0.6rem;
}

.calc-result-main {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.calc-result-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  color: #f97316;
  margin-left: 0.2rem;
}

.calc-detail-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 가치 카드 */

.value-card {
  border-radius: 0.7rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.6rem 0.65rem;
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000);
  font-size: 0.8rem;
}

.value-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.value-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.value-label {
  color: var(--text-muted);
}

.value-content {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.value-meta {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.value-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 모달 */

.brainrot-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.brainrot-modal.is-open {
  display: flex;
}

.brainrot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
}

.brainrot-modal-dialog {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #020617, #020617 50%, #000 100%);
  padding: 0.9rem 1rem;
  min-width: 260px;
  max-width: 360px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
}

.brainrot-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.brainrot-modal-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brainrot-modal-icon-wrap {
  flex: 0 0 auto;
}

.brainrot-modal-icon {
  width: 144px;
  height: 144px;
  border-radius: 16px;
  object-fit: contain;
  padding: 6px;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.85);
}

.brainrot-modal-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-line-id {
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-line-kor {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-line-nick {
  font-size: 0.8rem;
  color: #facc15;
}

.modal-line-rarity {
  margin-top: 0.15rem;
}

/* 관리자 */

.admin-main {
  max-width: 1100px;
}

.panel-admin-login {
  max-width: 420px;
  margin: 1.5rem auto;
}

.form-vertical .form-row:last-child {
  margin-bottom: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 1rem;
}

.admin-subtitle {
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-table-wrapper {
  max-height: 260px;
  overflow: auto;
  border-radius: 0.6rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-table th,
.admin-table td {
  padding: 0.3rem 0.45rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.admin-table th {
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
}

/* 플래시 메시지 */

.flash-container {
  margin-bottom: 0.8rem;
}

.flash {
  border-radius: 0.6rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.flash-success {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #4ade80;
}

.flash-error {
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: var(--danger);
}

/* 푸터 */

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* 반응형 */

@media (max-width: 960px) {
  .tools-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-scroll {
    max-height: 420px;
  }

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

@media (max-width: 640px) {
  .page-main {
    padding: 1rem 1rem 2.5rem;
  }

  .hero-block {
    padding: 1.4rem 1.1rem;
  }

  .panel-header {
    padding: 0.7rem 0.8rem 0.6rem;
  }

  .panel-body {
    padding: 0.7rem 0.8rem 0.9rem;
  }

  .rarity-filter-row {
    padding-inline: 0.8rem;
  }

  .panel-calculator .panel-body {
    padding: 0.7rem 0.8rem 0.85rem;
  }

  .brainrot-modal-dialog {
    width: calc(100% - 2.4rem);
  }
}

