/* drawcue.com — shared styles. Design tokens + base reset (from the approved mockup's foundation). */
:root {
  color-scheme: dark;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 100px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-quick: 160ms;
  --tap: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
small { font-size: max(12px, 0.85em); }
:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; border-radius: 6px; }

/* ---- approved mockup v1 ---- */

      :root {
        --x-bg: #07080f;
        --x-bg-2: #0d0f1c;
        --x-ink: #eef0ff;
        --x-ink-2: #a3a8c3;
        --x-ink-3: #8f95b5;
        --x-violet: #8b5cf6;
        --x-cyan: #22d3ee;
        --x-grad: linear-gradient(120deg, #8b5cf6, #22d3ee);
        --x-glass: rgba(20, 22, 40, 0.55);
        --x-glass-2: #141626;
        --x-line: rgba(255, 255, 255, 0.09);
        --x-line-2: rgba(255, 255, 255, 0.16);
        --x-glow: 0 0 0 1px rgba(139, 92, 246, 0.55), 0 12px 40px -8px rgba(139, 92, 246, 0.55), 0 0 60px -20px rgba(34, 211, 238, 0.6);
        --x-font: "Inter", var(--sans), system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
        --x-max: 1200px;
        --x-pad: clamp(18px, 4vw, 40px);
      }
      html { background: var(--x-bg); scroll-padding-top: 76px; }
      body.x-body {
        background:
          radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
          radial-gradient(700px 500px at -10% 40%, rgba(34, 211, 238, 0.08), transparent 60%),
          var(--x-bg);
        color: var(--x-ink);
        font-family: var(--x-font);
        font-size: 15px;
        line-height: 1.55;
      }
      .x-wrap { max-width: var(--x-max); margin: 0 auto; padding-inline: var(--x-pad); }
      .x-grad-text { color: #67e8f9; text-shadow: 0 0 28px rgba(139, 92, 246, 0.75); }

      /* nav */
      .x-nav {
        position: sticky; top: 0; z-index: 50;
        background: rgba(7, 8, 15, 0.62);
        -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
        border-bottom: 1px solid var(--x-line);
      }
      .x-nav__in { display: flex; align-items: center; gap: 16px; height: 64px; }
      .x-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; color: var(--x-ink); min-height: var(--tap); }
      .x-logo svg { filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.8)); }
      .x-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
      .x-links::-webkit-scrollbar { display: none; }
      .x-links a { color: var(--x-ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 12px; min-height: 46px; min-width: 52px; box-sizing: border-box; justify-content: center; display: inline-flex; align-items: center; border-radius: var(--r-pill); white-space: nowrap; transition: color var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out); }
      .x-links a:hover { color: var(--x-ink); background: var(--x-glass-2); }
      .x-lang { display: inline-flex; border: 1px solid var(--x-line-2); border-radius: var(--r-pill); padding: 3px; background: var(--x-glass-2); flex: none; }
      .x-lang button { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; padding: 0 12px; min-height: var(--tap); min-width: 48px; box-sizing: border-box; justify-content: center; display: inline-flex; align-items: center; border-radius: var(--r-pill); color: var(--x-ink-2); background: #141626; }
      .x-lang button[aria-pressed="true"] { background: #6d28d9; color: #fff; box-shadow: 0 0 18px -4px rgba(139, 92, 246, 0.9); }
      .x-lang button:focus-visible { outline: 2px solid var(--x-cyan); }
      @media (max-width: 760px) {
        .x-nav__in { flex-wrap: wrap; height: auto; padding-block: 6px 0; gap: 0 12px; }
        .x-lang { margin-left: auto; }
        .x-links { order: 3; width: 100%; margin: 0 calc(var(--x-pad) * -1); padding: 0 calc(var(--x-pad) - 12px) 4px; }
        .x-links a { font-size: 13px; }
        html { scroll-padding-top: 110px; }
      }

      /* hero */
      .x-hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
      .x-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
      .x-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
        background:
          linear-gradient(to top, var(--x-bg) 2%, rgba(7, 8, 15, 0.82) 30%, rgba(7, 8, 15, 0.15) 70%, rgba(7, 8, 15, 0.35)),
          linear-gradient(to right, rgba(7, 8, 15, 0.9), rgba(7, 8, 15, 0.2) 65%, transparent); }
      .x-hero__copy { padding-block: 120px clamp(48px, 8vw, 96px); max-width: 760px; }
      .x-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--x-cyan); margin-bottom: 18px; }
      .x-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--x-grad); border-radius: 2px; }
      .x-hero h1 { font-size: clamp(36px, 7.4vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
      .x-hero h1:lang(zh) { letter-spacing: -0.01em; line-height: 1.15; }
      .x-hero__sub { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); color: var(--x-ink-2); max-width: 560px; }
      .x-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

      /* buttons */
      .x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--x-line-2); color: var(--x-ink); background: var(--x-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out); }
      .x-btn:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.7); box-shadow: 0 8px 30px -10px rgba(139, 92, 246, 0.8); }
      .x-btn--primary { background: var(--x-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 34px -10px rgba(139, 92, 246, 0.9); }
      .x-btn--primary:hover { box-shadow: 0 14px 40px -8px rgba(34, 211, 238, 0.7); }
      .x-btn--sm { min-height: var(--tap); min-width: 64px; padding: 0 16px; font-size: 13px; }
      .x-btn:focus-visible { outline: 2px solid var(--x-cyan); outline-offset: 3px; }

      /* sections */
      .x-section { padding-block: clamp(64px, 10vw, 120px) 0; }
      .x-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
      .x-head h2 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
      .x-head p.x-sub { margin-top: 12px; color: var(--x-ink-2); font-size: 16px; }
      .x-panel { background: var(--x-glass); border: 1px solid var(--x-line); border-radius: var(--r-l); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: clamp(18px, 3vw, 32px); }

      /* style cards */
      .x-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
      @media (max-width: 760px) { .x-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
      .x-style { all: unset; cursor: pointer; position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--x-line); transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out); }
      .x-style img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
      .x-style::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 8, 15, 0.92), transparent 55%); }
      .x-style__name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-weight: 600; font-size: 15px; line-height: 1.25; }
      .x-style__name small { display: block; color: var(--x-ink-2); font-weight: 400; font-size: 12px; margin-top: 2px; }
      .x-style:hover { transform: translateY(-4px); box-shadow: var(--x-glow); }
      .x-style:hover img { transform: scale(1.05); }
      .x-style[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--x-violet), 0 0 40px -6px rgba(139, 92, 246, 0.9); }
      .x-style[aria-pressed="true"]::before { content: "✓"; position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--x-grad); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
      .x-style:focus-visible { outline: 2px solid var(--x-cyan); outline-offset: 3px; }

      .x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
      .x-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; min-width: 52px; box-sizing: border-box; justify-content: center; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--x-line-2); background: var(--x-glass-2); font-size: 14px; font-weight: 500; color: var(--x-ink); transition: all var(--dur-quick) var(--ease-out); }
      .x-chip small { color: var(--x-ink-3); font-size: 12px; }
      .x-chip:hover { border-color: rgba(139, 92, 246, 0.7); transform: translateY(-1px); }
      .x-chip[aria-pressed="true"] { background: #2a1d57; border-color: var(--x-violet); box-shadow: 0 0 22px -6px rgba(139, 92, 246, 0.9); }
      .x-chip[aria-pressed="true"] small { color: var(--x-ink-2); }
      .x-chip:focus-visible { outline: 2px solid var(--x-cyan); outline-offset: 2px; }

      .x-options { display: grid; gap: 20px; margin-top: 28px; }
      .x-opt__label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--x-ink-3); margin-bottom: 8px; }
      .x-opt .x-chips { margin-top: 0; }
      .x-gen { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
      .x-gen__sel { color: var(--x-ink-2); font-size: 14px; }

      .x-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
      @media (max-width: 760px) { .x-out { grid-template-columns: minmax(0, 1fr); } }
      .x-box { background: rgba(7, 8, 15, 0.6); border: 1px solid var(--x-line); border-radius: var(--r-m); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
      .x-box__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      .x-box__title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--x-cyan); }
      .x-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.65; color: var(--x-ink); }
      .x-box pre .x-neg { color: var(--x-ink-3); }
      .x-box.is-new { animation: x-pop 500ms var(--ease-out); }
      @keyframes x-pop { from { box-shadow: 0 0 0 1px var(--x-violet), 0 0 40px -6px rgba(139, 92, 246, 0.9); } to { box-shadow: none; } }
      .x-copy.is-copied { border-color: var(--x-cyan); color: var(--x-cyan); }
      .x-out-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

      /* trend cards */
      .x-trends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
      @media (max-width: 900px) { .x-trends { grid-template-columns: minmax(0, 1fr); } }
      .x-trend { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--x-line); aspect-ratio: 3 / 4.3; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out); }
      @media (max-width: 900px) { .x-trend { aspect-ratio: 3 / 4; } }
      .x-trend > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 700ms var(--ease-out); }
      .x-trend::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 8, 15, 0.97) 8%, rgba(7, 8, 15, 0.6) 42%, transparent 70%); }
      .x-trend:hover { transform: translateY(-6px); box-shadow: var(--x-glow); }
      .x-trend:hover > img { transform: scale(1.04); }
      .x-badge { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(7, 8, 15, 0.55); border: 1px solid rgba(34, 211, 238, 0.45); color: var(--x-ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
      .x-trend__body { padding: 20px; display: grid; gap: 12px; }
      .x-trend h3 { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
      .x-snip { background: rgba(20, 22, 40, 0.6); border: 1px solid var(--x-line-2); border-radius: var(--r-s); padding: 12px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
      .x-snip p { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.6; color: var(--x-ink-2); }
      .x-trend__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      .x-more { color: var(--x-cyan); font-weight: 600; font-size: 14px; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
      .x-more:hover { text-decoration: underline; }

      /* kling */
      .x-banner { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--x-line); aspect-ratio: 16 / 7; isolation: isolate; display: flex; align-items: flex-end; }
      @media (max-width: 760px) { .x-banner { aspect-ratio: 4 / 3.4; border-radius: var(--r-l); } }
      .x-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
      .x-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 8, 15, 0.92), transparent 60%); }
      .x-banner__note { margin: clamp(16px, 3vw, 28px); display: inline-flex; flex-wrap: wrap; gap: 8px; }
      .x-tag { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(7, 8, 15, 0.55); border: 1px solid var(--x-line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
      .x-tag--hot { border-color: rgba(139, 92, 246, 0.7); box-shadow: 0 0 20px -6px rgba(139, 92, 246, 0.9); }

      .x-shot-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
      .x-shot-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
      .x-shot-head p { color: var(--x-ink-2); font-size: 14px; margin-top: 4px; }
      .x-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
      .x-tl li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 0 0 26px; }
      .x-tl li:last-child { padding-bottom: 0; }
      .x-tl li::before { content: ""; position: absolute; left: 103px; top: 8px; bottom: -8px; width: 2px; background: linear-gradient(var(--x-violet), var(--x-cyan)); opacity: 0.35; }
      .x-tl li:last-child::before { display: none; }
      .x-tl li::after { content: ""; position: absolute; left: 98px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--x-grad); box-shadow: 0 0 14px rgba(139, 92, 246, 0.9); }
      .x-tl__t { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; color: var(--x-cyan); padding-top: 0; }
      .x-tl__t small { display: block; color: var(--x-ink-3); font-size: 12px; }
      .x-tl__c { padding-left: 18px; }
      .x-tl__c h4 { margin: 0; font-size: 16px; font-weight: 600; }
      .x-tl__c p { color: var(--x-ink-2); font-size: 14px; margin-top: 4px; }
      .x-cams { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
      .x-cams span { font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: #0b2530; border: 1px solid rgba(34, 211, 238, 0.28); color: var(--x-ink); }
      @media (max-width: 560px) {
        .x-tl li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 26px; }
        .x-tl li::before { left: 5px; }
        .x-tl li::after { left: 0; }
        .x-tl__c { padding-left: 0; }
        .x-tl__t small { display: inline; margin-left: 8px; }
      }

      /* ticker */
      .x-ticker { margin-top: clamp(64px, 10vw, 120px); border-block: 1px solid var(--x-line); background: #100f22; overflow: hidden; display: flex; align-items: center; }
      .x-ticker__label { flex: none; padding: 18px var(--x-pad); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--x-bg); border-right: 1px solid var(--x-line); position: relative; z-index: 1; }
      .x-ticker__track { display: flex; width: max-content; animation: x-marquee 36s linear infinite; }
      .x-ticker:hover .x-ticker__track { animation-play-state: paused; }
      .x-ticker__track ul { display: flex; list-style: none; margin: 0; padding: 0; }
      .x-ticker__track li { padding: 18px 22px; font-size: 16px; font-weight: 500; white-space: nowrap; color: var(--x-ink); display: flex; align-items: center; gap: 22px; }
      .x-ticker__track li::after { content: "✦"; color: var(--x-violet); font-size: 12px; }
      @keyframes x-marquee { to { transform: translateX(-50%); } }
      @media (prefers-reduced-motion: reduce) { .x-ticker { overflow-x: auto; } .x-ticker__track { animation: none; } }

      /* footer */
      .x-foot { padding-block: 48px calc(72px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--x-ink-2); font-size: 14px; }
      .x-foot nav { display: flex; flex-wrap: wrap; gap: 4px; }
      .x-foot nav a { color: var(--x-ink-2); text-decoration: none; min-height: 46px; min-width: 52px; box-sizing: border-box; justify-content: center; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); }
      .x-foot nav a:hover { color: var(--x-ink); background: var(--x-glass-2); }
      .x-foot__fine { width: 100%; font-size: 13px; color: var(--x-ink-3); }

      .x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    

/* ---------- language switch as links ---------- */
.x-lang a { text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 0 12px; min-height: var(--tap); min-width: 48px; box-sizing: border-box; justify-content: center; display: inline-flex; align-items: center; border-radius: var(--r-pill); color: var(--x-ink-2); background: #141626; }
.x-lang a[aria-current="true"] { background: #6d28d9; color: #fff; box-shadow: 0 0 18px -4px rgba(139, 92, 246, 0.9); }
.x-lang a:hover { color: var(--x-ink); }
.x-links a[aria-current="page"] { color: var(--x-ink); background: var(--x-glass-2); }

/* ---------- inner page hero ---------- */
.x-phero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--x-line); }
.x-phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.x-phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--x-bg) 4%, rgba(7, 8, 15, 0.78) 45%, rgba(7, 8, 15, 0.45)), linear-gradient(to right, rgba(7, 8, 15, 0.92), rgba(7, 8, 15, 0.25) 75%); }
.x-phero__copy { padding-block: clamp(48px, 9vw, 104px) clamp(36px, 6vw, 64px); max-width: 780px; }
.x-phero h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.x-phero h1:lang(zh) { letter-spacing: -0.01em; line-height: 1.18; }
.x-phero .x-hero__sub { max-width: 620px; }
.x-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--x-ink-3); margin-bottom: 18px; }
.x-crumbs a { color: var(--x-ink-2); text-decoration: none; }
.x-crumbs a:hover { color: var(--x-cyan); }
.x-crumbs span[aria-hidden] { opacity: 0.6; }
.x-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- prose ---------- */
.x-prose { max-width: 760px; color: var(--x-ink-2); font-size: 16px; line-height: 1.75; }
.x-prose p + p, .x-prose p + ul, .x-prose ul + p, .x-prose h3 + p, .x-prose p + h3, .x-prose ul + h3 { margin-top: 14px; }
.x-prose h3 { color: var(--x-ink); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-top: 28px; }
.x-prose strong { color: var(--x-ink); }
.x-prose ul { padding-left: 1.2em; margin: 0; }
.x-prose li + li { margin-top: 6px; }
.x-prose a { color: var(--x-cyan); text-underline-offset: 3px; }
.x-note { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(11, 37, 48, 0.55); color: var(--x-ink); font-size: 14px; line-height: 1.6; max-width: 760px; }
.x-note b { color: var(--x-cyan); }

