:root {
  --bg-deep: #140c08;
  --bg-purple: #281811;
  --bg-purple-2: #3d2416;
  --ink: #ffffff;
  --muted: #facda3;
  --gold: #f3b765;
  --gold-2: #d87a16;
  --purple: #c84805;
  --purple-2: #732f0c;
  --purple-line: rgba(250, 205, 163, 0.26);
  --purple-card: rgba(84, 38, 15, 0.42);
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: #140c08;
  background-image:
    linear-gradient(180deg, rgba(20, 12, 8, 0.5), rgba(20, 12, 8, 0.74)),
    url("../images/ez96-gaming-background-malaysia.webp?v=4");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--gold);
  color: #2a1404;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.25s ease;
}

.skip:focus {
  top: 10px;
}

.app {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background-color: #281811;
  border: 1px solid rgba(243, 148, 81, 0.28);
  border-radius: 0;
}

.app::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -14% -10%;
  background-image: url("../images/ez96-gaming-background-malaysia.webp?v=4");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  animation: bg-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.app::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(78% 34% at 50% 20%, rgba(255, 214, 110, 0.28), transparent 68%),
    linear-gradient(180deg, rgba(40, 24, 17, 0.22) 0%, rgba(40, 24, 17, 0.12) 24%, rgba(28, 14, 8, 0.58) 52%, rgba(16, 9, 6, 0.86) 100%);
}

.app > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(14px + env(safe-area-inset-top)) 18px 4px;
  animation: fade-down 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 58%;
  width: 78%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 214, 110, 0.95), rgba(200, 72, 5, 0) 72%);
  filter: blur(8px);
  animation: logo-halo 2.8s ease-in-out infinite;
  pointer-events: none;
}

.logo img {
  display: block;
  width: 188px;
  height: auto;
  animation: logo-pop 3.2s ease-in-out infinite;
}

.hero {
  padding: 4px 18px 0;
}

