/*
Theme Name: SathyamWin
Description: Lottery theme for sathyamwin.com — wallet, draws, results.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: sathyamwin
*/

:root {
	--bg: #110019;
	--dot: rgba(255, 255, 255, .05);
	--deep: #240a3d;
	--deep-d: #14041f;
	--panel: #3d1568;
	--panel-d: #2a0c4b;
	--panel-dd: #1a0630;
	--accent: #ffc21a;
	--accent-d: #e08e00;
	--red: #e0262d;
	--red-d: #8f1219;
	--row-a: #9cc8ff;
	--row-b: #ff9f9f;
	--row-c: #d6b0ff;
	--total: #ffd45c;
	--ink: #1c0833;
	--white: #fff;
	--muted: #d6c4ec;
	--ok: #17a05d;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	color: var(--white);
	background-color: var(--bg);
	background-image:
		radial-gradient(var(--dot) 1.4px, transparent 1.6px),
		radial-gradient(ellipse at top, #3a1160 0%, transparent 60%);
	background-size: 16px 16px, 100% 100%;
	min-height: 100vh;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.sw-site { max-width: 1120px; margin: 0 auto; padding: 0 16px 24px; }

/* ---------- Banner ---------- */
.sw-banner { background: radial-gradient(ellipse at 50% 100%, #2d013d, #12001a 80%); margin-top: 12px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 3px solid var(--white); border-bottom: 0; box-shadow: var(--shadow); }
.sw-banner__img { width: 100%; }
.sw-banner__link { display: block; }
.sw-banner__logo {
	display: block; width: auto; max-width: 100%; height: clamp(96px, 20vw, 190px); margin: 0 auto;
	/* fade the picture's own dark background into the banner */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

/* ---------- Nav ---------- */
.sw-nav {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; padding: 10px 14px;
	background: linear-gradient(180deg, #4b1a80, var(--panel-d) 60%, var(--panel-dd));
	border: 3px solid var(--white); border-top-width: 2px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.sw-nav a { color: var(--white); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; transition: background .15s; }
.sw-nav a:hover { background: rgba(255, 255, 255, .12); }
.sw-nav a.is-active { background: var(--accent); color: var(--ink); }
.sw-nav__spacer { flex: 1; }
.sw-chip { background: rgba(0, 0, 0, .3); border: 1px solid var(--accent); color: var(--accent); padding: 6px 12px; border-radius: 999px; font-weight: 800; }
.sw-chip__lbl { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; margin-right: 2px; }
.sw-nav__user { color: var(--muted); padding: 0 6px; }
.sw-nav .sw-nav__out { background: var(--red); color: var(--white); border: 0; font: 700 15px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.sw-nav .sw-nav__out:hover { background: var(--red-d); }
.sw-nav .sw-nav__out:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Panels ---------- */
.sw-main { padding-top: 16px; }
.sw-panel {
	background: linear-gradient(180deg, var(--panel), #2d0f52);
	border: 3px solid var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 20px; margin-bottom: 16px;
}
.sw-title { text-align: center; margin: 0 0 16px; }
.sw-title span {
	display: inline-block; padding: 6px 18px; background: var(--accent); color: var(--ink);
	font-family: var(--font-display); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: clamp(18px, 3.2vw, 26px); border-radius: 6px;
	box-shadow: 0 4px 0 var(--accent-d);
}
.sw-h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 20px; letter-spacing: .3px; }
.sw-muted { color: var(--muted); font-size: 13px; }
.sw-center { text-align: center; }
.sw-rate { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.sw-rate strong { color: var(--accent); }
.sw-alert { background: rgba(0, 0, 0, .25); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; }
.sw-alert--err { border-color: var(--red); }

/* ---------- Next draw strip ---------- */
.sw-draw {
	display: grid; grid-template-columns: 1fr minmax(240px, 1.3fr) 1fr; grid-template-areas: "next count today" "facts facts facts";
	align-items: center; gap: 12px 24px; margin: 0 0 18px; padding: 20px 24px 0; overflow: hidden;
	background: rgba(10, 2, 18, .45); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
}
.sw-nd { grid-area: next; }
.sw-count { grid-area: count; text-align: center; }
.sw-today { grid-area: today; text-align: right; }
.sw-lbl, .sw-sub { display: block; font-size: 13px; color: var(--muted); }
.sw-lbl { font-weight: 500; }
.sw-sub { margin-top: 2px; }
.sw-nd strong { display: block; font: 800 clamp(26px, 3.4vw, 34px)/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.sw-count__digits {
	display: block; margin: 2px 0 10px; font: 800 clamp(42px, 6.4vw, 68px)/1.05 var(--font-display); letter-spacing: .02em;
	font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 0 28px rgba(255, 194, 26, .28);
}
.sw-bar { display: block; height: 6px; max-width: 320px; margin: 0 auto; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.sw-bar i { display: block; height: 100%; width: calc(var(--left, 1) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-d), var(--accent)); transition: width 1s linear; }
.sw-count.is-urgent .sw-count__digits { color: #ff8f8f; text-shadow: none; animation: sw-blink 1s steps(2) infinite; }
.sw-count.is-urgent .sw-bar i { background: var(--red); }
@keyframes sw-blink { 50% { opacity: .6; } }
.sw-today strong { display: block; font: 700 18px/1.25 var(--font-display); }
.sw-clock { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sw-facts {
	grid-area: facts; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 8px -24px 0; padding: 0;
	border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .18);
}
.sw-facts li { padding: 12px 14px; text-align: center; font-size: 13px; color: var(--muted); }
.sw-facts li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.sw-facts strong { display: block; color: var(--white); font: 700 17px/1.3 var(--font-display); }

/* ---------- Betting table ---------- */
.sw-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--ink); border: 2px solid #7a4cc0; border-radius: 8px; overflow: hidden; }
.sw-table th { background: var(--deep); color: var(--accent); font-weight: 700; padding: 6px 4px; font-size: 14px; border-right: 1px solid rgba(255, 255, 255, .25); }
.sw-table td { padding: 6px 3px; text-align: center; border-right: 1px solid rgba(70, 25, 120, .35); border-top: 1px solid rgba(70, 25, 120, .35); }
.sw-row--a td { background: var(--row-a); }
.sw-row--b td { background: var(--row-b); }
.sw-row--c td { background: var(--row-c); }
.sw-name strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .3px; }
.sw-name small { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.sw-sr, .sw-winamt { font-weight: 800; font-size: 13px; }
.sw-d input {
	width: 100%; max-width: 46px; height: 32px; padding: 0 2px; text-align: center;
	font: 700 15px var(--font); color: var(--ink);
	background: #fff; border: 1px solid #8a7aa8; border-radius: 6px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .15);
}
.sw-d input:focus { outline: 3px solid var(--panel-d); outline-offset: 1px; }
.sw-d input.is-filled { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.sw-d input:disabled { background: rgba(255, 255, 255, .6); cursor: not-allowed; }
.sw-sum output { display: inline-block; min-width: 54px; padding: 5px 6px; background: #fff; border-radius: 6px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .15); }
.sw-to { font-weight: 800; font-size: 13px; white-space: nowrap; }
.sw-row.has-bet .sw-name strong { text-decoration: underline wavy var(--panel-d) 2px; text-underline-offset: 4px; }
.sw-table tfoot td { background: var(--total); }
.sw-total-lbl { text-align: right !important; font-weight: 800; font-size: 18px; color: var(--deep-d); padding-right: 12px !important; }

/* ---------- Single / Double Number entry ---------- */
.sw-sect { margin: 0 0 10px; }
.sw-sect .sw-h2 { margin: 0 0 2px; font-size: 18px; }
.sw-sect .sw-muted { margin: 0; font-size: 14px; }
.sw-double { margin-top: 22px; padding: 16px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
.sw-double__form { display: grid; grid-template-columns: minmax(150px, 1.3fr) 1fr 1fr auto; gap: 12px; align-items: end; }
.sw-double__form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.sw-double__form select, .sw-double__form input { display: block; width: 100%; height: 42px; margin-top: 4px; padding: 0 12px; font: 700 16px var(--font); color: var(--ink); background: #fff; border: 0; border-radius: 8px; }
.sw-double__form input { text-align: center; letter-spacing: .08em; }
.sw-double__form .sw-btn { min-height: 42px; }
.sw-double__form :disabled { opacity: .6; cursor: not-allowed; }
.sw-double__form select:focus-visible, .sw-double__form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.sw-dbl-list { list-style: none; margin: 12px 0 0; padding: 0; }
.sw-dbl-list:empty { display: none; }
.sw-dbl-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.sw-dbl-list strong { min-width: 2ch; font: 800 24px var(--font-display); color: var(--accent); }
.sw-dbl-list span { flex: 1; }
.sw-grand { margin: 16px 0 0; text-align: right; color: var(--muted); }
.sw-grand strong { color: var(--white); font-size: 18px; }
@media (max-width: 560px) {
	.sw-double__form { grid-template-columns: 1fr 1fr; }
	.sw-double__form label:first-child, .sw-double__form .sw-btn { grid-column: 1 / -1; }
	.sw-grand { text-align: center; }
}

/* ---------- Buttons ---------- */
.sw-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sw-msg { flex: 1 1 260px; margin: 0; font-weight: 700; min-height: 1.2em; }
.sw-msg--ok { color: #b9ffcf; }
.sw-msg--err { color: #ffd0cf; }
.sw-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px;
	font: 800 17px var(--font); letter-spacing: .3px; text-decoration: none; cursor: pointer;
	border: 2px solid rgba(255, 255, 255, .7); border-radius: 10px; transition: transform .08s, filter .15s;
}
.sw-btn:hover { filter: brightness(1.08); }
.sw-btn:active { transform: translateY(2px); }
.sw-btn:disabled { opacity: .6; cursor: wait; }
.sw-btn--accent { color: var(--ink); background: linear-gradient(180deg, #ffe48a, var(--accent) 45%, var(--accent-d)); box-shadow: 0 4px 0 #7a4d00; }
.sw-btn--red { color: var(--white); background: linear-gradient(180deg, #ff6b6b, var(--red) 45%, var(--red-d)); box-shadow: 0 4px 0 #5a0a10; border-color: var(--accent); }
.sw-btn--ghost { color: var(--white); background: rgba(0, 0, 0, .2); }
.sw-btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.sw-btn:focus-visible, .sw-nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Login ---------- */
.sw-cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-weight: 700; }
.sw-modal { padding: 0; border: 0; background: none; color: var(--white); width: min(420px, calc(100% - 32px)); overflow: visible; }
.sw-modal::backdrop { background: rgba(10, 4, 25, .75); backdrop-filter: blur(3px); }
.sw-modal[open] { animation: sw-pop .18s ease-out; }
.sw-modal .sw-login { background: linear-gradient(180deg, var(--panel), var(--panel-dd)); box-shadow: var(--shadow); max-width: none; }
.sw-modal__x { position: absolute; top: -12px; right: -12px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--white); background: var(--red); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.sw-modal__x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@keyframes sw-pop { from { transform: scale(.94); opacity: 0; } }
.sw-login { max-width: 380px; margin: 0 auto; background: rgba(0, 0, 0, .25); border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; }
.sw-login h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; color: var(--accent); text-align: center; }
.sw-login label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.sw-login input[type=text], .sw-login input[type=password] { width: 100%; height: 42px; padding: 0 12px; font: 16px var(--font); border-radius: 8px; border: 0; }
.sw-pw { position: relative; display: block; }
.sw-pw input { padding-right: 46px !important; }
.sw-pw__eye { position: absolute; top: 0; right: 0; width: 44px; height: 42px; display: grid; place-items: center; background: none; border: 0; color: #6c5d88; cursor: pointer; border-radius: 0 8px 8px 0; }
.sw-pw__eye:hover { color: var(--panel-d); }
.sw-pw__eye:focus-visible { outline: 3px solid var(--panel-d); outline-offset: -3px; }
.sw-login .login-remember label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.sw-login input[type=submit] { width: 100%; min-height: 44px; font: 800 16px var(--font); color: var(--ink); cursor: pointer; border: 0; border-radius: 10px; background: linear-gradient(180deg, #ffe48a, var(--accent) 45%, var(--accent-d)); box-shadow: 0 4px 0 #7a4d00; }

/* ---------- Rules in plain words ---------- */
.sw-rule { display: grid; grid-template-columns: 210px 1fr; gap: 0; margin: 0 0 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.sw-rule dt, .sw-rule dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 16px; line-height: 1.55; }
.sw-rule dt { padding-right: 16px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.sw-rule dd strong { color: var(--white); font-size: 18px; }
.sw-rule__h { margin: 0 0 10px; font: 700 16px var(--font-display); }
.sw-ex { margin: 0 0 10px; padding: 12px 16px; border-left: 5px solid; border-radius: 0 8px 8px 0; background: rgba(0, 0, 0, .25); font-size: 16px; line-height: 1.6; }
.sw-ex--win { border-color: var(--ok); }
.sw-ex--lose { border-color: var(--red); }
.sw-ex__num .sw-win { padding: 0; background: none; }
.sw-ex__num { display: inline-block; padding: 0 8px; font: 800 18px var(--font-display); letter-spacing: 1px; background: var(--deep-d); border-radius: 6px; }
@media (max-width: 560px) { .sw-rule { grid-template-columns: 1fr; } .sw-rule dt { padding-bottom: 0; border-bottom: 0; } .sw-rule dd { padding-top: 2px; } }

/* ---------- Latest results ---------- */
.sw-balls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sw-ball { text-align: center; padding: 14px; border-radius: var(--radius); color: var(--ink); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15); }
.sw-ball--a { background: var(--row-a); }
.sw-ball--b { background: var(--row-b); }
.sw-ball--c { background: var(--row-c); }
.sw-ball__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .3px; }
.sw-ball__num { display: block; font-size: 38px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.sw-ball__time { font-size: 13px; font-weight: 700; opacity: .8; }
.sw-win { margin-left: 2px; padding: 0 .22em; color: var(--accent); background: var(--deep-d); border-radius: 6px; }

/* ---------- Results chart ---------- */
.sw-datebar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.sw-datebar label { font-weight: 800; }
.sw-datebar select { height: 40px; padding: 0 34px 0 12px; font: 700 15px var(--font); color: var(--ink); background-color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
.sw-datebar select:focus-visible, .sw-step:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw-datebar select[name=sw_m] { min-width: 170px; }
.sw-step { display: grid; place-items: center; width: 40px; height: 40px; font: 700 26px/1 var(--font-display); color: var(--ink); text-decoration: none; background: var(--accent); border-radius: 8px; }
.sw-step:hover { filter: brightness(1.08); }
.sw-step.is-off { opacity: .35; }
.sw-datebar.is-auto .sw-search { display: none; }
.sw-link { color: var(--accent); font-weight: 700; }
.sw-chart-wrap { background: #f6f3fb; border-radius: 10px; overflow: hidden; }
.sw-chart { width: 100%; border-collapse: collapse; color: var(--ink); text-align: center; }
.sw-chart thead th { padding: 12px 6px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .4px; color: var(--white); background: var(--deep); }
.sw-chart thead th.sw-chart__g--a { background: #2f6fd0; }
.sw-chart thead th.sw-chart__g--b { background: #d12f3a; }
.sw-chart thead th.sw-chart__g--c { background: #8b3fc9; }
.sw-chart tbody th, .sw-chart td { padding: 11px 6px; border-bottom: 1px solid #e3dcef; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sw-chart tbody th { color: var(--deep); white-space: nowrap; }
.sw-chart tbody tr:nth-child(even) { background: #ece6f6; }
.sw-chart tbody tr:hover { background: #fff3c2; }
.sw-dash { color: #a99bc4; }

.sw-chart td.sw-chart__date { font-size: 14px; font-weight: 600; color: #5b4a7d; white-space: nowrap; }
.sw-print-only { display: none; }

/* ---------- My account ---------- */
.sw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sw-stat { background: rgba(0, 0, 0, .25); border-radius: var(--radius); padding: 16px; text-align: center; }
.sw-stat span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.sw-stat strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.sw-stat--accent { background: linear-gradient(180deg, #ffe48a, var(--accent-d)); color: var(--ink); }
.sw-stat--accent span { color: #5a3d00; }
.sw-scroll { overflow-x: auto; border-radius: 10px; background: #f6f3fb; }
.sw-list { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 14px; }
.sw-list th { background: var(--panel-dd); color: var(--white); text-align: left; padding: 10px; white-space: nowrap; }
.sw-list td { padding: 9px 10px; border-bottom: 1px solid #e3dcef; }
.sw-list tbody tr:nth-child(even) { background: #ece6f6; }
.sw-empty { text-align: center; color: #6c5d88; padding: 20px !important; }
.sw-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--accent); font-weight: 800; }
.sw-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ddd; }
.sw-tag--won, .sw-tag--credit, .sw-tag--win { background: #c9f5d9; color: #0c5e2e; }
.sw-tag--lost, .sw-tag--debit { background: #ffd7d6; color: #8c1114; }
.sw-tag--pending, .sw-tag--bet { background: #fff0b8; color: #6b4b00; }
.sw-pos { color: var(--ok); font-weight: 700; }
.sw-neg { color: var(--red-d); font-weight: 700; }
.sw-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.sw-pager a { font-weight: 700; }
.sw-content a { color: var(--accent); }


/* ---------- Add funds / how to play ---------- */
.sw-pay { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.sw-pay__box { background: rgba(0, 0, 0, .25); border-radius: var(--radius); padding: 14px; text-align: center; }
.sw-pay__qr { width: 100%; max-width: 232px; height: auto; margin: 0 auto 6px; background: #fff; padding: 8px; border-radius: 10px; }
.sw-upi { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sw-upi code { background: #fff; color: var(--ink); font-weight: 700; padding: 5px 10px; border-radius: 6px; word-break: break-all; }
.sw-upi-app { width: 100%; }
.sw-steps { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }
.sw-steps li { margin-bottom: 8px; padding-left: 4px; }
.sw-steps li::marker { color: var(--accent); font-weight: 800; }
.sw-btn--wa { color: #fff; background: linear-gradient(180deg, #3ddc84, #1fa855 55%, #167c3f); box-shadow: 0 4px 0 #0c5128; margin-bottom: 12px; }
@media (max-width: 760px) { .sw-pay { grid-template-columns: 1fr; } }
@media print { #add-funds, #how-to-play { display: none; } }

/* ---------- Footer ---------- */
.sw-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 14px 10px; background: rgba(0, 0, 0, .3); border-radius: var(--radius); }
.sw-footer p { margin: 4px 0; }
.sw-footer__copy { color: var(--accent); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.sw-draw { grid-template-columns: 1fr 1fr; grid-template-areas: "count count" "next today" "facts facts"; padding: 16px 16px 0; }
	.sw-facts { margin: 4px -16px 0; }

	/* Betting table → one card per game, digits in a 5×2 grid */
	.sw-table, .sw-table tbody, .sw-table tfoot { display: block; border: 0; background: none; }
	.sw-table thead { display: none; }
	.sw-table tr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; margin-bottom: 12px; border-radius: 12px; }
	.sw-row--a { background: var(--row-a); }
	.sw-row--b { background: var(--row-b); }
	.sw-row--c { background: var(--row-c); }
	.sw-table tfoot tr { background: var(--total); grid-template-columns: 1fr 1fr; }
	.sw-table td { display: block; border: 0; padding: 0; background: none !important; }
	.sw-name { grid-column: 1 / -1; text-align: left !important; display: flex !important; align-items: baseline; gap: 8px; }
	.sw-sr, .sw-winamt, .sw-total-lbl, .sw-total-pad { display: none !important; }
	.sw-d::before { content: attr(data-d); display: block; font-weight: 800; font-size: 13px; margin-bottom: 2px; }
	.sw-d input { max-width: none; height: 40px; font-size: 17px; }
	.sw-sum, .sw-to { grid-column: span 2; display: flex !important; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; }
	.sw-to { grid-column: span 1; flex-direction: column; justify-content: center; }
	.sw-sum::before, .sw-to::before { content: attr(data-label); }
	.sw-table tfoot .sw-sum { grid-column: span 1; }
	.sw-actions { justify-content: stretch; }
	.sw-actions .sw-btn { flex: 1; }
}

@media (max-width: 560px) {
	body { font-size: 14px; }
	.sw-panel { padding: 14px; }
	.sw-nd strong { font-size: 24px; white-space: nowrap; }
	.sw-lbl, .sw-sub { font-size: 12px; }
	.sw-facts li { padding: 10px 8px; font-size: 12px; }
	.sw-facts strong { font-size: 15px; }
	.sw-balls, .sw-stats { grid-template-columns: 1fr; }
	.sw-ball__num { font-size: 30px; }
	.sw-chart thead th { font-size: 13px; }
	.sw-chart tbody th, .sw-chart td { font-size: 15px; padding: 9px 4px; }
	.sw-nav__user { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ---------- Print / Save as PDF (Results page) ---------- */
@media print {
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body { background: #fff; color: #000; }
	.sw-banner, .sw-nav, .sw-footer, .sw-datebar, .sw-modal { display: none !important; }
	.sw-site { max-width: none; padding: 0; }
	.sw-main { padding: 0; }
	.sw-panel { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
	.sw-print-only { display: block; text-align: center; font: 700 14px var(--font-display); margin: 0 0 8px; }
	.sw-title span { background: none; box-shadow: none; padding: 0; color: #000; font-size: 22px; }
	.sw-rate { color: #000; }
	.sw-rate strong { color: #000; }
	.sw-chart-wrap { background: none; border: 1px solid #999; border-radius: 0; }
	.sw-chart thead { display: table-header-group; }
	.sw-chart tr { break-inside: avoid; }
	.sw-chart tbody tr:hover { background: none; }
	.sw-chart tbody th, .sw-chart td { padding: 6px 4px; font-size: 14px; }
	@page { margin: 12mm; }
}
