/* 2026-10-15 approved: compact header, 3% gutters and six proportional halls. */
html[data-player-theme=light] .topbar :is(#brandName,#brandName span,#brandDomain,#brandDomain span,.brand-domain-row>.asen-copy-icon){color:#000!important;-webkit-text-fill-color:#000!important;text-shadow:none}
#memberTicker{left:5%!important;width:90%!important;display:flex;align-items:center;gap:6px;padding:0 8px;box-sizing:border-box;background:linear-gradient(90deg,rgb(0 0 0 / 50%),rgb(0 0 0 / 70%) 50%,rgb(0 0 0 / 50%))!important;color:#fff0cf!important}
#memberTicker[hidden]{display:none}
#memberTicker .announcement-viewport{display:block;flex:1;min-width:0;overflow:hidden;height:100%}
#memberTicker :is(.ticker-speaker,.ticker-envelope){position:relative;display:flex;align-items:center;flex:0 0 18px;width:18px;height:18px}
#memberTicker svg{display:block;width:18px;height:18px}
#memberTicker .inbox-dot{left:auto;right:-3px;top:-3px;width:6px;height:6px}
#homeCategoryGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
@media(max-width:1024px){
 html.asen-geometry-locked .home-content{box-sizing:border-box;padding-inline:11.7px}
 html.asen-geometry-locked .popular-games{width:100%;box-sizing:border-box}
 html.asen-geometry-locked .hero{width:366.6px;margin-inline:11.7px}
 html.asen-geometry-locked .bottom-nav{box-sizing:border-box;padding-left:3%;padding-right:3%}
 html.asen-geometry-locked .topbar{padding-top:calc(20px * var(--asen-geometry-scale) + var(--asen-page-safe-top,env(safe-area-inset-top)));padding-left:3%;padding-right:3%;padding-bottom:0}
 html.asen-geometry-locked[data-asen-telegram] .topbar{padding-top:calc(var(--asen-page-safe-top) + 2px);height:calc(68px * var(--asen-geometry-scale) + var(--asen-page-safe-top) + 2px)}
 html.asen-geometry-locked .topbar .brand{display:grid;grid-template-columns:calc(41px * var(--asen-geometry-scale)) calc(40px * var(--asen-geometry-scale));grid-template-rows:calc(41px * var(--asen-geometry-scale)) calc(21px * var(--asen-geometry-scale));column-gap:calc(6px * var(--asen-geometry-scale));row-gap:0;flex:0 0 auto;align-items:start;justify-content:start}
 html.asen-geometry-locked .topbar .brand-copy{display:contents}
 html.asen-geometry-locked .topbar .brand-symbol{grid-column:1;grid-row:1;width:calc(41px * var(--asen-geometry-scale))!important;height:calc(41px * var(--asen-geometry-scale))!important;min-width:0;flex-basis:auto}
 html.asen-geometry-locked .topbar .brand-copy #brandName{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:calc(40px * var(--asen-geometry-scale))!important;height:calc(41px * var(--asen-geometry-scale))!important;font-size:calc(14px * var(--asen-geometry-scale));line-height:1.12;letter-spacing:0;transform:none!important}
 #brandName>span{display:block}
 html.asen-geometry-locked #brandName>span:last-child{font-size:calc(17px * var(--asen-geometry-scale));letter-spacing:calc(3px * var(--asen-geometry-scale));padding-left:calc(3px * var(--asen-geometry-scale))}
 html.asen-geometry-locked .topbar .brand-domain-row{grid-column:1 / -1;grid-row:2;margin:0;align-self:end;gap:calc(4px * var(--asen-geometry-scale));max-width:none;line-height:1}
 html.asen-geometry-locked .topbar .brand-domain-row #brandDomain{font-size:calc(17px * var(--asen-geometry-scale));line-height:calc(19px * var(--asen-geometry-scale));letter-spacing:0}
 html.asen-geometry-locked .topbar .brand-domain-row>.asen-copy-icon{width:calc(13px * var(--asen-geometry-scale))!important;height:calc(13px * var(--asen-geometry-scale))!important;flex-basis:calc(13px * var(--asen-geometry-scale));opacity:.45}
 html.asen-geometry-locked .topbar .top-actions{width:calc(146px * var(--asen-geometry-scale))!important;flex-basis:calc(146px * var(--asen-geometry-scale))}
 html.asen-geometry-locked .topbar .action-grid{grid-template-rows:repeat(2,calc(29px * var(--asen-geometry-scale)))}
 html.asen-geometry-locked .topbar .header-action{height:calc(29px * var(--asen-geometry-scale))!important}
 html.asen-geometry-locked .quick-grid button>span{width:28.08px;height:28.08px;font-size:23.4px}
 html.asen-geometry-locked .quick-grid button>small{font-size:12.636px}
 html.asen-geometry-locked #homeCategoryGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 html.asen-geometry-locked:not(.asen-landscape) #homeCategoryGrid>.category-card.has-art{position:relative;display:block;box-sizing:border-box;width:100%;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1;align-self:stretch;padding:0;border-radius:12%;overflow:visible}
 html.asen-geometry-locked #homeCategoryGrid>.category-card.has-art>strong{position:absolute;left:3%;right:3%;top:7%;margin:0;text-align:center;font-size:13px;line-height:1.15}
 html.asen-geometry-locked #homeCategoryGrid>.category-card.has-art>small{position:absolute;left:3%;right:3%;bottom:6%;margin:0;text-align:center;font-size:9px;line-height:1.2}
 html.asen-geometry-locked #homeCategoryGrid>.category-card.has-art>.category-card-art{position:absolute;inset:auto;left:3%;top:25%;width:94%!important;height:57%!important;max-height:none!important;min-height:0;object-fit:contain;object-position:center bottom;translate:none!important;scale:1!important;transform:none!important}
 html.asen-geometry-locked #homeCategoryGrid>[data-hall=slots].category-card.has-art>.category-card-art{left:0;top:21%;width:100%!important;height:61%!important}
 /* Supplied lottery PNG has transparent side gutters; size by its visible artwork. */
 html.asen-geometry-locked #homeCategoryGrid>[data-hall=lottery].category-card.has-art>.category-card-art{left:-16%;width:132%!important;object-fit:contain}
}

/* Owner-approved: the announcement belongs directly below the navigation.
   Percentage positioning follows its real box through zoom, fonts and rotation. */
html .topbar > #memberTicker{position:absolute!important;top:calc(100% - var(--ticker-panel-top,6px))!important;bottom:auto!important;left:5%!important;right:auto!important;width:90%!important;margin:0!important;transform:none!important;translate:none!important;scale:1!important}

/* Owner-approved 2026-11-02: compact backdrop bounded by the two icon centres. */
html .topbar > #memberTicker{
  height:24px!important;min-height:24px!important;line-height:24px!important;
  background-color:transparent!important;
  background-position:var(--ticker-panel-left,20px) var(--ticker-panel-top,6px)!important;
  background-size:var(--ticker-panel-width,calc(100% - 40px)) var(--ticker-panel-height,12px)!important;
  background-repeat:no-repeat!important;
  overflow:visible;contain:none;
}

