/* Enterprise Promotions v1.0.0, with local Bloom Garden artwork. */
.emg-promo { --emg-ink:#283d31; --emg-accent:#426c4d; --emg-paper:#fff8e9; --emg-border:#d6bf98; font-family:Meiryo,"Hiragino Kaku Gothic ProN",sans-serif; color:var(--emg-ink); box-sizing:border-box; }
.emg-promo *, .emg-promo *::before, .emg-promo *::after { box-sizing:border-box; }
.emg-promo [hidden] { display:none !important; }
.emg-promo button, .emg-promo a { -webkit-tap-highlight-color:transparent; font:inherit; }
.emg-promo button { cursor:pointer; }
.emg-promo button:focus-visible, .emg-promo a:focus-visible { outline:3px solid #efad22; outline-offset:3px; }
.emg-promo__nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); background:transparent; }
.emg-promo__nav button { min-height:52px; min-width:0; border:1px solid var(--emg-border); border-radius:14px; background:var(--emg-paper); color:var(--emg-ink); display:flex; gap:4px; flex-direction:column; align-items:center; justify-content:center; padding:5px 4px; font-size:clamp(12px,3.2vw,14px); font-weight:bold; white-space:nowrap; box-shadow:0 2px 8px #123b3c09; }
.emg-promo__nav svg { width:20px; height:20px; color:var(--emg-accent); }
.emg-promo__nav button:last-child svg { color:#b7750e; }
.emg-promo__dialog { border:0; border-radius:24px; padding:0; margin:auto; width:min(600px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); height:min(720px,calc(100dvh - 24px)); color:var(--emg-ink); background:#f5f9f8; box-shadow:0 20px 80px #142f4240; overflow:hidden; }
.emg-promo__dialog[open] { display:flex; flex-direction:column; }
.emg-promo__dialog::backdrop { background:#102e3b80; }
.emg-promo__head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 20px 12px; background:#fff; flex:0 0 auto; }
.emg-promo__head h2 { font-size:clamp(19px,4.8vw,23px); margin:0; line-height:1.5; }
.emg-promo__close { border:1px solid var(--emg-border); background:#fff; border-radius:50%; width:44px; height:44px; min-width:44px; color:var(--emg-ink); font-size:26px !important; line-height:1; }
.emg-promo__note { margin:0; padding:0 20px 16px; font-size:13px; line-height:1.7; color:#557273; background:#fff; }
.emg-promo__body { flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:16px; }
.emg-promo__list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; list-style:none; margin:0; padding:0; }
.emg-promo__list li { min-width:0; margin:0; padding:0; }
.emg-promo__card { min-height:190px; height:100%; text-decoration:none; display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:16px; border:1px solid var(--emg-border); border-radius:18px; background:#fff; color:var(--emg-ink); transition:border-color .12s; }
.emg-promo__card:hover { border-color:var(--emg-accent); }
.emg-promo__art { width:60px; height:60px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:#e3f0eb; color:#087b77; font-size:25px; font-weight:700; overflow:hidden; flex:0 0 auto; }
.emg-promo__art img { width:100%; height:100%; object-fit:cover; }
.emg-promo__card strong { font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
.emg-promo__description { font-size:12px; color:#557273; line-height:1.7; overflow-wrap:anywhere; }
.emg-promo__action { font-size:12px; color:var(--emg-accent); margin-top:auto; padding-top:3px; font-weight:700; }
.emg-promo__badge { color:#98610b; font-size:12px; font-weight:700; }
.emg-promo__list--recommended { grid-template-columns:1fr; }
.emg-promo__list--recommended .emg-promo__card { display:grid; grid-template-columns:60px minmax(0,1fr); gap:6px 16px; min-height:0; }
.emg-promo__list--recommended .emg-promo__art { grid-column:1; grid-row:1 / span 4; align-self:center; }
.emg-promo__list--recommended .emg-promo__card > :not(.emg-promo__art) { grid-column:2; }
.emg-promo__status { text-align:center; padding:28px 10px; line-height:1.8; }
.emg-promo__retry, .emg-promo__return { min-height:46px; background:#087b77; color:#fff; border:0; border-radius:12px; font-size:15px; font-weight:700; padding:10px 20px; }
.emg-promo__foot { padding:12px 16px max(12px,env(safe-area-inset-bottom)); flex:0 0 auto; background:#fff; border-top:1px solid var(--emg-border); }
.emg-promo__return { width:100%; }
@media (orientation:landscape) and (max-height:540px) {
  .emg-promo__dialog { width:min(860px,calc(100vw - 20px)); height:calc(100dvh - 20px); border-radius:18px; }
  .emg-promo__head { padding:8px 16px 4px; }
  .emg-promo__head h2 { font-size:20px; }
  .emg-promo__note { padding:0 16px 8px; font-size:12px; }
  .emg-promo__body { padding:12px; }
  .emg-promo__list { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .emg-promo__card { min-height:165px; padding:12px; }
  .emg-promo__art { width:44px; height:44px; border-radius:12px; font-size:20px; }
  .emg-promo__list--recommended { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .emg-promo__list--recommended .emg-promo__card { grid-template-columns:44px minmax(0,1fr); }
  .emg-promo__foot { padding:8px 12px; }
}
@media (max-width:480px) {
  .emg-promo__list { grid-template-columns:1fr; }
  .emg-promo__card { display:grid; grid-template-columns:54px minmax(0,1fr); gap:5px 12px; min-height:110px; padding:14px; }
  .emg-promo__card > :not(.emg-promo__art) { grid-column:2; }
  .emg-promo__art { width:54px; height:54px; grid-column:1; grid-row:1 / span 3; align-self:center; }
  .emg-promo__list--recommended .emg-promo__card { grid-template-columns:54px minmax(0,1fr); gap:5px 12px; }
  .emg-promo__card strong { font-size:15px; }
}
@media (prefers-reduced-motion:reduce) { .emg-promo__card { transition:none; } }

/* Local controls use raster art, while labels and accessible names stay in HTML. */
.emg-promo [data-action="games"] { --promo-icon:url("../assets/sunroom-ads/games.webp"); --promo-face:#dfefd8; }
.emg-promo [data-action="picks"] { --promo-icon:url("../assets/sunroom-ads/picks.webp"); --promo-face:#ffe4ae; }
.emg-promo [data-action="close"] { --promo-icon:url("../assets/sunroom-ads/close.webp"); }
.emg-promo [data-action="back"] { --promo-icon:url("../assets/sunroom-ads/back.webp"); }
.emg-promo [data-action="retry"] { --promo-icon:url("../assets/sunroom-ads/retry.webp"); }
.emg-promo [data-action="play"] { --promo-icon:url("../assets/sunroom-ui/play.webp"); }
.emg-promo [data-action]::before { content:""; display:block; width:24px; height:24px; flex:none; background:var(--promo-icon) center / contain no-repeat; }
#promotions .emg-promo__nav button { background:linear-gradient(160deg,#fff7df,var(--promo-face)); color:#334532; border-color:#c2a46e; box-shadow:inset 0 1px 0 #fffaf0,0 2px 0 #9f7d4c; }
.emg-promo .emg-promo__dialog { background:#fff5e2; border:1px solid #cfa976; box-shadow:0 20px 70px #4c392b52; }
.emg-promo__dialog::backdrop { background:#342b266b; }
.emg-promo .emg-promo__head,.emg-promo .emg-promo__foot,.emg-promo .emg-promo__note { background:#fffaf0; }
.emg-promo .emg-promo__close { display:grid; place-items:center; padding:0; background:#fff0e5; border-color:#dbb09a; }
.emg-promo .emg-promo__close::before { width:32px; height:32px; }
.emg-promo .emg-promo__return,.emg-promo .emg-promo__retry { display:flex; align-items:center; justify-content:center; gap:8px; background:#e5efd8; color:var(--emg-ink); border:1px solid #b5bb88; }
.emg-promo .emg-promo__retry { margin-inline:auto; background:#ffe9bd; border-color:#d3b070; }
.emg-promo .emg-promo__action { display:flex; align-items:center; gap:5px; }
.emg-promo .emg-promo__action::before { width:20px; height:20px; }
.emg-promo button:active { filter:brightness(.95); }

/* English uses lettered control artwork. The nav retains its measured height. */
.emg-promo[data-label-art="true"] [data-action="games"] { --promo-label:url("../assets/sunroom-labels/games.webp"); }
.emg-promo[data-label-art="true"] [data-action="picks"] { --promo-label:url("../assets/sunroom-labels/picks.webp"); }
.emg-promo[data-label-art="true"] [data-action="back"] { --promo-label:url("../assets/sunroom-labels/back.webp"); }
.emg-promo[data-label-art="true"] [data-action="retry"] { --promo-label:url("../assets/sunroom-labels/retry.webp"); }
.emg-promo[data-label-art="true"] [data-action="play"] { --promo-label:url("../assets/sunroom-labels/play.webp"); }
#promotions .emg-promo[data-label-art="true"] [data-action]:not([data-action="close"]) {
 background:var(--promo-label) center / contain no-repeat; border-color:transparent; box-shadow:none;
}
.emg-promo[data-label-art="true"] [data-action]:not([data-action="close"])::before { visibility:hidden; }
.emg-promo[data-label-art="true"] .emg-promo__action-label { opacity:0; }
.emg-promo[data-label-art="true"] .emg-promo__retry { min-width:120px; min-height:44px; }
.emg-promo[data-label-art="true"] .emg-promo__action { min-width:100px; min-height:40px; }
/* Both the painted nav and the cloned measurement nav use this row height. */
.emg-promo__nav button { height:58px; }
@media (min-width:481px) {
 .emg-promo__nav button { height:61px; }
}

