.lp-page { margin: 0; min-height: 100vh; min-height: var(--lp-height, 100dvh); padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); box-sizing: border-box;
  background: #d4d0c8; color: #000; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 8px; font: 12px Tahoma, Verdana, sans-serif; color-scheme: light; }
.lp-page #popup-root { flex: none; }
.lp-back { color: #000080; font: 12px Tahoma, Verdana, sans-serif; padding: 6px; flex: none; }
.lp-page.lp-window { padding: 0; gap: 0; }
.lp-window .lp-back { display: none; }
.lp-dialog { position: fixed; margin: 0; padding: 0; border: 0; max-width: none; max-height: none; overflow: visible; background: transparent; color: #000; color-scheme: light; }
.lp-dialog::backdrop { background: transparent; }
.lp-viewport { position: relative; overflow: hidden; flex: none; }
.lp-surface { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lp-win, .lp-ad, .lp-win *, .lp-ad * { box-sizing: border-box; -webkit-font-smoothing: none; }
.lp-win { --face: #d4d0c8; background: var(--face); padding: 3px; width: max-content; font-family: Tahoma, Verdana, sans-serif;
  box-shadow: inset -1px -1px #404040, inset 1px 1px var(--face), inset -2px -2px #808080, inset 2px 2px #fff; }
.lp-bar { height: 18px; display: flex; align-items: center; gap: 4px; padding: 0 2px 0 4px; color: #fff; font: bold 11px Tahoma, Verdana, sans-serif;
  background: linear-gradient(90deg, #0a246a, #a6caf0); overflow: hidden; white-space: pre; }
.lp-ticker { flex: 1; min-width: 0; overflow: hidden; }
.lp-bar button { border: 0; padding: 0; border-radius: 0; flex: none; width: 16px; height: 14px; background: #d4d0c8; color: #000; cursor: pointer; font: bold 10px/12px Tahoma, sans-serif;
  box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080; }
.lp-addr { display: flex; gap: 4px; align-items: center; height: 23px; font: 11px Tahoma, sans-serif; padding: 3px 2px; color: #000; }
.lp-addr span { flex: 1; width: 0; background: #fff; padding: 1px 4px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; white-space: nowrap; overflow: hidden; }
.lp-body { box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; padding: 2px; }
.lp-ad { --lp-density: 1; --lp-art-width: 216px; --lp-head-size: 30px; --lp-line-size: 12px; --lp-button-size: 11px; --lp-gap: 8px;
  position: relative; margin: 0; padding: 0; border: 0; overflow: hidden; text-align: center; background-color: var(--lp-bg); color: var(--lp-fg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background-image: repeating-conic-gradient(rgba(0,0,0,.14) 0 25%, transparent 0 50%); background-size: 2px 2px; }
.lp-content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px; }
.lp-composition, .lp-visual, .lp-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--lp-gap) * var(--lp-density)); min-width: 0; flex: none; }
.lp-composition, .lp-copy { width: 100%; }
.lp-composition { min-height: calc(var(--lp-slot-height) * .84); justify-content: space-between; }
.lp-visual { width: 100%; max-width: 100%; }
.lp-head { margin: 0; max-width: 100%; color: var(--lp-accent); font: calc(var(--lp-head-size) * var(--lp-density))/1 Impact, 'Arial Black', sans-serif; letter-spacing: .01em; white-space: pre-line; overflow-wrap: break-word; }
.lp-line { margin: 0; width: 100%; font: bold max(10px, calc(var(--lp-line-size) * var(--lp-density)))/1.3 Verdana, Tahoma, sans-serif; text-wrap: pretty; hanging-punctuation: none; }
.lp-art { display: block; flex: none; width: min(100%, calc(var(--lp-art-width) * var(--lp-density))); height: auto; aspect-ratio: 88 / 31; object-fit: contain; image-rendering: pixelated; }
.lp-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.lp-button { font: max(10px, calc(var(--lp-button-size) * var(--lp-density))) Tahoma, sans-serif; line-height: normal; color: #000; background: #d4d0c8; border: 0; border-radius: 0; padding: calc(5px * var(--lp-density)) calc(8px * var(--lp-density)); min-width: 72px; max-width: 100%; cursor: pointer;
  box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #d4d0c8; }
.lp-button:active { box-shadow: inset 1px 1px #404040, inset -1px -1px #fff, inset 2px 2px #808080; }
.lp-small { margin: 0; width: 100%; color: var(--lp-accent); font: max(10px, calc(10px * var(--lp-density)))/1.2 Verdana, sans-serif; }
.lp-form { display: flex; flex-direction: column; align-items: center; gap: calc(var(--lp-gap) * var(--lp-density)); width: 100%; margin: 0; }
.lp-field { font: max(12px, calc(var(--lp-line-size) * var(--lp-density))) Verdana, sans-serif; color: #000; background: #fff; padding: 5px; border: 0; border-radius: 0; width: 90%; max-width: 340px; min-width: 0;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #404040; }
.lp-ad[data-slot="box"] { --lp-art-width: 264px; --lp-line-size: 13px; --lp-head-size: 34px; }
.lp-ad[data-slot="large"] { --lp-art-width: 352px; --lp-head-size: 36px; --lp-line-size: 19px; --lp-button-size: 15px; --lp-gap: 14px; }
.lp-ad[data-slot="large"] .lp-content { padding: 24px; }
.lp-ad[data-slot="large"][data-offer] { --lp-head-size: 64px; }
.lp-ad[data-slot="large"] .lp-art { width: calc(var(--lp-art-width) * var(--lp-density)); } /* shrinks with the copy when the ad is squeezed */
.lp-ad[data-slot="large"] .lp-button, .lp-ad[data-slot="wide"] .lp-button { padding: calc(9px * var(--lp-density)) calc(16px * var(--lp-density)); }
.lp-ad[data-slot="large"] .lp-small, .lp-ad[data-slot="wide"] .lp-small { font-size: max(10px, calc(11px * var(--lp-density))); }
.lp-ad[data-slot="wide"] { --lp-art-width: 288px; --lp-head-size: 38px; --lp-line-size: 18px; --lp-button-size: 14px; --lp-gap: 16px; }
.lp-ad[data-slot="wide"] .lp-content { padding: 18px 28px; }
.lp-ad[data-slot="wide"] .lp-composition { flex-direction: row; gap: 24px; }
.lp-ad[data-slot="wide"] .lp-visual { width: 300px; align-self: stretch; justify-content: space-between; }
.lp-ad[data-slot="wide"] .lp-copy { flex: 1; width: auto; align-self: stretch; justify-content: space-between; }
.lp-ad[data-slot="wide"][data-offer] .lp-head { font-size: calc(72px * var(--lp-density)); }
.lp-ad[data-slot="wide"][data-offer] .lp-visual { justify-content: center; }
.lp-sr { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-dialog:focus { outline: none; }
.lp-ad :is(button, input):focus-visible, .lp-win button:focus-visible { outline: 2px solid #000; outline-offset: 2px; border-radius: 0; box-shadow: 0 0 0 4px #fff; }
.lp-shake { animation: lp-shake .4s steps(4) 1; }
@keyframes lp-shake { 25% { transform: translate(-6px, 2px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, 1px); } }
.lp-blink { animation: lp-blink 1.4s steps(1) infinite; }
@keyframes lp-blink { 50% { opacity: .3; } }
@media (any-pointer: coarse) { .lp-field { font-size: max(16px, calc(var(--lp-line-size) * var(--lp-density))); } }
@media (prefers-reduced-motion: reduce) { .lp-shake, .lp-blink { animation: none; } }
