/* 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; }
}


/* 20260924 FANZANIAN_LOADING_UX_R2: shared visual language */
.exploration-status { position:relative; min-height:176px; margin:2px 0 14px; padding:24px 16px 22px; overflow:hidden; border:1px solid rgba(255,255,255,.075); border-radius:18px; background:radial-gradient(circle at 50% 0%,rgba(214,86,255,.075),transparent 42%),rgba(255,255,255,.018); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); gap:10px; }
.exploration-loading-visual { position:relative; display:grid; place-items:center; width:46px; height:46px; margin-bottom:2px; }
.exploration-spinner { position:absolute; inset:0; width:auto; height:auto; border:1px solid rgba(255,255,255,.1); border-top-color:#ff3f9f; border-right-color:rgba(213,73,255,.72); animation:exploration-r3-spin 1.15s linear infinite; }
.exploration-loading-core { display:grid; place-items:center; width:34px; height:34px; border:1px solid rgba(255,255,255,.1); border-radius:50%; background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.12),rgba(255,255,255,.025) 62%); color:#fff; font-size:15px; font-weight:950; box-shadow:0 8px 24px rgba(0,0,0,.3); animation:exploration-loading-breathe 2.4s ease-in-out infinite; }
.exploration-loading-copy { justify-items:center; min-height:58px; gap:0; }
.exploration-loading-kicker { margin-bottom:5px; color:rgba(255,255,255,.38); font-size:9px; font-weight:850; letter-spacing:.22em; }
.exploration-loading-copy strong { color:#fff; font-size:14px; font-weight:820; }
.exploration-loading-copy small { margin-top:4px; color:rgba(255,255,255,.5); font-size:10px; }
.exploration-progress { height:3px; margin-top:3px; background:rgba(255,255,255,.09); }
.exploration-progress-fill { background:linear-gradient(90deg,rgba(213,73,255,.88),#ff3f9f 58%,#fff 100%); box-shadow:0 0 16px rgba(255,63,159,.24); }
.exploration-progress-fill::after { content:""; position:absolute; top:-4px; right:-15px; width:32px; height:11px; background:radial-gradient(circle,rgba(255,255,255,.76),transparent 66%); animation:exploration-loading-glow 1.7s ease-in-out infinite; }
.exploration-progress-fill { position:relative; }
@keyframes exploration-loading-breathe { 0%,100%{transform:scale(.98);opacity:.88} 50%{transform:scale(1.025);opacity:1} }
@keyframes exploration-loading-glow { 0%,100%{opacity:.45;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }
@media (prefers-reduced-motion: reduce) { .exploration-loading-core,.exploration-progress-fill::after{animation:none} }
