/* Page-specific styles for special-promotion.html. Shared header, footer and fonts come from css/style.css. */
/* แก้สีหลักของเว็บไซต์ได้ที่นี่ */
:root {
  color-scheme: dark;
  --bg: #081522;
  --panel: #102334;
  --accent: #14799e;
  --accent-hover: #0d526f;
  --accent-soft: rgba(75, 183, 222, 0.12);
  --text: #f5f5f5;
  --muted: #aaa;
  --line: #294355;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sukhumvit Set', 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a0e9f7;
  outline-offset: 5px;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 12px;
  background: #fff;
  color: #091725;
}
.skip:focus {
  top: 10px;
}
/* ภาพ Hero แยกสำหรับจอคอมและจอ Tablet/Mobile */
.hero {
  --hero-image-size: auto 910px;
  height: 910px;
  background: #160c0e;
  position: relative;
  overflow: clip;
}
.hero-art {
  position: absolute;
  inset: 0;
  background: var(
      --hero-desktop-image,
      url('assets/images/promotions/special/hero-desktop.webp')
    )
    center top / var(--hero-image-size) no-repeat;
  pointer-events: none;
  transform-origin: center top;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 140px;
  width: 100%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 14px;
  color: #ddd;
  text-align: center;
}
.hero-scroll span {
  display: block;
  font-size: 24px;
}
.wrap {
  width: min(1240px, calc(100% - 64px));
  margin: auto;
}
.section {
  padding: 72px 0 80px;
  text-align: left;
}
.eyebrow {
  margin: 0 0 12px;
  color: #be87f3;
  font:
    600 12px/1.5 'Sukhumvit Set',
    'Sarabun',
    sans-serif;
  letter-spacing: 2px;
}
h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}
.subtitle {
  margin: 14px 0 36px;
  color: var(--muted);
  max-width: 720px;
}
.divider {
  height: 1px;
  width: 100%;
  margin: 26px 0;
  background: var(--line);
  position: relative;
}
.divider::before,
.divider::after {
  content: none;
}
.divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.products {
  background: var(--bg);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.edition {
  align-self: flex-start;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #cba4f2;
  background: var(--accent-soft);
  border: 1px solid #14799e30;
  padding: 4px 10px;
  border-radius: 30px;
}
/* รูปไอเท็มแยกไฟล์ ผูกกับ item key จากระบบหลังบ้าน */
.product-art {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 160px;
  margin: 8px auto 12px;
  object-fit: contain;
}
.product h3 {
  margin: 4px 0 6px;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
}
.product p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 30px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background: var(--accent);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: #484848;
  color: #ddd;
}
.product .btn {
  width: 100%;
  margin-top: auto;
  font-size: 14px;
}
.bonus {
  border-top: 1px solid var(--line);
  background: #0d2031;
}
.account {
  margin: 36px 0 40px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 30px;
  align-items: center;
}
.account h3 {
  grid-column: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.account p {
  grid-column: 1;
  color: var(--muted);
  margin: 4px 0 0;
}
.demo-tag {
  grid-column: 1;
  justify-self: start;
  display: inline-block;
  border: 1px solid #414141;
  border-radius: 30px;
  color: #bbb;
  font-size: 12px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}
.reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.reward strong {
  color: #fff;
  font:
    600 30px/1.4 'Sukhumvit Set',
    'Sarabun',
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.reward small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.reward-art {
  width: 140px;
  height: 130px;
  max-width: 100%;
  margin: 4px auto;
  background: url('../bonuses.webp') var(--position) -880px / 3000px 1920px
    no-repeat;
}
.reward h3 {
  font-size: 16px;
  font-weight: 600;
  min-height: 54px;
  margin: 0 0 18px;
}
.reward .btn {
  font-size: 14px;
  padding: 8px 12px;
  width: 100%;
  margin-top: auto;
}
.grand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  margin: 32px auto 0;
  width: min(680px, 100%);
  padding: 32px;
  border: 1px solid #704496;
  border-radius: var(--radius);
  background: #24202a;
  text-align: left;
}
.grand-art {
  flex: none;
  width: 140px;
  height: 140px;
  background: url('../bonuses.webp') -1430px -1450px / 3000px 1920px no-repeat;
}
.grand h3 {
  margin: 6px 0;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}
.grand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.note {
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 0;
  text-align: center;
}
.rules {
  padding: 64px 0;
  background: #102334;
}
.rules-content {
  width: min(1040px, calc(100% - 64px));
  margin: auto;
}
.rules h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: #aaa;
}
.rules ol {
  padding-left: 20px;
  margin: 0;
  color: #999;
  font-size: 14px;
  line-height: 1.9;
}
.rules li + li {
  margin-top: 4px;
}
@media (max-width: 540px) {
  .rules {
    padding: 40px 0;
  }
  .rules-content {
    width: calc(100% - 40px);
  }
  .rules h2 {
    font-size: 20px;
  }
}
dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 36px;
  border: 1px solid #484848;
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 100px #0009;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font-size: 28px;
  padding-right: 28px;
}
dialog p {
  color: #bbb;
  white-space: pre-line;
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #303030;
  color: #ddd;
  border: 0;
  font-size: 26px;
  line-height: 1;
}
dialog .btn {
  margin-top: 8px;
}
.account > .btn {
  grid-column: 2;
  grid-row: 1 / 4;
}
.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
}

