/* style-gallery.css , Community Gallery (A1493). Uses the shared tokens from
   style-shared.css with warm fallbacks so it still looks right on its own. */

.gl-app { max-width: 1200px; margin: 0 auto; padding: 18px 16px 64px; }
.gl-hero {
  background: var(--card, #fff);
  border: 1.5px solid var(--border, rgba(64,59,51,.14));
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 6px 26px rgba(0,0,0,.06);
}
.gl-hero-copy { flex: 1 1 320px; min-width: 0; }
.gl-eyebrow {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-dk, #4e7d80);
  background: var(--teal-lt, #e8f2f3); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
.gl-hero h1 { font-family: Fredoka, Inter, sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.12; margin: 0 0 8px; color: var(--charcoal, #1a1208); }
.gl-hero h1 em { font-style: normal; color: var(--teal-dk, #4e7d80); }
.gl-hero p { margin: 0 0 16px; color: var(--charcoal-lt, #3d3224); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.gl-hero-art { flex: 0 0 auto; text-align: center; }
.gl-hero-art img { width: 120px; height: 120px; border-radius: 50%; background: var(--beige, #F0EAD6); }
.gl-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.gl-btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; border-radius: 10px; padding: 11px 18px; border: 1.5px solid transparent;
}
.gl-btn.primary { background: var(--teal-dk, #4e7d80); color: #fff; }
.gl-btn.primary:hover { background: var(--teal, #70A3A7); }
.gl-btn.ghost { background: transparent; color: var(--charcoal, #1a1208); border-color: var(--border, rgba(64,59,51,.2)); }
.gl-btn.ghost:hover { border-color: var(--teal, #70A3A7); color: var(--teal-dk, #4e7d80); }

.gl-note {
  margin: 16px 0 4px; padding: 11px 15px; border-radius: 12px; font-size: .86rem; line-height: 1.55;
  background: var(--gold-lt, #faf1e0); border: 1px solid var(--gold, #c98a2e); color: var(--charcoal, #1a1208);
}
.gl-note b { font-weight: 800; }

.gl-h2 { font-family: Fredoka, Inter, sans-serif; font-size: 1.3rem; margin: 26px 0 4px; color: var(--beige, #F0EAD6); }
.gl-sub { margin: 0 0 14px; color: var(--charcoal-lt, #3d3224); font-size: .9rem; }

.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.gl-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card, #fff); border: 1.5px solid var(--border, rgba(64,59,51,.14));
  border-radius: 16px; box-shadow: 0 3px 14px rgba(0,0,0,.06);
}
.gl-art { position: relative; aspect-ratio: 16 / 9; background: #10131f; overflow: hidden; }
.gl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-art .gl-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.gl-q {
  position: absolute; top: 8px; right: 8px; font-size: .58rem; font-weight: 800; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.gl-q.ready { color: #4ade80; border-color: #4ade80; }
.gl-q.beta { color: #fbbf24; border-color: #fbbf24; }
.gl-q.experiment { color: #cbd5e1; border-color: #cbd5e1; }
.gl-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gl-title { font-family: Fredoka, Inter, sans-serif; font-size: 1.05rem; margin: 0; color: var(--charcoal, #1a1208); }
.gl-meta { font-size: .74rem; color: var(--charcoal-lt, #3d3224); opacity: .85; margin: 0; }
.gl-desc { font-size: .84rem; line-height: 1.5; color: var(--charcoal-lt, #3d3224); margin: 0; flex: 1; }
.gl-challenge { font-size: .74rem; font-weight: 700; color: var(--gold, #c98a2e); }
.gl-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.gl-play {
  flex: 1; cursor: pointer; font: inherit; font-weight: 800; border: none; border-radius: 9px;
  padding: 10px 14px; background: var(--teal-dk, #4e7d80); color: #fff;
}
.gl-play:hover { background: var(--teal, #70A3A7); }
.gl-make {
  flex: 0 0 auto; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--teal-dk, #4e7d80);
  border: 1.5px solid var(--border, rgba(64,59,51,.2)); border-radius: 9px; padding: 9px 12px;
}
.gl-make:hover { border-color: var(--teal, #70A3A7); }
.gl-empty, .gl-loading { grid-column: 1 / -1; padding: 26px; text-align: center; color: var(--charcoal-lt, #3d3224); font-size: .9rem; }

/* Full-screen play stage (mirrors the Arcade cover flow) */
.gl-stage {
  position: fixed; inset: 0; z-index: 9000; display: none;
  background: #05030f; padding: 0;
}
.gl-stage.show { display: block; }
.gl-frame { width: 100%; height: 100%; border: 0; display: block; }
.gl-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; font-weight: 700; }
.gl-exit {
  position: fixed; top: 12px; right: 12px; z-index: 9001; display: none; cursor: pointer; font: inherit;
  font-weight: 800; border: none; border-radius: 10px; padding: 10px 14px; background: var(--rose, #BC4749); color: #fff;
}
body.gl-playing { overflow: hidden; }
body.gl-playing .gl-exit { display: block; }
body.gl-playing .gl-stage { display: block; }

/* Publish form (A1502) */
.pub-form { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.pub-field { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--charcoal, #1a1208); }
.pub-field input[type="text"], .pub-field input[type="email"], .pub-field textarea, .pub-field input[type="file"] {
  font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--border, rgba(64,59,51,.2)); background: var(--card, #fff); color: var(--charcoal, #1a1208);
}
.pub-field textarea { resize: vertical; }
.pub-consent { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--charcoal-lt, #3d3224); }
.pub-consent input { margin-top: 3px; }

@media (max-width: 480px) {
  .gl-hero { padding: 20px 16px; }
  .gl-hero-art { display: none; }
  .gl-grid { grid-template-columns: 1fr; }
}