/* Match the old symbol/name row (41px) plus the URL row (21px).
   The visible artwork spans 502 × 216 pixels inside the original PNG. */
html body .topbar > .brand.navbar-brand-slot{
  --brand-height:calc(62px * var(--asen-geometry-scale, 1));
  position:relative;
  display:block;
  flex:0 1 auto!important;
  width:calc(var(--brand-height) * 502 / 216)!important;
  min-width:0;
  height:var(--brand-height)!important;
  margin-inline-start:0;
}
@media (orientation:landscape) and (min-width:640px){
  html.asen-landscape body .topbar > .brand.navbar-brand-slot{--brand-height:49px}
}
.topbar .navbar-brand{
  width:100%;
  height:100%;
  container-type:size;
}
.topbar .navbar-brand-art{
  --art-scale-width:min(100cqw / 502, 100cqh / 216);
  position:relative;
  left:calc(-4 * var(--art-scale-width));
  top:calc(-4 * var(--art-scale-width));
  width:calc(512 * var(--art-scale-width));
  aspect-ratio:512 / 226;
}
.topbar .navbar-brand-art img{display:block;width:100%;height:auto;pointer-events:none}
/* Percentages follow the domain lettering on the original 512 × 226 artwork. */
.topbar .navbar-domain-copy{
  position:absolute;
  left:45.5%;
  top:49.5%;
  width:52%;
  height:26%;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:rgb(255 255 255 / 65%);
  cursor:pointer;
}
.topbar .navbar-domain-copy-icon{
  position:absolute;
  left:89.2%;
  top:2.3%;
  width:9.6%;
  height:auto;
  filter:drop-shadow(0 0 1px rgb(0 0 0 / 80%));
}
.topbar .navbar-domain-copy:focus-visible{outline:1px solid currentColor;outline-offset:1px}
.topbar .navbar-brand-status{position:absolute;top:100%;left:0;z-index:1;white-space:nowrap;padding:4px 8px;border-radius:4px;background:#171b23;color:#fff;font-size:12px}

html .bottom-nav .nav-recharge .nav-recharge-art{scale:.7!important;transform-origin:center}

html:not(.asen-landscape) #page-home.active{padding-top:var(--asen-home-nav-bottom); }
html:not(.asen-landscape) #page-home.active > #hero{margin-top:0}
html.asen-landscape #page-home.active > #hero{top:var(--asen-home-nav-bottom)}
