/* Homepage reference rebuild RC7 — consolidated production candidate */
:root{
  --home-bg:#111;
  --home-cream:#fffaf2;
  --home-peach:#ffd9a3;
  --home-red:#e60012;
  --home-cyan:#00d9e8;
  --home-pink-1:#ff168d;
  --home-pink-2:#f50086;
  --home-pink-3:#d80072;
  --home-navy:#00164d;
  --home-shadow:0 2px 7px rgba(0,0,0,.20);
}

body.home-page{
  margin:0;
  overflow-x:hidden;
  background:var(--home-bg);
}

.home-reference,
.home-lucky{
  position:relative;
  z-index:1;
  width:100%;
  overflow-x:hidden;
  background:var(--home-bg);
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
}

.home-reference *,
.home-lucky *{
  box-sizing:border-box;
}

/* HERO */
.home-hero{
  position:relative;
  isolation:isolate;
  width:100%;
  max-width:432px;
  height:181px;
  margin:0 auto 6px;
  padding:8px 8px 7px;
  overflow:hidden;
  border:2px solid var(--home-red);
  border-radius:10px;
  background:
    radial-gradient(circle at 23% 39%,rgba(255,255,255,.62) 0 1px,transparent 2.7px),
    radial-gradient(circle at 79% 42%,rgba(255,255,255,.82) 0 1.1px,transparent 2.8px),
    radial-gradient(ellipse at 50% 80%,rgba(255,255,255,.54) 0 17%,rgba(255,226,179,.98) 39%,#ffcc99 100%);
  box-shadow:var(--home-shadow),inset 0 0 18px rgba(255,255,255,.22);
  text-align:center;
  contain:layout paint;
}

.home-hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:50%;
  bottom:8px;
  width:52%;
  height:28px;
  transform:translateX(-50%);
  border-radius:50%/45%;
  background:linear-gradient(180deg,#ffe9c8,#efa75f);
  box-shadow:0 7px 15px rgba(142,79,24,.20);
}

.home-hero__tagline{
  margin:0 0 4px;
  color:#591b13;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  -webkit-font-smoothing:antialiased;
}

.home-hero__logo-link{
  display:inline-block;
  line-height:0;
  -webkit-tap-highlight-color:transparent;
}

.home-hero__logo-link:focus-visible{
  outline:3px solid #ffd600;
  outline-offset:3px;
}

.home-hero__logo{
  display:block;
  width:135px;
  height:135px;
  object-fit:contain;
  filter:drop-shadow(0 7px 8px rgba(0,0,0,.22));
}

/* WELCOME */
.home-welcome{
  display:grid;
  grid-template-columns:107px minmax(0,1fr);
  align-items:center;
  gap:11px;
  width:calc(100% - 20px);
  max-width:412px;
  height:90px;
  margin:6px auto;
  padding:7px 10px;
  overflow:hidden;
  border:2px solid var(--home-red);
  border-radius:10px;
  background:linear-gradient(180deg,var(--home-cream),#ffe2b1);
  box-shadow:var(--home-shadow);
  contain:layout paint;
}

.home-welcome__image{
  display:block;
  width:107px;
  height:75px;
  object-fit:cover;
  object-position:center;
  border-radius:7px;
  box-shadow:0 3px 7px rgba(0,0,0,.18);
}

.home-welcome__copy{
  min-width:0;
  padding:0 2px;
  text-align:center;
  text-transform:uppercase;
  font-size:12.5px;
  line-height:1.22;
  font-weight:900;
  -webkit-font-smoothing:antialiased;
}

.home-welcome__copy p{margin:0;}

.home-welcome__rule{
  display:block;
  position:relative;
  width:78%;
  height:1px;
  margin:4px auto;
  background:linear-gradient(90deg,transparent,rgba(73,42,22,.55),transparent);
}

.home-welcome__rule::before,
.home-welcome__rule::after{
  position:absolute;
  top:50%;
  color:#5b2b16;
  font-size:11px;
  line-height:1;
}

.home-welcome__rule::before{
  content:"❧";
  left:43%;
  transform:translateY(-52%);
}

.home-welcome__rule::after{
  content:"❧";
  right:43%;
  transform:translateY(-52%) scaleX(-1);
}

/* INTRO */
.home-intro{
  width:calc(100% - 20px);
  max-width:412px;
  min-height:238px;
  margin:6px auto;
  padding:10px 12px 9px;
  overflow:hidden;
  border:2px solid var(--home-red);
  border-radius:10px;
  background:linear-gradient(180deg,var(--home-cream),var(--home-peach));
  box-shadow:var(--home-shadow);
  color:#111;
  text-align:center;
  font-size:12.25px;
  line-height:1.255;
  contain:layout paint;
}

.home-intro__content{
  display:block;
  width:100%;
  max-height:190px;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-font-smoothing:antialiased;
}

.home-intro__content > *:first-child{margin-top:0!important;}
.home-intro__content > *:last-child{margin-bottom:0!important;}

.home-intro__content h1,
.home-intro__content h2,
.home-intro__content h3{
  margin:0 0 5px;
  color:#7b160f;
  font-size:15.25px;
  line-height:1.12;
  font-weight:900;
}

.home-intro__content p{margin:0;}

.home-intro__content img,
.home-intro__content iframe,
.home-intro__content video,
.home-intro__content table{
  display:none!important;
}

.home-intro__action{
  display:flex;
  justify-content:center;
}

.home-profile-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:140px;
  height:28px;
  margin:7px auto 0;
  padding:0 17px;
  border:2px solid #fff;
  border-radius:18px;
  background:var(--home-navy);
  box-shadow:0 5px 11px rgba(0,0,0,.23),0 0 12px rgba(255,214,64,.45);
  color:#fff!important;
  font-size:12.8px;
  line-height:24px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}

.home-profile-btn:focus-visible{
  outline:3px solid #ffd600;
  outline-offset:3px;
}

/* LUCKY NUMBER */
.home-lucky__title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:calc(100% - 20px);
  max-width:412px;
  height:34px;
  margin:6px auto;
  padding:4px 7px;
  border:2px solid #ffe600;
  border-radius:10px;
  background:linear-gradient(180deg,var(--home-pink-1),var(--home-pink-2) 62%,var(--home-pink-3));
  box-shadow:0 2px 7px rgba(0,0,0,.18);
  color:#fff;
  font-size:16.6px;
  line-height:1.1;
  font-weight:900;
  white-space:nowrap;
  contain:layout paint;
}

.home-lucky__card{
  width:calc(100% - 20px);
  max-width:412px;
  margin:0 auto 7px;
  overflow:hidden;
  border:2px solid var(--home-cyan);
  border-radius:12px;
  background:linear-gradient(180deg,#fff7e8,#ffc886);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
  contain:layout paint;
}

.home-lucky__top{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:77px;
  align-items:stretch;
}

.home-lucky__cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  padding:7px 5px;
  overflow:hidden;
  background:rgba(255,229,184,.28);
  text-align:center;
}

.home-lucky__cell+.home-lucky__cell{
  border-left:1px solid rgba(110,70,40,.22);
}

