/* Fast Mattka Exact Structure + Full Responsive + Readable Typography */
:root {
    --skf-bg: #F1F1F1;
    --skf-primary: #176CEE;
    --skf-primary-border: #003399;
    --skf-green: #33CC99;
    --skf-green-border: #339966;
    --skf-dark: #424242;
    --skf-dark-border: #212121;
    --skf-notice: #FF5252;
    --skf-highlight: #FBC503;
    --skf-highlight-border: #E7AA26;
}

* {
    box-sizing: border-box;
}

html,
body.skf-body {
    margin: 0;
    padding: 0;
    background-color: var(--skf-bg);
    font-family: 'Hind', Geneva, Tahoma, Verdana, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #111111;
    overflow-x: hidden;
    width: 100%;
}

/* Header (#header & #logo matching reference) */
#skf-header {
    width: 100%;
    text-align: center;
    padding: 10px 8px 4px 8px;
    background-color: var(--skf-bg);
}

#skf-logo {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skf-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #111111;
}

#skf-logo-img {
    width: auto;
    max-width: min(94vw, 620px);
    max-height: 190px;
    height: auto;
    display: block;
    margin: auto;
}

.skf-crown-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FBC503, #E09F00);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border: 2px solid #B58200;
    flex-shrink: 0;
}

.skf-logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111111;
    margin: 0;
    text-transform: uppercase;
}

/* Main Centered Section & Container */
#skf-section {
    width: 100%;
    text-align: center;
    margin: 2px 0 14px 0;
}

#skf-container {
    width: 98%;
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.skf-tagline-box {
    padding: 4px 6px;
    margin: 0 0 6px 0;
    font-size: 13.5px;
    color: #333333;
    text-align: center;
}

/* Advertisements */
.skf-ad-wrapper {
    margin: 6px 0;
    text-align: center;
}

.skf-ad-item {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 4px;
    margin-bottom: 6px;
}

.skf-ad-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Red Disclaimer / Announcement Banner (#FF5252) */
.skf-announcements {
    margin: 6px 0;
}

.skf-notice-banner {
    background-color: var(--skf-notice);
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    font-size: 14.5px;
    line-height: 1.5;
}

.skf-notice-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    margin-bottom: 2px;
}

.skf-notice-text {
    font-weight: 500;
}

/* Green Updated Timestamp Line */
.skf-updated-line {
    margin: 8px 1% 4px 1%;
    color: #339966;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.skf-quick-nav-links {
    font-size: 13.5px;
}

.skf-quick-nav-links a {
    color: #2962FF;
    text-decoration: none;
    font-weight: 600;
}

.skf-quick-nav-links a:hover {
    text-decoration: underline;
}

/* Main Content Wrapper */
.skf-main-content {
    width: 98%;
    margin: 6px 1%;
}

.skf-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Quick Result Summary Board (Exact Reference Classes & Layout) */
table.quick-result-board {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background-color: #ffffff;
}

tr.board-title {
    width: 100%;
    height: 58px;
    border: 1px solid var(--skf-green-border);
    background-color: var(--skf-green);
}

tr.board-title th {
    vertical-align: middle;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    padding: 8px 10px;
}

tr.board-head {
    width: 100%;
    height: 42px;
    border: 1px solid var(--skf-dark-border);
    background-color: var(--skf-dark);
}

tr.board-head th {
    vertical-align: middle;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 22px;
}

tr.board-head th a {
    color: #ffffff;
    text-decoration: none;
}

tr.board-head th a:hover {
    text-decoration: underline;
}

.games-name {
    width: 64%;
    text-align: left;
    padding: 6px 10px;
}

.yesterday-date,
.today-date {
    width: 18%;
    text-align: right;
    padding: 6px 14px;
    white-space: nowrap;
}

tr.board-section td {
    border-left: 8px solid var(--skf-notice);
    border-bottom: 1px solid #dddddd;
    vertical-align: middle;
    font-weight: 700;
    font-size: 15px;
    height: 40px;
    padding-left: 14px;
    background-color: #F1F1F1;
    color: var(--skf-notice);
    text-align: left;
}

