.homepage-background img { width:100%; height:100%; object-fit:cover; object-position:center }
@media (prefers-reduced-motion:no-preference) {
  .homepage-background img { animation:felt-light 24s ease-in-out infinite alternate }
  @keyframes felt-light { from {transform:scale(1)} to {transform:scale(1.025)} }
}
.hero-visual { min-height:clamp(285px,31vw,420px) }
.hero-art { inset:0; border-radius:50% 50% 9px 9px }
.hero-art img { height:100%; object-position:center 50%; object-fit:cover }
.hero-art::after { background:linear-gradient(0deg,#08111b3d,transparent 37%) }
.dual-cta .btn { flex:1; max-width:190px; justify-content:center }
.sport-btn,.felt-btn { color:#fff; font-weight:700; border:1px solid }
.sport-btn { background:#22354b; border-color:#9aaec1 }
.felt-btn { background:#173e32; border-color:#91bda4 }
.sport-btn:hover,.felt-btn:hover { border-color:#f5cf80; color:#ffdf9e }
.dual-block { margin-block:clamp(36px,5vw,82px); scroll-margin-top:105px }
.dual-block > h2 { color:#f1e5ca; font-size:clamp(24px,2.4vw,36px); line-height:1.2; margin:0 0 18px; text-shadow:0 2px 14px #000 }
.feature-matrix,.play-pair,.entry-pair,.paired-guides { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) }
.feature-matrix { border:1px solid #8d784c88; border-radius:10px; overflow:hidden }
.feature-matrix .sports,.entry-pair .sports,.play-panel.sports { background:linear-gradient(118deg,#101f31fa,#122537fa) }
.feature-matrix .felt,.entry-pair .felt,.play-panel.felt { background:linear-gradient(115deg,#0b211dfb,#12352bfd) }
.matrix-heading,.matrix-cell { padding:clamp(14px,2.2vw,30px) }
.matrix-heading { font-weight:780; font-size:clamp(19px,1.8vw,26px); color:#edcf95 }
.matrix-cell { border-top:1px solid #afa78232 }
.feature-column.sports { border-right:1px solid #afa78232 }
.matrix-cell h4,.entry-pair h3 { color:#f4ebd6; font-size:clamp(17px,1.45vw,22px); margin:0 0 6px }
.matrix-cell p,.play-panel p,.entry-pair p,.bac-guide-body p { color:#c7d1d2; font-size:14px; line-height:1.7; margin:0 }
/* Keep corresponding topics aligned across the two columns. */
.feature-column { min-width:0; display:grid; grid-template-rows:subgrid; grid-row:span 6; scroll-margin-top:95px }
.feature-column .matrix-heading { margin:0 }
.matrix-cell .feature-tip { margin-top:12px; padding-left:12px; border-left:2px solid #7b9caf88 }
.felt .feature-tip { border-color:#73a38988 }
.feature-tip strong { display:block; margin-bottom:2px; color:#ead8ae; font-size:13px }
.feature-link,.feature-jump a { color:#f1d69f; text-underline-offset:4px }
.feature-link { display:inline-block; margin-top:10px; font-size:14px; text-decoration:underline }
.feature-link:hover,.feature-jump a:hover { color:#fff1d8 }
.feature-link:focus-visible,.feature-jump a:focus-visible { outline:2px solid #f3d18b; outline-offset:3px }
.feature-jump { display:none }
@media (max-width:680px) {
  .feature-jump { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 12px }
  .feature-jump a { padding:7px 13px; border:1px solid #9c8659; border-radius:5px; background:#102227; font-size:14px }
  .feature-matrix { grid-template-columns:minmax(0,1fr) }
  .feature-column { display:block; grid-row:auto }
  .feature-column.sports { border-right:none }
  .feature-column.felt { border-top:1px solid #8d784c88 }
  .feature-column .matrix-cell,.feature-column .matrix-heading { padding:18px }
}
.play-pair,.entry-pair,.paired-guides { gap:clamp(12px,2vw,24px) }
.play-panel,.entry-pair article,.paired-guides>details { min-width:0; border:1px solid #ad956155; border-radius:10px; padding:clamp(18px,2.35vw,33px) }
.play-panel { scroll-margin-top:95px }
.play-panel header { margin-bottom:20px }
.play-panel h3 { font-size:clamp(24px,2.2vw,34px); line-height:1.2; margin:8px 0 9px; color:#f1e6ca }
.play-panel .feature-pick { position:static; width:100%; max-width:none; min-height:0; margin:0; transform:none; box-shadow:none }
.play-panel .pick-body { min-height:95px }
#sports-play { align-self:start }
.entry-pair .btn { margin-top:14px }
.bac-table { border:1px solid #b3965f88; border-radius:9px; background:radial-gradient(ellipse at center,#193c32,#081f1b); padding:clamp(12px,1.6vw,22px); }
.table-head,.road-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap }
.table-head { padding-bottom:11px; border-bottom:1px solid #a6ab8540; font-size:13px; color:#d9c598 }
.table-head select { font:inherit; font-weight:700; color:#f2dfad; background:#0a241d; border:1px solid #9b956a; border-radius:5px; padding:6px; margin-left:4px }
.road-heading { margin:16px 0 6px }.road-heading h4 { color:#e9d29d; font-size:16px; margin:0 }
.road-heading span,.road-totals { font-size:12px; color:#d2e1d6 }
.road-totals { display:flex; gap:17px; margin:7px 0 16px }.road-totals .banker {color:#f4aaa5}.road-totals .player {color:#a2d1fa}.road-totals .tie {color:#a1dfb7}
.road-totals b { font-variant-numeric:tabular-nums }
.bac-table #bac-status { color:#f1deb2; margin:4px 0 10px; font-size:14px; min-height:24px; font-weight:650 }
.bac-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px }
.bac-choices button,#bac-next { font:inherit; font-weight:700; min-height:42px; border:1px solid #d4bf8990; border-radius:5px; color:#fff8f1; cursor:pointer }
.bac-choices [data-pick="莊"] { background:#79373d }.bac-choices [data-pick="閒"] { background:#2d516d }.bac-choices [data-pick="和"] { background:#315f4a }
#bac-next { width:100%; color:#251d12; background:#e6cb91 }
.bac-choices button:hover,#bac-next:hover { filter:brightness(1.14) }
.play-panel button:focus-visible,.paired-guides summary:focus-visible { outline:2px solid #f3cf7b; outline-offset:2px }
.bac-record { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; align-items:start }
.bac-record>div>span { font-size:12px; color:#c7d1c5; display:block }
.bac-record strong { display:block; font-size:23px; color:#edcf95; font-variant-numeric:tabular-nums; line-height:1.4 }
.bac-record strong small { font-size:12px }
#bac-history { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); grid-template-rows:repeat(6,clamp(27px,2.15vw,34px)); grid-auto-flow:column; border:1px solid #537366; border-radius:4px; overflow:hidden; background:#102e26 }
#bac-history>span { display:grid; place-items:center; border-right:1px solid #436356; border-bottom:1px solid #436356 }
#bac-history b,#bac-history .upcoming { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; font:750 13px/1 sans-serif; color:white }
#bac-history .banker { background:#9c3f46 } #bac-history .player { background:#295f8d } #bac-history .tie { background:#286849 }
#bac-history .upcoming { border:1px dashed #dbbf79; font-size:12px; color:#e9ce8c }
#bac-history .latest { outline:2px solid #eed79d; outline-offset:1px; animation:road-reveal .25s ease-out }
@keyframes road-reveal { from {transform:scale(.65)} to {transform:scale(1)} }
.play-panel .replay-source { color:#b4c4bb; font-size:12px; margin-top:13px }
#baccarat [hidden] { display:none !important }
.paired-guides>details { background:#0d1b2bf8; padding:0; scroll-margin-top:100px }
.paired-guides>details:nth-child(2) { background:#10271ff8 }
.paired-guides>details>summary { cursor:pointer; padding:18px 23px; color:#e9d4a5; font-weight:720 }
.paired-guides>details[open] { grid-column:1/-1 }
.bac-guide-body { padding:0 clamp(18px,3vw,38px) 28px; max-width:74ch }
.bac-guide-body h3,.bac-guide-body h4 { margin:17px 0 4px; color:#edcf95 }
.bac-guide-body .text-link { display:inline-block; margin-top:18px }
.entry-pair h3 { margin-bottom:8px }
#faq .faq-wrap { background:#0d1923f5; border-radius:8px; padding:6px 18px }
@media(max-width:780px) {
 .hero-visual { min-height:260px }.hero-art { inset:0 }
 .play-pair { grid-template-columns:minmax(0,1fr) }
 .play-panel { scroll-margin-top:80px }
 .entry-pair,.paired-guides { gap:9px }
 .entry-pair article { padding:15px 10px }.entry-pair .btn { padding:0 9px; min-width:0; font-size:12px }
 .matrix-cell,.matrix-heading { padding:14px 10px }
 .matrix-cell p { font-size:13px }.paired-guides>details>summary { padding:14px 8px; font-size:14px }
 .dual-cta .btn { min-width:0; padding:0 9px }
 .dual-block { scroll-margin-top:80px }
}
@media(prefers-reduced-motion:reduce) { #bac-history .latest { animation:none } }


#bac-history button { display:grid; place-items:center; border:0; padding:0; width:23px; height:23px; border-radius:50%; color:#fff; cursor:pointer; font:750 13px/1 sans-serif }
#bac-history button:focus-visible,#bac-hand button:focus-visible { outline:2px solid #ffdd8d; outline-offset:2px }
#bac-hand { margin:15px 0 0; padding:14px 0 0; border-top:1px solid #385544 }
.hand-title,.hand-sides { display:flex; align-items:center; justify-content:space-between; gap:8px }
.hand-title h4 { margin:0; font-size:14px; color:#eed7a3 }
.hand-back { background:transparent; border:0; color:#e8d4a3; text-decoration:underline; cursor:pointer }
.hand-sides { align-items:stretch; gap:12px; margin-top:10px }
.hand-side { flex:1; min-width:0; padding:8px 0 }
.hand-side + .hand-side { border-left:1px solid #3f5c50; padding-left:12px }
.hand-side strong { display:block; font-size:13px; color:#8ed0f1 }
.hand-side + .hand-side strong { color:#f3a5a3 }
.hand-cards { display:flex; gap:4px; margin-top:6px }
.hand-cards span { width:clamp(24px, 5.5vw, 36px); height:clamp(37px, 8vw, 51px); border-radius:4px; display:flex; flex-direction:column; justify-content:center; align-items:center; box-sizing:border-box; box-shadow:0 2px 3px #00150f44 }
.hand-cards .face { background:#faf6eb; color:#222a25; border:1px solid #dbcba7; line-height:1; font-family:Georgia,serif }
.hand-cards .face b { font-size:clamp(16px,3.5vw,20px) }
.hand-cards .face i { font-size:15px; font-style:normal }
.hand-cards .face.red { color:#ad263b }
.hand-cards .back { border:2px solid #d8b578; background:repeating-linear-gradient(45deg,transparent 0 4px,#8da88966 4px 5px),repeating-linear-gradient(-45deg,#193a31 0 4px,#617f6b 4px 5px) }
#bac-hand .proof-note,.audit-evidence { margin:7px 0 0; font-size:13px; line-height:1.6; color:#cee1d8 }
.audit-evidence summary,.audit-evidence a { color:#eed49a; cursor:pointer }
.audit-evidence p { margin:4px 0; font-size:12px }
.audit-evidence .hand-proof,.audit-evidence .road-source { display:block; max-width:100%; height:auto; margin-top:6px; border-radius:4px }
.audit-evidence .hand-proof { width:288px }
.hand-id { overflow-wrap:anywhere }
.road-proof-cell { display:inline-block; vertical-align:middle; width:40px; height:40px; margin:6px 8px 6px 0; background-size:394px 322px; background-repeat:no-repeat }
#bac-table-select { max-width:100%; }
@media(max-width:460px){ .bac-table .table-head { flex-wrap:wrap; gap:7px } .bac-table .table-head label { max-width:100%; } }

/* Guided baccarat lessons */
.bac-guide-expanded{max-width:none;padding:12px clamp(18px,3vw,38px) 32px}
.guide-intro{padding:10px 0 24px;border-bottom:1px solid #d4ba7930;margin-bottom:26px}
.guide-intro h3{font-size:clamp(23px,2.6vw,34px);line-height:1.4;margin:8px 0;color:#fae7b5}
.guide-classroom{display:grid;grid-template-columns:250px minmax(0,1fr);gap:clamp(22px,3vw,40px);align-items:start}
.guide-host{position:sticky;top:104px;text-align:center;background:radial-gradient(ellipse at 50% 35%,#2d5f454a,transparent 65%);padding:12px 0}
.guide-host-badge{display:inline-block;color:#ead5a2;font-weight:700;font-size:12px;letter-spacing:1px;border:1px solid #baa06055;border-radius:30px;padding:7px 15px}
.guide-host img{display:block;width:100%;height:290px;object-fit:contain;margin:12px auto 0}
.guide-speech{position:relative;text-align:left;padding:18px;background:#e9e0c9;border-radius:14px;color:#18382c;box-shadow:0 8px 25px #0002}
.guide-speech:before{content:'';position:absolute;top:-10px;left:50%;border-width:0 10px 11px;border-style:solid;border-color:transparent transparent #e9e0c9}
.guide-speech b{display:block;margin-bottom:5px;font-size:16px}.bac-guide-body .guide-speech p{color:#355044;font-size:14px;line-height:1.7}
.guide-progress{display:block;font-size:12px;color:#c3b88f;margin-top:14px;letter-spacing:1px}
.guide-step-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}
.guide-step-tabs button{display:flex;align-items:center;gap:9px;text-align:left;padding:12px 10px;border:1px solid #8fa58c40;border-radius:7px;background:#091d18;color:#c6d4ca;font-size:13px;min-height:48px}
.guide-step-tabs button span{color:#a49a79;font:600 11px/1 monospace}
.guide-step-tabs button[aria-selected=true]{background:#e4cb92;color:#172e24;border-color:#e4cb92;font-weight:800}.guide-step-tabs button[aria-selected=true] span{color:#5f5439}
.guide-step-tabs button:hover{border-color:#e4cb92}.guide-step-tabs button:focus-visible,.guide-controls button:focus-visible{outline:2px solid #f0d49a;outline-offset:3px}
.guide-lesson{background:#091c17c7;border:1px solid #83977535;border-radius:10px;padding:clamp(18px,2.2vw,28px);min-height:455px}
.guide-lesson[hidden]{display:none!important}.guide-step-count{font-size:11px;letter-spacing:2px;color:#bda571}
.bac-guide-body .guide-lesson h4{font-size:clamp(20px,2vw,27px);line-height:1.4;margin:10px 0 18px;color:#f0deb5}
.bac-guide-body .guide-lesson p{line-height:1.9;font-size:14px;color:#ccd8d0;margin:12px 0}
.guide-callout{padding:17px 20px;margin:20px 0;background:#25433360;border-left:3px solid #d2b579;border-radius:0 6px 6px 0}
.guide-callout b{color:#edcf95}.guide-callout ul,.guide-callout ol{padding-left:21px;margin:10px 0 0}.guide-callout li{color:#cfdbd2;font-size:14px;line-height:1.9;margin:7px 0}
.guide-road-legend{display:grid;gap:0;margin:20px 0;border-block:1px solid #8fa58c35}.guide-road-legend>div{display:grid;grid-template-columns:minmax(65px,120px) 1fr;gap:14px;padding:14px 0;border-bottom:1px solid #8fa58c20}.guide-road-legend>div:last-child{border:0}.guide-road-legend b{color:#ead4a1;font-size:14px}.guide-road-legend span{color:#ccd8d0;font-size:14px;line-height:1.8}
.guide-bead-demo{display:flex;gap:24px;align-items:center;margin:22px 0}.guide-demo-grid{display:grid;grid-template-rows:repeat(6,28px);grid-auto-flow:column;grid-template-columns:repeat(2,38px);flex-shrink:0;border:1px solid #91a38a;border-radius:4px;overflow:hidden}.guide-demo-grid span{display:grid;place-items:center;border:1px solid #91a38a40;color:#e5d29f;font-size:12px}.guide-demo-grid span:nth-child(7){background:#d4ba7925}.guide-bead-demo b{color:#ead4a1}.bac-guide-body .guide-small{font-size:12px;color:#9fb3a4}
.guide-result-key{display:flex;gap:9px;flex-wrap:wrap}.guide-result-key span{border:1px solid currentColor;border-radius:4px;padding:5px 10px;font-size:12px}.g-banker{color:#f4aaa5}.g-player{color:#a2d1fa}.g-tie{color:#a1dfb7}
.guide-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.guide-controls button{padding:9px 14px;border:1px solid #c4ac7455;background:#182f25;color:#f0dab0;border-radius:5px;font-size:13px;min-height:42px}.guide-controls button:disabled{opacity:.35;cursor:default}.guide-controls>span{font-size:11px;color:#9fb3a4;text-align:center}
@media(max-width:780px){.guide-classroom{grid-template-columns:170px minmax(0,1fr);gap:18px}.guide-host img{height:230px}.guide-step-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-step-tabs button{font-size:12px;gap:6px;padding:10px 8px}.guide-lesson{min-height:0}.guide-controls>span{display:none}}
@media(max-width:560px){.guide-classroom{display:block}.guide-host{position:relative;top:auto;display:grid;grid-template-columns:115px 1fr;align-items:center;gap:8px;text-align:left;padding:0;margin-bottom:22px}.guide-host-badge{grid-column:1/-1;justify-self:start;font-size:11px}.guide-host img{height:160px;width:115px;margin:0;grid-column:1;grid-row:2}.guide-speech{grid-column:2;grid-row:2;padding:14px}.guide-speech:before{top:45%;left:-10px;border-width:8px 11px 8px 0;border-color:transparent #e9e0c9 transparent transparent}.guide-progress{grid-column:1/-1;margin-top:0;text-align:center}.guide-step-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-step-tabs button{display:block;text-align:center}.guide-step-tabs button span{display:block;margin-bottom:6px}.guide-road-legend>div{grid-template-columns:1fr;gap:5px}.guide-bead-demo{gap:18px}.bac-guide-expanded{padding-inline:16px}}
.mt-inline{overflow:hidden;min-width:0;border:1px solid #b69a5c65;border-radius:10px;background:#091d17}
.mt-inline-bar{display:flex;align-items:center;justify-content:flex-end;padding:10px 14px;color:#cfc2a0;font-size:12px;background:#102a21}
.mt-inline-bar button{min-height:40px;padding:5px 12px;border:1px solid #bca36a80;border-radius:6px;background:transparent;color:#edd29a;font:inherit;cursor:pointer}
.mt-inline-bar button:hover,.mt-inline-bar button:focus-visible{background:#233c2d;color:#fff1cf}
.mt-inline-screen{height:clamp(420px,72vh,760px);height:clamp(420px,72svh,760px)}
.mt-inline-screen>iframe{display:block;width:100%;height:100%;border:0;background:#091d17}
.mt-inline-screen>p{padding:18px;color:#ded4b9}
.mt-history-fallback{border-top:1px solid #ac976044;margin-top:24px;padding-top:18px}.mt-history-fallback>summary{cursor:pointer;color:#d8c18c;font-size:13px;line-height:1.8}.play-panel .mt-history-intro{font-size:12px;margin:15px 0;color:#b8c9bd}.mt-history-fallback .bac-table{margin-top:14px}

.sector-link{display:flex;align-items:center}
.sector-nav-label{display:inline-flex;align-items:center;padding:8px 2px;color:#cad0db;font-size:13px;font-weight:700}
.sector-nav-label:hover,.sector-nav-label[aria-current=page]{color:#f2d28e}
.nav .sector-arrow{padding:8px 4px;min-width:22px}
.sector-link .nav-drop{top:100%}
.split-footer,.split-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:22px}
.split-footer{justify-content:space-between;padding:18px 0}
.split-footer nav a{color:#c6c9d1;font-size:13px}
.split-footer nav a:hover,.category-home:hover{text-decoration:underline}
.category-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.category-option{display:block;border:1px solid #9e845659;border-radius:9px;padding:clamp(24px,3vw,40px);color:#d1dbdf}
.category-option.sports{background:linear-gradient(120deg,#142b41,#102033)}
.category-option.felt{background:linear-gradient(120deg,#15392f,#0b211b)}
.category-option h3{margin:0 0 10px;color:#f6e4bd;font-size:clamp(22px,2vw,30px)}
.category-option p{margin:0 0 20px;line-height:1.8}
.category-option span,.category-home{color:#e7ce97;font-size:14px}
.category-option:hover,.category-option:focus-visible{border-color:#dec185}
body[data-page=sports]{background:#0a1421}
body[data-page=baccarat]{background:radial-gradient(ellipse at 85% 8%,#163b30,transparent 58rem),#081b17}
.category-head{padding-top:clamp(28px,4vw,60px);padding-bottom:24px}
.category-head h1{color:#f3e3c0;font-size:clamp(36px,5vw,64px);line-height:1.18;margin:14px 0 20px}
.category-nav{display:flex;flex-wrap:wrap;gap:8px}
.category-nav a{padding:8px 14px;border:1px solid #9a8d714f;border-radius:5px;font-size:14px;color:#dfe3df;background:#0a171da8}
.category-nav a:hover,.category-nav a:focus-visible{border-color:#d7b97c;color:#f4dc9e}
.category-play .play-panel{width:100%}
body[data-page=baccarat] #replay{scroll-margin-top:96px}
.category-features,.category-guide,.category-entry{display:block}
.category-features .feature-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-row:auto;border:0}
.category-features .matrix-heading{grid-column:1/-1}
.category-features .matrix-cell:nth-of-type(even){border-left:1px solid #afa78232}
.category-guide>details#baccarat-guide{background:#10271f}
.category-faq .faq-wrap{background:#0d1923ef;border-radius:8px;padding:6px 18px}
@media(max-width:650px){
 .category-options,.category-features .feature-column{grid-template-columns:1fr}
 .category-features .matrix-cell:nth-of-type(even){border-left:0}
 .category-nav a{font-size:13px;padding:7px 10px}
 .split-footer{gap:12px}.split-footer nav{gap:14px}
}
