/* WOTAN REDGARDEN skin -- third game world, deliberately distinct from Hearthstone (cream, serif) and
   DEADWEIGHT (violet neon): deep garden green with a crimson accent. Loaded together with wotan-hs.css
   (which owns the shared .wn-* topbar rules); this file only adds the rg nav skin + body.rg components
   (all prefixed .rg-). Profiles are per game on purpose: /redgarden/u.html shows REDGARDEN stats only. */
#wotan-nav[data-skin="rg"] {
  --wn-bg: #0e1a14;
  --wn-fg: #eef2e6;
  --wn-dim: #9db3a2;
  --wn-line: #25402f;
  --wn-accent: #d6404b;
  --wn-accent-fg: #fff;
  --wn-hover: #16291f;
  --wn-pop: #12221a;
  --wn-focus: #e9707a;
  --wn-display: "Space Grotesk", ui-monospace, Menlo, Consolas, monospace;
  --wn-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wn-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  border-bottom-width: 2px;
}
#wotan-nav[data-skin="rg"] .wn-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; }

body.rg {
  --rg-bg: #0b1510; --rg-panel: #12221a; --rg-raise: #172b21; --rg-line: #25402f;
  --rg-ink: #eef2e6; --rg-soft: #b5c7b9; --rg-faint: #7f9686;
  --rg-red: #d6404b; --rg-red-deep: #a82c36; --rg-gold: #d8b463; --rg-win: #5fbf7f; --rg-loss: #d6404b;
  margin: 0; background: var(--rg-bg); color: var(--rg-ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.rg-wrap { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1rem 5rem; }
.rg-wrap.narrow { max-width: 820px; }
.rg-eyebrow { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rg-faint); margin: 0 0 .5rem; }
.rg-h1 { font: 700 clamp(2rem, 6vw, 3rem)/1.1 "Space Grotesk", system-ui, sans-serif; margin: 0; }
.rg-h2 { font: 700 1.25rem/1.2 "Space Grotesk", system-ui, sans-serif; margin: 0 0 .75rem; }
.rg-lede { color: var(--rg-soft); max-width: 62ch; margin: .75rem 0 0; }
.rg-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem;
  padding: 1.25rem 0 1.5rem; border-bottom: 2px solid var(--rg-line); margin-bottom: 1.5rem; }
.rg-hero > div:first-child { flex: 1 1 20rem; }
.rg-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.rg-stats b { display: block; font: 700 2rem/1 "Space Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.rg-stats span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rg-faint); }
.rg-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rg-grid.two { grid-template-columns: 1.4fr 1fr; } }
.rg-panel { background: var(--rg-panel); border: 1px solid var(--rg-line); border-radius: 8px; padding: 1rem 1.1rem; }
.rg-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rg-table th { text-align: left; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rg-faint); font-weight: 600; padding: .35rem .5rem; border-bottom: 1px solid var(--rg-line); }
.rg-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--rg-line); }
.rg-table tr:last-child td { border-bottom: 0; }
.rg-table .n { text-align: right; }
.rg-table a { color: var(--rg-ink); font-weight: 600; text-decoration: none; }
.rg-table a:hover { color: var(--rg-red); }
.rg-rank { color: var(--rg-faint); width: 2rem; }
.rg-bar { height: 6px; background: var(--rg-raise); border-radius: 3px; overflow: hidden; min-width: 70px; }
.rg-bar i { display: block; height: 100%; background: var(--rg-win); }
.rg-win { color: var(--rg-win); } .rg-loss { color: var(--rg-loss); }
.rg-pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid; }
.rg-pill.win { color: var(--rg-win); border-color: var(--rg-win); }
.rg-pill.loss { color: var(--rg-loss); border-color: var(--rg-loss); }
.rg-search { width: 100%; max-width: 22rem; padding: .55rem .75rem; border-radius: 6px; border: 1px solid var(--rg-line);
  background: var(--rg-raise); color: var(--rg-ink); font: inherit; margin-bottom: 1rem; }
