:root {
  --bg: #040507;
  --panel: #0d1118;
  --panel-2: #141a24;
  --text: #f6f7fb;
  --muted: #95a1b8;
  --accent: #ff4f6f;
  --line: #242d3d;
  --success: #4fd8a3;
  --size-banner-w: 1200;
  --size-banner-h: 300;
  --size-game-w: 228;
  --size-game-h: 141;
  --size-game-popup-w: 180;
  --size-game-popup-h: 220;
  --size-category-w: 280;
  --size-category-h: 120;
  --size-category-popup-w: 200;
  --size-category-popup-h: 320;
  --size-brand-w: 180;
  --size-brand-h: 52;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

body {
  background-color: #040507;
  background-image:
    var(--site-bg-overlay, radial-gradient(circle at 10% 10%, #1b2231, #040507 45%)),
    var(--site-bg-image, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
  background-image: radial-gradient(#ffffff 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

.optional-effect-canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

#goldCanvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 50px;
}

.hero {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}

h1 {
  margin: 6px 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
}

.sub {
  margin: 0;
  color: #cdd4e2;
}

.hero-banner {
  width: 100%;
  max-width: 100%;
  aspect-ratio: calc(var(--size-banner-w) / var(--size-banner-h));
  height: auto;
  max-height: calc(var(--size-banner-h) * 1px);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.banner-track {
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 10, 15, 0.72), rgba(8, 10, 15, 0.18));
}

.banner-kicker,
.banner-title {
  margin: 0;
  position: relative;
  z-index: 1;
}

.banner-kicker {
  font-size: 12px;
  color: #9eb2d5;
  letter-spacing: 2px;
}

.banner-title {
  margin-top: 6px;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
}

.banner-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.banner-dot.is-active {
  background: #ffffff;
}

.filter-strip {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 2px 4px 10px;
  width: max-content;
  min-width: max-content;
  align-items: stretch;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.image-chip {
  flex: 0 0 auto;
  width: calc(var(--size-category-w) * 1px);
  min-width: calc(var(--size-category-w) * 1px);
  height: calc(var(--size-category-h) * 1px);
  border: 0;
  background: transparent;
  color: #eef3ff;
  position: relative;
  overflow: visible;
  cursor: pointer;
  padding: 0;
  text-align: left;
  scroll-snap-align: start;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.image-chip-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #2f3c52;
  border-radius: 12px;
  background: #121a28;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.05s cubic-bezier(0.22, 1, 0.36, 1), border-color 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter;
}

.image-chip-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--chip-image);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1);
  filter: none;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), filter 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter, opacity;
}

.image-chip-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(to top, rgba(12, 16, 24, 0.95), rgba(12, 16, 24, 0));
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.image-chip span {
  position: relative;
  z-index: 3;
  display: inline-block;
  padding: 48px 14px 0;
  font-size: 18px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.image-chip.is-active .image-chip-shell {
  border-color: #ffd98c;
  box-shadow:
    0 0 0 1px rgba(255, 236, 189, 0.75) inset,
    0 0 0 1px rgba(148, 111, 34, 0.9),
    0 12px 24px rgba(11, 8, 2, 0.5),
    0 0 22px rgba(255, 210, 109, 0.32);
}

.image-chip-pop {
  position: absolute;
  inset: 0;
  border: 0;
  opacity: 0;
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(to top, transparent 46%, rgba(255, 0, 0, 0.22) 68%, rgba(12, 13, 19, 0.94) 97%);
  box-shadow: 0 -56px 23px 16px rgba(0, 0, 0, 0.75) inset;
}

.image-chip:hover .image-chip-shell {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
  border-color: #6d82a8;
}

.image-chip:hover {
  transform: translateY(-2px);
}

.image-chip:hover .image-chip-shell::before {
  opacity: 1;
  transform: scale(1.01);
  filter: blur(4px) brightness(0.44) saturate(0.72);
}

.image-chip:hover .image-chip-shell::after {
  height: 110px;
  opacity: 1;
}

.image-chip:hover .image-chip-pop {
  opacity: 1;
}

.image-chip-character {
  display: none;
}

.image-chip:hover .image-chip-character {
  display: none;
}

.image-chip.is-active .image-chip-character {
  display: none;
}

.chip-popup-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 30;
}

.chip-popup-character {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--size-category-popup-w) * 1px);
  height: calc(var(--size-category-popup-h) * 1px);
  border: 1px solid #64748b;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  animation: chipPopIn 0.24s ease;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.chip-popup-character.is-hide {
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.search-strip {
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}