.home-lucky__label{
  margin:0 0 7px;
  font-size:12.2px;
  line-height:1.2;
  font-weight:800;
}

.home-lucky__value,
.home-lucky__golden-value{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  white-space:normal;
  word-break:break-word;
  text-align:center;
  -webkit-font-smoothing:antialiased;
}

.home-lucky__value{
  width:100%;
  height:38px;
  color:#111;
  font-size:17.6px;
  line-height:1.15;
  font-weight:800;
}

.home-lucky__golden{
  width:51%;
  min-height:58px;
  margin:0 auto 6px;
  padding:7px 5px;
  overflow:hidden;
  border-radius:11px;
  background:rgba(255,229,184,.38);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  text-align:center;
}

.home-lucky__golden-label{
  margin:0 0 7px;
  color:#d50000;
  font-size:12.2px;
  font-weight:800;
}

.home-lucky__golden-value{
  color:#111;
  font-size:17.6px;
  line-height:1.1;
  font-weight:800;
}

/* EXISTING FLOATING CONTROLS */
body.home-page .float,
body.home-page .float1{
  z-index:50!important;
  width:43px!important;
  right:7px!important;
}

body.home-page .float img,
body.home-page .float1 img{
  width:43px!important;
  height:43px!important;
}

body.home-page .download_apk_btn,
body.home-page .refresh{
  z-index:50!important;
  height:31px;
  min-height:31px;
  padding:0 11px;
  border-radius:17px;
  font-size:13px;
  line-height:27px;
}

/* VERY SMALL PHONES */
@media(max-width:340px){
  .home-hero{height:168px;}
  .home-hero__tagline{font-size:12.8px;}
  .home-hero__logo{width:120px;height:120px;}
  .home-welcome{
    grid-template-columns:90px minmax(0,1fr);
    height:80px;
    gap:7px;
    padding:5px 7px;
  }
  .home-welcome__image{width:90px;height:64px;}
  .home-welcome__copy{font-size:10.6px;line-height:1.16;}
  .home-intro{
    min-height:216px;
    padding:8px 9px 7px;
    font-size:11.2px;
    line-height:1.22;
  }
  .home-intro__content{max-height:174px;}
  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{font-size:13.8px;}
  .home-lucky__title{height:31px;gap:4px;font-size:14px;}
}

/* 341–374PX */
@media(min-width:341px) and (max-width:374px){
  .home-hero{height:174px;}
  .home-hero__tagline{font-size:13.2px;}
  .home-hero__logo{width:126px;height:126px;}
  .home-welcome{
    grid-template-columns:96px minmax(0,1fr);
    height:84px;
    gap:8px;
    padding:6px 8px;
  }
  .home-welcome__image{width:96px;height:68px;}
  .home-welcome__copy{font-size:11.2px;line-height:1.17;}
  .home-intro{
    min-height:224px;
    padding:9px 10px 8px;
    font-size:11.65px;
    line-height:1.24;
  }
  .home-intro__content{max-height:180px;}
  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{font-size:14.4px;}
  .home-lucky__title{height:32px;gap:5px;font-size:14.9px;}
}

/* 375–399PX */
@media(min-width:375px) and (max-width:399px){
  .home-hero{height:178px;}
  .home-hero__logo{width:131px;height:131px;}
  .home-welcome{
    grid-template-columns:102px minmax(0,1fr);
    height:87px;
  }
  .home-welcome__image{width:102px;height:72px;}
  .home-welcome__copy{font-size:11.8px;}
  .home-intro{
    min-height:232px;
    font-size:12px;
    line-height:1.25;
  }
  .home-intro__content{max-height:185px;}
}

/* 400–430PX */
@media(min-width:400px) and (max-width:430px){
  .home-hero{height:181px;}
  .home-hero__logo{width:134px;height:134px;}
  .home-welcome{height:90px;}
  .home-intro{min-height:238px;}
}

