body.mansionth {
  --theme-gold-100: #f6e4bf;
  --theme-gold-700: #e6bd78;
  --theme-gold-800: #c59656;
  --theme-gold-accent-1: #dfb878;
  --theme-gold-accent-2: #fae8c9;
}

body.mansionth:not([data-theme="light"]) {
  --theme-blue-800: #211419;
  --theme-blue-700: #2c1b21;
  --theme-blue-600: #38242b;
  --theme-blue-500: #62464d;
  --theme-grey-100: #3b292e;
  --theme-grey-200: #5b4147;
  background: #170f13;
}

body.mansionth[data-theme="light"] {
  --theme-blue-800: #fffaf3;
  --theme-blue-700: #f8efe9;
  --theme-blue-600: #f3e5df;
  --theme-blue-500: #dec5bf;
}

.mansionth:not([data-theme="light"]) app-header,
.mansionth:not([data-theme="light"]) .header-container,
.mansionth:not([data-theme="light"]) app-secondary-header .secondary-header {
  background: linear-gradient(105deg, #28151b, #1b1216 76%);
}

.mansionth app-secondary-header .secondary-header {
  border-bottom: 1px solid rgb(230 189 120 / 24%);
}

.mansionth app-header .header-logo img.logo-desktop {
  display: block;
  width: clamp(138px, 16vw, 205px);
  height: auto;
  object-fit: contain;
}

.mansionth[data-theme="light"] app-header img.logo-desktop {
  content: url("/assets/mansionth-wordmark-light.svg");
}

.mansionth app-header #main-register-button {
  background: linear-gradient(135deg, #f3d795, #d5a664);
  border-color: #edc480;
  color: #261417;
}

.mansionth:not([data-theme="light"]) .msports-widget .match-card {
  border-color: #62424a;
  background: linear-gradient(145deg, #3c292e, #2b2028);
}

.mansionth .preview-notice {
  background: #26171d;
  color: #f9ecdb;
  border-color: #a67949;
}

.mansion-hero {
  display: block;
  color: #fff4e7;
  background: #200e15;
}

.mansion-hero swiper-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(360px, 35vw, 530px);
  overflow: hidden;
}

.mansion-hero swiper-slide::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #1b0c16ec, #1b0d15ce 26%, #190d1475 46%, transparent 75%),
    linear-gradient(0deg, #210f188c, transparent 33%);
  pointer-events: none;
}

.mansion-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.mansion-hero-copy {
  width: min(53%, 640px);
  margin-inline-start: clamp(30px, 7vw, 128px);
  padding: 38px 0 52px;
}

.mansion-hero-copy :is(h1,h2) {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
  color: #fff4e3;
}

html[lang="th"] .mansion-hero-copy :is(h1,h2) {
  max-width: 15ch;
  letter-spacing: -.02em;
  line-height: 1.16;
}

.mansion-hero-copy p {
  margin: 16px 0 0;
  font-size: clamp(.94rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: #eadacb;
  text-wrap: pretty;
}

.mansion-hero-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 25px;
  padding: 10px 20px;
  border: 1px solid #f3d18f;
  border-radius: 6px;
  background: linear-gradient(135deg, #f1d79f, #d9aa66);
  color: #291620;
  font-weight: 700;
  text-decoration: none;
}

.mansion-hero-copy a:is(:hover, :focus-visible) {
  background: #ffe7b8;
}

.mansion-hero .preview-slide-dots {
  right: auto;
  left: clamp(30px, 7vw, 128px);
  bottom: 21px;
  gap: 8px;
}

.mansion-hero .preview-slide-dots button {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: #bd926f;
}

.mansion-hero .preview-slide-dots button[aria-current="true"] {
  width: 26px;
  background: #f1c47e;
}

.mansion-archive-note {
  max-width: 1250px;
  margin: 12px auto;
  padding: 10px 16px;
  border-inline-start: 2px solid #c49b67;
  color: inherit;
  background: rgb(195 151 97 / 13%);
}

@media (max-width: 599px) {
  .mansionth app-secondary-header .preview-language-mobile { margin-inline-start: auto; }

  .mansionth app-header .header-logo img.logo-desktop {
    width: clamp(108px, 35vw, 145px);
  }

  .mansion-hero swiper-slide {
    min-height: clamp(295px, 80vw, 380px);
  }

  .mansion-hero-image {
    object-position: 63% 44%;
  }

  .mansion-hero swiper-slide::after {
    background: linear-gradient(90deg, #1b0a15f2, #1b0d15b0 29%, #160c143b 62%, transparent 88%),
      linear-gradient(0deg, #210e1880, transparent 32%);
  }

  .mansion-hero-copy {
    width: 61%;
    margin-inline-start: 16px;
    padding: 29px 0 42px;
  }

  .mansion-hero-copy :is(h1,h2) {
    font-size: clamp(1.62rem, 7vw, 2.7rem);
  }

  .mansion-hero-copy p {
    margin-top: 10px;
    font-size: .87rem;
  }

  .mansion-hero-copy a {
    margin-top: 14px;
    padding-inline: 13px;
    font-size: .9rem;
  }

  .mansion-hero .preview-slide-dots {
    left: 16px;
    bottom: 16px;
  }
}
