:root {
    --va2-paper: #f3e3c5;
    --va2-ink: #27251f;
    --va2-link: #17244d;
    --va2-muted: #70604c;
    --va2-shell: 1180px;
    --va2-left: 226px;
    --va2-right: 204px;
    --va2-text: 16px;
    --va2-leading: 1.7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: #333 url("img/bg.gif");
    color: var(--va2-ink);
    font: var(--va2-text)/var(--va2-leading) Verdana, Tahoma, Arial, sans-serif;
}
body.va2-menu-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: var(--va2-link); text-underline-offset: 3px; }
a:hover { color: #740077; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex="-1"]:focus-visible {
    outline: 3px solid #a77122;
    outline-offset: 3px;
}
img { max-width: 100%; height: auto; border: 0; }
table, td { font: inherit; border-color: #333; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0; font-size: 38px; }
h2 { margin: 1.35em 0 .6em; font-size: 24px; font-weight: normal; }
h3 { margin: 1.3em 0 .55em; font-size: 20px; font-weight: normal; }
.center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: fixed;
    z-index: 200;
    top: -80px;
    left: 15px;
    padding: 12px;
    background: #fff0cd;
}
.skip-link:focus { top: 8px; }

.site-shell {
    width: min(100%, var(--va2-shell));
    margin: 5px auto;
    background:
        url("img/border_l.jpg") left top / 11px 24px repeat-y,
        url("img/border_r.jpg") right top / 11px 24px repeat-y,
        var(--va2-paper);
    box-shadow: 0 2px 12px #0008;
    outline: 1px solid #777;
}
.masthead {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100px;
    padding: 0 10px;
    background:
        url("img/top_lft.jpg") left top / 10px 100px no-repeat,
        url("img/top_rght.jpg") right top / 10px 100px no-repeat,
        url("img/top_bg.jpg") 247px 0 / auto 100px repeat-x,
        #555;
}
.brand {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 237px;
    width: 237px;
    min-width: 237px;
    height: 100px;
}
.brand img { display: block; width: 237px; height: 100px; }
.site-search {
    align-self: center;
    display: flex;
    align-items: center;
    width: 300px;
    max-width: 40%;
    margin: 0 7px 0 16px;
    font: 13px/1.4 Arial, sans-serif;
    filter: drop-shadow(0 1px 2px #0007);
}
.site-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 30px;
    padding: 4px 8px;
    border: 1px solid #938b7b;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    background: #fffdf6;
}
.site-search button {
    height: 30px;
    padding: 3px 10px;
    border: 1px solid #938b7b;
    border-radius: 0 3px 3px 0;
    background: #eee5d2;
}
.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 13px;
    background: #171a17 url("img/top_line.jpg") center / auto 30px repeat-x;
    font: bold 12px/20px Verdana, sans-serif;
}
.top-nav a { color: #dedede; text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: #fefec0; }
.top-nav a + a::before { content: "::"; padding: 0 4px; color: #c5c5b6; }
.nav-divider {
    height: 6px;
    background:
        url("img/border_t_l.jpg") left top / 11px 6px no-repeat,
        url("img/border_t_r.jpg") right top / 11px 6px no-repeat,
        url("img/border_t_m.jpg") center top / 15px 6px repeat-x;
}
.mobile-bar { display: none; }

.page-layout {
    display: grid;
    grid-template-columns: var(--va2-left) minmax(0, 1fr) var(--va2-right);
    align-items: start;
    padding: 0 11px;
}
.page-layout > * { min-width: 0; }
.left-sidebar, .right-sidebar { padding: 0 3px; }
.right-sidebar { width: var(--va2-right); }

.panel {
    position: relative;
    min-width: 0;
    margin: 0 0 6px;
    padding: 0 14px 16px;
    background:
        url("img/bl_bl.gif") left bottom / 14px 16px no-repeat,
        url("img/bl_br.gif") right bottom / 14px 16px no-repeat,
        var(--va2-paper);
}
.panel::before {
    content: "";
    position: absolute;
    top: 27px;
    right: 0;
    bottom: 16px;
    left: 0;
    background:
        url("img/bl_l.gif") left top / 14px 2px repeat-y,
        url("img/bl_r.gif") right top / 14px 2px repeat-y;
    pointer-events: none;
}
.panel::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 16px;
    background: url("img/bl_b.gif") left bottom repeat-x;
    pointer-events: none;
}
.panel-title {
    position: relative;
    isolation: isolate;
    height: 27px;
    margin: 0 -14px;
    padding: 6px 17px 4px;
    overflow: hidden;
    background-image: url("img/bl_tl.gif"), url("img/bl_tr.gif");
    background-position: left top, right top;
    background-repeat: no-repeat;
    color: #dedede;
    font: bold 13px/17px Verdana, sans-serif;
    letter-spacing: .1px;
}
.panel-title::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 14px;
    bottom: 0;
    left: 14px;
    background: url("img/bl_t.gif") left top repeat-x;
    pointer-events: none;
}
.left-sidebar .panel-title::before,
.right-sidebar .panel-title::before {
    background:
        url("img/bl_ti1.gif") right top no-repeat,
        url("img/bl_t.gif") left top repeat-x;
}
.panel-body { position: relative; min-width: 0; padding: 7px 0 0; }
.content-panel > .panel-body { padding: 14px 12px 6px; }

