/* =====================================================================================================================
   GALLERIES (the redesign, phase 2): the Games / Maps / UI galleries, one game / design / map page, and My creations.
   Loaded by gallery.html, game_gallery.html, ui_gallery.html, game_gallery_item.html, ui_gallery_item.html, share.html
   and creations.html, AFTER their older CSS (uigallery.css, gamegallery.css, uiweb.css, creations.css), and only there:
   everything is scoped to the pages' own body classes (.gx-page, .gx-item, .page-*), because those older files are
   shared with the market and the create pages. Tokens and components come from theme.css; no new colours here.

   Look: the homepage's showcase cards (picture first with a tag, the name, the prompt in quotes, the maker, a small blue
   "View" pill), big condensed headlines, one glossy blue action per screen, soft blue glows for depth.
   Speed: no blurred layer per card (long lists), lazy pictures (the scripts), motion off under reduced motion.
   ===================================================================================================================== */

/* ---------------------------------------------------------------- the Games | Maps | UIs switch (a pill row) */
.gx-page .gallery-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 26px; gap: 4px; padding: 4px; overflow-x: auto;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); scrollbar-width: none; }
.gx-page .gallery-tabs::-webkit-scrollbar { display: none; }
.gx-page .gallery-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 18px; border-radius: var(--r-pill);
  color: var(--ink-2); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; box-shadow: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.25s; }
.gx-page .gallery-tabs a .i { width: 17px; height: 17px; }
.gx-page .gallery-tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.gx-page .gallery-tabs a[aria-current="page"] { color: #fff; background: var(--grad-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px -6px rgba(29, 107, 255, 0.9); }

/* ---------------------------------------------------------------- the list pages' head */
.gx-hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); text-align: center; }
.gx-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -40px; width: min(980px, 120%); height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 123, 255, 0.2), transparent); filter: blur(10px); pointer-events: none; }
.gx-head { max-width: 900px; margin: 0 auto; }
.gx-head .t-eyebrow { margin-bottom: 14px; }
.gx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); flex: none; }
.gx-title { font-size: clamp(2.5rem, 6.2vw, 4.7rem); margin: 0 auto 16px; max-width: 15ch;
  background: linear-gradient(180deg, #ffffff 35%, #b4bccb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-head .t-lead { max-width: 620px; margin: 0 auto; }
/* inside the app shell the column is narrower and the sidebar already says where you are: a calmer head */
.app .gx-hero { padding-top: 8px; }
.app .gx-title { font-size: clamp(2.3rem, 4.4vw, 3.7rem); max-width: 18ch; }
.gx-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.app .gx-cta .btn { border-radius: var(--r-pill); }

/* ---------------------------------------------------------------- WHITEOUT, the featured game (Games gallery) */
.gx-feature-sec { padding: 8px 0 clamp(20px, 3vw, 32px); }
.gx-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid rgba(74, 144, 255, 0.28); isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, rgba(47, 123, 255, 0.22), transparent 60%), linear-gradient(180deg, #121419, #0b0c0f);
  box-shadow: var(--shadow-3), 0 40px 120px -50px rgba(47, 123, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.gx-feature-art { position: relative; min-height: 260px; overflow: hidden; }
.gx-feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out); }
.gx-feature:hover .gx-feature-art img { transform: scale(1.06); }
/* the picture melts into the panel */
.gx-feature-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, #0f1115 100%), linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35)); }
.gx-feature-copy { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 3vw, 40px); text-align: left; }
.gx-feature-copy .t-eyebrow { margin: 0; }
.gx-feature-copy p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.gx-feature-title { display: flex; align-items: center; gap: 14px; }
.gx-feature-title h2 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.gx-feature-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(255, 255, 255, 0.04); }
.gx-feature-copy .cluster { margin-top: 6px; }
.gx-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .gx-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: gx-ping 2.2s var(--ease-out) infinite; }
}
@keyframes gx-ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 820px) {
  .gx-feature { grid-template-columns: 1fr; }
  .gx-feature-art { min-height: 0; aspect-ratio: 1280 / 527; }
  .gx-feature-art::after { background: linear-gradient(180deg, transparent 55%, #101216 100%); }
  .gx-feature-copy { padding-top: 6px; }
}

/* ---------------------------------------------------------------- the toolbar: search, sort, genres */
.gx-list { padding: 8px 0 clamp(40px, 6vw, 72px); }
.gx-page .gx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gx-page .gx-search { flex: 1 1 320px; max-width: 520px; min-width: 0; }
.gx-page .gx-search .i { left: 17px; width: 18px; height: 18px; }
.gx-page .gx-search .input { width: 100%; height: 48px; padding-left: 46px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.04); font-size: 1rem; }
.gx-page .gx-search .input:focus { background: rgba(255, 255, 255, 0.06); }
.gx-page .ug-sort { border-radius: var(--r-pill); padding: 4px; gap: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.gx-page .ug-sort .seg-btn { min-height: 40px; padding: 6px 18px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 0.94rem; }
.gx-page .gx-chips { margin-bottom: 26px; gap: 8px; }
.gx-page .gx-chips .chip { min-height: 38px; padding: 6px 14px; font-size: 0.88rem; font-weight: 500; box-shadow: none; }
.gx-page .gx-chips .chip.on, .gx-page .gx-chips .chip[aria-pressed="true"] { color: #fff; background: var(--grad-blue); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px -6px rgba(29, 107, 255, 0.9); transform: none; }
.gx-page .gg-genres .chip .n { color: var(--ink-3); font-weight: 600; }
.gx-page .gg-genres .chip.on .n { color: rgba(255, 255, 255, 0.8); }
.gx-page .gg-genres .chip.is-empty:not(.on) { opacity: 0.5; }
/* phones: one row of genres that scrolls sideways (never the page) */
@media (max-width: 720px) {
  .gx-page .gx-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .gx-page .gx-chips::-webkit-scrollbar { display: none; }
  .gx-page .gx-chips .chip { flex: none; min-height: 40px; }
  .gx-page .gx-search { flex-basis: 100%; max-width: none; }
  .gx-page .ug-sort { width: 100%; grid-auto-columns: 1fr; }
}

/* ---------------------------------------------------------------- the cards (the homepage's showcase card) */
.gx-page .gx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); gap: 22px; }
.gx-grid .map-card { position: relative; container-type: inline-size; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-2); color: var(--ink); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.gx-grid .map-card:hover { transform: translateY(-6px); border-color: rgba(74, 144, 255, 0.45); color: var(--ink);
  box-shadow: var(--shadow-3), 0 22px 60px -24px rgba(47, 123, 255, 0.7); }
.gx-grid .map-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-lg); }
.gx-grid .map-card .thumb { aspect-ratio: 16 / 10; background: var(--surface-3); }
.gx-grid .map-card .thumb img { object-fit: cover; transform: scale(1.01); transition: transform 1.2s var(--ease-out); }
.gx-grid .map-card:hover .thumb img { transform: scale(1.07); }
.gx-grid .map-card .thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); }
/* the tag on the picture (genre / layout): dark, solid (no blur per card), a blue dot */
.gx-grid .map-card .thumb .ug-genre { z-index: 1; top: 10px; left: 10px; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); text-transform: none;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; line-height: 1.6;
  background: rgba(8, 8, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; }
