body.randomes-ru-reference {
    --rdm-page: #0f0a1e;
    --rdm-panel: #161024;
    --rdm-input: #120d22;
    --rdm-gold: #c5a059;
    --rdm-link: #e4c583;
    --rdm-line: #c5a0594d;
    --rdm-ink: #e5dfec;
    --rdm-muted: #c2bbd0;
    --rdm-button: linear-gradient(135deg, #d2ad60, #a38040);
    --rt-ink: var(--rdm-ink);
    --rt-muted: var(--rdm-muted);
    --rt-blue: var(--rdm-gold);
    --rt-line: var(--rdm-line);
    --rt-soft: var(--rdm-panel);
    margin: 0;
    background: var(--rdm-page) !important;
    color: var(--rdm-ink);
}
.randomes-ru-reference a { color: var(--rdm-link); }
.randomes-ru-reference :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid #e6c77f;
    outline-offset: 3px;
}
.randomes-ru-reference .screen-reader-text:focus,
.randomes-ru-reference .skip-link:focus { background: var(--rdm-panel); color: var(--rdm-link); }

.randomes-ru-reference .rdm-local-header {
    position: sticky;
    top: 0;
    z-index: 99990;
    isolation: isolate;
    background: #0f0a1ef5;
    border-bottom: 1px solid #c5a05940;
    backdrop-filter: blur(12px);
}
.randomes-ru-reference.admin-bar .rdm-local-header { top: 32px; }
.rdm-local-header .rt-bar {
    max-width: 1280px;
    height: 72px;
    margin: auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.rdm-local-header .rt-logo {
    font: 700 24px Georgia, serif;
    letter-spacing: 2px;
    text-decoration: none;
    color: #c5a059;
    white-space: nowrap;
}
.rdm-local-header .rt-logo span { color: #fff; }
.rdm-local-header .rt-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    background: transparent;
    border: 0;
    overflow: visible;
}
.rdm-local-header :is(.rt-nav, .rt-lang) summary,
.rdm-local-header :is(.rt-nav, .rt-lang) a {
    display: block;
    padding: 11px 12px;
    color: #e4c583;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font: 600 14px/1.4 system-ui, sans-serif;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}
.rdm-local-header summary::-webkit-details-marker { display: none; }
.rdm-local-header :is(.rt-nav, .rt-lang) :is(a, summary):hover,
.rdm-local-header :is(.rt-nav, .rt-lang) a[aria-current] { background: #c5a05920; color: #fff; }
.rdm-local-header details { position: relative; }
.rdm-local-header .rt-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid #c5a05955;
    border-radius: 14px;
    background: #1b142c;
    box-shadow: 0 16px 40px #0007;
}
.rdm-local-header .rt-lang .rt-dropdown { left: auto; right: 0; min-width: 104px; }
.rdm-local-header .rt-toggle {
    display: none;
    padding: 8px 12px;
    border: 1px solid var(--rdm-line);
    border-radius: 9px;
    background: transparent;
    color: var(--rdm-link);
    cursor: pointer;
}
@media (max-width: 950px) {
    .rdm-local-header .rt-bar { height: 64px; gap: 12px; }
    .rdm-local-header .rt-logo { font-size: 20px; }
    .rdm-local-header .rt-lang { margin-left: auto; }
    .rdm-local-header .rt-toggle { display: block; }
    .rdm-local-header .rt-nav {
        display: none;
        position: absolute;
        inset: 100% 0 auto;
        width: 100%;
        max-height: calc(100dvh - 64px);
        padding: 12px 18px;
        overflow-y: auto;
        background: #151025;
        border-bottom: 1px solid #c5a05955;
    }
    .rdm-local-header .rt-nav.is-open { display: block; }
    .rdm-local-header .rt-nav .rt-dropdown { position: static; margin: 4px 0 8px 12px; box-shadow: none; }
}
@media (max-width: 782px) { .randomes-ru-reference.admin-bar .rdm-local-header { top: 46px; } }
@media (max-width: 600px) { .randomes-ru-reference.admin-bar .rdm-local-header { top: 0; } }

.randomes-ru-reference main#main-content.container {
    width: 100%;
    max-width: 944px;
    margin: 0 auto;
    padding: 20px clamp(16px, 3vw, 24px) 64px;
    background: transparent;
}
.randomes-ru-reference main#main-content > :is(.main-card, .hub-grid) {
    width: 100% !important;
    max-width: 896px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--rdm-ink);
    box-shadow: none !important;
}
.randomes-ru-reference main#main-content > article > :is(h1, h2, h3) {
    color: var(--rdm-gold);
    font-family: Georgia, 'Times New Roman', serif;
}
.randomes-ru-reference main#main-content > article > h1 {
    font-size: clamp(28px, 4.5vw, 44px) !important;
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 800;
    color: #e4c583;
    text-align: center !important;
    margin: 12px auto 18px;
}
.randomes-ru-reference.home main#main-content > article > h1 {
    font-family: system-ui, sans-serif;
    font-size: clamp(28px, 4.5vw, 44px) !important;
}
.randomes-ru-reference main#main-content > article > :is(p, ul, ol, h2, h3, .breadcrumbs) {
    max-width: 760px;
    margin-inline: auto;
}
.randomes-ru-reference main#main-content > article > :is(p, ul, ol) { color: var(--rdm-ink); }
.randomes-ru-reference main#main-content > article > h1 + p,
.randomes-ru-reference main#main-content .breadcrumbs,
.randomes-ru-reference.home main#main-content > article > h1 ~ p:nth-of-type(-n+3) { text-align: center; }
.randomes-ru-reference main#main-content > article > h2 { line-height: 1.3; }
.randomes-ru-reference .breadcrumbs { color: var(--rdm-muted); }