/* Existing engine block markup. */
.table100, .table516, .table544, .table230left, .table188right {
    border: 0;
    border-spacing: 0;
    border-collapse: separate;
}
.table100 { width: 100%; }
.left-sidebar .table100, .right-sidebar .table100 { table-layout: fixed; }
.main_menu_text, .main_menu, .main_menu_n, .main_menu_sub {
    display: block;
    width: auto;
    margin-top: 2px;
    padding-left: 18px;
    overflow-wrap: anywhere;
}
.main_menu_text { margin-top: 10px; }
.main_menu_sub { padding-left: 33px; }
.main_menu a, .main_menu_sub a, .main_menu_n a {
    position: relative;
    display: block;
    min-height: 25px;
    padding: 2px 3px 2px 0;
    color: #151619;
    text-decoration: none;
}
.main_menu a::before, .main_menu_sub a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    width: 6px;
    height: 1px;
    border-radius: 0;
    background: #9a835c;
}
.main_menu_n a::before {
    content: "▸";
    position: absolute;
    top: 50%;
    left: -18px;
    color: #59616b;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-50%);
}
.main_menu a:hover, .main_menu_sub a:hover, .main_menu_n a:hover {
    background: #fedf9e;
    font-weight: bold;
}
.block-main-menu .center img, .block-nival-games td > div > img { margin-left: 0 !important; }
.block-partners .table100 { width: auto; margin: 0 auto; }
.block-social .center { display: flex; justify-content: center; gap: 5px; }
.block-social img { display: block; width: 40px; height: 40px; }
.block-gallery .center > a:first-child { display: block; text-align: center; }
.block-gallery .center > a:first-child img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 2px solid #b6a27b;
}
.block-gallery .highslide-caption { display: none; }
.block-interesting p { margin: 0; font-size: 13px; line-height: 1.5; }
.block-statistics { font-size: 13px; }
.today-sidebar .panel-body { padding-top: 5px; }
.today-sidebar-image { display: block; width: 170px; max-width: 100%; height: auto; margin: 0 auto; }

