:root{
  --page:#f4f8fb;
  --surface:#ffffff;
  --surface-soft:#edf5f8;
  --ink:#111827;
  --muted:#667085;
  --dim:#8a98a8;
  --navy:#071832;
  --navy-2:#0d274d;
  --sea:#007f91;
  --aqua:#25c9d8;
  --red:#e5364b;
  --line:rgba(15,23,42,.12);
  --line-strong:rgba(15,23,42,.2);
  --shadow:0 24px 70px rgba(7,24,50,.16);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  color:var(--ink);
  background:
    linear-gradient(90deg,rgba(7,24,50,.045) 1px,transparent 1px),
    linear-gradient(180deg,#f7fbff 0%,var(--page) 45%,#eef5f7 100%);
  background-size:72px 72px,auto;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,select{font:inherit}
.container{width:min(1240px,100%);margin:0 auto;padding:0 28px}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(15,23,42,.1);
  backdrop-filter:blur(18px);
}
.nav{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-mark{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:8px;
  background:#fff;
  border:1px solid rgba(0,127,145,.2);
  box-shadow:0 12px 34px rgba(0,127,145,.14);
}
.brand-mark img{
  width:38px;
  height:38px;
  display:block;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.brand-text strong{
  color:var(--navy);
  font-size:18px;
  font-weight:900;
}
.brand-text small{
  margin-top:5px;
  color:var(--red);
  font-size:10px;
  font-weight:900;
  letter-spacing:2.8px;
}
.menu{
  display:flex;
  align-items:center;
  gap:8px;
}
.menu a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:8px;
  color:#445064;
  font-size:12px;
  font-weight:900;
  letter-spacing:1px;
}
.menu a:hover,.menu a.active{
  color:#fff;
  background:var(--navy);
}
.menu-toggle{
  width:42px;
  height:42px;
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--navy);
  cursor:pointer;
}
.menu-toggle span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:currentColor;
}

