:root {
    color-scheme: light;
    --roc-blue: #1e73be;
    --roc-blue-strong: #0b57d0;
    --roc-text: #1f2328;
    --roc-muted: #5b6470;
    --roc-line: #d8dee6;
    --roc-soft: #f6f8fb;
    --roc-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--roc-soft);
    color: var(--roc-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    margin: 0;
}

a {
    color: var(--roc-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.roc-site-head {
    align-items: center;
    background: var(--roc-white);
    border-bottom: 1px solid var(--roc-line);
    display: flex;
    justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 42px);
}

.roc-site-head > a {
    color: var(--roc-text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}

.roc-site-head nav {
    display: flex;
    gap: 8px;
}

.roc-site-head nav a {
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    color: var(--roc-muted);
    font-weight: 700;
    padding: 5px 9px;
}

.roc-site-head nav a.is-active {
    background: var(--roc-blue);
    border-color: var(--roc-blue);
    color: #fff;
}

.roc-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px clamp(16px, 4vw, 42px) 48px;
}

.roc-hero,
.roc-game-hero,
.roc-panel {
    background: var(--roc-white);
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    margin-bottom: 24px;
    padding: 24px;
}

.roc-kicker {
    color: var(--roc-blue);
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

h1 {
    font-size: clamp(28px, 4vw, 44px);
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 18px;
}

.roc-copy {
    color: var(--roc-muted);
    font-size: 17px;
    margin-top: 14px;
    max-width: 880px;
}

.roc-copy p {
    margin: 0 0 12px;
}

.roc-copy p:last-child {
    margin-bottom: 0;
}

.roc-search-panel {
    display: grid;
    gap: 10px;
}

.roc-search-panel label {
    font-weight: 800;
}

.roc-search {
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    color: var(--roc-text);
    font-size: 17px;
    max-width: 560px;
    padding: 12px 14px;
    width: 100%;
}

.roc-search:focus {
    border-color: var(--roc-blue);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.18);
    outline: none;
}

.roc-search-results {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.roc-search-results a,
.roc-card {
    align-items: center;
    background: var(--roc-soft);
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.roc-search-results a,
.roc-card {
    display: grid;
    gap: 2px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.roc-search-results a strong,
.roc-search-results a small,
.roc-card strong,
.roc-card small {
    grid-column: 1;
}

.roc-search-results span,
.roc-card span {
    background: #e7f2ff;
    border-radius: 999px;
    color: var(--roc-blue);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 9px;
}

.roc-result-en,
.roc-title-en {
    color: var(--roc-muted);
    display: block;
    font-size: 0.78em;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2px;
}

.roc-search-results span,
.roc-card span {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.roc-top-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.roc-top-list {
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    padding: 16px;
}

.roc-top-list ol {
    display: grid;
    gap: 8px;
    list-style-position: inside;
    margin: 12px 0 0;
    padding: 0;
}

.roc-top-list li {
    align-items: baseline;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.roc-top-list span {
    color: var(--roc-muted);
    font-weight: 800;
}

.roc-game-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.roc-browser {
    display: grid;
    gap: 14px;
}

.roc-az {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.roc-az button,
.roc-load-more {
    border: 1px solid var(--roc-blue);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.2;
}

.roc-az button {
    background: #e9f2ff;
    color: var(--roc-blue);
    min-width: 38px;
    padding: 7px 9px;
}

.roc-az button.is-active,
.roc-az button:hover:not(:disabled) {
    background: var(--roc-blue);
    color: #fff;
}

.roc-az button:disabled {
    border-color: var(--roc-line);
    color: var(--roc-muted);
    cursor: default;
    opacity: 0.42;
}

.roc-load-more {
    background: #fff;
    color: var(--roc-blue);
    justify-self: start;
    padding: 10px 14px;
}

.roc-load-more:hover {
    background: var(--roc-blue);
    color: #fff;
}

.roc-load-more[hidden] {
    display: none;
}

.roc-card strong,
.roc-top-list a {
    overflow-wrap: anywhere;
}

.roc-breadcrumb {
    color: var(--roc-muted);
    margin-bottom: 14px;
}

.roc-game-hero {
    display: grid;
    gap: 16px;
}

.roc-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roc-stats span {
    background: var(--roc-soft);
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    padding: 12px;
}

.roc-stats strong,
.roc-stats small {
    display: block;
}

.roc-stats strong {
    font-size: 20px;
}

.roc-stats small {
    color: var(--roc-muted);
    font-weight: 800;
}

.roc-game-copy {
    color: var(--roc-muted);
    font-size: 17px;
    margin: 0;
}

.roc-primary-link {
    background: var(--roc-blue);
    border: 1px solid var(--roc-blue);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-self: start;
    padding: 10px 14px;
}

.roc-primary-link:hover {
    background: var(--roc-blue-strong);
    border-color: var(--roc-blue-strong);
    color: #fff;
    text-decoration: none;
}

.roc-code-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.roc-code {
    align-items: center;
    border: 1px solid var(--roc-line);
    border-radius: 4px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    padding: 12px;
}

.roc-code code {
    background: #eef5ff;
    border-radius: 4px;
    color: var(--roc-text);
    display: block;
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
    padding: 8px 10px;
}

.roc-empty,
.roc-footer {
    color: var(--roc-muted);
}

.roc-footer {
    border-top: 1px solid var(--roc-line);
    padding: 18px clamp(16px, 4vw, 42px);
    text-align: center;
}

@media (max-width: 860px) {
    .roc-top-grid,
    .roc-game-grid,
    .roc-stats {
        grid-template-columns: 1fr;
    }

    .roc-code {
        grid-template-columns: 1fr;
    }
}
