/* ==========================================================================
   GAMEMY — gamemy1.org
   Design language taken from the GAMEMY app UI:
   gold ribbon plaques over navy panels with gold edging, yellow figures.
   ========================================================================== */

:root {
  --bg:          #061029;
  --bg-2:        #08183A;
  --panel-top:   #17408A;
  --panel-bot:   #0B2350;
  --panel-line:  #D8A93F;
  --gold:        #E9BE55;
  --gold-lt:     #FBE7A6;
  --gold-dk:     #A9761B;
  --yellow:      #FFE84A;
  --red:         #8E1218;
  --red-lt:      #B8232B;
  --text:        #FFFFFF;
  --text-dim:    #AFC4E6;
  --radius:      18px;
  --radius-sm:   11px;
  --maxw:        1100px;
  --font:        "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -8%, #123164 0%, transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--yellow); color: #16233B;
  padding: 10px 18px; font-weight: 800;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Promotions ticker ---------- */
.ticker {
  position: relative;
  background: #04091A;
  border-bottom: 1px solid #17325F;
  overflow: hidden;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-list {
  display: flex; list-style: none; margin: 0; padding: 0;
}
.ticker-list li {
  white-space: nowrap;
  padding: 9px 0;
  font-size: 13.5px; letter-spacing: .2px;
  color: #DCE7FA;
}
.ticker-list li strong { color: var(--yellow); font-weight: 800; }
.ticker-list li::after {
  content: "\25C6";
  color: var(--gold); margin: 0 24px; font-size: 9px;
  position: relative; top: -2px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

/* Announcement icon, fixed at the left with the ticker running behind it */
.ticker-icon {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  width: 40px; display: flex; align-items: center; justify-content: center;
  background: #04091A; border-right: 1px solid #17325F;
  color: var(--gold);
}
.ticker-icon svg { width: 17px; height: 17px; display: block; }
.ticker-track { padding-left: 40px; }

@media (max-width: 760px) {
  .ticker-list li { font-size: 12.5px; }
  .ticker-list li::after { margin: 0 16px; }
  .ticker-icon { width: 32px; }
  .ticker-icon svg { width: 15px; height: 15px; }
  .ticker-track { padding-left: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-list[aria-hidden="true"] { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(6,16,41,.94);
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 18px; max-width: var(--maxw); margin: 0 auto;
}
.logo { flex: 0 0 auto; display: block; line-height: 0; }
.logo img { height: 40px; width: auto; display: block; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; }

/* ---------- Mobile menu toggle ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 38px; padding: 0;
  cursor: pointer; border-radius: 9px;
  border: 1px solid var(--panel-line);
  background: #10254E;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--gold);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav a, .site-nav span[aria-current] {
  display: block; padding: 7px 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; text-decoration: none;
  color: var(--text-dim); white-space: nowrap;
}
.site-nav a:hover { color: var(--yellow); background: #10254E; }
.site-nav span[aria-current] {
  color: var(--red); background: linear-gradient(180deg, var(--gold-lt), var(--gold));
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--text-dim); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #38558C; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 6px; text-align: center; }
.hero-banner { margin: 0 0 26px; }
.hero-lede { font-size: 18px; max-width: 68ch; margin: 0 auto 16px; color: #DCE7FA; }
.hero-lede strong { color: var(--yellow); }

/* Cream headline with a warm emboss, matching the banner typography */
h1 {
  font-size: clamp(27px, 4.4vw, 41px);
  line-height: 1.16; margin: 0 0 20px; font-weight: 900;
  letter-spacing: -.2px;
  color: #FFF2D2;
  text-shadow:
     0 2px 0   #7C1A12,
     0 -1px 0  rgba(0,0,0,.35),
     0 6px 18px rgba(0,0,0,.55);
}
h1 .yr { color: var(--yellow); }

/* ---------- Banner images ---------- */
.banner {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--panel-line);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* ---------- Hero banner slider ---------- */
.slider { position: relative; margin: 0 0 24px; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; gap: 0;
  scrollbar-width: none; -ms-overflow-style: none;
  border-radius: var(--radius);
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; min-width: 0; }
.slide img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--panel-line);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

.s-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold-dk); cursor: pointer;
  background: linear-gradient(180deg, #FDEDBB, #D9A22F);
  color: var(--red); font-size: 22px; font-weight: 900; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.5); z-index: 4; padding: 0;
}
.s-arrow:hover { filter: brightness(1.08); }
.s-prev { left: 10px; }
.s-next { right: 10px; }

.dots { display: flex; justify-content: center; gap: 9px; margin: 14px 0 0; }
.dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%;
  border: 1px solid var(--gold-dk); background: #16336B; cursor: pointer;
}
.dots button[aria-current="true"] {
  background: linear-gradient(180deg, #FDEDBB, #D9A22F);
  transform: scale(1.25);
}

/* ---------- The gold plaque heading ---------- */
.promo { margin: 0 0 40px; }

h2.plaque, .plaque {
  display: block;
  position: relative; z-index: 3;
  width: fit-content; max-width: 94%;
  margin: 0 auto -20px;
  padding: 11px 40px 13px;
  background: linear-gradient(180deg, #FDEDBB 0%, #EFC864 38%, #D9A22F 62%, #B37C1C 100%);
  color: var(--red);
  font-size: clamp(15px, 2.1vw, 20px);
  font-weight: 900; line-height: 1.28;
  text-align: center; text-transform: uppercase;
  letter-spacing: .3px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%,
                     calc(100% - 18px) 100%, 18px 100%, 0 50%);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

h3.plaque-sm {
  display: block; width: fit-content; max-width: 96%;
  margin: 30px auto 14px; padding: 7px 26px;
  background: linear-gradient(180deg, #FDEDBB, #D9A22F);
  color: var(--red); font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 900; text-transform: uppercase; text-align: center;
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

/* ---------- Panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bot) 100%);
  border: 2px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 34px 26px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
}
.panel > :last-child { margin-bottom: 0; }

.lead {
  font-size: 19px; font-weight: 700; color: #FFFFFF;
  text-align: center; max-width: 62ch; margin: 0 auto 20px;
}
.lead .hl { color: var(--yellow); }

p { margin: 0 0 16px; }
a { color: var(--gold); }
a:hover { color: var(--yellow); }
strong { color: #FFFFFF; font-weight: 700; }
.amount, .hl { color: var(--yellow); font-weight: 800; white-space: nowrap; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 9px; }

/* ---------- Numbered step list ---------- */
ol.steps { list-style: none; counter-reset: s; padding-left: 0; margin: 0 0 18px; }
ol.steps > li {
  counter-increment: s; position: relative;
  padding: 3px 0 15px 46px; margin: 0;
}
ol.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 31px; height: 31px; border-radius: 50%;
  background: linear-gradient(180deg, #FDEDBB, #D9A22F);
  color: var(--red); font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps strong { color: #FFFFFF; }
/* Step and checklist lead-ins: an h4 title on its own line, description under it */
ol.steps h4, ul.ticks h4 {
  display: block; margin: 0 0 4px;
  font-size: 16.5px; line-height: 1.4;
  font-weight: 800; color: #FFFFFF;
  letter-spacing: .1px;
}
ol.steps > li, ul.ticks > li { color: #C3D5F1; }
ol.steps > li { padding-bottom: 20px; }
ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li { padding-left: 26px; position: relative; }
ul.ticks li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: 13px;
}

/* ---------- Tables (GAMEMY app style) ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 15.5px; min-width: 420px;
  border: 2px solid var(--panel-line); border-radius: var(--radius-sm);
  overflow: hidden; background: #0C2350;
}
caption {
  caption-side: top; text-align: center;
  font-size: 13.5px; color: var(--text-dim);
  padding: 0 0 9px; font-style: italic;
}
thead th {
  background: #FFFFFF; color: var(--red);
  font-weight: 900; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .4px;
  padding: 11px 13px; text-align: left;
  border-bottom: 2px solid var(--gold-dk);
}
tbody th, tbody td {
  padding: 11px 13px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #1E4A8F;
}
tbody th { font-weight: 700; color: #FFFFFF; }
tbody td { color: #D8E4F8; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.035); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,232,74,.07); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table .val { color: var(--yellow); font-weight: 800; }

/* ---------- Callouts ---------- */
.note, .warning, .keyfact {
  border-radius: var(--radius-sm);
  padding: 15px 18px; margin: 0 0 20px;
  background: rgba(0,0,0,.24);
  border: 1px solid #24559C;
}
.keyfact { border-color: var(--gold-dk); background: rgba(233,190,85,.10); }
.warning { border-color: #C7622A; background: rgba(199,98,42,.12); }
.note p:last-child, .warning p:last-child, .keyfact p:last-child { margin-bottom: 0; }
.note .label, .warning .label, .keyfact .label {
  display: block; font-size: 11.5px; font-weight: 900;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px;
  color: var(--gold);
}
.warning .label { color: #FFA46B; }

/* ---------- CTA ---------- */
.cta-row { display: flex; justify-content: center; margin: 22px 0 4px; }
/* the hero CTA sits directly above the banner slider — give it breathing room */
.hero .cta-row { margin: 26px 0 34px; }
.btn {
  display: inline-block; padding: 14px 42px;
  border: 2px solid var(--gold-dk); border-radius: 999px;
  font-family: inherit; font-weight: 900; font-size: 17px;
  text-transform: uppercase; letter-spacing: .6px;
  text-decoration: none; text-align: center;
  color: var(--red); cursor: pointer;
  background: linear-gradient(180deg, #FDEDBB 0%, #EFC864 40%, #D9A22F 100%);
  box-shadow: 0 6px 18px rgba(217,162,47,.38);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217,162,47,.5); }
.btn:active { transform: translateY(0); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid #24559C; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.22); margin: 0 0 10px;
}
.faq summary {
  cursor: pointer; padding: 14px 18px; list-style: none;
  font-weight: 800; font-size: 16.5px; color: #FFFFFF;
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid #24559C; }
.faq .faq-body { padding: 14px 18px 4px; color: #CFDEF5; }
.faq .faq-body strong { color: #FFFFFF; }

/* ---------- Spec list ---------- */
.spec { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; margin: 0 0 20px;
        border: 2px solid var(--panel-line); border-radius: var(--radius-sm); overflow: hidden; }
.spec dt, .spec dd { padding: 11px 14px; margin: 0; border-bottom: 1px solid #1E4A8F; }
.spec dt { font-weight: 800; background: rgba(255,255,255,.05); color: #FFFFFF; }
.spec dd { color: #D8E4F8; background: rgba(0,0,0,.16); }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: none; }

/* ---------- Closing CTA panel (ang pao red) ---------- */
.panel--cta {
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(255,215,120,.20), transparent 70%),
    linear-gradient(180deg, #A2161C 0%, #6A0E13 55%, #3E070A 100%);
  border-color: var(--gold);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16);
}
.panel--cta .lead {
  font-size: 21px; color: #FFF2D2; max-width: 56ch;
}
.panel--cta .cta-sub {
  color: #FFD9A8; font-size: 16.5px; max-width: 52ch; margin: 0 auto 6px;
}
.btn-lg {
  padding: 17px 54px; font-size: 19px;
  box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 4px rgba(255,232,74,.14);
}

/* ---------- Responsible-gaming strip ---------- */
.rg-strip {
  border: 1px solid var(--gold-dk); background: rgba(233,190,85,.08);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 34px 0 0;
  font-size: 14.5px; color: var(--text-dim); text-align: center;
}
.rg-strip strong { color: var(--yellow); }

/* ---------- Placeholder marker ---------- */
.ph {
  background: rgba(255,232,74,.16); border-bottom: 1px dashed var(--gold);
  color: var(--yellow); font-weight: 700; padding: 0 3px; border-radius: 3px;
  font-size: .94em; white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #04091A; border-top: 2px solid;
  border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
  margin-top: 60px; padding: 38px 0 26px;
  font-size: 15px; color: var(--text-dim);
}
.footer-cols {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 28px;
}
.footer-cols h2 {
  font-size: 12.5px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; font-weight: 900;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0 0 8px; }
.footer-cols a { color: var(--text-dim); text-decoration: none; }
.footer-cols a:hover { color: var(--yellow); }
/* Payment methods are statements of fact, not links */
.footer-cols .pay-list li { color: var(--text-dim); }
.footer-cols .pay-list li::before {
  content: "\25C6"; color: var(--gold);
  font-size: 8px; margin-right: 8px;
  position: relative; top: -2px;
}
.footer-legal { border-top: 1px solid #14294F; padding-top: 20px; font-size: 13.5px; line-height: 1.65; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid #14294F;
}
.footer-bottom p { margin: 0; }
.dmca-badge { display: inline-block; line-height: 0; flex: 0 0 auto; }
.dmca-badge img { display: block; height: auto; opacity: .85; }
.dmca-badge:hover img { opacity: 1; }

.footer-legal .badge {
  display: inline-block; border: 2px solid var(--yellow); color: var(--yellow);
  border-radius: 50%; width: 34px; height: 34px; line-height: 30px;
  text-align: center; font-weight: 900; font-size: 13px;
  margin-right: 12px; vertical-align: middle;
}

/* ---------- Responsive ---------- */
/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  cursor: pointer; border: 2px solid var(--gold-dk);
  background: linear-gradient(180deg, #FDEDBB 0%, #EFC864 40%, #D9A22F 100%);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { filter: brightness(1.07); }
.to-top svg { width: 20px; height: 20px; display: block; }

/* ---------- Nav collapses to a menu ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; background: #08183A;
    border-bottom: 2px solid var(--gold);
    max-height: 0; overflow: hidden;
    transition: max-height .26s ease;
  }
  .site-nav[data-open="true"] { max-height: 78vh; overflow-y: auto; }
  .site-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 0; }
  .site-nav li { width: 100%; border-top: 1px solid #14294F; }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a, .site-nav span[aria-current] {
    display: block; width: 100%; border-radius: 0;
    padding: 14px 20px; font-size: 16px; white-space: normal;
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { padding: 9px 14px; gap: 9px; }
  .logo img { height: 32px; }
  .hero { padding: 22px 0 4px; }
  .hero-lede { font-size: 16.5px; }
  .lead { font-size: 17px; }
  h2.plaque { padding: 10px 26px 12px; clip-path: none; border-radius: 10px; max-width: 100%; }
  .panel { padding: 30px 16px 20px; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: none; padding-bottom: 2px; }
  .btn { width: 100%; padding: 14px 20px; }
  .s-arrow { width: 34px; height: 34px; font-size: 18px; }
  .s-prev { left: 6px; }
  .s-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
