body.jade {
  --bg: #0d1914;
  --surface: #1d3428;
  --inside: #142b22;
  --border: #79643d;
  --trim: #c3a365;
  --ink: #f4e8c9;
  --muted: #c9bc9d;
  --accent: #d8b875;
  --accentink: #1a2519;
  --navbg: #1a3024;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at top, #344b2a, transparent 64rem),
    repeating-linear-gradient(135deg, #e8d1a004 0 1px, transparent 1px 8px);
}

.jade .stage {
  border-color: #91784a;
  background-color: #172d22;
  box-shadow: 0 0 0 3px #0d1b15, 0 0 0 4px #554c30, 0 18px 65px #050e0abf;
}

.jade .mastart {
  border-color: #8b744e;
  box-shadow: inset 0 0 0 4px #27342299, inset 0 0 0 5px #e3c58488;
}

.jade .hero-title {
  color: #fff3cc;
  font-family: Georgia, 'Palatino Linotype', Palatino, serif;
  font-weight: 700;
  text-shadow: 0 2px #323923, 0 0 19px #112718, 0 4px 35px #0b2016;
}

.jade .game-nav {
  border-block: 3px double #b89a62;
  background-color: var(--navbg);
  background-image: linear-gradient(180deg, #caae7421, transparent 50%, #03100868),
    repeating-linear-gradient(110deg, #e6c9880d 0 1px, transparent 1px 8px);
  box-shadow: 0 5px 12px #07181182, inset 0 0 0 2px #111c15ad;
}

.jade .game-nav a:hover,
.jade .game-nav a[aria-current]:not([aria-current='false']) {
  color: #fff3c9;
  background-color: #b39a6133;
  box-shadow: inset 0 -2px #d6af6f;
}

.jade .board {
  background-color: #14291f;
  background-image: linear-gradient(110deg, #090f0a45, transparent 27%, #7f79400f 70%, #090f0a45),
    repeating-linear-gradient(90deg, #b7a5750e 0 1px, transparent 1px 24px);
}

.jade .panel {
  border: 1px solid #9c8252;
  border-radius: 3px 3px 1px 1px;
  background: var(--surface);
  box-shadow: 0 0 0 1px #070f0b, inset 0 0 0 3px #bf9c5e1f, 0 5px 16px #05100a8c;
}

.jade .panel-heading {
  border-block: 1px solid #bb9a61;
  background-color: #203e2e;
  background-image: linear-gradient(180deg, #a0a46e25, transparent 45%, #081e1390),
    repeating-linear-gradient(135deg, #b2975f1a 0 1px, transparent 1px 6px);
  box-shadow: inset 0 -3px #14281d, inset 0 -4px #b79b635c;
}

.jade .panel-heading h2 {
  color: #f5dda1;
  font-family: Georgia, 'Palatino Linotype', Palatino, serif;
  font-weight: 700;
  text-shadow: 0 1px #0b1d12;
}

.jade .panel-heading h2::before {
  display: inline-block;
  width: .43em;
  height: .43em;
  margin-inline: .16em .62em;
  border: 1px solid #d1af6f;
  content: '';
  transform: rotate(45deg) translateY(-.07em);
  box-shadow: inset 0 0 0 1px #142a1d, 0 0 0 1px #142a1d;
}

.jade .panel-body {
  background-color: var(--inside);
  background-image: linear-gradient(90deg, #e9c98e08, transparent 1.2rem),
    repeating-linear-gradient(0deg, #101d130d 0 1px, transparent 1px 4px);
}

.jade :is(.button, .action) {
  border-color: #cba465;
  border-radius: 3px;
  background: linear-gradient(180deg, #efd49a, #c9a15e);
  color: #202619;
  box-shadow: inset 0 0 0 2px #fff1c75c, 0 2px #141d12;
  text-shadow: none;
}

.jade :is(.button, .action):hover {
  background: linear-gradient(180deg, #f8e5b3, #d7b576);
}

.jade :is(.news-feature, .fb-wall, .atlas) {
  border-color: #9c8252;
  background-color: #1a3327;
  box-shadow: inset 0 0 0 2px #b2975f22;
}

.jade .news-feature img { border-color: #bd9d64; box-shadow: 0 0 0 1px #112418; }
.jade .news-copy :is(h2, h3) { color: #ffe4ac; }
.jade .ranks-table th { background-color: #284736; color: #f6e4b4; }
.jade .ranks-table :is(td, th) { border-color: #9c825259; }
.jade .ranks-table tbody tr:nth-child(even) { background-color: #e5c7860b; }
.jade .ranks-table tbody td:first-child { color: #edcb89; }

.jade .rank-tabs :is(a, button),
.jade .atlas label {
  border-color: #947749;
  background-color: #203c2e;
  color: #f2e3ba;
}

.jade .rank-tabs :is(a, button):is(:hover, [aria-selected='true'], [aria-pressed='true'], .active),
.jade .atlas :checked + label {
  border-color: #d1ad6b;
  background-color: #695431;
  color: #fff4d3;
}

.jade :is(a, button, input):focus-visible,
.jade .atlas input:focus-visible + label { outline-color: #f2d08d; }

body.carmesi {
  --bg: #100e10;
  --surface: #292125;
  --inside: #181519;
  --border: #70504b;
  --trim: #b9604d;
  --ink: #f5e2d6;
  --muted: #cebbb3;
  --accent: #e79376;
  --accentink: #301819;
  --navbg: #21171b;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 60% 0%, #542d23, transparent 60rem),
    repeating-linear-gradient(160deg, #db8f7710 0 1px, transparent 1px 16px);
}

.carmesi .stage {
  border-color: #864f48;
  border-radius: 0;
  background-color: #171418;
  box-shadow: 0 0 0 3px #151215, 0 0 0 4px #653b38, 0 18px 65px #09070ac9;
}

.carmesi .mastart {
  border-color: #8d4d43;
  box-shadow: inset 0 0 0 3px #27161b86, inset 0 0 0 4px #ab5e49a6;
}

.carmesi .hero-title {
  color: #ffe1cc;
  font-family: Cambria, Georgia, serif;
  font-weight: 800;
  text-shadow: 0 2px #541e22, 0 4px 18px #34121c, 0 6px 34px #2d1117;
}

.carmesi .game-nav {
  border-block: 1px solid #ab5143;
  background-color: #23191d;
  background-image: linear-gradient(180deg, #b25d4d24 0%, #140f12b5 65%),
    repeating-linear-gradient(123deg, #8b7b7217 0 1px, transparent 1px 9px);
  box-shadow: inset 0 -3px #381f24, inset 0 2px #bd6b5426, 0 4px 10px #0c080b;
}

.carmesi .game-nav a:hover,
.carmesi .game-nav a[aria-current]:not([aria-current='false']) {
  color: #ffe3ce;
  background-color: #7e382f72;
  box-shadow: inset 0 -3px #d36d56;
}

.carmesi .board {
  background-color: #151217;
  background-image: repeating-linear-gradient(120deg, #7d5e5594 0 1px, #100f12 1px 3px, transparent 3px 84px),
    linear-gradient(180deg, #382121 0, #191519 160px);
}

.carmesi .panel {
  --steel-corner: .86rem;
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.carmesi .panel::before,
.carmesi .panel::after {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  content: '';
  clip-path: polygon(var(--steel-corner) 0, 100% 0, 100% calc(100% - var(--steel-corner)),
    calc(100% - var(--steel-corner)) 100%, 0 100%, 0 var(--steel-corner));
}

.carmesi .panel::before {
  inset: -1px;
  background: linear-gradient(145deg, #d87c63, #623936 27%, #4c3334 70%, #ab5e4f);
}

.carmesi .panel::after {
  inset: 1px;
  background: linear-gradient(118deg, #36252a, #211b20 25%, #18151a 70%);
}

.carmesi .panel-heading {
  --steel-rivet: #c38b77;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid #aa5849;
  background: transparent;
}

.carmesi .panel-heading::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  clip-path: polygon(var(--steel-corner) 0, 100% 0, 100% 100%, 0 100%, 0 var(--steel-corner));
  background-color: #422329;
  background-image: linear-gradient(160deg, #a4533f48, transparent 38%, #150e14a0),
    repeating-linear-gradient(120deg, #d7796321 0 1px, transparent 1px 10px);
  box-shadow: inset 0 -3px #301b22;
}

.carmesi .panel-heading::after {
  position: absolute;
  inset: .34rem .38rem auto auto;
  width: .31rem;
  height: .31rem;
  border-radius: 50%;
  pointer-events: none;
  content: '';
  background: radial-gradient(circle at 32% 25%, var(--steel-rivet), #614743 70%);
  box-shadow: 0 0 0 1px #28181b;
}

.carmesi .panel-heading h2 {
  color: #ffd9c3;
  font-family: Cambria, Georgia, serif;
  font-weight: 740;
  letter-spacing: .025em;
}

.carmesi .panel-body { background: transparent; }

.carmesi :is(.button, .action) {
  border-color: #d1866c;
  border-radius: 1px;
  background: linear-gradient(170deg, #933a33, #682826);
  color: #fff1df;
  box-shadow: 2px 2px #251215, inset 0 0 0 1px #eb9f7240;
}

.carmesi :is(.button, .action):hover { background: linear-gradient(170deg, #a8483b, #792d29); }

.carmesi :is(.news-feature, .fb-wall, .atlas) {
  border-color: #754942;
  border-radius: 0;
  background-color: #292021;
  box-shadow: inset 3px 0 #a45545;
}

.carmesi .news-feature img { border-color: #a85d4f; }
.carmesi .news-copy :is(h2, h3) { color: #ffdbc3; }
.carmesi .ranks-table th { background-color: #42282a; color: #ffe7d7; }
.carmesi .ranks-table :is(td, th) { border-color: #a35e4f52; }
.carmesi .ranks-table tbody tr:nth-child(even) { background-color: #aa695811; }
.carmesi .ranks-table tbody td:first-child { color: #f6a889; }

.carmesi .rank-tabs :is(a, button),
.carmesi .atlas label {
  border-color: #97554a;
  border-radius: 0;
  background-color: #33252a;
  color: #f3d9cb;
}

.carmesi .rank-tabs :is(a, button):is(:hover, [aria-selected='true'], [aria-pressed='true'], .active),
.carmesi .atlas :checked + label {
  border-color: #d48770;
  background-color: #7f3932;
  color: #fff1e2;
}

.carmesi :is(a, button, input):focus-visible,
.carmesi .atlas input:focus-visible + label { outline-color: #f2ac8f; }

@media (max-width: 540px) {
  .jade .stage, .carmesi .stage { box-shadow: 0 8px 24px #100d0b82; }
  .carmesi .panel { --steel-corner: .58rem; }
  .carmesi .board { background-image: linear-gradient(180deg, #302021, #171418 14rem); }
}
