:root {
    color-scheme: dark;
    --bg: #08120e;
    --panel: #101d16;
    --panel-2: #142319;
    --stroke: rgba(150, 193, 164, .14);
    --text: #f0f8f0;
    --muted: #8d9f91;
    --green: #00e239;
    --green-light: #7bff83;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

button, input { font: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

.ambient {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .24;
    z-index: 0;
}

.ambient-one { top: 100px; right: -230px; width: 440px; height: 440px; background: #095d1b; }
.ambient-two { top: 550px; left: -250px; width: 440px; height: 440px; background: #064d37; opacity: .17; }

.page-shell { position: relative; z-index: 1; width: min(1200px, calc(100% - 64px)); margin: 0 auto; }

.topbar {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--stroke);
}

.brand { display: inline-flex; align-items: center; gap: 18px; }
.brand-logo { width: 128px; height: 70px; object-fit: contain; object-position: left center; }
.brand-caption { padding-left: 16px; border-left: 1px solid var(--stroke); color: #a1b5a6; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .13em; color: #a3baaa; }
.live-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(0, 226, 57, .5); }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 54px; align-items: end; padding: 64px 0 62px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .21em; }
.hero h1 { max-width: 650px; margin: 16px 0 18px; font-size: clamp(34px, 4.5vw, 62px); line-height: 1.09; letter-spacing: -.045em; font-weight: 800; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 570px; color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-size: 13px; font-weight: 750; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #05280d; box-shadow: 0 7px 24px rgba(0, 226, 57, .14); }
.button-primary:hover { background: #3bf663; }
.button-secondary { background: rgba(255,255,255,.035); color: var(--text); border-color: rgba(255,255,255,.16); }
.button-secondary:hover { border-color: rgba(0,226,57,.45); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--stroke); background: linear-gradient(145deg, rgba(22, 43, 27, .95), rgba(14, 27, 19, .95)); border-radius: 17px; }
.stat-label { color: #a2baac; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .1em; }
.stat-value { margin-top: 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; color: #f3fff4; }
.stat-meta { margin-top: 9px; color: var(--muted); font-size: 12px; }

.notice { margin-bottom: 30px; padding: 15px 18px; border-radius: 12px; font-size: 13px; }
.notice-error { color: #ffd9d9; background: rgba(180, 40, 40, .16); border: 1px solid rgba(255, 95, 95, .3); }
.notice-warning { color: #f7e9b9; background: rgba(154, 120, 10, .15); border: 1px solid rgba(230, 183, 47, .3); }

.catalog { padding: 37px 0 72px; border-top: 1px solid var(--stroke); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.2; letter-spacing: -.03em; margin: 8px 0 7px; }
.section-heading h2 span { color: var(--green); }
.updated-at { font-size: 12px; margin: 0; color: var(--muted); }
.search-control { display: flex; align-items: center; gap: 9px; width: 285px; max-width: 100%; padding: 0 15px; height: 48px; border-radius: 11px; border: 1px solid var(--stroke); background: #142218; color: #7c9785; }
.search-control:focus-within { border-color: rgba(0,226,57,.58); box-shadow: 0 0 0 3px rgba(0,226,57,.07); }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #eaffeb; font-size: 13px; }
.search-control input::placeholder { color: #799080; }
.category-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: -9px 0 22px; }
.category-filter { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid var(--stroke); border-radius: 999px; background: #122118; color: #a0b7a6; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.category-filter span { font-size: 11px; font-weight: 700; opacity: .75; }
.category-filter:hover { border-color: rgba(0,226,57,.45); color: #ecffee; }
.category-filter.is-active { background: rgba(0,226,57,.12); border-color: rgba(0,226,57,.65); color: #6dff89; }
.result-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #8ca193; font-size: 12px; }
.result-meta strong { color: var(--text); }
.status-caption { display: flex; align-items: center; gap: 8px; }

.provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.provider-card { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; padding: 25px 16px 22px; background: linear-gradient(155deg, rgba(22,39,28,.96), rgba(13,26,18,.96)); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.provider-card:hover { transform: translateY(-4px); border-color: rgba(0,226,57,.4); box-shadow: 0 14px 32px rgba(0,0,0,.15); }
.provider-image-frame { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 205px; height: 105px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.055); }
.provider-image { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.provider-initials { color: #6d9a75; font-size: 28px; font-weight: 800; letter-spacing: -.07em; }
.provider-details { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.provider-details h3 { width: 100%; text-align: center; min-height: 23px; margin: 0; color: #eff6ef; font-size: 14px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.provider-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.provider-category { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #b4c8bb; font-size: 11px; font-weight: 700; white-space: nowrap; }
.game-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; color: #a6ffb6; border: 1px solid rgba(0,226,57,.16); background: rgba(0,226,57,.07); border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.game-pill span { color: #90b69a; font-weight: 500; }
.empty-state { padding: 45px 20px; text-align: center; color: #9db3a3; background: var(--panel); border-radius: 12px; border: 1px solid var(--stroke); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0 35px; border-top: 1px solid var(--stroke); color: #6e8476; font-size: 11px; }

@media (max-width: 1024px) {
    .hero { gap: 25px; }
    .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-card { padding: 19px; }
}

@media (max-width: 720px) {
    .page-shell { width: min(100% - 32px, 620px); }
    .topbar { min-height: 76px; }
    .brand-logo { width: 105px; height: 59px; }
    .brand-caption { display: none; }
    .live-indicator { font-size: 9px; letter-spacing: .06em; }
    .hero { grid-template-columns: 1fr; gap: 28px; padding: 42px 0 40px; }
    .hero h1 { font-size: clamp(34px, 9vw, 48px); }
    .hero p { font-size: 13px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 19px; }
    .stat-value { font-size: 31px; }
    .catalog { padding-top: 29px; }
    .section-heading { flex-direction: column; align-items: stretch; gap: 17px; margin-bottom: 22px; }
    .search-control { width: 100%; }
    .category-filters { flex-wrap: nowrap; overflow-x: auto; padding: 0 0 8px; margin: -6px -2px 13px; scrollbar-width: none; }
    .category-filters::-webkit-scrollbar { display: none; }
    .category-filter { flex: 0 0 auto; padding: 9px 13px; }
    .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .provider-card { border-radius: 13px; padding: 14px 10px 16px; }
    .provider-image-frame { max-width: 100%; height: 88px; }
    .provider-details { gap: 10px; margin-top: 12px; }
    .provider-details h3 { font-size: 12px; min-height: 34px; }
    .provider-meta { gap: 5px; }
    .provider-category { font-size: 10px; padding: 4px 8px; }
    .game-pill { font-size: 11px; padding: 5px 10px; }
    .footer { flex-direction: column; gap: 5px; text-align: center; }
}

@media (max-width: 360px) {
    .page-shell { width: calc(100% - 24px); }
    .hero-actions .button { flex: 1 1 100%; }
    .stat-card { padding: 14px; }
    .stat-label { font-size: 9px; }
    .provider-card { padding: 12px 7px; }
    .provider-image-frame { height: 76px; }
}

@page { size: A4 portrait; margin: 14mm; }

@media print {
    :root { color-scheme: light; }
    body { background: #fff !important; color: #142b1c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ambient, .topbar-right, .hero-actions, .search-control, .category-filters, .result-meta, .footer { display: none !important; }
    .page-shell { width: 100%; margin: 0; }
    .topbar { min-height: 52px; }
    .brand-logo { width: 115px; height: 53px; }
    .brand-caption { color: #49614e; display: block; }
    .hero { display: block; padding: 15px 0; }
    .hero h1 { font-size: 24px; margin: 8px 0; }
    .hero h1 span, .eyebrow, .section-heading h2 span { color: #058b29; }
    .hero p { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
    .stat-card { background: #f2f8f3; border: 1px solid #d4e5d8; padding: 12px; }
    .stat-value { color: #0e311a; font-size: 25px; }
    .stat-label, .stat-meta { color: #637b6a; }
    .catalog { padding: 15px 0 0; }
    .section-heading { margin-bottom: 15px; }
    .section-heading h2 { color: #143d20; font-size: 22px; }
    .updated-at { color: #657b68; }
    .provider-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .provider-card { border: 1px solid #dbe8de; border-radius: 8px; background: #fff; padding: 9px 5px; box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
    .provider-image-frame { height: 70px; border: 0; background: #f7faf8; }
    .provider-details { margin-top: 8px; gap: 6px; }
    .provider-details h3 { color: #1c3524; font-size: 10px; }
    .provider-category { color: #54715e; background: #eef3ef; border: 0; font-size: 9px; }
    .game-pill { color: #127d30; background: #eaf8ed; border: 0; font-size: 10px; }
    .game-pill span { color: #4b8660; }
}
