@charset "UTF-8";
/*
 * 店店贏 — 一頁式網站樣式
 * 主色：淺黃底、紅色重點；背景為淺黃漸層加旋轉光芒
 */
:root {
  --bg-image: url(../img/ddwin_bg.jpg);
  --bg-image-mobile: url(../img/ddwin_bg.jpg);
  --bg-position: center;
  --sun: #fff7e2; /* 背景象牙淺黃 */
  --sun-hi: #ffffff;
  --sun-deep: #fbe8b6;
  --gold: #ffc62e; /* 招牌金 */
  --gold-deep: #e48a00;
  --gold-shadow: #8a4b00;
  --cherry: #d9182d; /* 777 紅 */
  --teal: #2fa595; /* 外圈青綠 */
  --cream: #fff5d8;
  --ink: #3d1d00;
  --ink-soft: #6e4210;
  --bulb: #fff3b0;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --sun: #fff7e2;
    --ink: #3d1d00;
  }
}
:root[data-theme=dark] {
  --sun: #fff7e2;
  --ink: #3d1d00;
}

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

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  background: var(--sun);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  color: var(--ink);
  background-color: var(--sun);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cherry);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ===== 主視覺 ===== */
main {
  position: relative;
  isolation: isolate;
  --cx: 50%;
  --cy: 28%;
}

@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
main::before {
  /* 放射光芒，緩慢旋轉並往外淡出 */
  animation: rays 40s linear infinite;
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150svh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at var(--cx) var(--cy), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 40%), repeating-conic-gradient(from var(--ang) at var(--cx) var(--cy), rgba(232, 184, 72, 0.16) 0 7deg, transparent 7deg 15deg);
  -webkit-mask-image: radial-gradient(ellipse 70% 45% at var(--cx) var(--cy), #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 45% at var(--cx) var(--cy), #000 30%, transparent 100%);
}

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(24px, 5vw, 56px) 20px clamp(32px, 6vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
}

/* 跑馬燈燈泡外框 — 頁面的主角 */
.marquee {
  --size: min(88vw, 52svh, 460px);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.marquee::before {
  /* 金色光暈 */
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 236, 150, 0.5) 45%, rgba(255, 236, 150, 0) 70%);
  filter: blur(12px);
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sparkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--z);
  aspect-ratio: 1;
  margin: calc(var(--z) / -2);
  background: radial-gradient(circle, #fff 0 12%, transparent 13%), conic-gradient(from 45deg, transparent 0 0);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background-color: #ffcf3a;
  filter: drop-shadow(0 0 6px rgba(255, 190, 0, 0.9));
  animation: twinkle 2.4s ease-in-out var(--t) infinite;
}