.grand .eyebrow {
  color: #cba4f2;
  font-size: 12px;
}
.product-art,
.reward-art,
.grand-art {
  mask-image: radial-gradient(ellipse at center, #000 38%, transparent 72%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 38%,
    transparent 72%
  );
}
.close:hover {
  background: #414141;
}
@media (max-width: 760px) {
  .account {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .account > .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 18px;
  }
}
@media (min-width: 1900px) {
  .hero {
    --hero-image-size: cover;
    height: calc(100vw * 0.30333);
    min-height: 910px;
  }
}
@media (max-width: 900px) {
  .hero {
    height: 710px;
    --hero-image-size: auto 710px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .hero {
    height: 490px;
    --hero-image-size: auto 490px;
  }
  .hero-scroll {
    bottom: 8px;
    font-size: 14px;
  }
  .wrap {
    width: calc(100% - 28px);
  }
  .section {
    padding: 45px 0;
  }
  .subtitle {
    font-size: 16px;
  }
  .product-grid {
    gap: 12px;
  }
  .product {
    padding: 16px 12px;
  }
  .product-art {
    max-width: none;
    width: 200px;
    position: relative;
    flex-shrink: 0;
    transform: scale(0.75);
    margin-top: -5px;
    margin-bottom: -10px;
  }
  .product {
    overflow: hidden;
  }
  .product h3 {
    font-size: 17px;
  }
  .product p {
    font-size: 14px;
  }
  .product .btn {
    padding: 8px;
  }
  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .reward:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }
  .grand {
    padding: 20px 12px;
    gap: 6px;
  }
  .grand-art {
    width: 110px;
    background-position-x: -1445px;
  }
  .grand h3 {
    font-size: 17px;
  }
  .edition {
    font-size: 11px;
    padding: 3px 8px;
  }
  .grand .eyebrow {
    font-size: 11px;
  }
  dialog {
    padding: 26px;
  }
}

