@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --igr-saffron: #ff9933;
    --igr-saffron-deep: #e87722;
    --igr-green: #138808;
    --igr-green-deep: #0b5e06;
    --igr-black: #080808;
    --igr-surface: #121212;
    --igr-surface-2: #1a1a1a;
    --igr-text: #f0f0f0;
    --igr-text-muted: #b8b8b8;
    --igr-glass: rgba(18, 18, 18, 0.78);
    --igr-radius: 16px;
    --igr-radius-lg: 22px;
    --igr-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --igr-tricolor: linear-gradient(
        90deg,
        var(--igr-saffron) 0%,
        var(--igr-saffron) 33.33%,
        #fff 33.33%,
        #fff 66.66%,
        var(--igr-green) 66.66%,
        var(--igr-green) 100%
    );
    --igr-brand-grad: linear-gradient(135deg, var(--igr-saffron) 0%, var(--igr-green) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background-color: var(--igr-black);
    color: var(--igr-text);
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 153, 51, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(19, 136, 8, 0.08), transparent);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--igr-saffron);
    text-decoration: none;
}

a:hover {
    color: #ffb366;
}

.igr-container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

.igr-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--igr-glass);
    border-bottom: 3px solid transparent;
    border-image: var(--igr-tricolor) 1;
    box-shadow: 0 4px 24px rgba(255, 153, 51, 0.15);
    transition: box-shadow 0.35s var(--igr-ease);
}

.igr-header.is-scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.igr-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
}

.igr-brand img,
.igr-brand picture img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(255, 153, 51, 0.25));
}

.igr-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--igr-text);
    border-radius: 10px;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}

.igr-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.igr-nav-links a {
    color: var(--igr-text);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: background 0.25s var(--igr-ease), color 0.25s var(--igr-ease);
}

.igr-nav-links a:hover,
.igr-nav-links a.active {
    background: rgba(255, 153, 51, 0.12);
    color: #fff;
}

.igr-hero {
    padding: 2.5rem 0 1.5rem;
}

.igr-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: stretch;
}

.igr-hero-card {
    background: linear-gradient(165deg, rgba(255, 153, 51, 0.12) 0%, var(--igr-surface) 40%, rgba(19, 136, 8, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--igr-radius-lg);
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.igr-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.15;
    background: var(--igr-brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.igr-hero p {
    margin: 0;
    color: var(--igr-text-muted);
    max-width: 52ch;
    line-height: 1.6;
}

.igr-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.igr-badge {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 153, 51, 0.35);
    background: rgba(0, 0, 0, 0.25);
}

.igr-clock-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--igr-radius-lg);
    padding: 1.5rem;
}

.igr-clock {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.igr-date {
    color: var(--igr-text-muted);
    margin-top: 0.35rem;
    font-weight: 600;
}

.igr-refresh-note {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--igr-text-muted);
}

.igr-section {
    padding: 1.25rem 0 2.5rem;
}

.igr-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.igr-section-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.igr-section-head p {
    margin: 0;
    color: var(--igr-text-muted);
    font-size: 0.9rem;
}

.igr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.igr-market-card {
    position: relative;
    overflow: hidden;
    background: var(--igr-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--igr-radius);
    padding: 1.15rem 1.15rem 1rem;
    transition: transform 0.35s var(--igr-ease), border-color 0.35s var(--igr-ease), box-shadow 0.35s var(--igr-ease);
}

.igr-market-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--igr-tricolor);
    opacity: 0.85;
}

.igr-market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 153, 51, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 153, 51, 0.12);
}

.igr-market-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.igr-market-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.igr-market-times {
    font-size: 0.78rem;
    color: var(--igr-text-muted);
    margin-top: 0.2rem;
}

.igr-result-line {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0.35rem 0 0.65rem;
    font-variant-numeric: tabular-nums;
}

.igr-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}

.igr-pill-live {
    background: rgba(19, 136, 8, 0.2);
    color: #7ddf6a;
    border: 1px solid rgba(19, 136, 8, 0.45);
}

.igr-pill-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7ddf6a;
    box-shadow: 0 0 10px #7ddf6a;
    animation: igrPulse 1.4s ease-in-out infinite;
}

.igr-pill-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--igr-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.igr-pill-soon {
    background: rgba(255, 153, 51, 0.12);
    color: #ffc98a;
    border: 1px solid rgba(255, 153, 51, 0.35);
}

@keyframes igrPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.igr-starline-table-wrap {
    overflow-x: auto;
    border-radius: var(--igr-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--igr-surface-2);
}

table.igr-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.igr-table th,
.igr-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.igr-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--igr-text-muted);
    background: rgba(0, 0, 0, 0.25);
}

.igr-table tr:last-child td {
    border-bottom: none;
}

.igr-table td.result-cell {
    font-weight: 800;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.igr-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: var(--igr-radius);
    border: 1px dashed rgba(255, 153, 51, 0.35);
    background: rgba(255, 153, 51, 0.06);
    color: var(--igr-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.igr-page {
    padding: 2rem 0 3rem;
}

.igr-prose {
    background: var(--igr-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--igr-radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.65;
}

.igr-prose h1 {
    margin-top: 0;
    font-size: 1.65rem;
}

.igr-prose h2 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
    color: #ffc98a;
}

.igr-prose p,
.igr-prose li {
    color: var(--igr-text-muted);
}

.igr-prose ul {
    padding-left: 1.2rem;
}

.igr-form {
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

.igr-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.igr-form input,
.igr-form textarea,
.igr-form select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--igr-text);
    font: inherit;
}

.igr-form input:focus,
.igr-form textarea:focus,
.igr-form select:focus {
    outline: 2px solid rgba(255, 153, 51, 0.45);
    border-color: rgba(255, 153, 51, 0.55);
}

.igr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--igr-brand-grad);
    color: #111;
    transition: transform 0.2s var(--igr-ease), box-shadow 0.2s var(--igr-ease);
}

.igr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 153, 51, 0.25);
}

.igr-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.igr-alert-success {
    background: rgba(19, 136, 8, 0.18);
    border: 1px solid rgba(19, 136, 8, 0.45);
    color: #b8f0a8;
}

.igr-alert-info {
    background: rgba(255, 153, 51, 0.12);
    border: 1px solid rgba(255, 153, 51, 0.35);
    color: #ffd7a8;
}

.igr-footer {
    margin-top: 2rem;
    border-top: 4px solid transparent;
    border-image: var(--igr-tricolor) 1;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1008 45%, #0a120a 100%);
    padding: 2rem 0;
}

.igr-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.igr-footer h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.igr-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.igr-footer a {
    color: var(--igr-text-muted);
}

.igr-footer a:hover {
    color: #fff;
}

.igr-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--igr-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 860px) {
    .igr-hero-grid {
        grid-template-columns: 1fr;
    }

    .igr-nav-toggle {
        display: inline-flex;
    }

    .igr-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
        background: var(--igr-glass);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .igr-nav-links.is-open {
        display: flex;
    }

    .igr-header .igr-container {
        position: relative;
    }

    .igr-brand img,
    .igr-brand picture img {
        height: 38px;
    }
}
