/* [project]/public/css/nft-rules.css [app-client] (css) */
.nft-rules-main {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  overflow-x: hidden !important;
}

.nftRulesPage {
  min-height: 100dvh;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.nft-rules-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 50px;
  position: relative;
}

@media (max-width: 768px) {
  .nft-rules-container {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }
}

.nft-rules-header {
  text-align: center;
  margin-bottom: 60px;
}

.nft-rules-header h1 {
  color: var(--bw6);
  text-shadow: 2px 2px 10px #00000080;
  margin-bottom: 16px;
  font-family: Metal Mania, cursive;
  font-size: 64px;
}

.nft-rules-header .subtitle {
  color: var(--bw5);
  opacity: .8;
  font-size: 24px;
}

.header-stats {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  display: flex;
}

.header-stat {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  display: flex;
}

.header-stat-number {
  color: var(--accent-gold);
  font-size: 28px;
  font-weight: bold;
}

.header-stat-label {
  color: var(--bw4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.header-stat-divider {
  background: var(--bw3);
  opacity: .5;
  width: 1px;
  height: 40px;
}

.rules-section {
  background: var(--bw1_5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 32px;
}

.section-title {
  color: var(--bw6);
  border-bottom: 2px solid var(--bw3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-family: Metal Mania, cursive;
  font-size: 36px;
}

.section-desc {
  color: var(--bw5);
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.6;
}

.public-sale-draw-rules {
  scroll-margin-top: 110px;
}

.public-draw-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.public-draw-rule {
  background: #ffffff09;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  min-height: 148px;
  padding: 18px 18px 18px 56px;
  position: relative;
}

.public-draw-rule--wide {
  grid-column: span 2;
  min-height: auto;
}

.public-draw-rule-step {
  background: var(--accent-gold);
  width: 26px;
  height: 26px;
  color: var(--bw0);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  position: absolute;
  top: 18px;
  left: 18px;
}

.public-draw-rule h3 {
  color: var(--bw6);
  margin: 0 0 8px;
  font-size: 17px;
}

.public-draw-rule p {
  color: var(--bw5);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.public-draw-rule code {
  color: var(--accent-gold);
  overflow-wrap: anywhere;
  background: #0000003d;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
  display: block;
}

.factions-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  display: grid;
}

.faction-card {
  background: var(--bw2);
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  transition: all .3s;
  display: flex;
}

.faction-card:hover {
  background: var(--bw3);
  transform: translateY(-4px);
}

.faction-card.active {
  border-color: var(--bw6);
  background: var(--bw3);
}

.faction-icon {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  display: flex;
  overflow: hidden;
}

.faction-icon img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.faction-name {
  color: var(--bw6);
  text-align: center;
  font-size: 14px;
}

.faction-preview {
  margin-top: 24px;
}

.preview-images {
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  display: flex;
}

.preview-image-wrapper {
  border: 2px solid var(--bw3);
  border-radius: 12px;
  width: 120px;
  height: 120px;
  transition: all .3s;
  overflow: hidden;
}

.preview-image-wrapper:hover {
  border-color: var(--bw6);
  transform: scale(1.05);
}

.preview-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.supply-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  display: grid;
}

.supply-card {
  background: linear-gradient(135deg, var(--bw2) 0%, var(--bw1) 100%);
  text-align: center;
  border: 1px solid var(--bw3);
  border-radius: 12px;
  padding: 32px;
}

.supply-card-highlight {
  border-top: 3px solid var(--accent-gold);
}

.supply-number {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 48px;
  font-weight: bold;
}

.supply-label {
  color: var(--bw5);
  margin-bottom: 8px;
  font-size: 20px;
}

.supply-detail {
  color: var(--bw4);
  font-size: 14px;
}

.faction-supply-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  display: grid;
}

.faction-supply-card {
  background: var(--bw2);
  text-align: center;
  border: 1px solid var(--bw3);
  border-radius: 12px;
  padding: 20px 12px;
  transition: all .3s;
}

.faction-supply-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px #f59e0b26;
}

.faction-supply-icon {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  overflow: hidden;
}

.faction-supply-icon img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.faction-supply-name {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}

.faction-supply-number {
  color: var(--accent-gold);
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.faction-supply-label {
  color: var(--bw4);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
  font-size: 11px;
}

.faction-supply-traits {
  color: var(--bw5);
  border-top: 1px solid var(--bw3);
  margin-top: 4px;
  padding-top: 8px;
  font-size: 12px;
}

.nft-rules-container .traits-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  display: grid;
}

.trait-card {
  background: var(--bw2);
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  transition: all .3s;
  display: flex;
}

.trait-card:hover {
  background: var(--bw3);
}

.trait-number {
  background: var(--bw6);
  width: 32px;
  height: 32px;
  color: var(--bw1);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  display: flex;
}

.trait-name {
  color: var(--bw5);
  font-size: 16px;
}

.special-factions-info {
  border: 1px solid #93444466;
  border-left: 4px solid var(--a_1);
  background: linear-gradient(135deg, #93444426 0%, #281d1ccc 100%);
  border-radius: 12px;
  margin-top: 28px;
  padding: 24px;
}

.special-factions-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.special-factions-header h3 {
  color: var(--bw6);
  margin: 0;
  font-size: 20px;
}

.special-factions-info p {
  color: var(--bw5);
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.special-factions-info strong {
  color: var(--accent-gold);
}

.special-factions-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.special-factions-info li {
  color: var(--bw5);
  padding: 6px 0 6px 24px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.special-factions-info li:before {
  content: "•";
  color: var(--a_1);
  font-weight: bold;
  position: absolute;
  left: 8px;
}

.acquisition-subsection, .trading-subsection, .fusion-subsection {
  margin-bottom: 32px;
}

.acquisition-subsection:last-child, .trading-subsection:last-child, .fusion-subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  color: var(--bw6);
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 16px;
  padding-left: 12px;
  font-family: Metal Mania, cursive;
  font-size: 24px;
}

.minting-info {
  background: var(--bw2);
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 24px;
}

.minting-price {
  border-bottom: 1px solid var(--bw3);
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  display: flex;
}

.price-label {
  color: var(--bw4);
  font-size: 16px;
}

.price-value {
  color: var(--accent-gold);
  font-size: 28px;
  font-weight: bold;
}

.minting-desc {
  color: var(--bw5);
  font-size: 16px;
  line-height: 1.6;
}

.minting-steps {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

.minting-step {
  background: var(--bw2);
  border-radius: 12px;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  transition: all .3s;
  display: flex;
}

.minting-step:hover {
  background: var(--bw3);
}

.step-icon {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  width: 48px;
  height: 48px;
  color: var(--bw1);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  display: flex;
}

.step-content h3, .step-content h4 {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 20px;
}

.step-content p {
  color: var(--bw5);
  font-size: 16px;
  line-height: 1.5;
}

.step-formula {
  background: var(--bw1);
  border: 1px solid var(--bw3);
  color: var(--accent-gold);
  white-space: nowrap;
  border-radius: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  font-family: Courier New, Courier, monospace;
  font-size: 13px;
  display: block;
  overflow-x: auto;
}

.txid-demo-container {
  background: var(--bw2);
  border: 1px solid var(--bw3);
  border-radius: 12px;
  padding: 24px;
}

.txid-input-group {
  margin-bottom: 16px;
}

.txid-label {
  color: var(--bw4);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  font-size: 14px;
  display: block;
}

.txid-input {
  background: var(--bw1);
  border: 2px solid var(--bw3);
  width: 100%;
  color: var(--bw6);
  box-sizing: border-box;
  border-radius: 8px;
  outline: none;
  padding: 12px 16px;
  font-family: Courier New, Courier, monospace;
  font-size: 14px;
  transition: border-color .3s, box-shadow .3s;
}

.txid-input::placeholder {
  color: var(--bw4);
  opacity: .6;
}

.txid-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px #f59e0b26;
}

.txid-input-error {
  border-color: var(--accent-red);
}

.txid-input-error:focus {
  box-shadow: 0 0 0 3px #ef444426;
}

.txid-input-valid {
  border-color: var(--accent-green);
}

.txid-input-valid:focus {
  box-shadow: 0 0 0 3px #22c55e26;
}

.txid-error-msg {
  color: var(--accent-red);
  margin-top: 6px;
  font-size: 13px;
}

.txid-samples {
  margin-bottom: 20px;
}

.txid-samples-label {
  color: var(--bw4);
  margin-right: 8px;
  font-size: 13px;
}

.txid-samples-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.txid-sample-btn {
  background: var(--bw3);
  border: 1px solid var(--bw4);
  color: var(--bw5);
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  transition: all .2s;
}

.txid-sample-btn:hover {
  background: var(--accent-gold);
  color: var(--bw1);
  border-color: var(--accent-gold);
}

.txid-sample-btn.active {
  background: var(--accent-gold);
  color: var(--bw1);
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px #f59e0b4d;
}

.txid-result-panel {
  border-top: 1px solid var(--bw3);
  margin-top: 20px;
  padding-top: 20px;
  animation: .4s fadeSlideIn;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.txid-result-title {
  color: var(--bw6);
  margin-bottom: 16px;
  font-size: 18px;
}

.txid-hex-display {
  color: var(--bw4);
  word-break: break-all;
  background: var(--bw1);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
  font-family: Courier New, Courier, monospace;
  font-size: 13px;
  line-height: 1.8;
}

.txid-hex-prefix {
  opacity: .5;
}

.txid-hex-char {
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 15px;
  font-weight: bold;
}

.txid-char-1 {
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  background: #f59e0b4d;
}

.txid-char-2 {
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  background: #3b82f64d;
}

.txid-char-3 {
  color: #a855f7;
  background: #a855f74d;
  border: 1px solid #a855f7;
}

.txid-char-4 {
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  background: #22c55e4d;
}

.txid-char-overflow {
  color: #fb7185;
  background: #fb718533;
  border: 1px solid #fb718599;
}

.txid-legend {
  color: var(--bw5);
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 12px;
  display: flex;
}

.txid-legend-item {
  align-items: center;
  gap: 6px;
  display: flex;
}

.txid-legend-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.txid-dot-1 {
  background: var(--accent-gold);
}

.txid-dot-2 {
  background: var(--accent-blue);
}

.txid-dot-3 {
  background: #a855f7;
}

.txid-dot-overflow {
  background: #fb7185;
}

.txid-dot-4 {
  background: var(--accent-green);
}

.txid-result-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  display: grid;
}

.txid-result-card {
  background: var(--bw1);
  text-align: center;
  border: 1px solid var(--bw3);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .3s;
}

.txid-result-card:hover {
  border-color: var(--accent-gold);
}

.txid-result-card-label {
  color: var(--bw4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: 12px;
}

.txid-result-card-icon {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  overflow: hidden;
}

.txid-result-card-icon img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.txid-result-card-number {
  color: var(--accent-gold);
  margin-bottom: 4px;
  font-size: 32px;
  font-weight: bold;
}

.txid-result-card-value {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bold;
}

.txid-result-card-calc {
  color: var(--bw4);
  background: var(--bw2);
  word-break: break-all;
  border-radius: 4px;
  padding: 6px 8px;
  font-family: Courier New, Courier, monospace;
  font-size: 11px;
}

.txid-preview-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}

.txid-preview-card {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  display: flex;
}

.txid-preview-card-img {
  aspect-ratio: 1;
  border: 1px solid var(--bw3);
  border-radius: 10px;
  width: 100%;
  transition: border-color .3s, transform .3s;
  overflow: hidden;
}

.txid-preview-card-img--part {
  border: 2px solid var(--accent-gold);
  background: var(--bw2);
}

.txid-preview-card-img:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.txid-preview-card-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.txid-preview-card-img--part img {
  object-fit: contain;
}

.txid-preview-card-label {
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: bold;
}

.txid-preview-card-sub {
  color: var(--bw4);
  font-size: 11px;
}

.txid-special-alert {
  color: var(--accent-gold);
  background: #f59e0b1a;
  border: 1px solid #f59e0b66;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  animation: 2s ease-in-out infinite pulseGlow;
  display: flex;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 #f59e0b00;
  }

  50% {
    box-shadow: 0 0 12px 2px #f59e0b33;
  }
}

.txid-special-alert svg {
  flex-shrink: 0;
}

.rarity-list {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  display: flex;
}

.rarity-item {
  background: var(--bw2);
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  display: flex;
}

.rarity-indicator {
  border-radius: 50%;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.rarity-name {
  font-size: 14px;
  font-weight: bold;
}

.rarity-note {
  color: var(--bw5);
  background: var(--bw2);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

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

.dashboard-link-card {
  color: var(--bw5);
  background: #f59e0b0a;
  border: 1px solid #f59e0b26;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 22px;
  text-decoration: none;
  transition: all .2s;
  display: flex;
}

.dashboard-link-card:hover {
  background: #f59e0b14;
  border-color: #f59e0b4d;
}

.dashboard-link-content {
  align-items: center;
  gap: 14px;
  display: flex;
}

.dashboard-link-content strong {
  color: var(--accent-gold);
  margin-bottom: 4px;
  font-size: 15px;
  display: block;
}

.dashboard-link-content p {
  color: var(--bw4);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.rarity-bars-container {
  background: var(--bw2);
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 24px;
}

.rarity-bars-title {
  color: var(--bw6);
  margin-bottom: 20px;
  font-size: 16px;
}

.rarity-bar-row {
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  display: flex;
}

.rarity-bar-row:last-child {
  margin-bottom: 0;
}

.rarity-bar-label {
  text-align: right;
  flex-shrink: 0;
  width: 100px;
  font-size: 14px;
  font-weight: bold;
}

.rarity-bar-track {
  background: var(--bw1);
  border-radius: 14px;
  flex: 1;
  height: 28px;
  position: relative;
  overflow: hidden;
}

.rarity-bar-fill {
  border-radius: 14px;
  justify-content: flex-end;
  align-items: center;
  min-width: 50px;
  height: 100%;
  padding-right: 10px;
  transition: width 1s ease-out;
  display: flex;
  position: relative;
}

.rarity-bar-percent {
  color: var(--bw1);
  text-shadow: 0 1px 2px #0000004d;
  font-size: 12px;
  font-weight: bold;
}

.legendary-callout {
  background: linear-gradient(135deg, #f59e0b14 0%, #281d1c99 100%);
  border: 1px solid #f59e0b4d;
  border-radius: 12px;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  display: flex;
}

.legendary-callout-icon {
  background: #f59e0b1a;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  animation: 3s ease-in-out infinite starPulse;
  display: flex;
}

@keyframes starPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .85;
    transform: scale(1.08);
  }
}

.legendary-callout-content h4 {
  color: var(--accent-gold);
  margin-bottom: 10px;
  font-size: 18px;
}

.legendary-callout-content p {
  color: var(--bw5);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.legendary-callout-content p:last-child {
  margin-bottom: 0;
}

.legendary-callout-content strong {
  color: var(--accent-gold);
}

.legendary-callout-content em {
  color: var(--bw6);
  font-style: italic;
}

.special-patterns-section {
  margin-bottom: 24px;
}

.special-patterns-title {
  color: var(--bw6);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 18px;
  display: flex;
}

.special-patterns-desc {
  color: var(--bw5);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.special-patterns-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  display: grid;
}

.special-pattern-card {
  background: var(--bw2);
  border: 1px solid var(--bw3);
  border-radius: 10px;
  padding: 20px;
  transition: all .3s;
}

.special-pattern-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.special-pattern-code {
  color: var(--accent-gold);
  background: #f59e0b1a;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 4px 12px;
  font-family: Courier New, Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  display: inline-block;
}

.special-pattern-label {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}

.special-pattern-card > .special-pattern-desc {
  color: var(--bw5);
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.5;
}

.marketplace-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  display: grid;
}

.marketplace-card {
  background: var(--bw2);
  color: var(--bw6);
  border: 2px solid #0000;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  padding: 24px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all .3s;
  display: flex;
}

.marketplace-card-active {
  border-color: var(--accent-gold);
}

.marketplace-card-active:hover {
  background: var(--bw3);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px #f59e0b26;
}

.marketplace-card-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
}

.marketplace-unavailable {
  color: var(--bw4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: normal;
}

.fusion-flow {
  flex-direction: column;
  align-items: center;
  gap: 0;
  display: flex;
}

.fusion-flow-step {
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  display: flex;
}

.fusion-step-number {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  width: 44px;
  height: 44px;
  color: var(--bw1);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  box-shadow: 0 2px 10px #f59e0b4d;
}

.fusion-step-card {
  background: var(--bw2);
  border: 1px solid var(--bw3);
  border-radius: 12px;
  flex: 1;
  padding: 20px;
  transition: border-color .3s;
}

.fusion-step-card:hover {
  border-color: var(--bw4);
}

.fusion-step-card-result {
  background: linear-gradient(135deg, var(--bw2) 0%, #f59e0b0d 100%);
  border-color: #f59e0b4d;
}

.fusion-step-card h4 {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 18px;
}

.fusion-step-card p {
  color: var(--bw5);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.fusion-step-card p:last-child {
  margin-bottom: 0;
}

.fusion-step-card strong {
  color: var(--accent-red);
}

.fusion-trait-grid {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  display: flex;
}

.fusion-trait-chip {
  background: var(--bw3);
  color: var(--bw5);
  border: 1px solid var(--bw4);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
}

.fusion-arrow-animated {
  justify-content: center;
  align-items: center;
  margin-left: 60px;
  padding: 4px 0;
  display: flex;
}

.fusion-arrow-svg {
  display: block;
}

.arrow-path {
  opacity: .3;
  animation: 1.8s ease-in-out infinite arrowPulse;
}

.arrow-path-1 {
  animation-delay: 0s;
}

.arrow-path-2 {
  animation-delay: .3s;
}

.arrow-path-3 {
  animation-delay: .6s;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: .2;
    stroke-width: 2px;
  }

  50% {
    opacity: 1;
    stroke-width: 3.5px;
  }
}

.fusion-highlight {
  background: var(--bw3);
  border-left: 4px solid var(--accent-green);
  border-radius: 8px;
  padding: 12px;
  font-style: italic;
}

.cross-faction-warning {
  background: linear-gradient(135deg, #ef444414 0%, #281d1c99 100%);
  border: 2px solid #ef444466;
  border-radius: 12px;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  animation: 3s ease-in-out infinite warningBorderPulse;
  display: flex;
}

@keyframes warningBorderPulse {
  0%, 100% {
    border-color: #ef444466;
  }

  50% {
    border-color: #ef4444b3;
  }
}

.cross-faction-warning-icon {
  background: #ef44441f;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: flex;
}

.cross-faction-warning-content h4 {
  color: var(--accent-red);
  margin-bottom: 8px;
  font-size: 18px;
}

.cross-faction-warning-content p {
  color: var(--bw5);
  font-size: 14px;
  line-height: 1.6;
}

.cross-faction-warning-content strong {
  color: var(--accent-red);
}

.trait-hash-formula {
  background: var(--bw1);
  border: 1px solid var(--bw3);
  border-left: 3px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 6px;
  margin: 12px 0 16px;
  padding: 10px 16px;
  font-family: Courier New, Courier, monospace;
  font-size: 14px;
  display: block;
}

.trait-hash-formula code {
  font-family: inherit;
}

.txid-hex-label {
  color: var(--bw5);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-family: Courier New, Courier, monospace;
  font-size: 12px;
  font-weight: bold;
}

.minting-security-note {
  border: 1px solid #3b82f64d;
  border-left: 4px solid var(--accent-blue);
  background: linear-gradient(135deg, #3b82f60f 0%, #281d1c99 100%);
  border-radius: 12px;
  margin-top: 24px;
  padding: 20px 24px;
}

.minting-security-note h4 {
  color: var(--bw6);
  margin-bottom: 14px;
  font-size: 18px;
}

.minting-security-note p {
  color: var(--bw5);
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.security-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.security-table th, .security-table td {
  text-align: left;
  border-bottom: 1px solid var(--bw3);
  padding: 10px 14px;
}

.security-table th {
  background: var(--bw2);
  color: var(--bw5);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11px;
  font-weight: bold;
}

.security-table td {
  color: var(--bw5);
}

.security-table strong {
  color: var(--accent-gold);
}

.security-table tbody tr:last-child td {
  border-bottom: none;
}

.security-table tbody tr:last-child {
  background: #f59e0b0f;
}

.nft-rules-container .foreground {
  pointer-events: none;
  z-index: -1;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (max-width: 768px) {
  .nft-rules-container {
    padding: 100px 16px 50px;
  }

  .nft-rules-header {
    margin-bottom: 40px;
  }

  .nft-rules-header h1 {
    font-size: 36px;
  }

  .nft-rules-header .subtitle {
    font-size: 16px;
  }

  .header-stats {
    gap: 16px;
    margin-top: 24px;
  }

  .header-stat-number {
    font-size: 22px;
  }

  .header-stat-label {
    font-size: 11px;
  }

  .header-stat-divider {
    height: 30px;
  }

  .rules-section {
    margin-bottom: 40px;
    padding: 20px;
  }

  .section-title {
    margin-bottom: 16px;
    padding-bottom: 10px;
    font-size: 24px;
  }

  .section-desc {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .public-draw-rule-grid {
    grid-template-columns: 1fr;
  }

  .public-draw-rule, .public-draw-rule--wide {
    grid-column: span 1;
  }

  .factions-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }

  .faction-card {
    padding: 10px 4px;
  }

  .faction-icon {
    width: 36px;
    height: 36px;
  }

  .faction-icon img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .faction-name {
    font-size: 10px;
  }

  .preview-images {
    gap: 10px;
  }

  .preview-image-wrapper {
    width: 80px;
    height: 80px;
  }

  .supply-grid {
    gap: 16px;
  }

  .supply-card {
    padding: 24px 16px;
  }

  .supply-number {
    font-size: 32px;
  }

  .supply-label {
    font-size: 16px;
  }

  .supply-detail {
    font-size: 12px;
  }

  .faction-supply-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }

  .faction-supply-card {
    padding: 14px 8px;
  }

  .faction-supply-number {
    font-size: 20px;
  }

  .faction-supply-name {
    font-size: 12px;
  }

  .nft-rules-container .traits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trait-card {
    gap: 10px;
    padding: 12px;
  }

  .trait-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .trait-name {
    font-size: 14px;
  }

  .special-factions-info {
    margin-top: 20px;
    padding: 18px;
  }

  .special-factions-header h3 {
    font-size: 17px;
  }

  .special-factions-info p, .special-factions-info li {
    font-size: 13px;
  }

  .subsection-title {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .minting-info {
    margin-bottom: 20px;
    padding: 20px;
  }

  .minting-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-value {
    font-size: 24px;
  }

  .minting-desc {
    font-size: 14px;
  }

  .step-formula {
    padding: 6px 10px;
    font-size: 11px;
  }

  .rarity-list {
    gap: 8px;
  }

  .rarity-item {
    padding: 6px 12px;
  }

  .rarity-name {
    font-size: 13px;
  }

  .rarity-note {
    padding: 12px;
    font-size: 13px;
  }

  .rarity-bars-container {
    padding: 18px;
  }

  .rarity-bar-label {
    width: 80px;
    font-size: 12px;
  }

  .rarity-bar-track {
    height: 24px;
  }

  .rarity-bar-fill {
    min-width: 40px;
  }

  .rarity-bar-percent {
    font-size: 11px;
  }

  .legendary-callout {
    text-align: center;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .legendary-callout-content h4 {
    font-size: 16px;
  }

  .legendary-callout-content p {
    font-size: 13px;
  }

  .special-patterns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .special-pattern-card {
    padding: 16px;
  }

  .special-pattern-code {
    font-size: 16px;
  }

  .txid-demo-container {
    padding: 18px;
  }

  .txid-input {
    padding: 10px 12px;
    font-size: 12px;
  }

  .txid-result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .txid-result-card {
    padding: 16px;
  }

  .txid-result-card-number {
    font-size: 28px;
  }

  .txid-hex-display {
    padding: 10px;
    font-size: 11px;
  }

  .txid-legend {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }

  .txid-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .minting-step {
    text-align: center;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .step-content h3, .step-content h4 {
    font-size: 18px;
  }

  .step-content p {
    font-size: 14px;
  }

  .fusion-flow-step {
    max-width: 100%;
  }

  .fusion-step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .fusion-step-card {
    padding: 16px;
  }

  .fusion-step-card h4 {
    font-size: 16px;
  }

  .fusion-step-card p {
    font-size: 13px;
  }

  .fusion-arrow-animated {
    margin-left: 52px;
    padding: 2px 0;
  }

  .fusion-arrow-svg {
    width: 44px;
    height: 44px;
  }

  .fusion-highlight {
    padding: 10px;
    font-size: 13px;
  }

  .cross-faction-warning {
    margin-top: 24px;
    padding: 16px 18px;
  }

  .cross-faction-warning-content h4 {
    font-size: 16px;
  }

  .cross-faction-warning-content p {
    font-size: 13px;
  }

  .marketplace-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .marketplace-card {
    padding: 16px 12px;
    font-size: 14px;
  }

  .trait-hash-formula {
    padding: 8px 12px;
    font-size: 12px;
  }

  .minting-security-note {
    padding: 16px 18px;
  }

  .minting-security-note h4 {
    font-size: 16px;
  }

  .security-table {
    font-size: 12px;
  }

  .security-table th, .security-table td {
    padding: 8px 10px;
  }

  .security-table th {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .nft-rules-container {
    padding: 90px 10px 40px;
  }

  .nft-rules-header {
    margin-bottom: 30px;
  }

  .nft-rules-header h1 {
    font-size: 28px;
  }

  .nft-rules-header .subtitle {
    font-size: 14px;
  }

  .header-stats {
    gap: 10px;
    margin-top: 20px;
  }

  .header-stat-number {
    font-size: 18px;
  }

  .header-stat-label {
    font-size: 9px;
  }

  .header-stat-divider {
    height: 24px;
  }

  .rules-section {
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 16px;
  }

  .section-title {
    margin-bottom: 12px;
    padding-bottom: 8px;
    font-size: 20px;
  }

  .section-desc {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .factions-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .faction-card {
    border-radius: 8px;
    padding: 6px 2px;
  }

  .faction-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
  }

  .faction-icon img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .faction-name {
    font-size: 8px;
    line-height: 1.2;
  }

  .faction-preview {
    margin-top: 16px;
  }

  .preview-images {
    justify-content: space-between;
    gap: 6px;
  }

  .preview-image-wrapper {
    aspect-ratio: 1;
    border-radius: 8px;
    width: calc(20% - 5px);
    min-width: 50px;
    height: auto;
  }

  .supply-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .supply-card {
    padding: 20px 16px;
  }

  .supply-number {
    font-size: 28px;
  }

  .supply-label {
    font-size: 14px;
  }

  .supply-detail {
    font-size: 11px;
  }

  .faction-supply-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
  }

  .faction-supply-card {
    padding: 12px 6px;
  }

  .faction-supply-icon {
    width: 30px;
    height: 30px;
  }

  .faction-supply-name {
    font-size: 10px;
  }

  .faction-supply-number {
    font-size: 18px;
  }

  .faction-supply-label {
    font-size: 9px;
  }

  .faction-supply-traits {
    font-size: 10px;
  }

  .nft-rules-container .traits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .trait-card {
    border-radius: 6px;
    gap: 8px;
    padding: 10px;
  }

  .trait-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .trait-name {
    font-size: 12px;
  }

  .special-factions-info {
    margin-top: 16px;
    padding: 14px;
  }

  .special-factions-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .special-factions-header svg {
    width: 20px;
    height: 20px;
  }

  .special-factions-header h3 {
    font-size: 15px;
  }

  .special-factions-info p {
    font-size: 12px;
  }

  .special-factions-info li {
    padding-left: 18px;
    font-size: 12px;
  }

  .subsection-title {
    margin-bottom: 10px;
    padding-left: 10px;
    font-size: 18px;
  }

  .minting-info {
    margin-bottom: 16px;
    padding: 16px;
  }

  .minting-price {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .price-label {
    font-size: 14px;
  }

  .price-value {
    font-size: 22px;
  }

  .minting-desc {
    font-size: 13px;
  }

  .step-formula {
    padding: 5px 8px;
    font-size: 10px;
  }

  .rarity-list {
    gap: 6px;
    margin-bottom: 12px;
  }

  .rarity-item {
    border-radius: 16px;
    padding: 6px 10px;
  }

  .rarity-indicator {
    width: 8px;
    height: 8px;
  }

  .rarity-name {
    font-size: 12px;
  }

  .rarity-note {
    border-left-width: 3px;
    padding: 10px;
    font-size: 12px;
  }

  .rarity-bars-container {
    padding: 14px;
  }

  .rarity-bars-title {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .rarity-bar-row {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  .rarity-bar-label {
    text-align: left;
    width: auto;
    font-size: 12px;
  }

  .rarity-bar-track {
    height: 22px;
  }

  .rarity-bar-fill {
    min-width: 36px;
  }

  .rarity-bar-percent {
    font-size: 10px;
  }

  .legendary-callout {
    gap: 14px;
    padding: 16px;
  }

  .legendary-callout-icon {
    width: 44px;
    height: 44px;
  }

  .legendary-callout-icon svg {
    width: 28px;
    height: 28px;
  }

  .legendary-callout-content h4 {
    font-size: 15px;
  }

  .legendary-callout-content p {
    font-size: 12px;
  }

  .special-patterns-title {
    font-size: 15px;
  }

  .special-patterns-desc {
    font-size: 12px;
  }

  .special-patterns-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .special-pattern-card {
    padding: 14px;
  }

  .special-pattern-code {
    padding: 3px 10px;
    font-size: 16px;
  }

  .special-pattern-label {
    font-size: 13px;
  }

  .special-pattern-card > .special-pattern-desc {
    font-size: 12px;
  }

  .txid-demo-container {
    padding: 14px;
  }

  .txid-label {
    font-size: 12px;
  }

  .txid-input {
    padding: 10px;
    font-size: 11px;
  }

  .txid-samples-label {
    font-size: 11px;
  }

  .txid-sample-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .txid-result-title {
    font-size: 16px;
  }

  .txid-hex-display {
    padding: 8px;
    font-size: 9px;
    line-height: 2;
  }

  .txid-hex-char {
    font-size: 12px;
  }

  .txid-legend {
    gap: 6px;
    font-size: 10px;
  }

  .txid-legend-dot {
    width: 8px;
    height: 8px;
  }

  .txid-result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .txid-result-card {
    padding: 14px;
  }

  .txid-result-card-label {
    font-size: 10px;
  }

  .txid-result-card-number {
    font-size: 24px;
  }

  .txid-result-card-value {
    font-size: 14px;
  }

  .txid-result-card-calc {
    padding: 5px 6px;
    font-size: 10px;
  }

  .txid-special-alert {
    padding: 10px 12px;
    font-size: 12px;
  }

  .txid-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .txid-preview-card-label {
    font-size: 11px;
  }

  .txid-preview-card-img {
    border-radius: 8px;
  }

  .minting-steps {
    gap: 16px;
  }

  .minting-step {
    border-radius: 10px;
    gap: 12px;
    padding: 14px;
  }

  .step-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .step-content h3, .step-content h4 {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .step-content p {
    font-size: 13px;
  }

  .fusion-flow-step {
    gap: 10px;
  }

  .fusion-step-number {
    width: 30px;
    height: 30px;
    margin-top: 12px;
    font-size: 14px;
  }

  .fusion-step-card {
    padding: 14px;
  }

  .fusion-step-card h4 {
    font-size: 15px;
  }

  .fusion-step-card p {
    font-size: 12px;
  }

  .fusion-trait-chip {
    padding: 3px 8px;
    font-size: 10px;
  }

  .fusion-arrow-animated {
    margin-left: 40px;
    padding: 2px 0;
  }

  .fusion-arrow-svg {
    width: 36px;
    height: 36px;
  }

  .fusion-highlight {
    border-left-width: 3px;
    padding: 8px;
    font-size: 12px;
  }

  .cross-faction-warning {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
  }

  .cross-faction-warning-content h4 {
    font-size: 15px;
  }

  .cross-faction-warning-content p {
    font-size: 12px;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .marketplace-card {
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
  }

  .trait-hash-formula {
    padding: 6px 10px;
    font-size: 11px;
  }

  .minting-security-note {
    padding: 14px 16px;
  }

  .minting-security-note h4 {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .minting-security-note p {
    font-size: 12px;
  }

  .security-table {
    font-size: 11px;
  }

  .security-table th, .security-table td {
    padding: 6px 8px;
  }

  .security-table th {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .nft-rules-container {
    padding: 85px 8px 30px;
  }

  .nft-rules-header h1 {
    font-size: 24px;
  }

  .nft-rules-header .subtitle {
    font-size: 12px;
  }

  .header-stats {
    flex-direction: column;
    gap: 8px;
  }

  .header-stat {
    flex-direction: row;
    gap: 8px;
  }

  .header-stat-number {
    font-size: 16px;
  }

  .header-stat-label {
    font-size: 10px;
  }

  .header-stat-divider {
    width: 40px;
    height: 1px;
  }

  .rules-section {
    padding: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .factions-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
  }

  .faction-card {
    padding: 4px 2px;
  }

  .faction-icon {
    width: 24px;
    height: 24px;
  }

  .faction-name {
    font-size: 7px;
  }

  .preview-image-wrapper {
    min-width: 45px;
  }

  .nft-rules-container .traits-grid {
    gap: 6px;
  }

  .trait-card {
    gap: 6px;
    padding: 8px;
  }

  .trait-number {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .trait-name {
    font-size: 11px;
  }

  .faction-supply-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
  }

  .faction-supply-card {
    padding: 10px 4px;
  }

  .faction-supply-icon {
    width: 24px;
    height: 24px;
  }

  .faction-supply-name {
    font-size: 9px;
  }

  .faction-supply-number {
    font-size: 16px;
  }

  .faction-supply-label {
    font-size: 8px;
  }

  .faction-supply-traits {
    font-size: 9px;
  }

  .txid-demo-container {
    padding: 10px;
  }

  .txid-input {
    padding: 8px;
    font-size: 10px;
  }

  .txid-sample-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .txid-hex-display {
    padding: 6px;
    font-size: 8px;
  }

  .txid-hex-char {
    padding: 1px 3px;
    font-size: 10px;
  }

  .txid-result-card-number {
    font-size: 20px;
  }

  .txid-result-card-value {
    font-size: 13px;
  }

  .txid-result-card-calc {
    font-size: 9px;
  }

  .special-factions-info {
    padding: 10px;
  }

  .special-factions-header h3 {
    font-size: 13px;
  }

  .special-factions-info p, .special-factions-info li {
    font-size: 11px;
  }

  .legendary-callout {
    gap: 10px;
    padding: 12px;
  }

  .legendary-callout-icon {
    width: 36px;
    height: 36px;
  }

  .legendary-callout-icon svg {
    width: 22px;
    height: 22px;
  }

  .legendary-callout-content h4 {
    font-size: 14px;
  }

  .legendary-callout-content p {
    font-size: 11px;
  }

  .special-patterns-title, .special-pattern-code {
    font-size: 14px;
  }

  .special-pattern-label {
    font-size: 12px;
  }

  .special-pattern-card > .special-pattern-desc {
    font-size: 11px;
  }

  .fusion-step-number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .fusion-step-card {
    padding: 10px;
  }

  .fusion-step-card h4 {
    font-size: 14px;
  }

  .fusion-step-card p {
    font-size: 11px;
  }

  .fusion-trait-chip {
    padding: 2px 6px;
    font-size: 9px;
  }

  .fusion-arrow-animated {
    margin-left: 36px;
  }

  .fusion-arrow-svg {
    width: 30px;
    height: 30px;
  }

  .cross-faction-warning {
    gap: 8px;
    padding: 12px;
  }

  .cross-faction-warning-icon {
    width: 36px;
    height: 36px;
  }

  .cross-faction-warning-icon svg {
    width: 22px;
    height: 22px;
  }

  .cross-faction-warning-content h4 {
    font-size: 14px;
  }

  .cross-faction-warning-content p {
    font-size: 11px;
  }
}

.nft-rules-container ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.nft-rules-container ::-webkit-scrollbar-track {
  background: none;
}

.nft-rules-container ::-webkit-scrollbar-thumb {
  background: #fff3;
  border-radius: 3px;
}

.nft-rules-container ::-webkit-scrollbar-thumb:hover {
  background: #ffffff59;
}

.nft-rules-container {
  scrollbar-width: thin;
  scrollbar-color: #fff3 transparent;
}

.production-rule-block {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 20px 24px;
}

.production-rule-title {
  color: var(--bw6);
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
}

.production-rule-block p {
  color: var(--bw5);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.production-rule-block p:last-child {
  margin-bottom: 0;
}

.variant-counts-table-wrapper {
  border: 1px solid #ffffff14;
  border-radius: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.variant-counts-table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
  font-size: 13px;
}

.variant-counts-table thead th {
  color: var(--bw5);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  background: #ffffff0f;
  border-bottom: 1px solid #ffffff1a;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
}

.variant-counts-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
}

.variant-counts-table tbody td {
  text-align: center;
  color: var(--bw5);
  border-bottom: 1px solid #ffffff0a;
  padding: 8px 12px;
}

.variant-counts-table tbody tr:last-child td {
  border-bottom: none;
}

.variant-counts-table tbody tr:hover td {
  background: #ffffff08;
}

.variant-faction-cell {
  font-weight: 600;
  text-align: left !important;
  color: var(--bw6) !important;
  padding-left: 16px !important;
}

.variant-count-one {
  opacity: .5;
  color: var(--bw4) !important;
}

.variant-total-cell {
  font-weight: 700;
  color: var(--accent-gold) !important;
}

.rarity-tiers-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 24px;
  display: grid;
}

.rarity-tier-card {
  text-align: center;
  background: #ffffff08;
  border: 1px solid;
  border-radius: 10px;
  padding: 16px;
  transition: transform .2s, background .2s;
}

.rarity-tier-card:hover {
  background: #ffffff0d;
  transform: translateY(-2px);
}

.rarity-tier-dot {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 auto 8px;
}

.rarity-tier-name {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.rarity-tier-threshold {
  color: var(--bw6);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.rarity-tier-desc {
  color: var(--bw4);
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.overflow-demo {
  background: #a855f70a;
  border: 1px solid #a855f726;
  border-radius: 10px;
  margin-top: 16px;
  padding: 20px;
}

.overflow-demo-title {
  color: #a855f7;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.overflow-demo-desc {
  color: var(--bw5);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.overflow-demo-desc strong {
  color: var(--bw6);
}

.overflow-demo-flow {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
}

.overflow-flow-box {
  text-align: center;
  border-radius: 10px;
  flex: 160px;
  min-width: 0;
  max-width: 220px;
  padding: 14px;
}

.overflow-flow-box--full {
  background: #ef444414;
  border: 1px solid #ef444440;
}

.overflow-flow-box--calc {
  background: #a855f714;
  border: 1px solid #a855f740;
}

.overflow-flow-box--target {
  background: #22c55e14;
  border: 1px solid #22c55e40;
}

.overflow-flow-label {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bw4);
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
}

.overflow-flow-icon {
  margin-bottom: 6px;
}

.overflow-flow-icon img {
  border-radius: 50%;
}

.overflow-flow-value {
  color: var(--bw6);
  word-break: break-word;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.overflow-flow-status {
  color: #ef4444;
  letter-spacing: .5px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.overflow-flow-status--ok {
  color: #22c55e;
}

.overflow-flow-arrow {
  flex: none;
}

.overflow-hex-display {
  color: var(--bw5);
  word-break: break-all;
  margin-bottom: 8px;
  font-size: 12px;
  display: block;
}

.overflow-hex-highlight {
  color: #fb7185;
  letter-spacing: 1px;
  background: #fb718526;
  border: 1px solid #fb718566;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 16px;
  font-weight: 800;
}

.overflow-calc-detail {
  color: var(--bw5);
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
}

.overflow-calc-footnote {
  color: var(--bw4);
  margin-top: 4px;
  font-size: 10px;
  font-style: italic;
}

.overflow-demo-note {
  color: var(--bw4);
  border-top: 1px solid #ffffff0f;
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.overflow-demo-note strong {
  color: var(--bw5);
}

.overflow-mapping {
  background: #a855f70a;
  border: 1px solid #a855f726;
  border-radius: 10px;
  margin-top: 18px;
  padding: 16px;
}

.overflow-mapping-title {
  color: #a855f7;
  letter-spacing: .5px;
  margin: 0 0 8px;
  font-family: Metal Mania, cursive;
  font-size: 14px;
  font-weight: 700;
}

.overflow-mapping-desc {
  color: var(--bw4);
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
}

.overflow-mapping-desc strong {
  color: var(--bw5);
}

.overflow-mapping-table-wrap {
  margin-bottom: 12px;
  overflow-x: auto;
}

.overflow-mapping-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.overflow-mapping-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bw4);
  border-bottom: 1px solid #a855f733;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
}

.overflow-mapping-table td {
  color: var(--bw5);
  border-bottom: 1px solid #ffffff0a;
  padding: 5px 10px;
}

.overflow-mapping-table tbody tr:last-child td {
  border-bottom: none;
}

.overflow-mapping-row--active {
  background: #a855f71a;
}

.overflow-mapping-row--active td {
  color: #c084fc;
  font-weight: 600;
}

.overflow-mapping-range {
  white-space: nowrap;
  font-family: Courier New, monospace;
}

.overflow-mapping-count {
  text-align: center;
}

.overflow-mapping-skip {
  color: #ef4444;
  font-size: 11px;
}

.overflow-mapping-full {
  color: var(--bw4);
  font-size: 11px;
}

.overflow-mapping-result {
  color: var(--bw4);
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.overflow-mapping-result strong {
  color: #c084fc;
}

.rules-applied-panel {
  background: #f59e0b0a;
  border: 1px solid #f59e0b26;
  border-radius: 12px;
  margin-top: 24px;
  padding: 20px;
}

.rules-applied-title {
  color: var(--accent-gold);
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

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

.rules-applied-card {
  background: #00000040;
  border: 1px solid #ffffff0f;
  border-radius: 10px;
  padding: 16px;
}

.rules-applied-card-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bw4);
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
}

.rules-applied-card-highlight {
  color: var(--accent-gold);
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.rules-applied-card p {
  color: var(--bw5);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.rules-applied-card p strong {
  color: var(--bw6);
}

@media (max-width: 768px) {
  .rarity-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rules-applied-grid {
    grid-template-columns: 1fr;
  }

  .variant-counts-table {
    font-size: 11px;
  }

  .variant-counts-table thead th {
    padding: 8px 6px;
    font-size: 9px;
  }

  .variant-counts-table tbody td {
    padding: 6px;
  }

  .production-rule-block {
    padding: 16px;
  }

  .overflow-demo-flow {
    flex-direction: column;
    gap: 8px;
  }

  .overflow-flow-box {
    width: 100%;
    max-width: 100%;
  }

  .overflow-flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .rarity-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .production-rule-title {
    font-size: 14px;
  }

  .production-rule-block p {
    font-size: 13px;
  }

  .rarity-tier-threshold {
    font-size: 15px;
  }

  .rarity-tier-desc {
    font-size: 10px;
  }

  .rules-applied-grid {
    grid-template-columns: 1fr;
  }

  .rules-applied-card-highlight {
    font-size: 22px;
  }

  .rules-applied-panel {
    padding: 14px;
  }
}