.randomes-ru-reference main#main-content :is(.randomes-ru-guide, .randomes-faq-answer, .rank-math-answer) {
    color: var(--rdm-ink);
}
.randomes-ru-reference main#main-content :is(.randomes-ru-guide, .randomes-faq-answer, .rank-math-answer) p {
    color: inherit;
}
.randomes-ru-reference main#main-content ol.randomes-faq {
    list-style: none;
    padding-inline-start: 0;
}

.rdm-reference-hubs { width: 100%; margin: 40px 0; }
.rdm-reference-hub { margin: 0 auto 40px; }
.rdm-reference-hub-head { margin-bottom: 20px; padding-left: 15px; border-left: 3px solid var(--rdm-gold); }
.randomes-ru-reference .rdm-reference-hub-head h2 {
    margin: 0;
    color: var(--rdm-gold);
    font: 800 20px/1.35 Georgia, serif;
}
.randomes-ru-reference .rdm-reference-hub-head p { margin: 4px 0 0; color: #a9a3b5; font: 400 13px/1.5 system-ui, sans-serif; }
.rdm-reference-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.randomes-ru-reference main .rt-card {
    color: #f3dfb0;
    background: linear-gradient(135deg, #211833, #151025);
    border: 1px solid #ad8c4d57;
    border-radius: 17px;
    text-decoration: none;
}
.randomes-ru-reference main .rt-card:hover,
.randomes-ru-reference main .rt-card:focus-visible { color: #fff; border-color: #d9b970; transform: translateY(-3px); }
.randomes-ru-reference main .rt-card small { color: var(--rdm-muted); line-height: 1.4; }
.randomes-ru-reference main .rt-card em,
.randomes-ru-reference main .rt-card a { color: var(--rdm-link); }
.randomes-ru-reference .rt-cards .rt-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 5px 12px;
    min-height: 110px;
    padding: 14px;
}
.randomes-ru-reference .rt-cards .rt-card-icon {
    grid-row: span 3;
    width: 44px;
    height: 44px;
    background: #d9b97018;
}
.randomes-ru-reference .rt-cards .rt-card strong { font-size: 14px; }
.randomes-ru-reference .rt-cards .rt-card small { font-size: 12px; }
.randomes-ru-reference .rdm-reference-cards .rt-card {
    display: flex;
    flex: 0 1 157px;
    align-items: center;
    gap: 7px;
    min-height: 144px;
    min-width: 135px;
    padding: 15px 10px;
    background: rgba(26, 20, 46, .65);
    border-radius: 20px;
    text-align: center;
}
.randomes-ru-reference .rdm-reference-cards .rt-card-icon {
    width: 48px;
    height: 45px;
    margin: 0;
    background: transparent;
    font-size: 36px;
}
.randomes-ru-reference .rdm-reference-cards .rt-card strong { color: #fff; font-size: 13px; }
.randomes-ru-reference .rdm-reference-cards .rt-card small { font-size: 11px; }
.randomes-ru-reference .rdm-reference-search {
    margin: 28px 0;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--rdm-line);
    background: var(--rdm-panel);
}
.randomes-ru-reference .rdm-reference-search summary { cursor: pointer; font-weight: 700; color: var(--rdm-link); }
#randomes-catalog-text { scroll-margin-top: 84px; }
.randomes-ru-reference .rt-catalog { color: var(--rdm-ink); }
.randomes-ru-reference .rt-catalog :is(.rt-count, .rt-empty, .rt-search-label, .rt-catalog-head p) { color: var(--rdm-muted); }
.randomes-ru-reference .rt-catalog-head h2 { color: var(--rdm-gold); }
.randomes-ru-reference :is(.rt-catalog input[type="search"], .rt-chips button) {
    border-color: var(--rdm-line);
    background: var(--rdm-panel);
    color: var(--rdm-ink);
}
.randomes-ru-reference .rt-chips button[aria-pressed="true"] {
    background: var(--rdm-button);
    border-color: #d9b970;
    color: #171020;
}

.randomes-ru-reference .rt-tool,
.randomes-ru-reference .rt-legacy .rt-legacy-surface {
    background: #130d26 !important;
    border: 1px solid var(--rdm-line) !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 40px #0006 !important;
    color: var(--rdm-ink) !important;
}
.randomes-ru-reference .rt-legacy .rt-legacy-surface { max-width: 750px !important; }
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface) :is(h1, h2, h3) { color: var(--rdm-gold) !important; }
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface) :is(p, label, .rt-message) { color: var(--rdm-muted); }
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface, .yt-ultimate-wrapper) :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea) {
    max-width: 100%;
    background: var(--rdm-input) !important;
    border-color: var(--rdm-line) !important;
    color: #fff !important;
}
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface) :is(.rt-result, .rt-history, .rt-legacy-history, .rt-history li, #decisionDisplay, #coinDisplay, #wheel-winner-box, #passDisplay, #petNameDisplay) {
    background: #1d1430 !important;
    border-color: var(--rdm-line) !important;
    color: var(--rdm-link) !important;
}
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface) :is(summary, [data-clear]) { color: var(--rdm-link); }
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface) :is(.rt-effects, .rt-legacy-actions) { color: var(--rdm-muted); border-color: var(--rdm-line); }
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface) .rt-effects input:checked { background: #a38040; }
.randomes-ru-reference :is(.rt-tool .rt-actions button, .rt-legacy-actions button, .rt-legacy-surface .btn-secondary, .rt-legacy-surface .btn-dev-secondary) {
    background: #211831 !important;
    color: var(--rdm-link) !important;
    border-color: var(--rdm-line) !important;
}
.randomes-ru-reference .rt-tool .rt-actions button[type=submit],
.randomes-ru-reference .rt-legacy-surface :is(.btn-primary,.btn-spin-pro,.btn-main,.btn-advice-ru,.dice-site-btn,.btn-yt-main,.wp-btn-go,.sc-btn-generate,.phys-rand-btn,.btn-generate-dev,.btn-generate-main,.petpro-btn-main,.btn-generate-letter,.emoji-btn-main,.rcg-btn-main,.tm-btn-jump,.btn-forge,.rw-btn-trigger,.brk-btn) {
    background: var(--rdm-button) !important;
    color: #170f22 !important;
    border-color: #bc9a56 !important;
}
.randomes-ru-reference #dice-app .dice-table-white { border: 1px dashed var(--rdm-line); border-radius: 18px; background: var(--rdm-input); }
.randomes-ru-reference #dice-app .dice-face { background: linear-gradient(145deg, #312544, #181127); border-color: #c5a05966; color: var(--rdm-link); }
.randomes-ru-reference #dice-app .dice-face .dot { background: radial-gradient(circle at 38% 32%, #f4dca1, #a78443); }
.randomes-ru-reference #dice-app #dice-total { color: var(--rdm-link); }
.randomes-ru-reference :is(.rt-tool, .rt-legacy-surface):is(:fullscreen,.rt-expanded) {
    background: var(--rdm-page) !important;
    max-width: none !important;
    border-radius: 0 !important;
}
.randomes-ru-reference .rt-ad { border-color: #c5a05924; }
.randomes-ru-reference .rt-ad > small { color: #9b8eab; }
.randomes-ru-reference .rt-related { border-color: var(--rdm-line); background: transparent; color: var(--rdm-ink); }
.randomes-ru-reference .lucky-tool-box {
    margin: 48px auto 36px;
    max-width: 760px;
    padding: clamp(22px, 4vw, 35px) clamp(16px, 4vw, 25px);
    border-color: var(--rdm-line);
    background: var(--rdm-panel);
    color: var(--rdm-ink);
    box-shadow: 0 15px 35px #0004;
}
.randomes-ru-reference .lucky-tool-box .lucky-label {
    color: var(--rdm-link);
    letter-spacing: .18em;
}
.randomes-ru-reference .lucky-tool-box .suggested-item {
    font: 400 clamp(16px, 2.5vw, 18px)/1.55 Georgia, serif;
    overflow-wrap: anywhere;
}
.randomes-ru-reference .lucky-tool-box .suggested-item span,
.randomes-ru-reference .lucky-tool-box .lucky-divider span { color: var(--rdm-muted); }
.randomes-ru-reference .lucky-tool-box .suggested-item a {
    color: var(--rdm-ink);
    border-bottom: 1px dashed var(--rdm-gold);
}
.randomes-ru-reference .lucky-tool-box .suggested-item a:hover {
    color: var(--rdm-link);
    border-bottom-style: solid;
}
.randomes-ru-reference .lucky-tool-box .lucky-divider { background: var(--rdm-line); }
.randomes-ru-reference .lucky-tool-box .lucky-divider span { background: var(--rdm-panel); }
.randomes-ru-reference .lucky-tool-box .btn-lucky {
    min-height: 48px;
    max-width: 300px;
    padding: 12px 16px;
    background: var(--rdm-button);
    color: var(--rdm-page);
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px #c5a05926;
}
.randomes-ru-reference .lucky-tool-box .btn-lucky:hover { box-shadow: 0 8px 25px #c5a05959; }
@media (prefers-reduced-motion: reduce) {
    .randomes-ru-reference .lucky-tool-box :is(.btn-lucky, .suggested-item a) { transition: none; }
    .randomes-ru-reference .lucky-tool-box .btn-lucky:is(:hover, :active) { transform: none; }
}

.randomes-ru-reference > footer {
    background: linear-gradient(180deg,#181127,#100b1d) !important;
    border-top: 1px solid #c5a05952 !important;
    color: #b4a9c4;
    font-family: system-ui, sans-serif;
}
.randomes-ru-reference > footer > div:first-child > div > div:first-child { color: #e4c583 !important; }
.randomes-ru-reference > footer p, .randomes-ru-reference > footer > div:last-child { color: #b4a9c4 !important; }
.randomes-ru-reference > footer a { color: #c8bfd4 !important; }
.randomes-ru-reference > footer a:hover { color: #f1d597 !important; }
.randomes-ru-reference > footer > div:last-child { border-color: #c5a05938 !important; }
@media (max-width: 620px) {
    .rdm-reference-cards { gap: 9px; }
    .randomes-ru-reference .rdm-reference-cards .rt-card { flex: 0 1 calc((100% - 18px)/3); min-width: 96px; padding: 10px 6px; }
    .randomes-ru-reference .rdm-reference-cards .rt-card-icon { width: 36px; height: 38px; font-size: 28px; }
    .randomes-ru-reference .rt-cards .rt-card { grid-template-columns: 36px minmax(0, 1fr); padding: 10px; gap: 5px 8px; }
    .randomes-ru-reference .rt-cards .rt-card-icon { width: 36px; height: 36px; font-size: 20px; }
}
@media (max-width: 370px) {
    .randomes-ru-reference .rdm-reference-cards .rt-card { flex: 0 1 calc((100% - 9px)/2); }
}
@media (prefers-reduced-motion: reduce) {
    .randomes-ru-reference main .rt-card { transition: none; }
    .randomes-ru-reference main .rt-card:hover,
    .randomes-ru-reference main .rt-card:focus-visible { transform: none; }
}
