.rz-game-loading body > ._4d,
.rz-game-loading body > .rz-game-surface { visibility: hidden; opacity: 0; pointer-events: none; }
.rz-game-loader { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; background: #2c733b; font: 16px/1.5 Arial, sans-serif; z-index: 10; }
html:not(.rz-game-loading) .rz-game-loader { display: none; }
.game-viewport,
.game-viewport body {
    overflow: hidden;
}
.game-viewport body {
    /* Keep the field stationary when an anchor ad opens at either edge. */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.rz-zoom-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}
.rz-field-zoom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    order: 100;
    margin-left: auto;
    color: #ededed;
    white-space: nowrap;
}
.rz-field-zoom__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: #13491d;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    cursor: pointer;
    touch-action: manipulation;
}
.rz-field-zoom__button svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rz-field-zoom__button:hover { color: #fffde2; }
.rz-field-zoom__button:focus-visible { outline: 2px solid #fffde2; outline-offset: 2px; }
.rz-field-zoom__button:disabled { opacity: .4; cursor: default; }
.rz-field-zoom__label { margin-left: 3px; }
.rz-field-zoom__value { min-width: 4ch; text-align: right; font: inherit; font-variant-numeric: tabular-nums; }
.rz-field-zoom__reset {
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    background: transparent;
    cursor: pointer;
}
.rz-zoom-field { overflow: auto !important; }
.rz-game-desktop-fit .rz-zoom-field.rz-zoom-field--fits-x { overflow-x: hidden !important; }
.rz-game-desktop-fit .rz-zoom-field.rz-zoom-field--fits-y { overflow-y: hidden !important; }
.rz-game-mobile-layout .rz-zoom-toolbar {
    position: relative;
    box-sizing: border-box;
    min-height: 56px;
    padding-right: 158px;
    flex-wrap: nowrap;
    row-gap: 0;
}
.rz-game-mobile-layout .rz-zoom-action-label,
.rz-game-mobile-layout .rz-field-zoom__label {
    display: none;
}
.rz-game-mobile-layout .rz-field-zoom {
    position: absolute;
    top: 6px;
    right: 8px;
    margin-left: 0;
}
.rz-game-mobile-layout .rz-field-zoom__button {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}
.rz-game-mobile-layout .rz-field-zoom__reset {
    min-width: 42px;
    height: 44px;
    font-size: 14px;
    touch-action: manipulation;
}
.rz-game-mobile-layout .rz-zoom-field {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.rz-game-mobile-layout .rz-zoom-field.rz-zoom-field--fits-x {
    overflow-x: hidden !important;
}
.rz-game-mobile-layout .rz-zoom-field.rz-zoom-field--fits-y {
    overflow-y: hidden !important;
}
@media (max-width: 680px) {
    .rz-field-zoom__label { display: none; }
    .rz-zoom-toolbar .rz-zoom-action { margin-right: 8px; }
    .rz-zoom-toolbar .rz-zoom-action-label { display: none; }
}
@media (min-width: 681px) and (max-width: 900px) {
    .rz-game-desktop-fit .rz-zoom-action-label,
    .rz-game-desktop-fit .rz-field-zoom__label { display: none; }
}
@media (max-width: 360px) {
    .rz-game-mobile-layout .rz-zoom-toolbar { padding-right: 108px; }
    .rz-game-mobile-layout .rz-field-zoom__reset { display: none; }
}

/* Secondary action in the dark game header, alongside the title and score. */
.rz-game-header > ._4d_6 {
    flex: 1;
    min-width: 0;
}
.rz-full-screen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 38px;
    margin: 8px 12px;
    padding: 0 14px;
    border: 1px solid #716c9a;
    border-radius: 7px;
    background: #37345d;
    color: #fff;
    font: 700 14px/1.2 Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.rz-full-screen:hover {
    background: #4a4578;
    border-color: #9791bf;
}
.rz-full-screen:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.rz-full-screen svg {
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .rz-full-screen {
        min-height: 44px;
        margin: 5px 8px;
        padding: 0 10px;
        font-size: 13px;
        gap: 6px;
    }
}

/* Shared Moves / Score card, including the standalone game view. */
._4d ._4d_3 {
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
._4d ._61 {
    box-sizing: border-box;
    height: auto;
    min-width: 78px;
    border: 1px solid #716c9a;
    border-radius: 7px;
    background: #37345d;
    color: #fff;
}
._4d ._61_0 {
    margin: 0;
    padding: 4px 12px;
}
._4d ._61_1,
._4d ._61_2 {
    height: auto;
}
._4d ._61_2 {
    margin-left: 18px;
}
._4d ._61_3 {
    margin-bottom: 0;
    color: #d7d4e8;
    font-size: 12px;
    line-height: 14px;
}
._4d ._61_4,
._4d ._61_5,
._4d ._61_6 {
    font-size: 17px;
    font-weight: 700;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
}
._4d ._5x_0 {
    margin-top: 3px;
    color: #d7d4e8;
    font-size: 12px;
    line-height: 16px;
    opacity: 1;
}
@media (max-width: 610px) {
    ._4d ._4d_3 { padding-left: 8px; }
    ._4d ._61_0 { padding-right: 10px; padding-left: 10px; }
}

/* Game navigation drawer. */
.rz-game-header h1._4d_2 {
    display: block !important;
    padding-left: 0;
    font: 700 20px/50px Arial, sans-serif;
    cursor: default;
}
.rz-game-header h1._4d_2:hover { color: #fff; }
.rz-menu-toggle, .rz-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #716c9a;
    border-radius: 7px;
    background: #37345d;
    color: #fff;
    cursor: pointer;
}
.rz-menu-toggle { align-self: center; margin: 7px 0 7px 10px; }
.rz-menu-toggle:hover, .rz-menu-close:hover { background: #4a4578; }
.rz-menu-toggle:focus-visible, .rz-game-menu :focus-visible { outline: 2px solid #84dc93; outline-offset: 3px; }
.rz-menu-backdrop { position: fixed; inset: 0; z-index: 10000; background: #0c0a3580; }
.rz-game-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10001;
    box-sizing: border-box;
    width: min(320px, calc(100vw - 24px));
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #111035;
    color: #fff;
    font: 14px/1.5 Arial, sans-serif;
    box-shadow: 8px 0 30px #0005;
    transform: translateX(-100%);
    transition: transform .22s ease;
}
.rz-game-menu.is-open { transform: translateX(0); }
.rz-game-menu[hidden], .rz-menu-backdrop[hidden], .rz-game-menu [hidden] { display: none !important; }
.rz-game-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rz-menu-brand { display: flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; }
.rz-menu-brand img { display: block; flex-shrink: 0; }
.rz-menu-brand > span { display: flex; align-items: center; font-size: 25px; font-weight: 700; letter-spacing: -.6px; }
.rz-menu-timeless { font-size: 7px; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 3px; letter-spacing: 0; }
.rz-menu-close { width: 32px; height: 32px; font-size: 25px; }
.rz-menu-search { margin: 24px 0; }
.rz-menu-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.rz-menu-search > div { display: flex; background: #fff; border-radius: 7px; overflow: hidden; }
.rz-menu-search input { min-width: 0; flex: 1; padding: 12px; border: 0; font: inherit; color: #0c0a35; background: #fff; }
.rz-menu-search button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; padding: 0; border: 0; background: transparent; color: #111035; cursor: pointer; }
.rz-menu-search button:hover { color: #4a4578; }
.rz-game-menu section + section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #37345d; }
.rz-game-menu h2 { margin: 0 0 8px; font-size: 15px; color: #d7d4e8; }
.rz-game-menu nav { display: grid; gap: 3px; }
.rz-game-menu nav a { padding: 9px 10px; border-radius: 6px; color: #fff; text-decoration: none; }
.rz-game-menu nav a:hover { background: #37345d; color: #84dc93; }
.rz-menu-empty { color: #d7d4e8; }
@media (max-width: 610px) {
    .rz-game-header h1._4d_2 { max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 16px; margin-left: 8px; }
    .rz-menu-toggle { width: 36px; margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rz-game-menu { transition: none; } }
@media (max-width: 610px) {
    .rz-game-header ._4d_1 { display: flex; flex-direction: column; }
    .rz-game-header h1._4d_2 { height: 28px; line-height: 28px; margin: 3px 8px 0; }
    .rz-game-header ._4d_3 { margin-left: 0; padding-top: 2px; }
    .rz-game-header .rz-menu-toggle { align-self: flex-start; margin-top: 8px; }
    .rz-game-header .rz-full-screen { align-self: flex-end; margin-bottom: 8px; }
}
.rz-menu-search > div:focus-within {
    outline: 2px solid #9791bf;
    outline-offset: 3px;
}
.rz-menu-search input:focus,
.rz-menu-search button:focus-visible {
    outline: none;
}
