#ad-slider { width:100%; max-width:46rem; align-self:center; position:relative; overflow:hidden; aspect-ratio:2.4; max-height:16rem; flex:none; background:#303033; font-family:system-ui,sans-serif; touch-action:pan-y; }
#ad-slider[hidden] {display:none}
.ad-stage,.ad-slide { position:absolute; inset:0; }
.ad-slide { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 7% 13px; box-sizing:border-box; background:linear-gradient(115deg,#505054,#303033 72%,#202022); color:#fff; text-decoration:none; }
.ad-slide[hidden] {display:none}
.ad-slide.rose {background:linear-gradient(115deg,#fff0f6,#ffc5d9 72%,#feb0c8);color:#58213d}
.ad-slide.mint {background:linear-gradient(115deg,#e7fbf1,#b4eddb 72%,#94dbca);color:#12473f}
.ad-slide strong,.ad-slide small {display:block}
.ad-slide strong {font-size:clamp(1.25rem,6vw,2.8rem);letter-spacing:-.07em;word-break:keep-all}
.ad-slide small {font-size:clamp(.8rem,3vw,1.05rem);margin-top:.45em}
.ad-ticket {display:grid;place-items:center;text-align:center;width:30%;height:46%;border-radius:9px;background:#fffdfa;box-shadow:0 8px 12px #57390b21;transform:rotate(-5deg);font-size:clamp(.9rem,4.2vw,1.8rem);font-weight:800;border-right:6px dotted #0001;}
.ad-slide img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.ad-tools {position:absolute;bottom:4px;right:6px;display:flex;align-items:center;border-radius:20px;color:#fff;background:#30271bcc;font:600 12px system-ui}
.ad-tools button {font:inherit;border:0;background:transparent;color:inherit;min-width:30px;height:30px;cursor:pointer}
.ad-dots {position:absolute;bottom:13px;left:50%;transform:translateX(-50%);display:flex;gap:4px}
.ad-dots i {width:6px;height:6px;border-radius:8px;background:#45332766}
.ad-dots i.active {width:16px;background:#453327}
.ad-tools[hidden],.ad-dots[hidden]{display:none}

:root { --board-ad-height:clamp(66px,20vw,90px); }
body:has(> .board-ad:not([hidden])) {
  padding-bottom:calc(var(--board-ad-height) + env(safe-area-inset-bottom,0px) + 18px);
}
#ad-slider.board-ad {
  position:fixed; z-index:8; inset:auto 0 calc(8px + env(safe-area-inset-bottom,0px));
  margin-inline:auto; width:calc(100% - 20px); height:var(--board-ad-height);
  aspect-ratio:auto; border-radius:10px; box-shadow:0 2px 12px #39291425;
}
.board-ad .ad-slide { padding:0 132px 0 clamp(12px,4vw,26px); justify-content:flex-start; }
.board-ad .ad-slide strong { font-size:clamp(17px,4.8vw,25px); line-height:1.15; }
.board-ad .ad-slide small { font-size:12px; margin-top:4px; }
.board-ad .ad-ticket { display:none; }
.board-ad .ad-tools { right:7px; bottom:7px; }
.board-ad .ad-tools button { padding:0; width:28px; min-width:28px; height:28px; }
.board-ad output { white-space:nowrap; }
.board-ad .ad-dots { left:auto; right:15px; top:13px; bottom:auto; transform:none; }

.ad-slide.gold .ad-ticket {background:#ececef;color:#303033;border-right-color:#c1c1c6}
#ad-slider:has(.ad-slide.gold:not([hidden]):not([inert])) .ad-dots i {background:#ffffff80}
#ad-slider:has(.ad-slide.gold:not([hidden]):not([inert])) .ad-dots i.active {background:white}

.ad-slide.neon { background:#21101e; }
.ad-slide.neon img { object-position:70% center; }
.board-ad .ad-slide.neon img { object-position:center 32%; }

.ad-slide.blue-hour { background:#142436; }
.ad-slide.blue-hour img { object-position:74% 30%; }
.ad-image-title { position:relative; color:white; text-shadow:0 1px 5px #131f32; white-space:nowrap; }
#ad-slider .ad-dots i { background:#ffffff80; }
#ad-slider .ad-dots i.active { background:white; }
