/*
 * WINVIDIA (winvidia.com) comment theme — v2.
 * Central source: comment_system_a/public/comments/themes/winvidia/v2.css
 * Public URL: https://chimatter.com/comments/themes/winvidia/v2.css
 *
 * Site tokens (winvidia_com/site_src/assets/site.css):
 *   bg #07070c / bg2 #0c0c14 / bg3 #11111c / fg #f4f4fa / muted #9696b0 / dim #64647e
 *   violet #8b6cff / violet2 #b9a6ff / hot #ff7a62 / line rgba(236,236,255,.085|.16)
 *   radius 14px / small 9px / pill buttons. Fonts: Archivo + Noto Sans JP.
 *
 * The site is DARK-FIXED (no toggle, no data-theme attribute), so this release ships dark tokens
 * unconditionally and intentionally has no prefers-color-scheme override. It serves both the
 * English and Japanese pages; text comes from the SDK's data-locale, not from this file.
 *
 * Why v2: the default fusen tab rendered as a 161px horizontal strip in reversed order on phones,
 * covering the page. v2 lays it out left to right and shows only the icon and count on phones. It
 * stays at the right edge because product pages use the bottom of the screen for the buy bar.
 *
 * White on violet #8b6cff is below 4.5:1, so filled controls use the site's near-black ink.
 */

.cmt-root {
  --cmt-font: "Archivo", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui,
              -apple-system, "Segoe UI", sans-serif;
  --cmt-gap: 1rem;
  --cmt-max-width: 46.25rem;
  --cmt-fg: #f4f4fa;
  --cmt-muted: #9696b0;
  --cmt-border: rgba(236, 236, 255, 0.16);
  --cmt-anchor-color: #b9a6ff;
  --cmt-highlight: rgba(139, 108, 255, 0.2);
}

.cmt-root .cmt { border-radius: 9px; background: rgba(255, 255, 255, 0.028); }
.cmt-root[data-cmt-form] { margin-top: 1.25rem; }
.cmt-root .cmt-label { color: var(--cmt-muted); }
.cmt-root .cmt-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  color: var(--cmt-fg);
  background: #0c0c14;
  border-color: #6f6f8c;
  border-radius: 9px;
  font-size: 1rem;
  color-scheme: dark;
}
.cmt-root .cmt-input::placeholder { color: var(--cmt-muted); opacity: 1; }
.cmt-root .cmt-submit {
  min-height: 44px;
  padding-inline: 1.4em;
  border-radius: 999px;
  background: #8b6cff;
  color: #07070c;
  font-weight: 600;
}
.cmt-root .cmt-submit:hover:not(:disabled) { background: #b9a6ff; }
.cmt-root .cmt-input:focus-visible,
.cmt-root .cmt-submit:focus-visible,
.cmt-root .cmt-anchor:focus-visible { outline: 2px solid #b9a6ff; outline-offset: 3px; }
.cmt-root .cmt-form-error { color: #ff7a62; }

.cmt-drawer {
  --cmt-drawer-accent: #8b6cff;
  --cmt-drawer-tab-bg: #8b6cff;
  --cmt-drawer-tab-fg: #07070c;
  --cmt-drawer-sheet-bg: #11111c;
  --cmt-drawer-fg: #f4f4fa;
  --cmt-drawer-scrim: rgba(7, 7, 12, 0.72);
  --cmt-drawer-radius: 14px;
  --cmt-drawer-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);

  font-family: "Archivo", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui,
               -apple-system, "Segoe UI", sans-serif;
}
.cmt-drawer .cmt-drawer-count,
.cmt-drawer .cmt-drawer-compose-toggle { color: #07070c; }
.cmt-drawer .cmt-drawer-compose-toggle { font-family: inherit; }
.cmt-drawer .cmt-drawer-sheet { border-top: 1px solid rgba(236, 236, 255, 0.16); }
.cmt-drawer .cmt-drawer-tab:focus-visible,
.cmt-drawer .cmt-drawer-entry:focus-visible,
.cmt-drawer .cmt-drawer-close:focus-visible,
.cmt-drawer .cmt-drawer-compose-toggle:focus-visible { outline: 2px solid #b9a6ff; outline-offset: 2px; }

.cmt-drawer[data-affordance="fusen"] .cmt-drawer-tab {
  flex-direction: row;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  padding: 0.5rem 0.75rem;
  padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
  font-weight: 600;
}
.cmt-drawer .cmt-drawer-tab .cmt-drawer-count { background: #07070c; color: #f4f4fa; }
@media (max-width: 767px) {
  .cmt-drawer[data-affordance="fusen"] .cmt-drawer-tab-label { display: none; }
}
