/* SG Online landing — theme "crown": maroon velvet + gold foil, ivory cards. */
:root {
  --m-950: #1d0009; --m-900: #2c000f; --m-800: #4a0019; --m-700: #6a0129; --m-600: #86103a; --m-100: #f6e7ec;
  --g-300: #f6dc8a; --g-400: #e9c75a; --g-500: #dbb237; --g-700: #9c7a14; --g-800: #7a5e0c;
  --ivory: #fbf6ee; --paper: #ffffff; --ink: #2a1219; --ink-2: #5b4249; --line: #ecdfd3;
  --ok: #1f7a46; --warn: #b4580c; --red: #c0143c;
  --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px; --gut: 16px;
  --foil: linear-gradient(100deg, #9c7a14 0%, #f6dc8a 28%, #dbb237 46%, #fff1c2 58%, #c9a031 74%, #9c7a14 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--ivory); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--m-700); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--g-500); color: var(--m-950); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--g-500); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 700 15px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-gold { color: var(--m-950); background: var(--foil); background-size: 200% 100%; box-shadow: 0 8px 22px -10px rgba(219, 178, 55, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-ghost { color: var(--g-300); border-color: rgba(246, 220, 138, .45); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(246, 220, 138, .12); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xl { min-height: 54px; padding: 0 26px; font-size: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(44, 0, 15, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(219, 178, 55, .25); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 19px/1 var(--serif); letter-spacing: .06em; }
.brand b { color: var(--g-500); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: #f3dfe5; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; }
.nav a:not(.btn):hover { color: var(--g-300); background: rgba(255, 255, 255, .06); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(219, 178, 55, .22), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(134, 16, 58, .9), transparent 60%),
    linear-gradient(160deg, var(--m-700) 0%, var(--m-800) 45%, var(--m-950) 100%); }
.hero::before { /* damask-like velvet texture */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, transparent 38%, rgba(246, 220, 138, .5) 39%, transparent 41%),
                    radial-gradient(circle at 0 0, transparent 38%, rgba(246, 220, 138, .35) 39%, transparent 41%);
  background-size: 46px 46px; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--g-300); background: rgba(0, 0, 0, .22); border: 1px solid rgba(219, 178, 55, .35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee07f; box-shadow: 0 0 0 0 rgba(62, 224, 127, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(62, 224, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 127, 0); } }
.hero h1 { font: 800 clamp(34px, 6.2vw, 64px)/1.06 var(--serif); letter-spacing: .01em; }
.foil { display: inline-block; background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.lead { font-size: clamp(16px, 2vw, 18.5px); color: #f2dce3; max-width: 560px; margin: 18px 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin: 14px 0 0; font-size: 13.5px; color: #dcbcc6; }
.ios-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); color: var(--g-300); font-size: 14px; }
.hero-seal { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.seal-ring { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.seal-text { fill: var(--g-300); font-family: var(--serif); font-weight: 700; }
.seal-spin { transform-origin: 200px 200px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-core { position: absolute; inset: 22%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  background: radial-gradient(circle at 35% 30%, #8a1440, var(--m-800) 55%, var(--m-950)); box-shadow: inset 0 0 0 2px rgba(219, 178, 55, .55), inset 0 -18px 40px rgba(0, 0, 0, .35), 0 0 60px rgba(219, 178, 55, .18); }
.seal-core img { width: 34%; height: auto; margin-bottom: 4px; }
.seal-core small { font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e8c9d2; max-width: 80%; }
.seal-num { font: 800 clamp(18px, 3.4vw, 26px)/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--g-300); letter-spacing: .04em; }

/* welcome-bonus banner (hero777-style, on the dark velvet) */
.hero-bonus-wrap { position: relative; padding-top: 18px; }
.cbonus { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, rgba(246, 220, 138, .18), rgba(0, 0, 0, .22)); border: 1px solid rgba(219, 178, 55, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 34px -20px rgba(0, 0, 0, .7); }
.cbonus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 60%); transform: translateX(-130%); animation: cbshine 5s ease infinite; }
@keyframes cbshine { 0%, 68% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.cb-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--m-950); background: var(--foil); box-shadow: 0 7px 16px -7px rgba(219, 178, 55, .8); }
.cb-ic .ic { width: 26px; height: 26px; }
.cb-main { display: flex; flex-direction: column; line-height: 1.08; min-width: 0; }
.cb-main b { font: 800 clamp(19px, 5vw, 24px)/1 var(--serif); color: var(--g-300); letter-spacing: .02em; }
.cb-main .cb-ru { color: var(--g-500); }
.cb-main small { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e8c9d2; }
.cb-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 9px 15px; border-radius: 999px; background: var(--foil); color: var(--m-950); font-weight: 800; font-size: 13px; white-space: nowrap; }
.cb-go .ic { width: 16px; height: 16px; transform: rotate(-90deg); }

/* keep the hero column from blowing out the viewport (grid/flex min-width:auto) */
.hero-in { min-width: 0; }
.hero-in > * { min-width: 0; }
.hero-copy { min-width: 0; max-width: 100%; }
.hero h1, .lead { overflow-wrap: break-word; }

/* trust badges */
.trust-b { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; margin: 24px 0 0; padding: 0; max-width: 470px; }
.trust-b li { min-width: 0; }
.trust-b li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 700; color: #f3dfe5; }
.tb-ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--g-300);
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(219, 178, 55, .42); box-shadow: inset 0 0 16px rgba(219, 178, 55, .14); transition: transform .25s; }
.tb-ic .ic { width: 24px; height: 24px; }
.tb-ic.tb-star { color: var(--g-400); }
.trust-b li:hover .tb-ic { transform: translateY(-3px); }
@media (max-width: 380px) { .trust-b { grid-template-columns: repeat(2, 1fr); gap: 16px 6px; max-width: none; } }

