/* Board styles, shared by the app's 2D board and the Chess Library diagrams.
   The chosen style is html[data-board] (set by /theme-init.js from localStorage). */
:root,
[data-board='walnut'] {
  /* Maple and walnut squares with real grain, in a slim mahogany frame with a brass inlay. */
  --sq-light: #ecd7b0; --sq-light-2: #dcc092;
  --sq-dark: #9c6b45; --sq-dark-2: #7f5233;
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.32' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.30 0 0 0 0 0.15 1.1 0 0 0 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.28' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.22 0 0 0 0 0.11 0 0 0 0 0.04 1.3 0 0 0 -0.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --coord-on-light: #8a5d3b; --coord-on-dark: #f1dcb6;
  --frame-1: #5a2e1a; --frame-2: #3a1c0f; --frame-3: #241008; --frame-edge: #140904;
  --frame-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.22' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.03 0 0 0 0 0.01 1.2 0 0 0 -0.30'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --frame-pad: 2.6%;
  --inlay: #c9a46a;
  --pw-1: #ffffff; --pw-2: #f6efe2; --pw-3: #d3c2a5; --pw-stroke: #3b2a1a;
  --pb-1: #5d5148; --pb-2: #2a221c; --pb-3: #0c0907; --pb-stroke: #000000;
}
[data-board='tournament'],
[data-board='royal'],
[data-board='ebony'],
[data-board='slate'] {
  --grain-light: none; --grain-dark: none; --frame-grain: none; --frame-pad: 3%; --inlay: transparent;
}
[data-board='tournament'] {
  --sq-light: #eeeed2; --sq-light-2: #e3e3c2;
  --sq-dark: #769656; --sq-dark-2: #66854a;
  --coord-on-light: #66854a; --coord-on-dark: #eeeed2;
  --frame-1: #4a4740; --frame-2: #2f2d29; --frame-3: #1f1e1b; --frame-edge: #121110;
  --pw-1: #ffffff; --pw-2: #f5f5f5; --pw-3: #cfcfcf; --pw-stroke: #2b2b2b;
  --pb-1: #6e6e6e; --pb-2: #303030; --pb-3: #101010; --pb-stroke: #000000;
}
[data-board='royal'] {
  --sq-light: #f3e3b5; --sq-light-2: #e7d199;
  --sq-dark: #8a6a3d; --sq-dark-2: #76582f;
  --coord-on-light: #76582f; --coord-on-dark: #f3e3b5;
  --frame-1: #8a6420; --frame-2: #4a3210; --frame-3: #2c1d08; --frame-edge: #1c1205;
  --pw-1: #fff4c7; --pw-2: #e9c46a; --pw-3: #a37a1c; --pw-stroke: #5a400c;
  --pb-1: #a7b0bb; --pb-2: #4b5563; --pb-3: #1f2937; --pb-stroke: #0b0f14;
}
[data-board='ebony'] {
  --sq-light: #f4f4f4; --sq-light-2: #e2e2e2;
  --sq-dark: #2b2b2b; --sq-dark-2: #161616;
  --coord-on-light: #3a3a3a; --coord-on-dark: #d4d4d4;
  --frame-1: #3d3d3d; --frame-2: #151515; --frame-3: #050505; --frame-edge: #000000;
  --pw-1: #ffffff; --pw-2: #f3f3f3; --pw-3: #c4c4c4; --pw-stroke: #111111;
  --pb-1: #6b7280; --pb-2: #1f2937; --pb-3: #030712; --pb-stroke: #a1a1aa;
}
[data-board='slate'] {
  --sq-light: #e4e9f1; --sq-light-2: #d3dbe7;
  --sq-dark: #7d95b5; --sq-dark-2: #6a82a3;
  --coord-on-light: #6a82a3; --coord-on-dark: #e4e9f1;
  --frame-1: #134e4a; --frame-2: #0f3b47; --frame-3: #172554; --frame-edge: #0b2530;
  --pw-1: #ffffff; --pw-2: #eef2f7; --pw-3: #b9c3d1; --pw-stroke: #1e293b;
  --pb-1: #64748b; --pb-2: #1e293b; --pb-3: #020617; --pb-stroke: #020617;
}