/* 431–699PX */
@media(min-width:431px) and (max-width:699px){
  .home-reference,
  .home-lucky{
    max-width:432px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* TABLET / DESKTOP */
@media(min-width:700px){
  .home-reference,
  .home-lucky{
    padding-left:12px;
    padding-right:12px;
  }
  .home-hero,
  .home-welcome,
  .home-intro,
  .home-lucky__title,
  .home-lucky__card{
    max-width:760px;
  }
  .home-hero{
    height:350px;
    padding-top:18px;
  }
  .home-hero__tagline{
    margin-bottom:10px;
    font-size:26px;
  }
  .home-hero__logo{
    width:226px;
    height:226px;
  }
  .home-welcome{
    grid-template-columns:210px 1fr;
    height:160px;
    gap:24px;
    padding:14px 20px;
  }
  .home-welcome__image{
    width:210px;
    height:118px;
  }
  .home-welcome__copy{
    font-size:26px;
    line-height:1.28;
  }
  .home-intro{
    min-height:auto;
    padding:23px 20px 22px;
    font-size:21px;
    line-height:1.48;
  }
  .home-intro__content{
    max-height:none;
  }
  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{
    font-size:30px;
  }
  .home-profile-btn{
    height:48px;
    padding:0 30px;
    font-size:22px;
  }
  .home-lucky__title{
    height:64px;
    font-size:29px;
  }
}

@media(prefers-reduced-motion:reduce){
  .home-reference *,
  .home-lucky *{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* RC8 — reference pixel-polish pass */
@media(min-width:375px) and (max-width:430px){
  .home-hero{
    height:180px;
    padding-top:7px;
    padding-bottom:7px;
    background:
      radial-gradient(circle at 22% 38%,rgba(255,255,255,.68) 0 1px,transparent 2.6px),
      radial-gradient(circle at 80% 41%,rgba(255,255,255,.86) 0 1.1px,transparent 2.8px),
      radial-gradient(ellipse at 50% 81%,rgba(255,255,255,.58) 0 18%,rgba(255,225,177,.98) 40%,#ffcc99 100%);
  }

  .home-hero::before{
    width:49%;
    height:26px;
    bottom:7px;
  }

  .home-hero__tagline{
    margin-bottom:3px;
    font-size:13.8px;
    letter-spacing:.05px;
  }

  .home-hero__logo{
    width:133px;
    height:133px;
  }

  .home-welcome{
    grid-template-columns:104px minmax(0,1fr);
    height:88px;
    gap:10px;
    padding:6px 9px;
  }

  .home-welcome__image{
    width:104px;
    height:73px;
  }

  .home-welcome__copy{
    font-size:12px;
    line-height:1.18;
  }

  .home-welcome__rule{
    width:75%;
    margin:3px auto;
  }

  .home-intro{
    min-height:234px;
    padding:9px 11px 8px;
    font-size:12.05px;
    line-height:1.245;
  }

  .home-intro__content{
    max-height:186px;
  }

  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{
    margin-bottom:5px;
    font-size:15px;
    line-height:1.1;
  }

  .home-profile-btn{
    min-width:138px;
    height:27px;
    margin-top:7px;
    padding:0 16px;
    font-size:12.6px;
  }

  .home-lucky__title{
    height:33px;
    gap:6px;
    font-size:16.2px;
  }

  .home-lucky__top{
    min-height:75px;
  }

  .home-lucky__cell{
    padding:6px 5px;
  }

  .home-lucky__label{
    margin-bottom:6px;
    font-size:12px;
  }

  .home-lucky__value{
    height:37px;
    font-size:17.2px;
  }

  .home-lucky__golden{
    width:50%;
    min-height:56px;
    padding:6px 5px;
  }

  .home-lucky__golden-label{
    margin-bottom:6px;
    font-size:12px;
  }

  .home-lucky__golden-value{
    font-size:17.2px;
  }
}

/* keep first-screen cards visually aligned */
.home-welcome,
.home-intro,
.home-lucky__title,
.home-lucky__card{
  border-left-width:2px;
  border-right-width:2px;
}

.home-hero,
.home-welcome,
.home-intro,
.home-lucky__title,
.home-lucky__card{
  transform:translateZ(0);
  backface-visibility:hidden;
}


/* RC9 REAL HERO REBUILD */
.home-hero{position:relative;isolation:isolate;height:181px;padding:8px 8px 7px;overflow:hidden;background:radial-gradient(ellipse at 50% 79%,rgba(255,255,255,.60) 0 17%,rgba(255,229,187,.98) 40%,#ffcc99 100%)}
.home-hero::before{content:none!important}
.home-hero__spark{position:absolute;z-index:0;width:4px;height:4px;border-radius:50%;background:#fff;box-shadow:0 0 7px 2px rgba(255,255,255,.88),14px 8px 0 -1px rgba(255,255,255,.78),-12px 13px 0 -1px rgba(255,255,255,.58);opacity:.92;pointer-events:none}
.home-hero__spark--left{left:22%;top:42%}
.home-hero__spark--right{right:20%;top:39%}
.home-hero__podium{position:absolute;z-index:0;left:50%;bottom:8px;width:50%;height:27px;transform:translateX(-50%);border-radius:50%/45%;background:radial-gradient(ellipse at 50% 18%,#fff4df 0 24%,#ffd9a7 46%,#e9a258 100%);box-shadow:0 8px 16px rgba(148,83,26,.22),inset 0 2px 5px rgba(255,255,255,.78);pointer-events:none}
.home-hero__tagline{position:relative;z-index:2;margin:0 0 3px;font-size:13.8px;line-height:1.18}
.home-hero__logo-link{position:relative;z-index:3}
.home-hero__logo{width:133px;height:133px;filter:drop-shadow(0 7px 8px rgba(0,0,0,.24)) drop-shadow(0 0 5px rgba(255,255,255,.35))}
@media(max-width:340px){.home-hero{height:168px}.home-hero__logo{width:120px;height:120px}.home-hero__podium{width:52%;height:24px;bottom:7px}}
@media(min-width:341px) and (max-width:374px){.home-hero{height:174px}.home-hero__logo{width:126px;height:126px}.home-hero__podium{width:51%;height:25px}}
@media(min-width:375px) and (max-width:430px){.home-hero{height:180px}.home-hero__logo{width:133px;height:133px}}
@media(min-width:700px){.home-hero{height:350px;padding-top:18px}.home-hero__tagline{font-size:26px;margin-bottom:10px}.home-hero__logo{width:226px;height:226px}.home-hero__podium{width:42%;height:48px;bottom:14px}}


/* RC10 REAL WELCOME CARD REBUILD */
.home-welcome{
  display:grid;
  grid-template-columns:106px minmax(0,1fr);
  align-items:center;
  gap:10px;
  height:89px;
  padding:6px 9px;
}

.home-welcome__media{
  display:flex;
  align-items:center;
  justify-content:center;
  width:106px;
  height:74px;
  overflow:hidden;
  border-radius:7px;
  box-shadow:0 3px 7px rgba(0,0,0,.18);
}

.home-welcome__image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 48%;
  border-radius:0;
  box-shadow:none;
}

.home-welcome__copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:0 2px;
  font-size:12.15px;
  line-height:1.17;
}

.home-welcome__copy p{
  display:flex;
  flex-direction:column;
  gap:1px;
  margin:0;
  text-align:center;
}

.home-welcome__copy p span{
  display:block;
  white-space:nowrap;
}

.home-welcome__rule{
  display:block;
  position:relative;
  width:76%;
  height:8px;
  margin:1px auto;
  background:none;
}

.home-welcome__rule::before,
.home-welcome__rule::after{
  content:"";
  position:absolute;
  top:50%;
  width:42%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(73,42,22,.58));
}

.home-welcome__rule::before{
  left:0;
  transform:translateY(-50%);
}

.home-welcome__rule::after{
  right:0;
  transform:translateY(-50%) scaleX(-1);
}

.home-welcome__rule i{
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  transform:translate(-50%,-50%) rotate(45deg);
  border:1px solid rgba(91,43,22,.72);
  border-left-color:transparent;
  border-bottom-color:transparent;
}

@media(max-width:340px){
  .home-welcome{
    grid-template-columns:90px minmax(0,1fr);
    height:80px;
    gap:7px;
    padding:5px 7px;
  }
  .home-welcome__media{
    width:90px;
    height:64px;
  }
  .home-welcome__copy{
    font-size:10.55px;
    line-height:1.14;
  }
  .home-welcome__rule{
    width:72%;
    height:7px;
  }
}

@media(min-width:341px) and (max-width:374px){
  .home-welcome{
    grid-template-columns:96px minmax(0,1fr);
    height:84px;
    gap:8px;
    padding:6px 8px;
  }
  .home-welcome__media{
    width:96px;
    height:68px;
  }
  .home-welcome__copy{
    font-size:11.2px;
    line-height:1.16;
  }
}

@media(min-width:375px) and (max-width:399px){
  .home-welcome{
    grid-template-columns:102px minmax(0,1fr);
    height:87px;
  }
  .home-welcome__media{
    width:102px;
    height:72px;
  }
  .home-welcome__copy{
    font-size:11.75px;
  }
}

@media(min-width:400px) and (max-width:430px){
  .home-welcome{
    grid-template-columns:106px minmax(0,1fr);
    height:89px;
  }
  .home-welcome__media{
    width:106px;
    height:74px;
  }
}

@media(min-width:700px){
  .home-welcome{
    grid-template-columns:210px 1fr;
    height:160px;
    gap:24px;
    padding:14px 20px;
  }
  .home-welcome__media{
    width:210px;
    height:118px;
  }
  .home-welcome__copy{
    font-size:26px;
    line-height:1.24;
  }
  .home-welcome__rule{
    width:72%;
    height:12px;
    margin:4px auto;
  }
}


/* RC11 REAL INTRO CARD REBUILD */
.home-intro{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:234px;
  padding:9px 11px 8px;
}

.home-intro__content-wrap{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  min-height:0;
  overflow:hidden;
}

.home-intro__content{
  width:100%;
  max-height:184px;
  overflow:hidden;
  text-align:center;
  font-size:12px;
  line-height:1.245;
}

.home-intro__content h1,
.home-intro__content h2,
.home-intro__content h3{
  margin:0 0 5px;
  color:#7b160f;
  font-size:15px;
  line-height:1.1;
  font-weight:900;
}

.home-intro__content p{
  margin:0;
}

.home-intro__content strong,
.home-intro__content b{
  font-weight:800;
}

.home-intro__action{
  display:flex;
  justify-content:center;
  align-items:center;
  flex:0 0 auto;
  padding-top:7px;
}

.home-profile-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:138px;
  height:27px;
  margin:0;
  padding:0 16px;
  border:2px solid #fff;
  border-radius:18px;
  background:#00164d;
  box-shadow:
    0 5px 11px rgba(0,0,0,.23),
    0 0 12px rgba(255,214,64,.45);
  color:#fff!important;
  font-size:12.6px;
  line-height:23px;
  font-weight:900;
  text-decoration:none;
}

.home-profile-btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:15px;
  height:15px;
  font-size:12px;
  line-height:1;
}

@media(max-width:340px){
  .home-intro{
    min-height:216px;
    padding:8px 9px 7px;
  }
  .home-intro__content{
    max-height:168px;
    font-size:11.15px;
    line-height:1.22;
  }
  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{
    font-size:13.8px;
  }
  .home-profile-btn{
    min-width:132px;
    height:26px;
    padding:0 14px;
    font-size:12px;
  }
}

@media(min-width:341px) and (max-width:374px){
  .home-intro{
    min-height:224px;
    padding:9px 10px 8px;
  }
  .home-intro__content{
    max-height:176px;
    font-size:11.6px;
    line-height:1.235;
  }
  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{
    font-size:14.4px;
  }
}

@media(min-width:375px) and (max-width:399px){
  .home-intro{
    min-height:230px;
  }
  .home-intro__content{
    max-height:181px;
    font-size:11.85px;
    line-height:1.24;
  }
}

@media(min-width:400px) and (max-width:430px){
  .home-intro{
    min-height:234px;
  }
  .home-intro__content{
    max-height:184px;
  }
}

@media(min-width:700px){
  .home-intro{
    min-height:auto;
    padding:23px 20px 22px;
  }
  .home-intro__content{
    max-height:none;
    font-size:21px;
    line-height:1.48;
  }
  .home-intro__content h1,
  .home-intro__content h2,
  .home-intro__content h3{
    font-size:30px;
    line-height:1.15;
  }
  .home-intro__action{
    padding-top:14px;
  }
  .home-profile-btn{
    min-width:210px;
    height:48px;
    padding:0 30px;
    font-size:22px;
  }
  .home-profile-btn__icon{
    width:22px;
    height:22px;
    font-size:18px;
  }
}


/* RC12 REAL LUCKY NUMBER REBUILD */
.home-lucky__titlebar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:calc(100% - 20px);
  max-width:412px;
  height:33px;
  margin:6px auto;
  padding:4px 7px;
  border:2px solid #ffe600;
  border-radius:10px;
  background:linear-gradient(180deg,#ff168d,#f50086 62%,#d80072);
  box-shadow:0 2px 7px rgba(0,0,0,.18);
  contain:layout paint;
}

.home-lucky__title{
  flex:0 1 auto;
  width:auto;
  max-width:none;
  height:auto;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  color:#fff;
  font-size:16.2px;
  line-height:1.1;
  font-weight:900;
  white-space:nowrap;
}

.home-lucky__star{
  flex:0 0 auto;
  font-size:13px;
  line-height:1;
}

.home-lucky__card{
  overflow:hidden;
}

.home-lucky__top{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:75px;
  background:linear-gradient(180deg,rgba(255,247,232,.9),rgba(255,214,160,.76));
}

.home-lucky__cell{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  padding:6px 5px;
  overflow:hidden;
  background:transparent;
}

.home-lucky__cell + .home-lucky__cell{
  border-left:1px solid rgba(110,70,40,.22);
}

.home-lucky__label{
  margin:0 0 6px;
  color:#111;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
}

.home-lucky__value{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:37px;
  color:#111;
  font-size:17.2px;
  line-height:1.15;
  font-weight:800;
  text-align:center;
}

.home-lucky__golden-wrap{
  display:flex;
  justify-content:center;
  padding:0 0 6px;
}

.home-lucky__golden{
  width:50%;
  min-height:56px;
  margin:0;
  padding:6px 5px;
  overflow:hidden;
  border-radius:11px;
  background:rgba(255,229,184,.38);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  text-align:center;
}

.home-lucky__golden-label{
  margin:0 0 6px;
  color:#d50000;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
}

.home-lucky__golden-value{
  color:#111;
  font-size:17.2px;
  line-height:1.1;
  font-weight:800;
  text-align:center;
}

@media(max-width:340px){
  .home-lucky__titlebar{
    height:31px;
    gap:4px;
    padding:3px 5px;
  }
  .home-lucky__title{
    font-size:14px;
  }
  .home-lucky__star{
    font-size:11px;
  }
  .home-lucky__top{
    min-height:71px;
  }
  .home-lucky__label,
  .home-lucky__golden-label{
    font-size:11.2px;
  }
  .home-lucky__value,
  .home-lucky__golden-value{
    font-size:16px;
  }
  .home-lucky__golden{
    width:54%;
    min-height:53px;
  }
}

@media(min-width:341px) and (max-width:374px){
  .home-lucky__titlebar{
    height:32px;
    gap:5px;
  }
  .home-lucky__title{
    font-size:14.9px;
  }
  .home-lucky__star{
    font-size:12px;
  }
  .home-lucky__golden{
    width:52%;
  }
}

@media(min-width:375px) and (max-width:430px){
  .home-lucky__titlebar{
    height:33px;
  }
}

@media(min-width:700px){
  .home-lucky__titlebar{
    max-width:760px;
    height:64px;
    gap:12px;
  }
  .home-lucky__title{
    font-size:29px;
  }
  .home-lucky__star{
    font-size:22px;
  }
  .home-lucky__top{
    min-height:120px;
  }
  .home-lucky__label,
  .home-lucky__golden-label{
    font-size:20px;
  }
  .home-lucky__value,
  .home-lucky__golden-value{
    font-size:28px;
  }
  .home-lucky__golden{
    width:42%;
    min-height:86px;
    padding:12px 10px;
  }
}

/* RC13 FINAL PIXEL CONSISTENCY */
.home-hero,.home-welcome,.home-intro,.home-lucky__titlebar,.home-lucky__card{
  box-sizing:border-box;
  border-left-width:2px;
  border-right-width:2px;
}
.home-hero,.home-welcome,.home-intro{background-clip:padding-box;}
.home-hero{margin-bottom:6px;}
.home-welcome,.home-intro,.home-lucky__titlebar{margin-top:6px;margin-bottom:6px;}
.home-lucky__card{margin-top:0;margin-bottom:7px;}
.home-welcome,.home-intro,.home-lucky__titlebar,.home-lucky__card{
  box-shadow:0 2px 7px rgba(0,0,0,.20);
}
.home-hero__logo,.home-welcome__image{-webkit-user-drag:none;user-select:none;}
.home-welcome__copy,.home-intro__content,.home-lucky__title,.home-lucky__label,
.home-lucky__value,.home-lucky__golden-label,.home-lucky__golden-value{
  text-rendering:optimizeLegibility;
}
.home-lucky__value,.home-lucky__golden-value{overflow-wrap:anywhere;}
@media(min-width:375px) and (max-width:430px){
  .home-reference{padding-bottom:0;}
  .home-hero{height:180px;}
  .home-welcome{height:89px;}
  .home-intro{min-height:234px;}
  .home-lucky__titlebar{height:33px;}
  .home-lucky__top{min-height:75px;}
}
@media(max-width:374px){
  .home-welcome__copy p span{white-space:normal;}
}
@media(min-width:700px){
  .home-hero,.home-welcome,.home-intro,.home-lucky__titlebar,.home-lucky__card{
    margin-left:auto;
    margin-right:auto;
  }
}

/* RC14 FINAL ACCEPTANCE PASS */
@media (min-width:375px) and (max-width:430px){
  .home-hero{
    height:180px;
    padding-top:7px;
    padding-bottom:7px;
  }
  .home-hero__tagline{
    margin-bottom:3px;
    font-size:13.8px;
    line-height:1.18;
  }
  .home-hero__logo{
    width:133px;
    height:133px;
  }
  .home-hero__podium{
    width:49%;
    height:26px;
    bottom:7px;
  }

  .home-welcome{
    grid-template-columns:104px minmax(0,1fr);
    height:89px;
    gap:10px;
    padding:6px 9px;
  }
  .home-welcome__media{
    width:104px;
    height:73px;
  }
  .home-welcome__copy{
    font-size:12px;
    line-height:1.18;
  }

  .home-intro{
    min-height:234px;
    padding:9px 11px 8px;
  }
  .home-intro__content{
    max-height:184px;
    font-size:12px;
    line-height:1.245;
  }

  .home-lucky__titlebar{
    height:33px;
    gap:6px;
  }
  .home-lucky__title{
    font-size:16.2px;
  }
  .home-lucky__top{
    min-height:75px;
  }
  .home-lucky__golden{
    width:50%;
    min-height:56px;
  }
}

/* lock rebuilt homepage against inherited legacy CSS */
body.home-page .home-hero,
body.home-page .home-welcome,
body.home-page .home-intro,
body.home-page .home-lucky__titlebar,
body.home-page .home-lucky__card{
  box-sizing:border-box;
  margin-left:auto;
  margin-right:auto;
}

body.home-page .home-reference img{
  max-width:none;
}

body.home-page .home-reference a,
body.home-page .home-lucky a{
  text-decoration:none;
}

body.home-page .home-welcome,
body.home-page .home-intro,
body.home-page .home-lucky__titlebar,
body.home-page .home-lucky__card{
  box-shadow:0 2px 7px rgba(0,0,0,.20);
}

body.home-page .home-hero__logo,
body.home-page .home-welcome__image{
  user-select:none;
  -webkit-user-drag:none;
}

body.home-page .home-lucky__value,
body.home-page .home-lucky__golden-value{
  overflow-wrap:anywhere;
}

/* RC15 HOTFIX */
.home-lucky__top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.home-lucky__cell{min-width:0;overflow:hidden}
.home-lucky__value{display:block;width:100%;height:auto;min-height:38px;max-height:82px;overflow:auto;padding:0 4px 2px;font-size:14.5px;line-height:1.16;white-space:normal;word-break:break-word;overflow-wrap:anywhere;text-align:center;scrollbar-width:none}
.home-lucky__value::-webkit-scrollbar{display:none}
.home-lucky__golden-value{display:block;width:100%;max-height:48px;overflow:hidden;white-space:normal;word-break:break-word;overflow-wrap:anywhere}
@media(max-width:430px){.home-lucky__top{min-height:108px}.home-lucky__cell{padding:7px 4px 5px}.home-lucky__golden-wrap{padding-top:4px}}

/* RC16 LUCKY SINGLE RESULT */
.home-lucky__top{min-height:79px}
.home-lucky__cell{justify-content:flex-start}
.home-lucky__value{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;max-height:40px;overflow:hidden;padding:0 6px;font-size:18px;line-height:1.15;font-weight:800;white-space:normal;word-break:normal;overflow-wrap:normal;text-align:center}
@media(max-width:430px){.home-lucky__top{min-height:79px}.home-lucky__value{min-height:40px;max-height:40px;font-size:17px}}

/* RC17 PIXEL-PERFECT REFERENCE PASS */
.home-hero{background:radial-gradient(circle at 23% 40%,rgba(255,255,255,.72) 0 1px,transparent 2.8px),radial-gradient(circle at 79% 41%,rgba(255,255,255,.84) 0 1.1px,transparent 2.9px),radial-gradient(ellipse at 50% 79%,rgba(255,255,255,.62) 0 18%,rgba(255,228,184,.98) 40%,#ffcc99 100%)}
.home-hero__podium{width:55%;height:29px;bottom:7px;background:radial-gradient(ellipse at 50% 22%,#fff7e9 0 23%,#ffe0b3 45%,#efa55f 100%);box-shadow:0 7px 14px rgba(145,80,24,.20),inset 0 2px 6px rgba(255,255,255,.82)}
.home-hero__logo{width:142px;height:142px;transform:translateY(-1px)}
.home-welcome__copy{font-size:12.35px;line-height:1.18}
.home-welcome__copy p{gap:0}
.home-welcome__rule{width:78%;height:9px;margin:1px auto}
.home-welcome__rule::before,.home-welcome__rule::after{width:40%}
.home-welcome__rule i{width:auto;height:auto;border:0;transform:translate(-50%,-52%)}
.home-welcome__rule i::before{content:"❦";display:block;color:#5b2b16;font-size:12px;line-height:1}
.home-intro{min-height:244px;padding:10px 12px 10px}
.home-intro__content{max-height:191px;font-size:12.35px;line-height:1.265}
.home-intro__content h1,.home-intro__content h2,.home-intro__content h3{margin-bottom:6px;font-size:15.4px;line-height:1.12}
.home-intro__action{padding-top:8px}
.home-profile-btn{min-width:143px;height:29px;padding:0 17px;font-size:13px;line-height:25px}
.home-lucky__titlebar{height:34px}
.home-lucky__title{font-size:16.5px}
.home-lucky__top{min-height:76px}
.home-lucky__cell{padding:7px 5px 4px}
.home-lucky__label{margin-bottom:7px;font-size:12.2px}
.home-lucky__value{min-height:38px;max-height:38px;font-size:17.5px}
.home-lucky__golden-wrap{padding-top:0;padding-bottom:6px}
.home-lucky__golden{width:52%;min-height:55px;padding:6px 5px}
.home-lucky__golden-label{margin-bottom:6px;font-size:12.2px}
.home-lucky__golden-value{font-size:17.5px}
@media(min-width:341px) and (max-width:374px){
  .home-hero{height:176px;padding-top:7px}
  .home-hero__tagline{font-size:13.45px;margin-bottom:2px}
  .home-hero__logo{width:136px;height:136px}
  .home-hero__podium{width:56%;height:27px}
  .home-welcome{grid-template-columns:98px minmax(0,1fr);height:85px;gap:8px;padding:6px 8px}
  .home-welcome__media{width:98px;height:69px}
  .home-welcome__copy{font-size:11.45px}
  .home-intro{min-height:231px;padding:9px 10px 9px}
  .home-intro__content{max-height:180px;font-size:11.85px;line-height:1.255}
  .home-intro__content h1,.home-intro__content h2,.home-intro__content h3{font-size:14.6px}
  .home-lucky__titlebar{height:32px}
  .home-lucky__title{font-size:15px}
  .home-lucky__value{font-size:16.8px}
}
@media(min-width:400px) and (max-width:430px){
  .home-hero{height:182px}
  .home-hero__logo{width:145px;height:145px}
  .home-welcome{height:90px}
  .home-intro{min-height:246px}
}

/* FINAL HOMEPAGE FUNCTIONAL FIXES */
.home-lucky__value{
  position:relative;
  overflow:hidden;
  will-change:transform,opacity;
}

.home-lucky__ticker.is-leaving{
  animation:homeLuckyLeave .28s ease forwards;
}

.home-lucky__ticker.is-entering{
  animation:homeLuckyEnter .34s ease forwards;
}

@keyframes homeLuckyLeave{
  from{transform:translateY(0);opacity:1}
  to{transform:translateY(-75%);opacity:0}
}

@keyframes homeLuckyEnter{
  from{transform:translateY(75%);opacity:0}
  to{transform:translateY(0);opacity:1}
}

/* Keep Download and Refresh fixed like the stable V16 behavior */
body.home-page{
  padding-bottom:58px;
}

body.home-page > .download_apk_btn,
body.home-page > .refresh{
  display:inline-flex!important;
  position:fixed!important;
  bottom:10px!important;
  z-index:9999!important;
  min-height:38px!important;
  height:auto!important;
  padding:6px 12px!important;
  border:3px solid #fff!important;
  border-radius:17px!important;
  background:#00024f!important;
  color:#fff!important;
  box-shadow:0 4px 10px rgba(0,0,0,.28)!important;
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:900!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

body.home-page > .download_apk_btn{
  left:10px!important;
  right:auto!important;
}

body.home-page > .refresh{
  right:10px!important;
  left:auto!important;
}

@media(max-width:374px){
  body.home-page{
    padding-bottom:55px;
  }

  body.home-page > .download_apk_btn,
  body.home-page > .refresh{
    min-height:36px!important;
    padding:5px 10px!important;
    font-size:12px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .home-lucky__ticker.is-leaving,
  .home-lucky__ticker.is-entering{
    animation:none!important;
  }
}

/* V16 NOTICE BOARD — RED + GOLD PREMIUM (SCOPED ONLY) */

/* =========================================================
   V16 FINAL CORRECTION — PART B1: DESKTOP SIDE BACKGROUND
   Remove black side gutters while keeping footer controls unchanged.
   ========================================================= */
body.home-page,
body.home-page .home-reference,
body.home-page .home-lucky{
  background-color:#fdca9f !important;
}

/* Keep section wrappers transparent so the original V16 peach canvas
   continues behind narrow/max-width homepage cards and Notice Board. */
body.home-page .home-reference > main,
body.home-page .home-reference .home-main,
body.home-page .notice-board-premium{
  background-color:transparent !important;
}

@media (min-width:768px){
  body.home-page,
  body.home-page .home-reference,
  body.home-page .home-lucky{
    width:100% !important;
    min-width:100% !important;
    background-color:#fdca9f !important;
  }
}

/* =========================================================
   V16 FINAL CORRECTION — PART B2/B3
   Footer continuity + clean floating controls without an extra theme band.
   ========================================================= */
body.home-page{
  padding-bottom:0 !important;
}

/* The controls are direct floating links; no fixed wrapper/background layer. */
body.home-page > .download_apk_btn,
body.home-page > .refresh{
  margin:0 !important;
  background-clip:padding-box !important;
}

/* Prevent a synthetic empty band after the final homepage/footer section. */
body.home-page .home-reference,
body.home-page .home-main,
body.home-page footer,
body.home-page .footer,
body.home-page .footer-area,
body.home-page .footer-section{
  margin-bottom:0 !important;
}

@supports (padding: max(0px)){
  body.home-page{
    padding-bottom:env(safe-area-inset-bottom, 0px) !important;
  }
  body.home-page > .download_apk_btn,
  body.home-page > .refresh{
    bottom:max(10px, env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* =========================================================
   V16 NOTICE BOARD — STEP 7 CANONICAL CONSOLIDATED CSS
   Single authoritative block. Do not append phase overrides below this block.
   ========================================================= */
.notice-board-premium.notice-board-premium--reference{
  --nb-gold:#f7c941;
  --nb-gold-light:#ffe995;
  --nb-gold-deep:#a95d00;
  width:min(calc(100% - 16px),760px);
  margin:18px auto 14px;
  position:relative;
  isolation:isolate;
  color:#fff8e8;
  font-family:Arial,"Noto Sans Devanagari",sans-serif;
  background:transparent!important;
}
.notice-board-premium.notice-board-premium--reference,
.notice-board-premium.notice-board-premium--reference *{box-sizing:border-box}

.notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
  position:relative;
  overflow:visible;
  padding:76px 12px 12px;
  border:3px solid var(--nb-gold);
  border-radius:24px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,224,113,.22) 0%,rgba(255,184,38,.08) 28%,transparent 48%),
    radial-gradient(circle at 8% 54%,rgba(255,57,35,.16),transparent 32%),
    radial-gradient(circle at 92% 58%,rgba(255,57,35,.13),transparent 32%),
    linear-gradient(180deg,#9e0c0c 0%,#760505 44%,#5b0202 100%);
  box-shadow:
    0 0 0 2px #701010 inset,
    0 0 0 5px rgba(89,0,0,.72) inset,
    0 0 20px rgba(255,181,24,.48),
    0 10px 24px rgba(56,0,0,.35);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__frame::before{
  content:"";
  position:absolute;
  inset:8px;
  z-index:0;
  pointer-events:none;
  border:1px solid rgba(255,224,112,.82);
  border-radius:16px;
  box-shadow:0 0 12px rgba(255,188,25,.15) inset;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__frame::after{
  content:"✦  ◇  ✦";
  position:absolute;
  top:54px;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  color:#e3b72d;
  font-size:11px;
  letter-spacing:12px;
  white-space:nowrap;
  text-shadow:0 0 5px rgba(255,183,0,.8);
  pointer-events:none;
}

.notice-board-premium.notice-board-premium--reference .notice-board-premium__header{
  position:absolute;
  z-index:5;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  width:min(82%,560px);
  min-height:72px;
  padding:18px 70px 10px;
  display:grid;
  grid-template-columns:minmax(48px,1fr) 20px auto 20px minmax(48px,1fr);
  align-items:center;
  justify-items:center;
  column-gap:8px;
  border:3px solid var(--nb-gold);
  border-radius:26px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,230,125,.23),transparent 47%),
    linear-gradient(180deg,#b91a1a 0%,#870808 55%,#9d0c0c 100%);
  box-shadow:
    0 0 0 3px #6f0909 inset,
    0 0 0 5px rgba(248,199,56,.20),
    0 0 16px rgba(255,184,0,.76),
    0 8px 13px rgba(65,0,0,.42);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__header::after{
  content:"";
  position:absolute;
  left:5%;right:5%;bottom:-7px;height:7px;
  border-radius:50%;
  background:linear-gradient(90deg,transparent,var(--nb-gold-light) 20%,#ffbd17 50%,var(--nb-gold-light) 80%,transparent);
  box-shadow:0 0 9px #ffb300;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__title{
  grid-column:3;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffe79b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:36px;
  line-height:1;
  font-weight:900;
  letter-spacing:1.2px;
  white-space:nowrap;
  text-shadow:0 2px 0 #6a1700,0 0 8px #ffc126;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
  position:absolute;
  top:-29px;
  left:50%;
  transform:translateX(-50%);
  width:50px;height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid var(--nb-gold-light);
  border-radius:50%;
  background:radial-gradient(circle at 35% 27%,#fff7bd 0%,#ffd441 27%,#e99100 61%,#783200 100%);
  box-shadow:0 0 0 5px rgba(126,10,10,.94),0 0 12px #ffb400;
  font-size:27px;
  line-height:1;
  filter:drop-shadow(0 2px 2px rgba(74,16,0,.55));
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__title>span:last-child{display:block}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__star{
  color:#ffe13c;
  font-size:22px;
  line-height:1;
  text-shadow:0 0 6px #ffae00;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__star:nth-of-type(2){grid-column:2}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__star:nth-of-type(3){grid-column:4}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament{
  width:100%;
  overflow:hidden;
  color:#efc742;
  font-size:13px;
  line-height:1;
  white-space:nowrap;
  text-align:center;
  text-shadow:0 0 5px #ffae00;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament:first-child{grid-column:1}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament:last-child{grid-column:5}

.notice-board-premium.notice-board-premium--reference .notice-board-premium__body{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px;
  min-width:0;
  padding:20px 17px 14px;
  border:1px solid rgba(255,213,70,.58);
  border-radius:15px;
  background:linear-gradient(180deg,rgba(118,0,0,.32),rgba(61,0,0,.18));
  box-shadow:0 0 12px rgba(255,174,0,.08) inset;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail{
  display:grid;
  grid-template-rows:repeat(6,minmax(52px,1fr));
  align-items:stretch;
  gap:7px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail>span{
  align-self:center;
  justify-self:center;
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--nb-gold);
  border-radius:50%;
  background:radial-gradient(circle at 34% 25%,#d72d2d 0%,#8a0909 43%,#4a0000 76%,#260000 100%);
  box-shadow:0 3px 8px rgba(0,0,0,.36),0 0 0 3px rgba(98,0,0,.8),0 0 9px rgba(255,187,0,.28) inset;
  font-size:28px;
  line-height:1;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message{
  min-width:0;
  max-width:100%;
  color:#fff8ea;
  font-size:16.5px;
  line-height:1.5;
  font-weight:700;
  text-align:left;
  overflow-wrap:anywhere;
  text-shadow:0 1px 1px rgba(44,0,0,.30);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message *{max-width:100%}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>p,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>div,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>li{
  position:relative;
  min-height:52px;
  margin:0;
  padding:7px 0 10px;
  border-bottom:1px dotted rgba(255,199,48,.60);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>:first-child{padding-top:2px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>:last-child{border-bottom:0;padding-bottom:2px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message p,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message div,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message li{margin-top:0;margin-bottom:0}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message strong,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message b,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message a,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message span[style*="color"],
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message font{
  color:#ffdb3d!important;
  font-weight:900!important;
  text-shadow:0 0 3px rgba(255,177,0,.35);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message a{text-decoration:none}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message img,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message iframe,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message video,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message table{max-width:100%;height:auto}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message pre,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message code{white-space:pre-wrap;word-break:break-word}

.notice-board-premium.notice-board-premium--reference .notice-board-premium__features{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:0;
  min-width:0;
  min-height:76px;
  margin-top:11px;
  padding:8px 6px;
  border:2px solid var(--nb-gold);
  border-radius:15px;
  background:radial-gradient(ellipse at 50% 0%,rgba(255,210,76,.14),transparent 54%),linear-gradient(180deg,#861414,#570404);
  box-shadow:0 0 0 2px rgba(95,0,0,.66) inset,0 0 11px rgba(255,187,0,.30) inset;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{
  position:relative;
  min-width:0;
  min-height:58px;
  padding:4px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#fff8df;
  text-align:center;
  font-size:10.5px;
  line-height:1.18;
  font-weight:900;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__feature:not(:last-of-type)::after{
  content:"";
  position:absolute;
  right:0;
  top:8px;
  bottom:8px;
  width:1px;
  background:linear-gradient(transparent,var(--nb-gold-light) 20%,var(--nb-gold) 50%,var(--nb-gold-light) 80%,transparent);
  box-shadow:1px 0 0 rgba(97,25,0,.42);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{
  font-size:27px;
  line-height:1;
  filter:drop-shadow(0 0 4px #ffc628);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__divider{display:none}

@media (min-width:900px){
  .notice-board-premium.notice-board-premium--reference{width:min(calc(100% - 24px),790px)}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{padding:80px 15px 15px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__header{width:min(76%,575px)}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__body{grid-template-columns:70px minmax(0,1fr);padding:22px 20px 16px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail>span{width:58px;height:58px;font-size:30px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message{font-size:17px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__features{min-height:82px;padding:9px 8px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{font-size:11.5px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{font-size:30px}
}

@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference{width:calc(100% - 10px);margin:16px auto 12px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{padding:67px 7px 9px;border-radius:18px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame::after{top:45px;font-size:9px;letter-spacing:7px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__header{
    width:84%;
    min-height:60px;
    padding:15px 34px 8px;
    grid-template-columns:minmax(25px,1fr) 15px auto 15px minmax(25px,1fr);
    column-gap:4px;
    border-radius:21px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__title{font-size:27px;letter-spacing:.8px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{top:-23px;width:41px;height:41px;font-size:22px;border-width:2px;box-shadow:0 0 0 4px rgba(126,10,10,.94),0 0 10px #ffb400}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__star{font-size:16px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament{font-size:8px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__body{grid-template-columns:49px minmax(0,1fr);gap:7px;padding:14px 9px 10px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail{grid-template-rows:repeat(6,minmax(43px,1fr));gap:5px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail>span{width:42px;height:42px;font-size:22px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message{font-size:13.5px;line-height:1.48}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message>p,
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message>div,
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message>li{min-height:43px;padding:5px 0 8px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__features{min-height:67px;margin-top:8px;padding:5px 2px;border-radius:12px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{min-height:54px;padding:2px 3px;gap:3px;font-size:7.9px;line-height:1.12}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{font-size:21px}
}

@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__header{width:87%;padding-left:25px;padding-right:25px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__title{font-size:23px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament{display:none}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__body{grid-template-columns:44px minmax(0,1fr)}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail>span{width:38px;height:38px;font-size:20px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message{font-size:12.5px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{font-size:7.1px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{font-size:19px}
}
   NOTICE BOARD FINAL MATCH — G1 HEADER PROPORTION
   Scoped canonical refinement: plaque, bell, title, ornaments only.
   ========================================================= */
.notice-board-premium.notice-board-premium--reference .notice-board-premium__header{
  width:min(82%,620px);
  min-height:76px;
  padding:22px 52px 11px;
  grid-template-columns:minmax(48px,1fr) 24px auto 24px minmax(48px,1fr);
  column-gap:8px;
  border-radius:28px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
  top:-31px;
  width:54px;
  height:54px;
  font-size:29px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__title{
  font-size:39px;
  letter-spacing:1.35px;
  transform:translateY(2px);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__star{
  font-size:23px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament{
  font-size:14px;
  opacity:.98;
}

@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
    padding-top:72px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__header{
    width:88%;
    min-height:66px;
    padding:18px 29px 9px;
    grid-template-columns:minmax(28px,1fr) 17px auto 17px minmax(28px,1fr);
    column-gap:5px;
    border-radius:23px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
    top:-26px;
    width:46px;
    height:46px;
    font-size:25px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__title{
    font-size:31px;
    letter-spacing:.95px;
    transform:translateY(2px);
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__star{
    font-size:18px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__ornament{
    font-size:9px;
  }
}

@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__header{
    width:90%;
    padding-left:22px;
    padding-right:22px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__title{
    font-size:26px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
    width:43px;
    height:43px;
    top:-24px;
    font-size:23px;
  }
}
   NOTICE BOARD FINAL MATCH — G2 BODY WIDTH & INNER SPACING
   Scope: card/body proportions only. Header and feature strip untouched.
   ========================================================= */
.notice-board-premium.notice-board-premium--reference{
  width:min(calc(100% - 12px),840px);
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
  padding-left:10px;
  padding-right:10px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__body{
  grid-template-columns:66px minmax(0,1fr);
  gap:11px;
  padding:20px 18px 14px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message{
  letter-spacing:-.08px;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>p,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>div,
.notice-board-premium.notice-board-premium--reference .notice-board-premium__message>li{
  padding-top:6px;
  padding-bottom:9px;
}

@media (min-width:900px){
  .notice-board-premium.notice-board-premium--reference{
    width:min(calc(100% - 20px),860px);
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
    padding-left:13px;
    padding-right:13px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__body{
    grid-template-columns:72px minmax(0,1fr);
    gap:14px;
    padding:23px 24px 17px;
  }
}

@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference{
    width:calc(100% - 6px);
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
    padding-left:5px;
    padding-right:5px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__body{
    grid-template-columns:48px minmax(0,1fr);
    gap:7px;
    padding:15px 9px 10px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message>p,
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message>div,
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__message>li{
    padding-top:5px;
    padding-bottom:7px;
  }
}

@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__body{
    grid-template-columns:43px minmax(0,1fr);
    gap:6px;
    padding-left:7px;
    padding-right:7px;
  }
}

/* ================================================================
   NOTICE BOARD FINAL MATCH — G3 ICON BADGE OPTICAL REFINEMENT
   Scoped final sizing and optical centering for the six notice icons.
   ================================================================ */
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span{
  width:58px;
  height:58px;
  min-width:58px;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transform:none;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(1){font-size:34px;padding-top:1px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(2){font-size:31px;padding-bottom:1px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(3){font-size:31px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(4){font-size:34px;padding-top:1px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(5){font-size:32px}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(6){font-size:31px;padding-left:1px}

@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(1){font-size:27px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(2){font-size:24px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(3){font-size:24px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(4){font-size:27px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(5){font-size:25px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span:nth-child(6){font-size:24px}
}

@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__icon-rail > span{
    width:39px;
    height:39px;
    min-width:39px;
    min-height:39px;
  }
}
/* G4 — Final feature-strip proportion and alignment polish */
.notice-board-premium.notice-board-premium--reference .notice-board-premium__features{
  min-height:84px;
  padding:9px 8px 8px;
  border-width:2px;
  border-radius:16px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,224,108,.18),transparent 56%),
    linear-gradient(180deg,#8f1717 0%,#650707 58%,#4b0202 100%);
  box-shadow:
    0 0 0 2px rgba(96,0,0,.72) inset,
    0 1px 0 rgba(255,230,135,.34) inset,
    0 0 13px rgba(255,187,0,.26) inset;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{
  min-height:64px;
  padding:4px 10px 3px;
  gap:5px;
  font-size:11.25px;
  line-height:1.16;
  justify-content:center;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{
  font-size:31px;
  line-height:.95;
  transform:translateY(-1px);
  filter:drop-shadow(0 1px 0 rgba(92,22,0,.72)) drop-shadow(0 0 4px rgba(255,198,40,.78));
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__feature:not(:last-of-type)::after{
  top:7px;
  bottom:7px;
  width:1px;
  background:linear-gradient(transparent,#ffe17c 18%,#d99d12 50%,#ffe17c 82%,transparent);
  box-shadow:1px 0 0 rgba(91,20,0,.5),0 0 4px rgba(255,198,40,.25);
}
@media (min-width:900px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__features{min-height:92px;padding:10px 10px 9px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{min-height:70px;padding:5px 14px 4px;gap:6px;font-size:12px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{font-size:34px}
}
@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__features{min-height:72px;margin-top:9px;padding:6px 2px 5px;border-radius:13px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{min-height:58px;padding:2px 4px 1px;gap:4px;font-size:8.25px;line-height:1.12}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{font-size:24px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature:not(:last-of-type)::after{top:6px;bottom:6px}
}
@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature{font-size:7.35px;padding-left:2px;padding-right:2px}
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__feature-icon{font-size:21px}
}

/* =========================================================
   NOTICE BOARD — FINAL BELL/TITLE SEPARATION
   Scope: marked header section only. Body and website untouched.
   ========================================================= */
.notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
  top:-48px;
  z-index:8;
}
.notice-board-premium.notice-board-premium--reference .notice-board-premium__title{
  position:relative;
  z-index:6;
  transform:none;
}

@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
    padding-top:80px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
    top:-40px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__title{
    transform:none;
  }
}

@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__frame{
    padding-top:77px;
  }
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
    top:-37px;
  }
}

/* =========================================================
   FINAL TARGETED FIX — bell clearance + homepage canvas
   Scope: move bell slightly upward and remove black homepage gutters only.
   Notice body, results, footer content and controls remain unchanged.
   ========================================================= */
body.home-page,
body.home-page .home-reference,
body.home-page .home-lucky{
  background:#ffcc99 !important;
}

.notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
  top:-54px;
}

@media (max-width:520px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
    top:-46px;
  }
}

@media (max-width:350px){
  .notice-board-premium.notice-board-premium--reference .notice-board-premium__bell{
    top:-43px;
  }
}