.banner-actions {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(74, 93, 128, 0.42);
  background: linear-gradient(180deg, rgba(16, 23, 36, 0.82), rgba(11, 16, 26, 0.72));
  box-shadow: inset 0 1px 0 rgba(180, 201, 240, 0.08), 0 14px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(4px);
}

.banner-action-btn {
  position: relative;
  min-height: 50px;
  overflow: hidden;
  border-width: 1px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.9px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -34%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  transform: skewX(-22deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.banner-action-btn:hover::before {
  left: 120%;
}

.banner-actions .modal-btn-login {
  border-color: #5573a5;
  box-shadow:
    inset 0 1px 0 rgba(190, 214, 255, 0.18),
    0 12px 20px rgba(7, 15, 31, 0.5),
    0 0 14px rgba(90, 132, 205, 0.28);
}

.banner-actions .modal-btn-daftar {
  border-color: #b4891e;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 209, 0.5),
    0 12px 20px rgba(70, 44, 2, 0.45),
    0 0 16px rgba(255, 193, 72, 0.26);
}

.banner-actions .modal-btn-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(210, 229, 255, 0.24), 0 16px 24px rgba(7, 15, 31, 0.56), 0 0 18px rgba(110, 156, 236, 0.34);
}

.banner-actions .modal-btn-daftar:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 248, 216, 0.58), 0 16px 24px rgba(70, 44, 2, 0.5), 0 0 18px rgba(255, 204, 88, 0.36);
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.search-label {
  font-size: 14px;
  color: #cbd6ec;
}

.search-input {
  width: 100%;
  border: 1px solid #2f3a4f;
  background: rgba(13, 19, 30, 0.86);
  color: #f4f7ff;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
}

.search-input:focus {
  outline: 2px solid #4b5f85;
  outline-offset: 2px;
}

.sort-wrap {
  position: relative;
}

.sort-toggle {
  border: 1px solid #2f3a4f;
  background: rgba(13, 19, 30, 0.92);
  color: #f4f7ff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  border: 1px solid #2f3a4f;
  background: #0d1320;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  z-index: 12;
}

.sort-menu[hidden] {
  display: none !important;
}

.sort-option {
  border: 0;
  border-bottom: 1px solid #1e293d;
  background: transparent;
  color: #e8eeff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.sort-option:last-child {
  border-bottom: 0;
}

.sort-option:hover,
.sort-option.is-active {
  background: rgba(86, 114, 169, 0.28);
}

.rtp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: 10px;
  align-items: start;
}

.card {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.25s ease;
}

.card-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #2f3c52;
  border-radius: 12px;
  background: linear-gradient(180deg, #121a2a, #0e1420);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.05s cubic-bezier(0.22, 1, 0.36, 1), border-color 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, transparent 46%, rgba(255, 0, 0, 0.22) 68%, rgba(12, 13, 19, 0.94) 97%);
  box-shadow: 0 -56px 23px 16px rgba(0, 0, 0, 0.75) inset;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.card-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(to top, rgba(12, 16, 24, 0.95), rgba(12, 16, 24, 0));
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.card:hover {
  transform: translateY(-2px);
  z-index: 6;
}

.card:hover .card-shell {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
  border-color: #6d82a8;
}

.card:hover .card-shell::before {
  opacity: 1;
}

.card:hover .card-shell::after {
  height: 110px;
  opacity: 1;
}

.card-image {
  aspect-ratio: calc(var(--size-game-w) / var(--size-game-h));
  background-image: var(--img);
  background-size: cover;
  background-position: center center;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), filter 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.card:hover .card-image {
  transform: scale(1.01);
  filter: blur(4px) brightness(0.44) saturate(0.72);
}

.card-character {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(var(--size-game-popup-w) * 1px);
  height: calc(var(--size-game-popup-h) * 1px);
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translate(-50%, 10px) scale(1);
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 20px 14px rgba(0, 0, 0, 0.52));
}