.gx-grid .map-card .thumb .ug-genre::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.gx-grid .map-card .thumb .ug-count, .gx-grid .map-card .thumb .gg-sys { z-index: 1; right: 10px; bottom: 10px; padding: 2px 10px; font-weight: 600;
  font-size: 0.74rem; background: rgba(8, 8, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); }
.gx-grid .map-card .thumb .status-pill { z-index: 1; }
.gx-grid .map-card .body { padding: 14px 16px 16px; gap: 8px; }
.gx-grid .map-card .ug-title { font-family: var(--font-body); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em; line-height: 1.3; }
/* the prompt that made it, in quotes (the maps' card has only the prompt: it gets the quote look too) */
.gx-grid .map-card .ug-prompt, .page-map-gallery .gx-grid .map-card .prompt { color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; font-weight: 400; }
.page-map-gallery .gx-grid .map-card .prompt { color: var(--ink); font-size: 0.97rem; min-height: 2.9em; }
.gx-grid .map-card .ug-prompt::before, .page-map-gallery .gx-grid .map-card .prompt::before { content: "\201C"; }
.gx-grid .map-card .ug-prompt::after, .page-map-gallery .gx-grid .map-card .prompt::after { content: "\201D"; }
.gx-grid .map-card .meta { gap: 8px; padding-top: 4px; color: var(--ink-3); font-size: 0.82rem; font-weight: 500; }
.gx-grid .map-card .meta .who { color: var(--ink-2); font-weight: 600; }
.gx-grid .map-card .meta .gx-when { color: var(--ink-3); }
.gx-grid .map-card .meta .who + .gx-when::before { content: "·"; margin-right: 8px; }
.gx-go { flex: none; min-height: 28px; padding: 3px 10px 3px 13px; gap: 3px; font-size: 0.8rem; }
.gx-go .i { width: 0.95em; height: 0.95em; transition: transform 0.2s var(--ease); }
.map-card:hover .gx-go { background: var(--grad-blue-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--glow-blue); }
.map-card:hover .gx-go .i { transform: translateX(2px); }
@container (max-width: 290px) { .gx-grid .map-card .meta .gx-when { display: none; } }
/* while the first page loads */
.gx-grid .skel-card { box-shadow: none; }
.gx-grid .skel-card .body { gap: 10px; }
/* nothing to show (no match / none yet / didn't load) */
.gx-page .gx-grid .empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.02); padding: clamp(40px, 6vw, 64px) 20px; }
.gx-page .gx-grid .empty h3 { margin: 0 0 6px; font-size: 1.3rem; }
.gx-page .gx-grid .empty p { margin: 0 0 18px; }

