/* Lottery Results (Peter 2026-11-16) — same dark-red + gold look as the games */
.lr-app { --lr-gold:#facc15; --lr-gold2:#fde68a; color:#fff; display:flex; flex-direction:column; gap:12px; }
.lr-bar { display:flex; align-items:flex-end; gap:8px; }
.lr-nav { flex:none; width:40px; height:40px; border-radius:10px; border:1px solid rgba(250,204,21,.3); background:linear-gradient(#3f0d0d,#2a0606); color:var(--lr-gold2); font-size:22px; line-height:1; cursor:pointer; }
.lr-nav:disabled { opacity:.35; cursor:not-allowed; }
.lr-datebox { position:relative; flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.lr-datebox span { font-size:11px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; color:#e0a526; }
.lr-datebtn { width:100%; height:40px; border-radius:10px; border:1px solid rgba(250,204,21,.35); background:#1a0505; color:#fff; font-size:15px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; }
.lr-datebtn b { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lr-datebtn svg { flex:none; color:var(--lr-gold); }
.lr-cal { position:absolute; z-index:30; top:calc(100% + 6px); left:50%; transform:translateX(-50%); width:min(320px,calc(100vw - 32px)); padding:10px; border-radius:12px; border:1px solid rgba(250,204,21,.45); background:#1f0606; box-shadow:0 12px 30px rgba(0,0,0,.6); }
.lr-cal-h { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.lr-cal-h b { color:var(--lr-gold2); font-size:15px; }
.lr-cal-nav { width:34px; height:34px; border-radius:8px; border:1px solid rgba(250,204,21,.3); background:#2a0606; color:var(--lr-gold2); font-size:20px; cursor:pointer; }
.lr-cal-nav:disabled { opacity:.3; cursor:not-allowed; }
.lr-cal-g { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.lr-cal-wd { text-align:center; font-size:11px; font-weight:800; color:#e0a526; padding:4px 0; }
.lr-cal-d { position:relative; height:36px; border-radius:8px; border:1px solid transparent; background:rgba(255,255,255,.04); color:#fff; font-weight:700; font-size:14px; cursor:pointer; }
.lr-cal-d:hover:not(:disabled) { border-color:rgba(250,204,21,.5); }
.lr-cal-d:disabled { color:rgba(255,255,255,.22); background:transparent; cursor:not-allowed; }
.lr-cal-d.is-today { border-color:rgba(250,204,21,.55); }
.lr-cal-d.has-r::after { content:''; position:absolute; left:50%; bottom:4px; width:5px; height:5px; margin-left:-2.5px; border-radius:50%; background:var(--lr-gold); }
.lr-cal-d.is-sel { background:#e5a823; color:#3b1a00; }
.lr-cal-d.is-sel::after { background:#3b1a00; }
.lr-cal-f { display:flex; justify-content:flex-end; margin-top:8px; }
.lr-admin-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; border:1px dashed rgba(250,204,21,.4); font-size:13px; color:var(--lr-gold2); }
.lr-admin-bar input { height:34px; border-radius:8px; border:1px solid rgba(255,255,255,.2); background:#1a0505; color:#fff; padding:0 8px; color-scheme:dark; }
.lr-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; }
.lr-card { background:linear-gradient(180deg,#2c0c0c 0%,#170404 100%); border:1px solid rgba(255,198,80,.4); border-radius:12px; padding:12px; box-shadow:inset 0 0 14px rgba(150,18,18,.35), 0 4px 12px rgba(0,0,0,.35); display:flex; flex-direction:column; gap:8px; }
.lr-card.is-empty { opacity:.75; }
.lr-head { display:flex; align-items:center; gap:10px; }
.lr-logo { flex:none; width:64px; height:36px; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center; padding:3px; }
.lr-logo img { max-width:100%; max-height:100%; object-fit:contain; }
.lr-title { flex:1; min-width:0; display:flex; flex-direction:column; }
.lr-title b { font-size:15px; }
.lr-title span { font-size:11px; color:rgba(255,255,255,.6); }
.lr-top { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.lr-prize { display:flex; flex-direction:column; align-items:center; gap:3px; padding:0; }
.lr-prize span { font-size:10px; font-weight:700; color:#e0a526; text-transform:uppercase; letter-spacing:.3px; text-align:center; }
.lr-prize b { font-size:22px; font-weight:900; color:var(--lr-gold2); letter-spacing:2px; font-variant-numeric:tabular-nums; }
.lr-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 10px; border-radius:8px; background:rgba(0,0,0,.3); font-weight:800; font-size:14px; font-variant-numeric:tabular-nums; }
.lr-meta-no { display:flex; align-items:center; gap:6px; color:var(--lr-gold2); }
.lr-meta-no em { white-space:nowrap; font-style:normal; font-size:11px; font-weight:700; color:#e0a526; text-transform:uppercase; }
.lr-meta > span { white-space:nowrap; }
.lr-meta { min-width:0; }
.lr-meta-no .lr-in.lr-in--wide { flex:none; height:28px; width:110px; }
.lr-sub { text-align:center; font-size:11px; font-weight:800; color:#e0a526; text-transform:uppercase; letter-spacing:.5px; margin-top:2px; }
.lr-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
.lr-n { text-align:center; padding:4px 0; border-radius:6px; background:rgba(0,0,0,.25); font-weight:700; font-size:14px; font-variant-numeric:tabular-nums; }
.lr-n.is-blank { color:rgba(255,255,255,.3); }
.lr-na, .lr-empty { font-size:13px; color:rgba(255,255,255,.6); padding:8px 0; }
.lr-btn { height:36px; padding:0 16px; border-radius:10px; border:0; background:#e5a823; color:#3b1a00; font-weight:800; cursor:pointer; }
.lr-btn--sm { height:30px; padding:0 12px; font-size:12px; flex:none; }
.lr-btn--ghost { background:linear-gradient(#3f0d0d,#2a0606); color:#fff; border:1px solid rgba(255,255,255,.15); }
.lr-btn:disabled { opacity:.5; }
.lr-form { display:flex; flex-direction:column; gap:8px; }
.lr-f1 { font-size:12px; color:var(--lr-gold2); display:flex; align-items:center; gap:8px; }
.lr-in { width:100%; height:32px; border-radius:6px; border:1px solid rgba(250,204,21,.3); background:#1a0505; color:#fff; text-align:center; font-weight:700; font-size:14px; font-variant-numeric:tabular-nums; }
.lr-in--wide { width:110px; }
.lr-in:focus { outline:none; border-color:var(--lr-gold); box-shadow:0 0 0 2px rgba(250,204,21,.25); }
.lr-msg { flex:1; min-width:0; color:#fca5a5; font-size:12px; text-align:right; }
.lr-msg.is-ok { color:#86efac; }
.lr-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
@media (max-width:420px) { .lr-cards { grid-template-columns:1fr; } .lr-prize b { font-size:20px; } }

/* Peter 2026-11-16: results cards in the traditional white "result sheet" style (black text, dark header bars) */
.lr-card { background:#fff; color:#111; border:0; border-radius:14px; box-shadow:0 4px 14px rgba(0,0,0,.35); padding:16px; gap:10px; }
.lr-card.is-empty { opacity:1; }
.lr-head { justify-content:center; }
.lr-title { flex:none; }
.lr-title b { font-size:18px; font-weight:700; color:#222; }
.lr-logo { background:#fff; border:1px solid #e5e5e5; }
.lr-meta { background:#f2f2f2; color:#111; }
.lr-meta-no { color:#111; }
.lr-top { gap:6px; }
.lr-prize { gap:6px; }
.lr-prize span { width:100%; padding:3px 0; border-radius:6px; background:#2b2b2b; color:#fff; font-size:13px; font-weight:600; letter-spacing:0; }
.lr-prize b { color:#111; font-size:24px; font-weight:700; letter-spacing:1px; }
.lr-sub { margin-top:6px; padding:4px 0; border-radius:6px 6px 0 0; background:#2b2b2b; color:#fff; font-size:14px; font-weight:600; letter-spacing:0; text-transform:none; }
.lr-sub + .lr-grid { margin-top:-10px; }
.lr-grid { gap:0; border:1px solid #2b2b2b; border-top:0; border-radius:0 0 6px 6px; overflow:hidden; }
.lr-n { border-radius:0; background:#fff; color:#111; font-size:17px; font-weight:500; padding:5px 0; border-right:1px solid #2b2b2b; border-bottom:1px solid #2b2b2b; }
.lr-n:nth-child(5n) { border-right:0; }
.lr-n:nth-last-child(-n+5) { border-bottom:0; }
.lr-n.is-blank { color:#999; }
.lr-na { color:#666; text-align:center; }
/* admin entry boxes on the white card */
.lr-in { background:#fff; color:#111; border:1px solid #bbb; }
.lr-in::placeholder { color:#aaa; }
.lr-in:focus { border-color:#e5a823; box-shadow:0 0 0 2px rgba(229,168,35,.35); }
.lr-grid .lr-in { border:0; border-radius:0; border-right:1px solid #2b2b2b; border-bottom:1px solid #2b2b2b; height:32px; }
.lr-grid .lr-in:nth-child(5n) { border-right:0; }
.lr-grid .lr-in:nth-last-child(-n+5) { border-bottom:0; }
.lr-msg { color:#c0392b; }
.lr-msg.is-ok { color:#15803d; }
/* Company colours (Peter 2026-11-16, as on 4dmoon / official sheets) */
.lr-card { --co:#2b2b2b; --co-t:#fff; }
.lr-card[data-co="M"] { --co:#f5c400; --co-t:#111; }
.lr-card[data-co="P"] { --co:#1d4ed8; --co-t:#fff; }
.lr-card[data-co="T"] { --co:#d0021b; --co-t:#fff; }
.lr-card[data-co="S"] { --co:#29a3e0; --co-t:#fff; }
.lr-card[data-co="G"] { --co:#c8102e; --co-t:#fff; }
.lr-card[data-co="N"] { --co:#e76724; --co-t:#fff; }
.lr-card .lr-prize span, .lr-card .lr-sub { background:var(--co); color:var(--co-t); }
.lr-card .lr-grid { border-color:var(--co); }
.lr-card .lr-n, .lr-card .lr-grid .lr-in { border-color:var(--co); }
.lr-card { border-top:6px solid var(--co); }
.lr-card .lr-prize span, .lr-card .lr-sub { text-transform:none; font-size:15px; }
/* Peter 2026-11-16: no top strip; 1st/2nd/3rd framed like Special/Consolation (bar joined to its box); same look signed in or not */
.lr-card { border-top:0; }
.lr-prize { gap:0; }
.lr-card .lr-prize span { border-radius:6px 6px 0 0; }
.lr-prize b, .lr-prize .lr-in { display:block; width:100%; height:40px; line-height:38px; padding:0; text-align:center; background:#fff; color:#111; font-size:24px; font-weight:700; border:1px solid var(--co); border-top:0; border-radius:0 0 6px 6px; box-shadow:none; }
.lr-n { height:34px; line-height:24px; }
.lr-grid .lr-in { height:34px; font-size:17px; font-weight:500; }
.lr-prize b:empty::before { content:'----'; color:#999; }
.lr-prize b.is-blank { color:#aaa; font-weight:500; font-size:17px; }
/* Peter 2026-11-16: title left, logo without frame; filler cells after the 13th Special */
.lr-head { justify-content:flex-start; }
.lr-logo { border:0; padding:0; background:transparent; width:auto; height:36px; }
.lr-logo img { height:36px; width:auto; max-width:72px; }
.lr-fill { background:#f7f7f7; }
.lr-pending { padding:6px 10px; border-radius:8px; background:#fff4cc; border:1px solid #f0c000; color:#7a5a00; font-size:12px; font-weight:600; }
/* Latest button (Peter 2026-11-16) */
.lr-latest { flex:none; height:40px; padding:0 14px; border-radius:10px; border:1px solid rgba(250,204,21,.5); background:#e5a823; color:#3b1a00; font-weight:800; font-size:14px; cursor:pointer; }
.lr-latest:disabled { background:linear-gradient(#3f0d0d,#2a0606); color:rgba(253,230,138,.45); border-color:rgba(250,204,21,.2); cursor:default; }
@media (max-width:420px) { .lr-latest { padding:0 10px; font-size:13px; } }
/* Latest button = same look as the ‹ › date buttons (Peter 2026-11-16) */
.lr-latest { height:40px; border-radius:10px; border:1px solid rgba(250,204,21,.3); background:linear-gradient(#3f0d0d,#2a0606); color:var(--lr-gold2); font-weight:800; font-size:14px; letter-spacing:.3px; }
.lr-latest:hover:not(:disabled) { border-color:rgba(250,204,21,.6); }
.lr-latest:disabled { background:linear-gradient(#3f0d0d,#2a0606); color:var(--lr-gold2); border-color:rgba(250,204,21,.3); opacity:.35; cursor:not-allowed; }
/* Region tabs (2026-11-23): West Malaysia / Singapore / Cambodia, like 4dking.co. */
.lr-tabs { display:flex; gap:6px; margin:12px 0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.lr-tabs::-webkit-scrollbar { display:none; }
.lr-tab { flex:1 1 0; min-width:0; min-height:40px; padding:4px 10px; line-height:1.15; text-align:center; border-radius:10px; border:1px solid rgba(250,204,21,.3); background:linear-gradient(#3f0d0d,#2a0606); color:rgba(253,230,138,.75); font-weight:800; font-size:14px; letter-spacing:.3px; cursor:pointer; }
.lr-tab:hover { border-color:rgba(250,204,21,.6); color:#fde68a; }
.lr-tab[aria-selected="true"] { background:#e5a823; border-color:rgba(250,204,21,.7); color:#3b1a00; }
.lr-tab:focus-visible { outline:2px solid #fde68a; outline-offset:2px; }
@media (max-width:420px) { .lr-tabs { gap:4px; } .lr-tab { padding:4px 6px; font-size:12px; } }
