/* D:\projects\fanzanian\app\static\exploration\app.css */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --surface: #111116;
  --text: #fff;
  --muted: rgba(255, 255, 255, .54);
  --line: rgba(255, 255, 255, .12);
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 3px; }

.exploration-header {
  position: sticky;
  z-index: 20;
  top: 0;
}

.header-mode {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 700;
}

/* public-shell-content owns the canonical header/content spacing and gutters. */
.exploration-main { padding-bottom: 40px; }

.exploration-helper {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.exploration-status,
.exploration-message {
  min-height: 120px;
  padding: 34px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.exploration-status[hidden],
.exploration-message[hidden] { display: none; }

.exploration-message p { margin: 0; }

.exploration-message button,
.exploration-load-more-wrap button {
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.exploration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.exploration-grid[hidden] { display: none; }
.exploration-grid > .fz-work-card { width: 100%; }

.exploration-load-more-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 10px 0 4px;
}

.exploration-load-more-wrap button[hidden] { display: none; }

@media (min-width: 620px) {
  .exploration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .exploration-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .exploration-helper {
    margin-bottom: 12px;
    font-size: 12px;
  }
}

@media (max-width: 299px) {
  .exploration-grid { grid-template-columns: minmax(0, 1fr); }
}

/* R3_EXPLORATION_LOADING_VISUAL: bounded_compute_spinner_v1 */
.exploration-status {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}
.exploration-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255,255,255,.16);
  border-top-color: rgba(255,255,255,.92);
  border-radius: 50%;
  animation: exploration-r3-spin 760ms linear infinite;
}
@keyframes exploration-r3-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .exploration-spinner {
    animation: none;
    border-top-color: rgba(255,255,255,.55);
  }
}


/* R4_EXPLORATION_LOADING_PROGRESS: pseudo-progress-with-real-stage-signals_v1 */
.exploration-loading-copy {
  display: grid;
  gap: 4px;
  max-width: min(360px, 88vw);
}
.exploration-loading-copy strong {
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.exploration-loading-copy small {
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}
.exploration-progress {
  display: block;
  width: min(300px, 76vw);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}
.exploration-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, .82);
  transform: scaleX(.08);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .exploration-progress-fill { transition: none; }
}
