:root { color-scheme: dark; --page: #1a1a1d; --panel: #191c23; --border: #30343c; --heading: #eef0f5; --text: #e3e6ec; --muted: #b9c1ce; --gold: #e5bd80; --danger: #ffb7ae; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); font-weight: 650; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: -.7px; }
h2 { font-size: 24px; letter-spacing: -.35px; }
h3 { font-size: 15px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 5; padding: 12px 18px; background: var(--gold); color: #1b1920; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #1b1920; }
.site-header { background: linear-gradient(180deg, #092452, #151a24); border-bottom: 1px solid #ffffff0b; }
.header-inner { max-width: 1240px; min-height: 104px; padding: 20px 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 24px; }
.brand img { width: 98px; height: 60px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-label { padding-left: 24px; border-left: 1px solid #ffffff26; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.website-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 14px; }
.academy-art { display: none; background-image: none; }
.hub-main { width: min(960px, calc(100% - 64px)); margin: 48px auto 0; position: relative; }
.hub-main:focus { outline: none; }
.hub-stack { display: flex; flex-direction: column; gap: 32px; }
.hub-panel { padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.search-panel { border-radius: 20px; box-shadow: 0 16px 48px #0000001f; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .19em; margin-bottom: 10px; }
.intro { color: var(--muted); margin-top: 12px; max-width: 650px; }
.search-form { margin-top: 24px; }
.search-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.search-row { display: flex; gap: 12px; }
.search-row input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #777f8e; border-radius: 8px; padding: 12px 16px; color: var(--heading); background: #12151b; }
.search-row input::placeholder { color: #a0a8b7; }
.search-row input[aria-invalid="true"] { border-color: var(--danger); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; line-height: 1.4; text-align: center; cursor: pointer; transition: background-color .16s, border-color .16s; }
.button-primary { background: var(--gold); color: #1b1920; flex-shrink: 0; }
.button-primary:hover { background: #f0cca0; color: #1b1920; }
.button:disabled { opacity: .65; cursor: wait; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-secondary { border-color: #737d8e; background: #202530; color: var(--heading); }
.button-secondary:hover { background: #2d3340; color: var(--heading); }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.input-error { font-size: 14px; color: var(--danger); margin-top: 8px; }
.state-panel { min-height: 204px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.state-panel h2 { font-size: 21px; }
.state-panel p { color: var(--muted); max-width: 560px; overflow-wrap: anywhere; }
.state-panel .eyebrow { margin: 0; }
.state-panel .button { margin-top: 8px; }
.state-symbol { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border: 1px solid #636d7d; border-radius: 12px; font-size: 22px; }
.state-panel.is-warning .state-symbol { border-color: #97594f; color: var(--danger); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-panel { padding: 0; overflow: hidden; }
.trade-warning { padding: 16px 28px; color: var(--danger); background: #3a2426; border-bottom: 1px solid #74454b; font-weight: 600; }
.result-overview { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px; align-items: center; }
.nft-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 20%, #343844, #13161d 76%); border-radius: 10px; overflow: hidden; isolation: isolate; }
.nft-art.is-equipment { aspect-ratio: 1; }
.nft-art img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.nft-art.is-equipment img { padding: 38px; }
.image-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.image-fallback svg { width: 42px; height: 42px; fill: none; stroke: #7b8496; stroke-width: 1; }
.nft-art.is-unavailable img { display: none; }
.image-fallback.is-covered { visibility: hidden; }
.result-identity { min-width: 0; }
.result-identity h2 { margin: 12px 0 8px; font-size: 28px; overflow-wrap: anywhere; }
.type-badge { display: inline-flex; padding: 4px 10px; background: #2b303a; border: 1px solid #4d5667; border-radius: 6px; font-size: 12px; }
.token-line { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.owner-summary { border-top: 1px solid var(--border); margin: 20px 0; padding-top: 16px; }
.owner-summary dt { font-size: 12px; color: var(--muted); font-weight: 400; }
.owner-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.explorer-link { font-size: 13px; }
.result-details { padding: 24px 28px 28px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-block { min-width: 0; }
.detail-block h3 { margin-bottom: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.detail-block p { overflow-wrap: anywhere; white-space: pre-line; }
.detail-block.full-width { grid-column: 1 / -1; }
.hero-stats, .spec-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; }
.hero-stats li, .spec-list li { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; overflow-wrap: anywhere; max-width: 100%; }
.hero-stats span { color: var(--muted); font-size: 12px; margin-right: 8px; }
.spec-list li > br:first-child { display: none; }
.lock-note { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.site-footer { max-width: 960px; margin: 36px auto 0; padding: 0 0 32px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.site-footer p { display: flex; align-items: center; gap: 12px; letter-spacing: .08em; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.request-id { font-size: 12px; }
.request-id code { color: var(--muted); }
@media (min-width: 768px) {
  .academy-art { display: block; height: clamp(300px, 27vw, 440px); background-image: linear-gradient(180deg, #1a1a1d00 55%, #1a1a1d), url("../images/nft-hub/academy-shop-1440.webp"); background-size: cover; background-position: center 40%; }
  .hub-main.with-art { margin-top: -20px; }
}
@media (min-width: 1441px) {
  .academy-art { background-image: linear-gradient(180deg, #1a1a1d00 55%, #1a1a1d), url("../images/nft-hub/academy-shop-1920.webp"); }
}
@media (max-width: 1023px) {
  .site-footer { width: calc(100% - 64px); }
  .result-overview { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .header-inner { min-height: 84px; padding: 14px 16px; }
  .brand { gap: 12px; }
  .brand img { width: 74px; height: 45px; }
  .brand-label { padding-left: 12px; font-size: 10px; letter-spacing: .12em; }
  .website-link { font-size: 12px; gap: 4px; }
  .hub-main { width: calc(100% - 32px); margin-top: 24px; }
  .hub-panel { padding: 20px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .intro { font-size: 14px; }
  .eyebrow { font-size: 10px; }
  .search-row { flex-direction: column; }
  .search-form { margin-top: 20px; }
  .search-row .button { width: 100%; }
  .state-panel { min-height: 200px; }
  .result-panel { padding: 0; }
  .trade-warning { padding: 16px 20px; }
  .result-overview { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .nft-art { width: min(260px, 100%); justify-self: center; }
  .nft-art.is-equipment { width: min(220px, 100%); }
  .result-identity h2 { font-size: 24px; }
  .result-details { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .detail-block.full-width { grid-column: auto; }
  .site-footer { width: calc(100% - 32px); flex-direction: column; gap: 4px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
