/* OTW777 portal styles (data and assets migrated from siteHtml/www.otw777.com/otw777)
   Layout follows the h.4399.com spec (990px content width, #2FC26E accent, 5px radius,
   rank themes blue #5588F9 / green #2FC26E / orange #FF8737)
   Header/footer: navy + tomato red
   Responsive: four breakpoints at 1000 / 900 / 768 / 480
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #14213d;
  --navy-2: #1b2c4f;
  --red: #e63946;
  --red-dark: #c1272d;
  --green: #2fc26e;
  --green-deep: #24a85c;
  --green-soft: #bbf3d7;
  --blue: #5588f9;
  --orange: #ff8737;
  --yellow: #ffa504;
  --bg: #f5f5f5;
  --card: #ffffff;
  --card-2: #f2f2f2;
  --line: #f0f0f0;
  --line-2: #e3e3e3;
  --text: #333333;
  --text-2: #484848;
  --text-3: #989898;
}

html {
  font-size: 14px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui,
    sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img,
svg {
  max-width: 100%;
}
.cf::after {
  content: '';
  display: block;
  clear: both;
}

.container {
  width: 990px;
  margin: 0 auto;
}

/* ============ Header (transparent overlay on the hero slider, same as h.4399)
   The nav is a single line (home + 10 featured providers + Semua Provider dropdown) so the
   overlay does not eat the hero content; the side panel is pushed below the header via
   --header-h (see .slider-overlay). */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent;
}
/* Top mask: keeps white text at WCAG AA over any slide image (equivalent to the h.4399 top-mask).
   Mask height = header height + 46px so the fade ends below the text lines and the text band
   stays at >= 0.58 opacity */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 46px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.58) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
  color: #fff;
  border-bottom: 3px solid var(--green);
  padding-bottom: 2px;
  white-space: nowrap;
}
.logo span {
  color: var(--green);
  font-style: italic;
}

.search-box {
  flex: 1;
  max-width: 400px;
  display: flex;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  height: 36px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
}
.search-box button {
  width: 44px;
  border: none;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-box button:hover {
  background: var(--green-deep);
}

.user-entry {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.btn-ghost {
  padding: 7px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  font-size: 13px;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  padding: 7px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--green-deep);
}

/* Popular keywords */
.hot-keywords {
  background: transparent;
  border-bottom: none;
}
.hot-keywords .container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.hot-keywords .container::-webkit-scrollbar {
  display: none;
}
.hk-label {
  color: var(--green-soft);
  font-weight: 700;
  flex-shrink: 0;
}
.hot-keywords a {
  color: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}
.hot-keywords a:hover {
  color: var(--green-soft);
}

/* ============ Hero slider (h.4399: 520px) ============ */
.slider {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: var(--navy);
}
.slider-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Slides use <img> inside <picture> (avif/webp, 1280 and 1920 variants):
   cover fills the hero; the dark background holds the space before the image loads. At 100vw a
   desktop viewport only shows the middle ~57% of the image, so in-image titles should stay
   within the middle ~50% width (the current artwork is wider, so its sides get cropped; see docs/api.md) */
.slide-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #0b0f1a;
}

/* Text readability mask (sits on top of the image, not decoration) */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0) 68%
  );
}

.slide-inner {
  position: relative;
  height: 100%;
  z-index: 1;
}
.slide-copy {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 430px;
  color: #fff;
}
.slide-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 11px;
}
.slide-copy h2 {
  font-size: 40px;
  font-weight: 900;
  margin: 12px 0 8px;
  letter-spacing: 0.5px;
}
.slide-copy p {
  font-size: 14px;
  color: #e8ecef;
  margin-bottom: 20px;
}

.btn-pill {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 9px 34px;
  border-radius: 19px;
}
.btn-pill:hover {
  background: var(--green-deep);
}
.btn-pill:active {
  transform: translateY(1px);
}