/* Main content generated by existing methods. */
.content-copy {
    min-width: 0;
    overflow-x: auto;
    overflow-wrap: anywhere;
    scrollbar-color: #96815e #e4d0aa;
}
.content-copy p { margin: 0 0 1em; }
.content-copy img { max-width: 100%; height: auto; }
.content-copy ul, .content-copy ol { padding-left: 1.4em; }
.content-copy .tbl_news { padding: 8px 10px 0 20px; color: #776043; font-size: 11px; text-align: right; }
.content-copy .tbl_news_title { padding: 0 10px 7px 20px; font-size: 23px; font-weight: 600; }
.content-copy .tbl_news_title a { color: #080e50; text-decoration: none; }
.content-copy img.news { float: left; width: 150px; margin: 5px 19px 6px 0; }
.content-copy p.textnormal { padding: 0 5px; }
.content-copy p.aucomment, .content-copy div.aucomment {
    margin: 16px 0;
    padding: 12px 15px;
    border: 0;
    border-left: 3px solid #b19662;
    background: #ecdbbd;
    font-style: italic;
}
.breadcrumbs {
    padding: 3px 0 18px;
    color: #7b694f;
    font: 11px/1.7 Verdana, sans-serif;
    overflow-wrap: anywhere;
}
.breadcrumbs span { padding: 0 5px; color: #a88c62; }
.article-heading { margin-bottom: 20px; padding: 3px 2px 18px; border-bottom: 1px solid #c5b08a; }
.article-heading h1 { margin: 0; }
.table-scroll {
    max-width: 100%;
    margin: 12px 0;
    overflow: auto;
    border: 1px solid #9b8660;
    overscroll-behavior-x: contain;
    scrollbar-color: #96815e #e4d0aa;
}
.table-scroll > table { margin: 0; }
.table-scroll > .va2-wide-table { table-layout: auto; }
.table-scroll > .va2-wide-table tr:first-child > td {
    position: sticky;
    z-index: 2;
    top: 0;
    background: #dbc49b;
}
.content-copy.va2-tables-ready { overflow-x: visible; }

/* Gallery list: 170px thumbnails with a compact 3px + 1px frame. */
.page-method-gallery .highslide-gallery > table.table516 {
    display: grid;
    grid-template-columns: repeat(auto-fit, 178px);
    justify-content: space-evenly;
    align-items: start;
    width: 100% !important;
    gap: 20px 10px;
}
.page-method-gallery .highslide-gallery > table.table516 > tbody,
.page-method-gallery .highslide-gallery > table.table516 > tbody > tr { display: contents; }
.page-method-gallery .highslide-gallery > table.table516 > tbody > tr > td {
    display: block;
    width: 178px !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: top !important;
}
.page-method-gallery .highslide-gallery > table.table516 > tbody > tr > td:empty { display: none; }
.page-method-gallery .highslide-gallery > table.table516 > tbody > tr > td > table {
    width: 178px !important;
    margin: 0 auto !important;
    border-spacing: 0 5px !important;
}
.page-method-gallery .highslide-gallery a.highslide {
    display: block;
    width: 178px;
    padding: 3px;
    border: 1px solid #c8ae81;
    background: #ead6b3;
}
.page-method-gallery .highslide-gallery a.highslide img {
    display: block;
    width: 170px;
    max-width: none;
    height: auto;
}
.page-method-gallery .highslide-caption { display: none; }
.page-method-gallery .table_gallery_main { width: 100% !important; table-layout: fixed; border-spacing: 5px; }
.page-method-gallery .table_gallery_main img { width: 170px; max-width: 100%; height: auto; }

/* Home spotlight. */
.spotlight-wide .panel-title { text-align: center; font-size: 12px; }
.spotlight-wide .panel-body { height: auto; padding: 5px 0 0; container-type: inline-size; }
.spotlight-wide .feature-images {
    --va2-feature-height: clamp(96px, calc(16.6667cqi - 10px), 108px);
    --va2-feature-width: clamp(144px, calc(25cqi - 15px), 162px);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: var(--va2-feature-height);
}
.spotlight-wide .feature-images a {
    display: block;
    flex: 0 0 var(--va2-feature-width);
    width: var(--va2-feature-width);
}
.spotlight-wide .feature-images img {
    display: block;
    width: 100%;
    height: var(--va2-feature-height);
    max-height: none;
    object-fit: contain;
}
@container (max-width: 617.98px) {
    .spotlight-wide .feature-images {
        --va2-feature-height: clamp(96px, calc(22.2222cqi - 10.6667px), 108px);
        --va2-feature-width: clamp(144px, calc(33.3333cqi - 16px), 162px);
    }
    .spotlight-wide .feature-images a:nth-child(n + 4) { display: none; }
}
@container (max-width: 461.98px) {
    .spotlight-wide .feature-images {
        --va2-feature-height: clamp(96px, calc(33.3333cqi - 12px), 108px);
        --va2-feature-width: clamp(144px, calc(50cqi - 18px), 162px);
    }
    .spotlight-wide .feature-images a:nth-child(n + 3) { display: none; }
}
@container (max-width: 305.98px) {
    .spotlight-wide .feature-images {
        --va2-feature-height: clamp(96px, calc(66.6667cqi - 16px), 108px);
        --va2-feature-width: clamp(144px, calc(100cqi - 24px), 162px);
    }
    .spotlight-wide .feature-images a:nth-child(n + 2) { display: none; }
}

.site-footer {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px 15px;
    background: #222823 url("img/btm_mdl.jpg") center top repeat-x;
    color: #dedede;
    text-align: center;
    font: 11px/1.6 Verdana, sans-serif;
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
.drawer-heading, .menu-close { display: none; }
.menu-backdrop { position: fixed; z-index: 80; inset: 0; background: #15150ed1; }
.back-to-top {
    position: fixed;
    z-index: 70;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 88px;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid #8e9185;
    border-radius: 6px;
    background: #242820 url("img/top_line.jpg") center / auto 46px repeat-x;
    box-shadow: 0 2px 8px #0009, inset 0 1px #ffffff26;
    color: #eee1c4;
    font: bold 12px/1.2 Verdana, sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover { color: #fefec0; border-color: #b0a88e; }
.back-to-top__arrow { font-size: 21px; font-weight: normal; line-height: 1; }

@media (min-width: 761px) and (max-width: 1100px) {
    .page-layout {
        grid-template-columns: var(--va2-left) minmax(0, 1fr);
        grid-template-rows: max-content minmax(max-content, 1fr);
        align-items: start;
    }
    .left-sidebar { grid-column: 1; grid-row: 1 / span 2; }
    main { grid-column: 2; grid-row: 1; }
    .right-sidebar {
        grid-column: 2;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
        margin-top: 6px;
    }
}

@media (max-width: 760px) {
    :root { --va2-text: 16px; --va2-leading: 1.65; }
    body { background: var(--va2-paper); }
    .site-shell { width: 100%; margin: 0; outline: 0; box-shadow: none; }
    .masthead { padding: 0 10px; }
    .site-search {
        position: absolute;
        z-index: 2;
        top: 50%;
        right: 15px;
        width: 125px;
        max-width: none;
        margin: 0;
        transform: translateY(-50%);
    }
    .site-search input[type="search"], .site-search button { height: 27px; font-size: 11px; }
    .site-search input[type="search"] { padding: 3px 6px; }
    .site-search button { padding: 3px 6px; }
    .top-nav { display: none; }
    .mobile-bar {
        position: sticky;
        z-index: 30;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 4px 12px;
        background: #242820 url("img/top_line.jpg") center / auto 46px;
        color: #eaddbf;
        font: 13px/1.5 Verdana, sans-serif;
    }
    .mobile-bar a { color: inherit; text-decoration: none; }
    .menu-toggle { padding: 8px 4px; border: 0; background: transparent; color: inherit; }
    .menu-toggle span { margin-right: 7px; font-size: 17px; }
    .page-layout { display: block; padding: 0 6px; }
    .left-sidebar {
        position: fixed;
        z-index: 90;
        top: 0;
        bottom: 0;
        left: 0;
        display: none;
        width: min(370px, 94vw);
        padding: 64px 12px 30px;
        overflow: auto;
        border-right: 1px solid #7d745f;
        background: var(--va2-paper);
        box-shadow: 5px 0 30px #0008;
        overscroll-behavior: contain;
    }
    .left-sidebar.menu-open { display: block; }
    .drawer-heading {
        position: absolute;
        top: 12px;
        right: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        height: 40px;
        padding: 0 12px;
        background: #242820 url("img/top_line.jpg") center / auto 40px repeat-x;
        color: #dedede;
        font: bold 12px/1.5 Verdana, sans-serif;
    }
    .menu-close {
        position: absolute;
        z-index: 1;
        top: 16px;
        right: 16px;
        display: block;
        padding: 7px;
        border: 1px solid #9c9d88;
        background: transparent;
        color: #dedede;
        font: 11px/1.5 Verdana, sans-serif;
    }
    .left-sidebar .main_menu a,
    .left-sidebar .main_menu_sub a,
    .left-sidebar .main_menu_n a {
        min-height: 42px;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 14px;
        line-height: 22px;
    }
    main { width: 100%; padding-top: 0; }
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
        margin-top: 6px;
        padding: 0 3px;
    }
    .content-panel > .panel-body { padding: 11px 4px 4px; }
    .panel-title { font-size: 12px; }
    h1 { font-size: 31px; }
    .article-heading { margin-bottom: 16px; padding: 0 0 15px; }
    .breadcrumbs { padding-bottom: 14px; font-size: 10px; }
    .content-copy .tbl_news_title { font-size: 21px; }
    .content-copy img.news { width: 100px; margin-right: 12px; }
    .page-method-gallery .table_gallery_main { min-width: 520px; }
    .site-footer { padding: 16px 20px; font-size: 10px; }
    .back-to-top {
        right: max(9px, env(safe-area-inset-right));
        bottom: max(9px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .site-search { right: 13px; width: 54px; transition: width .16s ease; }
    .site-search input[type="search"] {
        flex: 0 0 0;
        width: 0;
        padding-right: 0;
        padding-left: 0;
        border: 0;
        opacity: 0;
        pointer-events: none;
    }
    .site-search button { width: 54px; border-radius: 3px; }
    .site-search.is-expanded { width: 125px; }
    .site-search.is-expanded input[type="search"] {
        flex: 1 1 auto;
        width: 100%;
        padding-right: 6px;
        padding-left: 6px;
        border: 1px solid #938b7b;
        border-right: 0;
        opacity: 1;
        pointer-events: auto;
    }
    .site-search.is-expanded button { width: auto; border-radius: 0 3px 3px 0; }
    .right-sidebar { grid-template-columns: 1fr; }
    .content-copy img.news { width: 85px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .back-to-top, .site-search { transition: none; }
}

