body.app-ui .all-lotteries-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;padding:9px 13px;min-height:38px;border:1px solid #cbdced;border-radius:8px;background:#fff;color:#1565c0;font-family:inherit;font-size:13px;font-weight:600;line-height:20px;cursor:pointer;white-space:nowrap}
.all-lotteries-open .nav-icon{width:16px;height:16px}.all-lotteries-open:hover{background:#eaf3ff}.all-lotteries-open:focus-visible{outline:2px solid #1565c0;outline-offset:3px}
body.lottery-picker-open{overflow:hidden!important}
body.app-ui .all-lotteries-dialog{box-sizing:border-box;width:min(800px,calc(100% - 40px));max-width:none;max-height:85dvh;padding:0;border:1px solid #d9e4ef;border-radius:16px;background:#fff;color:#17283e;box-shadow:0 20px 80px #132b4a30;overflow:hidden}
.all-lotteries-dialog::backdrop{background:#152b465c}
body.app-ui .all-lotteries-dialog[open]{display:flex;flex-direction:column}
.all-lotteries-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #e0e8f1;flex-shrink:0}
body.app-ui .all-lotteries-dialog h2{font-size:20px;line-height:1.4;margin:0}
body.app-ui .all-lotteries-dialog header p{font-size:12px;color:#64758c;margin:5px 0 0}
body.app-ui #all-lotteries-close{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:8px;background:#f0f4f8;color:#52657e;font-size:24px;cursor:pointer}
.all-lotteries-body{padding:4px 22px 22px;overflow:auto;overscroll-behavior:contain;min-height:0}
.all-lotteries-body section{margin-top:18px}
body.app-ui .all-lotteries-body h3{font-size:13px;line-height:20px;color:#5a6f88;margin:0 0 9px}
.all-lotteries-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body.app-ui .all-lotteries-grid>a{display:flex;align-items:center;gap:9px;min-height:56px;padding:8px 10px;border:1px solid #e1e8f0;border-radius:9px;text-decoration:none;color:#23354b;font-size:13px;font-weight:600;box-sizing:border-box}
.all-lotteries-grid img{width:36px;height:36px;object-fit:contain;flex-shrink:0}.all-lotteries-grid>a:hover{background:#edf5ff;border-color:#aac9ed}.all-lotteries-grid>a:focus-visible{outline:2px solid #1565c0;outline-offset:2px}
@media(max-width:850px){body.app-ui .all-lotteries-dialog{width:calc(100% - 24px);max-height:85dvh;border-radius:12px}.all-lotteries-dialog>header{padding:14px 16px}.all-lotteries-body{padding:0 14px 16px}.all-lotteries-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}body.app-ui .all-lotteries-grid>a{flex-direction:column;gap:6px;text-align:center;padding:10px 4px;font-size:12px;line-height:18px}.all-lotteries-grid img{width:32px;height:32px}body.app-ui .all-lotteries-open{font-size:12px;padding:7px 10px;min-height:34px}}

/* Branded directory: strong header, quiet category rows, vivid existing icons. */
body.app-ui .all-lotteries-dialog{width:min(880px,calc(100% - 40px));border:0;border-radius:20px;background:#f6f9fd}
.all-lotteries-dialog>header{position:relative;isolation:isolate;overflow:hidden;padding:24px 28px;background:linear-gradient(115deg,#10294e,#125eb5);border:0;color:#fff}
.all-lotteries-dialog>header:after{content:"";position:absolute;z-index:-1;width:250px;height:250px;right:80px;top:-155px;border:35px solid #ffffff0b;transform:rotate(-25deg);border-radius:40px}
.picker-brand{display:block;font-size:10px;font-weight:600;letter-spacing:2px;color:#9dcaff;margin-bottom:8px}
body.app-ui .all-lotteries-dialog h2{font-size:28px;letter-spacing:1px;color:#fff}
body.app-ui .all-lotteries-dialog header p{color:#bed4ee;margin-top:7px}
body.app-ui #all-lotteries-close{background:#ffffff18;color:#fff;border:1px solid #ffffff25;border-radius:50%;align-self:flex-start}
.all-lotteries-body{padding:6px 24px 22px}
.all-lotteries-body section{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;margin-top:0;padding:16px 0;border-bottom:1px solid #e0e8f2;--category-accent:#2774c8}
.all-lotteries-body section:last-child{border-bottom:0}
.all-lotteries-body section:nth-child(2){--category-accent:#d64986}.all-lotteries-body section:nth-child(3){--category-accent:#d47b25}.all-lotteries-body section:nth-child(4){--category-accent:#8055bf}.all-lotteries-body section:nth-child(5){--category-accent:#239c8b}
body.app-ui .all-lotteries-body h3{display:flex;flex-direction:column;gap:4px;align-self:start;padding-top:6px;margin:0;font-size:15px;color:#23354b}
.picker-category-number{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--category-accent)}
.all-lotteries-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body.app-ui .all-lotteries-grid>a{position:relative;flex-direction:column;justify-content:center;gap:7px;min-height:91px;padding:10px 4px;background:#fff;border:1px solid #e2eaf4;border-radius:12px;font-size:12px;text-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.all-lotteries-grid img{width:43px;height:43px;filter:drop-shadow(0 3px 3px #172b4515)}
body.app-ui .all-lotteries-grid>a:hover{transform:translateY(-3px);border-color:var(--category-accent);box-shadow:0 5px 14px #16345c0d;background:#fff}
@media(max-width:850px){body.app-ui .all-lotteries-dialog{width:calc(100% - 24px);border-radius:16px}.all-lotteries-dialog>header{padding:18px}.picker-brand{font-size:9px;margin-bottom:5px}body.app-ui .all-lotteries-dialog h2{font-size:23px}.all-lotteries-body{padding:0 14px 12px}.all-lotteries-body section{display:block;padding:12px 0}body.app-ui .all-lotteries-body h3{flex-direction:row;align-items:center;gap:8px;font-size:13px;padding:0;margin-bottom:9px}.all-lotteries-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}body.app-ui .all-lotteries-grid>a{min-height:80px;font-size:12px;padding:9px 3px}.all-lotteries-grid img{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){body.app-ui .all-lotteries-grid>a{transition:none}}

/* Header alignment and five-column desktop directory. */
.all-lotteries-dialog>header{align-items:center}
body.app-ui #all-lotteries-close{align-self:center;line-height:1;flex-shrink:0;margin:0}
@media(min-width:851px){.all-lotteries-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
