/* CSS Variables: Dark luxury theme */
:root {
    --color-bg: #0b0000;
    --color-bg-elevated: rgba(20, 0, 0, 0.96);
    --color-bg-soft: #140000
    ;
    --color-accent: #9A0000;
    --color-accent-strong: #c40000;
    --color-accent-soft: rgba(154, 0, 0, 0.18);

    --color-text: #f5f5f9;
    --color-text-muted: #b8a5a5;
    --color-border-subtle: rgba(255, 255, 255, 0.08);
  
    --shadow-soft:0 18px 50px rgba(0, 0, 0, 0.85);
  
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;
  
    --font-base: "Kanit", system-ui, -apple-system, sans-serif;
  
    --transition-fast: 180ms ease-out;
    --transition-med: 220ms ease-out;
  
    --nav-height: 72px;
    /* ปรับขยับปุ่ม CTA ขึ้น: ค่าติดลบยิ่งมาก = ขึ้นยิ่งสูง (เช่น -48px, -64px, -80px) */
    --cta-buttons-lift: -60px;
  }
  
  /* Reset & base */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-base);
    /* โทนเดียวกับปุ่ม Register: แดงเข้มไล่จากบนลงล่าง */
    background: linear-gradient(to bottom, #370000 0%, #190000 50%, #130000 100%);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  /* Buttons */
  .btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.6rem;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    outline: none;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      box-shadow var(--transition-fast),
      transform var(--transition-fast),
      border-color var(--transition-fast);
  }
  
  .btn--primary {
    background:  linear-gradient(135deg, #FFC445, #e78403);
    color: rgb(55, 0, 0);
    box-shadow: 0 12px 32px rgba(154, 0, 0, 0.6);
  }
  
  .btn--primary:hover {
    background: linear-gradient(135deg,
    rgba(255, 39, 39, 0.642),
    rgba(143, 2, 2, 0.648)
    );
    color: rgb(255, 255, 255);
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(154, 0, 0, 0.8);
  }
  
  .btn--secondary {
    background: linear-gradient(135deg, #59f1c8, #34c3a0);
    color: #021713;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  }
  
  .btn--secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.95);
  }
  
  .btn--ghost {
    background: #e7a6035b;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-subtle);
  }
  
  .btn--ghost:hover {
    background: #e79703c9;
    color: var(--color-text);
  }
  
  .btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  
  .btn--outline:hover {
    border-color: var(--color-accent);
    background: rgba(10, 11, 24, 0.96);
  }
  
  .btn--sm {
    padding: 0.45rem 1.2rem;
    font-size: 0.78rem;
  }
  
  .btn--block {
    width: 100%;
  }
  
  .btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(230, 179, 92, 0.85);
  }
  
  /* Header / Navbar - โทนเดียวกับปุ่ม Register ไล่จากบนลงล่าง */
  .site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: linear-gradient(
        to bottom,
        rgba(26, 0, 0, 0.88),
        rgba(154, 0, 0, 0.92)
      );
    border-bottom: 1px solid rgba(253, 208, 29, 0.932);
  }
  
  .navbar {
    position: relative;
    max-width: 1120px;
    margin-inline: auto;
    padding: 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-height);
    gap: 1rem;
  }
  
  .navbar__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .navbar__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
  }
  
  .navbar__logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
  }
  
  /* Wireframe: oval logo with "LOGO" (fallback ถ้าไม่มีรูป) */
  .navbar__logo-mark {
    min-width: 80px;
    padding: 0.4rem 1rem;
    height: 36px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--color-text);
  }
  
  .navbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .navbar__actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
  }
  
  .navbar__language {
    display: none;
  }
  
  .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #FFC445, #e78403);
    cursor: pointer;
    transition: background 1.25s ease, border-color 0.25s ease, transform 0.2s ease;
  }
  .lang-toggle:active {
    transform: scale(0.96);
  }
  .lang-toggle--en {
    background: linear-gradient(135deg, #FFC445, #e78403);
    border-color: rgba(65, 0, 0, 0.25);
  }
  
  .lang-toggle__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgb(55, 0, 0);
    transition: color 0.25s ease;
  }
  .lang-toggle--en .lang-toggle__label {
    color: rgba(54, 0, 0, 0.95);
  }
  
  .lang-toggle__track {
    position: relative;
    width: 32px;
    height: 16px;
    border-radius: var(--radius-pill);
    background: rgba(73, 46, 0, 0.14);
    transition: background 0.25s ease;
  }
  .lang-toggle--en .lang-toggle__track {
    background: rgba(91, 50, 0, 0.674);
  }
  
  .lang-toggle__thumb {
    position: absolute;
    top: 1px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #11111f;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
  }
  .lang-toggle--en .lang-toggle__thumb {
    transform: translateX(16px);
  }
  
  /* Hamburger */
  .navbar__hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #FFC445, #e78403);
    cursor: pointer;
    padding: 0;
    transition:
      background-color var(--transition-fast),
      transform var(--transition-fast),
      border-color var(--transition-fast);
  }
  
  .navbar__hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    margin-inline: auto;
    transition:
      transform var(--transition-fast),
      opacity var(--transition-fast);
  }
  
  .navbar__hamburger.is-active {
    background: linear-gradient(135deg, #FFC445, #e78403);
    border-color: rgba(55, 0, 0, 0.679);
  }
  
  .navbar__hamburger.is-active span:nth-child(1) {
    transform: translateY(1px) rotate(45deg);
  }
  .navbar__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .navbar__hamburger.is-active span:nth-child(3) {
    transform: translateY(-1px) rotate(-45deg);
  }
  
  /* Drawer */
  .navbar__drawer {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding-inline: 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-med);
  }
  
  .navbar__drawer-inner {
    background: linear-gradient(
        to bottom,
        rgba(26, 0, 0, 0.88),
        rgba(154, 0, 0, 0.92)
      );
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    padding: 0.75rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: var(--shadow-soft);
  }
  
  .navbar__drawer--open {
    max-height: 260px;
  }
  
  /* Hero: Wireframe = full-width "Images Banner", arrows left/right, dots */
  .hero {
    padding-top: var(--nav-height);
    padding-inline: 0;
    padding-bottom: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero__slider {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  /* ความสูงตามรูป (ยืดหดตามความกว้างจอ เหมือน GIF Banner) */
  .hero__slides {
    display: flex;
    width: 100%;
    min-height: 120px;
    transform: translateX(0);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* บังคับให้แต่ละ slide กว้างเท่าคอนเทนเนอร์เท่านั้น (ไม่ขยายตามขนาดรูป) เพื่อไม่ให้รูปหลุดขวา */
  .hero__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    opacity: 1;
    visibility: visible;
    display: block;
  }
  
  .hero__image {
    width: 100%;
    max-width: 100%;
    background-color: #1a1b2e;
    overflow: hidden;
  }
  
  .hero__image--1 {
    background-image: linear-gradient(135deg, #2d2d44, #1a1b2e);
  }
  .hero__image--2 {
    background-image: linear-gradient(135deg, #1e293b, #0f172a);
  }
  .hero__image--3 {
    background-image: linear-gradient(135deg, #312e3e, #1a1b2e);
  }
  
  /* รูปเต็มความกว้างของ slide เท่านั้น ความสูงตามอัตราส่วน (เหมือน .gif-banner__image) */
  .hero__image img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 200px;
    max-width: 100%;
  }
  
  .hero__nav {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition:
      background-color var(--transition-fast),
      border-color var(--transition-fast),
      transform var(--transition-fast);
  }
  
  .hero__nav--prev {
    left: 0.5rem;
  }
  .hero__nav--next {
    right: 0.5rem;
  }
  
  .hero__nav:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) translateY(-1px);
  }
  
  .hero__dots {
    position: absolute;
    z-index: 10;
    inset-inline: 0;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: none;
    padding-inline: 0.5rem;
  }
  
  .hero__dots .hero__dot {
    pointer-events: auto;
  }
  
  .hero__dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(5, 6, 16, 0.9);
    cursor: pointer;
    padding: 0;
    transition:
      background-color var(--transition-fast),
      border-color var(--transition-fast),
      width var(--transition-fast),
      transform var(--transition-fast);
  }
  
  .hero__dot[aria-selected="true"] {
    width: 20px;
    border-color: #c40000;
    background: linear-gradient(135deg, #9A0000, #0D0000);
  }
  
  /* Announcement: Wireframe = full-width "Text scrolling" bar */
  .announcement {
    padding: 0.75rem 1.25rem;
  }
  
  .announcement__inner {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    border: 2px solid #FED44C; /* gold frame (fixed) */
    border-radius: 999px;
    background: rgba(55, 0, 0, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    overflow: hidden; /* text scrolls inside frame only */
  }
  
  .announcement__marquee {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    will-change: transform;
  }
  
  .announcement__marquee p {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    font-size: clamp(0.78rem, 2.4vw, 0.9rem);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
  }
  
  /* GIF Banner: full-width, ไม่ใช้ clip-path เพื่อไม่ให้ส่วนล่างดูเหมือนมี component อื่นทับ */
  .gif-banner {
    padding-inline: 0;
    padding-bottom: 0;
  }
  
  .gif-banner__wrap {
    width: 100%;
    overflow: hidden;
  }
  
  .gif-banner__image {
    width: 100%;
    display: block;
    object-fit: contain;
    min-height: 200px;
    max-width: 100%;
  }
  
  /* Promotions: Wireframe = 2 "Images Promotion" blocks side-by-side, image on top */
  .promotions {
    padding-inline: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .promotions__grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }
  
  .promo-card {
    position: relative;
    width: fit-content;
    max-width: 100%;
    background: #0d0e18;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition:
      transform var(--transition-med),
      box-shadow var(--transition-med);
  }
  
  .promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  }
  
  .promo-card__image {
    /* container shrinks to image size so frame = image */
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    background: #0b0c14;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid rgba(254, 212, 76, 0.18);
  }

  .promo-card__image img {
    /* image at natural size → border wraps image exactly */
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 320px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(254, 212, 76, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    background: #0b0c14;
  }
  
  .promo-card__image--1 {
    background-image: linear-gradient(135deg, #2d2d44, #1a1b2e);
  }
  .promo-card__image--2 {
    background-image: linear-gradient(135deg, #1e293b, #0f172a);
  }
  
  .promo-card__body {
    /* push text down + give it its own readable panel */
    padding: 1.25rem 1.1rem 1.2rem;
    background: linear-gradient(
      to bottom,
      rgba(10, 11, 20, 0.72),
      rgba(10, 11, 20, 0.96)
    );
  }
  
  .promo-card__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
  }
  
  .promo-card__text {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
  }
  
  /* Games: Wireframe = centered "Text Title" then grid "Game banner" 4/2/1 cols */
  .games {
    padding-inline: 1.25rem;
    padding-bottom: 2.5rem;
  }
  
  /* กรอบหัวข้อเกม (สไตล์เดียวกับแถบประกาศ) */
  .games__title-wrap {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    margin-bottom: 1.75rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid #FED44C;
    border-radius: 999px;
    background: rgba(55, 0, 0, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    text-align: center;
  }
  
  .games__title {
    margin: 0;
    font-size: 2.15rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
  }
  
  .games__grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    justify-items: center;
  }
  
  .game-card {
    width: fit-content;
    max-width: 100%;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
      transform var(--transition-med),
      box-shadow var(--transition-med),
      border-color var(--transition-med);
  }
  
  .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95);
  }
  
  .game-card__thumb {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .game-card__thumb img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }
  
  .game-card__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  
  /* Bottom CTA: แถบพื้นหลัง (โทนเดียวปุ่ม Register ไล่บนลงล่าง) */
  .cta {
    padding-inline: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 110px;
    max-height: 110px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(154, 0, 0, 0.85), rgba(13, 0, 0, 0.92));
    border-top:   1px solid rgba(253, 208, 29, 0.932);
  }
  
  .cta__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow: visible;
  }
  
  .cta__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: end;
    justify-items: center;
    position: relative;
    transform: translateY(var(--cta-buttons-lift));
  }
  
  .cta-card {
    width: 100%;
    max-width: 35vw;
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform var(--transition-med);
    overflow: visible;
    position: relative;
    z-index: 1;
  }
  
  .cta-card img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
  }
  
  .cta-card--primary {
    z-index: 2;
    max-width: 40vw;
    background: transparent;
    border: none;
    box-shadow: none;
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  .cta-card--primary .cta-card__label {
    color: var(--color-text-muted);
  }
  
  .cta-card--primary img {
    max-height: none;
  }
  
  /* ดึงปุ่มซ้าย/ขวาเข้าหากลางใช้เฉพาะจอ 3 คอลัมน์ (ดูใน @media 600px) */
  .cta-card:first-of-type,
  .cta-card:last-of-type {
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  .cta-card:hover {
    transform: translateY(-3px);
  }

  /* ===== Bottom Nav Bar (แถบนำทางล่าง คงที่เวลาเลื่อน ปุ่มเป็นรูปภาพ) ===== */
  /* ปรับขนาด/ตำแหน่งปุ่ม 480–1024: ดู docs/bottom-nav-sizing-guide.md
     สรุป: ตำแหน่งแนวตั้ง = --cta-buttons-lift | ความกว้างปุ่ม = .bottom-nav__item(max-width) .bottom-nav__item--primary(max-width) | ความสูงรูป = .bottom-nav__item img(max-height) | ดึงเข้าหากลาง = :first-of-type/:last-of-type margin -8% | ความสูงแถบ = --bottom-nav-height + .bottom-nav min/max-height */
:root {
  --bottom-nav-safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 160px; /* พื้นที่กันเนื้อหา (แถบ + ปุ่มที่ล้นขึ้น) */
}

body {
  padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-safe-bottom));
}

