/* Slot Game MM: presentation and a compact, keyboard-accessible reader. */
body.sg-ui-refreshed {
  --sg-header-height: 76px;
  --sg-panel: #181222;
  --sg-line: #cbb4e529;
  --sg-soft: #c6bbd1;
  color-scheme: dark;
  font-size: 16.5px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 700px at 90% 0, #50205d2b, transparent 65%), #100c18;
}
body.sg-ui-refreshed .wrap { width: calc(100% - 48px); max-width: 1240px; margin-inline: auto; padding-left: 0; padding-right: 0; }
body.sg-ui-refreshed :is(main, .hero-g, .hero-t, .lay, .art, .side, .g-card, .bonus-g, .bonus-t) { min-width: 0; }
body.sg-ui-refreshed :is(a, button, summary, input, select, [tabindex]):focus-visible { outline: 3px solid #eed397; outline-offset: 4px; }
body.sg-ui-refreshed :is(h1, h2, h3, [id]) { scroll-margin-top: calc(var(--sg-header-height) + 22px); }

/* Brand and navigation retain their existing content and destinations. */
body.sg-ui-refreshed .hd { background: #100c18f5; border-bottom-color: var(--sg-line); box-shadow: 0 4px 20px #0002; z-index: 70; }
body.sg-ui-refreshed .hd-in { min-height: var(--sg-header-height); gap: 22px; }
body.sg-ui-refreshed .logo { flex-shrink: 0; }
body.sg-ui-refreshed .menu a { font-size: 14px; padding: 11px 13px; line-height: 1.8; }
body.sg-ui-refreshed .menu .sub-menu { border-color: var(--sg-line); background: #21182d; }
body.sg-ui-refreshed .menu a:hover,
body.sg-ui-refreshed .menu .current-menu-item > a { background: #ffffff08; color: #f1d9a7; }

/* A clear opening panel with the original responsive picture. */
body.sg-ui-refreshed .hero { padding-top: 28px; padding-bottom: 20px; }
body.sg-ui-refreshed .hero-g { grid-template-columns: minmax(0, .98fr) minmax(0, 1.05fr); gap: 34px; padding: 30px; border: 1px solid #d7bfec26; border-radius: 26px; background: linear-gradient(130deg, #24172c80, #15101e70); }
body.sg-ui-refreshed .hero h1 { font-size: clamp(29px, 3.1vw, 40px); line-height: 1.65; margin: 16px 0 14px; background: none; color: #f3e5c6; }
body.sg-ui-refreshed .hero p { color: var(--sg-soft); margin-bottom: 22px; line-height: 2; }
body.sg-ui-refreshed .kick { font-size: 12px; line-height: 1.8; padding: 5px 11px; border-color: #dd9dac33; background: #6431462b; }
body.sg-ui-refreshed .hero-i { border-width: 1px; border-color: #d7b57770; border-radius: 20px; box-shadow: 0 16px 38px #0004; }
body.sg-ui-refreshed .chips { gap: 8px; margin-top: 20px; }
body.sg-ui-refreshed .chips li { padding: 6px 10px; font-size: 12.5px; border-color: var(--sg-line); background: #1c1527; }

/* More consistent section rhythm and image-led cards. */
body.sg-ui-refreshed :is(.provs, .games) { padding: 30px 0; }
body.sg-ui-refreshed .sec-h { font-size: clamp(22px, 2.1vw, 27px); line-height: 1.7; margin-bottom: 20px; }
body.sg-ui-refreshed .sec-hd { gap: 18px; align-items: center; margin-bottom: 4px; }
body.sg-ui-refreshed .sec-hd > a { flex-shrink: 0; font-size: 14px; }
body.sg-ui-refreshed .prov-g { gap: 13px; }
body.sg-ui-refreshed .prov-g a { display: flex; flex-direction: column; border-color: var(--sg-line); background: var(--sg-panel); border-radius: 16px; }
body.sg-ui-refreshed .prov-g img { opacity: 1; }
body.sg-ui-refreshed .prov-g b { position: static; display: grid; place-items: center; min-height: 45px; padding: 8px 6px; font-size: 12.5px; line-height: 1.55; background: none; }
body.sg-ui-refreshed .g-grid { gap: 18px; }
body.sg-ui-refreshed .g-card { background: var(--sg-panel); border-color: var(--sg-line); border-radius: 18px; box-shadow: 0 5px 20px #0002; }
body.sg-ui-refreshed .g-card:hover { transform: translateY(-2px); border-color: #d4bd8a8c; }
body.sg-ui-refreshed .g-b { padding: 15px 16px 17px; }
body.sg-ui-refreshed .g-b b { font-size: 16px; line-height: 1.7; }
body.sg-ui-refreshed .g-b small { display: block; margin-top: 5px; color: var(--sg-soft); font-size: 12.5px; line-height: 1.7; }
body.sg-ui-refreshed .bonus { padding-top: 20px; padding-bottom: 32px; }
body.sg-ui-refreshed .bonus-g { padding: 26px; gap: 28px; border-color: #c7a96c55; background: linear-gradient(120deg, #322035, #21162b); }
body.sg-ui-refreshed .bonus-t li { background: #20172a; border-color: var(--sg-line); }
body.sg-ui-refreshed .bonus-t span { margin-top: 8px; font-size: 14px; line-height: 1.9; }
body.sg-ui-refreshed .bonus-t small { line-height: 1.9; color: var(--sg-soft); }

/* Reading layout across home and inner pages. */
body.sg-ui-refreshed .body { padding-top: 12px; padding-bottom: 24px; }
body.sg-ui-refreshed .lay { grid-template-columns: minmax(0, 1fr) 292px; gap: 28px; }
body.sg-ui-refreshed .side { gap: 20px; top: calc(var(--sg-header-height) + 20px); }
body.sg-ui-refreshed.home .side { position: static; }
body.sg-ui-refreshed :is(.box, .toc, .prose, .faq details, .spec, .tool) { background: var(--sg-panel); border-color: var(--sg-line); }
body.sg-ui-refreshed .box { padding: 22px; border-radius: 18px; }
body.sg-ui-refreshed .box h2 { line-height: 1.85; }
body.sg-ui-refreshed .mini { gap: 14px; }
body.sg-ui-refreshed .mini a { font-size: 14px; line-height: 1.75; }
body.sg-ui-refreshed .mini img { flex-shrink: 0; }
body.sg-ui-refreshed .crumbs ol { line-height: 1.9; font-size: 13px; margin-top: 22px; }
body.sg-ui-refreshed .art-h h1 { font-size: clamp(26px, 2.7vw, 35px); line-height: 1.75; margin-bottom: 14px; }
body.sg-ui-refreshed .prose { padding: 30px; overflow-wrap: break-word; }
body.sg-ui-refreshed .prose p { margin-bottom: 22px; }
body.sg-ui-refreshed .prose li { margin-bottom: 9px; }
body.sg-ui-refreshed .prose h2 { line-height: 1.85; font-size: 24px; margin-top: 32px; margin-bottom: 16px; border-left-color: #ab708e; }
body.sg-ui-refreshed .prose h3 { font-size: 19px; line-height: 1.9; margin-top: 25px; margin-bottom: 12px; }
body.sg-ui-refreshed .prose table { max-width: 100%; font-size: 14px; line-height: 1.9; margin: 22px 0; }
body.sg-ui-refreshed .prose :is(th, td) { padding: 13px 14px; border-color: #c8b4d92b; }
body.sg-ui-refreshed .prose th { background: #271c33; }
body.sg-ui-refreshed .toc { border-left-width: 1px; padding: 20px; margin: 0 0 20px; }
body.sg-ui-refreshed .toc li { margin-bottom: 8px; line-height: 1.9; }
body.sg-ui-refreshed .faq { margin-top: 28px; }
body.sg-ui-refreshed .faq h2 { font-size: 24px; line-height: 1.8; }
body.sg-ui-refreshed .faq details { margin-bottom: 11px; padding: 0 20px; }
body.sg-ui-refreshed .faq summary { padding: 16px 24px 16px 0; line-height: 1.9; position: relative; }
body.sg-ui-refreshed .faq summary::after { position: absolute; right: 0; top: 16px; }

/* Native disclosure for the long contents list. All links stay in the DOM. */
body.sg-ui-refreshed .sg-toc-disclosure { margin: 0 0 20px; background: var(--sg-panel); border: 1px solid var(--sg-line); border-radius: 16px; overflow: clip; }
body.sg-ui-refreshed .sg-toc-disclosure > summary { display: flex; align-items: center; gap: 12px; padding: 17px 20px; font-weight: 700; cursor: pointer; list-style: none; }
body.sg-ui-refreshed .sg-toc-disclosure > summary::-webkit-details-marker { display: none; }
body.sg-ui-refreshed .sg-toc-disclosure > summary::after { content: '+'; margin-left: auto; color: #d6c59e; }
body.sg-ui-refreshed .sg-toc-disclosure[open] > summary::after { content: '−'; }
body.sg-ui-refreshed .sg-toc-count { font: 500 12px/1.5 Poppins, system-ui, sans-serif; background: #ffffff0b; color: #c7b9d4; padding: 3px 9px; border-radius: 999px; }
body.sg-ui-refreshed .sg-toc-disclosure .toc { border: 0; background: none; padding-top: 0; margin: 0; }
body.sg-ui-refreshed .sg-toc-disclosure .toc > :is(b, strong) { display: none; }

/* Scroll buttons act only on the article, never on external links. */
body.sg-ui-refreshed .sg-reader { background: var(--sg-panel); border: 1px solid #d2bbdf38; border-radius: 18px; isolation: isolate; scroll-margin-top: calc(var(--sg-header-height) + 14px); }
body.sg-ui-refreshed .sg-reader-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: #21192c; border-bottom: 1px solid var(--sg-line); border-radius: 18px 18px 0 0; }
body.sg-ui-refreshed .sg-reader-title { font-size: 14px; line-height: 1.8; color: #e5d7ee; font-weight: 700; }
body.sg-ui-refreshed .sg-reader .sg-reader-panel { position: relative; max-height: min(640px, calc(100svh - 252px)); overflow: auto; overscroll-behavior-y: auto; scrollbar-width: thin; scrollbar-color: #9d7eac #17111f; border: 0; border-radius: 0; margin: 0; }
body.sg-ui-refreshed .sg-reader-panel::-webkit-scrollbar { width: 8px; height: 8px; }
body.sg-ui-refreshed .sg-reader-panel::-webkit-scrollbar-track { background: #17111f; }
body.sg-ui-refreshed .sg-reader-panel::-webkit-scrollbar-thumb { background: #9d7eac; border-radius: 8px; border: 2px solid #17111f; }
body.sg-ui-refreshed .sg-reader-panel:focus-visible { outline-offset: -4px; }
body.sg-ui-refreshed .sg-reader-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--sg-line); background: #21192c; border-radius: 0 0 18px 18px; }
body.sg-ui-refreshed .sg-reader-controls { display: flex; flex-wrap: wrap; gap: 8px; }
body.sg-ui-refreshed .sg-read-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid #b5a1c14d; border-radius: 10px; background: #30243e; color: #ede4f3; font: 500 13px/1.7 "Noto Sans Myanmar", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
body.sg-ui-refreshed .sg-read-button:hover:not(:disabled) { background: #3a2c49; border-color: #c6b5d2a8; }
body.sg-ui-refreshed .sg-read-button:disabled { opacity: .4; cursor: default; }
body.sg-ui-refreshed .sg-read-progress { display: flex; align-items: center; gap: 10px; margin-left: auto; color: #c7b9d4; font: 500 12px/1.5 Poppins, system-ui, sans-serif; }
body.sg-ui-refreshed .sg-read-progress progress { appearance: none; width: 90px; height: 5px; border: 0; border-radius: 5px; background: #ffffff12; accent-color: #c4a7d3; }
body.sg-ui-refreshed .sg-read-progress progress::-webkit-progress-bar { background: #ffffff12; border-radius: 5px; }
body.sg-ui-refreshed .sg-read-progress progress::-webkit-progress-value { background: #c4a7d3; border-radius: 5px; }
body.sg-ui-refreshed .sg-read-progress progress::-moz-progress-bar { background: #c4a7d3; border-radius: 5px; }
body.sg-ui-refreshed .sg-reader.is-expanded .sg-reader-panel { max-height: none; overflow: visible; overscroll-behavior: auto; }
body.sg-ui-refreshed .sg-reader.is-expanded .sg-reader-top { position: sticky; top: calc(var(--sg-header-height) + 8px); z-index: 20; box-shadow: 0 4px 18px #0003; }
body.sg-ui-refreshed .sg-reader.is-expanded .sg-reader-panel :is(h2, h3) { scroll-margin-top: calc(var(--sg-header-height) + 92px); }
body.sg-ui-refreshed .sg-reader.is-expanded :is(.sg-reader-controls, .sg-read-progress) { display: none; }

/* A smaller footer on phones, without removing its navigation. */
body.sg-ui-refreshed .ft { margin-top: 36px; border-top-color: var(--sg-line); background: #0d0913; }
body.sg-ui-refreshed .ft-g { gap: 30px; padding-top: 36px; padding-bottom: 26px; }
body.sg-ui-refreshed .ft h3 { font-size: 16px; line-height: 1.9; color: #ded0aa; }
body.sg-ui-refreshed .ft li { margin-bottom: 8px; line-height: 1.9; }
body.sg-ui-refreshed .sg-footer-group { background: none; border: 0; }
body.sg-ui-refreshed .sg-footer-group > summary { list-style: none; }
body.sg-ui-refreshed .sg-footer-group > summary::-webkit-details-marker { display: none; }
body.sg-ui-refreshed .sg-footer-group > summary h3 { display: inline; }
body.sg-ui-refreshed .sg-footer-group > summary::after { content: '+'; margin-left: 10px; color: #ac98be; }
body.sg-ui-refreshed .sg-footer-group[open] > summary::after { content: '−'; }
body.sg-ui-refreshed .sg-footer-group > :not(summary) { margin-top: 16px; }

@media (max-width: 1100px) {
  body.sg-ui-refreshed .lay { grid-template-columns: minmax(0, 1fr); }
  body.sg-ui-refreshed .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sg-ui-refreshed .hero-g { padding: 26px; gap: 26px; }
  body.sg-ui-refreshed .prov-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.sg-ui-refreshed .ft-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  body.sg-ui-refreshed .nav-btn { display: flex; }
  body.sg-ui-refreshed .hd-in { justify-content: space-between; }
  body.sg-ui-refreshed .hd-acts { margin-left: auto; }
  body.sg-ui-refreshed .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 14px 14px; background: #1c1426; border-bottom: 1px solid var(--sg-line); max-height: calc(100svh - var(--sg-header-height)); overflow: auto; }
  body.sg-ui-refreshed .nav.open { display: block; }
  body.sg-ui-refreshed .nav .menu { flex-direction: column; }
  body.sg-ui-refreshed .nav .sub-menu { display: block; position: static; border: 0; background: none; box-shadow: none; padding-left: 18px; }
}
@media (max-width: 900px) {
  body.sg-ui-refreshed .hero-g { grid-template-columns: minmax(0, 1fr); }
  body.sg-ui-refreshed .hero-i { order: -1; }
  body.sg-ui-refreshed .hero h1 { font-size: 32px; }
  body.sg-ui-refreshed .bonus-g { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.sg-ui-refreshed { --sg-header-height: 70px; font-size: 16px; }
  body.sg-ui-refreshed .wrap { width: calc(100% - 28px); }
  body.sg-ui-refreshed .hd-in { gap: 12px; }
  body.sg-ui-refreshed .hero { padding-top: 16px; }
  body.sg-ui-refreshed .hero-g { padding: 14px; gap: 23px; border-radius: 20px; }
  body.sg-ui-refreshed .hero h1 { font-size: 29px; line-height: 1.8; }
  body.sg-ui-refreshed .hero p { line-height: 2; }
  body.sg-ui-refreshed .hero-i { border-radius: 14px; }
  body.sg-ui-refreshed .hero-b { gap: 12px; }
  body.sg-ui-refreshed .chips { gap: 7px; }
  body.sg-ui-refreshed .chips li { font-size: 12px; padding: 6px 8px; }
  body.sg-ui-refreshed :is(.provs, .games) { padding: 22px 0; }
  body.sg-ui-refreshed .sec-h { font-size: 22px; }
  body.sg-ui-refreshed .sec-hd { align-items: flex-start; flex-wrap: wrap; }
  body.sg-ui-refreshed .prov-g { gap: 9px; }
  body.sg-ui-refreshed .prov-g b { min-height: 44px; font-size: 11.5px; padding: 7px 4px; }
  body.sg-ui-refreshed .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  body.sg-ui-refreshed .g-card { border-radius: 14px; }
  body.sg-ui-refreshed .g-b { padding: 12px; }
  body.sg-ui-refreshed .g-b b { font-size: 14px; }
  body.sg-ui-refreshed .g-b small { font-size: 11.5px; }
  body.sg-ui-refreshed .bonus-g { padding: 20px; gap: 20px; }
  body.sg-ui-refreshed .bonus-t { gap: 10px; }
  body.sg-ui-refreshed .lay { gap: 22px; }
  body.sg-ui-refreshed .side { grid-template-columns: minmax(0, 1fr); }
  body.sg-ui-refreshed .prose { padding: 22px 18px; }
  body.sg-ui-refreshed .prose h2 { font-size: 22px; }
  body.sg-ui-refreshed .prose h3 { font-size: 18px; }
  body.sg-ui-refreshed .prose :is(th, td) { min-width: 112px; padding: 10px 11px; }
  body.sg-ui-refreshed .sg-reader .sg-reader-panel { max-height: clamp(180px, calc(100svh - 310px), 520px); }
  body.sg-ui-refreshed .sg-reader.is-expanded .sg-reader-panel { max-height: none; }
  body.sg-ui-refreshed .sg-reader-top { padding: 12px; gap: 10px; }
  body.sg-ui-refreshed .sg-reader-title { font-size: 13px; }
  body.sg-ui-refreshed .sg-read-button { padding: 8px 10px; font-size: 13px; }
  body.sg-ui-refreshed .sg-reader-bottom { padding: 12px; }
  body.sg-ui-refreshed .sg-reader-bottom [data-read-action="expand"] { display: none; }
  body.sg-ui-refreshed .sg-reader.is-expanded .sg-reader-bottom { display: none; }
  body.sg-ui-refreshed .sg-reader.is-expanded .sg-reader-panel { border-radius: 0 0 18px 18px; }
  body.sg-ui-refreshed .sg-read-progress progress { width: 60px; }
  body.sg-ui-refreshed .sg-toc-disclosure > summary { padding: 15px 16px; }
  body.sg-ui-refreshed .faq summary { font-size: 15px; }
  body.sg-ui-refreshed .ft-g { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  body.sg-ui-refreshed .ft .sg-footer-group { padding: 15px 16px; border: 1px solid var(--sg-line); border-radius: 13px; background: #181120; }
  body.sg-ui-refreshed .sg-footer-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
  body.sg-ui-refreshed .sg-footer-group > summary h3 { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.sg-ui-refreshed *, body.sg-ui-refreshed *::before, body.sg-ui-refreshed *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
}
