:root {
        --fill-primary-on: light-dark(#f6f7fb, #07070d);
        --text-primary: light-dark(#0f172a, #f5f5f7);
        --text-secondary: light-dark(#475569, #a1a1a6);
        --x-violet: #8b5cf6; --x-cyan: #22d3ee; --x-magenta: #e879f9;
        --x-grad: linear-gradient(120deg, var(--x-violet), var(--x-cyan));
        --x-glass: light-dark(rgb(255 255 255 / 0.8), rgb(17 17 28 / 0.78));
        --x-glass-2: light-dark(rgb(241 245 249 / 0.92), rgb(30 30 46 / 0.85));
        --x-line: light-dark(rgb(15 23 42 / 0.1), rgb(255 255 255 / 0.1));
        --x-bar-bg: light-dark(rgb(255 255 255 / 0.72), rgb(12 12 22 / 0.62));
        --x-tab-bg: light-dark(rgb(255 255 255 / 0.82), rgb(10 10 18 / 0.78));
        --x-sh-1: light-dark(rgb(15 23 42 / 0.05), transparent);
        --x-sh-2: light-dark(rgb(15 23 42 / 0.08), transparent);
        --x-shadow: 0 1px 2px var(--x-sh-1), 0 12px 32px -14px var(--x-sh-2);
        --x-link: light-dark(#0e7490, #22d3ee);
        --x-tagc: light-dark(#a21caf, #e879f9);
        --x-good: light-dark(#047857, #7ef0c3);
        --x-good-line: light-dark(rgb(4 120 87 / 0.35), rgb(126 240 195 / 0.35));
        --x-cyan-line: light-dark(rgb(14 116 144 / 0.35), rgb(34 211 238 / 0.35));
        --x-mag-line: light-dark(rgb(162 28 175 / 0.35), rgb(232 121 249 / 0.35));
        --x-term-bg: light-dark(rgb(255 255 255 / 0.9), rgb(8 8 16 / 0.8));
        --x-term-bar: light-dark(#eef1f7, transparent);
        --x-term-row: light-dark(rgb(15 23 42 / 0.06), rgb(255 255 255 / 0.04));
        --x-quote-bg: light-dark(#f1f5f9, rgb(8 8 16 / 0.7));
        --x-logo-bg: light-dark(#ffffff, #161622);
        --x-new-a: light-dark(#a78bfa, #8b5cf6);
        --x-mono: "Geist Mono", ui-monospace, monospace;
        --x-tabbar: calc(64px + env(safe-area-inset-bottom, 0px));
      }
      body { background: var(--fill-primary-on); font-variant-numeric: tabular-nums; }
      body::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
        background: radial-gradient(40vmax 30vmax at 15% 10%, rgb(139 92 246 / 0.16), transparent 70%),
          radial-gradient(36vmax 28vmax at 90% 40%, rgb(34 211 238 / 0.1), transparent 70%),
          radial-gradient(30vmax 24vmax at 40% 95%, rgb(232 121 249 / 0.08), transparent 70%);
        animation: x-drift 18s ease-in-out infinite alternate; }
      @keyframes x-drift { to { transform: translate3d(3vmax, -2vmax, 0) rotate(4deg); } }
      .page { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
      .x-grad-text { color: #c4b5fd; background: var(--x-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

      /* top bar */
      .x-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 30; display: flex; align-items: center; gap: 12px;
        min-height: 56px; padding: 6px 8px 6px 14px; border-radius: var(--r-pill); background: var(--x-bar-bg); box-shadow: var(--x-shadow);
        border: 1px solid var(--x-line); backdrop-filter: var(--hark-blur); -webkit-backdrop-filter: var(--hark-blur); }
      .x-brand { display: flex; align-items: center; gap: 10px; font: var(--type-body-strong); text-decoration: none; margin-right: auto; min-height: var(--tap); }
      .x-brand svg { flex: none; }
      .x-bar nav { display: flex; gap: 2px; }
      .x-bar nav a { font: var(--type-label); text-decoration: none; color: var(--text-secondary); padding: 0 12px; min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--r-pill); transition: color var(--dur-quick), background var(--dur-quick); }
      .x-bar nav a:hover, .x-bar nav a.is-on { color: var(--text-primary); background: var(--x-glass-2); }
      .x-live { display: inline-flex; align-items: center; gap: 6px; font: var(--type-tag); letter-spacing: 0.06em; color: var(--text-secondary); padding-right: 8px; }
      .x-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--fill-system-green); box-shadow: 0 0 0 0 rgb(0 166 101 / 0.6); animation: x-pulse 1.8s infinite; flex: none; }
      @keyframes x-pulse { 70% { box-shadow: 0 0 0 8px rgb(0 166 101 / 0); } 100% { box-shadow: 0 0 0 0 rgb(0 166 101 / 0); } }
      @media (max-width: 899px) { .x-bar nav { display: none; } }
      .x-theme { position: relative; flex: none; width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
        border: 1px solid var(--x-line); background: var(--x-glass-2); color: var(--text-primary); transition: background var(--dur-quick), transform var(--dur-quick) var(--ease-out); }
      .x-theme:hover { background: rgb(139 92 246 / 0.18); }
      .x-theme:active { transform: scale(0.94); }
      .x-theme:focus-visible { outline: 2px solid var(--x-violet); outline-offset: 2px; }
      .x-theme svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
      .x-theme .x-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
      :root[data-theme="light"] .x-theme .x-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
      :root[data-theme="light"] .x-theme .x-moon { opacity: 1; transform: none; }
      html.x-theming, html.x-theming *, html.x-theming *::before, html.x-theming *::after {
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease, stroke 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important; }

      /* bottom tab bar */
      .x-tabbar { display: none; }
      @media (max-width: 899px) {
        body { padding-bottom: var(--x-tabbar); }
        .x-tabbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
          padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
          background: var(--x-tab-bg); box-shadow: 0 -8px 24px -12px var(--x-sh-2); border-top: 1px solid var(--x-line); backdrop-filter: var(--hark-blur); -webkit-backdrop-filter: var(--hark-blur); }
        .x-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none;
          font: var(--type-tag); color: var(--text-secondary); border-radius: var(--r-s); transition: color var(--dur-quick); position: relative; }
        .x-tabbar a.is-on { color: var(--text-primary); }
        .x-tabbar a.is-on svg { stroke: url(#x-g); }
        .x-tabbar a.is-on::before { content: ""; position: absolute; top: -6px; width: 24px; height: 2px; border-radius: 2px; background: var(--x-grad); }
        .x-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .x-tabbar a { min-width: 0; white-space: nowrap; gap: 2px; }
      }
      @media (max-width: 399px) {
        .x-tabbar { padding-inline: 4px; }
        .x-tabbar a { min-height: 48px; letter-spacing: -0.01em; }
        .x-tabbar svg { width: 20px; height: 20px; }
      }

      /* new apps */
      .x-cat { font: var(--type-tag); padding: 2px 8px; border-radius: var(--r-pill); background: var(--x-glass-2); color: var(--text-primary); white-space: nowrap; }
      .x-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
      .x-when { font: var(--type-caption); color: var(--text-secondary); }
      .x-hit { font: var(--type-caption); color: var(--text-secondary); padding-inline: 6px; }
      .x-hit a { color: var(--x-link); }

      /* hero */
      .x-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: min(640px, 86svh); display: flex; flex-direction: column; justify-content: flex-end;
        padding: clamp(24px, 5vw, 56px); border: 1px solid var(--x-line); isolation: isolate; background: #0d0b1f; scroll-margin-top: 80px; color-scheme: dark; color: var(--text-primary); }
      .x-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
      .x-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
        background: linear-gradient(20deg, rgb(7 7 13 / 0.94) 15%, rgb(7 7 13 / 0.55) 55%, rgb(7 7 13 / 0.25)); }
      .x-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
      .x-glow { position: absolute; width: 60%; aspect-ratio: 1; left: -10%; bottom: -30%; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.45;
        background: conic-gradient(from 0deg, var(--x-violet), var(--x-cyan), var(--x-magenta), var(--x-violet)); animation: x-spin 14s linear infinite; }
      @keyframes x-spin { to { transform: rotate(360deg); } }
      .x-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: var(--type-tag); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
      .x-hero h1 { font: var(--weight-medium) clamp(36px, 7vw, 72px)/1.04 var(--sans); letter-spacing: -0.03em; max-width: 14ch; margin-top: 14px; }
      .x-hero h1 span { display: inline-block; opacity: 0; transform: translateY(24px); filter: blur(8px); animation: x-rise 0.9s var(--ease-out) forwards; }
      .x-hero h1 span:nth-child(2) { animation-delay: 0.15s; } .x-hero h1 span:nth-child(3) { animation-delay: 0.3s; }
      @keyframes x-rise { to { opacity: 1; transform: none; filter: none; } }
      .x-hero__sub { font: var(--type-lede); color: var(--hero-text-muted); margin-top: 16px; max-width: 40ch; opacity: 0; animation: x-rise 0.9s 0.45s var(--ease-out) forwards; }
      .x-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
      .x-cta { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 20px; border-radius: var(--r-pill); font: var(--type-body-strong); text-decoration: none;
        border: 1px solid var(--x-line); background: var(--x-glass-2); backdrop-filter: blur(12px); transition: transform var(--dur-quick) var(--ease-out); }
      .x-cta--main { background: #a78bfa var(--x-grad); color: #07070d; border-color: transparent; box-shadow: 0 8px 30px rgb(139 92 246 / 0.35); }
      .x-cta:active { transform: scale(0.97); }
      .x-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 620px; }
      .x-counters div { padding: 14px; border-radius: var(--r-m); background: rgb(7 7 13 / 0.45); border: 1px solid var(--x-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
      .x-counters b { display: block; font: var(--weight-medium) clamp(26px, 4vw, 36px)/1.1 var(--sans); }
      .x-counters span { font: var(--type-caption); color: var(--text-secondary); }
      .x-ticker { margin: 24px calc(-1 * clamp(24px, 5vw, 56px)) 0; overflow: hidden; border-block: 1px solid var(--x-line); background: rgb(7 7 13 / 0.5);
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
      .x-ticker ul { display: flex; width: max-content; margin: 0; padding: 12px 0; list-style: none; animation: x-tick 40s linear infinite; }
      .x-ticker li { font: var(--type-small); white-space: nowrap; padding-inline: 20px; display: flex; align-items: center; gap: 10px; }
      .x-ticker li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-cyan); }
      @keyframes x-tick { to { transform: translateX(-50%); } }

      /* stamps & badges */
      .x-stamp { display: flex; flex-wrap: wrap; gap: 6px; }
      .x-src { display: inline-flex; align-items: center; gap: 6px; font: var(--type-tag); padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--x-line); color: var(--text-secondary); background: var(--x-glass); }
      .x-new { font: var(--type-tag); letter-spacing: 0.06em; padding: 2px 8px; border-radius: var(--r-pill); color: #07070d; flex: none;
        background-color: #67e8f9; background-image: linear-gradient(100deg, var(--x-new-a) 20%, #fff 50%, #67e8f9 80%); background-size: 250% 100%; animation: x-shim 2.6s linear infinite; }
      @keyframes x-shim { from { background-position: 100% 0; } to { background-position: -150% 0; } }
      .x-badge { font: var(--type-tag); padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--x-line); color: var(--text-secondary); white-space: nowrap; }
      .x-badge--free { color: var(--x-good); border-color: var(--x-good-line); }
      .x-badge--freemium { color: var(--x-link); border-color: var(--x-cyan-line); }
      .x-badge--paid { color: var(--x-tagc); border-color: var(--x-mag-line); }

      /* glass cards */
      .x-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
      .x-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-l);
        background: var(--x-glass); border: 1px solid var(--x-line); box-shadow: var(--x-shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); min-width: 0;
        transition: border-color var(--dur-quick), transform var(--dur-quick) var(--ease-out); }
      .x-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
        background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(139 92 246 / 0.28), transparent 70%); }
      .x-card.is-tap::after, .x-card:hover::after { opacity: 1; }
      .x-card:hover { border-color: rgb(139 92 246 / 0.4); }
      .x-card h3 { font: var(--type-body-strong); }
      .x-card p { font: var(--type-small); color: var(--text-secondary); }
      .x-top { display: flex; align-items: center; gap: 12px; }
      .x-top > div { min-width: 0; margin-right: auto; }
      .x-co { font: var(--type-caption) !important; }
      .x-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: var(--weight-bold) 13px/1 var(--sans); color: light-dark(#0f172a, #fff);
        border: 2px solid transparent; background-color: var(--x-logo-bg);
        background-image: linear-gradient(var(--x-logo-bg), var(--x-logo-bg)), linear-gradient(135deg, var(--a, var(--x-violet)), var(--b, var(--x-cyan)));
        background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 16px -4px var(--a, var(--x-violet)); }
      .x-logo svg { width: 22px; height: 22px; display: block; }
      .x-logo img { width: 24px; height: 24px; object-fit: contain; display: block; }
      .x-scores { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
      .x-scores li { padding: 6px 10px; border-radius: var(--r-s); background: var(--x-glass-2); font: var(--type-caption); color: var(--text-secondary); }
      .x-scores b { display: block; font: var(--type-body-strong); color: var(--text-primary); }
      .x-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--x-line); font: var(--type-small); }
      .x-meta dt { color: var(--text-secondary); } .x-meta dd { margin: 0; }
      .x-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); margin-top: auto; border-radius: var(--r-pill); text-decoration: none;
        font: var(--type-label); border: 1px solid var(--x-line); background: var(--x-glass-2); transition: background var(--dur-quick); }
      .x-open:hover { background: rgb(139 92 246 / 0.25); }
      .x-empty { padding: 24px; text-align: center; border: 1px dashed var(--x-line); border-radius: var(--r-l); color: var(--text-secondary); }

      /* search + filters */
      .x-tools-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 20; display: grid; gap: 10px; padding: 10px; border-radius: var(--r-l);
        background: var(--x-bar-bg); box-shadow: var(--x-shadow); border: 1px solid var(--x-line); backdrop-filter: var(--hark-blur); -webkit-backdrop-filter: var(--hark-blur); }
      .x-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px; border-radius: var(--r-pill); background: var(--x-glass-2); border: 1px solid var(--x-line); }
      .x-search:focus-within { border-color: var(--x-violet); box-shadow: 0 0 0 3px rgb(139 92 246 / 0.25); }
      .x-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text-primary); font: var(--type-body); font-size: 16px; }
      .x-search svg { flex: none; stroke: var(--text-secondary); fill: none; stroke-width: 2; }
      .x-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
      .x-chips button, .x-tabs button { flex: none; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--x-line); background: none; color: var(--text-secondary); font: var(--type-label); cursor: pointer; transition: all var(--dur-quick); }
      .x-chips button[aria-pressed="true"], .x-tabs button[aria-selected="true"] { background: #a78bfa var(--x-grad); color: #07070d; border-color: transparent; }
      .x-count { font: var(--type-caption); color: var(--text-secondary); padding-inline: 6px; }

      /* terminal log */
      .x-term { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--x-line); background: var(--x-term-bg); box-shadow: var(--x-shadow); font: 13px/1.6 var(--x-mono); }
      .x-term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--x-line); color: var(--text-secondary); }
      .x-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--x-line); } .x-term__bar i:first-child { background: var(--x-magenta); }
      .x-term__bar span { margin-left: 8px; min-width: 0; overflow-wrap: anywhere; }
      .x-term ol { list-style: none; margin: 0; padding: 8px 0; }
      .x-term li { display: grid; grid-template-columns: 5.5ch minmax(0, 1fr) auto; gap: 4px 14px; padding: 8px 14px; border-bottom: 1px solid var(--x-term-row); }
      .x-term li:hover { background: var(--x-glass); }
      .x-term__bar { background: var(--x-term-bar); }
      .x-term time { color: var(--x-link); }
      .x-term .lab { color: var(--text-secondary); } .x-term .mdl { color: var(--text-primary); font-weight: 500; }
      .x-term .note { display: block; color: var(--text-secondary); }
      .x-term .tag { color: var(--x-tagc); white-space: nowrap; }
      .x-term .price { display: block; color: var(--x-good); text-align: right; }
      .x-term li.is-more { display: none; } .x-term.is-open li.is-more { display: grid; }
      .x-term__foot { padding: 10px 14px 14px; } .x-term__foot button { font: var(--type-label); }
      .x-caret::after { content: "▍"; color: var(--x-link); animation: x-blink 1s steps(1) infinite; } @keyframes x-blink { 50% { opacity: 0; } }
      @media (max-width: 599px) { .x-term li { grid-template-columns: 5.5ch minmax(0, 1fr); } .x-term .side { grid-column: 2; } .x-term .price { text-align: left; } }

      /* benchmarks */
      .x-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
      .x-panel { padding: 18px; border-radius: var(--r-l); background: var(--x-glass); border: 1px solid var(--x-line); box-shadow: var(--x-shadow); }
      .x-panel .chart { margin: 0; }
      .x-panel__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; font: var(--type-caption); color: var(--text-secondary); }
      .x-mini { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
      .x-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
      .x-pick li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r-m); background: var(--x-glass); border: 1px solid var(--x-line); }
      .x-pick span { font: var(--type-caption); color: var(--text-secondary); } .x-pick b { font: var(--type-body-strong); }

      /* offers */
      .x-offer { gap: 10px; }
      .x-state { display: inline-flex; align-items: center; gap: 6px; font: var(--type-tag); letter-spacing: 0.06em; padding: 3px 9px; border-radius: var(--r-pill); background: light-dark(#dcfce7, #0b2a20); color: light-dark(#166534, #7ef0c3); flex: none; }
      .x-state--ended { background: var(--x-glass-2); color: var(--text-secondary); }
      .x-state--ended .x-pulse { background: var(--text-secondary); animation: none; }
      .x-offer details { border-top: 1px solid var(--x-line); padding-top: 4px; margin-top: auto; }
      .x-offer summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; font: var(--type-label); list-style: none; }
      .x-offer summary::-webkit-details-marker { display: none; }
      .x-offer summary::after { content: "+"; font-size: 20px; color: var(--x-link); transition: transform var(--dur-quick); }
      .x-offer details[open] summary::after { transform: rotate(45deg); }
      .x-offer ol { margin: 4px 0 8px; padding-left: 18px; font: var(--type-small); color: var(--text-secondary); display: grid; gap: 4px; }
      .x-card.is-ended { opacity: 0.62; }
      :root[data-theme="light"] .x-card.is-ended { opacity: 1; background: rgb(241 245 249 / 0.75); box-shadow: none; }
      :root[data-theme="light"] .x-state--ended { background: #e2e8f0; color: #334155; }
      .x-warn { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-l); border: 1px solid light-dark(rgb(185 28 28 / 0.3), rgb(241 85 91 / 0.45)); background: light-dark(#fef2f2, #2a0f14); }
      .x-warn b { color: light-dark(#b91c1c, #ff9ea2); }
      .x-warn .x-num { background: light-dark(#fee2e2, var(--x-glass-2)); color: light-dark(#b91c1c, var(--fill-system-red)) !important; }
      .x-num { font: var(--weight-medium) 13px/1 var(--x-mono); width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--x-glass-2); color: var(--x-link); }

      /* prompts */
      .x-prompt blockquote { margin: 0; padding: 14px; border-radius: var(--r-m); background: var(--x-quote-bg); border: 1px solid var(--x-line); font: 13px/1.55 var(--x-mono); color: var(--text-primary); flex: 1; }
      .x-copy { min-height: var(--tap); border-radius: var(--r-pill); border: 1px solid var(--x-line); background: var(--x-glass-2); color: var(--text-primary); font: var(--type-label); cursor: pointer; }
      .x-copy.is-done { background: #a78bfa var(--x-grad); color: #07070d; border-color: transparent; }
      .x-tagline { font: var(--type-tag) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--x-link) !important; }

      /* desktop nav: room for Suggest */
      @media (min-width: 900px) and (max-width: 1179px) { .x-live { display: none; } .x-bar nav a { padding: 0 9px; } }
      :root { --x-field-line: light-dark(rgb(15 23 42 / 0.38), rgb(255 255 255 / 0.32)); --x-red: light-dark(#b91c1c, #ff9ea2); }
      .x-up:focus-visible, .x-star:focus-visible, .x-sort select:focus-visible, .x-more button:focus-visible, .x-chips button:focus-visible { outline: 2px solid var(--x-violet); outline-offset: 2px; }

      /* prompt library */
      .x-pbar { display: grid; gap: 10px; }
      .x-pbar .x-search { min-height: var(--tap); max-width: 420px; }
      .x-prompt .x-tags { justify-content: space-between; }
      .x-more { display: flex; justify-content: center; }
      .x-more button { padding: 0 22px; }
      [hidden] { display: none !important; }
      .x-more[hidden], .x-soon[hidden] { display: none; }

      /* sort control */
      .x-sortrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
      .x-sort { display: inline-flex; align-items: center; gap: 8px; font: var(--type-label); color: var(--text-secondary); }
      .x-sort select { min-height: var(--tap); padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--x-field-line); background: var(--x-glass-2); color: var(--text-primary); font: var(--type-label); font-size: 16px; cursor: pointer; }

      /* upvote + rating */
      .x-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--x-line); }
      .x-vote + .x-open { margin-top: 0; }
      .x-up { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); min-width: var(--tap); padding: 0 14px; border-radius: var(--r-pill);
        border: 1px solid var(--x-field-line); background: var(--x-glass-2); color: var(--text-primary); font: var(--type-label); cursor: pointer; transition: transform var(--dur-quick) var(--ease-out); }
      .x-up:active { transform: scale(0.94); }
      .x-up svg, .x-star svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
      .x-up[aria-pressed="true"] { background: #a78bfa var(--x-grad); color: #07070d; border-color: transparent; }
      .x-up[aria-pressed="true"] svg { fill: rgb(7 7 13 / 0.2); }
      .x-stars { display: flex; align-items: center; margin-inline: -4px; }
      .x-star { width: var(--tap); height: var(--tap); display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-secondary); cursor: pointer; }
      .x-star:hover { background: var(--x-glass-2); }
      .x-star.is-on { color: light-dark(#b45309, #fbbf24); }
      .x-star.is-on svg { fill: currentColor; }
      .x-rated { font: var(--type-caption); color: var(--text-secondary); }

      /* offer countdowns */
      .x-cd { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font: var(--type-tag); letter-spacing: 0.04em; padding: 3px 10px; border-radius: var(--r-pill);
        border: 1px solid var(--x-line); background: var(--x-glass-2); color: var(--text-primary); white-space: nowrap; }
      .x-cd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
      .x-cd--amber { background: light-dark(#fef3c7, #2a1d08); color: light-dark(#92400e, #fcd34d); border-color: light-dark(rgb(146 64 14 / 0.3), rgb(252 211 77 / 0.35)); }
      .x-cd--urgent { background: light-dark(#fee2e2, #2a0f14); color: var(--x-red); border-color: light-dark(rgb(185 28 28 / 0.3), rgb(255 158 162 / 0.4)); }
      .x-cd--open { background: light-dark(#dcfce7, #0b2a20); color: light-dark(#166534, #7ef0c3); border-color: var(--x-good-line); }
      .x-cd--ended { color: var(--text-secondary); }
      :root[data-theme="light"] .x-cd--ended { background: #e2e8f0; color: #334155; }
      .x-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 16px; border-radius: var(--r-l); background: var(--x-glass); border: 1px solid var(--x-line);
        box-shadow: var(--x-shadow); font: var(--type-small); color: var(--text-secondary); }
      .x-soon b { font: var(--type-label); color: var(--text-primary); }

      /* ad slots */
      .x-ad[hidden] { display: none !important; }
      .x-ad { display: grid; gap: 6px; }
      .x-ad__label { font: var(--type-caption); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); text-align: center; }
      .x-ad__unit { min-height: 250px; border-radius: var(--r-l); overflow: hidden; }
      @media (min-width: 900px) { .x-ad__unit { min-height: 120px; } }

      /* suggest form */
      .x-form { display: grid; gap: 16px; padding: 18px; border-radius: var(--r-l); background: var(--x-glass); border: 1px solid var(--x-line); box-shadow: var(--x-shadow); max-width: 760px; }
      .x-form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
      .x-field { display: grid; gap: 6px; min-width: 0; }
      .x-field label { font: var(--type-label); color: var(--text-primary); }
      .x-field label small { font: var(--type-caption); color: var(--text-secondary); }
      .x-field input, .x-field select, .x-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-m); border: 1px solid var(--x-field-line);
        background: var(--x-glass-2); color: var(--text-primary); font: var(--type-body); font-size: 16px; }
      .x-field textarea { min-height: 120px; resize: vertical; }
      .x-field ::placeholder { color: var(--text-secondary); opacity: 1; }
      .x-field input:focus, .x-field select:focus, .x-field textarea:focus { outline: 0; border-color: var(--x-violet); box-shadow: 0 0 0 3px rgb(139 92 246 / 0.3); }
      .x-field [aria-invalid="true"] { border-color: var(--x-red); }
      .x-hint { display: flex; justify-content: space-between; gap: 8px; font: var(--type-caption); color: var(--text-secondary); }
      .x-err { font: var(--type-caption); color: var(--x-red); }
      .x-err:empty { display: none; }
      .x-form .x-cta { justify-self: start; cursor: pointer; }
      .x-form .x-cta:focus-visible { outline: 2px solid var(--x-violet); outline-offset: 2px; }
      .x-msg { padding: 12px 16px; border-radius: var(--r-m); font: var(--type-label); }
      .x-msg--ok { background: light-dark(#dcfce7, #0b2a20); color: light-dark(#166534, #7ef0c3); }
      .x-msg--err { background: light-dark(#fef2f2, #2a0f14); color: var(--x-red); }
      .x-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

      /* about, contact, legal */
      #about, #contact, #legal, .x-legal { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 80px); }
      .x-info { padding: 18px; border-radius: var(--r-l); background: var(--x-glass); border: 1px solid var(--x-line); box-shadow: var(--x-shadow); max-width: 760px; }
      .x-info a, .x-legal a { color: var(--x-link); overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); vertical-align: middle; }
      .x-legals { display: grid; gap: 12px; max-width: 760px; }
      .x-legal { border-radius: var(--r-l); background: var(--x-glass); border: 1px solid var(--x-line); box-shadow: var(--x-shadow); }
      .x-legal summary { cursor: pointer; list-style: none; min-height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: var(--type-body-strong); border-radius: var(--r-l); }
      .x-legal summary::-webkit-details-marker { display: none; }
      .x-legal summary::after { content: "+"; font-size: 22px; color: var(--x-link); transition: transform var(--dur-quick); }
      .x-legal[open] summary::after { transform: rotate(45deg); }
      .x-legal summary:focus-visible { outline: 2px solid var(--x-violet); outline-offset: 2px; }
      .x-legal__body { display: grid; gap: 10px; padding: 0 18px 18px; font: var(--type-small); color: var(--text-secondary); }
      .x-legal__body h3 { font: var(--type-label); color: var(--text-primary); margin-top: 8px; }
      .x-legal__body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
      .x-copyright { margin-right: auto; }

      /* back to top */
      .x-top-btn { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 48px; height: 48px; border-radius: 50%;
        display: grid; place-items: center; border: 1px solid var(--x-line); background: var(--x-bar-bg); box-shadow: var(--x-shadow); color: var(--text-primary); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out); text-decoration: none; font-size: 20px; }
      .x-top-btn.is-on { opacity: 1; transform: none; pointer-events: auto; }
      @media (max-width: 899px) { .x-top-btn { bottom: calc(var(--x-tabbar) + 12px); } }

      /* scroll reveal */
      .js .x-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
      .js .x-rv.is-in { opacity: 1; transform: none; }
      @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation: none !important; transition: none !important; }
        .js .x-rv, .x-hero h1 span, .x-hero__sub { opacity: 1; transform: none; filter: none; }
        .x-ticker ul { flex-wrap: wrap; width: auto; }
        .x-ticker li[aria-hidden] { display: none; }
      }