@keyframes twinkle {
  0%, 100% {
    transform: scale(0.3) rotate(0);
    opacity: 0;
  }
  50% {
    transform: scale(1) rotate(45deg);
    opacity: 1;
  }
}
.logo {
  position: relative;
  width: 84%;
  filter: drop-shadow(0 14px 20px rgba(200, 110, 0, 0.28));
  animation: pop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes pop {
  from {
    transform: scale(0.6) rotate(-6deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
/* ===== 文字與行動區 ===== */
.play {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  max-width: 30rem;
}

.title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  line-height: 1.05;
  color: var(--cherry);
  background: linear-gradient(#ff6b7c 0 28%, var(--cherry) 55%, #9e0c1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 3px 0 var(--gold-deep)) drop-shadow(0 5px 0 var(--gold-shadow)) drop-shadow(0 10px 14px rgba(120, 60, 0, 0.35));
}

.lede {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 24em;
}

/* 直接玩按鈕：手機、平板 */
.btn-play {
  display: none;
  position: relative;
  min-width: min(100%, 320px);
  padding: 20px 40px 22px;
  border-radius: 999px;
  font-size: clamp(1.5rem, 5.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(#ff5468, var(--cherry) 55%, #a50d1f);
  border: 4px solid #fff3b0;
  box-shadow: 0 6px 0 var(--gold-shadow), 0 10px 0 #4a1a00, 0 16px 26px rgba(120, 60, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 0 #7a0614;
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.btn-play::after {
  /* 光澤 */
  content: "";
  position: absolute;
  inset: 4px 18px auto;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-play:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--gold-shadow), 0 4px 0 #4a1a00, 0 8px 14px rgba(120, 60, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.btn-hint {
  display: none;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* QR Code：桌機 */
.qr-card {
  display: none;
  grid-template-columns: auto;
  justify-items: center;
  gap: 14px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: #fff;
  border: 4px solid var(--cherry);
  box-shadow: 0 0 0 6px #ffe27a, 0 0 0 9px #ffb300, 0 20px 40px rgba(220, 140, 0, 0.2);
}

.qr-card .qr {
  width: 220px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed #ffcf4a;
}

.qr-card .qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr-card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.qr-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

.qr-card a {
  color: var(--cherry);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* 依裝置切換（無 JS 時以寬度判斷） */
.is-touch .btn-play,
.is-touch .btn-hint {
  display: inline-block;
}

.is-desktop .qr-card {
  display: grid;
}

html:not(.is-touch):not(.is-desktop) .qr-card {
  display: grid;
}

@media (max-width: 1023px) {
  html:not(.is-touch):not(.is-desktop) .qr-card {
    display: none;
  }
  html:not(.is-touch):not(.is-desktop) .btn-play,
  html:not(.is-touch):not(.is-desktop) .btn-hint {
    display: inline-block;
  }
}
/* ===== 玩法 ===== */
.how {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}

.how h2 {
  margin: 0 0 20px;
  text-align: center;
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--cherry);
  text-shadow: 0 2px 0 #fff;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #ffd45c;
  box-shadow: 0 4px 0 #ffd45c, 0 10px 20px rgba(230, 150, 0, 0.12);
}

.steps li::before {
  content: counter(s);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(#ff5468, var(--cherry));
  border: 3px solid #fff3b0;
  box-shadow: 0 0 0 2px var(--gold-deep);
  text-shadow: 0 1px 0 #7a0614;
}

.steps b {
  display: block;
  font-size: 1.05rem;
}

.steps b span {
  color: inherit;
  font-size: inherit;
}

.steps div > span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.only-touch {
  display: none;
}

.is-touch .only-touch {
  display: inline;
}

.is-touch .only-desktop {
  display: none;
}

footer {
  text-align: center;
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 2px dashed #ffcf4a;
  background: rgba(255, 255, 255, 0.5);
}

footer p {
  margin: 4px 0;
}

/* ===== 背景裝飾：老虎機符號 ===== */
.stage {
  position: relative;
  z-index: 1;
}

@keyframes rays {
  to {
    --ang: 360deg;
  }
}
/* 標題與按鈕上的金光掃過 */
.btn-play {
  overflow: hidden;
}

.btn-play::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: shine 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
/* 中獎徽章 */
/* ===== 金屬質感 ===== */
:root {
  --metal: linear-gradient(
    180deg,
    #f9e294 0%,
    #e6b843 18%,
    #946006 40%,
    #f7dc84 54%,
    #bf8a20 72%,
    #5a3800 100%
  );
  --rim: #4f3100;
  --ruby: linear-gradient(
    180deg,
    #ff7b8a 0%,
    #e3172e 38%,
    #a00a1c 62%,
    #d0142a 82%,
    #ff5a6b 100%
  );
}

.btn-play {
  border: 4px solid transparent;
  background: var(--ruby) padding-box, var(--metal) border-box;
  box-shadow: 0 6px 0 #6e4500, 0 10px 0 #3b2400, 0 18px 28px rgba(110, 70, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-play:active {
  box-shadow: 0 0 0 #6e4500, 0 4px 0 #3b2400, 0 8px 14px rgba(110, 70, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.qr-card {
  border: 7px solid transparent;
  background: linear-gradient(#fff, #fffaf0) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #6e4500, 0 24px 44px rgba(110, 70, 0, 0.28);
}

.qr-card .qr {
  border: 1px solid #e3bd52;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #f1dc9a;
}

.steps li {
  border: 3px solid transparent;
  background: linear-gradient(#fff, #fffaf0) padding-box, var(--metal) border-box;
  box-shadow: 0 10px 22px rgba(110, 70, 0, 0.16);
}

.steps li::before {
  border: 3px solid transparent;
  background: var(--ruby) padding-box, var(--metal) border-box;
  box-shadow: 0 3px 6px rgba(110, 70, 0, 0.3);
}

.how h2 {
  background: linear-gradient(#ff6b7c 0 28%, var(--cherry) 55%, #9e0c1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 0 #cf9a2e) drop-shadow(0 3px 0 #6e4500) drop-shadow(0 6px 8px rgba(110, 70, 0, 0.3));
}

.title {
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 3px 0 #cf9a2e) drop-shadow(0 5px 0 #6e4500) drop-shadow(0 10px 14px rgba(110, 70, 0, 0.35));
}

.sparkles i {
  background-color: #fff1b0;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px rgba(230, 170, 0, 0.9));
}

footer {
  border-top: none;
  position: relative;
  background: rgba(255, 255, 255, 0.55);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--metal);
}

/* ===== 金屬框與背景分離：深色外緣 + 白色隔離環 ===== */
.qr-card {
  box-shadow: 0 0 0 1.5px var(--rim), 0 0 0 5px #fff, 0 0 0 6.5px rgba(79, 49, 0, 0.45), 0 26px 48px rgba(90, 56, 0, 0.3);
}

.steps li {
  box-shadow: 0 0 0 1.5px var(--rim), 0 0 0 4px rgba(255, 255, 255, 0.95), 0 12px 24px rgba(90, 56, 0, 0.18);
}

.btn-play {
  box-shadow: 0 0 0 1.5px var(--rim), 0 6px 0 #5a3800, 0 10px 0 #2e1c00, 0 18px 28px rgba(90, 56, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-play:active {
  box-shadow: 0 0 0 1.5px var(--rim), 0 0 0 #5a3800, 0 4px 0 #2e1c00, 0 8px 14px rgba(90, 56, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.steps li::before {
  box-shadow: 0 0 0 1px var(--rim), 0 3px 6px rgba(90, 56, 0, 0.3);
}

footer {
  background: linear-gradient(#fffdf6, #fff3d2);
}

footer::before {
  height: 4px;
  box-shadow: 0 1px 0 var(--rim);
}

/* 小螢幕：logo 已有站名，標題改為僅供讀屏，讓按鈕留在第一屏 */
@media (max-width: 1023px) {
  .stage {
    padding-top: 12px;
    gap: 14px;
    min-height: 100svh;
  }
  .play {
    gap: 12px;
  }
  .title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
/* 桌機：左右兩欄 */
@media (min-width: 1024px) {
  main {
    --cx: 31%;
    --cy: 48svh;
  }
  .stage {
    grid-template-columns: 1.05fr 0.95fr;
    justify-items: stretch;
    align-items: center;
    gap: 56px;
    padding-inline: 40px;
  }
  .marquee {
    --size: min(44vw, 520px);
    justify-self: end;
  }
  .play {
    justify-items: start;
    text-align: left;
    justify-self: start;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 22px 18px;
  }
}
/* 平板直式 */
@media (min-width: 640px) and (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
/* ===== 娛樂城舞台：紅絲絨布幕 + 金色光點 ===== */
main {
  --vh: clamp(46px, 6vw, 74px);
}

.stage {
  padding-top: calc(var(--vh) + clamp(12px, 3vw, 32px));
}

@media (max-width: 1023px) {
  .stage {
    padding-top: calc(var(--vh) + 6px);
  }
}
@media (min-width: 1024px) {
  .stage {
    padding-inline: clamp(90px, 10vw, 150px);
  }
  .how {
    padding-inline: clamp(100px, 11vw, 160px);
    max-width: 1300px;
  }
  /* 桌機：布幕固定在視窗，形成舞台框 */
}
/* ===== 娛樂城大街場景 ===== */
html,
body {
  background: #fff3c4;
}

body {
  background-image: linear-gradient(#fff6d2, #ffe9a6) !important;
  color: var(--ink);
}

main::before {
  display: none;
}

main {
  --vh: 0px;
}

.marquee::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 240, 180, 0.4) 45%, rgba(255, 240, 180, 0) 70%);
}

.logo {
  filter: drop-shadow(0 16px 24px rgba(110, 50, 0, 0.45));
}

.lede {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(90, 40, 0, 0.6), 0 2px 8px rgba(90, 40, 0, 0.6);
}

.btn-hint {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(90, 40, 0, 0.8);
}

.lede {
  background: rgba(120, 56, 0, 0.62);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 110, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-hint {
  background: rgba(120, 56, 0, 0.6);
  padding: 3px 14px;
  border-radius: 999px;
}

.title {
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 3px 0 #cf9a2e) drop-shadow(0 5px 0 #6e4500) drop-shadow(0 12px 18px rgba(110, 50, 0, 0.45));
}

.how h2 {
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 0 #cf9a2e) drop-shadow(0 3px 0 #6e4500) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.steps li,
.qr-card {
  color: var(--ink);
}

footer {
  background: linear-gradient(#ffe38a, #ffd45a);
  color: var(--ink);
}

footer::before {
  box-shadow: none;
}

/* ===== 讓中間資訊清楚：場景降噪 + 中央柔光 ===== */
.lede {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-shadow: none;
  border: 1px solid rgba(207, 154, 46, 0.6);
  box-shadow: 0 6px 18px rgba(110, 60, 0, 0.15);
}

.btn-hint {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  text-shadow: none;
}

/* ===== 中間區塊：改為與淺黃大街相襯的柔和白卡 ===== */
.qr-card {
  border: 3px solid #ffd35c;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 18px 40px rgba(230, 150, 0, 0.22);
  border-radius: 26px;
}

.qr-card .qr {
  border: 2px solid #ffe7a0;
  box-shadow: none;
  border-radius: 16px;
}

.steps li {
  border: 3px solid #ffd35c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55), 0 12px 26px rgba(230, 150, 0, 0.16);
  border-radius: 20px;
}

.steps li::before {
  border: 3px solid #fff;
  background: linear-gradient(#ff6b7c, #e3172e);
  box-shadow: 0 0 0 2px #ffc23a, 0 4px 8px rgba(200, 40, 40, 0.25);
}

.btn-play {
  border: 4px solid #fff;
  background: linear-gradient(#4fdc7a, #1fae4f 55%, #12803a);
  text-shadow: 0 2px 0 #0b5526;
  box-shadow: 0 0 0 3px #ffc23a, 0 7px 0 #b0730a, 0 16px 26px rgba(200, 120, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-play:active {
  box-shadow: 0 0 0 3px #ffc23a, 0 1px 0 #b0730a, 0 6px 12px rgba(200, 120, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.lede {
  border: 2px solid #ffe08a;
  box-shadow: 0 8px 20px rgba(230, 150, 0, 0.14);
}

footer::before {
  background: #ffc23a;
  height: 3px;
}

/* ===== 全頁共用同一個背景（固定在視窗，無截斷） ===== */
html,
body {
  background: #fff6d2;
}

body {
  background-image: none !important;
}

footer {
  background: transparent;
  position: relative;
  z-index: 1;
}

footer::before {
  display: none;
}

footer p {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ===== 淺黃娛樂城背景：每個元素等比縮放，RWD 不變形 ===== */
.casino-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  --u: min(1vw, 1vh);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, #fffef6 0%, rgba(255, 251, 230, 0.9) 40%, rgba(255, 246, 210, 0) 75%), radial-gradient(circle at 0% 0%, #ffe48a 0%, rgba(255, 228, 138, 0) 45%), radial-gradient(circle at 100% 100%, #ffe48a 0%, rgba(255, 228, 138, 0) 45%), linear-gradient(160deg, #fff7d6, #fff1bf 50%, #ffe9a6);
}

.casino-bg::before {
  /* 旋轉光芒 */
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: max(160vw, 160vh);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from var(--ang), rgba(255, 214, 90, 0.16) 0 6deg, transparent 6deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  animation: rays 60s linear infinite;
}

.casino-bg::after {
  /* 細碎亮片 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 200, 40, 0.55) 0 1.2px, transparent 1.6px), radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.4px);
  background-size: 46px 46px, 73px 73px;
  background-position: 0 0, 20px 30px;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, transparent 40%, #000 80%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, transparent 40%, #000 80%);
  opacity: 0.7;
}

/* ===== 背景：圖片在最上層，底下是淺黃漸層（圖片設為 none 或載入前顯示） ===== */
.casino-bg {
  --bg-current: var(--bg-image);
  background: var(--bg-current) var(--bg-position)/cover no-repeat, radial-gradient(ellipse 55% 50% at 50% 45%, rgba(255, 254, 246, 0.9) 0%, rgba(255, 251, 232, 0.6) 45%, rgba(255, 246, 210, 0) 80%), linear-gradient(160deg, #fff8dc, #fff2c2 50%, #ffeab0) !important;
}

@media (orientation: portrait) and (max-width: 768px) {
  .casino-bg {
    --bg-current: var(--bg-image-mobile);
  }
}
.casino-bg::after {
  display: none;
}

.casino-bg::before {
  background: repeating-conic-gradient(from var(--ang), rgba(255, 255, 255, 0.35) 0 6deg, transparent 6deg 15deg);
}

.how h2 {
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 0 #ffd35c);
}

/* ===== 旋轉光芒改以 logo 為中心 ===== */
.casino-bg::before {
  display: none;
}

html,
body {
  overflow-x: clip;
}

main {
  overflow: clip;
}

.marquee::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  pointer-events: none;
  width: max(320%, 150vmax);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from var(--ang), rgba(255, 255, 255, 0.55) 0 11deg, rgba(255, 255, 255, 0) 13deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 25%, transparent 55%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 25%, transparent 55%);
  animation: rays 60s linear infinite;
}

/* ===== Footer：純色底區隔 ===== */
footer {
  background: #b3101f !important;
  color: #fff !important;
  position: relative;
  z-index: 1;
}

footer::before {
  display: none;
}

footer p {
  text-shadow: none !important;
  color: #fff;
}

footer p + p {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Slogan：柑仔店拉霸機看板 ===== */
.slogan {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 2px 0 4px;
}

.slogan-sign {
  position: relative;
  display: inline-block;
  padding: 7px 22px 8px;
  border-radius: 12px;
  background: linear-gradient(#e3283c, #b3101f);
  color: #fff7d6;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: clamp(0.95rem, 3.6vw, 1.12rem);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ffc23a, 0 6px 0 #7a0a16, 0 10px 18px rgba(150, 20, 30, 0.25);
  text-shadow: 0 1px 0 #7a0a16;
}

.slogan-sign::before,
.slogan-sign::after {
  /* 看板釘子 */
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c2, #d9a21a 70%, #8a5a08);
}

.slogan-sign::before {
  left: 8px;
}

.slogan-sign::after {
  right: 8px;
}

.slogan-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  font-weight: 900;
  font-size: clamp(2rem, 8.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #e3172e;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 3px 0 #fff, 0 6px 0 #ffc23a, 0 10px 14px rgba(200, 120, 0, 0.3);
  rotate: -2deg;
}

.sl-chunk {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  white-space: nowrap;
}

.sl-sep {
  margin: 0 0.02em;
  color: #b3101f;
}

.sl-ico {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  filter: drop-shadow(0 2px 2px rgba(120, 70, 0, 0.35));
}

.sl-ico.lever {
  transform-origin: 50% 90%;
  animation: pull 2.4s ease-in-out infinite;
}

@keyframes pull {
  0%, 70%, 100% {
    rotate: 0deg;
  }
  80% {
    rotate: 24deg;
  }
  88% {
    rotate: -6deg;
  }
}
@media (min-width: 1024px) {
  .slogan {
    justify-items: start;
  }
  .slogan-main {
    justify-content: flex-start;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  }
}
@media (max-width: 1023px) {
  .marquee {
    --size: min(80vw, 42svh, 440px);
  }
}
/* 桌機也以 slogan 為主標，站名由 logo 呈現（標題保留給讀屏） */
.title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .slogan-sign {
    font-size: 1.25rem;
    padding: 9px 26px 10px;
  }
  .slogan-main {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
  }
}
/* ===== 間距統一 ===== */
.play {
  gap: 0;
}

.slogan {
  gap: 24px;
  margin: 0 0 16px;
}

.slogan-main {
  padding-top: 2px;
  margin-top: 8px;
}

.lede {
  margin: 0 0 20px;
}

.btn-hint {
  margin-top: 14px;
}

@media (max-width: 1023px) {
  .stage {
    gap: 4px;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: 28px;
  }
  .marquee {
    margin-bottom: -14px;
  }
  .slogan {
    margin: 0 0 24px 0;
  }
  .lede {
    margin-bottom: 18px;
  }
  .how {
    padding-top: 24px;
  }
}
@media (min-width: 1024px) {
  .play {
    width: min(470px, 100%);
    max-width: none;
  }
  .slogan {
    gap: 14px;
    margin-bottom: 24px;
  }
  .slogan-main {
    font-size: clamp(2.4rem, 3.4vw, 2.9rem);
    margin-top: 24px;
  }
  .lede {
    width: 100%;
    margin-bottom: 24px;
  }
  .qr-card {
    width: 100%;
  }
  .how {
    padding-top: 12px;
  }
}
@media (min-width: 1024px) {
  .qr-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 22px;
    row-gap: 10px;
    justify-items: start;
    align-items: center;
    text-align: left;
    padding: 22px;
  }
  .qr-card .qr {
    grid-row: 1/-1;
    width: 200px;
  }
  .qr-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.15rem;
    line-height: 1.5;
  }
  .qr-card p small {
    margin-top: 6px;
    font-size: 0.88rem;
  }
  .qr-card > small {
    grid-column: 2;
    grid-row: 3;
  }
}
.d-br {
  display: none;
}

@media (min-width: 1024px) {
  .d-br {
    display: inline;
  }
  .play {
    width: min(500px, 100%);
  }
  .qr-card .qr {
    width: 184px;
  }
  .qr-card p {
    font-size: 1.2rem;
  }
  .qr-card > small {
    font-size: 0.86rem;
    white-space: nowrap;
  }
}
/* 說明文字：去框去底 */
.lede .d-br {
  display: inline;
}

.lede {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 250, 232, 0.95);
}

/* ===== 桌機版面：logo 置頂置中；下方左欄 slogan＋QR，右欄三步驟（1 欄 3 列） ===== */
@media (min-width: 1024px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "logo logo" "play how";
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: clamp(8px, 2vh, 24px);
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3vh, 36px) max(40px, (100% - 1100px) / 2) clamp(40px, 6vh, 72px);
    align-items: center;
  }
  .stage {
    display: contents;
  }
  .marquee {
    grid-area: logo;
    justify-self: center;
    --size: clamp(300px, 46vh, 440px);
    margin: 0;
  }
  .play {
    grid-area: play;
    justify-self: end;
    align-self: start;
    width: min(500px, 100%);
  }
  .how {
    grid-area: how;
    justify-self: start;
    align-self: start;
    width: min(500px, 100%);
    max-width: none;
    margin: 0;
    padding: 0 !important;
  }
  .how h2 {
    text-align: left;
    margin: 4px 0 18px;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  }
  .steps {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .steps li {
    grid-template-columns: auto 1fr !important;
    justify-items: start !important;
    text-align: left !important;
    padding: 18px 22px !important;
    gap: 18px;
  }
  .steps li::before {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .steps b {
    font-size: 1.15rem;
  }
}
/* ===== 桌機版面 v2：logo＋slogan 置中；下方左：說明＋QR，右：三步驟 ===== */
@media (min-width: 1024px) {
  main {
    grid-template-columns: repeat(2, minmax(0, 420px));
    grid-template-areas: "logo logo" "slogan slogan" "lede how" "qr how";
    grid-template-rows: auto auto auto 1fr;
    justify-content: center;
    column-gap: clamp(40px, 4.5vw, 72px);
    row-gap: 0;
    padding: clamp(12px, 2.5vh, 28px) 40px clamp(48px, 7vh, 80px);
    align-items: start;
  }
  .play {
    display: contents;
  }
  .marquee {
    grid-area: logo;
    --size: clamp(280px, 40vh, 400px);
    margin: 0 0 -18px;
  }
  .slogan {
    grid-area: slogan;
    justify-self: center;
    justify-items: center;
    margin: 0 0 clamp(36px, 6vh, 64px);
    gap: 14px;
  }
  .slogan-main {
    justify-content: center;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
  }
  .lede {
    grid-area: lede;
    align-self: end;
    margin: 16px 0 18px !important;
    text-align: left;
    width: auto;
  }
  .qr-card {
    grid-area: qr;
    align-self: start;
    width: 100%;
  }
  .how {
    grid-area: how;
    width: 100%;
    align-self: start;
  }
  .how h2 {
    margin: 0 0 20px;
  }
}
/* ===== CTA 容器：手機/平板顯示按鈕，桌機顯示 QR Code ===== */
.cta {
  display: grid;
  justify-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .cta {
    grid-area: qr;
    justify-items: start;
    align-self: start;
  }
  .qr-card {
    grid-area: auto;
  }
  .is-touch .cta {
    justify-items: center;
  }
  .is-touch .cta .btn-play {
    min-width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles i,
  .logo,
  .btn-play::before {
    animation: none;
  }
  main::before,
  .casino-bg::before,
  .marquee::after,
  .sl-ico.lever {
    animation: none;
  }
  .btn-play {
    transition: none;
  }
}
.qr-card .qr img {
  display: block;
  width: 100%;
  height: auto;
}/*# sourceMappingURL=style.css.map */