.header-ad{flex:1;min-width:100px;max-width:620px;margin:0 22px;display:flex;align-items:center;gap:8px}.header-ad>div{flex:1;min-width:0}.ad-ticker{height:34px;display:flex;align-items:center;overflow:hidden;background:#050b15;border:1px solid #b2904a70;border-radius:7px;box-shadow:inset 0 0 14px #0009;color:#f5ce76;font-family:Arial,sans-serif}.ad-badge{font-size:10px;letter-spacing:1px;padding:0 9px;font-weight:800;z-index:1;flex-shrink:0}.ad-window{position:relative;height:100%;overflow:hidden;display:block;flex:1;color:inherit;text-decoration:none;min-width:0}.ad-text{position:absolute;left:0;top:0;white-space:nowrap;line-height:32px;font-size:16px;font-weight:700;text-shadow:0 0 8px #f5ce7644}.ad-text.centered,.ad-text.still{width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis}.ad-text.vertical{width:100%;text-align:center}.ad-text.vertical>span{display:block;overflow:hidden;text-overflow:ellipsis}.ad-rent{font:11px Arial,sans-serif!important;color:#d9c183!important;white-space:nowrap;text-decoration:none!important}.with-ad>header{display:flex;align-items:center;justify-content:space-between}.ad-window:focus-visible,.ad-rent:focus-visible{outline:2px solid #f5ce76;outline-offset:-2px}@media(max-width:1000px){.header-ad{margin:0 12px}.ad-rent{display:none}}@media(max-width:700px){body.with-ad{grid-template-rows:98px minmax(0,1fr) 36px}.with-ad>header{height:98px;position:relative;padding-bottom:42px!important;box-sizing:border-box}.header-ad{position:absolute;bottom:6px;left:12px;right:12px;max-width:none;margin:0;display:flex}.ad-rent{display:block;font-size:10px!important}.ad-ticker{height:32px}.ad-text{line-height:30px;font-size:14px}.ad-badge{font-size:9px;padding:0 6px}.header-ad>div{min-width:0}}
@media (min-width:701px) and (max-width:1100px){body.with-ad .prototype{display:none}}
/* Measure actual glyph widths; animation masks never truncate a resting line. */
.ad-measure{position:absolute;visibility:hidden;pointer-events:none;white-space:pre;width:max-content;max-width:none}
.ad-text{line-height:38px;white-space:pre}
.ad-ticker{height:40px}
.ad-text.centered{left:8px;width:calc(100% - 16px);text-overflow:clip;overflow:visible}
.ad-text.vertical{padding-inline:8px;box-sizing:border-box}
.ad-text.vertical>span{line-height:inherit;text-overflow:clip;white-space:pre}
@media(max-width:700px){
 body.with-ad{grid-template-rows:108px minmax(0,1fr) 36px}
 .with-ad>header{height:108px;padding-bottom:50px!important}
 .header-ad{left:8px;right:8px;bottom:6px;gap:0}
 .header-ad>div{width:100%}
 .header-ad .ad-rent{position:absolute;right:0;bottom:calc(100% + 3px);font-size:10px!important;line-height:12px}
 .ad-ticker{height:40px}
 .ad-text{font-size:16px;line-height:38px}
 .ad-badge{letter-spacing:0;font-size:10px;padding:0 6px}
}
.ad-booking-dialog{width:min(1160px,96vw);height:min(900px,94dvh);max-width:96vw;max-height:94dvh;padding:45px 0 0;border:1px solid #526981;border-radius:12px;background:#091222;overflow:hidden;box-sizing:border-box}.ad-booking-dialog::backdrop{background:#020711cc;backdrop-filter:blur(4px)}.ad-booking-dialog iframe{display:block;width:100%;height:100%;border:0;background:#091222}.ad-booking-close{position:absolute;right:12px;top:7px;height:30px;border:1px solid #526981;border-radius:6px;background:#1a2b43;color:#f1d58e;font:14px Arial,sans-serif;padding:4px 12px;cursor:pointer}@media(max-width:700px){.ad-booking-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}}

.header-ad .ad-rent{padding:3px 8px;border:1px solid #75623c;border-radius:5px;color:#f0cc78;text-decoration:none;background:#142238;white-space:nowrap}.header-ad .ad-rent:hover{background:#24364b}

/* Match the 1400px main container; grow the billboard only within it. */
.with-ad>header{width:100%;max-width:1400px;margin-inline:auto;padding-inline:20px;gap:14px}.header-ad{max-width:none;margin:0 10px;flex:1 1 0}.with-ad .header-right{gap:12px;flex-shrink:0}.with-ad .prototype:empty{display:none}.with-ad .profile>div{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:701px){.header-ad{position:relative;padding-top:0}.header-ad .ad-rent{display:block;position:absolute;right:0;bottom:-16px;font-size:10px!important;padding:1px 6px;line-height:12px}.header-ad .ad-ticker{width:100%}}
@media(max-width:700px){.header-ad{margin:0;left:8px;right:8px}.with-ad>header{gap:8px}.with-ad .header-right{gap:6px}}
