/* Style: Art Deco gold luxe — gold-leaf gradients on black lacquer with crimson accents */
:root {
  color-scheme: dark;
  --gold: #f5c451;
  --gold-light: #ffe9a8;
  --gold-deep: #a8701c;
  --gold-grad: linear-gradient(110deg, #a8701c 0%, #ffe08a 22%, #f3b53c 45%, #fff1c2 62%, #d99a2b 80%, #a8701c 100%);
  --crimson: #9c1631;
  --red: #d81f2a;
  --pink: #c2185b;
  --panel: #1f1814;
  --panel-line: #3b2c1c;
  --ink: #fff;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #070505;
}

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 65px; }
body {
  margin: 0; min-width: 300px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #4a0b14 0%, transparent 70%),
    repeating-linear-gradient(45deg, #f5c4510a 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-45deg, #f5c4510a 0 1px, transparent 1px 46px),
    #0b0606;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
[data-icon] { display: inline-grid; place-items: center; flex: none; }
[data-icon] svg { display: block; width: 1em; height: 1em; }
.gold-text, .brand-text, .ranking-head em {
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-flow 5s linear infinite;
}

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 18px; border: 0; border-radius: 999px;
  background: var(--gold-grad); background-size: 250% 100%;
  color: #3b1300; font-weight: 900; letter-spacing: .04em; white-space: nowrap;
  text-shadow: 0 1px 0 #fff7;
  box-shadow: 0 0 0 0 #ffcf5ab3, inset 0 1px 0 #fff9, inset 0 -2px 0 #0003, 0 4px 14px #0009;
  animation: gold-flow 4s linear infinite, cta-ring 1.8s ease-out infinite;
  transition: transform .22s var(--ease-out), filter .22s;
}
.cta::after {
  content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: -70%; width: 45%;
  background: linear-gradient(90deg, transparent, #fffd, transparent);
  transform: skewX(-22deg);
  animation: cta-shine 2.8s ease-in-out infinite;
}
.cta:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.1) saturate(1.15); }
.cta:active { transform: scale(.96); transition-duration: .08s; }
.cta-red { background: linear-gradient(110deg, #7a0d1c, #e0283a 30%, #ff5a5f 50%, #c8102e 70%, #7a0d1c); background-size: 250% 100%; color: #fff; text-shadow: 0 1px 2px #0007; box-shadow: 0 0 0 0 #ff4d5ab3, inset 0 1px 0 #ffffff55, 0 4px 14px #0009; animation-name: gold-flow, cta-ring-red; }
.cta-pink { background: linear-gradient(110deg, #6d0c35, #d81b60 35%, #ff6f9c 50%, #c2185b 65%, #6d0c35); background-size: 250% 100%; color: #fff; text-shadow: 0 1px 2px #0007; animation-name: gold-flow, cta-ring-red; }
.cta-wiggle { animation: gold-flow 4s linear infinite, cta-ring 1.8s ease-out infinite, cta-wiggle 4.5s ease-in-out infinite; }
.cta-red.cta-wiggle { animation-name: gold-flow, cta-ring-red, cta-wiggle; }
.cta-sm { min-height: 28px; padding: 4px 14px; font-size: 12px; }
.cta-lg { min-height: 52px; padding: 10px 34px; font-size: 18px; }

@keyframes gold-flow { to { background-position: 250% 0; } }
@keyframes cta-shine { 0% { left: -70%; } 55%, 100% { left: 140%; } }
@keyframes cta-ring {
  0% { box-shadow: 0 0 0 0 #ffcf5ab3, inset 0 1px 0 #fff9, inset 0 -2px 0 #0003, 0 4px 14px #0009; }
  100% { box-shadow: 0 0 0 12px #ffcf5a00, inset 0 1px 0 #fff9, inset 0 -2px 0 #0003, 0 4px 14px #0009; }
}
@keyframes cta-ring-red {
  0% { box-shadow: 0 0 0 0 #ff4d5ab3, inset 0 1px 0 #ffffff55, 0 4px 14px #0009; }
  100% { box-shadow: 0 0 0 12px #ff4d5a00, inset 0 1px 0 #ffffff55, 0 4px 14px #0009; }
}
@keyframes cta-wiggle {
  0%, 80%, 100% { rotate: 0deg; scale: 1; }
  83% { rotate: -5deg; scale: 1.08; }
  86% { rotate: 5deg; scale: 1.08; }
  89% { rotate: -3deg; scale: 1.05; }
  92% { rotate: 2deg; scale: 1.02; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  height: 58px; padding-inline: max(17px, calc((100% - 1166px) / 2));
  background: linear-gradient(#0d0807, #050303); border-bottom: 1px solid #5a4020;
  box-shadow: 0 1px 0 #f5c45133, 0 6px 20px #0008;
}
.menu-button { display: flex; align-items: center; gap: 8px; flex: none; height: 100%; padding: 0 16px; border: 0; border-right: 1px solid #2d2219; background: none; color: #cbb68e; font-weight: 800; }
.menu-button span { color: var(--gold); font-size: 20px; line-height: 1; }
.brand { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 6px; }
.brand-crown { width: 30px; height: 23px; filter: drop-shadow(0 0 6px #f5c45188); animation: crown-bob 3s ease-in-out infinite; }
.brand-text { font-family: "Noto Serif TC", serif; font-size: 24px; font-weight: 900; letter-spacing: .06em; line-height: 1; filter: drop-shadow(0 2px 0 #3a1a00); }
@keyframes crown-bob { 50% { translate: 0 -2px; rotate: -6deg; } }
.rank-link { display: flex; align-items: center; gap: 5px; flex: none; margin-left: 10px; padding: 5px 12px; border: 1px solid #f5c45166; border-radius: 999px; background: #f5c45114; color: var(--gold-light); font-size: 12px; font-weight: 800; white-space: nowrap; transition: background .2s; }
.rank-link:hover { background: #f5c45133; }
.bonus { position: relative; display: flex; align-items: center; height: 32px; flex: none; padding: 0 12px 0 26px; margin-left: 14px; border: 1px solid #8a6a3a; border-radius: 6px; background: #120c09; font-size: 12px; font-weight: 800; white-space: nowrap; }
.bonus img { position: absolute; width: 32px; left: -14px; top: -4px; animation: gift-hop 2.4s ease-in-out infinite; }
@keyframes gift-hop { 0%, 70%, 100% { translate: 0 0; rotate: 0deg; } 78% { translate: 0 -6px; rotate: -10deg; } 86% { translate: 0 0; rotate: 6deg; } 92% { translate: 0 -2px; rotate: 0deg; } }
.header-cta { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Category nav ---------- */
.category-nav { background: #1b1410 url("../assets/nav-background.webp") center / cover no-repeat; border-bottom: 1px solid #3b2c1c; }
.nav-inner { display: flex; justify-content: space-between; align-items: stretch; height: 99px; padding-inline: max(17px, calc((100% - 1166px) / 2)); overflow: auto hidden; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar, .breadcrumbs::-webkit-scrollbar, .match-track::-webkit-scrollbar, .provider-track::-webkit-scrollbar { display: none; }
.nav-link { display: grid; justify-items: center; align-content: center; flex: 0 0 auto; gap: 6px; min-width: 76px; padding: 0 6px; border: 0; background: none; color: #f1e6d0; white-space: nowrap; font-size: 13px; font-weight: 800; }
.nav-link img { width: 44px; height: 44px; object-fit: contain; transition: transform .25s var(--ease-out), filter .25s; }
.nav-link:hover { color: var(--gold); }
.nav-link:hover img { transform: translateY(-4px) scale(1.12); filter: drop-shadow(0 4px 8px #f5c45166); }

/* ---------- Page shell ---------- */
.page-shell { display: grid; gap: 10px; max-width: 1200px; margin: 8px auto 0; padding: 16px; background: #000c; border-inline: 1px solid #2a1f15; }
.ticker { display: flex; align-items: center; gap: 16px; height: 39px; overflow: hidden; padding: 0 16px; border: 1px solid var(--panel-line); border-radius: 6px; background: linear-gradient(90deg, #2a0a10, var(--panel) 30%); color: var(--gold); }
.ticker-window { display: flex; align-items: center; min-width: 0; overflow: hidden; mask-image: linear-gradient(to right, #000 97%, transparent); }
.ticker p { flex: none; margin: 0; white-space: nowrap; color: #f3e3c0; animation: ticker 34s linear infinite; padding-inline-start: clamp(12rem, 65vw, 59rem); }
.ticker:hover p { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2.02fr) minmax(0, 1fr); gap: 10px; }
.hero-main { display: grid; gap: 10px; min-width: 0; }
.hero-banner { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px #f5c45155, 0 10px 30px #000a; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, #fff4 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  animation: hero-shine 6s ease-in-out infinite 1s;
}
@keyframes hero-shine { 0% { background-position: 160% 0; } 30%, 100% { background-position: -60% 0; } }
.hero-link img { width: 100%; height: auto; aspect-ratio: 1712 / 1152; object-fit: cover; }
.hotspot { position: absolute; z-index: 1; border-radius: 12px; transition: box-shadow .25s, background .25s; }
.hotspot:hover, .hotspot:focus-visible { background: #ffe08a1f; box-shadow: 0 0 0 3px var(--gold), 0 0 28px 6px #f5c451aa; }
.hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero-actions .cta { padding-inline: 6px; min-height: 42px; font-size: 15px; }
.hero-actions [data-icon] { font-size: 19px; }

/* Special (本月首推) */
.carousel { position: relative; overflow: hidden; border-radius: 8px; }
.special-carousel {
  border: 2px solid transparent;
  background: radial-gradient(circle at 50% 38%, #8c1426 0%, #3a0710 55%, #14040a 100%) padding-box,
              conic-gradient(from var(--spin), #ffe08a, #a8701c, #fff1c2, #c8102e, #ffe08a) border-box;
  animation: spin 5s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.special-link { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px 34px; text-align: center; }
.special-rays {
  position: absolute; left: 50%; top: 38%; width: 180%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(#ffcf5a26 0deg 8deg, transparent 8deg 20deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  animation: rays 28s linear infinite;
}
@keyframes rays { to { rotate: 360deg; } }
.special-logo { position: relative; width: min(64%, 230px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 22px #f5c45199) drop-shadow(0 8px 12px #0009); animation: float 3.6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.special-name { position: relative; font-family: "Noto Serif TC", serif; font-size: 26px; font-weight: 900; letter-spacing: .08em; color: var(--gold-light); text-shadow: 0 2px 0 #5a2500, 0 0 18px #f5c45188; }
.special-link .stars { position: relative; }
.special-link .cta { position: relative; min-height: 40px; padding-inline: 30px; font-size: 16px; }
.special-label { position: absolute; z-index: 2; bottom: -1px; left: 50%; width: 120px; max-width: 100%; transform: translateX(-50%); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background: var(--gold-grad); background-size: 200% 100%; animation: gold-flow 4s linear infinite; color: #3b1300; text-align: center; font-weight: 900; line-height: 22px; pointer-events: none; }
.sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff6cf; box-shadow: 0 0 10px 3px #ffd36a; animation: twinkle 2.4s ease-in-out infinite; }
.sparks i:nth-child(1) { left: 14%; top: 18%; }
.sparks i:nth-child(2) { left: 84%; top: 24%; animation-delay: .5s; }
.sparks i:nth-child(3) { left: 22%; top: 62%; animation-delay: 1s; }
.sparks i:nth-child(4) { left: 78%; top: 58%; animation-delay: 1.5s; }
.sparks i:nth-child(5) { left: 50%; top: 8%; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: 0; scale: .3; } 50% { opacity: 1; scale: 1.2; } }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; text-shadow: 0 0 8px #f5c45199; }

/* ---------- Ranking TOP 3 ---------- */
.ranking { display: grid; gap: 12px; padding: 18px 0 6px; }
.ranking-head { text-align: center; }
.ranking-head h1 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 30px; font-weight: 900; letter-spacing: .04em; }
.ranking-head em { font-style: normal; }
.ranking-head p { margin: 6px 0 0; color: #d9c49a; font-weight: 700; letter-spacing: .15em; }
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.rank-card {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: 34px 16px 18px;
  border: 1px solid #5a4020; border-radius: 12px; text-align: center;
  background: linear-gradient(170deg, #2b1e15, #140d0a);
  box-shadow: inset 0 1px 0 #f5c45133, 0 10px 24px #0008;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.rank-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 #f5c45155, 0 16px 34px #000b, 0 0 24px #f5c45133; }
.rank-card.is-top {
  padding-block: 44px 24px;
  border: 2px solid transparent;
  background: linear-gradient(170deg, #4a0e18, #1a0709) padding-box,
              conic-gradient(from var(--spin), #ffe08a, #a8701c, #fff1c2, #c8102e, #ffe08a) border-box;
  animation: spin 4s linear infinite;
  box-shadow: 0 0 36px #f5c45140, 0 14px 30px #000b;
}
.rank-badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 4px 18px; border-radius: 999px; background: linear-gradient(#3a0a10, #6a0f1d); border: 1px solid var(--gold); color: var(--gold-light); font-size: 14px; font-weight: 900; white-space: nowrap; box-shadow: 0 4px 10px #0009; }
.is-top .rank-badge { background: var(--gold-grad); background-size: 200% 100%; color: #3b1300; animation: gold-flow 4s linear infinite; font-size: 16px; }
.rank-logo { display: grid; place-items: center; width: 110px; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(circle, #ffffff14, transparent 70%); }
.is-top .rank-logo { width: 140px; }
.rank-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; transition: transform .35s var(--ease-out); }
.rank-card:hover .rank-logo img { transform: scale(1.08) rotate(-3deg); }
.is-top .rank-logo img { animation: float 3.6s ease-in-out infinite; }
.rank-info { display: grid; justify-items: center; gap: 6px; }
.rank-info h3 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 22px; font-weight: 900; color: var(--gold-light); letter-spacing: .06em; }
.rank-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.rank-tags li { padding: 2px 10px; border: 1px solid #f5c45155; border-radius: 999px; background: #f5c45112; color: #f3e3c0; font-size: 12px; font-weight: 700; }
.rank-card .cta { width: 100%; max-width: 220px; min-height: 42px; font-size: 16px; }
.is-top .cta { min-height: 48px; font-size: 18px; }

/* ---------- Matches ---------- */
.matches { min-width: 0; padding-top: 8px; }
.matches h2 { margin: 0 0 8px; font-size: 15px; line-height: 18px; color: var(--gold-light); }
.match-tabs { display: flex; gap: 5px; margin-bottom: 8px; }
.match-tabs button { min-height: 26px; padding: 3px 12px; border: 1px solid #3b2c1c; border-radius: 999px; background: #0c0807; color: #eee; font-size: 12px; font-weight: 800; }
.match-tabs [aria-selected="true"] { background: var(--gold-grad); background-size: 200% 100%; color: #3b1300; border-color: transparent; }
.match-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow: auto hidden; scrollbar-width: none; scroll-snap-type: x mandatory; }
.match-card { overflow: hidden; border: 1px solid var(--panel-line); border-radius: 6px; background: var(--panel); min-width: 0; scroll-snap-align: start; transition: transform .25s var(--ease-out), border-color .25s; }
.match-card:hover { transform: translateY(-3px); border-color: #8a6a3a; }
.match-meta { display: grid; gap: 4px; min-height: 51px; padding: 10px 10px 8px; align-content: center; font-size: 11px; }
.match-meta time { color: #a99a82; }
.match-field { background: #283745 url("../assets/stadium.png") center / cover no-repeat; min-height: 88px; display: grid; align-content: center; gap: 10px; padding: 10px 7px; }
.match-teams, .match-odds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.match-teams span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.match-teams span + span { text-align: right; }
.match-teams b { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; margin-right: 4px; background: #30944c; color: #fff; font-size: 10px; }
.match-teams span + span b { background: #e5394a; }
.match-odds span { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-radius: 20px; background: #090909d8; font-size: 10px; }
.match-odds b { color: var(--gold); font-size: 9px; }
.match-action { display: grid; place-items: center; width: 100%; height: 26px; padding: 0 3px; border: 0; background: var(--gold-grad); background-size: 250% 100%; animation: gold-flow 4s linear infinite; color: #3b1300; font-size: 12px; font-weight: 900; transition: filter .2s; }
.match-action:hover, .view-all:hover { filter: brightness(1.15); }

/* ---------- Panels & games ---------- */
.breadcrumbs { display: flex; gap: 15px; padding: 5px 9px; overflow: auto hidden; scrollbar-width: none; color: #dccfb4; font-size: 12px; font-weight: 800; white-space: nowrap; }
.breadcrumbs a:first-child { color: var(--gold); }
.crumb { padding: 0; border: 0; background: none; color: inherit; font-weight: inherit; }
.breadcrumbs a:hover, .crumb:hover, .provider:hover { color: var(--gold); }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--panel-line); border-radius: 8px; padding: 0 16px 16px; background: var(--panel); }
.panel-heading, .panel-title { display: flex; align-items: center; gap: 8px; }
.panel-heading { min-height: 72px; justify-content: space-between; }
.panel-title { flex: none; margin: 0; font-size: 15px; font-weight: 900; color: var(--gold-light); }
.panel-title img { width: 40px; height: 40px; object-fit: contain; }
.view-all { flex: none; display: inline-grid; place-items: center; min-height: 26px; padding: 3px 14px; border: 1px solid #f5c45166; border-radius: 999px; background: #0c0807; color: var(--gold-light); font-size: 12px; font-weight: 800; }
.provider-panel { display: grid; grid-template-columns: 16% minmax(0,1fr) 16%; gap: 8px; align-items: center; min-height: 82px; padding-block: 4px; }
.provider-panel .view-all { justify-self: center; }
.provider-rail { display: grid; grid-template-columns: 20px minmax(0,1fr) 20px; align-items: center; }
.provider-control { padding: 0; border: 0; background: none; color: var(--gold); font-size: 25px; }
.provider-control:disabled { color: #6d6255; }
.provider-track { display: grid; grid-auto-flow: column; grid-auto-columns: 12.5%; overflow: auto hidden; scrollbar-width: none; scroll-snap-type: x mandatory; }
.provider { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 0 2px; border: 0; background: transparent; scroll-snap-align: start; font-size: 12px; }
.provider-icon { position: relative; display: grid; place-items: center; width: 56px; aspect-ratio: 1; border-radius: 50%; background: #050505; box-shadow: inset 0 0 0 1px #f5c45133; transition: transform .25s var(--ease-out), box-shadow .25s; }
.provider:hover .provider-icon { transform: scale(1.1); box-shadow: inset 0 0 0 1px var(--gold), 0 0 14px #f5c45166; }
.provider-icon img { width: 48px; height: 48px; object-fit: contain; }
.provider-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ribbon { position: absolute; left: 0; top: 3px; padding: 1px 12px 1px 9px; clip-path: polygon(0 0,100% 0,90% 50%,100% 100%,0 100%); background: #e5394a; color: white; font-size: 10px; font-weight: 800; line-height: 14px; }
.ribbon.promo { background: #1c9b59; }
.ribbon.spesial { background: #eb8f16; }
.provider-icon .ribbon { inset: auto auto 1px 0; padding: 0 6px; font-size: 8px; line-height: 12px; }

.games-grid { --columns: 6; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 12px 10px; }
.game { display: grid; gap: 5px; align-content: start; min-width: 0; padding: 0; border: 0; background: transparent; color: #f1e6d0; text-align: center; font-size: 12px; font-weight: 800; }
.game:hover { color: var(--gold); }
.game-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-art { position: relative; display: block; overflow: hidden; aspect-ratio: 1.48; border-radius: 6px; background: #282828; box-shadow: 0 0 0 1px #f5c45122; transition: transform .25s var(--ease-out), box-shadow .25s; }
.game-art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out), filter .25s; }
.game:hover .game-art { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 8px 18px #f5c45133; }
.game:hover .game-art > img:first-child { transform: scale(1.08); filter: brightness(.6); }
.game-play { position: absolute; left: 50%; top: 50%; translate: -50% -30%; padding: 5px 12px; border-radius: 999px; background: var(--gold-grad); color: #3b1300; font-size: 12px; font-weight: 900; white-space: nowrap; opacity: 0; transition: opacity .2s, translate .25s var(--ease-out); }
.game:hover .game-play, .game:focus-visible .game-play { opacity: 1; translate: -50% -50%; }
.game-art .game-provider { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #171717aa; }
.arcade-games { margin-bottom: 3px; }

/* ---------- Article ---------- */
.guide { padding: 8px clamp(16px, 5vw, 64px) 36px; font-size: 16px; line-height: 1.95; color: #e8dcc4; background: linear-gradient(180deg, #241a14, #150f0c); }
.guide-head { padding: 26px 0 8px; text-align: center; border-bottom: 1px solid #f5c45133; margin-bottom: 18px; }
.guide-kicker { margin: 0 0 6px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .3em; }
.guide h2 { margin: 0; font-family: "Noto Serif TC", serif; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.45; color: var(--gold-light); }
.guide h3 { position: relative; margin: 34px 0 10px; padding-left: 16px; font-family: "Noto Serif TC", serif; font-size: 21px; color: var(--gold-light); }
.guide h3::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 5px; border-radius: 3px; background: var(--gold-grad); }
.guide p { margin: 0 0 14px; }
mark.kw {
  padding: 0 2px; border-radius: 2px; color: var(--gold-light); font-weight: 900;
  background: linear-gradient(transparent 58%, #f5c45166 58%) no-repeat 0 0 / 100% 100%;
}
.kw-link:hover mark.kw { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.js mark.kw { background-size: 0% 100%; transition: background-size 1.1s var(--ease-out) .15s; }
.js mark.kw.is-in { background-size: 100% 100%; }
.guide-cta { display: flex; justify-content: center; margin: 20px 0 6px; }
.guide-final { display: grid; justify-items: center; gap: 14px; margin: 34px 0 0; padding: 26px 16px; border: 1px solid #f5c45155; border-radius: 14px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #6a0f1d, #1a0709 75%); box-shadow: inset 0 1px 0 #f5c45144, 0 0 40px #9c163144; }
.guide-final p { margin: 0; font-size: 18px; font-weight: 800; }
.guide-final strong { color: var(--gold-light); }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .rank-card[data-reveal] { transition: opacity .7s var(--ease-out) var(--delay, 0s), translate .7s var(--ease-out) var(--delay, 0s), transform .3s var(--ease-out), box-shadow .3s; }
.rank-card:nth-child(2) { --delay: .12s; }
.rank-card:nth-child(3) { --delay: .24s; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: #0d0907; color: #b8ab95; border-top: 1px solid #3b2c1c; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 26px 16px 24px; }
.footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.footer-links section, .footer-block { display: grid; align-content: start; gap: 6px; }
.footer-links h2, .footer-block h2 { margin: 0 0 3px; font-size: 14px; color: var(--gold-light); }
.footer-links a { width: fit-content; font-size: 13px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }
.about { margin: 22px 0; padding: 15px; border: 1px solid var(--panel-line); border-radius: 6px; background: #19120e; font-size: 13px; line-height: 1.75; }
.about h2 { margin: 0; color: var(--gold-light); font-size: 18px; }
.about p { margin: 6px 0 8px; }
.about summary { cursor: pointer; color: var(--gold); }
.about table { margin-top: 10px; border-collapse: collapse; width: 100%; text-align: left; }
.about caption, .about th, .about td { padding: 5px 8px; border: 1px solid #4d3d2a; }
.footer-block { margin-bottom: 18px; }
.payments { display: flex; flex-wrap: wrap; gap: 8px; }
.payments span { padding: 4px 12px; border: 1px solid #4d3d2a; border-radius: 999px; font-size: 12px; color: #e8dcc4; }
.copyright { margin: 12px 0 0; padding-top: 13px; border-top: 1px solid #2d2219; text-align: center; font-size: 12px; }

/* ---------- Floating ---------- */
.floating-left { position: fixed; bottom: 16px; left: 16px; z-index: 4; display: grid; justify-items: start; gap: 22px; }
.quick-menu { min-height: 42px; margin-left: 4px; padding: 0 16px; border: 2px solid var(--gold); border-radius: 24px; background: linear-gradient(#7a0d1c, #2a070c); color: var(--gold-light); font-weight: 800; box-shadow: 0 4px 14px #000a; }
.brand-float { width: 66px; height: 66px; padding: 4px; overflow: hidden; border: 2px solid var(--gold); border-radius: 50%; background: radial-gradient(circle, #5a0f1b, #120406); box-shadow: 0 0 0 0 #ffcf5ab3; animation: cta-ring 1.8s ease-out infinite; }
.brand-float img { width: 100%; height: 100%; object-fit: contain; }
.float-cta { position: fixed; z-index: 4; right: 16px; bottom: 18px; gap: 4px; min-height: 52px; padding: 8px 22px 8px 50px; font-size: 17px; }
.float-cta img { position: absolute; left: 10px; inset-block: 0; margin-block: auto; width: 34px; animation: gift-hop 2.4s ease-in-out infinite; }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.drawer { position: fixed; width: min(320px, 88vw); max-width: none; height: 100dvh; max-height: none; margin: 0 auto 0 0; padding: 0; border: 0; border-right: 1px solid #5a4020; background: #160f0c; box-shadow: 10px 0 30px #0009; }
.drawer-inner { padding: 14px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dialog-heading h2 { margin: 0; color: var(--gold-light); font-size: 19px; }
.close-button { padding: 0; width: 32px; height: 32px; border: 0; border-radius: 6px; background: #3a2c22; font-size: 25px; line-height: 1; }
.drawer-logo { justify-content: center; margin: 14px auto 16px; }
#drawer-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2d2219; }
#drawer-links .nav-link { min-width: 0; min-height: 72px; font-size: 12px; }
#drawer-links .nav-link img { width: 31px; height: 31px; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.modal { width: min(420px, calc(100% - 32px)); padding: 18px; border: 1px solid #8a6a3a; border-radius: 12px; background: linear-gradient(170deg, #2b1e15, #120c09); box-shadow: 0 0 40px #f5c45126; }
.modal > p { margin: 8px 0 12px; color: #d9c49a; }
.modal[open] { animation: pop .35s var(--ease-out); }
@keyframes pop { from { opacity: 0; scale: .92; } }
.modal-brands { display: grid; gap: 8px; margin-top: 10px; }
.modal-brand { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #3b2c1c; border-radius: 10px; background: #0c0807; font-weight: 900; transition: border-color .2s, background .2s; }
.modal-brand:hover { border-color: var(--gold); background: #1d140f; }
.modal-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.modal-brand small { display: block; color: var(--gold); font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .rank-link { display: none; }
  .nav-inner { justify-content: start; }
  .provider-track { grid-auto-columns: calc(100% / 6); }
  .match-track { grid-auto-columns: calc((100% - 36px) / 4); }
  .match-meta { min-height: 62px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .special-carousel { min-height: 300px; }
  .rank-card { padding-inline: 10px; }
  .rank-logo { width: 90px; }
  .is-top .rank-logo { width: 110px; }
}

@media (max-width: 660px) {
  html { scroll-padding-top: 60px; }
  .site-header { height: 54px; gap: 6px; padding-inline: 8px; }
  .menu-button { padding: 0 10px; font-size: 0; }
  .menu-button span { font-size: 20px; }
  .brand { margin-left: 0; gap: 4px; }
  .brand-crown { width: 22px; height: 17px; }
  .brand-text { font-size: 18px; letter-spacing: .02em; }
  .bonus { display: none; }
  .header-cta { gap: 5px; }
  .header-cta .cta { min-height: 30px; padding: 4px 10px; font-size: 12px; letter-spacing: 0; }
  .nav-inner { height: 78px; padding-inline: 8px; }
  .nav-link { min-width: 66px; gap: 4px; font-size: 11px; }
  .nav-link img { width: 33px; height: 33px; }
  .page-shell { gap: 8px; margin-top: 0; padding: 10px 8px 16px; border-inline: 0; }
  .ticker { height: 34px; padding-inline: 8px; gap: 8px; font-size: 12px; }
  .hero-main { gap: 8px; }
  .hero-actions { gap: 6px; }
  .hero-actions .cta { min-height: 36px; gap: 3px; font-size: 13px; letter-spacing: 0; padding-inline: 4px; }
  .hero-actions [data-icon] { font-size: 14px; }
  .special-carousel { min-height: 270px; }
  .special-link { gap: 8px; padding-bottom: 30px; }
  .special-logo { width: 120px; }
  .special-name { font-size: 22px; }
  .ranking { padding-top: 12px; }
  .ranking-head h1 { font-size: 22px; }
  .ranking-head p { font-size: 12px; letter-spacing: .08em; }
  .rank-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rank-card, .rank-card.is-top { grid-template-columns: 76px minmax(0, 1fr); justify-items: stretch; text-align: center; gap: 6px 12px; padding: 22px 12px 12px; }
  .rank-logo, .is-top .rank-logo { grid-row: span 2; width: 76px; }
  .rank-info { justify-items: center; gap: 2px; }
  .rank-info h3 { font-size: 18px; }
  .rank-tags { justify-content: center; gap: 4px; }
  .rank-tags li { font-size: 11px; padding: 1px 8px; }
  .rank-badge { left: 12px; translate: 0 0; font-size: 12px; padding: 3px 12px; }
  .is-top .rank-badge { font-size: 13px; }
  .rank-card .cta, .is-top .cta { grid-column: 2; max-width: none; min-height: 38px; font-size: 15px; }
  .match-track { grid-auto-columns: 46%; gap: 8px; }
  .match-meta { min-height: 52px; }
  .match-field { min-height: 74px; }
  .match-odds span { font-size: 9px; }
  .matches { padding-top: 4px; }
  .breadcrumbs { gap: 12px; padding-inline: 2px; font-size: 11px; }
  .panel { padding: 0 8px 8px; }
  .panel-heading { min-height: 52px; }
  .panel-title { font-size: 13px; gap: 5px; }
  .panel-title img { width: 28px; height: 28px; }
  .view-all { font-size: 10px; padding-inline: 8px; min-height: 22px; }
  .provider-panel { grid-template-columns: auto minmax(0,1fr) auto; padding: 6px; min-height: 67px; gap: 3px; }
  .provider-rail { grid-template-columns: 15px minmax(0,1fr) 15px; }
  .provider-track { grid-auto-columns: 25%; }
  .provider-control { font-size: 20px; }
  .provider-icon { width: 35px; }
  .provider-icon img { width: 31px; height: 31px; }
  .provider-icon .ribbon { padding: 0 3px; font-size: 6px; line-height: 8px; }
  .provider { padding-inline: 1px; font-size: 9px; }
  .games-grid { --columns: 3; gap: 8px 6px; }
  .game { font-size: 11px; }
  .game-play { font-size: 10px; padding: 3px 8px; }
  .guide { padding: 4px 14px 24px; font-size: 15px; line-height: 1.9; }
  .guide h3 { font-size: 18px; margin-top: 26px; }
  .cta-lg { min-height: 46px; padding-inline: 22px; font-size: 16px; }
  .guide-final p { font-size: 15px; }
  .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { padding-bottom: 88px; }
  .floating-left { left: 8px; bottom: 10px; gap: 9px; }
  .quick-menu { display: none; }
  .brand-float { width: 50px; height: 50px; }
  .float-cta { right: 10px; bottom: 12px; min-height: 46px; padding: 6px 16px 6px 44px; font-size: 15px; }
  .float-cta img { width: 30px; left: 8px; }
}

@media (max-width: 380px) {
  .site-header { gap: 4px; padding-inline: 4px 6px; }
  .menu-button { padding: 0 8px; }
  .brand { gap: 3px; min-width: 0; }
  .brand-crown { width: 18px; height: 14px; }
  .brand-text { font-size: 15px; letter-spacing: 0; }
  .header-cta { gap: 4px; flex: none; }
  .header-cta .cta { padding: 4px 8px; font-size: 11px; }
}

@media (max-width: 319px) {
  .header-cta .cta:not(.cta-red) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .ticker p { padding-inline-start: 0; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
  .js mark.kw { background-size: 100% 100%; }
}