/* แถบอยู่ต่ำสุด เป็นแถบบาง ปุ่มอยู่เหนือแถบและล้นขึ้นได้ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: 72px;
  max-height: 72px;
  overflow: visible;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(154, 0, 0, 0.9), rgba(13, 0, 0, 0.95));
  border-top: 1px solid rgba(240, 218, 16, 0.958);
  padding-bottom: var(--bottom-nav-safe-bottom);
}

.bottom-nav__inner {
  padding: 0.8rem 1rem;
}

.bottom-nav__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 0.5rem;
  position: relative;
  transform: translateY(var(--cta-buttons-lift));
}

.bottom-nav__item {
  max-width: 35vw;
  z-index: 1;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform var(--transition-med);
}
.bottom-nav__item:hover {
  transform: translateY(-3px);
}

.bottom-nav__item--primary {
  z-index: 2;
  max-width: 40vw;
  justify-self: center;
  margin-left: 0;
  margin-right: 0;
}

.bottom-nav__item:first-of-type {
  justify-self: end;
  margin-right: -8%;
}

.bottom-nav__item:last-of-type {
  justify-self: start;
  margin-left: -8%;
}

.bottom-nav__item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(200px, 30vh);
  object-fit: contain;
  display: block;
}

.bottom-nav__item--primary img {
  max-height: min(260px, 38vh);
}

  
  /* Animations */
  @keyframes marquee {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media (max-width: 1024px) {
    :root {
      --cta-buttons-lift: -70px;
    }
  }
  
  /* Reduced motion (ยกเว้นแถบประกาศ ให้เลื่อนตลอดเวลา) */
  @media (prefers-reduced-motion: reduce) {
    * {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .announcement__marquee {
      animation-duration: 30s !important;
      animation-iteration-count: infinite !important;
    }
  }
  
  /* Responsive */
  /* 480px: มือถือใหญ่ – แถบบางต่ำกว่าปุ่ม ปุ่มใหญ่ล้นขึ้นได้ (ตำแหน่งคงเดิม) */
  @media (min-width: 480px) {
    :root {
      --cta-buttons-lift: -64px;
      --bottom-nav-height: 200px;
    }
    .bottom-nav {
      min-height: 72px;
      max-height: 72px;
      overflow: visible;
    }
    .bottom-nav__inner {
      padding-inline: 1.5rem;
    }
    .bottom-nav__item img {
      max-height: min(160px, 32vh);
    }
    .bottom-nav__item--primary img {
      max-height: min(200px, 38vh);
    }
    .announcement {
      padding: 0.85rem 1.5rem;
    }
    .promotions {
      padding-inline: 1.5rem;
    }
    .games {
      padding-inline: 1.5rem;
    }
  }

  @media (min-width: 600px) {
    :root {
      --bottom-nav-height: 160px;
      --cta-buttons-lift: -103px;
    }
    .bottom-nav {
      min-height: 72px;
      max-height: 72px;
      overflow: visible;
    }
    .bottom-nav__list {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 0.5rem;
      align-items: end;
    }
    .bottom-nav__item--primary {
      order: 0;
    }
    .bottom-nav__item:first-of-type {
      order: -1;
      justify-self: end;
      margin-right: -8%;
    }
    .bottom-nav__item:last-of-type {
      order: 1;
      justify-self: start;
      margin-left: -8%;
    }
  }
  
  @media (min-width: 768px) {
    :root {
      --cta-buttons-lift: -150px;
      }
    .navbar__actions {
      display: flex;
    }
    .navbar__language {
      display: block;
    }
    .navbar__hamburger {
      display: none;
    }
    .navbar__drawer {
      display: none;
    }
  
    .hero__nav--prev {
      left: 1rem;
    }
    .hero__nav--next {
      right: 1rem;
    }
  
    .promotions__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .games__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (min-width: 1024px) {
    .games__grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  
    .cta__buttons {
      grid-template-columns: 1fr 1fr 1fr;
      align-items: end;
    }
    .cta-card--primary {
      margin-bottom: -0.5rem;
    }
  }
  
  .lang-toggle--block {
    width: 100%;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, color 0.25s ease;
  }
  .lang-toggle--block:active {
    transform: scale(0.98);
  }
  .lang-toggle--block.lang-toggle--en {
    background: linear-gradient(135deg, #5b6ee8, #3d4bb5);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
  }