.randomes-ru-reference .rdm-screen-replaced { display: none !important; }

.randomes-ru-reference .rdm-screen-bar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 12px;
}
.randomes-ru-reference .rdm-screen-bar .rdm-screen-toggle,
.randomes-ru-reference .rdm-coin-history button {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #896f47;
    border-radius: 10px;
    background: var(--rdm-panel);
    color: var(--rdm-link);
    font: 650 14px/1.35 system-ui, sans-serif;
    cursor: pointer;
}
.randomes-ru-reference .rdm-screen-bar .rdm-screen-toggle:hover,
.randomes-ru-reference .rdm-coin-history button:hover {
    border-color: var(--rdm-link);
}
.randomes-ru-reference .rdm-screen-bar .rdm-screen-toggle[aria-pressed="true"] {
    background: var(--rdm-link);
    color: var(--rdm-page);
}

body.randomes-ru-reference.rdm-screen-open { overflow: hidden; }
body.randomes-ru-reference .rdm-screen-surface:is(:fullscreen, .rdm-screen-expanded),
body.randomes-ru-reference #yt-picker-scope.rdm-screen-surface:is(:fullscreen, .rdm-screen-expanded) {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right), calc((100vw - 920px) / 2)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left), calc((100vw - 920px) / 2)) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--rdm-page) !important;
    justify-content: start;
    scroll-padding-top: 70px;
}
body.randomes-ru-reference .rdm-screen-surface.rdm-screen-expanded {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
}
.randomes-ru-reference .rdm-screen-surface:is(:fullscreen, .rdm-screen-expanded) > .rdm-screen-bar,
.randomes-ru-reference .randomes-santa:is(:fullscreen, .santa-expanded) > .santa-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    flex: none;
    padding-block: 4px;
    background: var(--rdm-page);
}
.randomes-ru-reference .rm-group:is(:fullscreen, .rm-expanded) #rm-screen:not([hidden]) {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 20;
}
.randomes-ru-reference #dice-app:is(:fullscreen, .rdm-screen-expanded) .dice-table-white {
    gap: clamp(16px, 5vw, 40px);
    min-height: clamp(150px, 35dvh, 340px);
    align-items: center;
}
.randomes-ru-reference #dice-app:is(:fullscreen, .rdm-screen-expanded) .dice-box { zoom: 1.25; }
.randomes-ru-reference #dice-app:is(:fullscreen, .rdm-screen-expanded) #dice-total {
    font-size: clamp(24px, 5vw, 48px);
}
.randomes-ru-reference .wheel-main-container:is(:fullscreen, .rdm-screen-expanded) .wheel-canvas-container {
    width: 100%;
    max-width: min(58dvh, 650px);
    margin-inline: auto;
}
.randomes-ru-reference .rdm-screen-surface:is(:fullscreen, .rdm-screen-expanded) #coinDisplay {
    height: clamp(120px, 28dvh, 240px) !important;
    font-size: clamp(38px, 12vw, 84px) !important;
}
.randomes-ru-reference .rdm-coin-history {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--rdm-line);
    border-radius: 12px;
    background: var(--rdm-panel);
    text-align: start;
}
.randomes-ru-reference .rdm-coin-history summary {
    color: var(--rdm-link);
    font-weight: 650;
    cursor: pointer;
}
.randomes-ru-reference .rdm-coin-history button:disabled { opacity: .55; cursor: default; }
@media (max-width: 600px) {
    .randomes-ru-reference #dice-app:is(:fullscreen, .rdm-screen-expanded) .dice-box { zoom: 1; }
    .randomes-ru-reference .rm-group:is(:fullscreen, .rm-expanded) > h2 { padding-inline-end: 52px; }
}