/* Editorial layout: spacious typography, quiet surfaces, Aion2 Penguin purple. */
:root {
  --bg: #080808;
  --panel: #151515;
  --muted: #969699;
  --line: #292929;
  --radius: 24px;
}
html {
  scroll-padding-top: 88px;
}
html.inertial-wheel-active {
  scroll-behavior: auto;
}
body {
  background: var(--bg);
}
.wrap {
  width: min(1080px, calc(100% - 96px));
}
.hero {
  height: auto;
  min-height: 0;
  background: var(--bg);
  overflow: visible;
  padding: 106px 0 116px;
}
.hero::after {
  content: none;
}
.hero .eyebrow {
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(52px, 6.8vw, 88px);
  line-height: 1.22;
  letter-spacing: -2.8px;
  margin: 0;
  font-weight: 600;
}
.hero h1 span {
  color: #a75aef;
}
.hero-description {
  margin: 34px 0 24px;
  max-width: 790px;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.6;
  font-weight: 600;
  color: #a1a1a6;
}
.text-link {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: #b777f5;
  font-size: 20px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.section {
  padding: 110px 0;
}
.products {
  background: #101010;
}
.eyebrow {
  color: #b777f5;
  letter-spacing: 2px;
  font-size: 11px;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  letter-spacing: -1.6px;
  line-height: 1.25;
}
.campaign-title {
  font-size: clamp(25px, 4.6vw, 60px);
  white-space: nowrap;
}
.muted-heading {
  color: #858589;
}
.subtitle {
  font-size: 20px;
  line-height: 1.7;
  margin: 24px 0 50px;
  max-width: 640px;
}
.divider {
  display: none;
}
.campaign-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin: 24px 0 38px;
}
.campaign-meta .subtitle {
  margin: 0;
}
.account-balance {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #f3f3f5;
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 148px;
  min-height: 44px;
  padding: 8px 15px 8px 20px;
  border-radius: 999px;
  background: #303033;
  color: #f1f1f3;
  font:
    600 16px/1.4 'Sukhumvit Set',
    'Sarabun',
    sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.balance-pill img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.balance-refresh {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c895f7;
  font-size: 21px;
  line-height: 1;
}
.balance-refresh:hover { background: rgba(200, 149, 247, .14); }
.balance-refresh.is-loading span { animation: shop-spin .8s linear infinite; }
@keyframes shop-spin { to { transform: rotate(360deg); } }
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product {
  padding: 36px 32px 34px;
  min-height: 410px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #1a1a1c;
  overflow: hidden;
}

.edition {
  border: 0;
  padding: 0;
  background: none;
  color: #97979d;
  font-size: 11px;
  letter-spacing: 1.6px;
}
.product > .edition,
#detail-dialog > .eyebrow {
  display: none;
}
.product-art {
  margin: 30px auto 24px;
  transform: scale(1.18);
  flex-shrink: 0;
}
.product h3 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
.product p {
  font-size: 16px;
  margin: 6px 0 20px;
}
.product .btn {
  width: auto;
  background: transparent;
  padding: 8px 12px;
  color: #bc84f4;
  font-size: 16px;
  font-weight: 600;
}
.product .btn:hover {
  background: #14799e1a;
}
.bonus {
  background: var(--bg);
  border: 0;
}
.account {
  margin: 40px 0 60px;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}
