/* ============ smartkey.visual.css =================
   SMART KEY NFT VISUAL ENGINE v6 (REAL METAL LOOK)
   - glass + metal + scratches + shine + vignette + bloom
================================================== */

/* Контейнер визуала */
.nft-key-bars{
  width:100%;
  padding:0;              /* ← убрать отступ */
  box-sizing:border-box;
  border-radius:26px;
  position:relative;
  overflow:hidden;

  background:none;        /* ← убрать фон */
  border:none;            /* ← убрать границу */
}

/* Внутренняя “стеклянная” плёнка */
.nft-key-bars::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:26px;

  /* Виньетка + стекло + мягкая подсветка края */
  background:
    radial-gradient(140% 120% at 50% 40%, rgba(255,255,255,0.04) 0%, transparent 55%),
    radial-gradient(120% 100% at 50% 50%, transparent 45%, rgba(0,0,0,0.52) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 22%),
    linear-gradient(315deg, rgba(0,255,255,0.06) 0%, transparent 35%);

  filter: blur(0px);
  opacity:0.95;
  mix-blend-mode:screen;
}

/* Слой микро-шум + царапины (без картинок, чисто градиентами) */
.nft-key-bars::after{
  content:"";
  position:absolute;
  inset:-10%;
  pointer-events:none;
  border-radius:32px;

  /* 1) зерно/шум (имитация) 2) тонкие царапины (диагональные штрихи) */
  background:
    /* шумоподобная сетка */
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 6px
    ),
    /* царапины */
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.050) 0px,
      rgba(255,255,255,0.050) 1px,
      rgba(0,0,0,0) 7px,
      rgba(0,0,0,0) 18px
    ),
    repeating-linear-gradient(
      25deg,
      rgba(255,255,255,0.030) 0px,
      rgba(255,255,255,0.030) 1px,
      rgba(0,0,0,0) 10px,
      rgba(0,0,0,0) 28px
    );

  opacity:0.18;
  transform: rotate(-2deg) scale(1.03);
  mix-blend-mode:overlay;
  filter: blur(0.15px);
}

/* Лёгкое “дыхание” неона */
@keyframes nftGlow{
  0%   {
    box-shadow:none;
  }
  50%  {
    box-shadow:none;
  }
  100% {
    box-shadow:none;
  }
}

.nft-key-bars{
  animation: nftGlow 7.5s ease-in-out infinite;
}

/* Canvas */
.nft-bars-canvas{
  width:100%;
  aspect-ratio:1 / 1;
  display:block;
  background:transparent;
  border-radius:22px;

  /* Глубина “экрана” */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 0 -25px 50px rgba(0,0,0,0.55),
    0 10px 30px rgba(0,0,0,0.45);

  /* Слегка “линза” */
  filter: saturate(1.06) contrast(1.06);
}

/* Доп. стеклянный блик поверх canvas */
.nft-key-bars .nft-bars-canvas{
  position: relative;
  z-index: 2;
}

/* Лёгкий глянец поверх области canvas */
.nft-key-bars .nft-bars-canvas::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:22px;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 22%),
    radial-gradient(120% 90% at 40% 10%, rgba(255,255,255,0.10) 0%, transparent 55%),
    radial-gradient(90% 90% at 80% 30%, rgba(0,255,255,0.06) 0%, transparent 60%);
  mix-blend-mode:screen;
  opacity:0.35;
}

/* Genome строка */
.nft-bars-genome{
  margin-top:16px;
  padding:10px 14px;
  text-align:center;
  font-family:"Courier New", monospace;
  font-size:14px;
  color:#eaffff;
  letter-spacing:1px;
  word-break:break-all;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.0)),
    rgba(0,255,255,0.04);

  border:1px solid rgba(0,255,255,0.10);
  border-radius:14px;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 0 18px rgba(0,255,255,0.05),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* Кнопки действий */
.smartkey-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
}

.smartkey-actions button{
  flex:1;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  font-weight:800;
  cursor:pointer;
  letter-spacing:0.4px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.smartkey-actions button:active{
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.98);
}

.smartkey-melt{
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 35%),
    linear-gradient(180deg, #ff3a6b, #d60b36);
  color:#fff;
  border-color: rgba(255,60,110,0.35);
}

.smartkey-melt:hover{
  box-shadow:
    0 14px 34px rgba(0,0,0,0.45),
    0 0 40px rgba(255,45,85,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.smartkey-mint{
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.22) 0%, transparent 35%),
    linear-gradient(180deg, #2bff9a, #00d873);
  color:#06140d;
  border-color: rgba(0,255,150,0.35);
}

.smartkey-mint:hover{
  box-shadow:
    0 14px 34px rgba(0,0,0,0.45),
    0 0 40px rgba(0,230,120,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Нежная оптимизация для слабых устройств */
@media (prefers-reduced-motion: reduce){
  .nft-key-bars{ animation:none; }
}

/* На очень маленьких экранах */
@media (max-width: 380px){
  .nft-key-bars{ padding:18px 12px 20px 12px; border-radius:22px; }
  .nft-bars-canvas{ height:340px; border-radius:20px; }
  .nft-bars-genome{ font-size:13px; }
}