
: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}
}

/* RESULTS v6 shared top tabs */
.result-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:4px 0 14px;
}
.result-tab{
  height:42px;
  border:1px solid #dfe3e8;
  background:#fff;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  color:#475467;
}
.result-tab.on{
  background:#152d46;
  color:#fff;
  border-color:#152d46;
}
.my-result-entry{
  position:relative;
  overflow:hidden;
  border:2px solid #ffd9dd !important;
  background:linear-gradient(135deg,#fff5f6,#fff) !important;
}
.my-result-entry:after{
  content:"🎟";
  position:absolute;
  right:16px;
  top:12px;
  font-size:34px;
  opacity:.18;
}
.my-result-entry .eyebrow{
  color:#c92f3b !important;
  font-weight:900;
}
.my-result-entry a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:10px;
  background:#ff2e3f;
  color:#fff !important;
  margin-top:12px;
}

/* MY100 result page complete rebuild */
.my-result-page-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
  margin-bottom:12px;
}
.my-result-page-title h1{font-size:25px;margin:0}
.my-result-page-title p{font-size:11px;color:#6b7280;margin:4px 0 0}
.my-result-round{font-size:11px;font-weight:900;color:#344054}
.my-result-hero2{
  padding:18px;
  background:linear-gradient(135deg,#fff7d8,#fff);
  border-color:#f1da85;
}
.my-result-hero2 .state{
  font-size:21px;
  line-height:1.35;
  font-weight:950;
  margin-bottom:7px;
}
.my-result-hero2 p{
  font-size:12px;
  line-height:1.65;
  color:#6f5a2d;
  margin:0;
}
.result-kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:10px;
}
.result-kpi{padding:14px;text-align:center}
.result-kpi label{display:block;font-size:9px;color:#6b7280}
.result-kpi strong{display:block;font-size:22px;margin-top:5px}
.result-kpi strong.em{color:#d92d3e}

.best-games{display:grid;gap:8px}
.best-game{
  padding:14px;
  display:grid;
  grid-template-columns:34px 1fr 86px;
  gap:10px;
  align-items:center;
}
.best-rank{
  width:32px;height:32px;border-radius:10px;
  display:grid;place-items:center;
  background:#fff1d9;
  font-size:10px;font-weight:900;
}
.best-game .src{
  font-size:10px;
  color:#667085;
  margin-top:6px;
}
.best-match{
  text-align:right;
  font-size:12px;
  font-weight:900;
  color:#d92d3e;
}
.best-match strong{display:block;font-size:18px}

.source-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.source-card{padding:14px}
.source-card label{display:block;font-size:10px;color:#6b7280}
.source-card strong{display:block;font-size:18px;margin-top:5px}
.source-card small{display:block;font-size:9px;color:#7b8490;margin-top:4px}

.result-tools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.result-source-filters{
  display:flex;
  gap:6px;
  overflow:auto;
}
.result-source-filter{
  border:1px solid #dfe3e8;
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.result-source-filter.on{
  background:#152d46;
  color:#fff;
  border-color:#152d46;
}
.result-sort{
  flex:0 0 auto;
  border:1px solid #dfe3e8;
  border-radius:10px;
  background:#fff;
  padding:8px 10px;
  font-size:10px;
}
.full-result-list{overflow:hidden}
.result-game-row{
  display:grid;
  grid-template-columns:34px 1fr 100px 66px;
  gap:7px;
  align-items:center;
  min-height:54px;
  padding:10px 11px;
  border-bottom:1px solid #eef0f3;
  cursor:pointer;
}
.result-game-row:last-child{border-bottom:0}
.result-game-no{
  width:30px;height:30px;border-radius:10px;
  display:grid;place-items:center;
  background:#f1f4f7;
  font-size:10px;font-weight:900;
}
.result-game-source{
  text-align:right;
  font-size:10px;
  font-weight:800;
}
.result-game-source small{
  display:block;
  font-size:8px;
  font-weight:400;
  color:#6b7280;
  margin-top:2px;
}
.result-match{
  text-align:right;
  font-size:10px;
  font-weight:900;
  color:#d92d3e;
}
.result-match strong{
  display:block;
  font-size:14px;
}
.result-ball.match{
  outline:3px solid rgba(255,46,63,.18);
  box-shadow:0 0 0 2px #fff inset;
}
.past-my100{
  display:grid;
  gap:7px;
}
.past-my100 a{
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
}
.past-my100 strong{font-size:12px}
.past-my100 span{color:#6b7280}

.result-detail-modal .detail-block{
  padding:12px 0;
  border-top:1px solid #eef0f3;
}
.result-detail-modal .detail-block:first-of-type{border-top:0}
.result-detail-modal label{
  display:block;
  font-size:10px;
  color:#6b7280;
  margin-bottom:7px;
}
.result-detail-modal .detail-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff7e9;
  border-radius:12px;
  padding:11px 12px;
  margin-top:10px;
}
.result-detail-modal .detail-summary strong{
  color:#d92d3e;
  font-size:16px;
}
@media(max-width:560px){
  .best-game{
    grid-template-columns:32px 1fr 68px;
  }
  .result-game-row{
    grid-template-columns:32px 1fr 80px 54px;
    padding:10px 8px;
  }
  .result-game-source{font-size:9px}
  .result-match{font-size:9px}
  .result-match strong{font-size:12px}
}

/* RESULTS v6.1 match emphasis */
.result-ball.match{
  position:relative;
  outline:4px solid #ff9aa5 !important;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 2px #ff9aa5,
    0 3px 10px rgba(255,46,63,.18) !important;
  transform:scale(1.06);
}
.result-ball.match:after{
  content:"✓";
  position:absolute;
  right:-5px;
  top:-7px;
  width:15px;
  height:15px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ff2e3f;
  color:#fff;
  font-size:9px;
  font-weight:900;
  border:2px solid #fff;
}
.match-legend{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:#667085;
}
.match-legend i{
  width:13px;height:13px;border-radius:50%;
  background:#fff;
  border:3px solid #ff9aa5;
  position:relative;
}
.match-legend i:after{
  content:"✓";
  position:absolute;
  right:-6px;top:-8px;
  width:12px;height:12px;border-radius:50%;
  display:grid;place-items:center;
  background:#ff2e3f;color:#fff;
  font-size:7px;font-style:normal;
}

/* shared league live header button v6.2 */
.header .league-live-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  height:34px;
  padding:0 11px;
  border:1px solid #ffd0d4;
  border-radius:999px;
  background:#fff5f6;
  color:#c92f3b !important;
  font-size:10px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
  flex:0 0 auto;
}
.header .league-live-dot{
  display:block;
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#ff2e3f;
  box-shadow:0 0 0 5px rgba(255,46,63,.10);
}
.header .league-live-link b{
  font-size:10px;
  line-height:1;
}
.header .league-live-link span:last-child{
  display:inline;
  color:#344054;
  line-height:1;
}
@media(max-width:430px){
  .header .league-live-link{
    height:32px;
    padding:0 9px;
    gap:6px;
  }
  .header .league-live-link span:last-child{
    display:inline;
    font-size:9px;
  }
}
