:root{
  --bg:#dff4e6;
  --surface:#ecfaef;
  --surface-2:#d4f0dc;
  --ink:#07130c;
  --muted:#173c28;
  --green:#075f35;
  --green-2:#0a8a4f;
  --green-3:#c8f3d7;
  --black:#07110b;
  --gold:#d9b74a;
  --border:#08713f;
  --shadow:0 0 18px rgba(0,0,0,.28);
  --radius:10px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden}
body{background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-weight:700;font-style:italic;text-align:center;padding:3px 8px 64px;overflow-x:hidden}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.page-shell{width:100%;max-width:1180px;margin:auto}
.panel,.table-section{background:linear-gradient(180deg,var(--surface),var(--surface-2));border:2px solid var(--border);border-style:outset;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:5px;overflow:hidden}




.welcome-panel{display:flex;align-items:center;justify-content:center;gap:10px;padding:7px}
.welcome-avatar{width:55px;height:45px;border-radius:8px;background:linear-gradient(145deg,var(--green-2),var(--black));color:#fff;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 2px 8px #0005;font-style:normal}
.welcome-panel p{font-size:16px}
.intro-panel{padding:7px 10px}
.intro-panel h1{font-size:17px;color:#063e25;margin-bottom:3px;text-shadow:1px 1px #fff}
.intro-panel p{font-size:13px;line-height:1.18;color:#0d2e20}
.section-cap{background:linear-gradient(180deg,#0a8a4f,#05552f);color:#fff;padding:5px 10px;border:2px solid #fff;border-radius:12px;letter-spacing:.7px;text-shadow:1px 1px 2px #000;font-size:22px;font-style:italic}
.standalone-cap{margin:5px 0}
.lucky-panel .section-cap,.live-panel .section-cap,.link-zone .section-cap,.directory-zone .section-cap{margin-bottom:3px}
.lucky-grid{display:flex}
.lucky-grid>div{width:50%;padding:7px 5px}
.lucky-grid>div+div{border-left:1px solid var(--border)}
.lucky-grid h3{font-size:18px;color:#064d2b;text-shadow:1px 1px #fff}
.large-number{font-size:23px;color:#0a0a0a;margin-top:5px}
.scrolling-final{height:34px;overflow:hidden;color:#062f1d;font-size:13px;line-height:18px}
.scrolling-final>div{animation:verticalTicker 13s linear infinite}
@keyframes verticalTicker{0%{transform:translateY(0)}100%{transform:translateY(-92px)}}
.promo-panel{background:linear-gradient(180deg,#0b3b25,#061d13);color:#fff;padding:9px;font-style:normal}
.promo-panel strong{font-size:17px}
.promo-panel p{font-size:13px;line-height:1.35;margin-top:3px}
.pill-action{display:block;width:230px;max-width:90%;margin:8px auto 0;padding:6px;border:2px solid #fff;border-radius:18px;background:linear-gradient(90deg,#0a8a4f,#073923);color:#fff}
.live-panel{padding-bottom:4px}
.live-note{font-size:14px;padding:6px;color:#0d2e20}
.live-item{padding:6px 5px;border-top:1px solid var(--border);position:relative}
.live-item h3{font-size:22px;color:#062f1d;text-shadow:1px 1px #fff}
.live-item strong{display:block;font-size:21px;line-height:1.15;color:#6d1536;margin:2px 0}
.refresh-mini,.chart-btn{border:1px solid #d9e5dd;background:#143b73;color:#fff;padding:4px 8px;border-radius:7px;font-size:12px;font-style:normal;cursor:pointer}
.support-panel{padding:9px;background:linear-gradient(180deg,#d8f2df,#c7ebd2);font-style:normal}
.support-panel h2{font-size:18px;color:#074a2a}
.support-panel p{font-size:13px;line-height:1.35;margin:5px 0}
.support-actions{display:grid;gap:6px;max-width:360px;margin:auto}
.support-actions a{background:#6542a6;color:#fff;padding:6px;border-radius:18px}
.support-actions a:last-child{background:#8a1635}
.keyword-strip{background:linear-gradient(187deg,#e8f8ec 50%,#d1efd9 50%);border:2px solid var(--border);border-style:outset;border-radius:10px;box-shadow:var(--shadow);margin-bottom:5px;padding:6px 10px;font-size:13px;line-height:1.4;color:#062d1b}
.market-row{position:relative;padding:5px 58px;border-bottom:1px solid var(--border);min-height:70px}
.market-row:last-child{border-bottom:0}
.market-row.featured{background:#fff6a7}
.market-row h3{font-size:22px;color:#06351f;text-shadow:1px 1px #fff}
.market-result{font-size:22px;line-height:1.1;background:linear-gradient(180deg,#0e6d3f,#67072b);-webkit-background-clip:text;background-clip:text;color:transparent;margin:3px 0}
.market-time{font-size:14px;color:#101b14;font-style:normal}
.chart-btn{position:absolute;top:34px}
.chart-btn.jodi{left:8px}.chart-btn.panel{right:8px}
.contact-panel{padding:7px;display:flex;justify-content:center;gap:12px;align-items:center;flex-wrap:wrap}
.contact-panel p{font-size:19px}.contact-panel a{background:radial-gradient(#b9ffcc,#38a962);padding:5px 10px;border-radius:30px;border:1px solid var(--border);box-shadow:0 0 10px #0004;font-size:17px}
.table-title{background:linear-gradient(180deg,#0a8a4f,#05552f);color:#fff;padding:5px;border:2px solid #fff;border-radius:12px;font-size:22px;text-shadow:1px 1px #000}
table{width:100%;border-collapse:collapse;background:var(--surface);box-shadow:var(--shadow);margin:5px 0 0}
th,td{border:1px solid var(--border);padding:4px 2px;font-size:15px;text-shadow:1px 1px #fff}
th{background:#e9fff0}
.link-zone,.directory-zone{padding-bottom:1px}
.link-zone>a,.directory-zone>a{display:block;padding:6px;border-top:2px solid var(--border);font-size:20px;color:#0d3e78;background:linear-gradient(90deg,#ebfff1,#d8f5e2)}
.link-zone>a:hover,.directory-zone>a:hover{background:#c7f0d4}
.content-panel,.faq-panel,.disclaimer-panel{padding:8px 10px;font-style:normal;text-align:left}
.content-panel h2,.content-panel h3{color:#07532f;margin:6px 0;font-size:18px}
.content-panel p,.faq-panel p,.disclaimer-panel p{font-size:13px;line-height:1.45;color:#172219}
.faq-panel details{border-top:1px solid var(--border);padding:7px 2px}
.faq-panel details:first-child{border-top:0}
.faq-panel summary{cursor:pointer;color:#07452a;font-size:15px}
.disclaimer-panel{text-align:center}
.disclaimer-panel h2{font-size:18px;margin-bottom:4px}



.modal{position:fixed;inset:0;background:#0009;display:none;align-items:center;justify-content:center;padding:15px;z-index:2000}
.modal.active{display:flex}
.modal-card{width:100%;max-width:420px;background:var(--bg);border:3px solid var(--border);border-radius:12px;overflow:hidden;position:relative;box-shadow:0 10px 35px #0008;font-style:normal}
.modal-card h2{background:var(--green);color:#fff;padding:12px;font-size:18px}
.modal-card a{display:flex;justify-content:space-between;margin:10px;padding:12px;border-radius:9px;background:#fff;border-left:4px solid var(--green);font-size:15px;text-align:left}
.modal-close{position:absolute;right:10px;top:5px;border:0;background:none;color:#fff;font-size:28px;cursor:pointer}

@media(max-width:375px){.welcome-panel p{font-size:13px}.welcome-avatar{width:46px;height:40px}.lucky-grid h3{font-size:15px}.large-number{font-size:19px}.market-row h3{font-size:18px}.market-result{font-size:19px}.market-time{font-size:12px}}

/* Reference-match refinement pass */
body{font-family:Helvetica,Arial,sans-serif;font-style:italic;font-weight:700;padding-top:2px}
.page-shell{max-width:none}
.panel,.table-section{margin-bottom:4px;border-radius:10px;box-shadow:0 0 20px rgba(0,0,0,.38)}


.welcome-panel{justify-content:space-between;padding:5px 8px}.welcome-avatar{width:72px;height:56px;border-radius:6px}.welcome-panel p{flex:1;font-size:15px}
.intro-panel{padding:5px 8px}.intro-panel h1{font-size:16px}.intro-panel p{font-size:12px;line-height:1.15}
.section-cap,.table-title{font-size:21px;line-height:1.05;padding:5px 8px;border-radius:11px;margin:0 0 2px}
.live-item{padding:5px 4px}.live-item h3{font-size:21px;line-height:1}.live-item strong{font-size:20px}
.market-row{min-height:67px;padding-top:4px;padding-bottom:4px}.market-row h3{line-height:1}.market-result{line-height:1}.chart-btn{top:31px;padding:4px 7px}
th,td{padding:3px 2px;font-size:14px}.table-section{overflow:hidden}
.compact-table{margin-bottom:4px}.wheel-panel{padding-bottom:5px}.wheel-wrap{display:grid;place-items:center;padding:7px}.wheel-ring{width:210px;height:210px;border-radius:50%;display:grid;place-items:center;position:relative;background:repeating-conic-gradient(#0a8a4f 0 12deg,#d9b74a 12deg 24deg,#07110b 24deg 36deg);animation:spinWheel 12s linear infinite;box-shadow:inset 0 0 0 10px #fff,0 0 12px #0007}.wheel-ring:after{content:"";position:absolute;inset:34px;border-radius:50%;background:#dff4e6;border:6px solid #08713f}.wheel-ring span{position:relative;z-index:2;font-size:25px;color:#075f35;text-shadow:1px 1px #fff;animation:counterSpin 12s linear infinite}@keyframes spinWheel{to{transform:rotate(360deg)}}@keyframes counterSpin{to{transform:rotate(-360deg)}}
.pass-panel{overflow:hidden}.pass-title{background:#075f35;color:#fff;padding:5px;font-size:20px}.pass-date{padding:5px;font-size:14px}.pass-line{padding:5px;border-top:1px solid var(--border);background:#fff;font-size:13px;font-style:normal}
.weekly-grid{display:block}.weekly-card{padding-bottom:4px}.weekly-card h2{background:linear-gradient(90deg,#075f35,#0a8a4f);color:#fff;padding:5px;font-size:18px;text-shadow:1px 1px #000}.weekly-card p{padding:3px;font-size:16px;border-top:1px solid rgba(8,113,63,.35)}
.prediction-zone{padding-bottom:5px}.prediction-date{padding:6px;font-size:16px}.prediction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:5px;border:2px solid #08713f;border-radius:8px;overflow:hidden}.prediction-grid article{padding:5px;border-right:1px solid #08713f;border-bottom:1px solid #08713f;background:#ecfaef}.prediction-grid article:nth-child(even){border-right:0}.prediction-grid h3{background:linear-gradient(#0a8a4f,#064a2b);color:#fff;padding:6px 3px;border-radius:8px;font-size:15px;text-shadow:1px 1px #000}.prediction-grid p{font-size:13px;line-height:1.45;color:#07130c}


@media(max-width:340px){.prediction-grid{grid-template-columns:1fr}.prediction-grid article{border-right:0}}

/* Top-section screenshot matching pass */



.brand-wordmark{display:flex;align-items:flex-end;gap:4px;line-height:.9}

.welcome-panel{background:linear-gradient(180deg,#e8faed,#d7f2df)}
.welcome-avatar{position:relative;overflow:hidden;background:linear-gradient(145deg,#064326,#12a65e);border:2px solid #fff;box-shadow:0 0 0 1px #075f35,0 3px 8px #0004}
.welcome-avatar:before,.welcome-avatar:after{content:"";position:absolute;border-radius:50%;background:#f8fff9}
.welcome-avatar:before{width:18px;height:18px;top:7px;left:50%;transform:translateX(-50%)}
.welcome-avatar:after{width:38px;height:24px;bottom:-5px;left:50%;transform:translateX(-50%)}
.welcome-avatar span{position:relative;z-index:2;color:#062b19;font-size:11px;font-style:normal;margin-top:30px}
.welcome-panel p{color:#07130c;text-shadow:1px 1px #fff;line-height:1.2}
.intro-panel{background:linear-gradient(187deg,#e3f7e8 50%,#cdebd6 50%)}
.scrolling-final{height:42px;overflow:hidden;position:relative;margin:0 4px}.final-track{animation:finalTicker 14s linear infinite;font-size:13px;line-height:21px;color:#0b2b18;text-shadow:1px 1px #fff}
@keyframes finalTicker{0%{transform:translateY(0)}100%{transform:translateY(-231px)}}
.live-note{font-size:14px;color:#07130c;padding:3px 0 2px;text-shadow:1px 1px #fff}
.live-item{position:relative;border-top:1px solid rgba(8,113,63,.5)}
.live-item:first-child{border-top:0}.live-item h3{color:#0a2340;text-shadow:1px 1px #fff}.live-item strong{display:block;color:#5d1037;text-shadow:1px 1px #f7e4ea;line-height:1;margin:3px 0}
.refresh-mini{border:1px solid #e6e6e6;background:#063b23;color:#fff;padding:5px 7px;border-radius:8px;font-size:12px;margin:2px 0 -1px;box-shadow:0 2px 5px #0003}
.market-board{border-color:#075f35}.market-row{background:#eaf9ee}.market-row:nth-child(4n+2){background:#dff3e5}.market-row.featured{background:#f1ef9d}
.market-row h3{color:#0a2340;text-shadow:1px 1px #fff}.market-result{background:linear-gradient(#0b7d47,#45030a);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}.market-time{color:#111;text-shadow:1px 1px #eaffef}
.chart-btn{background:#063b23;border:1px solid #fff;box-shadow:0 0 0 1px #0b6b3d;color:#fff}.chart-btn:hover{background:#0b6b3d}
.standalone-cap{margin-bottom:2px}


/* Market-board density expansion pass */
.market-board{overflow:hidden}
.market-row{min-height:66px}
.market-row h3{font-size:21px;white-space:normal}
.market-row:nth-child(8n+1),.market-row:nth-child(8n+5){background:#eef8b8}
.market-row.featured{background:#f5ed85}
.market-row .chart-btn{min-width:43px;text-align:center}
@media(max-width:500px){.market-row{min-height:62px;padding-left:50px;padding-right:50px}.market-row h3{font-size:18px}.market-result{font-size:19px}.market-time{font-size:12px}.chart-btn{top:29px;padding:4px 6px;font-size:11px}}
.market-detail-link{color:inherit;text-decoration:none}.market-result.market-detail-link{display:block}

.table-title-link{color:inherit;text-decoration:none}.starline-more{text-align:center;margin:7px 0 10px}.starline-more a{display:inline-block;border:2px solid #063b25;border-radius:7px;background:#0b6b42;color:#fff;padding:8px 14px;font-weight:900;font-size:.8rem;text-decoration:none;box-shadow:0 2px 0 #032718}

.weekly-link{display:block;color:inherit;text-decoration:none}.weekly-link .weekly-card{height:100%}.weekly-link:active{transform:translateY(1px)}

.support-link.is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px dashed rgba(5, 94, 57, .45);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: #4d5a52;
  font-weight: 700;
  cursor: not-allowed;
}
/* Page-owned rules retained after header/footer ownership cleanup */
.content-panel,.faq-panel,.disclaimer-panel{padding:6px 8px}
@media(max-width:600px){body{padding:2px 5px 64px}.section-cap{font-size:18px}.market-row{padding-left:52px;padding-right:52px}.market-row h3,.market-result{font-size:20px}.link-zone>a,.directory-zone>a{font-size:18px}}
@media(max-width:500px){body{padding:2px 5px 62px}.section-cap,.table-title{font-size:18px}.wheel-ring{width:180px;height:180px}.prediction-grid h3{font-size:13px}.prediction-grid p{font-size:11px}.weekly-card p{font-size:15px}.welcome-avatar{width:62px;height:49px}.scrolling-final{height:40px}.final-track{font-size:12px;line-height:20px}.market-row{min-height:64px}}

/* Phase 1.2 — Welcome Image Block: reference-family layout */
.welcome-panel{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  min-height:92px;
  padding:7px 9px;
  background:linear-gradient(180deg,#e8faed 0%,#d7f2df 100%);
}
.welcome-image-wrap{
  flex:0 0 142px;
  width:142px;
  height:82px;
  overflow:hidden;
  border:1px solid #b78f28;
  border-radius:2px;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.28);
}
.welcome-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.welcome-panel p{
  flex:1;
  margin:0;
  color:#07130c;
  font-size:22px;
  line-height:1.18;
  font-style:italic;
  font-weight:700;
  text-align:center;
  text-shadow:1px 1px #fff;
}
.welcome-panel p strong{font-weight:800}
@media(max-width:600px){
  .welcome-panel{gap:10px;min-height:82px;padding:6px 8px}
  .welcome-image-wrap{flex-basis:132px;width:132px;height:72px}
  .welcome-panel p{font-size:18px;line-height:1.15}
}
@media(max-width:420px){
  .welcome-panel{gap:8px;min-height:76px;padding:5px 7px}
  .welcome-image-wrap{flex-basis:118px;width:118px;height:66px}
  .welcome-panel p{font-size:16px;line-height:1.14}
}
@media(max-width:360px){
  .welcome-image-wrap{flex-basis:104px;width:104px;height:60px}
  .welcome-panel p{font-size:14px}
}

/* Phase 1.4 — Lucky Number reference matching */
.lucky-panel{
  background:linear-gradient(180deg,#e5f8ea 0%,#d6f0de 100%);
  border-color:#08713f;
  overflow:hidden;
}
.lucky-panel .section-cap{
  margin:0;
  padding:7px 10px 8px;
  border-radius:12px 12px 10px 10px;
  font-size:24px;
  line-height:1;
  font-weight:800;
  letter-spacing:.2px;
  text-transform:none;
}
.lucky-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:126px;
  align-items:stretch;
}
.lucky-grid>div{
  width:auto !important;
  min-width:0;
  padding:9px 7px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  overflow:hidden;
}
.lucky-grid>div+div{border-left:1px solid #bd6b4c}
.lucky-grid h3{
  margin:0 0 6px;
  color:#0b3472;
  font-size:22px;
  line-height:1.05;
  font-weight:800;
  font-style:italic;
  text-shadow:1px 1px #fff;
}
.large-number{
  margin:6px 0 0;
  color:#082c69;
  font-size:31px;
  line-height:1.1;
  font-weight:800;
  font-style:italic;
  letter-spacing:.3px;
  white-space:nowrap;
}
.final-ank-list{
  width:100%;
  margin:0;
  padding:0;
  list-style:none;
  color:#102e68;
  font-size:14px;
  line-height:1.15;
  font-weight:800;
  font-style:italic;
  text-align:left;
}
.final-ank-list li{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  min-height:21px;
  padding:2px 4px;
  border-bottom:1px solid rgba(8,113,63,.18);
}
.final-ank-list li:last-child{border-bottom:0}
.final-ank-list span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.final-ank-list strong{
  color:#7c1748;
  font-size:15px;
  font-style:normal;
}
@media(max-width:500px){
  .lucky-panel .section-cap{font-size:22px;padding:6px 8px 7px}
  .lucky-grid{min-height:118px}
  .lucky-grid>div{padding:8px 5px 7px}
  .lucky-grid h3{font-size:20px;margin-bottom:5px}
  .large-number{font-size:28px;margin-top:7px}
  .final-ank-list{font-size:13px}
  .final-ank-list li{min-height:20px;padding:2px 3px}
  .final-ank-list strong{font-size:14px}
}
@media(max-width:375px){
  .lucky-panel .section-cap{font-size:20px}
  .lucky-grid{min-height:112px}
  .lucky-grid h3{font-size:18px}
  .large-number{font-size:25px}
  .final-ank-list{font-size:11.5px}
  .final-ank-list li{gap:3px;min-height:19px;padding:1px 2px}
  .final-ank-list strong{font-size:13px}
}

/* Phase 1.11: reference-family long content, FAQ and footer depth */
.homepage-long-content{padding:10px 11px;text-align:center;background:#fff9e8}
.homepage-long-content h2{margin:1px 0 7px;color:#064b2d;font-size:20px;line-height:1.18;text-transform:uppercase}
.homepage-long-content h3{margin:11px 0 4px;color:#083f27;font-size:17px;line-height:1.2}
.homepage-long-content p{margin:0 0 7px;color:#1c2a20;font-size:13px;line-height:1.5;text-align:justify;font-style:normal}
.content-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.content-highlights article{border:1px solid #0a6b3d;border-radius:7px;background:#e9f8ed;padding:8px 6px;text-align:center}
.content-highlights strong{display:block;color:#06492b;font-size:14px}
.content-highlights span{display:block;margin-top:3px;color:#26382d;font-size:11px;line-height:1.3}
.homepage-faq{padding:0 8px 7px;background:#fffdf1}
.homepage-faq .section-cap{margin:0 -8px 3px}
.homepage-faq details{margin:0;border-top:1px solid #3b8a5f;padding:0;background:transparent}
.homepage-faq summary{padding:8px 3px;color:#073f26;font-size:14px;font-weight:900;line-height:1.25}
.homepage-faq details p{margin:0;padding:0 3px 8px;color:#24352a;font-size:12px;line-height:1.45;text-align:left}
.homepage-disclaimer{padding:9px 10px;background:linear-gradient(180deg,#f7f3c8,#e9e2a8);border-color:#8c7a1a;text-align:center}
.homepage-disclaimer h2{margin:0 0 5px;color:#6d1313;font-size:18px}
.homepage-disclaimer p{margin:0 0 6px;color:#352d13;font-size:11.5px;line-height:1.45;text-align:justify}
.homepage-footer{padding:10px 9px 22px;background:linear-gradient(180deg,#e5f6e9,#cae9d3)}
.footer-brand-block{display:flex;align-items:center;justify-content:center;gap:8px;padding-bottom:8px;border-bottom:1px solid #4d9c6c;text-align:left}
.footer-brand-block img{width:70px;height:46px;object-fit:contain}
.footer-brand-block strong{margin:0!important;color:#063d25!important;font-size:18px!important;line-height:1!important}
.footer-brand-block span{display:block;margin-top:3px;color:#314c3b;font-size:11px;font-weight:700}
.footer-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;padding:10px 2px;text-align:left}
.footer-links-grid h3{margin:0 0 4px;color:#063f26;font-size:13px;text-transform:uppercase}
.footer-links-grid a{display:block;padding:2px 0;color:#0b3f78!important;font-size:11px;font-weight:800;text-decoration:none}
.footer-bottom{padding-top:8px;border-top:1px solid #4d9c6c;text-align:center}
.footer-bottom strong{margin:0 0 3px!important;font-size:13px!important}
.footer-bottom p{margin:0;font-size:10.5px!important;color:#32463a}
@media(max-width:420px){
  .homepage-long-content{padding:8px 9px}
  .homepage-long-content h2{font-size:18px}
  .homepage-long-content h3{font-size:15px}
  .homepage-long-content p{font-size:12px;line-height:1.45}
  .content-highlights{gap:5px}
  .homepage-faq summary{font-size:13px}
  .footer-brand-block img{width:62px;height:42px}
}
@media(max-width:340px){
  .content-highlights,.footer-links-grid{grid-template-columns:1fr}
  .footer-links-grid{text-align:center}
  .homepage-long-content h2{font-size:16px}
}

/* Phase 1 integration repair: shared app CTA and two-control homepage footer */
.app-download-panel .pill-action[aria-disabled="true"],
.fixed-action.app-link[aria-disabled="true"]{cursor:not-allowed;opacity:.78}
body .fixed-left.app-link{left:max(10px,env(safe-area-inset-left))}
body .fixed-right{right:max(10px,env(safe-area-inset-right))}

/* Phase 1 integration repair 2: welcome and intro content depth */
.welcome-panel{
  align-items:center;
  min-height:82px;
}
.welcome-panel p{
  margin:0;
  font-size:clamp(15px,3.7vw,20px);
  font-style:italic;
  font-weight:700;
  line-height:1.22;
  text-align:center;
}
.intro-panel{
  padding:7px 10px 8px;
  text-align:center;
}
.intro-panel h1{
  margin:0 0 4px;
  font-size:clamp(17px,4.2vw,22px);
  font-style:italic;
  font-weight:800;
  line-height:1.12;
}
.intro-panel p{
  margin:0;
  font-size:clamp(13px,3.25vw,17px);
  font-style:italic;
  font-weight:600;
  line-height:1.16;
}
@media(max-width:420px){
  .welcome-panel{min-height:76px;padding:5px 7px}
  .welcome-panel p{font-size:15px;line-height:1.18}
  .intro-panel{padding:6px 8px 7px}
  .intro-panel h1{font-size:17px}
  .intro-panel p{font-size:13px;line-height:1.15}
}
@media(max-width:350px){
  .welcome-panel p{font-size:13px}
  .intro-panel h1{font-size:15px}
  .intro-panel p{font-size:12px}
}

/* Phase 1 Integration Repair 4 — reference-depth Starline and chart directories */
.directory-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.directory-zone .section-cap {
  grid-column: 1 / -1;
}
.directory-zone > a:not(.table-title-link) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(15, 102, 67, .28);
  border-radius: 8px;
  background: #f4fbf7;
  color: #123b2c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.table-section tbody tr {
  height: 36px;
}
.table-section td,
.table-section th {
  padding: 6px 5px;
}
@media (max-width: 360px) {
  .directory-zone {
    gap: 5px;
  }
  .directory-zone > a:not(.table-title-link) {
    min-height: 36px;
    padding: 6px;
    font-size: 12px;
  }
}


/* Phase 1 Integration Repair 5 — reference-depth footer */
.homepage-footer{
  padding:10px 9px calc(22px + env(safe-area-inset-bottom));
}
.footer-brand-block{
  gap:9px;
  padding:2px 2px 9px;
}
.footer-support-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  padding:9px 0;
  border-bottom:1px solid #4d9c6c;
}
.footer-support-link{
  display:flex!important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:6px 7px!important;
  border:1px solid #0a6a38;
  border-radius:7px;
  background:linear-gradient(180deg,#0b5d31,#063d21);
  color:#fff!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.15;
  text-align:center;
  text-decoration:none!important;
}
.footer-links-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  padding:11px 2px 9px;
}
.footer-links-grid > div:last-child{
  grid-column:1 / -1;
  text-align:center;
}
.footer-links-grid > div:last-child a{
  display:inline-block;
  margin:0 6px;
}
.footer-links-grid h3{
  padding-bottom:3px;
  border-bottom:1px solid rgba(10,106,56,.28);
}
.footer-links-grid a{
  min-height:22px;
  line-height:1.35;
}
.footer-legal-note{
  padding:8px 7px;
  border-top:1px solid rgba(77,156,108,.75);
  background:rgba(255,255,255,.38);
  text-align:center;
}
.footer-legal-note p{
  margin:0!important;
  color:#31483a!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}
.footer-bottom{
  padding-top:9px;
}
@media(max-width:420px){
  .footer-support-strip{grid-template-columns:1fr 1fr}
  .footer-support-strip .footer-support-link:first-child{grid-column:1 / -1}
  .footer-links-grid{gap:9px 10px}
  .footer-links-grid h3{font-size:12px}
  .footer-links-grid a{font-size:10.5px!important}
}
@media(max-width:340px){
  .footer-support-strip,.footer-links-grid{grid-template-columns:1fr}
  .footer-support-strip .footer-support-link:first-child,.footer-links-grid > div:last-child{grid-column:auto}
  .footer-links-grid{text-align:center}
  .footer-links-grid > div:last-child a{display:block;margin:0}
}

/* Homepage visual matching pass 1 — reference geometry, DPBossPre green/black identity */
@media (max-width: 700px){
  body{padding:2px 7px 64px!important;background:#f4fff6}
  .page-shell{max-width:700px;margin:0 auto}
  .panel,.table-section{margin-bottom:7px!important;border-width:2px!important;border-radius:15px!important;box-shadow:none!important}

  .brand-panel.compact-brand,.brand-panel,.compact-brand{
    min-height:112px!important;
    padding:5px 10px!important;
    border-width:3px!important;
    border-radius:19px!important;
  }
  .brand-lockup,.brand-panel .brand-logo{min-height:96px!important;gap:11px!important}
  .brand-image{width:84px!important;height:84px!important;flex-basis:84px!important}
  .brand-main{font-size:clamp(34px,8.5vw,48px)!important;letter-spacing:0!important}
  .brand-pre{font-size:clamp(24px,6vw,34px)!important}

  .welcome-panel{
    min-height:102px!important;
    padding:7px 9px!important;
    gap:14px!important;
    align-items:center!important;
  }
  .welcome-image-wrap{
    flex:0 0 142px!important;
    width:142px!important;
    height:88px!important;
    border-radius:3px!important;
    background:#fff7e5!important;
  }
  .welcome-image{object-fit:contain!important;object-position:center!important;background:#fff7e5}
  .welcome-panel p{font-size:20px!important;line-height:1.16!important;font-weight:800!important;font-style:italic!important}

  .intro-panel{padding:5px 8px 6px!important}
  .intro-panel h1{font-size:22px!important;line-height:1.05!important;margin:0 0 3px!important;font-style:italic!important}
  .intro-panel p{font-size:17px!important;line-height:1.08!important;font-weight:600!important;font-style:italic!important}

  .lucky-panel{border-radius:16px!important}
  .lucky-panel .section-cap{
    margin:3px!important;
    padding:7px 8px 8px!important;
    border-radius:18px!important;
    font-size:31px!important;
    line-height:1!important;
    font-style:italic!important;
    font-weight:900!important;
  }
  .lucky-grid{grid-template-columns:40% 60%!important;min-height:101px!important}
  .lucky-grid>div{padding:6px 5px 7px!important;justify-content:flex-start!important}
  .lucky-grid h3{font-size:25px!important;line-height:1!important;margin:0 0 2px!important}
  .large-number{font-size:31px!important;line-height:1!important;margin:4px 0 0!important}
  .final-ank-list{font-size:19px!important;line-height:1.05!important;text-align:center!important}
  .final-ank-list li{display:flex!important;justify-content:center!important;gap:5px!important;min-height:auto!important;padding:1px 2px!important;border:0!important;text-transform:uppercase!important}
  .final-ank-list strong{font-size:19px!important;font-style:italic!important;color:#102e68!important}

  .app-download-panel{padding:13px 8px 14px!important}
  .app-download-panel>strong{font-size:22px!important;font-style:italic!important}
  .app-download-panel p{font-size:18px!important;line-height:1.15!important;font-weight:700!important;font-style:italic!important;margin:8px 0 12px!important}
  .app-download-panel .pill-action{min-width:55%!important;padding:10px 18px!important;font-size:20px!important;border-radius:18px!important}

  .live-panel .section-cap{margin:3px!important;border-radius:18px!important;font-size:30px!important;padding:7px 8px 8px!important;font-style:italic!important}
  .live-note{font-size:23px!important;line-height:1.1!important;font-style:italic!important;font-weight:800!important;margin:8px 5px 4px!important}
}

@media (max-width: 430px){
  body{padding-inline:5px!important}
  .brand-panel.compact-brand,.brand-panel,.compact-brand{min-height:98px!important}
  .brand-lockup,.brand-panel .brand-logo{min-height:84px!important;gap:8px!important}
  .brand-image{width:73px!important;height:73px!important;flex-basis:73px!important}
  .brand-main{font-size:34px!important}
  .brand-pre{font-size:24px!important}
  .welcome-panel{min-height:91px!important;gap:10px!important}
  .welcome-image-wrap{flex-basis:128px!important;width:128px!important;height:77px!important}
  .welcome-panel p{font-size:17px!important}
  .intro-panel h1{font-size:19px!important}
  .intro-panel p{font-size:15px!important;line-height:1.07!important}
  .lucky-panel .section-cap{font-size:27px!important}
  .lucky-grid{min-height:93px!important}
  .lucky-grid h3{font-size:22px!important}
  .large-number{font-size:28px!important}
  .final-ank-list,.final-ank-list strong{font-size:16px!important}
  .app-download-panel>strong{font-size:19px!important}
  .app-download-panel p{font-size:15px!important}
  .app-download-panel .pill-action{font-size:18px!important}
  .live-panel .section-cap{font-size:27px!important}
  .live-note{font-size:20px!important}
}