.rg-btn { display: inline-block; padding: .6rem 1.1rem; border-radius: 6px; background: var(--rg-red); color: #fff; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; }
.rg-btn:hover { background: var(--rg-red-deep); }
.rg-empty { text-align: center; padding: 2.4rem 1rem; color: var(--rg-soft); border: 1px dashed var(--rg-line); border-radius: 8px; }
.rg-note { color: var(--rg-faint); font-size: .85rem; }
.rg-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.rg-steps li { counter-increment: s; padding-left: 2.6rem; position: relative; }
.rg-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--rg-red); color: #fff; font-weight: 700; display: grid; place-items: center; }
.rg a.rg-link { color: var(--rg-gold); }

/* ---- /redgarden/play.html: the game stage (the client is a wasm canvas; nothing here is game logic) ---- */
.rg-playhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: .7rem; }
.rg-h1.sm { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.rg-playhead .rg-eyebrow { margin-bottom: .2rem; }
.rg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rg-grow { flex: 1 1 1rem; }
.rg-status { display: inline-flex; align-items: center; gap: .4rem; font: 600 .72rem/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rg-soft); border: 1px solid var(--rg-line); background: var(--rg-panel); border-radius: 999px; padding: .38rem .8rem; }
.rg-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--rg-faint); }
.rg-online { font-size: .78rem; color: var(--rg-faint); font-variant-numeric: tabular-nums; }
.rg-tool { appearance: none; font: 600 .78rem/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .06em; color: var(--rg-ink); background: var(--rg-panel);
  border: 1px solid var(--rg-line); border-radius: 6px; padding: .5rem .85rem; cursor: pointer; text-decoration: none; }
.rg-tool:hover:not(:disabled) { border-color: var(--rg-gold); }
.rg-tool:focus-visible, .rg-canvas:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 2px; }
.rg-tool:disabled { opacity: .5; cursor: default; }
.rg-tool[hidden] { display: none; }
/* the whole canvas fits the window: its width is capped by the height left under the page header */
.rg-stage { position: relative; width: min(100%, max(640px, calc((100vh - 300px) * 16 / 9))); margin: 0 auto;
  border: 1px solid var(--rg-line); border-radius: 8px; background: #0b1510; aspect-ratio: 16 / 9; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.rg-canvas { display: block; width: 100%; height: 100%; background: #0e1a14; outline: none; touch-action: none; cursor: default; }
.rg-canvas[hidden] { display: none; }
.rg-stage:fullscreen { width: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; background: #000; }
.rg-stage:fullscreen .rg-canvas { width: auto; height: 100%; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; }
.rg-load { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .4rem; color: var(--rg-soft); padding: 1rem; }
.rg-load b { font: 700 1.2rem/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--rg-ink); }
.rg-load[hidden] { display: none; }
.rg-who { margin: .7rem 0 0; font-size: .86rem; color: var(--rg-soft); }
.rg-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .75rem; margin-top: 1.1rem; }
.rg-tip { border: 1px solid var(--rg-line); border-radius: 8px; padding: .8rem .95rem; background: var(--rg-panel); font-size: .88rem; color: var(--rg-soft); line-height: 1.5; }
.rg-tip b { display: block; letter-spacing: .22em; text-transform: uppercase; font-size: .66rem; color: var(--rg-faint); margin-bottom: .4rem; }
.rg-tip kbd { font: 600 .72rem/1 "Space Grotesk", system-ui, sans-serif; padding: .12rem .36rem; border: 1px solid var(--rg-line); border-bottom-width: 2px; border-radius: 4px; background: var(--rg-raise); color: var(--rg-ink); }
.rg-tip a { color: var(--rg-gold); }
.rg-stat { margin: 1rem 0 0; font-size: .72rem; color: var(--rg-faint); font-variant-numeric: tabular-nums; }
.rg-native { margin-top: 1.6rem; border-top: 1px solid var(--rg-line); padding-top: 1rem; color: var(--rg-soft); }
.rg-native summary { cursor: pointer; font-size: .86rem; color: var(--rg-faint); }
.rg-native .rg-steps { margin-top: 1rem; }
.rg-match-hero { font-weight: 600; }
.rg-kd { font-variant-numeric: tabular-nums; color: var(--rg-soft); }
