:root {
  --bg-primary: #5e0f0f;
  --bg-secondary: #7a1313;
  --accent: #00ff6a;
  --text-primary: #ffffff;
  --card-bg: #ffffff;
  --muted-text: #e9d6d6;
  --shadow: 0 10px 24px rgb(0 0 0 / 28%);
  --radius-lg: 16px;
  --radius-md: 12px;
  --navbar-height: 72px;
  --hero-ratio: 12 / 5;
  --line-glow-color: 0 255 106;
  --line-glow-opacity-low: 0.35;
  --line-glow-opacity-high: 0.9;
  --line-glow-scale-low: 0.92;
  --line-glow-scale-high: 1.18;
  --line-pulse-scale: 1.08;
  --line-pulse-duration: 1800ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Kanit", "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 28%, #4b0a0a 100%);
  color: var(--text-primary);
  min-height: 100vh;
}

html[lang="en"] body {
  font-family: "Montserrat", "Kanit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 100% - 1.5rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

.navbar {
  min-height: var(--navbar-height);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.6rem;
  border: 0px solid rgb(255 255 255 / 14%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgb(127 15 15 / 65%);
}

.site-header > .navbar.container {
  width: 100%;
  margin-inline: 0;
  padding-inline: 1.6rem;
}

.brand-logo {
  justify-self: center;
  width: min(46vw, 180px);
}

.brand-logo img {
  width: 100%;
  object-fit: contain;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}

.lang-switch,
.action-btn,
.hamburger {
  border: 0;
  border-radius: 999px;
  font: inherit;
}

.lang-switch {
  height: 42px;
  min-width: 42px;
  width: 42px;
  padding: 0;
  background: transparent;
  color: #1e2330;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.lang-switch__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  background: #d9dce5;
  color: #ffffff;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  position: relative;
  overflow: hidden;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 22%);
  filter: brightness(1.08);
}

.action-btn--login {
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 24%) 0 26%, rgb(255 255 255 / 0%) 52%),
    linear-gradient(135deg, #3b99ff 0%, #1f5dcc 50%, #153f95 100%);
}

.action-btn--register {
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 20%) 0 24%, rgb(255 255 255 / 0%) 54%),
    linear-gradient(135deg, #f2ca63 0%, #cf9431 54%, #8e5b17 100%);
}

.action-btn--login::after,
.action-btn--register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgb(255 255 255 / 20%) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 260ms ease;
}

.action-btn--login:hover::after,
.action-btn--login:focus-visible::after,
.action-btn--register:hover::after,
.action-btn--register:focus-visible::after {
  transform: translateX(130%);
}

.action-btn--desktop {
  display: none;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgb(0 0 0 / 28%);
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #f6f6f6;
  transition: transform 200ms ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page-main {
  position: relative;
  z-index: 5;
  padding-top: 1.1rem;
  padding-bottom: 6.25rem;
}

.icon-strip {
  position: fixed;
  left: 0;
  top: 0;
  width: 108px;
  height: 100dvh;
  z-index: 1001;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #5a0505, #6f0909 40%, #5a0505);
  border-top: 0;
  border-right: 1px solid rgb(255 255 255 / 12%);
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

.icon-strip.is-open {
  transform: translateX(0);
}

.icon-strip__header {
  height: calc(var(--navbar-height) + 6px);
  padding: 0.6rem 0.7rem 0.45rem;
  display: flex;
  align-items: center;
}

.hamburger--panel {
  margin-inline: auto;
}

.hamburger.is-close span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-close span:nth-child(2) {
  transform: scaleX(0);
}

.hamburger.is-close span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.icon-strip__track {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  overflow-y: auto;
  padding: 0.2rem 0.7rem 9.5rem;
  height: calc(100% - var(--navbar-height) - 6px);
  scrollbar-width: thin;
}

.menu-chip {
  width: 100%;
  border-radius: 14px;
  border: 0px solid rgb(255 255 255 / 28%);
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.6rem 0.4rem;
  line-height: 1.15;
}

.menu-chip__icon {
  margin-bottom: 0.2rem;
  color: #5a5a5a;
  background: transparent;
  width: auto;
  height: auto;
  font-size: 0.78rem;
}

.menu-chip__icon-img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero {
  margin-bottom: 0.8rem;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 12%);
  box-shadow: var(--shadow);
  aspect-ratio: var(--hero-ratio);
  background: #1e1e24;
}

.slides {
  height: 100%;
  display: flex;
  transition: transform 420ms ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%), rgb(0 0 0 / 62%));
  color: #fff;
  font-size: 0.9rem;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: rgb(0 0 0 / 40%);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.slider-arrow--prev {
  left: 0.55rem;
}

