/* ==================================================================
   Mega777 — "Red Gold" template
   Layout: red top bar + dark nav row + left category sidebar
   ================================================================== */

:root{
  --rg-red:#ec1313;
  --rg-red-dark:#c50f0f;
  --rg-gold:#e6b63d;
  --rg-gold-2:#f5d067;
  --rg-ink:#3d3d3d;
  --rg-bar:#454545;
  --rg-bg:#3a3a3a;
  --rg-panel:#454545;
  --rg-panel-2:#4f4f4f;
  --rg-line:#565656;
  --rg-text:#ffffff;
  --rg-muted:#bdbdbd;
  --rg-muted-2:#8e8e8e;
  --rg-green:#35c759;
  --radius:8px;
  --wrap:1280px;
  --side:230px;
  --topbar-h:74px;
  --navbar-h:58px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;background:var(--rg-bg);color:var(--rg-text);
  font-family:"Kanit","Segoe UI",Tahoma,sans-serif;
  font-size:15px;font-weight:300;line-height:1.7;overflow-x:hidden;
}
img{max-width:100%;display:block;border:0}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
h1,h2,h3,h4{font-weight:500;line-height:1.4;margin:0}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 14px}

/* ================= buttons ================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 18px;border-radius:var(--radius);border:0;cursor:pointer;
  font-size:14px;font-weight:400;white-space:nowrap;transition:filter .16s,transform .16s;
}
.btn-primary{background:linear-gradient(180deg,var(--rg-gold-2),var(--rg-gold));color:var(--rg-ink);font-weight:500}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55)}
.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn-lg{padding:12px 28px;font-size:15px}

/* ================= top bar (red) ================= */
.rg-top{background:var(--rg-red);position:relative;z-index:40}
.rg-top-inner{
  max-width:var(--wrap);margin:0 auto;padding:0 14px;height:var(--topbar-h);
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.rg-brand{display:flex;align-items:center;min-width:0}
.rg-brand img{height:46px;width:auto;object-fit:contain}
.rg-brand-text{
  font-size:26px;font-weight:700;letter-spacing:.5px;color:#fff;
  text-shadow:0 2px 0 rgba(0,0,0,.25);
}
.rg-top-right{display:flex;align-items:center;gap:9px;flex-shrink:0}
.rg-lang{
  width:34px;height:24px;border-radius:4px;overflow:hidden;flex-shrink:0;
  border:1px solid rgba(255,255,255,.5);
}

.rg-burger{
  display:none;width:38px;height:38px;border:0;border-radius:var(--radius);
  background:rgba(0,0,0,.2);flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;
}
.rg-burger span{width:17px;height:2px;background:#fff;border-radius:2px;display:block}

/* ================= nav row (dark) ================= */
.rg-nav{background:var(--rg-bar);border-bottom:1px solid rgba(0,0,0,.28);position:sticky;top:0;z-index:38}
.rg-nav-inner{
  max-width:var(--wrap);margin:0 auto;padding:0 14px;height:var(--navbar-h);
  display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none;
}
.rg-nav-inner::-webkit-scrollbar{display:none}
.rg-nav-item{
  display:flex;align-items:center;gap:7px;padding:0 15px;height:100%;
  font-size:14px;color:#e6e6e6;white-space:nowrap;position:relative;transition:color .16s;
}
.rg-nav-item .mi{width:18px;height:18px;color:var(--rg-gold)}
.rg-nav-item:hover{color:#fff}
.rg-nav-item.active{color:var(--rg-gold);font-weight:400}
.rg-nav-item.active::after{
  content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;
  border-radius:3px 3px 0 0;background:var(--rg-gold);
}

/* ================= shell: sidebar + main ================= */
.rg-shell{max-width:var(--wrap);margin:0 auto;padding:14px;display:flex;gap:14px;align-items:flex-start}
.rg-main{flex:1;min-width:0}

.rg-side{
  width:var(--side);flex-shrink:0;background:var(--rg-panel);
  border-radius:var(--radius);overflow:hidden;position:sticky;top:calc(var(--navbar-h) + 14px);
}
.rg-side-head{
  padding:11px 15px;font-size:13px;color:var(--rg-gold);
  background:rgba(0,0,0,.18);border-bottom:1px solid var(--rg-line);letter-spacing:.3px;
}
.rg-side-list{display:flex;flex-direction:column}
.rg-side-item{
  display:flex;align-items:center;gap:11px;padding:11px 15px;
  font-size:14px;color:#e4e4e4;border-bottom:1px solid rgba(0,0,0,.14);
  cursor:pointer;background:none;border-left:3px solid transparent;text-align:left;width:100%;
  transition:background .16s,color .16s;
}
.rg-side-item img{width:26px;height:26px;object-fit:contain;flex-shrink:0}
.rg-side-item:hover{background:rgba(255,255,255,.06);color:#fff}
.rg-side-item.active{
  background:linear-gradient(90deg,rgba(236,19,19,.35),transparent);
  border-left-color:var(--rg-red);color:var(--rg-gold);
}
.rg-side-close{display:none}

/* mobile drawer */
.rg-side-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:60}

/* ================= marquee ================= */
.rg-marquee{
  display:flex;align-items:center;gap:10px;margin-bottom:14px;
  background:var(--rg-panel);border-left:4px solid var(--rg-red);
  border-radius:var(--radius);padding:9px 14px;overflow:hidden;
}
.rg-marquee .mi{color:var(--rg-gold);flex-shrink:0}
.rg-marquee-view{flex:1;overflow:hidden}
.rg-marquee-track{display:flex;gap:80px;white-space:nowrap;width:max-content;animation:rgmarq 36s linear infinite}
.rg-marquee-track span{font-size:13.5px;color:#e0e0e0}
.rg-marquee:hover .rg-marquee-track{animation-play-state:paused}
@keyframes rgmarq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ================= banner ================= */
.rg-banner{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--rg-panel);margin-bottom:16px}
.rg-banner-track{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1)}
.rg-slide{min-width:100%;aspect-ratio:1000/360}
.rg-slide img,.rg-slide a{display:block;width:100%;height:100%}
.rg-slide img{object-fit:cover}
.rg-banner-dots{position:absolute;left:0;right:0;bottom:11px;display:flex;justify-content:center;gap:7px}
.rg-dot{width:9px;height:9px;border-radius:99px;border:0;background:rgba(255,255,255,.45);cursor:pointer;padding:0;transition:.22s}
.rg-dot.active{width:24px;background:var(--rg-gold)}
.rg-banner-arrow{
  position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;cursor:pointer;
  border-radius:50%;background:rgba(0,0,0,.42);color:#fff;font-size:20px;line-height:1;
  display:flex;align-items:center;justify-content:center;opacity:0;transition:.2s;
}
.rg-banner:hover .rg-banner-arrow{opacity:1}
.rg-banner-arrow:hover{background:var(--rg-red)}
.rg-banner-arrow.prev{left:10px}
.rg-banner-arrow.next{right:10px}

/* ================= section blocks ================= */
.rg-block{background:var(--rg-panel);border-radius:var(--radius);padding:14px;margin-bottom:16px}
.rg-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;flex-wrap:wrap}
.rg-block-title{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:500}
.rg-block-title::before{content:"";width:4px;height:19px;border-radius:2px;background:var(--rg-gold)}
.rg-more{font-size:13px;color:var(--rg-gold)}
.rg-more:hover{text-decoration:underline}

/* provider tab pills */
.rg-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:5px;margin-bottom:13px;scrollbar-width:none}
.rg-tabs::-webkit-scrollbar{display:none}
.rg-tab{
  flex-shrink:0;padding:6px 15px;border-radius:var(--radius);border:1px solid var(--rg-line);
  background:var(--rg-panel-2);color:#d8d8d8;font-size:13.5px;font-weight:300;cursor:pointer;transition:.16s;
}
.rg-tab:hover{color:#fff;border-color:var(--rg-gold)}
.rg-tab.active{
  background:linear-gradient(180deg,var(--rg-gold-2),var(--rg-gold));
  border-color:transparent;color:var(--rg-ink);font-weight:500;
}

/* ================= game cards ================= */
.rg-games{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:12px}
.rg-game{display:flex;flex-direction:column;gap:6px}
.rg-game-thumb{
  position:relative;border-radius:var(--radius);overflow:hidden;background:var(--rg-panel-2);
  aspect-ratio:16/9;transition:transform .22s,box-shadow .22s;
}
.rg-game:hover .rg-game-thumb{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.45)}
.rg-game-thumb img{width:100%;height:100%;object-fit:cover}