.account h3 {
  font-size: 23px;
}
.demo-tag {
  padding: 0;
  border: 0;
  color: #999;
  font-size: 11px;
}
.account > .btn {
  font-size: 14px;
}
.reward-grid {
  gap: 14px;
}
.reward {
  border-color: transparent;
  border-radius: 20px;
  padding: 28px 12px 20px;
}
.reward strong {
  font-size: 28px;
  letter-spacing: -1px;
}
.reward .btn {
  border: 0;
  color: #bc84f4;
  background: none;
  font-size: 14px;
}
.reward h3 {
  font-size: 15px;
}
.grand {
  width: 100%;
  margin-top: 60px;
  padding: 65px 8%;
  gap: 60px;
  border: 0;
  border-radius: 28px;
  background: #18141e;
}
.grand-art {
  width: 140px;
  margin: 0 30px;
  transform: scale(1.5);
}
.grand h3 {
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -1px;
}
.grand p {
  font-size: 17px;
}
.grand .eyebrow {
  font-size: 11px;
  margin-bottom: 16px;
}
.grand .btn {
  border: 0;
  padding-left: 0;
  color: #bc84f4;
  background: transparent;
  font-weight: 600;
}
.note {
  font-size: 12px;
  margin-top: 32px;
}
.rules {
  background: #101010;
  padding: 60px 0;
}
.rules-content {
  width: min(1080px, calc(100% - 96px));
}
.rules h2 {
  color: #c2c2c5;
  letter-spacing: 0;
  font-size: 22px;
}
.rules ol {
  font-size: 14px;
  line-height: 2;
}
.main-footer {
  background: #101010;
  border-top: 1px solid #142e42;
}
dialog {
  border-radius: 28px;
  padding: 40px;
}
dialog h2 {
  letter-spacing: -0.5px;
}
@media (max-width: 1024px) {
  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    padding-top: 80px;
  }
}
@media (max-width: 700px) {
  .wrap,
  .rules-content {
    width: calc(100% - 44px);
  }
  .hero {
    padding: 68px 0 78px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 26px;
  }
  .hero h1 {
    font-size: clamp(36px, 8.7vw, 60px);
    letter-spacing: -1.2px;
    line-height: 1.3;
  }
  .hero-description {
    font-size: 20px;
    margin-top: 26px;
  }
  .desktop-break {
    display: none;
  }
  .text-link {
    font-size: 17px;
  }
  .section {
    padding: 72px 0;
  }
  h2 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .subtitle {
    font-size: 17px;
    margin-bottom: 34px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product {
    min-height: 370px;
    padding: 28px;
  }
  .product-art {
    margin: 22px auto;
    transform: scale(1.1);
  }
  .product h3 {
    font-size: 26px;
  }
  .account {
    margin-bottom: 36px;
  }
  .account h3 {
    font-size: 22px;
  }
  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .reward:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }
  .reward {
    padding: 24px 8px 16px;
  }
  .reward strong {
    font-size: 26px;
  }
  .grand {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 28px;
    margin-top: 40px;
  }
  .grand-art {
    width: 140px;
    background-position-x: -1430px;
    transform: scale(1.2);
    margin: 10px auto;
  }
  .grand h3 {
    font-size: 29px;
  }
  .grand p {
    font-size: 16px;
  }
  .rules {
    padding: 44px 0;
  }
}

/* Campaign artwork and bottom fade follow the supplied hero reference. */
.hero {
  --hero-image-size: auto 100svh;
  --hero-fade-color: #101010;
  height: 100svh;
  min-height: 0;
  padding: 0;
  background: var(--hero-fade-color);
  overflow: clip;
}
.hero-art {
  background-image: var(
    --hero-desktop-image,
    url('assets/images/promotions/special/hero-desktop.webp')
  );
  background-position: center top;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(260px, 30svh, 360px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16, 16, 16, 0.1) 40%,
    rgba(16, 16, 16, 0.58) 76%,
    var(--hero-fade-color) 100%
  );
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero {
    --hero-image-size: cover;
    height: 100svh;
  }
  .hero-art {
    background-image: var(
      --hero-mobile-image,
      var(
        --hero-desktop-image,
        url('assets/images/promotions/special/hero-mobile.webp')
      )
    );
    background-position: center top;
  }
}
@media (max-width: 540px) {
  .hero-scroll {
    bottom: 2px;
  }
}

/* A directional arrow makes the scroll cue explicit. */
.hero-scroll .scroll-arrow {
  display: block;
  margin: 8px auto 0;
  animation: scroll-cue 2.4s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .scroll-arrow {
    animation: none;
  }
}

/* Use the supplied font's real weights consistently across the page. */
.btn {
  font-weight: 600;
}
.product .btn,
.reward .btn,
.grand .btn {
  font-weight: 600;
}

/* Explicit viewport positioning also supports embedded browser dialog rendering. */
#detail-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 3001;
}
#detail-dialog:not([open]) {
  display: none;
}
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000b;
  backdrop-filter: blur(8px);
}
.detail-backdrop[hidden] {
  display: none;
}
#detail-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
}
@media (max-width: 540px) {
  #detail-dialog {
    padding: 28px 24px;
  }
}