/* ---------- steps ---------- */
.x-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; counter-reset: st; }
.x-steps li { counter-increment: st; position: relative; padding: 20px 18px 18px; border-radius: var(--r-m); border: 1px solid var(--x-line); background: var(--x-glass); }
.x-steps li::before { content: counter(st, decimal-leading-zero); font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--x-cyan); display: block; margin-bottom: 10px; }
.x-steps h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.x-steps p { color: var(--x-ink-2); font-size: 14px; margin-top: 6px; line-height: 1.6; }

/* ---------- prompt cards ---------- */
.x-plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .x-plist { grid-template-columns: minmax(0, 1fr); } }
.x-pcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-m); border: 1px solid var(--x-line); background: rgba(13, 15, 28, 0.72); transition: box-shadow var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out); min-width: 0; }
.x-pcard:hover { box-shadow: var(--x-glow); transform: translateY(-2px); }
.x-pcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.x-pcard__n { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--x-cyan); }
.x-pcard h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-top: 2px; }
.x-pcard pre, .x-tpl pre { margin: 0; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.65; color: var(--x-ink); background: rgba(7, 8, 15, 0.6); border: 1px solid var(--x-line); border-radius: var(--r-s); padding: 12px; }
.x-pcard details, .x-tpl details { border-top: 1px dashed var(--x-line-2); padding-top: 10px; }
.x-pcard summary, .x-tpl summary { cursor: pointer; color: var(--x-ink-2); font-size: 13px; font-weight: 600; min-height: 36px; display: flex; align-items: center; gap: 8px; list-style: none; }
.x-pcard summary::-webkit-details-marker, .x-tpl summary::-webkit-details-marker { display: none; }
.x-pcard summary::before, .x-tpl summary::before { content: "+"; color: var(--x-violet); font-weight: 700; width: 12px; }
.x-pcard details[open] summary::before, .x-tpl details[open] summary::before { content: "–"; }
.x-alt { display: grid; gap: 10px; margin-top: 8px; }
.x-alt .x-btn { justify-self: start; }
.x-tagline { display: flex; flex-wrap: wrap; gap: 6px; }
.x-tagline span { font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: #1a1436; border: 1px solid rgba(139, 92, 246, 0.35); color: var(--x-ink-2); }

/* ---------- tools ---------- */
.x-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.x-tool { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-m); border: 1px solid var(--x-line); background: var(--x-glass); text-decoration: none; transition: box-shadow var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out); }
.x-tool:hover { box-shadow: var(--x-glow); transform: translateY(-3px); }
.x-tool h3 { font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.x-tool h3 span { color: var(--x-cyan); font-size: 14px; }
.x-tool p { color: var(--x-ink-2); font-size: 14px; line-height: 1.6; }
.x-tool small { color: var(--x-ink-3); font-size: 12px; margin-top: auto; }

/* ---------- faq ---------- */
.x-faq { display: grid; gap: 10px; max-width: 860px; }
.x-faq details { border: 1px solid var(--x-line); border-radius: var(--r-m); background: var(--x-glass); padding: 0 18px; transition: border-color var(--dur-quick) var(--ease-out); }
.x-faq details[open] { border-color: rgba(139, 92, 246, 0.55); }
.x-faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 16px; padding-block: 12px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--x-line-2); color: var(--x-cyan); }
.x-faq details[open] summary::after { content: "–"; }
.x-faq details p { color: var(--x-ink-2); padding-bottom: 16px; line-height: 1.7; }