.card:hover .card-character {
  opacity: 1;
  transform: translate(-50%, -12px) scale(1.02);
}

.hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff1f53 0%, #ff7f00 100%);
  border: 1px solid rgba(255, 220, 160, 0.6);
  box-shadow: 0 0 16px rgba(255, 80, 20, 0.6);
  animation: hotPulseOrange 1.2s ease-in-out infinite;
  z-index: 6;
}

.hot-badge::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hot-badge svg {
  width: 18px;
  height: 18px;
  fill: #ffe58a;
  filter: drop-shadow(0 0 6px rgba(255, 240, 150, 0.7));
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #394258;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(11, 15, 23, 0.8);
}

.load-more-wrap {
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  border: 1px solid #2f3a4f;
  background: rgba(13, 19, 30, 0.92);
  color: #f4f7ff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  text-transform: lowercase;
}

.load-more-btn:hover {
  background: rgba(86, 114, 169, 0.28);
}

.load-more-btn[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 20;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(89, 126, 194, 0.24), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(255, 79, 111, 0.16), transparent 34%),
    rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(520px, calc(100% - 26px));
  background:
    radial-gradient(circle at 92% 0%, rgba(96, 146, 255, 0.16), transparent 38%),
    linear-gradient(180deg, #101827 0%, #0d1320 100%);
  border: 1px solid #2f3f5a;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.52);
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.modal-image {
  width: calc(var(--size-game-w) * 1px);
  max-width: 100%;
  aspect-ratio: calc(var(--size-game-w) / var(--size-game-h));
  margin: 0 0 10px;
  background-image: var(--modal-image);
  background-size: cover;
  background-position: center;
  border: 1px solid #2a3953;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #111827;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.modal-provider {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.modal-panel h2 {
  margin: 2px 0 4px;
  font-size: 30px;
  line-height: 0.95;
}

.modal-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 6px;
}

.modal-rtp-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px 0 0;
}

.rtp-meter {
  position: relative;
  width: 100%;
  height: 38px;
  margin-top: 6px;
  overflow: hidden;
  border: 0;
  background: #e9eff8;
  box-shadow: inset 0 2px 8px rgba(10, 15, 25, 0.2), 0 5px 14px rgba(0, 0, 0, 0.22);
}

.rtp-meter-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d8d45 0%, #33b35d 58%, #239f4f 100%);
  box-shadow: inset 0 0 10px rgba(16, 76, 39, 0.26);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.rtp-meter-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.22) 0 10px,
    rgba(255, 255, 255, 0.08) 10px 20px
  );
  mix-blend-mode: soft-light;
  animation: rtpWaterFlow 1.6s linear infinite;
  pointer-events: none;
}