/* Right-hand floating panel */
.slider-overlay {
  position: absolute;
  top: var(--header-h, 134px);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.slider-panel {
  position: absolute;
  top: 44px;
  right: 0;
  width: 250px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  padding: 12px 14px 10px;
  pointer-events: auto;
}
.sp-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 7px;
  margin-bottom: 7px;
}
/* Winners ticker: three rows visible; the list is duplicated so a -50% translation loops seamlessly (same as the notice bar) */
.sp-list-wrap {
  height: 168px;
  overflow: hidden;
}
.sp-list {
  /* 10 rows x 2 copies = 940px; half the distance in 20s is about 23px/s (scale with the row count) */
  animation: sp-scroll 20s linear infinite;
  will-change: transform;
}
.sp-list:hover {
  animation-play-state: paused;
}
@keyframes sp-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.sp-list li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.sp-list li:last-child {
  border-bottom: none;
}
.sp-list a {
  display: block;
  padding: 6px 0;
}
.sp-list strong {
  display: block;
  font-size: 13px;
  color: var(--green-soft);
}
.sp-list a:hover strong {
  color: var(--green);
}
.sp-list span {
  display: block;
  font-size: 11px;
  color: #c9cdd2;
  line-height: 1.35;
}

/* Slider dots: float at the bottom centre of the hero image (.slider-track and .slide-inner are the same
   box), container fully transparent */
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  justify-content: center;
  background: none;
}
.slider-dots button {
  width: 20px;
  height: 4px;
  border: none;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  /* drop-shadow rather than box-shadow: on narrow screens the hit area is 32x24 while the visible bar is
     drawn by ::before, so box-shadow would paint a whole 32x24 rectangle while drop-shadow follows the bar */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}
.slider-dots button.active {
  background: #fff;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 18px;
  z-index: 3;
}
.slider-arrow:hover {
  background: var(--green);
}
.slider-arrow.prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}
.slider-arrow.next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

/* ============ Page h1 ============ */
.page-h1-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.page-h1 {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-2);
}
.page-h1::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--green);
  border-radius: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}
.page-h1-note {
  font-size: 12px;
  color: var(--text-3);
}

/* ============ Notice marquee ============ */
.notice-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--green-soft);
  border-radius: 5px;
  margin-top: 12px;
  height: 34px;
  overflow: hidden;
}
.notice-label {
  /* A white-outlined icon on #2FC26E reaches only 2.32:1, below the 3:1 of WCAG 1.4.11; darkening to the
     palette's deep green gives 3.04:1 */
  background: var(--green-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}
.notice-label svg {
  display: block;
}
.notice-track {
  flex: 1;
  overflow: hidden;
}
.notice-inner {
  display: inline-flex;
  gap: 46px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-2);
  /* Four brand lines run about 2600px for half the loop; 52s is roughly 50px/s (28s gave 93px/s, too fast
     to read). Scale this duration with the number and length of the lines. */
  animation: notice-scroll 52s linear infinite;
  will-change: transform;
}
.notice-inner span::before {
  content: '·';
  margin-right: 8px;
  color: var(--green);
}

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

.notice-date {
  font-size: 12px;
  color: var(--text-3);
  padding: 0 12px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ============ Shared module chrome (h.4399 .module .hd) ============ */
.module {
  margin-top: 22px;
}

.hd {
  display: flex;
  align-items: center;
  height: 36px;
  line-height: 36px;
  margin-bottom: 10px;
}
.hd .title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-2);
  padding-left: 12px;
  border-left: 5px solid var(--green);
  line-height: 1.1;
}
.hd .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
}
.hd .more span {
  padding-left: 3px;
}
.hd .more:hover {
  color: var(--green);
}

/* ============ Top RTP (h.4399 .mod-jpyx large cards) ============ */
.mod-jpyx .bd ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mod-jpyx .bd li {
  background: var(--card-2);
  border-radius: 5px;
  overflow: hidden;
  padding-bottom: 10px;
}

.picbox {
  display: block;
  position: relative;
}
.picbox .pic {
  display: block;
  height: 210px;
}
/* Source artwork is shown in full (contain), never cropped or upscaled; the container uses a dark
   background to hold any letterboxing */