/* ---------- glossary ---------- */
.x-gloss-wrap { overflow-x: auto; border: 1px solid var(--x-line); border-radius: var(--r-m); background: var(--x-glass); }
.x-gloss { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.x-gloss th, .x-gloss td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--x-line); vertical-align: top; }
.x-gloss th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--x-ink-3); font-weight: 600; background: rgba(7, 8, 15, 0.5); }
.x-gloss tr:last-child td { border-bottom: 0; }
.x-gloss td:first-child { color: var(--x-ink); font-weight: 600; white-space: nowrap; }
.x-gloss td:nth-child(2) { color: var(--x-cyan); white-space: nowrap; }
.x-gloss td:last-child { color: var(--x-ink-2); }
@media (max-width: 640px) {
  .x-gloss { min-width: 0; }
  .x-gloss thead { display: none; }
  .x-gloss tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--x-line); }
  .x-gloss tr:last-child { border-bottom: 0; }
  .x-gloss td { border: 0; padding: 0; white-space: normal !important; }
  .x-gloss td:last-child { grid-column: 1 / -1; margin-top: 4px; }
}

/* ---------- kling templates ---------- */
.x-tpls { display: grid; gap: 14px; }
.x-tpl { padding: 18px; border-radius: var(--r-m); border: 1px solid var(--x-line); background: rgba(13, 15, 28, 0.72); display: grid; gap: 12px; min-width: 0; }
.x-tpl__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.x-tpl h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.x-tpl__top p { color: var(--x-ink-2); font-size: 14px; margin-top: 4px; }
.x-struct { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.x-struct div { padding: 16px; border-radius: var(--r-m); border: 1px solid var(--x-line); background: var(--x-glass); }
.x-struct b { display: block; color: var(--x-ink); font-size: 15px; }
.x-struct code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--x-cyan); }
.x-struct p { color: var(--x-ink-2); font-size: 14px; margin-top: 6px; line-height: 1.6; }