tr.game-result {
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    border: 1px solid #CCCCCC;
}

tr.game-result:hover {
    background-color: #F7F7F7;
}

tr.game-result.highlight,
tr.highlight {
    background-color: var(--skf-highlight) !important;
    border: 1px solid #bf8302;
}

td.game-details {
    vertical-align: middle;
    text-align: left;
    padding: 6px 10px;
}

.game-details .game-name {
    font-size: 16px;
    font-weight: 700;
    margin: 2px 0 3px 0;
    color: #111111;
    text-transform: uppercase;
}

.game-details .game-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.game-details .game-time {
    color: #444444;
    font-weight: 500;
}

.game-details .game-link a {
    color: #2962FF;
    text-decoration: none;
    font-weight: 700;
}

.game-details .game-link a:hover {
    text-decoration: underline;
}

td.yesterday-number,
td.today-number {
    vertical-align: middle;
    text-align: right;
    padding: 6px 14px 6px 6px;
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
}

tr.holder-row {
    border: 1px solid var(--skf-highlight-border);
    background-color: var(--skf-highlight);
}

tr.holder-row td {
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14.5px;
    color: #111111;
}

/* Monthly Chart Table (Exact Reference Styles) */
.chart {
    margin-bottom: 14px;
}

table.chart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

tr.chart-head {
    width: 100%;
    height: 46px;
    border: 1px solid var(--skf-green-border);
    background-color: var(--skf-green);
}

tr.chart-head td.month {
    vertical-align: middle;
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    padding: 8px 10px;
}

tr.date-name {
    width: 100%;
    height: 38px;
    background-color: var(--skf-highlight);
    border: 1px solid var(--skf-highlight-border);
}

tr.date-name td.date,
tr.date-name th.name {
    border-right: 1px solid var(--skf-highlight-border);
    vertical-align: middle;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 5px;
}

tr.date-name td.date {
    color: #d92626;
}

tr.date-name th.name a {
    color: #111111;
    text-decoration: none;
}

tr.day-number {
    width: 100%;
    height: 35px;
    border: 1px solid #CCCCCC;
}

tr.day-number:nth-child(odd) {
    background-color: #ffffff;
}

tr.day-number:nth-child(even) {
    background-color: #F9F9F9;
}

tr.day-number:hover {
    background-color: #F0F0F0;
}

tr.day-number.highlight,
tr.day-number.highlight td,
td.cell-highlight {
    background-color: var(--skf-highlight) !important;
    font-weight: 700;
}

tr.day-number td.day,
tr.day-number td.number {
    border-right: 1px solid #CCCCCC;
    vertical-align: middle;
    text-align: center;
    padding: 5px 4px;
    font-size: 15px;
}

tr.day-number td.day {
    color: #d92626;
    font-weight: 700;
    min-width: 58px;
}

tr.day-number td.number {
    font-weight: 600;
    color: #111111;
}

tr.chart-nav-row {
    height: 44px;
    border: 2px solid var(--skf-bg);
}

td.e-link {
    vertical-align: middle;
    color: #ffffff;
    background-color: var(--skf-primary);
    border: 1px solid var(--skf-primary-border);
    text-align: center;
    padding: 8px 10px;
}

td.e-link:hover,
div.nav-link:hover,
input#direct-chart:hover,
.skf-go-btn:hover {
    background-color: #003399;
}

td.e-link a {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: block;
}

td.s-link {
    background-color: var(--skf-bg);
    text-align: center;
    color: #555555;
    font-weight: 700;
}

/* Blue Full-Width Navigation Bar (div.nav-link) */
div.nav-link {
    width: 100%;
    margin: 10px auto;
    border: 1px solid var(--skf-primary-border);
    background-color: var(--skf-primary);
    text-align: center;
}

div.nav-link a {
    display: block;
    padding: 10px 8px;
    line-height: 22px;
    color: #ffffff !important;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
}

/* Split Prev / Home / Next Record Buttons */
.skf-split-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
}

