/* Deliberately separate from game tiles, navigation and playing surfaces. */
.hub-ad {
  --ad-paper: #eee3d7; --ad-ink: #492d23; --ad-accent: #9d4a32; --ad-rule: #ceb7a4;
  color: var(--ad-ink); min-width: 0; contain: layout style;
}
:root[data-theme="dark"] .hub-ad {
  --ad-paper: #332820; --ad-ink: #f1e3d5; --ad-accent: #e4ab83; --ad-rule: #665141;
}
.hub-ad-label { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; margin-bottom: 8px; }
.hub-ad-label > span:first-child { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hub-ad-creative { display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--ad-rule); border-radius: 3px; background: var(--ad-paper); }
.hub-ad-creative:hover { border-color: var(--ad-accent); }
.hub-ad-creative:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.hub-ad-mark { color: var(--ad-accent); font: 800 16px/1.05 var(--display); letter-spacing: -.04em; border-left: 3px solid currentColor; padding-left: 10px; flex: none; }
.hub-ad-copy { display: grid; gap: 7px; min-width: 0; flex: 1; }
.hub-ad-copy strong { font: 700 25px/1.08 var(--display); letter-spacing: -.025em; }
.hub-ad-copy > span { font-size: 12px; line-height: 1.5; }
.hub-ad-action { flex: none; font-size: 12px; line-height: 1.5; font-weight: 700; border-bottom: 1px solid var(--ad-accent); padding-bottom: 3px; }
.hub-ad-copy-short { display: none; }
/* Curated first-party artwork stays inside the existing slot dimensions. */
.hub-ad--illustrated { --ad-paper:#111612;--ad-ink:#f1efe6;--ad-accent:#72b62e;--ad-rule:#3c4b37; }
:root[data-theme="dark"] .hub-ad--illustrated { --ad-paper:#111612;--ad-ink:#f1efe6;--ad-accent:#72b62e;--ad-rule:#43543c; }
.hub-ad--illustrated .hub-ad-creative { position:relative;isolation:isolate;overflow:hidden;padding:18px 22px;gap:20px; }
.hub-ad--illustrated .hub-ad-creative:hover { border-color:#72b62e; }
.hub-ad--illustrated .hub-ad-art { position:absolute;z-index:-1;right:0;top:0;width:42%;height:100%;object-fit:cover;object-position:center;opacity:.7;mask-image:linear-gradient(to right,transparent,#000 45%); }
.hub-ad-identity { display:flex;align-items:center;gap:10px;flex:none; }
.hub-ad-logo { display:block;object-fit:contain;width:48px;height:48px;flex:none; }
.hub-ad-brand { font:700 19px/1.2 var(--display);letter-spacing:-.025em; }
.hub-ad--illustrated .hub-ad-copy { position:relative;gap:6px; }
.hub-ad--illustrated .hub-ad-copy strong { font-size:24px;line-height:1.15;letter-spacing:-.025em; }
.hub-ad--illustrated .hub-ad-copy-full { color:#d9dfd2; }
.hub-ad--illustrated .hub-ad-action { position:relative;color:#f1efe6;max-width:130px;text-wrap:balance; }
.hub-ad--illustrated.hub-ad--rectangle .hub-ad-creative { min-height:250px;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start; }
.hub-ad--illustrated.hub-ad--rectangle .hub-ad-identity { margin-bottom:4px; }
.hub-ad--illustrated.hub-ad--rectangle .hub-ad-copy { max-width:210px; }
.hub-ad--illustrated.hub-ad--rectangle .hub-ad-copy strong { font-size:25px; }
.hub-ad--illustrated.hub-ad--rectangle .hub-ad-action { justify-self:start;align-self:end; }
.hub-ad--illustrated.hub-ad--compact .hub-ad-creative { display:flex;gap:18px;min-height:140px; }
.hub-ad--illustrated.hub-ad--compact .hub-ad-action { margin:0; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-creative { min-height:360px;gap:14px;padding:114px 14px 20px; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-art { width:100%;height:116px;opacity:.85;mask-image:linear-gradient(to bottom,#000 65%,transparent); }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-identity { flex-direction:column;gap:8px;align-items:flex-start; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-logo { width:44px;height:44px; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-copy { flex:1; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-copy strong,.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-copy-full { display:none; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-copy-short { display:block;font-size:13px;line-height:1.5;color:#d9dfd2; }
.hub-ad--illustrated.hub-ad--skyscraper .hub-ad-action { font-size:11px;line-height:1.5; }
.hub-ad--rectangle { width: 320px; }
.hub-ad--rectangle .hub-ad-creative { min-height: 250px; flex-direction: column; align-items: flex-start; gap: 19px; }
.hub-ad--rectangle .hub-ad-copy { flex: 1; }
.hub-ad--rectangle .hub-ad-copy strong { max-width: 240px; font-size: 30px; }
.hub-ad--banner { margin: 32px 0 42px; }
.hub-ad--banner .hub-ad-creative { min-height: 100px; }
.hub-ad--compact { margin-top: 36px; }
.hub-ad--compact .hub-ad-creative { min-height: 140px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px 18px; }
.hub-ad--compact .hub-ad-action { grid-column: 2; justify-self: start; }
.game-ad-surround { position: relative; display: flow-root; }
.game-ad-surround > .hub-ad--banner { margin: 150px 0 0; }
.hub-ad--skyscraper { position: absolute; width: 140px; z-index: 1; }
.hub-ad--skyscraper .hub-ad-label { flex-direction: column; gap: 2px; }
.hub-ad--skyscraper .hub-ad-creative { min-height: 360px; flex-direction: column; align-items: flex-start; gap: 20px; padding: 18px 14px; }
.hub-ad--skyscraper .hub-ad-mark { font-size: 13px; }
.hub-ad--skyscraper .hub-ad-copy { flex: 1; gap: 12px; }
.hub-ad--skyscraper .hub-ad-copy strong { font-size: 21px; overflow-wrap: anywhere; }
.hub-ad--skyscraper .hub-ad-copy > span, .hub-ad--skyscraper .hub-ad-action { font-size: 11px; }
.round-ad-dialog { --ad-paper:#eee3d7; --ad-ink:#492d23; --ad-accent:#9d4a32; --ad-rule:#ceb7a4; width:min(680px, calc(100vw - 80px)); max-height:calc(100vh - 80px); overflow:auto; padding:28px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--surface); }
:root[data-theme="dark"] .round-ad-dialog { --ad-paper:#332820; --ad-ink:#f1e3d5; --ad-accent:#e4ab83; --ad-rule:#665141; }
.round-ad-dialog::backdrop { background:rgb(10 20 14 / .58); }
.round-ad-heading, .round-ad-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.round-ad-heading > span { color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.round-ad-heading button { cursor:pointer; padding:8px 12px; }
.round-ad-intro { margin:22px 0 18px; font:700 22px/1.2 var(--display); }
.round-ad-dialog .hub-ad-creative { min-height:220px; color:var(--ad-ink); flex-wrap:wrap; }
.round-ad-dialog .hub-ad-copy { flex-basis:70%; }
.round-ad-dialog .hub-ad-action { margin-left:72px; }
.round-ad-footer { margin-top:24px; }
.round-ad-footer > span { color:var(--muted); font-size:12px; }
.round-ad-open [data-hub-ad] { visibility:hidden !important; }
.lobby-layout:has(> .hub-ad) { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
@media (max-width: 1100px) {
  .lobby-layout:has(> .hub-ad) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lobby-layout > .hub-ad--rectangle { width: auto; }
  .lobby-layout > .hub-ad--rectangle .hub-ad-creative { min-height: 140px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lobby-layout > .hub-ad--rectangle .hub-ad-copy strong { max-width: none; font-size: 25px; }
}
@media (max-width: 900px) {
  .hub-ad--banner .hub-ad-creative { flex-wrap: wrap; gap: 18px; }
  .hub-ad--banner .hub-ad-copy { flex-basis: 65%; }
  .hub-ad--banner .hub-ad-action { margin-left: 49px; }
}