.slider-arrow--next {
  right: 0.55rem;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgb(255 255 255 / 70%);
}

.slider-dot.is-active {
  width: 24px;
  background: var(--accent);
}

.announcement {
  margin-bottom: 1.2rem;
}

.announcement__viewport {
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 40%);
  background: rgb(44 8 8 / 55%);
  overflow: hidden;
}

.announcement__text {
  margin: 0;
  width: max-content;
  white-space: nowrap;
  padding: 0.35rem 0;
  color: var(--muted-text);
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-toggle {
  margin: 0;
  text-align: center;
  padding: 0.62rem 0.45rem;
  border-radius: 8px;
  font-family: inherit;
  background: linear-gradient(90deg, #04094e 0%, #0a267a 59%, #1172b4 100%);
  color: #f8fbff;
  font-size: 1.25rem;
  border: 1px solid rgb(132 197 255 / 35%);
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 0 rgb(0 0 0 / 26%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 6px 14px rgb(0 0 0 / 25%);
  transition: 200ms ease;
}

.section-toggle.is-active {
  border-color: #9ee7ff;
  box-shadow: 0 0 0 1px rgb(120 235 255 / 45%), 0 10px 18px rgb(0 0 0 / 28%);
  filter: brightness(1.08);
}

.rows.show-promotions .h-card {
  display: none;
}

.rows.show-activities .banner-card {
  display: none;
}

.rows {
  display: grid;
  gap: 1rem;
}

.promo-row {
  display: grid;
  gap: 0.75rem;
}

.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover,
.card:focus-within {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgb(0 255 106 / 24%);
}

.banner-card {
  background: var(--card-bg);
  color: #4d2030;
}

.banner-card__image {
  width: 100%;
  aspect-ratio: var(--hero-ratio);
  object-fit: contain;
  background: #1e1e24;
}

.banner-card__text {
  padding: 0.7rem 0.85rem;
}

.banner-card__text h3 {
  margin: 0 0 0.2rem;
}

.banner-card__text p {
  margin: 0;
  color: #5c5c5c;
}

.h-card {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  background: linear-gradient(90deg, #411f21 0%, #623322 48%, #2f9630 100%);
  align-items: start;
  gap: 0.35rem;
}

.h-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: rgb(26 19 22 / 38%);
}

.h-card__body {
  padding: 1rem;
  align-self: center;
}

.h-card__body h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.h-card__body p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 38%);
  font-size: 0.86rem;
  color: #e7ffe9;
}

.line-float {
  position: fixed;
  right: 0.95rem;
  bottom: 5.5rem;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 50;
  background: #ffffff;
  border: 2px solid #d8e2ff;
  box-shadow: 0 10px 20px rgb(0 0 0 / 32%);
  overflow: hidden;
  animation: line-float-pulse var(--line-pulse-duration) ease-in-out infinite;
}

.line-float::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(var(--line-glow-color) / 36%) 0%,
    rgb(var(--line-glow-color) / 20%) 38%,
    rgb(var(--line-glow-color) / 0%) 72%
  );
  z-index: -1;
  animation: line-float-glow var(--line-pulse-duration) ease-in-out infinite;
}

.line-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-float:hover,
.line-float:focus-visible {
  animation-play-state: paused;
  transform: scale(1.06);
}

.line-float:hover::before,
.line-float:focus-visible::before {
  animation-play-state: paused;
  opacity: 0.95;
}

@keyframes line-float-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgb(0 0 0 / 32%), 0 0 0 0 rgb(var(--line-glow-color) / 0%);
  }
  50% {
    transform: scale(var(--line-pulse-scale));
    box-shadow: 0 14px 26px rgb(0 0 0 / 34%), 0 0 0 10px rgb(var(--line-glow-color) / 0%);
  }
}

@keyframes line-float-glow {
  0%,
  100% {
    opacity: var(--line-glow-opacity-low);
    transform: scale(var(--line-glow-scale-low));
    filter: blur(1px);
  }
  50% {
    opacity: var(--line-glow-opacity-high);
    transform: scale(var(--line-glow-scale-high));
    filter: blur(4px);
  }
}

