﻿
    :root {
      --nft-a-lime: #166534;
      --nft-a-gold: #FFC107;
      --nft-a-border: rgba(22, 101, 52, 0.45);
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      min-height: 100vh;
      background: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-body);
      padding: 24px 16px 48px;
    }
    .nft-asset-wrap {
      position: relative;
      max-width: min(1280px, 96vw);
      margin: 0 auto;
    }
    #nft-page-close {
      position: absolute;
      top: 0;
      right: 0;
      z-index: 10;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.35);
      color: #fff;
      font-size: 28px;
      line-height: 1;
      font-weight: 300;
      cursor: pointer;
      font-family: var(--font-body);
    }
    #nft-page-close:hover {
      border-color: rgba(255, 255, 255, 0.45);
      background: rgba(0, 0, 0, 0.55);
    }
    .nft-asset-panel {
      border: 1px solid var(--nft-a-border);
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      padding: 20px;
      display: grid;
      gap: 20px;
      grid-template-columns: 1fr;
      grid-template-areas:
        "game"
        "trade"
        "media"
        "chain";
    }
    .nft-asset-col-info {
      display: contents;
    }
    @media (min-width: 900px) {
      .nft-asset-panel {
        grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
        grid-template-areas: "media info";
        align-items: start;
      }
      .nft-asset-col-info {
        display: flex;
        flex-direction: column;
        gap: 16px;
        grid-area: info;
        min-width: 0;
      }
      .nft-media-stage { grid-area: media; }
    }
    @media (max-width: 899px) {
      .nft-game-layer { grid-area: game; }
      .nft-trade-panel { grid-area: trade; }
      .nft-media-stage { grid-area: media; }
      .nft-chain-details { grid-area: chain; }
    }
    .nft-asset-skeleton .nft-skel-shimmer {
      background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.04) 100%
      );
      background-size: 200% 100%;
      animation: nft-skel-pulse 1.2s ease-in-out infinite;
      border-radius: 8px;
    }
    @keyframes nft-skel-pulse {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }
    .nft-asset-skeleton .nft-skel-media {
      aspect-ratio: 1;
      max-height: min(72vh, 640px);
      width: 100%;
      border-radius: 10px;
    }
    .nft-asset-skeleton .nft-skel-title {
      height: 28px;
      width: min(240px, 70%);
      margin-bottom: 12px;
    }
    .nft-asset-skeleton .nft-skel-chip {
      display: inline-block;
      height: 26px;
      width: 100px;
      margin: 0 8px 8px 0;
    }
    .nft-asset-skeleton .nft-skel-trade {
      min-height: 140px;
      border-radius: 10px;
      border: 1px solid rgba(22, 101, 52, 0.25);
    }
    .nft-offer-bar--loading {
      min-height: 44px;
    }
    .nft-game-layer {
      min-width: 0;
    }
    .nft-game-name {
      font-family: var(--font-display);
      font-size: clamp(1.35rem, 3vw, 1.85rem);
      letter-spacing: 0.04em;
      font-weight: 700;
      margin: 0 0 10px 0;
      padding-right: 48px;
      line-height: 1.2;
    }
    .nft-game-traits {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }
    .nft-game-trait-chip {
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(0,0,0,0.25);
      font-size: 12px;
      line-height: 1.3;
    }
    .nft-game-trait-chip .k {
      color: rgba(255,255,255,0.55);
      margin-right: 4px;
    }
    .nft-game-desc {
      font-size: 14px;
      line-height: 1.5;
      color: rgba(255,255,255,0.88);
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .nft-game-desc.is-expanded {
      -webkit-line-clamp: unset;
      display: block;
    }
    .nft-game-desc-more {
      margin-top: 6px;
      padding: 0;
      border: none;
      background: none;
      color: var(--star-blue, #4A9FFF);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: var(--font-body);
    }
    .nft-trade-panel {
      border: 1px solid rgba(22, 101, 52, 0.35);
      border-radius: 10px;
      background: rgba(22, 101, 52, 0.08);
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 0;
    }
    .nft-trade-head {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 14px;
    }
    .nft-trade-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
    }
    .nft-trade-row .lbl {
      color: rgba(255,255,255,0.55);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .nft-trade-row .val {
      font-weight: 600;
      font-family: var(--font-mono);
    }
    .nft-trade-divider {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(255,255,255,0.45);
      margin-top: 4px;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nft-chain-details {
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 0 14px;
      background: rgba(0,0,0,0.2);
    }
    .nft-chain-details summary {
      cursor: pointer;
      padding: 12px 0;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.55);
      list-style: none;
    }
    .nft-chain-details summary::-webkit-details-marker { display: none; }
    .nft-chain-details[open] summary {
      border-bottom: 1px solid rgba(255,255,255,0.08);
      margin-bottom: 8px;
    }
    .nft-chain-details .nft-asset-meta {
      padding-bottom: 12px;
    }
    @media (min-width: 900px) {
      .nft-asset-img-wrap {
        aspect-ratio: 1;
        max-height: min(72vh, 640px);
      }
    }
    .nft-media-stage {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 0;
    }
    .nft-asset-img-wrap {
      border-radius: 10px;
      overflow: hidden;
      background: rgba(0,0,0,0.35);
      aspect-ratio: 1;
      position: relative;
    }
    .nft-media-frame .nft-asset-main-img,
    .nft-media-frame model-viewer {
      width: 100%;
      height: 100%;
      display: block;
    }
    .nft-media-frame .nft-asset-main-img {
      object-fit: cover;
    }
    .nft-media-frame model-viewer {
      --poster-color: transparent;
      min-height: 200px;
    }
    .nft-media-frame.nft-media-mode-3d .nft-asset-main-img {
      display: none !important;
    }
    .nft-media-frame.nft-media-mode-3d model-viewer {
      display: block !important;
    }
    .nft-media-frame.nft-media-mode-2d model-viewer {
      display: none !important;
    }
    .nft-media-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .nft-media-btn {
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      font-family: var(--font-body);
      cursor: pointer;
      border: 1px solid rgba(74, 159, 255, 0.35);
      background: rgba(74, 159, 255, 0.12);
      color: var(--text-primary);
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .nft-media-btn:hover {
      border-color: var(--star-blue, #4A9FFF);
      box-shadow: 0 0 10px rgba(74, 159, 255, 0.2);
    }
    .nft-fs-close {
      display: none;
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 2;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.55);
      color: #fff;
      font-size: 28px;
      line-height: 1;
      font-weight: 300;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      font-family: var(--font-body);
    }
    .nft-fs-close:hover {
      border-color: rgba(255, 255, 255, 0.5);
      background: rgba(0, 0, 0, 0.75);
    }
    .nft-media-stage--fs {
      position: fixed;
      inset: 0;
      z-index: 1500;
      background: rgba(0, 0, 0, 0.96);
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      gap: 0;
      max-width: none;
    }
    .nft-media-stage--fs .nft-fs-close {
      display: flex;
    }
    .nft-media-stage--fs .nft-media-frame {
      flex: 1 1 0;
      min-height: 0;
      width: 100%;
      max-width: 100%;
      max-height: none;
      height: auto;
      aspect-ratio: unset;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000;
    }
    .nft-media-stage--fs .nft-asset-main-img {
      width: 100%;
      height: 100%;
      max-width: 100vw;
      max-height: 100vh;
      object-fit: contain;
      object-position: center;
      background: #000;
    }
    .nft-media-stage--fs model-viewer {
      width: 100%;
      height: 100%;
      max-width: 100vw;
      max-height: 100vh;
      min-height: 0;
    }
    .nft-media-stage--fs .nft-media-toolbar,
    .nft-media-stage--fs .nft-fs-hint {
      display: none !important;
    }
    .nft-fs-bar {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .nft-fs-hint {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.45);
      text-align: center;
      max-width: 420px;
    }
    .nft-asset-section-title {
      font-family: var(--font-body);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted, rgba(255, 255, 255, 0.5));
      margin: 0 0 12px 0;
    }
    .nft-asset-meta dt {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255,255,255,0.5);
      margin-top: 12px;
    }
    .nft-asset-meta dt:first-child { margin-top: 0; }
    .nft-asset-meta dd {
      font-family: var(--font-mono);
      font-size: 13px;
      word-break: break-all;
      margin-top: 4px;
    }
    .nft-asset-meta dd.nft-asset-desc {
      font-family: var(--font-body);
      white-space: pre-wrap;
      word-break: break-word;
    }
    .nft-asset-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }
    .nft-asset-actions button,
    .nft-asset-actions a.btn {
      display: inline-block;
      text-align: center;
      padding: 12px 16px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      border: 1px solid var(--nft-a-border);
      background: rgba(22, 101, 52, 0.25);
      color: var(--text-primary);
      text-decoration: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    a.nft-asset-cta {
      display: inline-block;
      margin-top: 12px;
      padding: 10px 16px;
      border-radius: 8px;
      border: 1px solid rgba(74, 159, 255, 0.4);
      color: var(--star-blue-bright, #7dbfff);
      text-decoration: none;
      font-weight: 600;
    }
    a.nft-asset-cta:hover {
      border-color: var(--star-blue, #4a9fff);
      color: var(--accent-hover, #93c5fd);
    }
    .nft-asset-actions a.btn:hover {
      border-color: var(--nft-a-lime);
      box-shadow: 0 0 12px rgba(22, 101, 52, 0.25);
    }
    .nft-asset-actions button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .nft-asset-actions .btn-secondary {
      background: rgba(74, 159, 255, 0.12);
      border-color: rgba(74, 159, 255, 0.35);
    }
    .nft-asset-err {
      color: #f87171;
      font-size: 14px;
      line-height: 1.5;
    }
    .nft-asset-hint {
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      line-height: 1.45;
      margin-top: 8px;
    }
    #nft-offer-actions .nft-asset-section-title {
      margin-top: 4px;
      margin-bottom: 8px;
    }
    .nft-sell-offers-readonly {
      font-size: 13px;
      line-height: 1.45;
      color: rgba(255,255,255,0.88);
    }
    .nft-sell-offer-readonly-row {
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nft-sell-offer-readonly-row:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
    .nft-offer-dest-label {
      color: rgba(255,255,255,0.65);
      font-size: 12px;
    }
    .nft-traits {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }
    .nft-trait-card {
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px;
      padding: 8px 10px;
      min-width: 100px;
      background: rgba(0,0,0,0.2);
    }
    .nft-trait-card .k {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.45);
    }
    .nft-trait-card .v {
      font-family: var(--font-body);
      font-size: 13px;
      margin-top: 4px;
      color: rgba(255,255,255,0.92);
    }
    .nft-meta-link a {
      color: var(--star-blue, #4A9FFF);
      word-break: break-all;
    }
    a.nft-asset-explorer-link {
      color: var(--star-blue, #4A9FFF);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    a.nft-asset-explorer-link:hover {
      color: #7ab8ff;
    }
    .nft-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0,0,0,0.65);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .nft-modal-backdrop.is-open { display: flex; }
    .nft-modal {
      width: 100%;
      max-width: 400px;
      border-radius: 12px;
      border: 1px solid var(--nft-a-border);
      background: var(--bg-primary);
      padding: 20px;
      box-shadow: 0 16px 48px rgba(0,0,0,0.45);
    }
    .nft-modal h2 {
      font-size: 1.1rem;
      margin-bottom: 14px;
      font-family: var(--font-display);
    }
    .nft-modal-row {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 16px;
    }
    .nft-modal-row img {
      width: 56px;
      height: 56px;
      border-radius: 8px;
      object-fit: cover;
      background: rgba(0,0,0,0.35);
    }
    .nft-modal-row .sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; word-break: break-all; }
    .nft-modal label { font-size: 12px; color: rgba(255,255,255,0.65); display: block; margin-bottom: 6px; }
    .nft-modal input {
      width: 100%;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.15);
      background: var(--input-bg, rgba(0,0,0,0.25));
      color: var(--text-primary);
      font-family: var(--font-mono);
      font-size: 13px;
    }
    .nft-modal .nft-modal-actions {
      margin-top: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .nft-modal .nft-modal-actions button {
      padding: 12px 16px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--nft-a-border);
    }
    .nft-modal .btn-close {
      background: transparent;
      color: rgba(255,255,255,0.75);
    }
    .nft-modal .btn-primary {
      background: rgba(22, 101, 52, 0.45);
      color: var(--text-primary);
    }
    .nft-modal .btn-primary:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .nft-modal-burn-check {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 14px 0 4px;
      font-size: 13px;
      line-height: 1.45;
      color: rgba(255,255,255,0.88);
      cursor: pointer;
    }
    .nft-modal-burn-check input {
      width: auto;
      margin-top: 3px;
      flex-shrink: 0;
    }
    .nft-modal--burn {
      max-width: 520px;
      padding: 28px 32px 26px;
      border-color: rgba(160, 58, 42, 0.55);
      background: linear-gradient(165deg, rgba(48, 18, 18, 0.92) 0%, var(--bg-primary) 55%);
      box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(180, 72, 48, 0.12);
    }
    .nft-modal--burn h2 {
      font-size: 1.45rem;
      line-height: 1.3;
      margin-bottom: 18px;
      color: #e8a070;
      letter-spacing: 0.02em;
    }
    .nft-modal--burn .nft-modal-row {
      margin-bottom: 20px;
      gap: 16px;
    }
    .nft-modal--burn .nft-modal-row img {
      width: 72px;
      height: 72px;
      border-radius: 10px;
      border: 1px solid rgba(180, 72, 48, 0.35);
    }
    .nft-modal--burn #nft-burn-name {
      font-size: 1.15rem;
      font-weight: 600;
    }
    .nft-modal--burn .nft-modal-row .sub {
      font-size: 14px;
      margin-top: 6px;
    }
    .nft-modal--burn .nft-modal-burn-explain {
      font-size: 1.05rem;
      line-height: 1.55;
      color: rgba(255, 235, 220, 0.9);
      margin: 0;
    }
    .nft-modal--burn .nft-modal-burn-check {
      margin: 20px 0 8px;
      font-size: 1rem;
      line-height: 1.5;
      color: rgba(255, 228, 210, 0.92);
    }
    .nft-modal--burn .nft-modal-burn-check input {
      width: 18px;
      height: 18px;
      margin-top: 4px;
      accent-color: #b45309;
    }
    .nft-modal--burn .nft-modal-actions {
      margin-top: 22px;
      gap: 12px;
    }
    .nft-modal--burn .nft-modal-actions button {
      padding: 14px 18px;
      font-size: 1rem;
      border-radius: 10px;
    }
    .nft-modal--burn .btn-primary {
      background: linear-gradient(180deg, rgba(154, 52, 18, 0.88) 0%, rgba(127, 29, 29, 0.92) 100%);
      border-color: rgba(217, 119, 6, 0.45);
      color: #fff8f0;
    }
    .nft-modal--burn .btn-primary:not(:disabled):hover {
      background: linear-gradient(180deg, rgba(180, 62, 22, 0.95) 0%, rgba(153, 27, 27, 0.95) 100%);
      border-color: rgba(234, 150, 80, 0.5);
    }
    .nft-modal--burn .btn-close {
      font-size: 0.95rem;
      border-color: rgba(255, 255, 255, 0.18);
    }
  