.h1-typewriter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 8px;
  padding: 6px 16px;
  min-width: 220px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(200, 72, 5, 0.3), rgba(64, 30, 15, 0.6));
  border: 1px solid rgba(250, 205, 163, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  line-height: 1.25;
  color: #ffffff;
  overflow: hidden;
  animation: h1In 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.typed-text {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  padding-right: 1px;
  letter-spacing: 0.3px;
  background: linear-gradient(100deg, #ffffff 0%, #d87a16 50%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    typewriter 2.2s steps(8, end) 0.55s forwards,
    shimmer 8s linear infinite;
}

.caret {
  display: inline-block;
  margin-left: 3px;
  color: #f3b765;
  font-weight: 800;
  line-height: 1;
  animation: caretBlink 1s steps(2, start) infinite;
}

.hero-wrap {
  position: relative;
  margin: 0 -18px;
  animation: fade-up 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2% 6% 6%;
  background: radial-gradient(ellipse at center, rgba(255, 214, 110, 0.55), rgba(200, 72, 5, 0.18) 42%, transparent 72%);
  filter: blur(22px);
  animation: ambient-glow 4.2s ease-in-out infinite;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18% 22% 12%;
  background: radial-gradient(ellipse at 50% 30%, rgba(200, 72, 5, 0.2), transparent 70%);
  filter: blur(20px);
  animation: ambient-glow 10s ease-in-out -2s infinite reverse;
}

.hero-visual {
  position: relative;
  z-index: 1;
  overflow: visible;
  border-radius: 28px;
  background: transparent;
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 502;
  object-fit: cover;
}

.hero-visual img {
  transform-origin: center 42%;
  animation: hero-float 4.6s ease-in-out infinite;
}

.about-card {
  position: relative;
  z-index: 2;
  margin: -90px 14px 0;
  padding: 11px 14px;
  border-radius: 20px;
  border: 1px solid rgba(250, 205, 163, 0.32);
  background: linear-gradient(180deg, rgba(64, 30, 15, 0.78), rgba(40, 24, 17, 0.88));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: fade-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both, card-hover 12s ease-in-out infinite;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(243, 183, 101, 0.28), transparent 40%, rgba(200, 72, 5, 0.28));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

.about-card summary {
  display: block;
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.about-card summary::-webkit-details-marker {
  display: none;
}

.about-card summary::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 8px auto 0;
  border-right: 2px solid #f3b765;
  border-bottom: 2px solid #f3b765;
  transform: rotate(45deg);
}

.about-card[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.about-card h1 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
}

.about-card p {
  margin: 0;
  color: #f6e6d4;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  letter-spacing: -0.005em;
}

.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 18px 0;
  animation: fade-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  position: relative;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.btn-login {
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, #f39451 0%, #c84805 50%, #732f0c 100%);
  box-shadow:
    0 10px 30px rgba(200, 72, 5, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn-login::after {
  content: "";
  position: absolute;
  inset: -1px -80%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-30%);
  animation: sheen-soft 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.btn-register {
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, #f3b765 0%, #d87a16 50%, #593815 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(243, 183, 101, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-register::after {
  content: "";
  position: absolute;
  inset: -1px -80%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-30%);
  animation: sheen-soft 8s ease-in-out -1s infinite;
  pointer-events: none;
  z-index: 1;
}

.sections-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 18px 0;
  animation: fade-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.section-card {
  padding: 10px 10px 10px;
  border-radius: 18px;
  border: 1px solid var(--purple-line);
  background:
    linear-gradient(180deg, rgba(84, 38, 15, 0.42), rgba(40, 24, 17, 0.55));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(243, 183, 101, 0.18), transparent 55%, rgba(200, 72, 5, 0.2));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.section-card h2 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.section-card.banks img {
  display: block;
  width: 100%;
  height: auto;
  animation: pulse-soft 6s ease-in-out infinite;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.store {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8c98a 0%, #d87a16 100%);
  color: #140c08;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

.store svg {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.store span {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.store small {
  color: #3a2200;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
}

.fab {
  position: fixed;
  z-index: 32;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3b765 0%, #d87a16 100%);
  padding: 4px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(200, 72, 5, 0.72),
    0 0 28px rgba(200, 72, 5, 0.3);
  animation: fab-breathe 6s ease-in-out infinite, fade-in 0.8s ease 0.6s both;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    filter 0.4s ease;
}

.fab::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(243, 183, 101, 0.55);
  animation: fab-ring 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.fab::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  border: 1px solid rgba(200, 72, 5, 0.3);
  animation: fab-ring 3.8s cubic-bezier(0.22, 1, 0.36, 1) -1.2s infinite;
  pointer-events: none;
}

.fab img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
  background: #281811;
}

.foot {
  margin: 16px 18px calc(112px + env(safe-area-inset-bottom));
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(250, 205, 163, 0.32);
  background: linear-gradient(180deg, rgba(84, 38, 15, 0.55), rgba(40, 24, 17, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28);
  text-align: center;
  animation: fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.foot .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
}

.foot .brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 86%;
  height: 62%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 214, 110, 0.55), rgba(200, 72, 5, 0) 72%);
  filter: blur(7px);
  pointer-events: none;
}

.foot .brand img {
  position: relative;
  display: block;
  width: 132px;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
}

.foot .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  max-width: 250px;
  margin: 10px auto 0;
  color: #f6e6d4;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.foot .meta span:not(:last-child)::after {
  content: "·";
  margin: 0 7px;
  color: #f3b765;
}

.foot .legal {
  margin: 6px 0 0;
  color: #d7b89a;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.sheet {
  position: fixed;
  z-index: 30;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(250, 205, 163, 0.38);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(84, 38, 15, 0.95), rgba(40, 24, 17, 0.98));
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateY(220%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, rgba(243, 183, 101, 0.3), transparent 45%, rgba(200, 72, 5, 0.28));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.sheet.is-open {
  transform: translateY(0);
}

.sheet.is-guide {
  border-radius: 22px;
  align-items: center;
}

.sheet.is-guide p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.sheet[hidden] {
  display: none;
}

.sheet .badge {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe3a6 0%, #f3b765 58%, #e0942e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 0 rgba(120, 68, 0, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.sheet .badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 48%);
  pointer-events: none;
}

.sheet .badge svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  color: #3a1c08;
}

.sheet .copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sheet h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.sheet h2 strong {
  color: var(--gold);
}

.sheet p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet .btn-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #f39451 0%, #c84805 55%, #732f0c 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(200, 72, 5, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

.sheet .close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-sheet .fab {
  bottom: calc(96px + env(safe-area-inset-bottom));
  transition:
    bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

html.has-sheet .foot {
  margin-bottom: calc(96px + env(safe-area-inset-bottom));
}

.hidden-h {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.seo-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 18px 0;
}

.seo-sections .section-card {
  padding: 16px 16px 14px;
  line-height: 1.62;
}

.seo-sections .section-card h2 {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 10px;
}

.seo-sections .section-card h3 {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #f3b765;
}

.seo-sections .section-card p {
  margin: 0 0 10px;
  color: #f3e0cc;
  font-size: 0.95rem;
}

.seo-sections .section-card p:last-child {
  margin-bottom: 0;
}

.seo-sections .section-card ul,
.seo-sections .section-card ol {
  margin: 0 0 10px 20px;
  padding: 0;
  color: #f3e0cc;
  font-size: 0.94rem;
}

.seo-sections .section-card li {
  margin: 5px 0;
  line-height: 1.55;
}

.seo-sections .section-card ul li::marker,
.seo-sections .section-card ol li::marker {
  color: #d87a16;
}

.faq-block {
  margin: 14px 18px 0;
}

.faq-block > h2 {
  margin-bottom: 4px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: #ffffff;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: #f3b765;
}

.faq-item[open] summary::before {
  content: "–";
}

.faq-item p {
  margin: 8px 0 0;
}

.faq-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--purple-line);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.alt-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 18px 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  opacity: 0.9;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}

.alt-separator::before,
.alt-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 205, 163, 0.35), transparent);
}

.alt-separator span {
  white-space: nowrap;
}

.features-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 6px 18px 0;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