/* ---------- misc ---------- */
.x-section--tight { padding-block: clamp(48px, 7vw, 80px) 0; }
.x-cta { margin-top: clamp(48px, 8vw, 88px); padding: clamp(22px, 4vw, 40px); border-radius: var(--r-l); border: 1px solid rgba(139, 92, 246, 0.45); background: radial-gradient(600px 300px at 90% 0%, rgba(139, 92, 246, 0.22), transparent 70%), var(--x-glass); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.x-cta h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.x-cta p { color: var(--x-ink-2); margin-top: 6px; }
.x-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.x-rel { position: relative; display: flex; align-items: flex-end; min-height: 180px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--x-line); text-decoration: none; isolation: isolate; transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out); }
.x-rel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.x-rel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 8, 15, 0.95), transparent 70%); }
.x-rel span { padding: 16px; font-weight: 700; font-size: 17px; }
.x-rel:hover { transform: translateY(-4px); box-shadow: var(--x-glow); }
.x-legal h2 { color: var(--x-ink); font-size: 22px; font-weight: 700; margin-top: 36px; letter-spacing: -0.01em; }
.x-legal h2:first-child { margin-top: 0; }
.x-legal p, .x-legal ul { margin-top: 12px; }
.x-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.x-404 h1 { font-size: clamp(64px, 16vw, 140px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.x-404 .x-actions { justify-content: center; }
.x-contact-mail { font-size: clamp(20px, 4vw, 30px); font-weight: 700; color: var(--x-cyan); text-decoration: none; word-break: break-all; }
.x-contact-mail:hover { text-decoration: underline; }
.x-foot__cols { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 760px) { .x-foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); } }