.home-shell{
  padding-bottom:72px;
}
.hero-deck{
  position:relative;
  min-height:560px;
  display:flex;
  align-items:stretch;
  overflow:hidden;
  background:var(--navy);
}
.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(3,12,28,.84) 0%,rgba(3,12,28,.58) 42%,rgba(3,12,28,.18) 100%),
    linear-gradient(180deg,rgba(3,12,28,.12) 0%,rgba(3,12,28,.62) 100%);
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:28px;
  align-items:center;
  padding-top:58px;
  padding-bottom:58px;
}
.hero-copy{min-width:0;color:#fff}
.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  color:#d8f8ff;
  font-size:12px;
  font-weight:900;
  letter-spacing:1.5px;
}
.eyebrow em{
  color:#fff;
  font-style:normal;
  letter-spacing:0;
}
.signal-dot{
  width:10px;
  height:10px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 7px rgba(229,54,75,.2),0 0 18px rgba(229,54,75,.9);
}
.hero-copy h1{
  max-width:820px;
  margin:18px 0 14px;
  color:#fff;
  font-size:clamp(40px,6.2vw,84px);
  line-height:.95;
  font-weight:900;
  letter-spacing:0;
}
.hero-copy p{
  max-width:640px;
  margin:0;
  color:#d6e8f1;
  font-size:17px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.primary-action,.ghost-action{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  padding:0 18px;
  font-size:13px;
  font-weight:900;
  border:1px solid transparent;
  cursor:pointer;
}
.primary-action{
  color:#fff;
  background:linear-gradient(135deg,var(--red),#f05d6c);
  box-shadow:0 18px 38px rgba(229,54,75,.24);
}
.ghost-action{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.28);
}
.primary-action:hover,.ghost-action:hover{transform:translateY(-1px)}

.live-panel{
  min-width:0;
  padding:22px;
  border-radius:8px;
  color:var(--navy);
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 26px 80px rgba(0,0,0,.24);
}
.live-panel.is-swapping .live-number{animation:numberSlide .45s ease}
@keyframes numberSlide{
  0%{transform:translateY(12px);opacity:.2}
  100%{transform:translateY(0);opacity:1}
}
.panel-topline,.panel-footerline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.panel-topline em{
  color:var(--sea);
  font-style:normal;
}
.live-number{
  margin:20px 0 6px;
  color:var(--navy);
  font-size:clamp(78px,10vw,132px);
  line-height:.86;
  font-weight:900;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
.live-pool-name{
  color:var(--red);
  font-size:24px;
  font-weight:900;
}
.panel-footerline{
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.panel-footerline strong{
  color:var(--navy);
}

.status-strip{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:1.25fr .65fr 1fr;
  gap:12px;
  margin-top:-42px;
}
.status-card{
  min-width:0;
  min-height:116px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:18px;
  border-radius:8px;
  background:var(--surface);
  border:1px solid rgba(15,23,42,.1);
  box-shadow:var(--shadow);
}
.status-card span{
  color:var(--dim);
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.status-card strong{
  color:var(--navy);
  font-size:25px;
  line-height:1.05;
  overflow-wrap:anywhere;
}
.status-card em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.countdown-card{
  background:linear-gradient(135deg,#ffffff 0%,#effbfc 100%);
  border-color:rgba(0,127,145,.18);
}
.countdown-card strong{
  color:var(--sea);
  font-variant-numeric:tabular-nums;
}
.countdown-card.is-urgent{
  border-color:rgba(229,54,75,.34);
  background:linear-gradient(135deg,#fff 0%,#fff0f2 100%);
}
.countdown-card.is-due strong{color:var(--red)}

.deck-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  margin-top:28px;
}
.market-panel,.queue-panel,.ticker-band{
  border-radius:8px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(15,23,42,.1);
  box-shadow:var(--shadow);
}
.market-panel,.queue-panel{padding:18px}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.section-head span,.section-label,.page-kicker{
  display:block;
  color:var(--sea);
  font-size:11px;
  font-weight:900;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.section-head h2{
  margin:5px 0 0;
  color:var(--navy);
  font-size:28px;
  line-height:1;
  font-weight:900;
}
.section-head a{
  color:var(--red);
  font-size:13px;
  font-weight:900;
}
.market-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.market-card{
  min-height:148px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px 12px;
  align-content:space-between;
  padding:16px;
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(7,24,50,.06);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.market-card:hover{
  transform:translateY(-2px);
  border-color:rgba(0,127,145,.34);
  box-shadow:0 18px 38px rgba(7,24,50,.12);
}
.card-index{
  color:var(--red);
  font-size:12px;
  font-weight:900;
}
.card-time{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.market-card strong{
  grid-column:1 / -1;
  color:var(--navy);
  font-size:16px;
  line-height:1.12;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.market-card em{
  grid-column:1 / -1;
  color:var(--sea);
  font-size:40px;
  line-height:1;
  font-style:normal;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.queue-panel{
  align-self:start;
}
.section-head.compact{align-items:start}
.queue-list{
  display:grid;
  gap:9px;
}
.queue-row{
  min-width:0;
  min-height:58px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line);
}
.queue-row:hover{border-color:rgba(229,54,75,.28)}
.queue-row span{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:var(--navy);
  font-size:11px;
  font-weight:900;
}
.queue-row strong{
  min-width:0;
  color:var(--navy);
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.queue-row em{
  color:var(--sea);
  font-size:13px;
  font-style:normal;
  font-weight:900;
}

.ticker-band{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  align-items:stretch;
  margin-top:18px;
  overflow:hidden;
}
.ticker-label{
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--red);
  font-size:13px;
  font-weight:900;
  letter-spacing:1.5px;
}
.ticker-track{
  display:flex;
  gap:0;
  overflow:auto;
  scrollbar-width:none;
}
.ticker-track::-webkit-scrollbar{display:none}
.ticker-item{
  min-width:220px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 12px;
  padding:14px 16px;
  border-right:1px solid var(--line);
}
.ticker-item span{
  min-width:0;
  color:var(--navy);
  font-size:13px;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ticker-item strong{
  color:var(--sea);
  font-size:24px;
  line-height:1;
  font-weight:900;
}
.ticker-item em{
  grid-column:1 / -1;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:800;
}

.inner-page{
  background:
    linear-gradient(90deg,rgba(7,24,50,.045) 1px,transparent 1px),
    linear-gradient(180deg,#eef7fa 0%,#f8fbfd 100%);
  background-size:72px 72px,auto;
}
.history-shell,.about-shell{padding-bottom:72px}
.page-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:22px;
  align-items:end;
  padding-top:48px;
  padding-bottom:22px;
}
.page-copy h1,.about-hero h1{
  margin:12px 0 10px;
  color:var(--navy);
  font-size:clamp(42px,6.5vw,78px);
  line-height:.92;
  font-weight:900;
}
.page-copy p,.about-hero p{
  max-width:640px;
  margin:0;
  color:var(--muted);
  font-size:16px;
}
.filter-bar{
  padding:18px;
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.filter-bar label{
  display:block;
  margin-bottom:8px;
  color:var(--dim);
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.filter-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.filter-row select{
  width:100%;
  min-height:46px;
  padding:0 42px 0 14px;
  color:var(--ink);
  background:#f9fbfc url("../../images/select-arrow.png") no-repeat right 14px center / 16px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  appearance:none;
}
.filter-row select:focus{
  outline:none;
  border-color:var(--sea);
  box-shadow:0 0 0 4px rgba(0,127,145,.1);
}
.result-summary,.about-stats{
  display:grid;
  grid-template-columns:1.2fr .8fr .9fr;
  gap:12px;
}
.result-summary div,.about-stats div{
  min-width:0;
  min-height:100px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:16px;
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 14px 36px rgba(7,24,50,.08);
}
.result-summary span,.about-stats span{
  color:var(--dim);
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.result-summary strong,.about-stats strong{
  min-width:0;
  color:var(--navy);
  font-size:22px;
  line-height:1.12;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.featured-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin-top:18px;
  padding-top:0;
}
.featured-result,.history-row,.empty-state,.about-content-card,.contact-card,.value-grid article{
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 14px 36px rgba(7,24,50,.08);
}
.featured-result{
  padding:22px 28px;
}
.featured-meta span{
  color:var(--sea);
  font-size:12px;
  font-weight:900;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.featured-meta h2{
  margin:8px 0 5px;
  color:var(--navy);
  font-size:34px;
  line-height:1;
}
.featured-meta p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.digit-row{
  display:flex;
  gap:7px;
  justify-content:flex-end;
}
.digit-cell{
  width:40px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(145deg,var(--navy),var(--sea));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 12px 24px rgba(0,127,145,.16);
  font-size:23px;
  line-height:1;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.digit-row.large .digit-cell{
  width:58px;
  height:66px;
  font-size:34px;
  background:linear-gradient(145deg,var(--red),var(--navy));
}
.history-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.history-row{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto auto;
  gap:14px;
  align-items:center;
  padding:14px;
}
.history-rank{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:var(--red);
  font-size:12px;
  font-weight:900;
}
.history-main{min-width:0}
.history-main strong{
  display:block;
  min-width:0;
  color:var(--navy);
  font-size:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-main span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.history-time{
  color:var(--sea);
  font-size:13px;
  font-weight:900;
}
.empty-state{
  margin-top:18px;
  padding:44px 24px;
  text-align:center;
}
.empty-state h2{
  margin:0 0 6px;
  color:var(--navy);
}
.empty-state p{
  margin:0;
  color:var(--muted);
}

.about-visual{
  position:relative;
  min-height:390px;
  display:flex;
  align-items:end;
  overflow:hidden;
  color:#fff;
  background:var(--navy);
}
.about-visual img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.about-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(3,12,28,.82),rgba(3,12,28,.34)),
    linear-gradient(180deg,rgba(3,12,28,.12),rgba(3,12,28,.72));
}
.about-hero{
  position:relative;
  z-index:1;
  padding-bottom:52px;
}
.about-hero h1{
  max-width:840px;
  color:#fff;
}
.about-hero p{
  color:#d6e8f1;
}
.about-stats{
  position:relative;
  z-index:2;
  margin-top:-38px;
}
.about-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  margin-top:18px;
}
.about-content-card,.contact-card{
  padding:22px;
}
.about-content{
  margin-top:12px;
  color:#344054;
  font-size:16px;
  line-height:1.82;
}
.contact-card p{
  margin:12px 0 0;
  color:#344054;
  overflow-wrap:anywhere;
}
.value-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.value-grid article{
  padding:20px;
}
.value-grid span{
  color:var(--red);
  font-size:12px;
  font-weight:900;
}
.value-grid strong{
  display:block;
  margin-top:10px;
  color:var(--navy);
  font-size:20px;
  line-height:1.1;
}
.value-grid p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:14px;
}

.site-footer{
  padding:44px 0 0;
  color:#5f6d7e;
  background:#ffffff;
  border-top:1px solid var(--line);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.35fr .75fr 1fr;
  gap:28px;
  padding-bottom:34px;
}
.footer-brand p{
  max-width:420px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:14px;
}
.footer-links h4,.footer-info h4{
  margin:0 0 12px;
  color:var(--sea);
  font-size:12px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.footer-links a{
  display:block;
  padding:4px 0;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}
.footer-links a:hover{color:var(--red)}
.footer-info p{
  margin:5px 0;
  color:var(--muted);
  font-size:13px;
}
.footer-bottom{
  border-top:1px solid var(--line);
  padding:16px 0;
  color:var(--dim);
  text-align:center;
  font-size:12px;
}

@media(max-width:1100px){
  .hero-grid,.deck-layout,.page-hero,.about-grid{grid-template-columns:1fr}
  .status-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .queue-panel{align-self:stretch}
}
@media(max-width:820px){
  .container{padding:0 18px}
  .nav{min-height:68px}
  .menu-toggle{display:flex}
  .menu{
    position:absolute;
    top:calc(100% + 10px);
    right:18px;
    width:min(270px,calc(100vw - 36px));
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:8px;
    border-radius:8px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
  }
  .menu.open{display:flex}
  .menu a{justify-content:flex-start}
  .hero-deck{min-height:620px}
  .hero-grid{padding-top:36px;padding-bottom:70px}
  .status-strip,.result-summary,.about-stats,.value-grid{grid-template-columns:1fr}
  .status-strip{margin-top:18px}
  .featured-result{grid-template-columns:1fr}
  .digit-row{justify-content:flex-start}
  .history-row{
    grid-template-columns:44px minmax(0,1fr) auto;
  }
  .history-row .digit-row{
    grid-column:1 / -1;
    padding-left:56px;
  }
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .brand-mark{width:42px;height:42px}
  .brand-mark img{width:34px;height:34px}
  .brand-text strong{font-size:15px}
  .brand-text small{font-size:9px;letter-spacing:2px}
  .hero-copy h1{font-size:40px}
  .hero-copy p{font-size:14px}
  .hero-actions{gap:9px}
  .primary-action,.ghost-action{width:100%;min-height:44px}
  .live-panel{padding:18px}
  .live-number{font-size:72px}
  .live-pool-name{font-size:20px}
  .panel-topline,.panel-footerline{align-items:flex-start;flex-direction:column;gap:5px}
  .market-grid{grid-template-columns:1fr}
  .market-card{min-height:132px}
  .filter-row{grid-template-columns:1fr}
  .page-hero{padding-top:34px}
  .page-copy h1,.about-hero h1{font-size:42px}
  .featured-result{padding:18px}
  .digit-row.large .digit-cell{width:48px;height:58px;font-size:30px}
  .history-row{
    grid-template-columns:40px minmax(0,1fr);
    gap:10px;
  }
  .history-time{grid-column:2}
  .history-row .digit-row{padding-left:0}
  .digit-cell{width:36px;height:42px;font-size:21px}
  .ticker-band{grid-template-columns:1fr}
  .ticker-label{min-height:42px}
}
