:root {
  color-scheme: dark;
  --black: #050505;
  --environment: #050505;
  --white: #f3f3f0;
  --cream: #ead1b2;
  --muted: rgba(243, 243, 240, .58);
  --line: rgba(243, 243, 240, .24);
  --purple: #9b70df;
  font-family: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--environment);
  color: var(--white);
}

button,
canvas {
  -webkit-tap-highlight-color: transparent;
}

.experience,
#frame-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.experience {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, .055), transparent 46%),
    var(--environment);
}

#frame-viewer {
  z-index: 1;
  display: block;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 520ms ease;
}

.is-ready #frame-viewer {
  opacity: 1;
}

#frame-viewer:active {
  cursor: grabbing;
}

#frame-viewer:focus-visible {
  outline: 1px solid var(--purple);
  outline-offset: -4px;
}

.reset-view:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: -4px;
}

.identity,
.collection-info,
.interaction-hint,
.reset-view {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.identity {
  top: clamp(22px, 4vw, 52px);
  left: clamp(22px, 4vw, 56px);
  text-transform: uppercase;
}

.identity p,
.identity h1,
.collection-info p,
.interaction-hint {
  margin: 0;
}

.identity p,
.collection-info span,
.interaction-hint,
.reset-view,
.loading-state {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}

.identity p {
  margin-bottom: 7px;
  color: var(--muted);
}

.identity h1 {
  font-size: clamp(17px, 2.2vw, 29px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
}

.collection-info {
  bottom: clamp(24px, 4vw, 48px);
  left: clamp(22px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px 28px;
  width: min(360px, calc(100vw - 44px));
}

.collection-info div {
  display: grid;
  gap: 4px;
}

.collection-info span {
  color: var(--muted);
}

.collection-info strong {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
}

.collection-info p {
  grid-column: 1 / -1;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: clamp(12px, 1.25vw, 15px);
  letter-spacing: .045em;
  line-height: 1.45;
}

.interaction-hint {
  right: auto;
  left: 50%;
  bottom: clamp(78px, 8vw, 96px);
  width: min(100%, 560px);
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  transition: opacity 400ms ease;
}

.artwork-scrubber {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #000;
  background: var(--cream);
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.is-ready .artwork-scrubber {
  opacity: 1;
  pointer-events: auto;
}

.artwork-scrubber__range {
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.artwork-scrubber__range::-webkit-slider-runnable-track {
  height: 1px;
  background: #000;
}

.artwork-scrubber__range::-moz-range-track {
  height: 1px;
  background: #000;
}

.artwork-scrubber__range::-webkit-slider-thumb {
  width: 16.5px;
  height: 16.5px;
  margin-top: -7.75px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #000;
}

.artwork-scrubber__range::-moz-range-thumb {
  width: 16.5px;
  height: 16.5px;
  border: 0;
  border-radius: 50%;
  background: #000;
}

.artwork-scrubber__range:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.artwork-scrubber__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 78px;
  color: #000;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  font-variant-numeric: tabular-nums;
}

.artwork-scrubber__divider {
  opacity: .55;
}

.has-interacted .interaction-hint {
  opacity: 0;
}

.interaction-hint__touch {
  display: none;
}

.reset-view {
  top: clamp(22px, 4vw, 52px);
  right: clamp(22px, 4vw, 56px);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
}

.reset-view:hover,
.reset-view:active {
  color: var(--cream);
}

.loading-state {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(280px, calc(100vw - 56px));
  transform: translate(-50%, -50%);
  color: var(--white);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.loading-state__track {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .18);
}

.loading-state__track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--white);
  transition: width 120ms linear;
}

.loading-state p {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
}

.is-ready .loading-state {
  opacity: 0;
  visibility: hidden;
}

.webgl-fallback {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  background: var(--environment);
}

.webgl-fallback[hidden] {
  display: none;
}

.webgl-fallback img {
  max-width: min(920px, 100%);
  max-height: calc(100% - 44px);
  object-fit: contain;
}

.webgl-fallback p {
  margin: 16px 0 0;
  color: var(--muted);
  font: 600 9px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
}

#fighter-video {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;

  width: 4px;
  height: 4px;

  opacity: .01;
  object-fit: cover;

  pointer-events: none;
  user-select: none;
}

@media (max-width: 680px), (hover: none), (pointer: coarse) {
  .identity {
    top: max(20px, env(safe-area-inset-top));
  }

  .identity p,
  .collection-info span,
  .interaction-hint,
  .reset-view,
  .loading-state {
    font-size: 10px;
  }

  .collection-info {
    bottom: max(18px, env(safe-area-inset-bottom));
    gap: 9px 22px;
  }

  .collection-info p {
    font-size: 13px;
  }

  .interaction-hint {
    right: auto;
    left: 50%;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
    width: 100%;
    transform: translateX(-50%);
    text-align: center;
  }

  .artwork-scrubber {
    left: max(18px, calc(env(safe-area-inset-left) + 18px));
    right: max(18px, calc(env(safe-area-inset-right) + 18px));
    min-height: 44px;
    gap: 12px;
  }

  .artwork-scrubber__meta {
    min-width: 64px;
    font-size: 8px;
  }

  .interaction-hint__desktop {
    display: none;
  }

  .interaction-hint__touch {
    display: inline;
  }

  .reset-view {
    top: max(14px, calc(env(safe-area-inset-top) - 6px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #frame-viewer,
  .interaction-hint,
  .loading-state {
    transition-duration: 1ms;
  }

  .artwork-scrubber {
    transition-duration: 1ms;
  }
}

/* GTHEFIGHTER UI ACRYLIC LIGHTING V1 START */

/*
  Only two pieces of interface copy remain visible:
    - interaction instructions
    - RESET VIEW

  Identity / metadata / description text remain in the document only as
  legacy structure and are visually removed.
*/
.identity,
.collection-info {
  display: none !important;
}

/* Keep the instruction permanently visible after interaction. */
.interaction-hint,
.has-interacted .interaction-hint {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Loading remains visual only: progress bar, no loading copy. */
.loading-state p {
  display: none !important;
}

/* Fallback image may remain, but no extra explanatory text is shown. */
.webgl-fallback p {
  display: none !important;
}

/* Pure unlit black environment behind the renderer. */
html,
body,
.experience {
  background: #000 !important;
}

.experience {
  background-image: none !important;
}

/* GTHEFIGHTER UI ACRYLIC LIGHTING V1 END */

/* GTHEFIGHTER FRAME VISIBILITY TEXT FIX V2 START */

.identity,
.collection-info {
  display: none !important;
}

.interaction-hint,
.has-interacted .interaction-hint {
  opacity: 1 !important;
  visibility: visible !important;
}

.interaction-hint {
  color: rgba(243, 243, 240, .72) !important;
}

.loading-state p,
.webgl-fallback p {
  display: none !important;
}

html,
body,
.experience {
  background: #000 !important;
}

.experience {
  background-image: none !important;
}

/* GTHEFIGHTER FRAME VISIBILITY TEXT FIX V2 END */