/* ---------- prompt card actions: share + copy ---------- */
.x-acts { display: flex; gap: 8px; flex: none; }
.x-share { gap: 6px; padding: 0 12px; min-width: 0; color: var(--x-ink-2); }
.x-share svg { flex: none; }
.x-share.is-copied { color: var(--x-cyan); border-color: rgba(34, 211, 238, 0.6); }
@media (max-width: 380px) { .x-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .x-share { min-width: var(--tap); } }
.x-pcard[hidden], .x-tpl[hidden] { display: none; }

/* ---------- prompt search + tag filter ---------- */
.x-filter { margin-bottom: 18px; display: grid; gap: 12px; min-width: 0; }
.x-filter__row { display: flex; gap: 10px; align-items: center; }
.x-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--x-line-2); background: rgba(7, 8, 15, 0.6); color: var(--x-ink-3); transition: border-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out); }
.x-search:focus-within { border-color: var(--x-violet); box-shadow: 0 0 22px -8px rgba(139, 92, 246, 0.9); color: var(--x-cyan); }
.x-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--x-ink); font: inherit; font-size: 16px; min-height: 42px; }
.x-search input::placeholder { color: var(--x-ink-3); }
.x-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }
.x-copyall { flex: none; }
.x-fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--x-pad) * -1); padding: 2px var(--x-pad) 4px; -webkit-overflow-scrolling: touch; }
.x-fchips::-webkit-scrollbar { display: none; }
@media (min-width: 861px) { .x-fchips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.x-fchip { all: unset; cursor: pointer; flex: none; white-space: nowrap; font-size: 13px; font-weight: 500; min-height: 38px; padding: 0 14px; box-sizing: border-box; display: inline-flex; align-items: center; border-radius: var(--r-pill); border: 1px solid rgba(139, 92, 246, 0.35); background: #1a1436; color: var(--x-ink-2); transition: all var(--dur-quick) var(--ease-out); }
.x-fchip:hover { color: var(--x-ink); border-color: rgba(139, 92, 246, 0.7); }
.x-fchip[aria-pressed="true"] { background: #2a1d57; border-color: var(--x-violet); color: var(--x-ink); box-shadow: 0 0 18px -6px rgba(139, 92, 246, 0.9); }
.x-fchip:focus-visible { outline: 2px solid var(--x-cyan); outline-offset: 2px; }
.x-fcount { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--x-ink-3); }
.x-fempty { margin-top: 6px; padding: 18px; border-radius: var(--r-m); border: 1px dashed var(--x-line-2); color: var(--x-ink-2); text-align: center; }
.x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- /trends/ new AI words ---------- */
.x-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.x-word { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border-radius: var(--r-m); border: 1px solid var(--x-line); background: rgba(13, 15, 28, 0.72); scroll-margin-top: 120px; min-width: 0; transition: box-shadow var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out); }
.x-word:hover, .x-word:target { box-shadow: var(--x-glow); border-color: rgba(139, 92, 246, 0.55); }
.x-word h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.x-word h3 small { display: block; font-size: 13px; font-weight: 500; color: var(--x-ink-3); letter-spacing: 0; margin-top: 2px; }
.x-word > p:not(.x-pcard__n) { color: var(--x-ink-2); font-size: 15px; line-height: 1.65; }
.x-word__links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-top: auto; }
.x-word__src { color: var(--x-ink-3); font-size: 13px; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.x-word__src:hover { color: var(--x-cyan); }

/* ---------- ticker links ---------- */
a.x-ticker__label { text-decoration: none; display: block; }
a.x-ticker__label:hover { text-decoration: underline; text-underline-offset: 3px; }
.x-ticker__track li a { color: inherit; text-decoration: none; }
.x-ticker__track li a:hover { color: var(--x-cyan); }

/* ---- photo prompt packs on home (2026-10-21) ---- */
.x-trends--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .x-trends--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .x-trends--4 { grid-template-columns: minmax(0, 1fr); } }
.x-guide h3 { margin-top: 28px; }
.x-guide h3:first-child { margin-top: 0; }
/* nav links must not shrink inside the scrollable row (text overlapped at 390px) */
.x-links a { flex-shrink: 0; }
/* pack cards: short visible snippet (Copy still copies the full prompt), readable title on light images */
.x-trends--4 .x-snip p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.x-trends--4 .x-trend::after { background: linear-gradient(to top, rgba(7, 8, 15, 0.97) 12%, rgba(7, 8, 15, 0.75) 50%, rgba(7, 8, 15, 0.15) 80%); }
.x-trends--4 .x-trend h3 { text-shadow: 0 2px 12px rgba(7, 8, 15, 0.9); }
