/* The Walnut Lounge: decorative only; no changes to board geometry or input. */
body.game-back-gammon.club-play {
  isolation: isolate;
  background: #0e1b2b;
}

body.game-back-gammon.club-play::before {
  content: "";
  display: block;
  position: fixed;
  /* Keep the brass edge clear of the header labels and footer. */
  inset: -24px;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
  background:
    linear-gradient(180deg, #08142240, #0b17200a 34%, #09152226),
    url("walnut-lounge-v1.webp") center / cover no-repeat;
}

/* Opaque-enough suede panels keep small labels readable over the artwork. */
body.game-back-gammon.club-play :is(.turn-console, .dice-console, .match-console) {
  background: linear-gradient(145deg, #1e3448f5, #101f30f5);
  border-color: #d8b57b40;
  box-shadow: inset 0 1px #fbe6b80c, 0 14px 32px #030c184d;
}

body.game-back-gammon.club-play .player-banner {
  background: linear-gradient(105deg, #13293af5, #0f2234f5);
  border-color: #d6b9862e;
  box-shadow: inset 0 1px #ffffff05, 0 4px 14px #020b191f;
}

body.game-back-gammon.club-play .player-orange.is-turn {
  background: linear-gradient(105deg, #334344f5, #192f3cf5);
  border-color: #d9bd7c77;
  box-shadow: inset 3px 0 #dcbd84;
}

body.game-back-gammon.club-play .player-blue.is-turn {
  background: linear-gradient(105deg, #233e56f5, #172f46f5);
  border-color: #80adcf77;
  box-shadow: inset 3px 0 #83b7dc;
}

body.game-back-gammon.club-play .board-frame {
  box-shadow: 0 5px 0 #080f19, 0 18px 38px #03091380, 0 2px 3px #f9d69912;
}

body.game-back-gammon.club-play .board-heading {
  text-shadow: 0 2px 10px #030c1980;
}

body.game-back-gammon.club-play footer {
  border-color: #d8b57b26;
  color: #b2bdc9;
}

/* A portrait crop avoids downloading the larger desktop texture on phones.
   The layer is static: no parallax, animation, blur filters or input handlers. */
@media (max-width: 700px) and (orientation: portrait) {
  body.game-back-gammon.club-play::before {
    background-image:
      linear-gradient(180deg, #0814224d, #0b17201a 34%, #09152240),
      url("walnut-lounge-v1-mobile.webp");
  }
}

@media (forced-colors: active) {
  body.game-back-gammon.club-play::before { display: none; }
}
