.public-header { flex-wrap: wrap; }
.public-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.public-header-actions a { font-size: 13px; }
.public-header-actions .theme-bulb { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; }
.theme-bulb[aria-pressed="true"] .bulb-glass { fill:#ffdf82; stroke:#75500b; }


:root[data-public-theme="light"] {
    color-scheme: light;
    background: #f5f6fa;
    color: #22283c;
    --cyan: #006975;
}
html[data-public-theme="light"] body { background: linear-gradient(155deg,#f3effb,#f6f9fa 55%); }
html[data-public-theme="light"] .public-main {
    --ink: #252840;
    --muted: #515c72;
    --edge: #cbd1df;
    --violet: #603c87;
    --teal: #105d59;
}
html[data-public-theme="light"] .public-main :is(h1,h2,.brand,label) { color: var(--ink); }
html[data-public-theme="light"] .public-main :is(.muted,.eyebrow,.public-notice,.inline-draw-message,.draw-meta time,summary,th,.receipt-metrics span,.inline-slot small,.inline-draw [data-origin]) { color: var(--muted); }
html[data-public-theme="light"] .public-main :is(.top,.receipt-qr-help,.draw-sections,td,th) { border-color: var(--edge); }
html[data-public-theme="light"] .public-main :is(.card,.password-modal,.receipt-code,.receipt-table tr,.receipt-metrics>div,.lucky-disclosure,input,select) {
    background: #fff; color: var(--ink); border-color: var(--edge);
}
html[data-public-theme="light"] .public-main .card { box-shadow: 0 6px 20px #2531440c; }
html[data-public-theme="light"] .public-main .secondary { background: #f6f7fc; color: #413953; border-color: var(--edge); }
html[data-public-theme="light"] .public-main .secondary:hover,
html[data-public-theme="light"] .public-main .public-nav a[aria-current="page"] { background: #ebe3fa; color: #442a66; border-color: #ab94c3; }
html[data-public-theme="light"] .public-main :focus-visible { outline-color: #7546a6; }
html[data-public-theme="light"] .public-main .prize { background: #f6f3fb; border-color: #d4cade; }
html[data-public-theme="light"] .public-main .prize:first-child { background: #eee4fa; border-color: #ad89c7; }
html[data-public-theme="light"] .public-main :is(.prize strong,.receipt-number,.receipt-metrics strong) { color: var(--violet); }
html[data-public-theme="light"] .public-main :is(.inline-slot,.receipt-search-icon,.receipt-winning,.pill) { background: #e8f5f0; border-color: #a6cfc2; color: var(--teal); }
html[data-public-theme="light"] .public-main :is(.inline-slot strong,.receipt-winning strong,.receipt-result-status,.public-stats strong) { color: var(--teal); }
html[data-public-theme="light"] .public-main .inline-slot.vacated { background: repeating-linear-gradient(135deg,#f2ebfa 0 7px,#e6d7f2 7px 14px); border-color: #89669e; }
html[data-public-theme="light"] .public-main .inline-slot.vacated small { color: #56336d; }
html[data-public-theme="light"] .inline-flying { color: #56336d; text-shadow: 0 0 10px white; }
html[data-public-theme="light"] .public-main .lucky-card { background: linear-gradient(110deg,#f4ecfc,#fff8e8); border-color: #d5c6df; }
html[data-public-theme="light"] .public-main .lucky-action output { color: #805500; text-shadow: none; }
html[data-public-theme="light"] .public-main :is(.disabled-status,.error) { color: #872c47; background: #fff0f3; border-color: #d3a3b1; }
html[data-public-theme="light"] .receipt-table td::before { color: #515c72; }
.older-draws { text-align:center; padding:12px 0; } .older-draws [hidden] { display:none; }
.public-main .back-to-top { position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom)); z-index:20; width:48px; height:48px; padding:0; display:grid; place-items:center; border-radius:50%; box-shadow:0 4px 18px #0003; }
.public-main .back-to-top[hidden] { display:none; }