.skf-btn-blue {
    display: inline-block;
    background-color: var(--skf-primary);
    border: 1px solid var(--skf-primary-border);
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.skf-btn-blue:hover {
    background-color: #003399;
}

.skf-btn-disabled {
    display: inline-block;
    background-color: #cccccc;
    border: 1px solid #aaaaaa;
    color: #666666;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* All Available Records Directory Grid */
.skf-directory-box {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    margin-bottom: 14px;
}

.skf-directory-head {
    background-color: var(--skf-dark);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.skf-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
}

.skf-chart-pill {
    display: block;
    background-color: #F7F7F7;
    border: 1px solid #CCCCCC;
    color: #2962FF !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 6px;
}

.skf-chart-pill:hover {
    background-color: var(--skf-primary);
    border-color: var(--skf-primary-border);
    color: #ffffff !important;
}

/* Yellow Bottom Chart / Search Form (#footer & #chart-form) */
#skf-footer {
    width: 100%;
    text-align: center;
    margin: 8px auto 16px auto;
}

#chart-form {
    width: 98%;
    max-width: 960px;
    margin: 0 auto 12px auto;
    border: 1px solid var(--skf-highlight-border);
    background-color: var(--skf-highlight);
    padding: 14px 10px;
}

#chart-text {
    padding: 4px;
    color: #111111;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 22px;
    margin-bottom: 10px;
}

.skf-footer-form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.skf-footer-control {
    flex: 1 1 180px;
    max-width: 260px;
    height: 42px;
    font-size: 14.5px;
    font-weight: 600;
    padding: 6px 10px;
    border: 1px solid #c99700;
    background-color: #ffffff;
    color: #111111;
}

.skf-go-btn {
    flex: 0 1 160px;
    min-width: 130px;
    height: 42px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid var(--skf-primary-border);
    background-color: var(--skf-primary);
    color: #ffffff;
    cursor: pointer;
}

.skf-footer-meta {
    width: 98%;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 10px;
    font-size: 13px;
    color: #555555;
    text-align: center;
}

.skf-footer-links {
    margin-bottom: 6px;
}

.skf-footer-links a {
    color: #2962FF;
    font-weight: 700;
    text-decoration: none;
    margin: 0 8px;
}

