/* Homepage geometry follows the reference's desktop HomeView structure. */
.reference-home{gap:14px;align-items:flex-start;}
.reference-home>.main-content{width:887px;flex:1;}
.reference-home>.sidebar{width:324px;flex:0 0 324px;margin:0;}
.reference-home #homeSiteArea,.reference-home #homeBottomAds,.reference-home #homeExchange{display:none;}
.reference-home .lottery-section{border:0;box-shadow:none;background:#fff;border-radius:12px;}
.reference-home .lottery-section-header{display:none;}
.reference-home .home-controls{height:46px;min-height:46px;flex-wrap:nowrap;border-radius:12px 12px 0 0;background:#fcfcfc;gap:0;}
.reference-home .home-category{flex:1 0 auto;justify-content:center;font-size:16px;line-height:46px;height:46px;color:#313131;padding:0 12px;}
.reference-home .home-category.active{color:#3b84eb;background:transparent;}
.reference-home .home-search{display:none;}
.reference-home #homeLotteryGrid{padding:15px 0 12px;gap:10px;}
.reference-home #homeLotteryGrid .lottery-card{position:relative;display:block;box-sizing:border-box;width:calc(100% - 60px);max-width:807px;margin:0 30px;padding:16px 12px 0 0;height:186px;min-height:186px;border:1px solid #e8ebf1;border-radius:12px;overflow:hidden;}
.reference-home #homeLotteryGrid .lottery-card-logo-wrap{position:absolute;left:0;top:18px;width:76px;height:76px;}
.reference-home #homeLotteryGrid .lottery-card-logo,.reference-home #homeLotteryGrid .lottery-card-logo-fallback{width:76px;height:76px;}
.reference-home #homeLotteryGrid .lottery-card-info{margin-left:86px;width:auto;min-height:35px;padding-right:100px;}
.reference-card-title{display:flex;align-items:center;gap:8px;min-height:35px;}
.reference-home .reference-card-title h3{color:#313131;font-weight:400;font-size:18px;max-width:210px;line-height:26px;margin:0;}
.reference-home .reference-card-title .period{color:#3b84eb;display:inline;font-weight:400;font-size:14px;margin:0;}
.reference-home #homeLotteryGrid .lottery-card-info .schedule{font-size:12px;color:#9e9e9e;margin:0;}
.reference-home #homeLotteryGrid .lottery-card-countdown-line{position:absolute;right:16px;top:58px;max-width:172px;display:flex;flex-direction:column;align-items:flex-end;gap:0;line-height:24px;}
.reference-home #homeLotteryGrid .lottery-card-countdown-line .countdown-label{font-size:12px;color:#666a6e;line-height:18px;}
.reference-home #homeLotteryGrid .lottery-card-countdown-line .countdown-value{font-family:"DIN Alternate",Tahoma,sans-serif;font-size:24px;font-weight:600;color:#e8632c;line-height:32px;}
.reference-home #homeLotteryGrid .lottery-card-numbers{margin:10px 170px 0 86px;min-height:42px;display:flex;align-items:center;justify-content:flex-start;}
.reference-home #homeLotteryGrid .lottery-card-numbers .ball{width:28px;height:28px;font-size:14px;font-weight:400;}
.reference-home #homeLotteryGrid .lottery-card-actions{position:absolute;right:12px;top:17px;margin:0;}
.reference-home #homeLotteryGrid .lottery-card-links{position:absolute;right:24px;bottom:0;left:86px;height:34px;margin:0;display:flex;justify-content:flex-end;align-items:center;gap:24px;}
.reference-home #homeLotteryGrid .lottery-card-links a{font-size:12px;color:#5f5f5f;}
.reference-home #homeLotteryGrid .lottery-card-links a:hover{color:#3b84eb;}
.reference-home #hotRecommendations{border:1px solid #eef2f7;box-shadow:0 4px 20px #37393b05;border-radius:12px;}
.reference-home #hotRecommendations .card-header{height:57px;padding:18px 0 18px 24px;line-height:20px;font-size:16px;font-weight:700;position:relative;gap:6px;border-bottom:1px solid #f1f5f9;}
.reference-home #hotRecommendations .card-header::before{content:"";position:absolute;left:12px;top:50%;transform:translateY(-50%);width:4px;height:16px;background:#3b84eb;border-radius:2px;}
.reference-recommend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 2px;padding:16px 8px 8px;height:228px;overflow:hidden;align-content:start;}
.reference-recommend-grid>a{text-align:center;display:block;min-width:0;padding:0;line-height:1;}
.recommend-icon{width:60px;height:60px;background:#eef5ff;border-radius:12px;display:flex;align-items:center;justify-content:center;margin:0 auto;overflow:hidden;color:#609aeb;font-size:18px;font-weight:700;}
.recommend-icon img{width:60px;height:60px;object-fit:cover;display:block;}
.recommend-name{display:block;font-size:12px;line-height:1.25;min-height:30px;margin-top:4px;word-break:break-all;padding:0 1px;}
.reference-recommend-grid>a:hover .recommend-icon{transform:translateY(-2px)scale(1.05);box-shadow:0 6px 15px #609aeb26;}
.recommend-expand{width:100%;height:44px;border:0;border-top:1px solid #f1f5f9;background:#fff;color:#609aeb;cursor:pointer;font:inherit;font-size:13px;}
.recommend-expand:hover{background:#f8fafc;color:#3b84eb;}
#hotRecommendations.expanded .reference-recommend-grid{height:auto;}
@media(max-width:1100px){.reference-home>.sidebar{display:none;}.reference-home>.main-content{width:100%;}}
@media(min-width:769px) and (max-width:1100px){.reference-home{flex-direction:row;}}
@media(max-width:768px){.reference-home .home-category{font-size:14px;height:46px;line-height:46px;padding:0 12px;}.reference-home #homeLotteryGrid{padding:0;gap:0;}.reference-home #homeLotteryGrid .lottery-card{width:100%;max-width:none;margin:0;padding:12px;min-height:132px;height:auto;border:0;border-bottom:1px solid #e8ebf1;border-radius:0;overflow:visible;}.reference-home #homeLotteryGrid .lottery-card-logo-wrap{position:static;display:none;}.reference-home #homeLotteryGrid .lottery-card-info{margin:0;padding-right:40px;}.reference-home .reference-card-title h3{font-size:15px;max-width:190px;}.reference-home .reference-card-title .period{font-size:12px;}.reference-home #homeLotteryGrid .lottery-card-info .schedule{display:none;}.reference-home #homeLotteryGrid .lottery-card-countdown-line{position:static;max-width:none;flex-direction:row;justify-content:flex-start;gap:8px;}.reference-home #homeLotteryGrid .lottery-card-countdown-line .countdown-label{font-size:11px;}.reference-home #homeLotteryGrid .lottery-card-countdown-line .countdown-value{font-size:18px;line-height:24px;}.reference-home #homeLotteryGrid .lottery-card-numbers{margin:8px 0;min-height:30px;}.reference-home #homeLotteryGrid .lottery-card-links{position:static;height:auto;margin:6px 0 0;justify-content:flex-start;gap:12px;}.reference-home #homeLotteryGrid .lottery-card-actions{top:15px;right:10px;}.reference-home #homeLotteryGrid .lottery-card:hover{transform:none;box-shadow:none;}}