.feature-card {
  display: block;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(250, 205, 163, 0.32);
  background:
    linear-gradient(180deg, rgba(84, 38, 15, 0.48), rgba(40, 24, 17, 0.65));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    filter 0.4s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(243, 183, 101, 0.4), transparent 45%, rgba(200, 72, 5, 0.45));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.95;
}

.feature-icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe3a6 0%, #f3b765 58%, #e0942e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a1c08;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(120, 68, 0, 0.28),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

.feature-icon svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
}

.feature-card summary {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

.feature-card summary::-webkit-details-marker {
  display: none;
}

.about-card:not([open]) > :not(summary),
.feature-card:not([open]) > :not(summary),
.faq-item:not([open]) > :not(summary) {
  display: none;
}

.feature-card .feature-copy {
  margin: 8px 0 0 54px;
}

.feature-card .feature-copy a {
  color: #f3b765;
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.feature-card p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.feature-card p strong {
  color: #f3b765;
  font-weight: 800;
}

.faq-compact {
  border-color: rgba(243, 183, 101, 0.4);
}

.faq-compact::before {
  background: linear-gradient(135deg, rgba(243, 183, 101, 0.5), transparent 45%, rgba(243, 183, 101, 0.35));
}

@keyframes h1In {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes typewriter {
  0%   { width: 0; }
  100% { width: 8ch; }
}

@keyframes caretBlink {
  0%, 60%   { opacity: 1; }
  61%, 100% { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes logo-pop {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 12px rgba(200, 72, 5, 0.35)) drop-shadow(0 0 0 rgba(255, 214, 110, 0));
  }
  50% {
    transform: translateY(-10px) scale(1.08);
    filter: drop-shadow(0 18px 16px rgba(200, 72, 5, 0.55)) drop-shadow(0 0 22px rgba(255, 214, 110, 0.95));
  }
}

@keyframes logo-halo {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.82);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.28);
  }
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.28));
  }
  50% {
    transform: translateY(-16px) scale(1.045);
    filter: drop-shadow(0 28px 22px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 18px rgba(255, 196, 80, 0.35));
  }
}

@keyframes bg-drift {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.16) translate3d(-2.5%, -3%, 0);
  }
}

@keyframes ambient-glow {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes sheen-soft {
  0%,
  55%  { transform: translateX(-35%); }
  100% { transform: translateX(35%); }
}

@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.025);
    filter: brightness(1.05);
  }
}

@keyframes card-hover {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes fab-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.42),
      0 0 0 3px rgba(200, 72, 5, 0.72),
      0 0 28px rgba(200, 72, 5, 0.3);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
      0 20px 38px rgba(0, 0, 0, 0.48),
      0 0 0 3px rgba(200, 72, 5, 0.85),
      0 0 40px rgba(200, 72, 5, 0.42);
  }
}

@keyframes fab-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06) saturate(1.05);
  }

  .btn-login:hover {
    box-shadow:
      0 16px 40px rgba(200, 72, 5, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  }

  .btn-register:hover {
    box-shadow:
      0 16px 40px rgba(243, 183, 101, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  }

  .btn:active {
    transform: translateY(0) scale(0.985);
  }

  .store:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      0 8px 16px rgba(0, 0, 0, 0.22);
  }

  .store:hover svg {
    transform: rotate(-4deg) scale(1.06);
  }

  .store:active {
    transform: translateY(0) scale(0.985);
  }

  .section-card:hover {
    transform: translateY(-3px);
    border-color: rgba(243, 183, 101, 0.35);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 30px rgba(0, 0, 0, 0.35);
  }

  .feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 183, 101, 0.55);
    filter: brightness(1.04);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 28px rgba(0, 0, 0, 0.38);
  }

  .feature-card:hover .feature-icon {
    transform: scale(1.05) rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .feature-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .fab:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.05);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.5),
      0 0 0 3px rgba(200, 72, 5, 0.85),
      0 0 40px rgba(200, 72, 5, 0.42);
  }

  .sheet .btn-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow:
      0 14px 28px rgba(200, 72, 5, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .sheet .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

  .logo:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.04);
  }
}

@media (min-width: 880px) {
  body {
    padding: 24px 0;
    background-image:
      linear-gradient(180deg, rgba(16, 10, 7, 0.58), rgba(16, 10, 7, 0.78)),
      url("../images/ez96-gaming-background-malaysia.webp?v=4");
    background-size: cover;
    background-position: center;
  }

  .app {
    width: 460px;
    min-height: calc(100dvh - 48px);
    border: 1px solid rgba(243, 148, 81, 0.28);
    border-radius: 40px;
    overflow: hidden;
    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.6),
      0 0 120px rgba(200, 72, 5, 0.14);
  }

  .fab {
    right: 18px;
    bottom: 18px;
  }

  .foot {
    margin-bottom: 22px;
  }

  .sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(220%);
    width: 460px;
    bottom: 0;
    border-radius: 26px 26px 0 0;
  }

  .sheet.is-open {
    transform: translateX(-50%) translateY(0);
  }

  html.has-sheet .fab {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .typed-text {
    width: 8ch !important;
  }

  .caret {
    animation: none !important;
    opacity: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