/* Floating Bottom-Right Refresh Button (Matches Reference) */
.skf-floating-refresh {
    position: fixed;
    bottom: 16px;
    right: 12px;
    z-index: 90;
    border: 1px solid var(--skf-highlight-border);
    background: var(--skf-highlight);
    color: #d90000;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Pagination */
.skf-pagination {
    padding: 10px;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-top: none;
}

.skf-pagination .pagination {
    margin-bottom: 0;
    --bs-pagination-font-size: 13.5px;
}

/* Responsive Breakpoints (Tablet, Android, iPhone) */
@media (max-width: 767.98px) {
    .skf-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    tr.board-title th {
        font-size: 16px;
    }
    td.yesterday-number,
    td.today-number {
        font-size: 21px;
        padding-right: 10px;
    }
}

@media (max-width: 575.98px) {
    #skf-container {
        width: 100%;
        padding: 0 4px;
    }
    .skf-main-content {
        width: 100%;
        margin: 6px 0;
    }
    .skf-logo-text {
        font-size: 20px;
    }
    .games-name {
        width: 58%;
        padding: 6px 8px;
    }
    .yesterday-date,
    .today-date {
        width: 21%;
        padding: 6px 8px;
        font-size: 13.5px;
    }
    .game-details .game-name {
        font-size: 14.5px;
    }
    .game-details .game-sub {
        font-size: 12.5px;
        gap: 6px;
    }
    td.yesterday-number,
    td.today-number {
        font-size: 20px;
        padding: 6px 8px;
    }
    .skf-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skf-footer-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .skf-footer-control,
    .skf-go-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Live Timed Markets Board (Below Logo) */
.skf-timed-board-wrap {
    width: 98%;
    margin: 8px 1% 12px 1%;
    background: #ffffff;
    border: 1px solid #cccccc;
}

.skf-timed-header {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.skf-live-clock {
    background: var(--skf-highlight);
    color: #111111;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12.5px;
    font-weight: 700;
}

.skf-timed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.skf-timed-table thead th {
    background-color: var(--skf-dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 10px;
    text-align: center;
    border-bottom: 1px solid #212121;
    white-space: nowrap;
}

.skf-timed-row {
    border-bottom: 1px solid #e2e8f0;
}

.skf-timed-row:nth-child(even) {
    background-color: #fafafa;
}

.skf-timed-row.highlight {
    background-color: var(--skf-highlight) !important;
}

.skf-timed-table td {
    padding: 7px 10px;
    vertical-align: middle;
    text-align: center;
}

.skf-timed-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #111111;
    text-decoration: none;
    text-transform: uppercase;
}

.skf-timed-name:hover {
    color: var(--skf-primary);
    text-decoration: underline;
}

.skf-timed-window {
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
}

.skf-circle-timer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.skf-ring-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.skf-ring-halo {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px dashed transparent;
    pointer-events: none;
}

.skf-ring-svg {
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
}

.skf-ring-track {
    fill: #ffffff;
    stroke: #e2e8f0;
    stroke-width: 4.5;
}

.skf-ring-progress {
    fill: none;
    stroke-width: 4.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.skf-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.skf-ring-num {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.skf-ring-unit {
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-top: 2px;
}

.skf-ring-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 999px;
}

.skf-ring-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: none;
}

.skf-circle-timer--live .skf-ring-wrap {
    animation: skfLiveGlow 1.6s ease-in-out infinite;
}

.skf-circle-timer--live .skf-ring-halo {
    border-color: rgba(239, 68, 68, 0.55);
    animation: skfOrbitSpin 8s linear infinite;
}

.skf-circle-timer--live .skf-ring-progress {
    stroke: url(#skfLiveGrad);
}

.skf-circle-timer--live .skf-ring-num {
    color: #dc2626;
}

.skf-circle-timer--live .skf-ring-tag {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.skf-circle-timer--live .skf-ring-dot {
    display: inline-block;
    animation: skfDotBlink 0.9s ease-in-out infinite;
}

.skf-circle-timer--upcoming .skf-ring-halo {
    border-color: rgba(23, 108, 238, 0.35);
    animation: skfOrbitSpin 16s linear infinite;
}

.skf-circle-timer--upcoming .skf-ring-progress {
    stroke: url(#skfUpcomingGrad);
}

.skf-circle-timer--upcoming .skf-ring-num {
    color: var(--skf-primary);
}

.skf-circle-timer--upcoming .skf-ring-tag {
    background: #dbeafe;
    color: #1d4ed8;
}

.skf-circle-timer--closed .skf-ring-progress {
    stroke: #64748b;
}

.skf-circle-timer--closed .skf-ring-num {
    color: #475569;
}

.skf-circle-timer--closed .skf-ring-tag {
    background: #e2e8f0;
    color: #334155;
}

@keyframes skfOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes skfLiveGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.35));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 11px rgba(239, 68, 68, 0.65));
        transform: scale(1.04);
    }
}

@keyframes skfDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.skf-timed-val {
    white-space: nowrap;
}

.skf-jodi {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.skf-pana {
    display: block;
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

.skf-timed-chart-btn {
    display: inline-block;
    background: var(--skf-primary);
    color: #ffffff !important;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.skf-timed-chart-btn:hover {
    background: #003399;
}

@media (max-width: 575.98px) {
    .skf-timed-board-wrap {
        width: 100%;
        margin: 6px 0 10px 0;
    }
    .skf-timed-table td,
    .skf-timed-table thead th {
        padding: 6px 5px;
    }
    .skf-timed-name {
        font-size: 13.5px;
    }
    .skf-timed-window {
        font-size: 11px;
    }
    .skf-jodi {
        font-size: 15px;
    }
    .skf-ring-wrap,
    .skf-ring-svg {
        width: 48px;
        height: 48px;
    }
    .skf-ring-num {
        font-size: 14px;
    }
}
