/**
 * STS2 CSS Variables Only
 * 目的: 全モジュール共通のCSS変数定義（超軽量・約2KB）
 * 読み込み条件: ウィジェット使用時 OR STS2ページのみ
 */

:root {
  /* カラーパレット */
  --sts2-primary: #4169e1;
  --sts2-danger: #dc143c;
  --sts2-success: #32cd32;
  --sts2-warning: #ffd700;
  --sts2-info: #9370db;
  --sts2-accent-gold: rgba(255, 215, 0, 0.9);

  /* 背景色 */
  --sts2-bg-dark: #1a1a2e;
  --sts2-bg-darker: #16213e;
  --sts2-bg-overlay: rgba(0, 0, 0, 0.3);

  /* テキスト色 */
  --sts2-text-primary: rgba(255, 255, 255, 0.95);
  --sts2-text-secondary: rgba(255, 255, 255, 0.7);
  --sts2-text-muted: rgba(255, 255, 255, 0.5);

  /* 共通サイズ変数 */
  --sts2-font-xs: 0.7em;
  --sts2-font-sm: 0.75em;
  --sts2-font-base: 0.8em;
  --sts2-font-md: 0.85em;
  --sts2-font-lg: 0.9em;
  --sts2-font-xl: 1em;

  --sts2-padding-xs: 0.3em;
  --sts2-padding-sm: 0.45em;
  --sts2-padding-md: 0.65em;
  --sts2-padding-lg: 1em;
  --sts2-padding-xl: 1.35em;

  --sts2-gap-xs: 0.3em;
  --sts2-gap-sm: 0.45em;
  --sts2-gap-md: 0.65em;
  --sts2-gap-lg: 0.9em;
  --sts2-gap-xl: 1.35em;

  --sts2-border-thin: 0.0625em;
  --sts2-border-base: 0.125em;
  --sts2-border-thick: 0.1875em;

  /* 共通カラー */
  --sts2-rarity-starter: #808080;
  --sts2-rarity-common: #c0c0c0;
  --sts2-rarity-uncommon: #4169e1;
  --sts2-rarity-rare: #9370db;
  --sts2-rarity-boss: #dc143c;
  --sts2-rarity-event: #ffd700;
  --sts2-rarity-curse: #4b0082;

  --sts2-cost-base: rgba(60, 80, 120, 0.9);
  --sts2-cost-changed: rgba(220, 180, 50, 0.9);

  /* ボーダー */
  --sts2-border: rgba(255, 255, 255, 0.1);
  --sts2-border-hover: rgba(255, 255, 255, 0.2);

  /* スペーシング */
  --sts2-space-xs: 0.25em;
  --sts2-space-sm: 0.5em;
  --sts2-space-md: 1em;
  --sts2-space-lg: 1.5em;
  --sts2-space-xl: 2em;

  /* 角丸 */
  --sts2-radius-xs: 0.25em;
  --sts2-radius-sm: 0.5em;
  --sts2-radius-md: 0.75em;
  --sts2-radius-lg: 1em;

  /* シャドウ */
  --sts2-shadow-sm: 0 0.125em 0.25em rgba(0, 0, 0, 0.2);
  --sts2-shadow-md: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
  --sts2-shadow-lg: 0 0.5em 1em rgba(0, 0, 0, 0.4);
  --sts2-shadow-xl: 0 1.25em 3.75em rgba(0, 0, 0, 0.8);

  /* トランジション */
  --sts2-transition: all 0.3s ease;
  --sts2-transition-fast: all 0.15s ease;

  /* Z-Index */
  --sts2-z-base: 1;
  --sts2-z-dropdown: 100;
  --sts2-z-sticky: 200;
  --sts2-z-fixed: 1000;
  --sts2-z-modal: 9999;
  --sts2-z-loading: 99999;

  /* グラデーション */
  --sts2-gradient-card: linear-gradient(135deg, #252525, #1a2a3a);
  --sts2-gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
  --sts2-gradient-darker: linear-gradient(135deg, #0f0f1a, #1a1a2e);
  --sts2-gradient-overlay: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  --sts2-gradient-overlay-strong: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  --sts2-gradient-primary: linear-gradient(
    135deg,
    rgba(60, 80, 120, 0.8),
    rgba(40, 60, 100, 0.8)
  );
  --sts2-gradient-primary-strong: linear-gradient(
    135deg,
    rgba(60, 80, 120, 0.95),
    rgba(40, 60, 100, 0.95)
  );
  --sts2-gradient-primary-light: linear-gradient(
    135deg,
    rgba(80, 100, 140, 0.9),
    rgba(60, 80, 120, 0.9)
  );
  --sts2-gradient-accent: linear-gradient(
    135deg,
    rgba(220, 180, 50, 0.9),
    rgba(180, 140, 30, 0.9)
  );
  --sts2-gradient-accent-strong: linear-gradient(
    135deg,
    rgba(220, 180, 50, 0.95),
    rgba(180, 140, 30, 0.95)
  );
  --sts2-gradient-danger: linear-gradient(
    135deg,
    rgba(200, 20, 60, 0.8),
    rgba(160, 15, 50, 0.8)
  );
  --sts2-gradient-danger-strong: linear-gradient(
    135deg,
    rgba(200, 20, 60, 0.9),
    rgba(160, 15, 50, 0.9)
  );

  /* タイポグラフィ */
  --sts2-line-height-tight: 1.2;
  --sts2-line-height-base: 1.5;
  --sts2-line-height-loose: 1.8;

  /* レスポンシブブレークポイント */
  --sts2-breakpoint-sm: 30em;
  --sts2-breakpoint-md: 48em;
  --sts2-breakpoint-lg: 64em;
  --sts2-breakpoint-xl: 80em;

  /* アニメーション持続時間 */
  --sts2-duration-instant: 0ms;
  --sts2-duration-fast: 150ms;
  --sts2-duration-base: 300ms;
  --sts2-duration-slow: 500ms;

  /* フォーカススタイル */
  --sts2-focus-color: #4169e1;
  --sts2-focus-width: 3px;
  --sts2-focus-offset: 2px;
}
