/* GAME ONE Landing — red/gold full-bleed, inspired by offerg1.com */
:root {
  --bg-deep: #3a0804;
  --bg-shell: #6e0c08;
  --bg-hero: #780008;
  --gold: #ffd85d;
  --gold-soft: #fff7c9;
  --gold-edge: #fff3a1;
  --gold-grad-a: #fff6a6;
  --gold-grad-b: #ffc22e;
  --ink: #fff;
  --muted: #f3d9b0;
  --card: rgba(90, 10, 6, 0.72);
  --line: rgba(255, 216, 93, 0.35);
  --cta: linear-gradient(180deg, #ffe27a, #f0a512);
  --cta-ink: #7a1a00;
  --shadow: 0 10px 28px rgba(20, 0, 0, 0.45);
  --wrap: min(1120px, calc(100% - 40px));
  --font: "Trebuchet MS", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.shell {
  width: 100%;
  background: var(--bg-shell);
  overflow: hidden;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--gold-edge);
  border-radius: 999px;
  color: #8d1e00;
  background: linear-gradient(180deg, var(--gold-grad-a), var(--gold-grad-b));
  box-shadow: 0 3px 0 #c85609, 0 0 14px #ffe36a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 720px;
}

.section-title small {
  display: block;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: -2px -2px 0 #aa2709, 3px 3px 0 #711100, 0 0 12px #ffc549;
}

.section-title p {
  margin: 0;
  color: var(--gold-soft);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid #fff4b0;
  background: var(--cta);
  color: var(--cta-ink) !important;
  font-weight: 900;
  box-shadow: 0 4px 0 #b45308, 0 0 18px rgba(255, 210, 80, 0.45);
  transition: transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--gold-soft) !important;
  border-color: rgba(255, 216, 93, 0.65);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Music */
.music-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  border: 1px solid rgba(255, 216, 93, 0.5);
  background: rgba(70, 8, 4, 0.85);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 28px 0 56px;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(80, 8, 4, 0.28), rgba(40, 2, 0, 0.45) 55%, rgba(30, 2, 0, 0.62)),
    var(--hero-bg, url("../assets/game-one-slot-world.jpg")) center top / cover no-repeat;
  background-color: var(--bg-hero);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 200, 80, 0.08), transparent 52%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
  z-index: 2;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-row .x {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 0 8px #ffd85d;
}

.brand-row .logo img {
  width: 120px;
  filter: drop-shadow(0 4px 6px rgba(54, 0, 0, 0.55));
}

.brand-row .pragmatic img {
  width: 150px;
  filter: drop-shadow(0 0 5px #ffd75b) drop-shadow(0 4px 5px rgba(55, 0, 0, 0.75));
}

.hero-copy small.eyebrow {
  margin-bottom: 10px;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: 2px;
  transform: skew(-3deg);
  text-shadow: -2px -2px 0 #aa2709, 4px 4px 0 #711100, 0 0 16px #ffc549;
}

.hero .lead {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--gold-soft);
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 2px 4px #851900;
}

.packet {
  width: min(100%, 360px);
  margin: 0 auto 22px;
  padding: 28px 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #c91a1a, #7a0505);
  border: 3px solid #ffd76a;
  box-shadow: var(--shadow), inset 0 0 30px rgba(255, 210, 100, 0.15);
  position: relative;
}

.packet .label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.packet .slogan {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.packet .slogan b {
  display: inline-block;
  margin: 0 1px;
  color: #fff8d0;
  text-shadow: 0 2px 0 #6b0000;
}

.hero-foot {
  margin-top: 18px;
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 14px;
}

/* ========== SECTIONS ========== */
.sec {
  padding: 72px 0;
  position: relative;
}

.sec.alt {
  background: linear-gradient(180deg, #5a0a06, #3f0604);
}

.sec.deep {
  background: #2a0503;
}

/* Exclusive detail */
.exclusive-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.exclusive-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.exclusive-panel h3 {
  margin: 0 0 12px;
  font-size: 26px;
  color: var(--gold);
}

.exclusive-panel .amount {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 1000;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 18px #ffc549;
  margin: 0 0 8px;
}

.exclusive-panel .amount span {
  font-size: 0.4em;
  margin-left: 6px;
  color: var(--gold);
}

.steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.steps .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 900;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 14px;
}

/* Promo banners (official wide art) */
.promo-banners {
  display: grid;
  gap: 16px;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.promo-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 216, 93, 0.7);
}

