
:root{--page:#eef2f5;--panel:#fff;--ink:#111827;--muted:#6b7280;--line:#e6e9ee;--red:#ff2e3f;--yellow:#ffcb2f;--navy:#102f4f;--green:#16a46a;--orange:#ff8a2a;--content:760px;--rail:280px}
*{box-sizing:border-box}html,body{margin:0;background:var(--page);color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}
.site-shell{width:min(calc(var(--rail) + var(--content) + 24px),1080px);margin:0 auto;display:grid;grid-template-columns:var(--rail) minmax(0,var(--content));gap:24px;align-items:start}
.desktop-rail{position:sticky;top:18px;margin-top:18px;display:flex;flex-direction:column;gap:12px}
.rail-card,.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 18px rgba(18,38,63,.035)}.rail-card{padding:18px}
.rail-brand{display:flex;gap:11px;align-items:center}.rail-brand img{width:44px;height:44px;border-radius:14px;object-fit:cover}.rail-brand strong{display:block;font-size:17px}.rail-brand span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.rail-login{background:linear-gradient(160deg,#102e4d,#0a1f35);color:#fff}.rail-login h3{margin:0 0 8px;font-size:18px}.rail-login p{font-size:12px;line-height:1.6;color:#dbe6ef;margin:0 0 14px}.rail-login button{width:100%;border:0;border-radius:12px;padding:12px;font-weight:800;background:#fff;color:#102e4d}
.rail-mini{display:grid;gap:10px}.rail-mini a{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;font-size:13px}.rail-promo{background:#fff4e8}.rail-promo b{display:block;font-size:15px}.rail-promo p{font-size:12px;color:#7a5a3a;line-height:1.55}
.app{max-width:var(--content);min-height:100vh;background:#f7f8fa;border-left:1px solid #e5e8ec;border-right:1px solid #e5e8ec;position:relative;overflow:hidden}
.header{height:62px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #eef0f3;position:sticky;top:0;z-index:20}
.brand{display:flex;gap:10px;align-items:center}.brand img{width:38px;height:38px;border-radius:12px;object-fit:cover}.brand strong{font-size:17px;display:block}.brand span{font-size:9px;color:#667085;display:block}.header-actions{display:flex;gap:12px;align-items:center}.icon-btn{border:0;background:transparent;font-size:20px;padding:4px}
.content{padding:18px 14px 120px}.page-title{margin:2px 0 16px}.page-title h1{font-size:24px;margin:0 0 5px}.page-title p{font-size:12px;color:var(--muted);margin:0;line-height:1.55}
.category-bar{display:flex;gap:8px;overflow:auto;padding-bottom:10px;scrollbar-width:none}.category-bar::-webkit-scrollbar{display:none}.chip{border:1px solid #dfe3e8;background:#fff;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:800;white-space:nowrap;color:#4b5563}.chip.on{background:#152d46;color:#fff;border-color:#152d46}.chip.more{border-style:dashed}
.list-toolbar{display:flex;justify-content:space-between;align-items:center;margin:4px 0 10px}.list-toolbar .meta{font-size:11px;color:#6b7280}.sort{border:1px solid #dfe3e8;border-radius:10px;background:#fff;padding:8px 10px;font-size:11px}
.machine-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.machine-card{padding:14px;position:relative;min-height:245px;display:flex;flex-direction:column}.rank-badge{position:absolute;left:12px;top:12px;background:var(--orange);color:#fff;border-radius:8px;padding:4px 7px;font-size:10px;font-weight:900}
.machine-ico{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;margin:8px auto 10px;font-size:34px;background:#fff1d9}.machine-card h3{text-align:center;font-size:15px;margin:0 0 4px}.machine-card .copy{text-align:center;font-size:10px;color:#69717c;line-height:1.5;min-height:31px}
.tags{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin:8px 0}.tag{background:#f1f4f7;border-radius:999px;padding:4px 7px;font-size:9px;color:#54606d}
.performance{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f3;padding-top:10px;margin-top:auto}.performance span{font-size:10px;color:#6b7280}.performance strong{font-size:14px;color:#e11d34}
.machine-footer{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.price{display:grid;place-items:center;background:#fff3d7;color:#cf2b30;border-radius:10px;font-weight:900;font-size:11px;min-height:38px}.pick-btn{border:0;border-radius:10px;background:var(--red);color:#fff;font-weight:900;font-size:11px;padding:11px 8px}.detail-link{display:block;text-align:center;font-size:11px;color:#344054;margin-top:7px;border:1px solid #dfe3e8;border-radius:10px;padding:10px;font-weight:800;background:#fff}
.machine-hero{background:linear-gradient(135deg,#132f4d,#0d2339);color:#fff;border-radius:22px;padding:22px 20px;position:relative;overflow:hidden}.machine-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.05);right:-70px;top:-70px}
.hero-top{display:flex;justify-content:space-between;gap:12px;align-items:start;position:relative;z-index:2}.hero-rank{display:inline-block;background:#ff8a2a;padding:5px 8px;border-radius:8px;font-size:10px;font-weight:900;margin-bottom:10px}.machine-hero h1{font-size:28px;margin:0 0 7px}.machine-hero p{font-size:12px;color:#dbe6ef;line-height:1.65;margin:0;max-width:470px}.hero-icon{font-size:58px}
.hero-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px;position:relative;z-index:2}.hero-tags span{font-size:10px;background:rgba(255,255,255,.1);padding:6px 9px;border-radius:999px}.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;position:relative;z-index:2}.hero-stat{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:11px}.hero-stat label{display:block;font-size:9px;color:#b9c9d8;margin-bottom:5px}.hero-stat strong{font-size:17px}.hero-stat .up{color:#ffd05b}
.section{margin-top:18px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:9px}.section-head h2{font-size:17px;margin:0}.section-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.section-head a{font-size:10px;color:#667085}
.story-card{padding:17px;font-size:13px;line-height:1.75}.story-card strong{display:block;font-size:15px;margin-bottom:6px}.recommend{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.rec{padding:13px;font-size:11px;line-height:1.55}.rec b{display:block;margin-bottom:4px}
.tabs{display:flex;gap:7px;overflow:auto;padding-bottom:4px}.tab{border:1px solid #dfe3e8;background:#fff;padding:9px 12px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.tab.on{background:#152d46;color:#fff;border-color:#152d46}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.metric-card{padding:13px}.metric-card label{font-size:9px;color:#6b7280;display:block;margin-bottom:5px}.metric-card strong{font-size:17px}.metric-card small{display:block;font-size:9px;color:#7c8590;margin-top:5px}
.compare-card{padding:16px}.compare-row{display:grid;grid-template-columns:90px 1fr 58px;gap:8px;align-items:center;margin:9px 0;font-size:10px}.bar{height:7px;background:#edf0f3;border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;background:#ff7580}.compare-row.random .bar i{background:#8ca0b5}
.history-card{padding:14px}.history-row{display:grid;grid-template-columns:72px 70px 1fr 66px;gap:7px;align-items:center;padding:10px 0;border-bottom:1px solid #eef0f3;font-size:10px}.history-row:last-child{border-bottom:0}.history-type{font-size:9px;padding:4px 6px;border-radius:999px;background:#f1f4f7;text-align:center}.history-type.live{background:#e8f8f0;color:#0a7b4d}.history-score{font-weight:800;text-align:right}.more-history{width:100%;margin-top:10px;border:1px solid #dfe3e8;background:#fff;border-radius:11px;padding:11px;font-size:11px;font-weight:800}
.indicator-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.indicator{padding:13px}.indicator b{display:block;font-size:12px;margin-bottom:5px}.indicator span{font-size:9px;color:#707987;line-height:1.45}
.community-gate{padding:16px;text-align:center;color:#667085;font-size:11px;line-height:1.6}.community-gate strong{display:block;color:#202938;font-size:13px;margin-bottom:5px}.related{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.related .card{padding:11px;text-align:center}.related .ico{font-size:25px}.related b{display:block;font-size:10px;margin-top:5px}.related span{font-size:9px;color:#777}
.gnb{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--content),100vw);height:70px;background:rgba(255,255,255,.97);border-top:1px solid #e2e6eb;display:grid;grid-template-columns:repeat(5,1fr);backdrop-filter:blur(12px)}.gnb a{display:grid;place-items:center;align-content:center;gap:3px;font-size:9px;color:#536171}.gnb .on{color:var(--red);font-weight:900}.gnb i{font-style:normal;font-size:20px}
.sticky-buy{position:fixed;z-index:29;left:50%;bottom:70px;transform:translateX(-50%);width:min(var(--content),100vw);background:rgba(255,255,255,.98);border-top:1px solid #e2e6eb;padding:10px 14px;display:grid;grid-template-columns:120px 1fr;gap:8px}.sticky-buy .buy-price{background:#fff4db;border-radius:12px;display:grid;place-items:center;color:#c52d35;font-weight:900}.sticky-buy button{border:0;border-radius:12px;background:var(--red);color:#fff;font-weight:900}
.modal-backdrop{position:fixed;inset:0;background:rgba(6,18,30,.46);display:none;align-items:center;justify-content:center;padding:18px;z-index:100}.modal-backdrop.show{display:flex}.modal{width:min(430px,100%);background:#fff;border-radius:20px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.modal h3{margin:0 0 6px;font-size:19px}.modal .sub{font-size:11px;color:#6b7280;line-height:1.55;margin-bottom:14px}
.setting-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid #eef0f3}.setting-row label{font-size:11px;color:#6b7280}.stepper{display:flex;align-items:center;gap:8px}.stepper button{width:30px;height:30px;border-radius:9px;border:1px solid #dfe3e8;background:#fff;font-weight:900}.stepper strong{min-width:26px;text-align:center}
.total{background:#f8f9fa;border-radius:12px;padding:12px;margin:10px 0 12px;display:flex;justify-content:space-between}.total span{font-size:11px;color:#6b7280}.total strong{font-size:15px}.modal-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.modal-actions button{border:0;border-radius:11px;padding:12px;font-weight:900}.cancel{background:#f0f2f5}.confirm{background:var(--red);color:#fff}.success-box{text-align:center;padding:8px 0}.success-icon{width:54px;height:54px;border-radius:50%;background:#e8f8f0;color:#0a7b4d;display:grid;place-items:center;font-size:26px;margin:0 auto 10px}.success-box p{font-size:12px;color:#667085;line-height:1.6}
.category-modal .category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.category-item{border:1px solid #dfe3e8;background:#fff;border-radius:12px;padding:12px 8px;font-size:11px;font-weight:800}.category-item.on{background:#152d46;color:#fff;border-color:#152d46}
@media(min-width:1081px){.gnb,.sticky-buy{transform:translateX(calc(-50% + (var(--rail) + 24px)/2));width:var(--content)}}
@media(max-width:1080px){.site-shell{display:block;width:auto}.desktop-rail{display:none}.app{margin:0 auto}}
@media(max-width:560px){.app{border:0}.content{padding-left:10px;padding-right:10px}.machine-list{grid-template-columns:1fr 1fr;gap:8px}.machine-card{padding:12px 9px}.machine-ico{width:58px;height:58px}.machine-card h3{font-size:13px}.machine-footer{grid-template-columns:68px 1fr}.machine-hero{padding:20px 16px}.machine-hero h1{font-size:25px}.hero-icon{font-size:48px}}

.machine-group-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 12px}
.machine-group-tab{border:1px solid #dfe3e8;background:#fff;border-radius:12px;padding:12px;font-size:12px;font-weight:900;color:#475467}
.machine-group-tab.on{background:#152d46;color:#fff;border-color:#152d46}
.machine-group-panel{display:none}
.machine-group-panel.on{display:block}
.candidate-note{padding:14px 15px;margin-bottom:10px;font-size:12px;line-height:1.65;color:#5d6672;background:#fffaf0;border:1px solid #f3dfad;border-radius:14px}
.machine-card .copy{font-size:11px!important;line-height:1.6!important}
.page-title p,.section-head p,.machine-hero p,.story-card,.rec,.indicator span,.community-gate{font-size:12px}
.section-head p{line-height:1.55}
.machine-hero p{font-size:13px;line-height:1.7}
.story-card{font-size:13px}
.rec{font-size:12px}
.indicator span{font-size:10.5px;line-height:1.55}
.random-highlight{border:2px solid #ffc85a!important;background:linear-gradient(180deg,#fffdf6,#fff)!important;box-shadow:0 8px 24px rgba(245,170,45,.12)}
.random-badge{display:inline-block;background:#fff0c7;color:#9a6410;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;margin-bottom:8px}
.hero-cta{margin-top:16px;display:grid;grid-template-columns:110px 1fr;gap:8px;position:relative;z-index:2}
.hero-cta .hero-price{display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:12px;font-weight:900}
.hero-cta button{border:0;border-radius:12px;background:var(--red);color:#fff;font-weight:900;padding:13px}
.comment-box{padding:16px}
.comment-compose textarea{width:100%;min-height:84px;border:1px solid #dfe3e8;border-radius:12px;padding:12px;resize:vertical;font-size:12px}
.comment-compose .compose-actions{display:flex;justify-content:flex-end;margin-top:8px}
.comment-compose button{border:0;background:var(--red);color:#fff;border-radius:10px;padding:10px 14px;font-weight:900}
.comment-list{margin-top:16px;border-top:1px solid #eef0f3}
.comment-item{padding:14px 0;border-bottom:1px solid #eef0f3}
.comment-item:last-child{border-bottom:0}
.comment-meta{display:flex;gap:8px;align-items:center;font-size:10px;color:#7b8490;margin-bottom:7px}
.comment-badge{background:#e8f8f0;color:#0a7b4d;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900}
.comment-text{font-size:12px;line-height:1.7;color:#344054}
.comment-actions{display:flex;gap:12px;margin-top:8px;font-size:10px;color:#667085}
.sticky-buy{display:none!important}

.mywrap h1{font-size:28px;margin:0}.lead{font-size:12px;color:#6b7280;margin:5px 0 14px}
.challenge{padding:18px;background:linear-gradient(135deg,#fff6cf,#fff);border-color:#f0db8c}.challenge b{font-size:16px}.challenge p{font-size:12px;line-height:1.65;color:#6c5a2c;margin:6px 0 0}
.myprog{padding:17px;margin-top:10px}.ptop{display:flex;justify-content:space-between}.ptop strong{font-size:28px}.pbar{height:8px;background:#edf0f3;border-radius:99px;overflow:hidden;margin-top:10px}.pbar i{display:block;width:32%;height:100%;background:#16a46a}
.sum,.adds{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.sum .card,.adds .card{padding:12px}.sum label{display:block;font-size:9px;color:#6b7280}.sum strong{font-size:15px}.adds .card{text-align:center}.adds i{font-style:normal;font-size:25px}.adds b{display:block;font-size:11px;margin-top:5px}.adds span{font-size:9px;color:#6b7280}
.mix{padding:15px}.mixrow{display:grid;grid-template-columns:1fr 48px;gap:8px;margin:9px 0;font-size:11px}.mixbar{height:6px;background:#edf0f3;border-radius:99px;overflow:hidden;margin-top:5px}.mixbar i{display:block;height:100%;background:#ff8b94}
.filters{display:flex;gap:7px;overflow:auto}.flt{border:1px solid #dfe3e8;background:#fff;border-radius:99px;padding:8px 11px;font-size:10px;font-weight:800}.flt.on{background:#152d46;color:#fff}
.games{margin-top:9px}.game{display:grid;grid-template-columns:34px 1fr 110px 26px;gap:6px;align-items:center;padding:11px 9px;border-bottom:1px solid #eef0f3}.no{width:30px;height:30px;border-radius:10px;background:#f1f4f7;display:grid;place-items:center;font-size:10px;font-weight:900}.balls{display:flex;gap:5px}.ball{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:900}.y{background:#f9c637;color:#111}.b{background:#42a6e8}.r{background:#f35a60}.g{background:#8d99a6}.gr{background:#38b36a}.empty{background:#f7f8fa;color:#93a0ad;border:1px dashed #cfd6de}.src{text-align:right;font-size:10px;font-weight:800}.src small{display:block;font-size:8px;color:#6b7280;font-weight:400}.dots{border:0;background:transparent}.more{width:100%;margin-top:10px;padding:12px;border:1px solid #dfe3e8;background:#fff;border-radius:12px;font-weight:900}.tip{padding:14px;background:#fff8e8;border-color:#f1dfb3;font-size:11px;line-height:1.6}.hist{padding:14px;display:flex;justify-content:space-between;font-size:12px;font-weight:800}
.numgrid{display:grid;grid-template-columns:repeat(9,1fr);gap:7px}.num{aspect-ratio:1;border:1px solid #dfe3e8;background:#fff;border-radius:50%;font-size:10px;font-weight:800}.num.sel{background:#152d46;color:#fff}.selected{display:flex;gap:6px;min-height:38px;margin:12px 0}
@media(max-width:560px){.game{grid-template-columns:32px 1fr 82px 24px}.ball{width:25px;height:25px}.numgrid{gap:5px}}

.delete-warning{background:#fff4f4;border:1px solid #ffd2d6;border-radius:13px;padding:12px;margin:12px 0}
.delete-warning b{display:block;color:#b4232f;font-size:12px;margin-bottom:5px}
.delete-warning p{margin:0;font-size:10.5px;color:#7a4a50;line-height:1.6}
.delete-target{background:#f8f9fa;border-radius:12px;padding:12px;font-size:11px;margin-top:10px}
.delete-target strong{display:block;font-size:13px;margin-bottom:4px}
.danger{background:#d92d3e!important;color:#fff!important}

.compact-modal-bg{padding:14px}
.compact-manual-modal{
  width:360px!important;
  max-width:360px!important;
  min-width:360px;
  max-height:88vh;
  overflow:auto;
}
.manual-selected{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin:10px 0 12px;
  padding:8px 10px;
  border:1px solid #e6e9ee;
  border-radius:12px;
  background:#f8f9fa;
}
.manual-empty-text{font-size:10px;color:#98a2b3}
.manual-number-grid{
  display:grid;
  grid-template-columns:repeat(9,1fr);
  gap:6px;
}
.manual-num{
  aspect-ratio:1;
  border:1px solid #dfe3e8;
  border-radius:50%;
  background:#fff;
  font-size:10px;
  font-weight:800;
}
.manual-num.sel{
  background:#152d46;
  color:#fff;
  border-color:#152d46;
}
.manual-guide{
  margin-top:12px;
  padding:10px 11px;
  border-radius:10px;
  background:#fff8e8;
  color:#6f5a2d;
  font-size:10px;
  line-height:1.55;
}
@media(max-width:380px){
  .compact-manual-modal{
    width:calc(100vw - 20px)!important;
    min-width:0;
    max-width:360px!important;
  }
}

/* MY100 v3.2 readability + modal spacing */
#randomModal .modal{padding:22px 20px}
#randomModal .sub{margin-bottom:14px}
#randomModal .stepper{
  padding:8px 0 18px;
  justify-content:flex-start;
  gap:10px;
}
#randomModal .stepper strong{
  min-width:58px;
  font-size:16px;
}
#randomModal .modal-actions{
  margin-top:4px;
  gap:10px;
}
#randomModal .modal-actions button{
  min-height:48px;
  font-size:13px;
}
.mywrap .lead{font-size:13px}
.challenge b{font-size:18px}
.challenge p{font-size:13px}
.ptop strong{font-size:34px}
.ptop span{font-size:12px}
.sum label{font-size:10px}
.sum strong{font-size:18px}
.adds b{font-size:13px}
.adds span{font-size:10px}
.section-head h2{font-size:19px}
.section-head p{font-size:12px}
.mixrow{font-size:12px}
.game{min-height:54px}
.no{font-size:11px}
.ball{width:31px;height:31px;font-size:11px}
.src{font-size:11px}
.src small{font-size:9px}
.dots.delete-trigger{
  width:30px;height:30px;
  display:grid;place-items:center;
  border:1px solid #e4e7ec;
  border-radius:9px;
  background:#fff;
  color:#667085;
  font-size:14px;
}
.dots.delete-trigger:hover{background:#fff4f4;border-color:#ffcfd4;color:#c92f3b}
.compact-manual-modal h3{font-size:20px}
.compact-manual-modal .sub{font-size:12px}
.manual-num{font-size:11px}
@media(max-width:560px){
  .ball{width:28px;height:28px;font-size:10px}
  .sum strong{font-size:17px}
}

/* MY100 final: RANDOM quick add */
.random-qty-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 0 18px;
}
#randomModal .random-qty-wrap .stepper{
  padding:0;
  flex:0 0 auto;
}
.random-quick-add{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.random-quick-add button{
  min-width:42px;
  height:34px;
  border:1px solid #dfe3e8;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font-size:11px;
  font-weight:900;
}
.random-quick-add button:hover{
  border-color:#ffb7be;
  background:#fff5f6;
  color:#c92f3b;
}
@media(max-width:390px){
  .random-qty-wrap{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
}

/* RESULTS SET */
.results-wrap h1{font-size:28px;margin:0}
.results-wrap .lead{font-size:13px;color:#6b7280;margin:5px 0 14px}
.round-nav{display:grid;grid-template-columns:42px 1fr 42px;gap:8px;align-items:center;margin-bottom:10px}
.round-nav button,.round-nav .round-current{height:42px;border:1px solid #dfe3e8;background:#fff;border-radius:12px}
.round-nav button{font-size:20px}.round-current{display:grid;place-items:center;font-size:14px;font-weight:900}
.draw-date{text-align:center;font-size:11px;color:#6b7280;margin:-2px 0 12px}
.draw-card{padding:18px;text-align:center}
.draw-card b{display:block;font-size:14px;margin-bottom:10px}
.result-balls{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}
.result-ball{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:900}
.result-ball.y{background:#f9c637;color:#111}.result-ball.b{background:#42a6e8}.result-ball.r{background:#f35a60}.result-ball.g{background:#8d99a6}.result-ball.gr{background:#38b36a}
.result-plus{font-size:18px;font-weight:900}
.result-split{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.result-summary-card{padding:16px}
.result-summary-card .eyebrow{font-size:10px;color:#6b7280}
.result-summary-card strong{display:block;font-size:20px;margin:6px 0 4px}
.result-summary-card p{font-size:11px;line-height:1.55;color:#667085;margin:0}
.result-summary-card a{display:inline-flex;margin-top:10px;font-size:11px;font-weight:900;color:#d92d3e}
.prize-table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}
.prize-table th,.prize-table td{padding:11px 9px;border-bottom:1px solid #eef0f3;font-size:10px;text-align:left}
.prize-table th{background:#f8f9fb;color:#596273}.prize-table tr:last-child td{border-bottom:0}.prize-rank{font-weight:900;color:#d92d3e}
.machine-result-list{display:grid;gap:8px}
.machine-result-card{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:13px}
.machine-result-rank{width:34px;height:34px;border-radius:10px;background:#fff1d9;display:grid;place-items:center;font-weight:900;font-size:11px}
.machine-result-card h3{font-size:13px;margin:0 0 3px}.machine-result-card p{font-size:10px;color:#6b7280;margin:0;line-height:1.45}.machine-result-total{text-align:right}.machine-result-total strong{display:block;font-size:16px}.machine-result-total span{font-size:9px;color:#6b7280}
.league-link{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:9px;padding:12px;border:1px solid #dfe3e8;border-radius:12px;background:#fff;font-size:11px;font-weight:900}
.analysis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.analysis-card{padding:14px}.analysis-card label{font-size:9px;color:#6b7280;display:block}.analysis-card strong{display:block;font-size:17px;margin-top:5px}.analysis-card small{font-size:9px;color:#7b8490}
.history-list{display:grid;gap:8px}.history-item{padding:13px}.history-top{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px}.history-top strong{font-size:13px}.history-item .result-balls{justify-content:flex-start;gap:5px}.history-item .result-ball{width:28px;height:28px;font-size:10px}
.my-result-hero{padding:18px;background:linear-gradient(135deg,#fff6cf,#fff);border-color:#f0db8c}.my-result-hero .status{font-size:20px;font-weight:900}.my-result-hero p{font-size:12px;color:#6c5a2c;line-height:1.6;margin:6px 0 0}
.my-result-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.my-result-kpis .card{padding:13px;text-align:center}.my-result-kpis label{font-size:9px;color:#6b7280}.my-result-kpis strong{display:block;font-size:20px;margin-top:5px}
.top-games{display:grid;gap:8px}.top-game{padding:13px;display:grid;grid-template-columns:32px 1fr 72px;gap:8px;align-items:center}.top-game .rank{width:30px;height:30px;border-radius:10px;background:#fff1d9;display:grid;place-items:center;font-size:10px;font-weight:900}.top-game .src{font-size:9px;color:#6b7280;margin-top:5px}.match-count{text-align:right;font-size:12px;font-weight:900}.match-count strong{font-size:16px;color:#d92d3e}
.my-result-list .mygame{grid-template-columns:34px 1fr 92px 62px}.my-result-list .mysrc{font-size:10px}.match-tag{text-align:right;font-size:10px;font-weight:900;color:#d92d3e}
.result-filter{display:flex;gap:7px;overflow:auto}.result-filter button{border:1px solid #dfe3e8;background:#fff;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:800}.result-filter button.on{background:#152d46;color:#fff}
@media(max-width:560px){
  .result-split{grid-template-columns:1fr}
  .result-ball{width:34px;height:34px}
  .my-result-list .mygame{grid-template-columns:32px 1fr 76px 56px}
}

/* RESULTS v4.1 readability */
.prize-table th{
  font-size:12px;
  font-weight:800;
}
.prize-table td{
  font-size:12px;
  line-height:1.5;
}
.prize-table .prize-rank{
  font-size:13px;
}
.analysis-card{
  padding:16px;
}
.analysis-card label{
  font-size:11px;
  font-weight:700;
}
.analysis-card strong{
  font-size:21px;
  margin-top:7px;
}
.analysis-card small{
  font-size:11px;
  line-height:1.45;
  display:block;
  margin-top:4px;
}
@media(max-width:560px){
  .prize-table th,.prize-table td{font-size:11px;padding:10px 7px}
  .prize-table .prize-rank{font-size:12px}
  .analysis-card label{font-size:10px}
  .analysis-card strong{font-size:19px}
  .analysis-card small{font-size:10px}
}

/* LEAGUE */
.league-live-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:34px;
  padding:0 10px;
  border:1px solid #ffd0d4;
  border-radius:999px;
  background:#fff5f6;
  color:#c92f3b;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.league-live-dot{
  width:8px;height:8px;border-radius:50%;
  background:#ff2e3f;
  box-shadow:0 0 0 5px rgba(255,46,63,.10);
}
.league-live-link b{font-size:10px}
.league-live-link span:last-child{color:#344054}

.league-hero{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  padding:22px 20px;
  color:#fff;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,203,47,.23),transparent 30%),
    linear-gradient(135deg,#102f4f,#081b2d 70%);
}
.league-hero:after{
  content:"";
  position:absolute;
  right:-55px;bottom:-75px;
  width:220px;height:220px;border-radius:50%;
  border:34px solid rgba(255,255,255,.035);
}
.league-onair{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 9px;border-radius:999px;
  background:#ff2e3f;color:#fff;
  font-size:10px;font-weight:900;
  margin-bottom:10px;
}
.league-onair i{
  width:7px;height:7px;border-radius:50%;
  background:#fff;display:inline-block;
}
.league-hero h1{font-size:28px;margin:0 0 8px;letter-spacing:-.04em}
.league-hero p{font-size:13px;line-height:1.65;color:#dce7ef;margin:0;max-width:510px}
.league-round{
  display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;
  margin-top:16px;position:relative;z-index:2;
}
.league-round strong{font-size:16px}
.league-round span{font-size:10px;color:#c5d5e3}
.league-round .round-badge{
  padding:8px 10px;border-radius:10px;
  background:rgba(255,255,255,.1);
  color:#fff;font-size:11px;font-weight:900;
}

.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.podium-card{padding:15px;text-align:center;position:relative}
.podium-rank{
  position:absolute;left:10px;top:10px;
  min-width:32px;height:24px;padding:0 7px;
  display:grid;place-items:center;border-radius:8px;
  background:#ff8a2a;color:#fff;font-size:10px;font-weight:900;
}
.podium-icon{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:7px auto 8px;background:#fff1d9;font-size:28px}
.podium-card h3{font-size:13px;margin:0 0 5px}
.podium-card .perf{font-size:18px;font-weight:900;color:#d92d3e}
.podium-card .sub{font-size:9px;color:#6b7280;margin-top:3px}
.rank-change{display:inline-flex;align-items:center;gap:3px;margin-top:8px;font-size:9px;font-weight:900;padding:4px 7px;border-radius:999px;background:#f1f4f7;color:#667085}
.rank-change.up{background:#e8f8f0;color:#08764b}.rank-change.down{background:#fff0f1;color:#bd2834}

.league-list{display:grid;gap:8px}
.league-row{
  display:grid;
  grid-template-columns:48px 1fr 120px 76px;
  gap:10px;align-items:center;padding:13px;
}
.league-pos{width:36px;height:36px;border-radius:11px;background:#f1f4f7;display:grid;place-items:center;font-size:12px;font-weight:900}
.league-row h3{font-size:13px;margin:0 0 3px}
.league-row .desc{font-size:10px;color:#6b7280;line-height:1.4}
.league-metrics{font-size:10px;color:#667085;line-height:1.55}
.league-metrics strong{color:#111827}
.league-score{text-align:right}
.league-score strong{display:block;font-size:15px;color:#d92d3e}
.league-score span{font-size:9px;color:#6b7280}
.league-row a{display:block;margin-top:4px;font-size:9px;color:#667085}

.trend-list{padding:14px}
.trend-row{display:grid;grid-template-columns:120px 1fr 48px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eef0f3}
.trend-row:last-child{border-bottom:0}.trend-name{font-size:11px;font-weight:800}
.trend-points{display:flex;gap:5px;align-items:center}.trend-points span{width:26px;height:26px;border-radius:8px;background:#f1f4f7;display:grid;place-items:center;font-size:9px;font-weight:900}
.trend-points .current{background:#152d46;color:#fff}.trend-arrow{text-align:right;font-size:11px;font-weight:900}

.round-result-summary{padding:15px}
.round-result-summary .rr-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;padding:9px 0;border-bottom:1px solid #eef0f3;font-size:10px}
.round-result-summary .rr-row:last-child{border-bottom:0}
.round-result-summary .rr-row b{font-size:11px}
.round-result-summary .rr-row span{text-align:right}

.criteria-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.criteria{padding:13px}.criteria b{display:block;font-size:12px;margin-bottom:5px}.criteria span{font-size:10px;color:#6b7280;line-height:1.5}
.random-info{padding:16px;background:#f4f8fc;border-color:#dbe6ef}
.random-info b{font-size:13px}.random-info p{font-size:11px;line-height:1.65;color:#536171;margin:6px 0 0}

@media(max-width:560px){
  .league-live-link{height:32px;padding:0 8px}
  .league-live-link span:last-child{display:none}
  .podium{grid-template-columns:repeat(3,1fr)}
  .podium-card{padding:13px 7px}
  .podium-icon{width:54px;height:54px;font-size:24px}
  .league-row{grid-template-columns:40px 1fr 92px 58px;gap:7px;padding:11px 9px}
  .league-row .desc{display:none}
  .league-metrics{font-size:9px}
}

/* LEAGUE v5.1 ranking visual upgrade */
.league-row{
  position:relative;
  overflow:hidden;
}
.league-row:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:#e8ecf1;
}
.league-row.top1{
  background:linear-gradient(90deg,#fff9e8,#fff 38%);
  border-color:#f3df9a;
}
.league-row.top2{
  background:linear-gradient(90deg,#f7f9fc,#fff 38%);
  border-color:#d8dee8;
}
.league-row.top3{
  background:linear-gradient(90deg,#fff3ec,#fff 38%);
  border-color:#efd2c1;
}
.league-row.top1:before{background:#f4bf2f}
.league-row.top2:before{background:#9aa7b5}
.league-row.top3:before{background:#c97a45}
.league-pos.medal{
  position:relative;
  font-size:0;
  background:#fff;
  border:1px solid #e3e7ec;
}
.league-pos.medal:after{
  font-size:18px;
  line-height:1;
}
.league-row.top1 .league-pos.medal:after{content:"🥇"}
.league-row.top2 .league-pos.medal:after{content:"🥈"}
.league-row.top3 .league-pos.medal:after{content:"🥉"}

.league-name-wrap{display:flex;align-items:center;gap:9px}
.league-mini-icon{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff1d9;
  font-size:17px;
  flex:0 0 auto;
  border:1px solid rgba(0,0,0,.03);
}
.league-row.top2 .league-mini-icon{background:#eef2f6}
.league-row.top3 .league-mini-icon{background:#fff0e7}
.league-name-text h3{margin:0 0 2px}
.league-name-text .desc{margin:0}
.league-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.league-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 6px;
  border-radius:999px;
  background:#f1f4f7;
  color:#667085;
  font-size:8px;
  font-weight:800;
}
.league-badge.hot{background:#fff0f1;color:#c92f3b}
.league-badge.stable{background:#e8f8f0;color:#08764b}
.league-badge.rise{background:#eef4ff;color:#315aa8}
.league-score{
  border-left:1px solid #eef0f3;
  padding-left:10px;
}
.league-row.top1 .league-score strong{color:#c98f00}
.league-row.top2 .league-score strong{color:#687687}
.league-row.top3 .league-score strong{color:#b36234}
@media(max-width:560px){
  .league-name-wrap{gap:7px}
  .league-mini-icon{width:30px;height:30px;font-size:15px}
  .league-badges{display:none}
}

.league-round-tabs{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}.league-round-tabs a{padding:12px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;font-weight:700}.league-round-tabs [aria-current=page]{background:var(--navy);color:#fff}.league-history-context{padding:18px}.league-history-context h2{margin:0 0 10px}.league-history-context p,.league-history-context small,.league-history-note{font-size:12px;line-height:1.7;color:#64748b}.league-history-row{padding:16px;margin-bottom:10px}.league-history-heading{display:flex;align-items:center;gap:12px}.league-history-heading h3{font-size:15px}.league-history-heading .league-score{margin-left:auto}.league-history-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0;background:#f5f7fa;border-radius:12px;padding:12px}.league-history-metrics span{display:block;font-size:10px;color:#64748b}.league-history-metrics b{display:block;font-size:15px;margin-top:5px}.league-round-counts summary{font-size:11px;cursor:pointer;color:#64748b}.league-round-counts dl{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;font-size:11px}.league-round-counts dd{margin:6px 0}.league-winning{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.league-winning b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffdc66;color:#142c46}@media(max-width:560px){.league-history-metrics{grid-template-columns:repeat(2,1fr)}.league-round-tabs a{flex:1;text-align:center;padding:12px 8px}.league-history-heading h3{font-size:14px}.podium-card h3{overflow-wrap:anywhere}}