.rtp-meter-fill.is-low {
  background: linear-gradient(90deg, #9e1b1b 0%, #d73434 58%, #bf2020 100%);
  box-shadow: inset 0 0 10px rgba(95, 18, 18, 0.28);
}

.rtp-meter-fill.is-mid {
  background: linear-gradient(90deg, #d08b06 0%, #f1bf2c 58%, #d9a50d 100%);
  box-shadow: inset 0 0 10px rgba(116, 82, 13, 0.28);
}

.rtp-meter-fill.is-high {
  background: linear-gradient(90deg, #1d8d45 0%, #33b35d 58%, #239f4f 100%);
  box-shadow: inset 0 0 10px rgba(16, 76, 39, 0.26);
}

.rtp-meter-label.is-low {
  color: #7f1111;
  text-shadow: 0 1px 0 rgba(255, 216, 216, 0.7), 0 0 8px rgba(255, 132, 132, 0.45);
}

.rtp-meter-label.is-mid {
  color: #6e4f00;
  text-shadow: 0 1px 0 rgba(255, 245, 199, 0.75), 0 0 8px rgba(255, 225, 124, 0.45);
}

.rtp-meter-label.is-high {
  color: #08220f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 8px rgba(85, 255, 163, 0.55);
}

.rtp-meter-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 30px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  color: #08220f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 8px rgba(85, 255, 163, 0.55);
  z-index: 1;
  animation: rtpPulse 1.4s ease-in-out infinite;
}

.rtp-meter::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  animation: rtpSweep 2.1s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.stat-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.pattern-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: #e5ebf8;
  line-height: 1.5;
}

@keyframes rtpPulse {
  0% {
    transform: scale(1);
    letter-spacing: 1px;
  }
  50% {
    transform: scale(1.05);
    letter-spacing: 1.4px;
  }
  100% {
    transform: scale(1);
    letter-spacing: 1px;
  }
}

@keyframes rtpSweep {
  0% {
    left: -35%;
  }
  100% {
    left: 125%;
  }
}

@keyframes rtpWaterFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.modal-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 42px;
  padding: 11px 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border: 1px solid #3f4d68;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.modal-btn-login {
  color: #e4eeff;
  background: linear-gradient(180deg, #1c2840 0%, #121b2d 100%);
  border-color: #42567a;
  box-shadow: inset 0 1px 0 rgba(177, 202, 255, 0.12), 0 8px 16px rgba(0, 0, 0, 0.32);
}

.modal-btn-daftar {
  color: #5a1a00;
  background: linear-gradient(180deg, #ffd348 0%, #f8a906 100%);
  border-color: #9d7410;
  box-shadow: inset 0 1px 0 rgba(255, 244, 194, 0.55), 0 8px 18px rgba(134, 86, 7, 0.35);
}

.modal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.modal-btn:active {
  transform: translateY(0);
}

.floating-brand-right {
  position: fixed;
  right: max(6px, calc((100vw - 1120px) / 2 - 190px));
  top: 14px;
  z-index: 16;
}

.floating-brand-left {
  position: fixed;
  left: max(12px, calc((100vw - 1120px) / 2 - 145px));
  top: 14px;
  z-index: 15;
}

.floating-brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #2a3548;
  background: rgba(15, 22, 34, 0.85);
  color: #dce8ff;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.floating-brand-right .floating-brand-link {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.floating-brand-image {
  width: calc(var(--size-brand-w) * 1px);
  height: calc(var(--size-brand-h) * 1px);
  object-fit: cover;
  display: block;
  border: 1px solid #35445f;
}

.floating-brand-right .floating-brand-image {
  border: 0;
}

.floating-brand-link-left {
  border-color: #24433e;
  color: #dffcef;
}

.floating-brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #b4ff9a, #21c566 58%, #0b8f54);
  box-shadow: 0 0 10px rgba(34, 224, 102, 0.7);
  animation: brandPulseGreen 1.4s ease-in-out infinite;
}

.floating-brand-orb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #76ffd7, #23bf93 58%, #0b7f64);
  box-shadow: 0 0 10px rgba(54, 225, 168, 0.65);
  animation: brandPulseGreen 1.4s ease-in-out infinite;
}

.floating-brand-text {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 20px;
}

@keyframes brandPulseGreen {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(36, 224, 126, 0.45);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(52, 240, 150, 0.82);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(36, 224, 126, 0.45);
  }
}

@keyframes hotPulseOrange {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 88, 24, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 160, 30, 0.85);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 88, 24, 0.5);
  }
}

@media (max-width: 1000px) {
  .rtp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-chip {
    min-width: calc(var(--size-category-w) * 0.8 * 1px);
    width: calc(var(--size-category-w) * 0.8 * 1px);
    height: 102px;
  }

  .image-chip span {
    padding-top: 41px;
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .page {
    width: calc(100% - 20px);
    margin: 18px auto 32px;
  }

  .hero-banner {
    max-height: 148px;
  }

  .banner-slide {
    padding: 14px 14px;
  }

  .banner-title {
    font-size: 17px;
  }

  .rtp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

  .banner-actions {
    grid-template-columns: 1fr;
  }

  .sort-wrap {
    width: 100%;
  }

  .sort-toggle {
    width: 100%;
  }

  .sort-menu {
    left: 0;
    right: auto;
    min-width: 100%;
  }

  .floating-brand-right,
  .floating-brand-left {
    display: none;
  }
}

@media (max-width: 520px) {
  .rtp-grid {
    grid-template-columns: 1fr;
  }

  .modal-stats {
    grid-template-columns: 1fr;
  }
}