.hero-scroll {
  bottom: 70px;
  min-width: 190px;
  padding: 8px 20px 4px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
}
.hero-scroll .scroll-arrow {
  width: 34px;
  height: 34px;
}
@media (max-width: 540px) {
  .hero-scroll {
    bottom: 70px;
    min-width: 170px;
    padding: 8px 16px 2px;
    font-size: 16px;
  }
  .hero-scroll .scroll-arrow {
    width: 30px;
    height: 30px;
  }
}

/* Independent translate keeps hover motion separate from GSAP scroll reveals. */
.product,
.reward {
  translate: 0 0;
  transition:
    translate 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product:hover,
  .reward:hover {
    translate: 0 -8px;
    border-color: transparent;
    box-shadow: 0 18px 36px #0003;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product:hover,
  .reward:hover {
    translate: 0 0;
  }
}

/* Three packages with a distinct diamond price action. */
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product {
  padding: 30px 22px;
}
.product h3 {
  font-size: 24px;
}
.product-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.product-actions .btn {
  margin-top: 0;
}
.product .price-button {
  min-width: 170px;
  min-height: 48px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  gap: 10px;
}
.price-button img {
  order: -1;
  object-fit: contain;
  flex-shrink: 0;
}
.product .price-button:disabled {
  cursor: default;
  background: #26222c;
  color: #bbb;
  transform: none;
}
.product .price-button:not(:disabled):hover {
  background: var(--accent-hover);
}

.purchase-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.purchase-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.purchase-modal-box {
  width: min(592px, 100%);
  min-height: 251px;
  display: flex;
  flex-direction: column;
  padding: 24px 37px;
  border: 1px solid #575757;
  border-radius: 25px;
  background: linear-gradient(
    0deg,
    rgba(18, 18, 18, 0.8) 4%,
    rgba(32, 32, 32, 0.8) 100%
  );
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.purchase-modal-overlay.is-active .purchase-modal-box {
  transform: translateY(0);
}
.purchase-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.purchase-modal-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.45px;
}
.purchase-modal-close {
  padding: 0;
  border: 0;
  background: none;
  color: #e3e3e3;
  font-size: 28px;
  line-height: 1;
  transition:
    color 0.2s,
    transform 0.2s;
}
.purchase-modal-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}
.purchase-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-align: center;
}
.purchase-quantity-control {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}
.purchase-quantity-stepper {
  display: grid;
  grid-template-columns: 42px minmax(72px, 96px) 42px;
  align-items: stretch;
  height: 42px;
  border: 1px solid #777;
  border-radius: 6px;
  overflow: hidden;
}
.purchase-quantity-step {
  border: 0;
  background: #292929;
  color: #fff;
  font: inherit;
  font-size: 21px;
  cursor: pointer;
}
.purchase-quantity-step:hover {
  background: #444;
}
.purchase-quantity-stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-inline: 1px solid #777;
  border-radius: 0;
  background: #091725;
  color: #fff;
  font: inherit;
  font-size: 17px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.purchase-quantity-stepper input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.purchase-quantity-stepper input::-webkit-inner-spin-button,