.rg-rtp{
  position:absolute;left:0;bottom:0;padding:2px 10px;
  background:rgba(0,0,0,.62);border-radius:0 var(--radius) 0 0;
  font-size:11.5px;color:#fff;display:flex;align-items:center;gap:5px;
}
.rg-rtp b{color:var(--rg-gold);font-weight:500}

.rg-online{
  position:absolute;right:7px;bottom:7px;padding:2px 9px;border-radius:99px;
  background:rgba(0,0,0,.6);font-size:11px;color:#e8e8e8;display:flex;align-items:center;gap:5px;
}
.rg-online i{width:6px;height:6px;border-radius:50%;background:var(--rg-green);display:inline-block;
  box-shadow:0 0 0 3px rgba(53,199,89,.22)}

.rg-fav{
  position:absolute;top:6px;right:6px;width:26px;height:26px;border:0;border-radius:50%;
  background:rgba(0,0,0,.45);color:#fff;cursor:pointer;padding:0;
  display:flex;align-items:center;justify-content:center;transition:.16s;
}
.rg-fav .mi{width:14px;height:14px}
.rg-fav:hover{background:var(--rg-red)}
.rg-fav.on{background:var(--rg-red);color:#fff}

.rg-ribbon{
  position:absolute;top:6px;left:0;padding:2px 9px;font-size:10px;font-weight:500;letter-spacing:.5px;
  background:var(--rg-red);color:#fff;border-radius:0 4px 4px 0;
}
.rg-ribbon.new{background:#1f9d4d}
.rg-ribbon.live{background:#7b2fb5}

.rg-game-name{
  font-size:13px;color:#e8e8e8;text-align:center;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rg-empty{text-align:center;color:var(--rg-muted-2);padding:30px 0;font-size:14px}

/* ================= live casino rooms ================= */
.rg-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:13px}
.rg-room{background:var(--rg-panel-2);border:1px solid var(--rg-line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column}
.rg-room-top{position:relative;display:block;aspect-ratio:8/5;overflow:hidden}
.rg-room-top img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.rg-room:hover .rg-room-top img{transform:scale(1.04)}
.rg-room-live{position:absolute;top:8px;left:8px;display:flex;align-items:center;gap:5px;
  padding:2px 9px;border-radius:99px;background:var(--rg-red);font-size:10.5px;font-weight:500;letter-spacing:.5px}
.rg-room-live i{width:6px;height:6px;border-radius:50%;background:#fff;animation:rgpulse 1.6s infinite}
@keyframes rgpulse{0%,100%{opacity:1}50%{opacity:.25}}
.rg-room-players{position:absolute;top:8px;right:8px;padding:2px 9px;border-radius:99px;
  background:rgba(0,0,0,.55);font-size:10.5px;color:#e8e8e8}
.rg-room-meta{position:absolute;left:0;right:0;bottom:0;padding:18px 11px 9px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.82));display:flex;flex-direction:column;gap:1px}
.rg-room-meta strong{font-size:14px;font-weight:500}
.rg-room-meta small{font-size:11px;color:#c9c9c9}

.rg-road-wrap{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:9px;background:#2e2e2e}
.rg-road{display:grid;gap:2px;background:#f4f5f7;border-radius:5px;padding:3px;
  grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);
  grid-auto-flow:column;aspect-ratio:calc(var(--cols) / var(--rows) * 1.02)}
.rg-bd{display:flex;align-items:center;justify-content:center;border-radius:50%;
  font-size:8px;font-weight:600;color:#fff;aspect-ratio:1}
.rg-bd.rg-b{background:#d93b45}
.rg-bd.rg-p{background:#2a6fd6}
.rg-bd.rg-t{background:#1f9d4d}
.rg-bg-cell{position:relative;border-radius:50%;aspect-ratio:1;border:2px solid transparent}
.rg-bg-cell.rg-b{border-color:#d93b45}
.rg-bg-cell.rg-p{border-color:#2a6fd6}
.rg-tie{position:absolute;inset:-2px;display:block;
  background:linear-gradient(45deg,transparent 44%,#1f9d4d 44%,#1f9d4d 56%,transparent 56%)}

.rg-road-tally{display:flex;gap:7px;padding:7px 9px;background:#2e2e2e;border-top:1px solid #3a3a3a}
.rg-road-tally span{flex:1;text-align:center;padding:3px 0;border-radius:4px;font-size:11px;color:#fff}
.rg-road-tally b{font-weight:600}
.rg-t-b{background:rgba(217,59,69,.24)}
.rg-t-p{background:rgba(42,111,214,.24)}
.rg-t-t{background:rgba(31,157,77,.24)}

.rg-room-foot{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 11px}
.rg-room-foot span{font-size:11.5px;color:var(--rg-muted-2)}
.rg-room-foot .btn{padding:6px 15px;font-size:12.5px}

/* ================= lottery markets ================= */
.rg-lottos{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.rg-lotto{display:flex;align-items:center;gap:11px;padding:10px 12px;
  background:var(--rg-panel-2);border:1px solid var(--rg-line);border-radius:var(--radius);transition:.18s}
.rg-lotto:hover{border-color:var(--rg-gold);transform:translateY(-2px)}
.rg-lotto-flag{width:34px;height:24px;border-radius:4px;object-fit:cover;flex-shrink:0;
  box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.rg-lotto-body{flex:1;min-width:0;display:flex;flex-direction:column}
.rg-lotto-body strong{font-size:13.5px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rg-lotto-body small{font-size:11px;color:var(--rg-muted-2)}
.rg-lotto-last{font-size:13px;font-weight:500;color:var(--rg-gold);letter-spacing:.5px;flex-shrink:0}
.rg-lotto-go{padding:4px 12px;border-radius:99px;background:var(--rg-red);font-size:11.5px;flex-shrink:0}

/* ================= lottery results ================= */
.rg-result-date{font-size:12.5px;color:var(--rg-muted)}
.rg-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.rg-prize{background:var(--rg-panel-2);border:1px solid var(--rg-line);border-radius:var(--radius);
  padding:12px;text-align:center;display:flex;flex-direction:column;gap:7px}
.rg-prize .k{font-size:12px;color:var(--rg-muted-2)}
.rg-prize .v{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;
  font-size:21px;font-weight:600;color:#fff;letter-spacing:2px}
.rg-prize .v i{font-style:normal;background:rgba(0,0,0,.28);border-radius:5px;padding:1px 9px}
.rg-prize-first{grid-column:span 2;border-color:var(--rg-gold);background:linear-gradient(180deg,rgba(230,182,61,.14),transparent)}
.rg-prize-first .v{font-size:34px;color:var(--rg-gold);letter-spacing:5px}

.rg-result-table{width:100%;border-collapse:collapse;font-size:13px;display:block;overflow-x:auto;white-space:nowrap}
.rg-result-table th{background:var(--rg-panel-2);color:var(--rg-muted);font-weight:400;
  padding:8px 11px;text-align:left;font-size:12px;border-bottom:1px solid var(--rg-line)}
.rg-result-table td{padding:9px 11px;border-bottom:1px solid rgba(0,0,0,.18);color:#dcdcdc}
.rg-result-table td.num{color:var(--rg-gold);font-weight:500;letter-spacing:1px}
.rg-result-table tr:last-child td{border-bottom:0}
.rg-result-src{margin:12px 0 0;font-size:11.5px;color:var(--rg-muted-2);text-align:center}

/* ================= stat strip ================= */
.rg-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:16px}
.rg-stat{
  background:var(--rg-panel);border-radius:var(--radius);padding:12px 15px;
  display:flex;flex-direction:column;gap:2px;border-left:3px solid var(--rg-gold);
}
.rg-stat .k{font-size:11.5px;color:var(--rg-muted-2)}
.rg-stat .v{font-size:16px;font-weight:500;color:#fff}

.rg-cta-row{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.rg-cta-row .btn{flex:1;min-width:170px}

/* ================= search ================= */
.rg-search{
  display:flex;align-items:center;gap:8px;background:var(--rg-panel-2);
  border:1px solid var(--rg-line);border-radius:var(--radius);padding:0 12px;height:38px;min-width:190px;
}
.rg-search input{flex:1;min-width:0;background:none;border:0;outline:none;color:#fff;
  font-family:inherit;font-size:13.5px;font-weight:300}
.rg-search input::placeholder{color:var(--rg-muted-2)}
.rg-search .mi{color:var(--rg-muted-2);flex-shrink:0}

/* ==================================================================
   Shared components (articles, post, FAQ) in this template's skin
   ================================================================== */
.page{padding:0}
.section{margin:0 0 16px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;flex-wrap:wrap}
.section-head h1,.section-head h2{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:500}
.section-head h1::before,.section-head h2::before{content:"";width:4px;height:19px;border-radius:2px;background:var(--rg-gold)}
.section-head .more{font-size:13px;color:var(--rg-gold)}
.section-desc{color:var(--rg-muted);font-size:14px;margin:0 0 14px}
.empty{text-align:center;color:var(--rg-muted-2);padding:40px 0}

.article-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.acard{background:var(--rg-panel);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;
  transition:transform .2s}
.acard:hover{transform:translateY(-3px)}
.acard-img{position:relative;display:block;aspect-ratio:16/9;background:var(--rg-panel-2);overflow:hidden}
.acard-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.acard:hover .acard-img img{transform:scale(1.05)}
.acard-cat{position:absolute;left:9px;bottom:9px;padding:2px 10px;border-radius:99px;
  background:var(--rg-red);font-size:11px}
.acard-body{padding:12px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.acard-body time{font-size:11.5px;color:var(--rg-muted-2)}
.acard-body h2,.acard-body h3{font-size:15px;font-weight:400;line-height:1.5}
.acard-body h2 a:hover,.acard-body h3 a:hover{color:var(--rg-gold)}
.acard-body p{margin:0;font-size:13px;color:var(--rg-muted);line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.chiprow{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
.chip{padding:5px 14px;border-radius:var(--radius);font-size:13px;font-weight:300;
  background:var(--rg-panel-2);border:1px solid var(--rg-line);color:var(--rg-muted)}
.chip:hover{color:#fff;border-color:var(--rg-gold)}
.chip.active{background:linear-gradient(180deg,var(--rg-gold-2),var(--rg-gold));border-color:transparent;
  color:var(--rg-ink);font-weight:500}

.crumbs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12.5px;color:var(--rg-muted-2);padding:0 0 12px}
.crumbs a:hover{color:var(--rg-gold)}
.crumbs .cur{color:var(--rg-muted);max-width:min(100%,400px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.pager{display:flex;justify-content:center;gap:6px;margin-top:24px;flex-wrap:wrap}
.pager a{min-width:36px;height:36px;padding:0 12px;border-radius:var(--radius);
  background:var(--rg-panel-2);border:1px solid var(--rg-line);color:var(--rg-muted);
  display:flex;align-items:center;justify-content:center;font-size:13px}
.pager a:hover{color:#fff;border-color:var(--rg-gold)}
.pager a.active{background:linear-gradient(180deg,var(--rg-gold-2),var(--rg-gold));border-color:transparent;color:var(--rg-ink)}

.post{background:var(--rg-panel);border-radius:var(--radius);padding:22px;margin-bottom:16px}
.post-head h1{font-size:25px;line-height:1.45;margin:10px 0 11px;font-weight:500}
.post-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12.5px;color:var(--rg-muted-2)}
.dotsep{width:3px;height:3px;border-radius:50%;background:var(--rg-muted-2);display:inline-block}
.post-cover{margin:0 0 18px;border-radius:var(--radius);overflow:hidden;background:var(--rg-panel-2)}
.post-cover img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-lead{font-size:15px;color:#e0e0e0;line-height:1.85;margin:0 0 20px;padding:13px 15px;
  border-left:3px solid var(--rg-gold);border-radius:0 var(--radius) var(--radius) 0;background:rgba(230,182,61,.09)}

.post-body{font-size:15.5px;line-height:1.95;color:#e6e6e6}
.post-body h2{font-size:20px;margin:28px 0 12px;display:flex;align-items:center;gap:9px;font-weight:500}
.post-body h2::before{content:"";width:4px;height:20px;border-radius:2px;background:var(--rg-gold);flex-shrink:0}
.post-body h3{font-size:17.5px;margin:22px 0 9px;color:#fff;font-weight:500}
.post-body p{margin:0 0 14px}
.post-body a{color:var(--rg-gold);text-decoration:underline;text-underline-offset:3px}
.post-body ul,.post-body ol{margin:0 0 15px;padding-left:22px}
.post-body li{margin-bottom:7px}
.post-body strong{font-weight:500;color:#fff}
.post-body img{border-radius:var(--radius);margin:16px 0}
.post-body blockquote{margin:18px 0;padding:13px 17px;border-left:3px solid var(--rg-red);
  background:rgba(0,0,0,.2);border-radius:0 var(--radius) var(--radius) 0;color:#d4d4d4;font-size:14.5px}
.post-body table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px;display:block;overflow-x:auto}
.post-body th,.post-body td{border:1px solid var(--rg-line);padding:9px 12px;text-align:left}
.post-body th{background:var(--rg-panel-2);font-weight:500}
.post-body code{background:rgba(0,0,0,.3);padding:2px 6px;border-radius:4px;font-size:13.5px}
.post-body hr{border:0;border-top:1px solid var(--rg-line);margin:24px 0}

.post-cta{margin-top:24px;padding:17px 20px;border-radius:var(--radius);
  background:linear-gradient(120deg,rgba(236,19,19,.3),rgba(230,182,61,.12));
  border:1px solid rgba(230,182,61,.3);
  display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.post-cta div{display:flex;flex-direction:column}
.post-cta strong{font-size:16.5px;font-weight:500}
.post-cta span{font-size:13px;color:var(--rg-muted)}

.about{background:var(--rg-panel);border-radius:var(--radius);padding:20px;margin-bottom:16px}
.about h2{font-size:17px;margin-bottom:9px;font-weight:500}
.about p{margin:0;color:var(--rg-muted);font-size:14.5px;line-height:1.9}

.faq-list{display:flex;flex-direction:column;gap:9px}
.faq-item{background:var(--rg-panel-2);border:1px solid var(--rg-line);border-radius:var(--radius);overflow:hidden}
.faq-item[open]{border-color:var(--rg-gold)}
.faq-item summary{cursor:pointer;padding:13px 44px 13px 16px;font-size:14.5px;position:relative;list-style:none;color:#fff}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);
  font-size:20px;font-weight:300;color:var(--rg-gold)}
.faq-item[open] summary::after{content:"−"}
.faq-item summary:hover{background:rgba(255,255,255,.04)}
.faq-a{padding:13px 16px 15px;color:var(--rg-muted);font-size:14px;line-height:1.85;border-top:1px solid var(--rg-line)}

.notfound{text-align:center;padding:70px 14px 90px}
.nf-code{font-size:88px;font-weight:700;line-height:1;color:var(--rg-gold)}
.notfound h1{font-size:22px;margin:12px 0 8px;font-weight:500}
.notfound p{color:var(--rg-muted);margin:0 0 24px}
.nf-actions{display:flex;gap:11px;justify-content:center;flex-wrap:wrap;max-width:400px;margin:0 auto}

/* ================= footer ================= */
.rg-footer{background:var(--rg-bar);margin-top:8px;padding:30px 0 24px;border-top:3px solid var(--rg-red)}
.rg-foot-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:24px;margin-bottom:24px}
.rg-foot-col h4{font-size:14.5px;margin-bottom:11px;color:var(--rg-gold);font-weight:500}
.rg-foot-col ul{list-style:none;margin:0;padding:0}
.rg-foot-col li{font-size:13px;color:var(--rg-muted);padding:4px 0}
.rg-foot-col li a:hover{color:var(--rg-gold)}

.rg-foot-about{text-align:center;max-width:740px;margin:0 auto 24px}
.rg-foot-about img{height:40px;margin:0 auto 12px;object-fit:contain}
.rg-foot-about p{color:var(--rg-muted);font-size:13.5px;line-height:1.85;margin:0}

.rg-badges{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;padding:18px 0;
  border-top:1px solid var(--rg-line);border-bottom:1px solid var(--rg-line);margin-bottom:18px}
.rg-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 14px;border-radius:99px;
  font-size:12.5px;color:#e0e0e0;background:var(--rg-panel-2);border:1px solid var(--rg-line)}
.rg-badge .mi{color:var(--rg-gold)}

.rg-foot-note{text-align:center}
.rg-age{font-size:12px;color:var(--rg-gold);margin:0 0 7px}
.rg-copy{font-size:12px;color:var(--rg-muted-2);margin:0}

/* ================= icons ================= */
.mi{
  display:inline-block;width:18px;height:18px;flex-shrink:0;background-color:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;vertical-align:-3px;
}
.mi-home{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3 2 11h3v10h6v-6h2v6h6V11h3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3 2 11h3v10h6v-6h2v6h6V11h3z'/%3E%3C/svg%3E")}
.mi-gift{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 10h18v11H3zm-1-5h20v4H2zm9 0c-3 0-5-1-5-2.5S8 1 11 5zm2 0c3 0 5-1 5-2.5S16 1 13 5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 10h18v11H3zm-1-5h20v4H2zm9 0c-3 0-5-1-5-2.5S8 1 11 5zm2 0c3 0 5-1 5-2.5S16 1 13 5z'/%3E%3C/svg%3E")}
.mi-doc{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M6 2h8l4 4v16H6z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M6 2h8l4 4v16H6z'/%3E%3C/svg%3E")}
.mi-chat{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 4h18v13H8l-5 4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 4h18v13H8l-5 4z'/%3E%3C/svg%3E")}
.mi-wallet{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 6h15a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H3zm14 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3 3h13v2H3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 6h15a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H3zm14 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3 3h13v2H3z'/%3E%3C/svg%3E")}
.mi-search{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5' stroke-linecap='round'/%3E%3C/svg%3E")}
.mi-heart{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21c-1-6-9-8-9-13a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 5-8 7-9 13z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21c-1-6-9-8-9-13a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 5-8 7-9 13z'/%3E%3C/svg%3E")}
.mi-megaphone{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 10v4h3l6 4V6L6 10zm14.5 2c0-1.8-1-3.3-2.5-4v8c1.5-.7 2.5-2.2 2.5-4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 10v4h3l6 4V6L6 10zm14.5 2c0-1.8-1-3.3-2.5-4v8c1.5-.7 2.5-2.2 2.5-4z'/%3E%3C/svg%3E")}
.mi-shield{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z'/%3E%3C/svg%3E")}
.mi-bolt{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E")}
.mi-clock{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.2l3.4 2' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.2l3.4 2' stroke-linecap='round'/%3E%3C/svg%3E")}
.mi-check{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5.5 5.5L20 6.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5.5 5.5L20 6.5'/%3E%3C/svg%3E")}
.mi-user{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E")}
.mi-eye{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 5C6.5 5 2.3 9 1 12c1.3 3 5.5 7 11 7s9.7-4 11-7c-1.3-3-5.5-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 5C6.5 5 2.3 9 1 12c1.3 3 5.5 7 11 7s9.7-4 11-7c-1.3-3-5.5-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E")}

/* ================= responsive ================= */
@media (max-width:1024px){
  :root{--side:200px}
  .rg-games{grid-template-columns:repeat(auto-fill,minmax(152px,1fr))}
}

@media (max-width:860px){
  .rg-burger{display:flex}
  .rg-shell{display:block;padding:12px}
  .rg-side{
    position:fixed;left:0;top:0;bottom:0;width:265px;max-width:82vw;z-index:70;
    border-radius:0;transform:translateX(-102%);transition:transform .26s ease;overflow-y:auto;
  }
  .rg-side.open{transform:translateX(0)}
  .rg-side-close{
    display:flex;align-items:center;justify-content:center;
    position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:50%;
    background:rgba(0,0,0,.35);color:#fff;font-size:20px;line-height:1;cursor:pointer;
  }
  .rg-top-inner{height:62px}
  .rg-brand img{height:36px}
  .rg-brand-text{font-size:21px}
  .rg-nav-inner{height:50px}
  .rg-nav-item{padding:0 12px;font-size:13px}
}

@media (max-width:640px){
  body{font-size:14.5px}
  .rg-games{grid-template-columns:repeat(2,1fr);gap:10px}
  .rg-rooms{grid-template-columns:1fr}
  .rg-lottos{grid-template-columns:1fr}
  .rg-result-grid{grid-template-columns:1fr 1fr}
  .rg-prize-first{grid-column:span 2}
  .rg-prize .v{font-size:18px;letter-spacing:1px}
  .rg-prize-first .v{font-size:28px;letter-spacing:3px}
  .article-grid{grid-template-columns:1fr}
  .rg-block{padding:11px}
  .rg-stats{grid-template-columns:repeat(2,1fr)}
  .rg-cta-row .btn{min-width:100%}
  .post{padding:16px 14px}
  .post-head h1{font-size:20px}
  .post-cta{flex-direction:column;align-items:stretch;text-align:center}
  .post-cta .btn{width:100%}
  .btn{padding:8px 13px;font-size:13px}
  .rg-lang{display:none}
  .nf-code{font-size:64px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  html{scroll-behavior:auto}
}

/* ==================================================================
   AEO blocks (direct answer, key facts, author)
   ================================================================== */
.aeo-answer{
  margin:0 0 18px;padding:15px 17px;border-radius:var(--radius);
  background:linear-gradient(120deg,rgba(230,182,61,.16),rgba(230,182,61,.04));
  border:1px solid rgba(230,182,61,.36);border-left:4px solid var(--rg-gold);
}
.aeo-answer-label{
  display:inline-block;margin-bottom:7px;padding:2px 10px;border-radius:var(--radius);
  background:linear-gradient(180deg,var(--rg-gold-2),var(--rg-gold));
  color:var(--rg-ink);font-size:11.5px;font-weight:500;letter-spacing:.3px;
}
.aeo-answer p{margin:0;font-size:16px;line-height:1.9;color:#f2ead5}

.aeo-facts{margin:0 0 20px;border:1px solid var(--rg-line);border-radius:var(--radius);overflow:hidden}
.aeo-facts-label{
  display:block;padding:9px 15px;background:var(--rg-panel-2);
  font-size:12.5px;color:var(--rg-gold);border-bottom:1px solid var(--rg-line);
}
.aeo-facts dl{margin:0}
.aeo-facts dl > div{display:flex;gap:14px;padding:10px 15px;border-bottom:1px solid rgba(0,0,0,.2)}
.aeo-facts dl > div:last-child{border-bottom:0}
.aeo-facts dt{flex:0 0 38%;font-size:13.5px;color:var(--rg-muted-2);margin:0}
.aeo-facts dd{flex:1;margin:0;font-size:14px;color:#fff}

.aeo-author{
  display:flex;gap:14px;align-items:flex-start;margin-top:24px;padding:16px;
  border-radius:var(--radius);background:var(--rg-panel-2);border:1px solid var(--rg-line);
}
.aeo-author img,.aeo-author-initial{
  width:54px;height:54px;border-radius:50%;flex-shrink:0;object-fit:cover;
  background:linear-gradient(140deg,var(--rg-red),var(--rg-gold));
  display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:600;color:#fff;
}
.aeo-author strong{display:block;font-size:15px;font-weight:500}
.aeo-author small{display:block;font-size:12.5px;color:var(--rg-gold);margin-bottom:6px}
.aeo-author p{margin:0;font-size:13.5px;color:var(--rg-muted);line-height:1.8}
.aeo-author-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.aeo-author-tags span{
  padding:2px 10px;border-radius:99px;background:var(--rg-panel);
  border:1px solid var(--rg-line);font-size:11.5px;color:var(--rg-muted);
}
@media (max-width:560px){
  .aeo-facts dl > div{flex-direction:column;gap:2px}
  .aeo-facts dt{flex:none}
  .aeo-author{flex-direction:column}
}
.aeo-author-by{display:block;font-size:11px;letter-spacing:.4px;opacity:.65;margin-bottom:1px}
.aeo-author.is-site img{object-fit:contain;background:rgba(255,255,255,.06);padding:7px}
.aeo-home .aeo-answer{margin-bottom:13px}
.aeo-home .aeo-facts{margin-bottom:0;border-color:var(--rg-line)}
