/* Deployment control panel (control.asp): phone first, fine on a laptop. Dark theme. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #141a22; color: #e9eef4; font-family: "Mulish", Arial, sans-serif; font-size: 15px; -webkit-tap-highlight-color: transparent; padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; color: inherit; }

.cp-closed { max-width: 420px; margin: 12vh auto 0; padding: 0 22px; text-align: center; }
.cp-closed img { width: 120px; }
.cp-closed h1 { margin: 10px 0 8px; font-size: 24px; }
.cp-closed p { color: #a9b4c2; line-height: 1.55; }

.cp-head { position: sticky; top: 0; z-index: 10; background: #141a22; }
.cp-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: #141a22; }
.cp-title { flex: 1; min-width: 0; }
.cp-title small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .16em; color: #7bd36f; }
.cp-title b { display: block; font-size: 19px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-title span { display: block; font-size: 13px; color: #a9b4c2; }
.cp-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #a9b4c2; padding: 6px 10px; border-radius: 999px; background: #1f2732; }
.cp-live i { width: 9px; height: 9px; border-radius: 50%; background: #7a8594; }
.cp-live.ok i { background: #52bd47; box-shadow: 0 0 0 0 rgba(82,189,71,.6); animation: cpPulse 2s infinite; }
.cp-live.bad i { background: #f05a4f; }
.cp-live.bad span::after { content: " (offline)"; }
@keyframes cpPulse { 70% { box-shadow: 0 0 0 8px rgba(82,189,71,0); } 100% { box-shadow: 0 0 0 0 rgba(82,189,71,0); } }

.cp-tabs { display: flex; background: #141a22; border-top: 1px solid #263140; border-bottom: 1px solid #263140; padding: 0 6px; overflow-x: auto; }
.cp-tabs button { flex: 1; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; border: 0; background: none; color: #8d99a8; font-size: 12px; font-weight: 800; cursor: pointer; position: relative; }
.cp-tabs button .fa { font-size: 19px; }
.cp-tabs button[aria-selected="true"] { color: #fff; }
.cp-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #52bd47; }
.cp-tabs button.armed .fa { color: #ffcc33; }

.cp-main { max-width: 760px; margin: 0 auto; padding: 14px 14px 40px; }
.cp-main h2 { margin: 20px 2px 10px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #8d99a8; }
.cp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cp-stat { background: #1f2732; border-radius: 14px; padding: 12px 14px; }
.cp-stat small { display: block; font-size: 12px; font-weight: 800; color: #8d99a8; text-transform: uppercase; letter-spacing: .06em; }
.cp-stat b { display: block; font-size: 28px; font-weight: 900; line-height: 1.2; margin-top: 2px; }
.cp-stat span { display: block; font-size: 12px; color: #a9b4c2; }
@media (min-width: 640px) { .cp-stats { grid-template-columns: repeat(4, 1fr); } }

.cp-card { background: #1f2732; border-radius: 14px; padding: 14px 16px; }
.cp-list { background: #1f2732; border-radius: 14px; overflow: hidden; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid #263140; }
.cp-row:first-child { border-top: 0; }
.cp-row .cp-main-txt { flex: 1; min-width: 0; }
.cp-row .cp-main-txt b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row .cp-main-txt small { display: block; color: #a9b4c2; font-size: 12px; }
.cp-row .cp-right { text-align: right; font-weight: 800; white-space: nowrap; }
.cp-row .cp-right small { display: block; font-weight: 600; color: #8d99a8; font-size: 12px; }
.cp-empty { padding: 16px; color: #8d99a8; }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #7a8594; }
.cp-dot.on { background: #52bd47; }
.cp-dot.idle { background: #f0b400; }
.cp-syms { display: flex; gap: 4px; flex: none; }
.cp-syms img, .cp-syms span { width: 34px; height: 26px; object-fit: contain; background: #fff; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #333; }
.cp-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; background: #263140; color: #cfd8e3; }
.cp-tag.win { background: #2d4a26; color: #9fe592; }
.cp-tag.jp { background: #5a4510; color: #ffd54f; }
.cp-tag.next { background: #23406b; color: #9cc3ff; }
.cp-row.cp-past { opacity: .42; }
.cp-row.cp-past .cp-syms img { filter: grayscale(.5); }

.cp-feed { background: #1f2732; border-radius: 14px; overflow: hidden; }
.cp-ev { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid #263140; font-size: 14px; }
.cp-ev:first-child { border-top: 0; }
.cp-ev time { flex: none; width: 62px; color: #8d99a8; font-size: 12px; font-variant-numeric: tabular-nums; }
.cp-ev .fa { flex: none; width: 18px; text-align: center; color: #8d99a8; }
.cp-ev .txt { flex: 1; min-width: 0; }
.cp-ev .txt small { color: #8d99a8; }
.cp-ev.win .fa { color: #7bd36f; }
.cp-ev.jp { background: #2e2610; }
.cp-ev.jp .fa { color: #ffcc33; }
.cp-ev.new { animation: cpNew 1.4s ease-out; }
@keyframes cpNew { from { background: #2b3a4d; } }

.cp-seqbar { height: 10px; border-radius: 999px; background: #263140; overflow: hidden; margin: 10px 0 6px; }
.cp-seqbar i { display: block; height: 100%; background: linear-gradient(90deg, #4c8bf0, #52bd47); }
.cp-note { color: #8d99a8; font-size: 13px; line-height: 1.5; margin: 12px 2px; }

.cp-hours { padding: 22px 26px 30px 34px; background: #1f2732; border-radius: 14px; }
/* leads by hour line chart */
.cp-ll-plot { position: relative; height: 110px; }
.cp-ll-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-ll-plot svg .l { fill: none; stroke: #52bd47; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.cp-ll-plot svg .a { fill: rgba(82,189,71,.12); stroke: none; }
.cp-ll-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #2f3a48; }
.cp-ll-grid.base { border-top: 1px solid #3a4655; }
.cp-ll-max { position: absolute; left: -26px; top: -7px; width: 20px; text-align: right; font-size: 10px; color: #8d99a8; }
.cp-ll-hit { position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; cursor: default; outline: none; }
.cp-ll-hit::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid transparent; }
.cp-ll-hit:hover::before, .cp-ll-hit:focus::before { border-left-color: #4a5566; }
.cp-ll-hit small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #8d99a8; white-space: nowrap; }
.cp-ll-pt { position: absolute; left: 50%; width: 8px; height: 8px; margin: 0 0 0 -4px; transform: translateY(-50%); border-radius: 50%; background: #52bd47; box-shadow: 0 0 0 2px #1f2732; opacity: 0; transition: opacity .12s; }
.cp-ll-hit:hover .cp-ll-pt, .cp-ll-hit:focus .cp-ll-pt { opacity: 1; }
.cp-ll-pt.now { opacity: 1; width: 10px; height: 10px; margin-left: -5px; background: #5fd352; }
.cp-ll-pt.now::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #5fd352; animation: cpLlPulse 1.6s ease-out infinite; }
@keyframes cpLlPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cp-ll-pt.now::after { animation: none; } }
.cp-ll-hit em { position: absolute; left: 50%; margin-top: -18px; transform: translate(-50%, -100%); background: #0f141a; border: 1px solid #344052; color: #e6edf5; font: 700 12px/1.2 inherit; font-style: normal; padding: 5px 8px; border-radius: 7px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.cp-ll-hit:hover em, .cp-ll-hit:focus em { opacity: 1; }
.cp-ll-hit.first em { transform: translate(-14px, -100%); }
.cp-ll-hit.last em { transform: translate(calc(-100% + 14px), -100%); }

/* jackpot */
.cp-jp { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.cp-jp-btn { position: relative; width: min(72vw, 290px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 50% 35%, #3a4554, #1c232c 70%); box-shadow: inset 0 0 0 6px #2c3644, 0 14px 40px rgba(0,0,0,.5); transition: transform .12s; }
.cp-jp-btn:active { transform: scale(.97); }
.cp-jp-ring { position: absolute; inset: 14px; border-radius: 50%; border: 4px dashed #4a5566; }
.cp-jp-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.cp-jp-in .fa { font-size: 54px; color: #6b7684; }
.cp-jp-in b { font-size: 38px; font-weight: 900; letter-spacing: .06em; margin-top: 6px; color: #a9b4c2; }
.cp-jp-in small { font-size: 14px; font-weight: 700; color: #8d99a8; margin-top: 4px; max-width: 68%; text-align: center; line-height: 1.3; }
.cp-jp-btn.on { background: radial-gradient(circle at 50% 35%, #ffe27a, #f0a800 72%); box-shadow: inset 0 0 0 6px #ffd54f, 0 0 0 10px rgba(255,204,51,.18), 0 0 60px rgba(255,190,40,.55); animation: cpGlow 1.6s ease-in-out infinite; }
.cp-jp-btn.on .cp-jp-ring { border: 4px solid rgba(255,255,255,.6); animation: cpSpin 6s linear infinite; border-style: dashed; }
.cp-jp-btn.on .fa, .cp-jp-btn.on b { color: #3a2500; }
.cp-jp-btn.on small { color: #5a3c00; }
.cp-jp-btn.busy { opacity: .6; }
@keyframes cpGlow { 50% { box-shadow: inset 0 0 0 6px #ffd54f, 0 0 0 18px rgba(255,204,51,.10), 0 0 80px rgba(255,190,40,.75); } }
@keyframes cpSpin { to { transform: rotate(360deg); } }
.cp-jp-text { max-width: 420px; text-align: center; color: #a9b4c2; line-height: 1.55; margin: 22px 8px 16px; }
.cp-jp-rule { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-jp-rule .cp-syms img, .cp-jp-rule .cp-syms span { width: 52px; height: 40px; }

.cp-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: #141a22; font-weight: 800; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 50; max-width: 90vw; }
.cp-toast.bad { background: #f05a4f; color: #fff; }
.cp-jp-target { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0 0 22px; max-width: 520px; }
.cp-jp-target:empty { display: none; }
.cp-jp-target small { width: 100%; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #8d99a8; }
.cp-jp-target button { border: 0; border-radius: 999px; padding: 10px 16px; background: #1f2732; color: #cfd8e3; font-weight: 800; cursor: pointer; }
.cp-jp-target button.on { background: #ffcc33; color: #3a2500; }

/* big screen notice: the controller is laid out for a phone */
.cp-big { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 18, .7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cp-big[hidden] { display: none; }
.cp-big-card { background: #fff; color: #1d2733; border-radius: 18px; max-width: 400px; width: 100%; padding: 28px 28px 24px; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.cp-big-ico { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: #e7f6ec; color: #2f8a3c; font-size: 38px; margin-bottom: 10px; }
.cp-big-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: 900; }
.cp-big-card p { margin: 0 0 12px; color: #4d5866; line-height: 1.55; font-size: 15px; }
.cp-big-tip { background: #f3f6f9; border-radius: 10px; padding: 10px 12px; font-size: 14px !important; }
.cp-big-btn { margin-top: 6px; width: 100%; height: 46px; border: 0; border-radius: 10px; background: #45ac3b; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.cp-big-btn:hover { background: #3e9e35; }
/* latest wins: jackpot from the Jackpot button vs. one that came up in the sequence */
.cp-tag.jp .fa { margin-right: 3px; }
.cp-tag.jp.nat { background: #1f4a3a; color: #7fe3b4; }
/* Install button (home screen) and the iPhone steps */
.cp-install { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #3d7a35; background: #1e3a1b; color: #9fe592; font-weight: 800; font-size: 13px; cursor: pointer; }
.cp-install[hidden] { display: none; }
.cp-install:active { transform: scale(.97); }
.cp-steps { text-align: left; margin: 0 0 12px; padding-left: 22px; color: #4d5866; line-height: 1.55; font-size: 15px; }
.cp-steps li { margin-bottom: 6px; }
.cp-steps .fa { color: #2f6fd6; }
/* the jackpot tag gets its own line under the amount, so it never gets cut off on a phone */
.cp-main-txt > .cp-tag.jp { display: inline-block; margin: 4px 0 3px; }
.cp-active { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: #e7f6ec; border: 1px solid #9fd1a8; color: #1c6b32; font-weight: 800; font-size: 11px; vertical-align: 2px; }
.cp-logo { flex: none; width: 46px; height: 46px; object-fit: contain; }
/* powered-by footer */
.cp-foot { max-width: 760px; margin: 0 auto; padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid #263140; text-align: center; color: #7a8594; font-size: 12px; line-height: 1.6; }
.cp-foot-by { font-size: 13px; color: #a9b4c2; }
.cp-foot-url { display: inline-block; margin: 2px 0 8px; color: #a9b4c2; font-weight: 400; font-size: 14px; text-decoration: none; }
.cp-foot-url:hover { text-decoration: underline; }
.cp-foot p { margin: 0; }
/* Sequence tab: repeat pill (orange warns that wins come around again) */
.cp-tag.rep { background: #f08a24; color: #2b1600; }
.cp-tag.norep { background: #d5dbe2; color: #2a3440; }

/* public demo panel (control.asp?demo=1) */
.cp-demo { background: #f5c542; color: #1d2733; font-size: 13px; line-height: 1.35; padding: 7px 14px; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: 4px; text-align: center; }
.cp-demo b { display: inline-flex; align-items: center; line-height: 1; padding: 4px 7px !important; }
.cp-demo b { background: #1d2733; color: #f5c542; font-size: 11px; letter-spacing: .08em; padding: 2px 7px; border-radius: 10px; margin-right: 4px; }
.cp-demo a { color: #1d2733; font-weight: 800; white-space: nowrap; }
.cp-jp-target button { max-width: 100%; }
/* Payouts > By payline: "#1  [sym][sym][sym]  hits / credits" */
.cp-pl { gap: 12px; }
.cp-pl .cp-pl-n { min-width: 34px; font-size: 16px; font-weight: 900; }
.cp-pl .cp-right { margin-left: auto; }
.cp-jp-how { margin: 0 auto 6px; max-width: 250px; font-size: 15px; font-weight: 700; line-height: 1.4; color: #cfd6df; text-align: center; }
