/* ROAN shared design variables (J23 G, Roger 2026-11-16: "三处按钮风格要保持一致" — home, live room, product page).
   One button system, one radius scale, one violet scale, one font stack. Site-wide: :root, no page scope.
   Loaded by the home bundle (tools/build-home.mjs HOME_CSS) and the site shell (tools/build-site.mjs SHELL_CSS);
   any other page links /css/roan-tokens.css itself. Pages reference the variables or the .roan-btn classes; they do
   not redefine the values.

   Buttons
     primary    .roan-btn                     gradient #5B3FD6 -> #7A55F5 (white text >= 4.5:1 along its whole length), white text, 52 px, pill, weight 600
     secondary  .roan-btn.roan-btn-secondary   transparent, 1.5 px violet outline (on dark: add .roan-on-dark, white 85 %)
     small      .roan-btn.roan-btn-sm          the same, 44 px (the minimum touch height), smaller padding and type
     icon       .roan-btn.roan-btn-icon        square, radius 14, same gradient (cart / add buttons)
   Weights: 400 / 500 / 600 only. */
:root {
  /* violet scale */
  --roan-violet-50: #f7f5fc;
  --roan-violet-100: #f3eeff;
  --roan-violet-150: #e9e1ff;
  --roan-violet-200: #dccfff;
  --roan-violet-300: #c2b0f2;
  --roan-violet-400: #a98bff;
  --roan-violet-500: #8b6cf6;
  --roan-violet-600: #6f4df2;
  --roan-violet-700: #5b3fd6;
  --roan-violet-900: #1e1638;
  --roan-ink: #1f1638;

  /* gradients (left to right) */
  /* Contrast (监军 01:03Z, the 332D scan): white button text measured about 3:1 on the old gradient's pale end
     (#6F4DF2 -> #A98BFF). The gradient now stays dark enough for white text at every point: 4.7:1 at its lightest. */
  --roan-grad-primary: linear-gradient(90deg, var(--roan-violet-700) 0%, #7a55f5 100%);
  --roan-grad-primary-hover: linear-gradient(90deg, #5334cc 0%, #7049ee 100%);
  --roan-grad-soft: linear-gradient(90deg, #a48df9 0%, #c9b9ff 100%);

  /* buttons */
  --roan-btn-h: 52px;
  --roan-btn-h-sm: 44px;
  --roan-btn-pad: 28px;
  --roan-btn-pad-sm: 20px;
  --roan-btn-font: 18px;
  --roan-btn-font-sm: 15px;
  --roan-btn-weight: 600;
  --roan-btn-gap: 16px;
  --roan-btn-shadow: 0 6px 16px rgba(111, 77, 242, .25);
  --roan-btn-outline: 1.5px solid var(--roan-violet-600);
  --roan-btn-outline-dark: 1.5px solid rgba(255, 255, 255, .85);

  /* radii */
  --roan-radius-sm: 12px;
  --roan-radius-md: 16px;
  --roan-radius-lg: 24px;
  --roan-radius-xl: 28px;
  --roan-radius-pill: 999px;

  /* shadows */
  --roan-shadow-card: 0 6px 18px rgba(40, 20, 90, .06);

  /* type: Latin Inter / SF, Chinese PingFang SC / Hiragino Sans GB / Microsoft YaHei / Noto Sans SC; 400 / 500 / 600 */
  --roan-font-latin: "Inter Variable", "Inter", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont;
  --roan-font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "ROAN Noto SC";
  --roan-font: var(--roan-font-latin), var(--roan-font-cjk), sans-serif;
  --roan-weight-regular: 400;
  --roan-weight-medium: 500;
  --roan-weight-semibold: 600;
}

.roan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--roan-btn-h);
  height: var(--roan-btn-h);
  padding: 0 var(--roan-btn-pad);
  border: 0;
  border-radius: var(--roan-radius-pill);
  background: var(--roan-grad-primary);
  color: #fff;
  font-family: var(--roan-font);
  font-size: var(--roan-btn-font);
  font-weight: var(--roan-btn-weight);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--roan-btn-shadow);
  cursor: pointer;
}
.roan-btn:hover { background: var(--roan-grad-primary-hover); }
.roan-btn:focus-visible { outline: 3px solid #d7c2ff; outline-offset: 3px; }
.roan-btn:disabled, .roan-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.roan-btn.roan-btn-secondary { border: var(--roan-btn-outline); background: transparent; color: var(--roan-violet-600); box-shadow: none; }
.roan-btn.roan-btn-secondary:hover { background: var(--roan-violet-100); }
.roan-btn.roan-btn-secondary.roan-on-dark { border: var(--roan-btn-outline-dark); color: #fff; }
.roan-btn.roan-btn-secondary.roan-on-dark:hover { background: rgba(255, 255, 255, .08); }
.roan-btn.roan-btn-sm { min-height: var(--roan-btn-h-sm); height: var(--roan-btn-h-sm); padding: 0 var(--roan-btn-pad-sm); font-size: var(--roan-btn-font-sm); }
.roan-btn.roan-btn-icon { width: var(--roan-btn-h-sm); padding: 0; border-radius: 14px; }
@media (max-width: 759px) {
  :root { --roan-btn-h: 48px; --roan-btn-font: 16px; --roan-btn-pad: 20px; }
}

/* 285C / 286C names (C's live room and product page), kept as aliases of the values above so there is one source.
   C's sizes stay C's (room and product buttons are smaller than the home page's); the colour, gradient, shadow,
   radius, weight and font come from here. */
:root {
  --roan-font-sans: var(--roan-font);
  --roan-button-gradient: var(--roan-grad-primary);
  --roan-button-outline: var(--roan-violet-200);
  --roan-button-radius: var(--roan-radius-pill);
  --roan-button-weight: var(--roan-btn-weight);
  --roan-button-h-sm: 32px;
  --roan-button-h-md: 40px;
  --roan-button-h-lg: 44px;
  --roan-button-shadow: var(--roan-btn-shadow);
  --roan-space-1: 2px;
  --roan-space-2: 6px;
  --roan-space-3: 10px;
  --font-ui: var(--roan-font);
  --font-body: var(--roan-font);
  --rf-font-body: var(--roan-font);
  --rf-font-heading: var(--roan-font);
}
html body, html body input, html body button, html body select, html body textarea {
  font-family: var(--roan-font) !important;
  font-synthesis: none;
  letter-spacing: 0;
}

/* J-GEO: the readable block the Worker writes into a room's page (worker/src/readable_j36.ts):
   rooms, AI hosts, products and prices as plain HTML, for readers that run no script and for the moment before the
   page's script draws. Plain and legible on either a light or a dark page. */
.geo-readable { box-sizing: border-box; max-width: 1180px; margin: 32px auto; padding: 0 20px; font: 400 15px/1.6 "Inter Variable", "Noto Sans SC", system-ui, sans-serif; color: inherit; }
.geo-readable h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.geo-readable h3 { margin: 0 0 2px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.geo-readable p { margin: 0 0 6px; }
.geo-readable .geo-note { opacity: .78; font-size: 14px; }
.geo-readable ul { margin: 0; padding: 0; list-style: none; }
.geo-readable .geo-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 28px; margin-top: 16px; }
.geo-readable .geo-products li { padding: 2px 0; font-size: 14px; }
.geo-readable .geo-price { font-weight: 600; white-space: nowrap; }
.geo-readable a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