.purchase-quantity-stepper input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.purchase-unit-price {
  color: #c4c4c4;
  font-size: 13px;
}
.purchase-modal-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #c895f7;
  line-height: 1.7;
}
.purchase-modal-price img {
  object-fit: contain;
}
.purchase-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.purchase-modal-button {
  flex: 1;
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 50px;
  font:
    600 16px/1.7 'Sukhumvit Set',
    'Sarabun',
    sans-serif;
  letter-spacing: 0.45px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.purchase-cancel {
  background: #fff;
  color: #0a1928;
}
.purchase-cancel:hover {
  background: #e0e0e0;
}
.purchase-confirm {
  background: var(--accent);
  color: #fff;
}
.purchase-confirm:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 12px rgba(75, 183, 222, 0.45);
}
@media (max-width: 540px) {
  .purchase-modal-box {
    min-height: 230px;
    padding: 22px 24px;
  }
  .purchase-modal-actions {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
}
@media (max-width: 700px) {
  .campaign-meta {
    gap: 14px;
    margin-bottom: 30px;
  }
  .account-balance {
    justify-content: flex-start;
  }
}

/* Inspect the package directly beside its artwork. */
.product-visual {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.inspect-pack {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #242426;
  color: #eee;
}
.product-actions {
  padding-top: 6px;
}

/* Hover preview is outside the cards so their clipping cannot hide it. */
.pack-preview {
  position: fixed;
  z-index: 1000001;
  width: min(420px, calc(100vw - 24px));
  padding: 20px 18px;
  border: 1px solid #555;
  border-radius: 22px;
  background: rgba(12, 12, 14, 0.97);
  box-shadow: 0 18px 48px #0008;
}
.pack-preview[hidden] {
  display: none;
}
.pack-preview::after {
  content: '';
  position: absolute;
  left: var(--arrow-x);
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #0c0c0e;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
  transform: translateX(-50%) rotate(45deg);
}
.pack-preview.below::after {
  top: -8px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}
.preview-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}
.preview-note {
  margin: 3px 0 12px;
  color: #999;
  font-size: 11px;
}
.pack-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
}
.pack-item {
  text-align: center;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
}
.pack-item > span {
  display: block;
  color: #d5d0cb;
}
.pack-item > strong {
  display: block;
  font-weight: 600;
  color: #fff;
}
.pack-item-art {
  display: block;
  width: 80px;
  height: 72px;
  margin: 0 auto 5px;
  object-fit: contain;
}
@media (max-height: 450px) {
  .pack-preview {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}

.pack-preview {
  width: min(840px, calc(100vw - 24px));
}
.pack-items {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .pack-preview {
    max-height: min(520px, calc(100dvh - 24px));
    overflow-y: auto;
  }
  .pack-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pack-preview::after {
    display: none;
  }
}

.fashion {
  background: #080808;
}
.fashion-tabs {
  display: flex;
  gap: 8px;
  width: fit-content;
  padding: 6px;
  border: 1px solid #303033;
  border-radius: 40px;
  margin: 0 0 32px;
}
.fashion-tabs button {
  border: 0;
  border-radius: 30px;
  padding: 12px 28px;
  background: transparent;
  color: #aaa;
  font-weight: 600;
}
.fashion-tabs button[aria-selected='true'] {
  background: #14799e;
  color: #fff;
}
.fashion-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: #171719;
  border-radius: 28px;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.fashion-panel.is-leaving {
  opacity: 0;
  transform: translateX(-28px);
}
.fashion-panel.is-entering {
  opacity: 0;
  transform: translateX(28px);
  transition: none;
}
.fashion-image-button {
  position: relative;
  border: 0;
  background: #202022;
  padding: 36px 24px 64px;
  min-width: 0;
  cursor: zoom-in;
  color: #ddd;
}
.fashion-image-button > img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
}
.fashion-zoom-label {
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 100%;
  font-size: 13px;
}
.fashion-copy {
  padding: 64px 40px;
  align-self: center;
}
.fashion-package {
  color: #aaa;
  font-size: 12px;
  letter-spacing: 2px;
}
.fashion-copy h3 {
  font-size: 32px;
  line-height: 1.35;
  margin: 18px 0;
}
.fashion-copy > p:not(.fashion-price) {
  color: #aaa;
}
.fashion-price {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
  margin: 28px 0;
}
.fashion-placeholder {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 32px;
}
#detail-dialog.image-dialog {
  width: min(920px, calc(100% - 32px));
}
#detail-image:not([hidden]) {
  display: block;
  width: 100%;
  height: 60dvh;
  object-fit: contain;
  margin: 20px 0;
}
.pack-fashion-link {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.pack-fashion-link > span,
.pack-fashion-link > strong {
  display: block;
}
.pack-fashion-link:hover {
  background: #14799e26;
}
@media (max-width: 700px) {
  .fashion-tabs {
    width: 100%;
  }
  .fashion-tabs button {
    flex: 1;
    padding: 10px 12px;
  }
  .fashion-panel {
    grid-template-columns: 1fr;
  }
  .fashion-image-button > img {
    height: 390px;
  }
  .fashion-copy {
    padding: 28px;
  }
  .fashion-copy h3 {
    font-size: 27px;
  }
}

/* Image preview uses only the top-right close control. */
#detail-dialog.image-dialog > .eyebrow,
#detail-dialog.image-dialog > form {
  display: none;
}
/* Solid package preview without an outline, including its pointer. */
.pack-preview {
  border: 0;
  background: #0c0c0e;
}
.pack-preview::after {
  border: 0;
  background: #0c0c0e;
}