.picbox .pic img,
.icon-pic img,
.md-rank .pic-in img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* Card image containers share a dark background (to hold letterboxing); provider brand logos are grey
   glyphs (measured #717272) which reach 4.5:1 on a light background but only 3.6:1 on the dark one, so
   brand cards get a light background */
.picbox .pic,
.icon-pic,
.md-rank .pic,
.s-pic {
  background: #0f1524;
}
.icon-pic:has(> img[src*="/providers/"]),
.md-rank .pic:has(img[src*="/providers/"]) {
  background: #f2f2f2;
}
/* "Bisa main di HP" badge: kept as its own rule, do not merge it into the container selectors above */
.ico-phone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  text-align: center;
  padding: 3px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mod-jpyx .bd li:hover .ico-phone {
  opacity: 1;
}

.gamebox {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 9px 10px 0;
  font-size: 14px;
}
.gamebox .game {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gamebox .game:hover {
  color: var(--green);
}

.mod-jpyx .meta {
  font-size: 12px;
  color: var(--text-3);
  padding: 0 10px;
  margin-top: 6px;
}

/* "MAIN" pill button (h.4399 .btn span: 96x26, 13px radius, outline, fills on hover) */
.btn {
  display: inline-block;
  flex-shrink: 0;
}
.btn span {
  display: block;
  width: 88px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 13px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.btn:hover span {
  background: var(--green);
  color: #fff;
}
.btn:active span {
  transform: translateY(1px);
}

/* ============ List modules (h.4399 .mod-list: 220x72, 4 columns) ============ */
.mod-list .bd ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 0 23px;
}
.mod-list .bd li {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.mod-list .bd .icon {
  flex-shrink: 0;
  width: 72px;
}
.icon-pic {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 5px;
  overflow: hidden;
  background: #0f1524;
}
.icon-pic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.22s ease;
}
.mod-list .bd li:hover .icon-pic img {
  transform: scale(1.08);
}

.mod-list .bd .intro {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.mod-list .bd .name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-list .bd li:hover .name {
  color: var(--green);
}
.mod-list .bd .intro p {
  font-size: 12px;
  color: var(--text-3);
  margin: 3px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-list .bd .intro .btn span {
  width: 76px;
  height: 24px;
  line-height: 22px;
  font-size: 12px;
  border-radius: 12px;
}

/* Theme colour variants */
.mod-hot .hd .title {
  border-left-color: var(--orange);
}
.mod-hot .bd li:hover .name {
  color: var(--orange);
}
.mod-hot .btn span {
  color: var(--orange);
  border-color: var(--orange);
}
.mod-hot .btn:hover span {
  background: var(--orange);
  color: #fff;
}

.mod-recommend .hd .title {
  border-left-color: var(--blue);
}
.mod-recommend .bd li:hover .name {
  color: var(--blue);
}

/* ============ Stats bar (real counts) ============ */
.stats-bar {
  display: flex;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  margin-top: 22px;
  padding: 14px 0;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.stat-reward .stat-num {
  color: var(--green);
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
}

/* ============ Promo Spesial (h.4399 .mod-special: 4 cards) ============ */
.mod-special .bd ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mod-special .bd li {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.mod-special .bd a {
  display: block;
  padding: 14px 14px 12px;
}
/* Promo Spesial card artwork (source banners, cover fill) */
.s-pic {
  display: block;
  height: 120px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 9px;
  background: #0f1524;
}
.s-pic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mod-special strong {
  display: block;
  font-size: 14px;
  color: var(--text-2);
}
.mod-special p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 6px 0 10px;
  height: 36px;
  overflow: hidden;
}
.mod-special .bd li:hover {
  border-color: var(--green-soft);
}

/* ============ Rankings (h.4399 .md-rank: three theme colours) ============ */
.rank-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.md-rank {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.md-rank .hd {
  height: 38px;
  line-height: 38px;
  margin: 0;
  padding: 0 12px;
  border-bottom: 2px solid var(--green);
}
.md-rank .hd .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  padding: 0;
  border: none;
}
.md-rank .hd .more {
  font-size: 12px;
}

.md-rank .bd ul {
  padding: 4px 10px 8px;
}
.md-rank .bd li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.md-rank .bd li:last-child {
  border-bottom: none;
}
.md-rank .bd li:hover {
  background: #fafafa;
}

.md-rank .num {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  color: #c9c9c9;
}
.md-rank .num.n1 {
  color: var(--orange);
}
.md-rank .num.n2 {
  color: var(--yellow);
}
.md-rank .num.n3 {
  color: var(--green);
}

.md-rank .pic {
  width: 46px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
}
.md-rank .pic-in {
  display: block;
  width: 100%;
  height: 100%;
}
/* Image sizing and cropping policy is defined by the shared rules above (contain, shown in full) */

.md-rank .info {
  flex: 1;
  min-width: 0;
}
.md-rank .info .name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-rank .info p {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-rank .bd .btn span {
  width: 78px;
  height: 24px;
  line-height: 22px;
  font-size: 12px;
  border-radius: 12px;
}

/* Ranking theme colours */
.md-yy .hd {
  border-bottom-color: var(--blue);
}
.md-yy .hd .title {
  color: var(--blue);
}
.md-yy .btn span {
  color: var(--blue);
  border-color: var(--blue);
}
.md-yy .btn:hover span {
  background: var(--blue);
  color: #fff;
}
.md-yy .info .name:hover {
  color: var(--blue);
}

.md-xyx .info .name:hover {
  color: var(--green);
}

.md-xy .hd {
  border-bottom-color: var(--orange);
}
.md-xy .hd .title {
  color: var(--orange);
}
.md-xy .btn span {
  color: var(--orange);
  border-color: var(--orange);
}
.md-xy .btn:hover span {
  background: var(--orange);
  color: #fff;
}
.md-xy .info .name:hover {
  color: var(--orange);
}

/* ============ Testimoni Member (drifts right to left, same approach as the notice bar) ============ */
.review-marquee { overflow: hidden; }
.review-row {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: review-scroll 60s linear infinite;
  will-change: transform;
}
.review-marquee:hover .review-row { animation-play-state: paused; }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.review-card {
  flex: 0 0 auto;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
}
.review-card .stars {
  font-size: 13px;
}
.review-card p {
  font-size: 12px;
  color: var(--text-2);
  margin: 7px 0 9px;
  line-height: 1.55;
}
.review-card footer {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.stars {
  color: var(--yellow);
  letter-spacing: 1px;
}

.verified {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 9px;
  padding: 0 6px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  padding: 11px 36px 11px 14px;
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-3);
}
.faq-item[open] summary {
  color: var(--green);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 14px 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}


/* ============ Footer (light grey, same as h.4399 .footer) ============ */
.site-footer {
  background: #ededed;
  margin-top: 28px;
  color: #6b6b6b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  gap: 24px;
  padding: 24px 0 20px;
}
.footer-col h3 {
  color: #333333;
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  padding: 3px 0;
  color: #6b6b6b;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-col p {
  font-size: 12px;
  padding: 3px 0;
  color: #6b6b6b;
}
.logo-footer {
  font-size: 20px;
  display: inline-block;
  margin-bottom: 8px;
  color: var(--navy);
  border-bottom-color: var(--green);
}
.logo-footer span {
  color: var(--green);
}
.footer-copy {
  border-top: 1px solid #dcdcdc;
  padding: 12px 0;
  font-size: 12px;
  color: #8a8a8a;
}
/* Social icons (source footer social list assets) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}
.footer-social .fs-label {
  font-size: 12px;
  color: #6b6b6b;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
}
.footer-social a:hover {
  color: var(--green);
}
.footer-social img {
  display: block;
  width: 20px;
  height: 20px;
}
/* Payment icons (source footer banking section assets) */
.footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
}
.footer-pay .fp-label {
  font-size: 12px;
  color: #6b6b6b;
}
.footer-pay img {
  display: block;
  height: 22px;
  width: auto;
}

/* ============ Responsive (h.4399 breakpoints plus mobile refinements) ============ */
@media (max-width: 1000px) {
  .container {
    width: 100%;
    padding: 0 12px;
  }
  .slider {
    height: 460px;
  }
  .slider-overlay {
    width: 100%;
    left: 0;
    transform: none;
  }
  .mod-jpyx .bd ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .mod-list .bd ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .mod-special .bd ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  /* A transparent overlay header crushes the slider content on narrow screens, so it falls back to a
     solid header in normal flow */
  .site-header {
    position: static;
    background: var(--navy);
  }
  .site-header::before {
    display: none;
  }

  /* --track-h is the single source of truth for the hero image height: the track and the arrows share
     it, so the value is not written twice */
  .slider {
    --track-h: 380px;
    height: auto;
    padding-bottom: 16px;
  }
  .slide-copy {
    width: 340px;
  }
  .slide-copy h2 {
    font-size: 30px;
  }
  .slider-panel {
    position: static;
    width: auto;
    margin-top: 18px;
  }
  /* Once the panel returns to normal flow, the desktop top:var(--header-h) must be reset explicitly:
     under relative positioning that top pushes the whole panel down by a header height, and the
     .slider overflow:hidden then clips its bottom */
  .slider-overlay {
    position: relative;
    top: auto;
    transform: none;
    width: auto;
    padding: 0 12px;
  }
  .slider-track {
    position: relative;
    height: var(--track-h);
  }
  /* The arrows were originally top:50% of the whole .slider (panel included), which on narrow screens
     put them below the hero image, so they now align to the track centre */
  .slider-arrow {
    top: calc(var(--track-h) / 2);
  }
  /* On narrow screens the panel becomes a normal-flow block and keeps scrolling (23 static rows would
     push it past 1000px) */
  .mod-jpyx .bd ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .mod-list .bd ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .mod-special .bd ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .rank-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-card {
    width: 260px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-box {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  /* iOS Safari zooms the whole page when an input with font-size < 16px is focused */
  .search-box input {
    font-size: 16px;
  }
  .user-entry {
    margin-left: auto;
  }

  .slider {
    --track-h: 260px;
    height: auto;
    padding-bottom: 14px;
  }
  .slider-track {
    height: var(--track-h);
  }
  /* Tighten the horizontal bounds (width:100% + left:12px used to push the right edge 12px past the
     viewport), leaving 44px on the right for the arrows */
  .slide-copy {
    width: auto;
    padding-right: 44px;
    left: 12px;
    right: 12px;
  }
  .slide-copy h2 {
    font-size: 24px;
    margin: 8px 0 6px;
  }
  .slide-copy p {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .btn-pill {
    font-size: 14px;
    padding: 7px 24px;
  }
  .slider-arrow {
    height: 44px;
    width: 30px;
  }
  /* Dots: sit on the bottom edge of the hero image, hit area 32x24 with a 6px visible bar drawn by ::before.
     Do not enlarge the hit area with background + background-clip: content-box: the .active background
     shorthand resets background-clip to border-box (and has higher specificity), so active would paint a
     32x24 white square while the 12px padding collapses every inactive content-box to 0 and hides it. */
  .slider-dots {
    gap: 8px;
    bottom: 8px;
  }
  .slider-dots button,
  .slider-dots button.active {
    position: relative;
    width: 32px;
    height: 24px;
    padding: 0;
    background: none;
  }
  .slider-dots button::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
  }
  .slider-dots button.active::before {
    background: #fff;
  }
  .hd .title {
    font-size: 20px;
  }
  .mod-jpyx .bd ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .picbox .pic {
    height: 150px;
  }
  .mod-list .bd ul {
    grid-template-columns: repeat(2, 1fr);
  }
  /* A fixed line height truncates the copy once cards narrow (measured on 320/360px SPADEGAMING deal
     cards), so let the height grow */
  .mod-special p {
    height: auto;
  }
  .rank-wrap {
    grid-template-columns: 1fr;
  }
  .review-card {
    width: 240px;
  }
  .stats-bar {
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }
  .stat-item {
    border-right: none;
  }
  .notice-date {
    display: none;
  }
}

@media (max-width: 480px) {
  .slider {
    --track-h: 220px;
  }
  .slider-track {
    height: var(--track-h);
  }
  .slide-copy h2 {
    font-size: 20px;
  }
  .slide-copy p {
    display: none;
  }
  .mod-jpyx .bd ul {
    grid-template-columns: repeat(2, 1fr);
  }
  /* In a two-column narrow card the fixed 88px MAIN pill squeezes the game name to 35-82px
     ("Mahjong Ways 2" measured as "Mahjong Way..."), so the name takes a full line and the pill wraps */
  .mod-jpyx .gamebox {
    flex-wrap: wrap;
    height: auto;
    gap: 4px;
    padding: 8px 10px 0;
  }
  .mod-jpyx .gamebox .game {
    flex-basis: 100%;
  }
  .mod-jpyx .btn,
  .mod-jpyx .btn span {
    width: 100%;
  }
  /* Keep two columns at <=480 as well (it used to be one): the thumbnail drops from 72 to 56px to give the
     single-line ellipsised game name more room */
  .mod-list .bd .icon {
    width: 56px;
  }
  .mod-list .icon-pic {
    width: 56px;
    height: 56px;
  }
  .stat-num {
    font-size: 20px;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .notice-inner {
    animation: none;
  }
  .slide {
    transition: none;
  }
  .icon-pic img {
    transition: none;
  }
  /* The ticker degrades to a static list (animation stops and it becomes manually scrollable, without
     growing the panel) */
  .sp-list {
    animation: none;
  }
  .sp-list-wrap {
    height: 168px;
    overflow-y: auto;
  }
  /* The review marquee also stops and becomes manually scrollable (otherwise content keeps drifting with
     reduced motion enabled and cannot be read) */
  .review-row {
    animation: none;
  }
  .review-marquee {
    overflow-x: auto;
  }
}