.promo-banner .art {
  min-height: 160px;
  background: #120101;
}

.promo-banner .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.promo-banner .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.promo-banner .tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 200, 60, 0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.promo-banner h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.promo-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.promo-banner .btn {
  width: fit-content;
  margin-top: 6px;
  min-height: 42px;
  padding: 0 18px;
}

.promo-more {
  margin-top: 24px;
  text-align: center;
}

.terms-line {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  color: rgba(243, 217, 176, 0.75);
  font-size: 13px;
}

/* Games — HD cast as section background */
.sec-games {
  position: relative;
  padding: 96px 0;
  background:
    linear-gradient(180deg, rgba(20, 2, 2, 0.78), rgba(42, 5, 3, 0.88)),
    url("../assets/generated/games-bg-hd.jpg") center / cover no-repeat;
  background-color: #1a0201;
  border-top: 1px solid rgba(255, 216, 93, 0.25);
  border-bottom: 1px solid rgba(255, 216, 93, 0.25);
}

.sec-games .section-title {
  position: relative;
  z-index: 2;
}

.sec-games .section-title h2,
.sec-games .section-title p,
.sec-games .section-title small {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.game-cta {
  margin-top: 28px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.slot-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.slot-card {
  background: rgba(28, 4, 3, 0.82);
  border: 1px solid rgba(255, 216, 93, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.slot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 216, 93, 0.75);
}

.slot-card .thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #120101;
  overflow: hidden;
}

.slot-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.slot-card:hover .thumb img {
  transform: scale(1.2);
}

.slot-card h3 {
  margin: 16px 12px 4px;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  width: 100%;
}

.slot-card .en {
  margin: 0 12px 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
}

.slot-card p:not(.en) {
  margin: 0 12px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  flex: 1;
  text-align: center;
  width: 100%;
}

.slot-card .btn {
  margin: 0 auto 16px;
  width: calc(100% - 28px);
  max-width: 180px;
  min-height: 40px;
  font-size: 13px;
  padding: 0 10px;
  align-self: center;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.faq-item.open .faq-q::after {
  content: "–";
}

.faq-a {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0;
}

/* APP */
.app-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.app-hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 216, 93, 0.45);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #2a0604, #120101 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px 0;
}

.app-hero-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  margin: 0 auto;
}

.app-hero-copy h3 {
  margin: 0 0 10px;
  font-size: 26px;
  color: var(--gold);
}

.app-hero-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.app-card h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 22px;
}

.app-card ol {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.app-card li {
  margin: 6px 0;
}

.app-card .btn {
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  background: #1a0201;
  text-align: center;
  border-top: 1px solid rgba(255, 216, 93, 0.2);
}

.site-footer img {
  width: 88px;
  margin: 0 auto 12px;
}

.site-footer p {
  margin: 0 auto 8px;
  max-width: 640px;
  color: rgba(243, 217, 176, 0.7);
  font-size: 13px;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 14px 0 10px;
}

.site-footer .links a {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

/* Wide hero background when generated asset exists */
@supports (background-image: image-set(url("x") 1x)) {
}

@media (min-width: 900px) {
  .hero {
    min-height: 100svh;
    background-image:
      linear-gradient(180deg, rgba(70, 6, 4, 0.22), rgba(35, 2, 0, 0.38) 50%, rgba(25, 2, 0, 0.55)),
      url("../assets/generated/hero-wide.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero.has-wide {
    /* kept for JS compatibility; desktop already uses hero-wide.png */
  }
}

@media (max-width: 1100px) {
  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .exclusive-grid,
  .app-grid,
  .app-hero,
  .promo-banner {
    grid-template-columns: 1fr;
  }

  .promo-banner .art img {
    min-height: 140px;
    max-height: 200px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .sec {
    padding: 52px 0;
  }

  .sec-games {
    padding: 64px 0;
  }

  .app-grid,
  .app-hero,
  .exclusive-grid,
  .promo-banner {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .brand-row .logo img {
    width: 96px;
  }

  .brand-row .pragmatic img {
    width: 120px;
  }

  .btn-row {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