.bottom-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.7rem;
  z-index: 45;
  background: linear-gradient(180deg, rgb(94 15 15 / 0%), rgb(71 8 8 / 95%) 40%);
}

.action-btn--bottom {
  min-height: 70px;
}

.mascot-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mascot {
  position: absolute;
  width: min(220px, 40vw);
  opacity: 0.18;
  filter: saturate(0.8);
}

.mascot--left {
  left: -66px;
  top: 16%;
}

.mascot--right {
  right: -66px;
  top: 16%;
  transform: scaleX(-1);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  z-index: 1000;
  background: rgb(0 0 0 / 26%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .site-header {
  opacity: 0;
  pointer-events: none;
}

body.drawer-open .bottom-action-bar,
body.drawer-open .line-float {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .action-btn,
  .hamburger span {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) {
  .site-header > .navbar.container {
    padding-inline: 2rem;
  }

  .brand-logo {
    width: min(22vw, 96px);
  }

  .page-main {
    padding-top: 1.25rem;
  }

  .promo-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .h-card {
    grid-template-columns: minmax(132px, 34%) 1fr;
  }

  .rows.show-promotions .h-card,
  .rows.show-activities .banner-card {
    display: grid;
  }

  .mascot {
    opacity: 0.25;
    width: min(320px, 32vw);
  }

  .mascot--left,
  .mascot--right {
    top: 20%;
  }
}

@media (min-width: 992px) {
  :root {
    --navbar-height: 78px;
  }

  .container {
    width: min(1220px, 100% - 2rem);
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .site-header > .navbar.container {
    padding-inline: clamp(1rem, 6vw, 4rem);
  }

  .brand-logo {
    justify-self: auto;
    width: min(180px, 16vw);
  }

  .nav-controls {
    margin-left: auto;
  }

  .action-btn--desktop {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .drawer-backdrop {
    display: none;
  }

  body.drawer-open .site-header {
    opacity: 1;
    pointer-events: auto;
  }

  .icon-strip {
    position: static;
    width: min(1220px, 100% - 2rem);
    height: auto;
    transform: none;
    margin: 0.45rem auto 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgb(255 255 255 / 12%);
    background: rgb(0 0 0 / 23%);
  }

  .icon-strip__track {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    overflow-x: auto;
    height: auto;
    padding: 0.65rem;
  }

  .icon-strip__header {
    display: none;
  }

  .menu-chip {
    width: auto;
    min-height: 0;
    border-radius: 999px;
    border: 0px solid rgb(255 255 255 / 14%);
    background: rgba(255, 255, 255, 0);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    text-align: left;
    padding: 0.5rem 0.7rem;
    line-height: 1;
  }

  .menu-chip__icon {
    margin-bottom: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #191919;
    font-size: 0.74rem;
  }

  .menu-chip__icon-img {
    width: 50px;
    height: 50px;
  }

  .bottom-action-bar {
    display: none;
  }

  .line-float {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .page-main {
    padding-bottom: 2.4rem;
  }

  .promo-row {
    align-items: start;
  }

  .h-card {
    --activity-thumb-size: clamp(170px, 18vw, 230px);
    grid-template-columns: var(--activity-thumb-size) 1fr;
    align-self: start;
    gap: 0.85rem;
  }

  .h-card__img {
    width: var(--activity-thumb-size);
    height: var(--activity-thumb-size);
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .section-toggle {
    font-size: 1.9rem;
    padding: 0.75rem;
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .promo-row {
    align-items: start;
  }

  .banner-card {
    align-self: start;
  }

  .site-header > .navbar.container {
    padding-inline:2rem;
  }

  .banner-card__image {
    aspect-ratio: var(--hero-ratio);
    width: 100%;
    height: auto;
    object-fit: cover;
    background: transparent;
  }

  .h-card {
    grid-template-columns: minmax(170px, 48%) 1fr;
    align-items: center;
    gap: 0.45rem;
  }

  .h-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    background: transparent;
  }

  .h-card__body {
    padding: 0.55rem 0.55rem 0.55rem 0.2rem;
  }

  .h-card__body h3 {
    font-size: 1rem;
  }

  .h-card__body p {
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .mascot {
    display: none;
  }
}