/* ---------------------------------------------------------------- one game / design / map: shared bits */
.gx-item .ug-page { padding-top: clamp(14px, 2.4vw, 24px); }
/* signed out: lined up with the site header's column (the app shell's body may use its full width) */
.gx-item:not(.app-page) .ug-page { max-width: calc(var(--wrap) + 80px); }
.gx-page .ug-top { margin-bottom: 18px; }
.gx-page .ug-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 14px 5px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s; }
.gx-page .ug-back:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.gx-page .ug-back .i { width: 16px; height: 16px; }
.gx-item .ug-layout { gap: clamp(20px, 2.4vw, 32px); grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
@media (max-width: 1000px) { .gx-item .ug-layout { grid-template-columns: minmax(0, 1fr); } }
.gx-item .t-eyebrow { margin-bottom: 10px; }
.gx-item .gx-item-title, .gx-item .ug-main .ui-head h1.gx-item-title { margin: 0 0 8px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 0.98; overflow-wrap: anywhere; }
.gx-item #gg-meta, .gx-item #ui-meta { font-size: 0.92rem; color: var(--ink-2); }
.gx-item .gg-head { margin-bottom: 18px; }

/* the side panel: who made it, the prompt, one blue action */
.gx-item .ug-side, .page-share .share-side { gap: 18px; }
.gx-info { padding: 22px; gap: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 45%), var(--surface); border-color: var(--line-2); }
.gx-info .owner-line { gap: 12px; font-weight: 600; min-height: 40px; }
.gx-info .owner-line .avatar { width: 40px; height: 40px; }
.gx-info .owner-line .who { display: grid; line-height: 1.25; min-width: 0; }
.gx-info .owner-line .who b { font-weight: 700; }
.gx-info .ug-chip, .gx-info #share-tags .chip { min-height: 30px; padding: 3px 12px; font-size: 0.82rem; font-weight: 500; box-shadow: none; }
.gx-info a.ug-chip:hover { color: #fff; border-color: rgba(74, 144, 255, 0.7); }
.gx-quote { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.gx-quote-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.gx-quote .result-prompt { margin: 0; font-size: 1.06rem; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.gx-quote .result-prompt q::before, .gx-quote .result-prompt q::after { color: var(--blue); }
.gx-quote .result-prompt:empty::before { content: ""; display: block; height: 1.2em; width: 70%; border-radius: 6px; background: var(--surface-3); }
.gx-info .btn-lg { min-height: 52px; }
.gx-info .ug-foot { color: var(--ink-3); }
.gx-info .ug-report { font-weight: 600; }
.gx-info .ug-report:hover { color: var(--red); }
/* "Make your own ...": the dark glow panel */
.gx-own { gap: 10px; padding: 22px; border-color: rgba(74, 144, 255, 0.26);
  background: radial-gradient(120% 90% at 100% 0%, rgba(47, 123, 255, 0.22), transparent 60%), linear-gradient(180deg, #121419, #0d0e12);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.gx-own .t-eyebrow { margin: 0; }
.gx-own .side-h { font-size: 1.35rem; letter-spacing: -0.02em; }
.gx-own .btn { margin-top: 6px; white-space: nowrap; }
@media (max-width: 420px) {
  .gx-info, .gx-own { padding: 18px; }
  .gx-own .btn { padding-left: 14px; padding-right: 14px; font-size: 0.95rem; }
}

/* ---------------------------------------------------------------- one game: the pictures and the systems */
.gx-item .gg-stage { border-radius: 22px; border: 1px solid var(--line-2); background: #0b0c10;
  box-shadow: var(--shadow-3), 0 40px 120px -50px rgba(47, 123, 255, 0.55); }
.gx-item .gg-nav { width: 46px; height: 46px; background: rgba(8, 8, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.2s, box-shadow 0.25s, transform 0.2s var(--ease); }
.gx-item .gg-nav:hover { background: var(--grad-blue); border-color: transparent; box-shadow: var(--glow-blue); }
.gx-item .gg-nav:focus-visible, .gx-item .gg-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.gx-item .gg-caption { left: 12px; bottom: 12px; padding: 4px 12px; font-weight: 600; background: rgba(8, 8, 10, 0.68); border: 1px solid rgba(255, 255, 255, 0.16); }
.gx-item .gg-caption .muted { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.gx-item .gg-strip { gap: 10px; padding: 6px 2px 8px; scrollbar-width: thin; }
.gx-item .gg-thumb { width: 124px; border: 1px solid var(--line-2); border-radius: 12px; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s, box-shadow 0.25s; }
.gx-item .gg-thumb:hover { opacity: 0.9; }
.gx-item .gg-thumb[aria-current="true"] { opacity: 1; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 8px 24px -10px rgba(47, 123, 255, 0.9); }
.gx-item .gg-systems { padding: 22px; }
.gx-item .gg-h { font-size: 1.2rem; letter-spacing: -0.02em; }
.gx-item .gg-sys-head .badge-green { box-shadow: none; }
.gx-item .gg-sys-list { gap: 8px; margin-top: 16px; }
.gx-item .gg-sys-list li { padding: 6px 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-weight: 600; font-size: 0.88rem; color: var(--ink);
  transition: border-color 0.2s, background 0.2s; }
.gx-item .gg-sys-list li:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); }
.gx-item .gg-sys-list li.lead { border-color: rgba(74, 144, 255, 0.7); background: rgba(47, 123, 255, 0.14); box-shadow: 0 6px 20px -10px rgba(47, 123, 255, 0.9); }
.gx-item .gg-sys-list .badge { font-size: 0.64rem; box-shadow: none; }
@media (max-width: 560px) { .gx-item .gg-thumb { width: 98px; } .gx-item .gg-nav { width: 40px; height: 40px; } }

/* ---------------------------------------------------------------- one UI design: the viewer (uiweb.css) dressed up */
.page-ui-gallery-item .ui-head { align-items: flex-end; margin-bottom: 4px; }
.page-ui-gallery-item .ui-head-tools .seg { border-radius: var(--r-pill); padding: 4px; gap: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.page-ui-gallery-item .ui-head-tools .seg-btn { flex-direction: row; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 0.9rem; }
.page-ui-gallery-item .ui-head-tools .seg-btn .i { width: 16px; height: 16px; }
.page-ui-gallery-item .ui-shot { --shot-r: 22px; border: 1px solid var(--line-2); box-shadow: var(--shadow-3), 0 40px 120px -50px rgba(47, 123, 255, 0.55); }
.page-ui-gallery-item .ui-shot-cap b { font-family: var(--font-body); font-weight: 700; }

/* ---------------------------------------------------------------- one map (/m/<id>): the result card (result.js) */
.gx-share-top { padding-top: clamp(14px, 2.4vw, 24px); }
.page-share .share-hero { padding-top: 18px; padding-bottom: clamp(32px, 5vw, 56px); gap: clamp(20px, 2.4vw, 32px); grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
@media (max-width: 900px) { .page-share .share-hero { grid-template-columns: minmax(0, 1fr); } }
.page-share #share-main > .card { border-radius: 22px; border-color: var(--line-2); box-shadow: var(--shadow-3), 0 40px 120px -50px rgba(47, 123, 255, 0.55); }
.page-share .share-head { gap: 0; }
.page-share .share-head .t-eyebrow { margin-bottom: 10px; }
.page-share .share-title.t-display { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 0.98; }
.page-share .ug-back .i { transform: rotate(180deg); }     /* (uigallery.css turns it on the other pages) */
.page-share #share-tags .tag { padding: 3px 11px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-share .stat { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); padding: 10px 14px; }
.page-share .stat b { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em; }
.page-share .stat span { font-weight: 600; letter-spacing: 0.1em; font-size: 0.7rem; }
.page-share .visual-name { font-family: var(--font-body); font-weight: 700; font-size: 1rem; background: rgba(8, 8, 10, 0.62); border: 1px solid rgba(255, 255, 255, 0.16); }
.page-share .top-thumb { border-radius: 16px; border: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- My creations (in the app shell) */
.page-creations .cr-page { padding: 4px 0 24px; }
.page-creations .cr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-creations .cr-head-text { min-width: 0; }
.page-creations .cr-title { text-align: left; margin: 0 0 6px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.035em; }
.page-creations .cr-tabs { width: max-content; max-width: 100%; margin: 0 0 24px; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); scrollbar-width: none; }
.page-creations .cr-tabs::-webkit-scrollbar { display: none; }
.page-creations .cr-tab { min-height: 40px; padding: 6px 16px; border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 600; font-size: 0.94rem;
  box-shadow: none; transition: color 0.2s, background 0.2s, box-shadow 0.25s; }
.page-creations .cr-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.page-creations .cr-tab[aria-selected="true"] { color: #fff; background: var(--grad-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px -6px rgba(29, 107, 255, 0.9); }
.page-creations .cr-count { background: rgba(255, 255, 255, 0.08); color: var(--ink); font-weight: 600; }
.page-creations .cr-tab[aria-selected="true"] .cr-count { background: rgba(255, 255, 255, 0.24); color: #fff; }
.page-creations .cr-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 20px; }
.page-creations .cr-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.page-creations .cr-card:hover { transform: translateY(-4px); border-color: rgba(74, 144, 255, 0.4); box-shadow: var(--shadow-3), 0 20px 50px -24px rgba(47, 123, 255, 0.6); }
.page-creations .cr-card .thumb { aspect-ratio: 16 / 10; }
.page-creations .cr-card .thumb .badge { z-index: 1; box-shadow: none; }
.page-creations .cr-card .thumb .badge { background: rgba(8, 8, 10, 0.78); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }
.page-creations .cr-card .thumb .badge-green { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.5); }
.page-creations .cr-card .thumb .badge-pink { color: #ff9b9b; border-color: rgba(255, 107, 107, 0.55); }
.page-creations .cr-card .thumb .badge-blue { color: #a9c8ff; border-color: rgba(74, 144, 255, 0.55); }
.page-creations .cr-card .body { padding: 14px 16px 16px; gap: 8px; }
.page-creations .cr-card .prompt { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.page-creations .cr-card .prompt a:hover { color: #fff; text-decoration: none; }
.page-creations .cr-card .meta { font-weight: 500; }
.page-creations .cr-card .cr-type { box-shadow: none; }
.page-creations .cr-actions { gap: 8px; padding-top: 6px; }
.page-creations .cr-actions .btn { min-height: 38px; }
.page-creations .cr-empty { display: grid; justify-items: center; gap: 4px; padding: clamp(40px, 7vw, 72px) 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02); }
.page-creations .cr-empty[hidden] { display: none; }
.page-creations .cr-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; color: #fff; background: var(--grad-blue);
  box-shadow: 0 0 0 8px rgba(47, 123, 255, 0.12), 0 0 0 18px rgba(47, 123, 255, 0.05), 0 16px 50px -10px rgba(47, 123, 255, 0.9); }
.page-creations .cr-empty-icon .i { width: 28px; height: 28px; stroke-width: 2.2; }
.page-creations .cr-empty p { margin: 0 0 14px; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 760px) {
  .page-creations .cr-tabs { width: 100%; }
  .page-creations .cr-tab { flex: 1 1 0; justify-content: center; padding: 6px 10px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gx-grid .map-card, .gx-grid .map-card:hover, .page-creations .cr-card:hover { transform: none; transition: none; }
  .gx-grid .map-card .thumb img, .gx-grid .map-card:hover .thumb img, .gx-feature-art img, .gx-feature:hover .gx-feature-art img { transform: none; transition: none; }
  .gx-go .i, .map-card:hover .gx-go .i { transform: none; }
}