@media (prefers-reduced-motion: reduce) {
  .fashion-panel {
    transition: none;
  }
}

/* Keep the shop header attached to the viewport like the promotion page. */
.custom-nav {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 2500;
}

.custom-nav .nav-pill-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  min-height: 0;
  margin: 0 10px;
  padding: 10px 25px;
  background: rgba(9, 4, 30, 0.82) !important;
  border-color: rgba(137, 113, 214, 0.2);
}

.custom-nav:not(.nav-scrolled) .special-icons-group {
  gap: 15px;
}

.custom-nav:not(.nav-scrolled) .custom-dropdown:first-child {
  width: 30px;
  justify-content: center;
}

.custom-nav .nav-links-group,
.custom-nav .custom-link,
.custom-nav .special-icons-group,
.custom-nav .custom-dropdown,
.custom-nav .icon-link {
  align-items: center;
  line-height: 1.4;
}

.custom-nav .icon-link,
.custom-nav .custom-link {
  display: flex;
}

.custom-nav .special-icon-img,
.custom-nav .nav-icon-sm {
  display: block;
  flex: 0 0 auto;
}

@media (min-width: 1025px) {
  .custom-nav.nav-scrolled {
    top: 0;
    padding: 0;
    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid #292929;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .custom-nav.nav-scrolled .nav-pill-container {
    max-width: 1080px;
    min-height: 66px;
    margin: 0 48px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .custom-nav.nav-scrolled .main-logo {
    width: 95px;
    height: 39px;
  }

  .custom-nav.nav-scrolled .btn-download {
    background: #14799e !important;
    border: 0;
    color: #fff;
  }

  .custom-nav.nav-scrolled .btn-download:hover {
    background: #0d526f !important;
    border: 0;
  }
}

@media (max-width: 1024px) {
  .custom-nav {
    top: 20px;
    padding: 0;
  }

  .custom-nav.nav-scrolled {
    top: 20px;
    padding: 0 30px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.custom-nav {
  position: absolute !important;
  top: 20px;
  padding: 0;
  z-index: 2500;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease;
}

.custom-nav .nav-pill-container {
  max-width: 1400px;
  min-height: 0;
  margin: 0 10px;
  padding: 10px 25px;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.custom-nav.nav-scrolled {
  position: fixed !important;
  top: 0;
  left: 0;
  padding: 0;
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid #292929;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.custom-nav.nav-scrolled .nav-pill-container {
  max-width: 1080px;
  min-height: 66px;
  margin: 0 48px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.custom-nav.nav-scrolled .main-logo {
  width: 95px;
  height: 39px;
}

.custom-nav.nav-scrolled .btn-download {
  background: #14799e !important;
  border: 0;
  color: #fff;
}

.custom-nav.nav-scrolled .btn-download:hover {
  background: #0d526f !important;
  border: 0;
}

@media (max-width: 1024px) {
  .custom-nav.nav-scrolled {
    position: absolute !important;
    top: 20px;
    padding: 0 30px !important;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .custom-nav.nav-scrolled .nav-pill-container {
    max-width: none;
    min-height: 0;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 0;
    background: transparent !important;
  }

  .custom-nav.nav-scrolled .main-logo {
    width: 105px;
    height: 43px;
  }
}
