.nft-experience-root {
  --nft-bg: #ffffff;
  --nft-bg-panel: #ffffff;
  --nft-border: #d7d7d7;
  --nft-border-soft: #e5e5e5;
  --nft-text: #111111;
  --nft-text-soft: #555555;
  --nft-accent: #111111;
  --nft-accent-strong: #111111;
  position: relative;
  width: 100%;
  background: var(--nft-bg);
  color: var(--nft-text);
  font-family: "ABC Favorit Mono", "Courier New", monospace;
}

.nft-experience-root * {
  box-sizing: border-box;
}

.nft-experience-root .loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 20;
  padding-top: 18px;
  font-size: 14px;
  color: #111111;
  letter-spacing: 0.1em;
  transition: opacity 0.8s;
}

.nft-experience-root .loading.done {
  opacity: 0;
  pointer-events: none;
}

.nft-experience-root .app {
  display: block;
  width: 100%;
  min-height: auto;
}

.nft-experience-root .left {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px 10px;
  overflow: visible;
  position: relative;
  background: var(--nft-bg);
}

.nft-experience-root .canvas-area {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.nft-experience-root .canvas-wrap {
  border: 1px solid var(--nft-border-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: width 0.18s ease, height 0.18s ease;
  will-change: width, height;
  overflow: hidden;
}

.nft-experience-root #mosaic {
  display: block;
  width: 100%;
  height: 100%;
}

.nft-experience-root .timer {
  font-size: 14px;
  font-weight: 400;
  color: var(--nft-accent);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.3s;
}

.nft-experience-root .timer.urgent {
  color: #d44;
}

.nft-experience-root .nft-progress {
  color: var(--nft-accent);
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px;
  text-align: center;
}

.nft-zoom-controls {
  width: min(640px, calc(100vw - 32px));
  margin: 8px auto 6px;
  display: grid;
  grid-template-columns: 34px minmax(160px, 1fr) 34px;
  align-items: center;
  gap: 8px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nft-zoom-controls.is-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nft-zoom-btn {
  border: none;
  background: transparent;
  color: #2c2c2c;
  font-family: "ABC Favorit Mono", "Courier New", monospace;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  height: 28px;
}

.nft-zoom-controls input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 28px;
}

.nft-zoom-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #d3d3d3;
}

.nft-zoom-controls input[type="range"]::-moz-range-track {
  height: 4px;
  background: #d3d3d3;
  border: none;
}

.nft-zoom-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #2c2c2c;
  border-radius: 50%;
  background: #f1f1f1;
  margin-top: -5px;
}

.nft-zoom-controls input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #2c2c2c;
  border-radius: 50%;
  background: #f1f1f1;
}

.nft-controlsbar {
  width: min(1106px, calc(100vw - 32px));
  margin: 8px auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nft-controlsbar.is-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.nft-ctrl-btn {
  font-family: "ABC Favorit Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border: 1px solid #d6d6d6;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.nft-ctrl-btn-dark {
  background: #4a4a4a;
  color: #ffffff;
  border-color: #4a4a4a;
}

.nft-ctrl-btn-dark:hover {
  background: #ffffff;
  color: #4a4a4a;
  border-color: #4a4a4a;
}

.nft-ctrl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nft-ctrl-play {
  display: inline-block;
  margin-right: 6px;
}

.nft-ctrl-status {
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #d6d6d6;
  color: #111111;
  font-family: "ABC Favorit Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 0;
}

.nft-ctrl-sep {
  opacity: 0.7;
}

.nft-progress-track {
  display: none;
}

@media (max-width: 768px) {
  .nft-experience-root .app {
    min-height: auto;
  }

  .nft-experience-root .left {
    min-height: auto;
    padding: 0;
    overflow: hidden;
  }
  
  .nft-controlsbar {
    gap: 10px;
    margin: 8px auto 24px;
    width: min(1106px, calc(100vw - 24px));
  }

  .nft-zoom-controls {
    width: min(440px, calc(100vw - 24px));
    margin: 8px auto 4px;
    grid-template-columns: 30px minmax(120px, 1fr) 30px;
    gap: 8px;
  }

  .nft-zoom-btn {
    font-size: 28px;
    height: 24px;
  }

  .nft-ctrl-btn,
  .nft-ctrl-status {
    font-size: 12px;
    padding: 8px 10px;
  }
}
