/* The artwork belongs to the table header. All game controls stay on their own layer. */
body[data-page=baccarat] {
  --deck-base: #07101e;
  --deck-panel: #0c192a;
  --deck-line: #476179;
  --deck-ice: #8ed9f5;
  --deck-gold: #f2d293;
  background: var(--deck-base);
}
.category-head {
  padding-top: clamp(22px, 3vw, 40px);
}
.category-head h1 {
  color: #f4f3ed;
  margin: 9px 0 15px;
  text-shadow: 0 3px 22px #0c101c;
}
.category-nav a, .mt-inline-bar button, .felt-btn {
  border-color: #466178;
  background: #102135;
  color: #e1eff7;
}
.category-nav a:hover, .category-nav a:focus-visible,
.mt-inline-bar button:hover, .mt-inline-bar button:focus-visible {
  background: #193449;
  border-color: var(--deck-ice);
  color: #fff;
}
.category-play .play-panel {
  overflow: hidden;
  background: linear-gradient(145deg, #16293c, var(--deck-base) 55%);
  padding: 0;
  border: 1px solid var(--deck-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px #0005;
}
#baccarat > header {
  --table-art-width: min(46%, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  min-height: clamp(188px, 17vw, 240px);
  padding: clamp(24px, 4vw, 56px);
  padding-inline-end: calc(var(--table-art-width) + clamp(16px, 2vw, 32px));
  margin: 0;
  background-color: #07111f;
}
#baccarat > header .table-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  left: auto;
  width: var(--table-art-width);
  mask-image: linear-gradient(90deg, transparent, #000 33%);
  background-image: url('/brand/baccarat-circuit-v1.webp');
  background-size: cover;
  background-position: right 54%;
  background-repeat: no-repeat;
  background-color: #050d17;
}
#baccarat .table-art video { object-position: right 54%; }
#baccarat > header .eyebrow {
  color: var(--deck-ice);
  display: flex;
  align-items: center;
  gap: 10px;
}
#baccarat > header .eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg,#447c9d,#abedff);
}
#baccarat > header h3 {
  margin: 7px 0 9px;
  font-size: clamp(28px, 3.5vw, 44px);
  color: #fff3d7;
}
#baccarat > header p { color: #dce9f3; }
.mt-inline {
  border: 0;
  border-top: 1px solid #42617b;
  border-radius: 0;
  background: var(--deck-base);
}
.mt-inline-bar {
  background: linear-gradient(100deg, #182d43, #0d192a 65%);
  border-bottom: 1px solid #2a435a;
}
.mt-inline-bar::before {
  content: '';
  flex: 1;
  height: 2px;
  margin-right: 20px;
  background: linear-gradient(90deg, #7bc9e9 0 20px, transparent 20px 25px, #8e754e 25px 40px, transparent 40px 45px, #36556c 45px, transparent 80%);
}
.mt-inline-screen > iframe { background: #101925; }
.category-guide > details#baccarat-guide, .category-entry .felt {
  border-color: #3a5268;
}
.category-guide > details#baccarat-guide, .category-entry .felt {
  background: linear-gradient(130deg, #15293d, #0b1728 66%);
}
/* One continuous table surface behind the four roadmap articles. */
.category-features { border-color: #765059; }
#feature-baccarat {
  --road-art: url('/brand/baccarat-road-felt-v1.webp');
  --felt-base: #201017;
  background: linear-gradient(0deg, #160b1273, #160b1238 65%, transparent),
              var(--road-art) center / cover no-repeat var(--felt-base);
}
#feature-baccarat .matrix-heading {
  background: linear-gradient(90deg, #190c15bc, transparent 62%);
  color: #ffe5b4;
}
#feature-baccarat .matrix-cell {
  background: #1b0e167d;
  border-color: #ac7b8566;
}
#feature-baccarat .matrix-cell h4 { color: #fff0dd; }
#feature-baccarat .matrix-cell p { color: #f4e9e6; }
#feature-baccarat .feature-tip { border-color: #d18c99; }
#feature-baccarat .feature-tip strong, #feature-baccarat .feature-link { color: #ffe1b6; }

@media (max-width: 650px) {
  #feature-baccarat { background: var(--felt-base); }
  #feature-baccarat .matrix-heading {
    min-height: 82px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1b0d17b3, transparent 80%),
                var(--road-art) right top / 100% auto no-repeat;
  }
  #feature-baccarat .matrix-cell:last-child {
    padding-bottom: 48px;
    background: linear-gradient(to bottom, var(--felt-base) 8%, #201017e6 55%, #201017ad 80%, #20101733),
                var(--road-art) left bottom / 100% auto no-repeat;
  }
}
.guide-host { background: radial-gradient(ellipse at 50% 35%, #32547266, transparent 65%); }
.guide-step-tabs button:not([aria-selected=true]), .guide-controls button, .guide-lesson {
  background: #0b1a2b;
  border-color: #385065;
  color: #d3e1eb;
}
.guide-callout { background: #1b3044; }
@media (max-width: 650px) {
  #baccarat > header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 12px;
    min-height: 0;
    padding: 20px;
  }
  #baccarat > header .table-art {
    position: relative;
    grid-area: 1 / 2 / 3 / 3;
    width: auto;
    min-height: clamp(90px, 23vw, 135px);
    margin: -20px -20px 0 0;
    background-position: right center;
  }
  #baccarat > header .eyebrow {
    grid-area: 1 / 1;
    align-self: end;
  }
  #baccarat > header h3 {
    grid-area: 2 / 1;
    align-self: start;
    font-size: clamp(22px, 6vw, 32px);
  }
  #baccarat > header p {
    grid-column: 1 / -1;
    margin-top: 14px;
  }
}

#three-treasures, #guide-tab-3 { scroll-margin-top: 96px; }
