/* Sprint 13 — `highlander` legacy theme.
 *
 * Black-and-gold tartan theme — the classic Sprint 7 default for users
 * who never picked a theme. Migrated from public/styles/themes.css.
 *
 * Bespoke card-back: a per-card gold-spade emblem on near-black
 * (preserved from Sprint 12 close). The bespoke ::before art carries
 * its own colors + shapes, so the default mask ::after emblem layer
 * is hidden via --card-emblem-display: none and --card-back-mask: none.
 *
 * Self-contained per the Sprint 13 refactor contract: every theme
 * file ships all 13 primary tokens + card-back tokens.
 *
 * Authoring note: don't put leading `--name:` in comments — the L5
 * contrast linter regex matches the first occurrence.
 */

body[data-theme="highlander"] {
  --bg:          #f4f0e4;
  --paper:       #f4f0e4;
  --ink:         #1a1a1a;
  --ink-soft:    #5a5a5a;
  --felt-mid:    #2a2a2a;
  --card-bg:     #f4f0e4;
  --card-border: #b8ad91;
  --red:         #d65555;
  --spade:       #1a1a1a;
  --accent:      #f5c518;
  --team-ns:     #4a7c5a;
  --team-ew:     #9c6b50;
  --amber:       #f59e0b;
  --ink-on-team-ew: #000;
  --name-on-paper-ew: color-mix(in oklab, var(--team-ew) 70%, black);

  /* Sprint 13 post-review (operator) — render the AUTHENTIC MacLeod of
     Lewis tartan (the "Loud MacLeod"; STA #2517), the canonical Scottish
     black-and-gold tartan and the obvious clan reference for a theme
     called "Highlander" (Connor MacLeod). Replaces the earlier stylized
     diagonal cross-hatch — real Scottish tartans are NEVER diagonal;
     they are woven warp+weft, so always rectilinear.

     Threadcount (half-sett, mirrored): K/4 Y32 K32 Y4 R2 Y4 K32 Y32 K/4
       K = black, Y = yellow/gold, R = red overcheck
     Total 146 threads per full sett, balanced (~50% black, ~50% gold,
     a 2-thread red accent at the pivot). Scaled to a 100px SVG sett:
       0-3    K (pivot)
       3-25   Y (wide gold)
       25-47  K (wide black ground)
       47-50  Y (narrow gold)
       50-51  R (red overcheck)
       51-54  Y (narrow gold)
       54-76  K (wide black ground)
       76-98  Y (wide gold)
       98-100 K (pivot)
     Same sett runs perpendicular for the weft.

     Weave fidelity via stacked 70%-alpha overlays:
       Y warp × Y weft = ~91% yellow (bright gold square)
       Y warp × K weft = ~70% yellow (olive — the classic
                                       cross-over shade)
       K × K           = solid black
       R × R           = bright red dot at center of each repeat
       R × Y / Y × R   = orange (correct tartan render)
     This matches how a real woven tartan reads at small scale. */
  --card-back-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 144' preserveAspectRatio='xMidYMid meet'%3E%3Cdefs%3E%3Cpattern id='t' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='%230a0a0a'/%3E%3Cg opacity='0.7'%3E%3Crect x='3' y='0' width='22' height='100' fill='%23f5c518'/%3E%3Crect x='47' y='0' width='3' height='100' fill='%23f5c518'/%3E%3Crect x='51' y='0' width='3' height='100' fill='%23f5c518'/%3E%3Crect x='76' y='0' width='22' height='100' fill='%23f5c518'/%3E%3Crect x='50' y='0' width='1' height='100' fill='%23b22020'/%3E%3C/g%3E%3Cg opacity='0.7'%3E%3Crect x='0' y='3' width='100' height='22' fill='%23f5c518'/%3E%3Crect x='0' y='47' width='100' height='3' fill='%23f5c518'/%3E%3Crect x='0' y='51' width='100' height='3' fill='%23f5c518'/%3E%3Crect x='0' y='76' width='100' height='22' fill='%23f5c518'/%3E%3Crect x='0' y='50' width='100' height='1' fill='%23b22020'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='144' fill='url(%23t)'/%3E%3Crect x='3' y='3' width='94' height='138' rx='6' fill='none' stroke='%23f5c518' stroke-width='2.5'/%3E%3C/svg%3E");
  --card-back-size: 100% 100%;
  --card-back-repeat: no-repeat;
  --card-back-position: center;
  /* Bespoke art carries its own colors & shapes — hide the default
     mask emblem ::after layer so it doesn't paint over the bespoke. */
  --card-back-mask: none;
  --card-emblem-display: none;
}