/* hero lady — gold-framed portrait with a live result board (replaces the seal) */
.hero-lady { position: relative; width: min(100%, 400px); justify-self: center; }
.hl-frame { position: relative; overflow: hidden; border-radius: 210px 210px 26px 26px; aspect-ratio: 640 / 812;
  background: radial-gradient(120% 90% at 50% 8%, #3a0016, var(--m-900));
  box-shadow: 0 34px 64px -30px rgba(0, 0, 0, .75), 0 0 0 2px rgba(219, 178, 55, .55), 0 0 44px rgba(219, 178, 55, .15); }
.hl-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hl-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 78% at 50% 6%, transparent 52%, rgba(29, 0, 9, .5)); }
.hl-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a1440, var(--m-900)); box-shadow: 0 0 0 2px var(--g-500), 0 10px 24px -8px rgba(0, 0, 0, .6); z-index: 2; }
.hl-crown img { width: 30px; height: 30px; }
.hl-board { position: absolute; left: -14px; bottom: 7%; width: 72%; min-width: 196px; border-radius: 14px; overflow: hidden; z-index: 2;
  background: var(--m-900); border: 1px solid rgba(219, 178, 55, .5); box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .75); }
.hl-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--foil); color: var(--m-950); font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-top .dot { background: #1f7a46; box-shadow: none; animation: none; }
.hl-num { display: block; text-align: center; padding: 9px 12px 2px; font: 800 clamp(20px, 5vw, 26px)/1 var(--sans); color: var(--g-300); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.hl-foot { display: block; text-align: center; padding: 0 0 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-500); }
@media (max-width: 860px) { .hero-lady { order: -1; width: min(80vw, 300px); } }
@media (max-width: 480px) { .hl-board { left: 50%; transform: translateX(-50%); bottom: -26px; width: 84%; } .hero-lady { margin-bottom: 34px; } }

/* decorative hero design: gold halo, a slow dashed ring, twinkling sparkles, floating live chips */
.hl-glow { position: absolute; z-index: 0; inset: -12% -16% 4% -16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(219, 178, 55, .32), rgba(219, 178, 55, .08) 56%, transparent 72%); filter: blur(10px); }
.hl-ring { position: absolute; z-index: 0; top: -7%; left: 50%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); pointer-events: none;
  border-radius: 50%; border: 1.5px dashed rgba(219, 178, 55, .5);
  -webkit-mask-image: linear-gradient(#000 52%, transparent 78%); mask-image: linear-gradient(#000 52%, transparent 78%); animation: hlspin 64s linear infinite; }
@keyframes hlspin { to { transform: translateX(-50%) rotate(360deg); } }
.hl-frame { z-index: 1; }
.hl-sparks { position: absolute; z-index: 4; inset: -5% -9%; width: 118%; height: 110%; pointer-events: none; overflow: visible; }
.hl-sparks .sp { transform-box: fill-box; transform-origin: center; animation: hlsp 2.8s ease-in-out infinite; }
.hl-sparks .sp2 { animation-delay: -.8s; } .hl-sparks .sp3 { animation-delay: -1.5s; } .hl-sparks .sp4 { animation-delay: -2.1s; }
@keyframes hlsp { 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }
.hl-chips { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hl-chip { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 7px 12px; border-radius: 12px;
  background: rgba(29, 0, 9, .82); border: 1px solid rgba(219, 178, 55, .5); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.hl-chip b { font: 800 10.5px/1 var(--sans); color: #f3dfe5; white-space: nowrap; letter-spacing: .02em; }
.hl-chip i { font: 800 14px/1 var(--sans); font-style: normal; color: var(--g-300); font-variant-numeric: tabular-nums; }
.hl-chip.hc0 { top: 11%; left: -12px; animation: hlfloat 5s ease-in-out infinite; }
.hl-chip.hc1 { top: 41%; right: -14px; animation: hlfloat 6.5s ease-in-out -1.8s infinite; }
@keyframes hlfloat { 50% { transform: translateY(-9px); } }
@media (max-width: 860px) { .hl-chip.hc0 { left: -2px; } .hl-chip.hc1 { right: -2px; } }
@media (max-width: 420px) { .hl-chip { padding: 6px 9px; } .hl-chip b { font-size: 9.5px; } .hl-chip i { font-size: 12.5px; } }

/* ribbon */
.ribbon { position: relative; overflow: hidden; background: var(--foil); color: var(--m-950); border-top: 1px solid rgba(255, 255, 255, .25); }
.ribbon-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon-set { display: flex; }
.rb { padding: 12px 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14.5px; }
.rb b { font-weight: 800; }
.rb::after { content: "✦"; margin-left: 22px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -1px; padding: 0; background: var(--line); border-radius: 0 0 var(--r) var(--r); overflow: hidden; max-width: 1148px; box-shadow: 0 18px 40px -28px rgba(74, 0, 25, .45); }
.facts > div { background: var(--paper); padding: 18px 14px; text-align: center; }
.facts b { display: block; font: 800 clamp(22px, 3.2vw, 30px)/1.1 var(--serif); color: var(--m-700); }
.facts span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); margin-left: var(--gut); margin-right: var(--gut); width: auto; } }

/* sections */
.sec { padding-top: 56px; padding-bottom: 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; font: 700 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--g-700); }
.eyebrow.light { color: var(--g-400); }
.sec h2, .page h1 { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--serif); color: var(--m-800); }
.updated { margin: 0; font-size: 13.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 14.5px; white-space: nowrap; min-height: 44px; }
.next-up { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; color: var(--ink-2); font-size: 15px; }
.next-up .ic { color: var(--g-700); width: 18px; }

.filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; }
.filter button.on { background: var(--m-700); border-color: var(--m-700); color: #fff; }
.session { margin-top: 10px; }
.session[hidden] { display: none; }
.session-h { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 12px; font: 700 18px/1.2 var(--serif); color: var(--m-700); letter-spacing: .04em; }
.session-h span { font: 600 13px/1 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.session-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--g-500), transparent); align-self: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--paper); border-radius: var(--r); padding: 16px 16px 12px; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 26px -20px rgba(74, 0, 25, .5); transition: transform .25s, box-shadow .25s; }
.card[hidden] { display: none; }
.card::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--line); }
.card[data-state="closed"]::before, .card[data-state="open"]::before { background: var(--foil); }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(74, 0, 25, .6); }
.card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h4 { font: 800 16px/1.25 var(--sans); color: var(--ink); }
.pill { flex: none; font: 700 11.5px/1 var(--sans); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; background: #f3ece4; color: var(--ink-2); }
.card[data-state="open"] .pill { background: #fff3d6; color: #8a5a00; }
.card[data-state="closed"] .pill { background: #e6f4ec; color: var(--ok); }
.card[data-state="holiday"] .pill { background: #fbe4e6; color: var(--red); }
.card[data-state="holiday"] { opacity: .75; }
.res { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.res .pn { font: 700 21px/1 var(--sans); letter-spacing: .08em; color: var(--ink); }
.res .jd { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 50%; font: 800 22px/1 var(--sans); letter-spacing: .04em;
  color: var(--m-950); background: radial-gradient(circle at 35% 30%, #fff1c2, var(--g-500) 55%, var(--g-700)); box-shadow: 0 6px 14px -6px rgba(156, 122, 20, .9), inset 0 0 0 2px rgba(255, 255, 255, .45); }
.res .jd.red { color: #fff; background: radial-gradient(circle at 35% 30%, #e0436a, var(--red) 55%, #7a0a26); box-shadow: 0 6px 14px -6px rgba(192, 20, 60, .8); }
.card[data-state="waiting"] .res .pn, .card[data-state="holiday"] .res .pn { color: #c9b6ad; }
.card[data-state="waiting"] .res .jd, .card[data-state="holiday"] .res .jd { background: #f1e9e1; color: #b9a49a; box-shadow: none; }
.card .flash ~ .jd, .res.flash .jd { animation: pop .9s ease; }
@keyframes pop { 30% { transform: scale(1.14); } }
.times { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-2); }
.times b { color: var(--ink); font-weight: 700; }
.prev { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.prev b { font-variant-numeric: tabular-nums; color: var(--ink); }
.card footer { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.card footer a { flex: 1; text-align: center; min-height: 40px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; font-size: 13.5px; text-decoration: none; background: var(--m-100); color: var(--m-700); }
.card footer a:hover { background: var(--m-700); color: #fff; }

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px 10px 10px; border-radius: 14px; }
  .card::before { left: 10px; right: 10px; }
  .card header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card h4 { font-size: 14.5px; }
  .pill { font-size: 10.5px; padding: 5px 7px; }
  .res { gap: 5px; margin: 10px 0 8px; }
  .res .pn { font-size: 15px; letter-spacing: .03em; }
  .res .jd { min-width: 40px; height: 40px; font-size: 17px; padding: 0 5px; }
  .times { flex-direction: column; gap: 1px; font-size: 12px; }
  .prev { font-size: 12px; }
  .card footer { gap: 5px; margin-top: 8px; padding-top: 8px; }
  .card footer a { font-size: 12.5px; min-height: 40px; }
}
@media (max-width: 340px) { .cards { grid-template-columns: 1fr; } }

/* starline / jackpot */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slot { border-radius: 14px; padding: 12px 10px; text-align: center; background: var(--paper); border: 1px solid var(--line); }
.slot span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.slot b { display: block; margin-top: 4px; font: 800 19px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: #c9b6ad; letter-spacing: .05em; }
.slot.has { background: linear-gradient(160deg, var(--m-700), var(--m-900)); border-color: var(--m-800); }
.slot.has span { color: #e8c9d2; }
.slot.has b { color: var(--g-300); }
.slots.jack .slot b { font-size: 26px; }
.slot.has.red b { color: #ff9db3; }
.flash { animation: glow 1.4s ease; }
@keyframes glow { 0% { text-shadow: 0 0 0 rgba(219, 178, 55, 0); } 30% { text-shadow: 0 0 18px rgba(219, 178, 55, .95); } }

/* royal band (install) */
.royal { margin-top: 64px; color: #fff; background: radial-gradient(900px 400px at 100% 0, rgba(219, 178, 55, .18), transparent 60%), linear-gradient(150deg, var(--m-800), var(--m-950)); }
.royal-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.royal h2 { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--serif); color: #fff; margin-bottom: 24px; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 700 15px/1 var(--serif); font-style: normal; color: var(--m-950); background: var(--foil); }
.steps b { display: block; font-size: 17px; }
.steps span { color: #e2c8d0; font-size: 15px; }
.qr-card { justify-self: center; width: 100%; max-width: 280px; padding: 22px; border-radius: 22px; text-align: center; background: var(--ivory); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(219, 178, 55, .35); }
.qr { width: 190px; height: 190px; margin: 0 auto 12px; color: var(--m-900); }
.qr svg { width: 100%; height: 100%; }
.qr-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .royal-in { grid-template-columns: 1fr; } .qr-card { display: none; } }

/* features */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat > div { padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.feat .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--g-700); background: #fff3d6; margin-bottom: 14px; }
.feat h3 { font: 800 16.5px/1.3 var(--sans); margin-bottom: 6px; color: var(--m-800); }
.feat p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 960px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feat { grid-template-columns: 1fr; } }

/* chart index */
.chart-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.chart-list li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.chart-list span { flex: 1; font-weight: 700; }
.chart-list a { min-height: 40px; padding: 0 14px; display: grid; place-items: center; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--m-700); background: var(--m-100); }
.chart-list a:hover { background: var(--m-700); color: #fff; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 22px/1 var(--sans); color: var(--g-700); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }
.faq-sec { padding-bottom: 64px; }

/* footer + dock */
.foot { background: var(--m-950); color: #d9bfc7; padding: 48px 0 110px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.foot p { font-size: 14.5px; }
.foot-h { font: 700 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--g-500); margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 3 140px; column-gap: 20px; }
.foot-links a { display: inline-block; padding: 6px 0; color: #f0dde3; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--g-300); }
.fine { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(219, 178, 55, .2); font-size: 13px; color: #b495a0; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 18px; text-decoration: none; color: #fff; background: rgba(44, 0, 15, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(219, 178, 55, .45); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); transform: translateY(0); transition: transform .35s; }
.dock img { border-radius: 10px; }
.dock span:not(.btn) { flex: 1; min-width: 0; }
.dock b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock small { color: #dcbcc6; font-size: 12.5px; }
.dock.away { transform: translateY(140%); }
@media (min-width: 900px) { .dock { left: auto; right: 24px; bottom: 24px; width: 360px; } }

/* hero responsive */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .hero-seal { width: min(86vw, 340px); order: -1; }
  .cta .btn { flex: 1 1 200px; }
}

/* scroll reveal (only when JS is on) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ============ tools & games ============ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 16px 40px -30px rgba(74, 0, 25, .5); }
.tool.tool-wide { grid-column: 1 / -1; }
.tool h3 { display: flex; align-items: center; gap: 8px; font: 800 17px/1.2 var(--sans); color: var(--m-700); margin: 0 0 14px; }
.tool h3 .ic { width: 20px; height: 20px; color: var(--g-700); }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.t-f input, .t-f select, .t-search { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font: 600 15px var(--sans); color: var(--ink); background: #fff; width: 100%; }
.t-f input:focus, .t-f select:focus, .t-search:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 3px rgba(219, 178, 55, .25); }
.t-search { margin-bottom: 12px; }
.t-out { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, var(--m-700), var(--m-900)); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.t-out:empty { display: none; }
.t-out .big { font: 800 24px/1.05 var(--sans); color: var(--g-300); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.t-out .sub { font-size: 13px; color: #f2dce3; font-weight: 600; }
.t-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-2); }
.t-go { margin-top: 12px; width: 100%; }
.t-btns { display: flex; gap: 8px; }
.t-chip { flex: 1; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 14px var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.t-chip.on, .t-chip:hover { background: var(--m-700); color: #fff; border-color: var(--m-700); }
.tool-lucky .lucky { text-align: center; font: 800 clamp(40px, 13vw, 60px)/1 var(--sans); color: var(--m-700); letter-spacing: .1em; font-variant-numeric: tabular-nums; margin: 4px 0 16px; min-height: 60px; }
.tool-lucky .lucky.roll { color: var(--g-700); opacity: .85; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #efe5da; margin-bottom: 14px; }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 700 13.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--m-700); color: #fff; }
.dream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 2px; }
.dream-grid .dr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dream-grid .dr b { font: 800 16px var(--sans); color: var(--m-700); font-variant-numeric: tabular-nums; }
.dream-grid .dr-none { grid-column: 1 / -1; padding: 16px; color: var(--ink-2); text-align: center; }
.sec-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.share-wa { -webkit-appearance: none; appearance: none; cursor: pointer; color: var(--m-700); font-family: var(--sans); border: 1px solid rgba(219, 178, 55, .45); background: rgba(219, 178, 55, .1); border-radius: 999px; padding: 8px 14px; }
.share-wa:hover { background: rgba(219, 178, 55, .2); }
.share-wa .ic { width: 16px; height: 16px; }
@media (max-width: 420px) { .t-row { grid-template-columns: 1fr; } }

/* ============ shared chart pages ============ */
.chart-page main { padding-bottom: 40px; }
.page { padding-top: 28px; }
.crumbs { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.page h1 { margin-bottom: 10px; }
.page .lead { color: var(--ink-2); margin: 0 0 18px; max-width: 760px; font-size: 15.5px; }
.today-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 12px 12px 18px; margin: 0 0 18px; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, var(--m-700), var(--m-900)); box-shadow: 0 14px 30px -20px rgba(74, 0, 25, .9); }
.today-strip span { font-weight: 700; color: #e8c9d2; }
.today-strip b { font: 800 22px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .05em; color: var(--g-300); }
.today-strip .btn { margin-left: auto; color: var(--m-950); background: var(--foil); }
/* phones: label + result on one row, the CTA becomes a full-width button below (no cramped float) */
@media (max-width: 560px) {
  .today-strip { padding: 14px; gap: 8px 12px; }
  .today-strip b { font-size: 24px; }
  .today-strip .btn { margin-left: 0; width: 100%; min-height: 48px; }
}
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #efe5da; margin-bottom: 14px; }
.tabs a { min-height: 40px; padding: 0 18px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.tabs a[aria-selected="true"] { background: var(--m-700); color: #fff; }
.jump { margin: 0 0 10px; font-size: 14px; }
.jump a { font-weight: 700; text-decoration: none; }
.empty { padding: 24px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--line); color: var(--ink-2); }
/* Horizontal scroll ONLY for the wide chart (so the page itself never scrolls sideways).
   No max-height: the table grows with its rows and the PAGE scrolls normally, instead of
   trapping the scroll inside a nested box. (The sticky first column still works sideways.) */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 16px 40px -30px rgba(74, 0, 25, .6); }
table.chart { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.chart thead th { position: sticky; top: 0; z-index: 2; padding: 10px 6px; font: 700 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--g-300); background: var(--m-800); }
.chart thead th:first-child { left: 0; z-index: 3; }
.chart tbody th { position: sticky; left: 0; z-index: 1; padding: 8px 8px; text-align: left; white-space: nowrap; font: 700 12.5px/1.25 var(--sans); color: var(--ink); background: #fbf3ea; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.chart tbody th small { display: block; font-weight: 600; color: var(--ink-2); font-size: 11px; }
.chart td { text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font: 800 17px/1.1 var(--sans); color: var(--ink); }
.chart tbody tr:nth-child(even) td { background: #fffcf8; }
.chart td.red { color: var(--red); }
.chart td.today { background: #fff3d6 !important; box-shadow: inset 0 0 0 2px var(--g-500); }
.chart td.pend { color: var(--g-700); }
.chart td.na, .chart .na { color: #d4c4bb; font-weight: 600; }
.chart.panel td { padding: 6px 2px; }
.chart.panel td .pn { display: inline-block; vertical-align: middle; font: 700 11px/1.15 var(--sans); color: var(--ink-2); }
.chart.panel td b { display: inline-block; vertical-align: middle; margin: 0 3px; font: 800 17px/1 var(--sans); }
.chart.slotchart td { font-size: 14px; white-space: nowrap; padding: 8px 8px; }
.tbl-wrap.fit table.chart { min-width: 0; }
@media (max-width: 520px) {
  .chart tbody th { font-size: 11px; padding: 6px 5px; }
  .chart tbody th small { font-size: 10px; }
  .chart td { font-size: 15px; padding: 7px 2px; }
  .chart.panel td .pn { font-size: 9.5px; }
  .chart.panel td b { font-size: 14px; margin: 0 1px; }
  .chart thead th { font-size: 11px; padding: 9px 3px; }
}
.page .sec { padding-top: 32px; }
.page .sec h2 { font-size: 22px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13.5px; background: var(--paper); border: 1px solid var(--line); color: var(--m-700); }
.chip:hover { background: var(--m-700); border-color: var(--m-700); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ribbon-track { width: auto; flex-wrap: wrap; }
  .ribbon-set[aria-hidden] { display: none; }
}
