@import "/public/__Global/Styles/global.css";

/*root*/
:root {
    --base-color: #280440;
    --back-color: #F2F2F2;
    --box-color: #2e1e3d;
    --div-color: #8d8b89;

    --pop-color: #65236e;
    --bilt-color: #560254;
    --boarder-color: #130423;
    --select-color: #ffdd00;
    --hover-color: #ffa200;

    --blue-color: #0763a6;
    --green-color: #3cb878;
    --snow-color: #f8f8f8;
    --red-color: #cd0303;
    --yellow-color: #ffcc00;
    --gold-color: gold;
}

::-webkit-scrollbar-thumb {
    background: var(--box-color) !important;
}

html {
    position: fixed;
    direction: rtl;
    display: block;
    clear: both;
    height: 100vH;
    width: 100vW;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    overflow: hidden;
    z-index: 0;
    background: var(--back-color);
    transform-style: preserve-3d;
    perspective: 1000px;
    perspective-origin: center;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

body {
    position: relative;
    direction: ltr;
    display: block;
    clear: both;
    height: 100%;
    width: 100%;
    margin: 0px auto;
    overflow: hidden;
    background: -webkit-radial-gradient(circle, rgb(53 9 64) 5%, rgb(0 0 0) 60%);
    background: radial-gradient(circle, rgb(53 9 64) 5%, rgb(0 0 0) 60%);
    background: -moz-radial-gradient(circle, rgb(53 9 64) 5%, rgb(0 0 0) 60%);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.clear {
    position: relative;
    display: block;
    height: 7px;
    clear: both;
}

section.menulog *::before,
section.menulog *::after {
    box-sizing: border-box;
    max-height: 100%;
    max-width: 100%;
}


img.logo_log {
    position: relative;
    width: auto;
    max-width: 60%;
    margin: 1% auto 3% auto;
    text-align: center;
    justify-content: center;
    display: block;
    overflow: hidden;
    height: auto;
    max-height: 60%;
}

ar {
    position: fixed;
    direction: ltr;
    display: block;
    clear: both;
    height: 100%;
    width: 100%;
    margin: 0px auto;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    z-index: 10;
}

ar .timer {
    position: absolute;
    margin: auto;
    display: block;
    background: rgb(33 32 32 / 60%);
    border: 2px solid #cfcfcf;
    z-index: 2;
    border-top: unset;
    padding: 10px 15px;
    color: #f8f8f8;
    font-family: 'per_add';
    font-size: 16px;
    max-width: 50%;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;
    justify-content: center;
    border-radius: 0px 0px 10px 10px;
}

ar .emtiaz {
    position: absolute;
    margin: auto;
    display: block;
    background: rgb(22 139 183 / 60%);
    border: 2px solid #cfcfcf;
    z-index: 2;
    border-left: unset;
    padding: 10px 15px;
    color: #f8f8f8;
    font-family: 'per_add';
    font-size: 12px;
    max-width: 50%;
    top: 10%;
    left: -1px;
    text-align: center;
    justify-content: center;
    border-radius: 0px 10px 10px 0px;
}

._audio, ._video, ._img, ._file, ._embed {
    max-width: 100% !important;
    clear: both !important;
    display: block !important;
    margin: 2.5% auto 2.5% auto !important;
    position: relative !important;
    max-height: min(350px, 80vH) !important;
    overflow: hidden !important;
    border-radius: 5px !important;
    direction: rtl;
    text-align: center;
}

._embed {
    min-height: 210px;
}

.info {
    position: absolute !important;
    margin: auto !important;
    display: block !important;
    clear: both !important;
    z-index: 10 !important;
    width: max(4vW, 8vH) !important;
    height: max(4vW, 8vH) !important;
    top: unset !important;
    bottom: 3% !important;
    left: 1% !important;
    cursor: url(/public/__Global/Files/cursor/Cursor.png), default !important;
}

.info svg {
    position: absolute;
    margin: auto;
    display: block;
    clear: both;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: url('/public/__Global/Files/cursor/Cursor.png'), default;
}

.info svg path {
    fill: #f8f8f8;
    text-shadow: 1px -1px 2px #181818;
    filter: drop-shadow(-1px 1px 2px #181818);
    cursor: url('/public/__Global/Files/cursor/Cursor.png'), default;
}

canvas {
    position: fixed;
    margin: auto;
    clear: both;
    z-index: 1;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vW;
    max-width: 100vW;
    min-width: 100%;
    height: 100vH;
    max-height: 100vH;
    min-height: 100%;
    display: block;
    cursor: url('/public/__Global/Files/cursor/Cursor.png'), default;
}

.modir {
    border: 5px #302F2F solid;
    font-size: 13.7px;
    z-index: 2;
    position: absolute;
    margin: auto;
    display: block;
    width: 400px;
    max-width: 95%;
    padding: 0;
    bottom: 0;
    right: 0px;
    left: 0px;
    top: 0;
    border-radius: 5px;
    direction: rtl;
    max-height: 95%;
    min-height: 400px;
}

.modir, .modir * {
    cursor: url('/public/__Global/Files/cursor/Cursor.png'), default;
}

.frameContentHolder {
    position: relative;
    margin: auto;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    overflow: hidden;
    overflow-y: auto;
}

.frameContentContainer {
    position: absolute;
    margin: auto;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

#divLawyerBackground {
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgb(220 220 220 / 10%);
    display: block;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.clearFloat {
    clear: both;
}

#divLawyer {
    height: 250px;
    width: 250px;
    background: url('/public/Myball/Scripts/front/others/old projects/jalebsource/files_chamancanvas/lawyer_sprite.png') no-repeat 0;
    position: absolute;
    bottom: 0;
    left: -30px;
    background-position: 0 0;
}

.frameContentHolder p {
    position: relative;
    display: block;
    padding: 5%;
    margin: auto;
    color: #f8f8f8;
    text-shadow: 0px 0px 2px #181818;
    font-family: 'sans';
    text-align: justify;
    direction: rtl;
    font-size: 16px;
}

.frameContentHolder p b {
    font-size: 20px;
    font-family: 'sans_b';
}

.frameContentHolder p b.e {
    font-size: 19px;
    font-family: 'sans_b';
    cursor: pointer;
    color: #3485fc;
    text-shadow: 0px 0px 2px #181818;
}

b {
    font-size: 20px;
    font-weight: bolder;
}

b.e {
    font-size: 19px;
    cursor: pointer;
    color: #3485fc;
    text-shadow: 0px 0px 2px #181818;
    font-weight: bolder;
}

input {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    outline: unset !important;
}

input[type="text"], input[type="search"], textarea {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -o-user-select: text;
    user-select: text;
}

form, .form {
    position: relative;
    margin: 5px auto !important;
    z-index: 0;
    display: block;
}

form label, .form label {
    position: relative;
    display: block;
    margin: 10px auto !important;
    padding: 0px;
    direction: rtl;
}

form label input[type="text"], form label input[type="file"], form label input[type="search"], form label input[type="tel"], form label input[type="email"], form label input[type="password"], .form label input[type="text"], .form label input[type="file"], .form label input[type="search"], .form label input[type="tel"], .form label input[type="email"], .form label input[type="password"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    position: relative;
    display: block;
    margin: auto;
    padding: 15px 55px 15px 15px;
    font-size: 12px;
    font-family: 'sans';
    text-align: right;
    color: #777777;
    width: calc(100% - 70px);
    height: auto;
    border-radius: 6px;
    border: 2px solid #383838;
    background: #ffffffbf;
    box-sizing: border-box;
}

form label input::placeholder {
    color: #858585;
}

pre.inlog {
    position: relative;
    display: block;
    margin: 5px auto;
    font-size: 11px;
    font-family: 'sans_b';
    text-align: right;
    color: #747474;
    width: calc(100% - 120px - 2%);
    direction: rtl;
}

pre.inlog b {
    color: var(--hover-color);
    cursor: pointer;
    font-size: 18px;
    display: block;
    text-align: center;
    margin: 3% auto auto auto !important;
}

form label i, .form label i {
    font-size: 20px;
    top: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    right: 55px;
    color: #f8f8f8 !important;
    text-shadow: 0px 0px 1px #181818;
}

form label i img, .form label i img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    display: block;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto !important;
    filter: contrast(0);
    -webkit-filter: contrast(0);
    -moz-filter: contrast(0);
}

form label input[type="submit"], .form label input[type="submit"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    position: relative;
    margin: 50px auto;
    padding: 10px 15px;
    font-size: 16px;
    font-family: 'sans_b';
    color: #ffffff;
    width: calc(100% - 120px - 5%);
    height: auto;
    border: unset;
    border-radius: 6px;
    background: var(--base-color);
    display: block;
    text-align: center;
    cursor: pointer;
    box-shadow: 0px 0px 0px transparent, inset 0px 0px 0px transparent;
    -webkit-transition: all 1.5s ease;
    -moz-transition: all 1.5s ease;
    -o-transition: all 1.5s ease;
    transition: all 1.5s ease;
}

form label input[type="submit"]:hover, .form label input[type="submit"]:hover {
    box-shadow: 0px 0px 150px var(--base-color), inset 0px 0px 10px var(--base-color);
}

form label select, .form label select {
    padding: 10px 50px 10px 17px;
    cursor: pointer;
    border-radius: 3px;
    display: block;
    margin: 15px auto 25px auto;
    border: unset;
    border-bottom: 5px solid var(--base-color);
    background-color: #181818;
    font-family: 'naz_300';
    width: calc(100% - 50px - 5%);
    direction: rtl;
    color: rgb(253 253 253 / 90%);
}

form label select option, .form label select option {
    border: none;
    padding: 10px;
    font-family: naz_300;
    font-size: 12px;
    cursor: pointer;
    direction: rtl;
}

form label select optgroup, .form label select optgroup {
    padding: 10px;
    position: relative;
    font-family: naz_500;
    font-size: 15px;
    cursor: none;
    direction: rtl;
}

form svg.icon path, .form svg.icon path {
    fill: #f8f8f8;
    stroke: #d8d8d8;
}

input:-internal-autofill-selected {
    background-color: unset !important;
    background: none !important;
    color: rgb(133, 133, 133) !important;
}

input[type="file"]::before {
    content: attr(placeholder);
    display: inline-block;
    background: -webkit-linear-gradient(top, var(--base-color), var(--hover-color));
    background: linear-gradient(top, var(--base-color), var(--hover-color));
    background: -moz-linear-gradient(top, var(--base-color), var(--hover-color));
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    font-weight: 700;
    font-size: 10pt;
    direction: rtl;
}

input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
    display: none;
}

input[type="file"]:active::before {
    background: linear-gradient(top, #f9f9f9, #e3e3e3);
    background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
    background: -moz-linear-gradient(top, #f9f9f9, #e3e3e3);
}

input[type="checkbox"], input[type="radio"] {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 0.01px;
    width: 0.01px;
    margin: auto;
    padding: 0;
}

input[type="radio"] + span {
    box-shadow: 3px 3px 3px #00000091;
    position: relative;
    display: inline-block;
    text-indent: 0px;
    background: #e7e5e566;
    border: 1px solid #0b0b0b;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    top: 7px;
    margin: 0px 5px;
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
}

input[type="radio"] + span i {
    display: none !important;
    position: absolute;
    color: var(--gold-color) !important;
    font-size: 0% !important;
    text-align: center;
    z-index: 10;
    top: -20px !important;
    bottom: 0 !important;
    height: 105% !important;
    width: 105% !important;
    right: -15px;
    left: 0 !important;
    margin: 10px auto;
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
}

input[type="radio"]:checked + span i {
    display: block !important;
    font-size: 170% !important;
}

input[type="checkbox"] + span {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-indent: -9999px;
    background: #ccc;
    width: 60px;
    height: 30px;
    border-radius: 100px;
    margin: 0px 10px;
    top: 0px;
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    zoom: 0.7;
}

input[type="checkbox"] + span:before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--pop-color);
    color: #f8f8f8;
    border-radius: 100px;
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9) 0.1s;
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9) 0.1s;
    -webkit-transform: translateZ(0) scale(0);
    transform: translateZ(0) scale(0);
}

input[type="checkbox"] + span:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    display: block;
    height: 26px;
    width: 26px;
    background: white;
    border-radius: 100%;
    -webkit-box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    -webkit-transform: translateZ(0) translateX(0);
    transform: translateZ(0) translateX(0);
}

input[type="checkbox"]:checked + span, span[checked="checked"], span:checked {
    background: var(--base-color);
    zoom: 0.7;
}

input[type="checkbox"]:checked + span:after, span[checked="checked"]:after, span:checked:after {
    left: calc(100% - 28px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-name: start;
    -webkit-animation-duration: 0.3s;
    -webkit-animation-iteration-count: 1;
    -moz-animation-name: start;
    -moz-animation-duration: 0.3s;
    -moz-animation-iteration-count: 1;
    animation-name: start;
    animation-duration: 0.3s;
    animation-iteration-count: 1;
}

input[type="file"] {
    direction: rtl;
    text-align: right;
}

textarea {
    direction: rtl;
}

form label div, .form label div {
    direction: rtl;
    margin: 10px 15px;
    display: block;
    font-family: 'naz_900';
    padding: 5px;
    font-size: 16px;
    color: #f8f8f8;
    text-align: right;
}

form label div span, .form label div span {
    top: 10px !important;
}

.inline {
    position: relative;
    display: inline-flex;
    margin: -2px 5px;
}

form pre b, .form pre b {
    font-size: 18px;
    font-family: 'titr_r' !important;
    color: var(--hover-color);
    position: relative;
}


.popup_box {
    position: fixed;
    margin: auto;
    width: 100vW;
    height: 100vH;
    display: block;
    clear: both;
    z-index: 500;
    background: rgb(16 16 16 / 40%);
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.popup_box object.box_show_link {
    position: relative;
    display: block;
    width: 97%;
    height: auto;
    max-height: 97%;
    min-height: 200px;
    max-width: 1280px;
    min-width: 200px;
    top: 0px;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0;
    border-radius: 10px;
    margin: auto auto;
    opacity: 1;
    overflow: hidden !important;
}

/*.popup_box object.box_show_link .close {*/
/*    display: none;*/
/*    visibility: hidden;*/
/*}*/
.popup_box object.box_show_link .close {
    position: relative !important;
    background: transparent;
    display: block;
    margin: 0px auto auto 0px;
    font-size: 17px;
    font-weight: 100;
    padding: 15px 20px;
    border-radius: 3px 3px 0px 0px;
    text-align: right;
    direction: ltr;
    color: #f3f3f3;
    z-index: 20;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.popup_box object.box_show_link .close:before {
    cursor: pointer;
}

.popup_box object.box_show_link .show_responsive {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: calc(90vH - 50px);
    min-height: calc(200px - 50px);
    margin: auto;
    display: block;
    direction: ltr;
    overflow: auto;
    padding-bottom: 5vH;
    z-index: 0;
}

.popup_box object.box_show_link .show_responsive iframe {
    position: relative;
    overflow: hidden;
    display: block;
    clear: both;
    width: calc(100%);
    margin: auto;
    height: calc(87vH);
    z-index: 0;
    border-radius: 5px;
}

.menu_list, .user_list, .chat_list {
    position: relative;
    clear: both;
    direction: rtl;
    margin: 1% 3%;
}

.menu_list .geme_base, .user_list .user_info_r, .chat_list .geme_chat {
    display: block;
    margin: 2%;
    text-align: center;
    justify-content: center;
    padding: 3% 3%;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #181818;
    background: rgb(24 24 24 / 60%);
}

.menu_list .geme_base img, .user_list .user_info_r img, .chat_list .geme_chat img {
    position: relative;
    margin: auto;
    clear: both;
    display: block;
    max-width: 96%;
    width: auto;
    max-height: 96%;
    height: auto;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    filter: blur(0px);
    min-height: 80%;
    min-width: 80%;
}

.chat_list .geme_chat img {
    border-radius: 10px;
}

.menu_list .geme_base:hover img {
    filter: blur(3.5px);
}

.menu_list .geme_base titr {
    position: absolute;
    margin: auto;
    width: calc(100% - 4%);
    padding: 5% 2%;
    text-align: center;
    height: 25%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #181818;
    font-size: 2.5vW;
    color: #f8f8f8;
    font-family: 'titr';
    cursor: pointer;
    display: none;
    -webkit-animation-name: start;
    -moz-animation-name: start;
    animation-name: start;
    -webkit-animation-direction: normal;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease;
    -moz-animation-direction: normal;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 1;
    -moz-animation-timing-function: ease;
    animation-direction: normal;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.menu_list .geme_base:hover titr {
    display: block;
    -webkit-animation-name: start;
    -moz-animation-name: start;
    animation-name: start;
    -webkit-animation-direction: normal;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease;
    -moz-animation-direction: normal;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 1;
    -moz-animation-timing-function: ease;
    animation-direction: normal;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.user_list .user_info_r b {
    display: block;
    position: relative;
    margin: auto;
    width: calc(100% - 4%);
    padding: 5% 2%;
    text-align: center;
    height: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #181818;
    font-size: 1.2vW;
    color: #f8f8f8;
    font-family: 'titr';
    cursor: pointer;
}

span.lin_text {
    display: block;
    margin: 2% auto;
    clear: both;
    width: 1280px;
    max-width: 95%;
    direction: rtl;
    padding: 10px 55px 10px 5px;
    font-size: 18px;
    font-family: 'sans_b';
    color: #f8f8f8;
    position: relative;
    text-align: right;
}

span.lin_text i {
    font-size: 35px;
    width: 35px;
    height: 35px;
    right: 10px;
    top: 0;
    bottom: 0;
    color: #f8f8f8;
}

.menu_list .geme_base span, .chat_list .geme_chat span {
    position: absolute;
    background: #181818;
    width: 100%;
    text-align: center;
    justify-content: center;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 5% 1%;
    direction: ltr;
    font-family: 'per_add';
    font-size: 1.2vW;
    color: gold;
    overflow: hidden;
}

i svg, i img {
    width: 100%;
    height: 100%;
    display: block;
    clear: both;
    cursor: pointer;
    position: relative;
}

.icon {
    position: absolute;
    margin: auto !important;
    display: block;
    color: var(--box-color);
}

.titler {
    position: relative;
    display: block;
    margin: 3%;
    clear: both;
    border-radius: 15px;
    background: rgb(24 24 24 / 60%);
    padding: 0.2% 2%;
    border-top: 4px solid rgba(255, 255, 255, 0.3) !important;
}

img.text_img {
    position: relative !important;
    display: inline-block !important;
    margin: auto 5px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0px 0px 10px gold !important;
    clear: unset !important;
    filter: unset !important;
}

p.document {
    position: relative;
    display: block;
    margin: 5px 5px;
    padding: 15px 15px;
    font-family: 'sans';
    font-weight: 300;
    border-radius: 5px;
    background: var(--div-color);
    color: #171e26;
    cursor: pointer;
    text-decoration: none;
    direction: rtl;
    text-align: right;
}

.btn-p {
    padding: 10px;
    position: relative;
    display: block;
    width: 300px;
    max-width: 80%;
    background: var(--base-color);
    text-align: center;
    font-size: 20px;
    border-radius: 5px;
    font-family: 'per_add';
    font-weight: 900;
    color: snow;
    cursor: pointer;
    margin: 15px auto;
    clear: both;
    direction: rtl;
    overflow: hidden;
}

.btn-p.red {
    background: var(--red-color);
}

.btn-p:hover {
    background: var(--hover-color);
}

.btn-p.red:hover {
    background: #460404FF;
}


@font-face {
    font-family: swiper-icons;
    src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');
    font-weight: 400;
    font-style: normal
}

:root {
    --swiper-theme-color: #007aff
}

:host {
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    z-index: 1
}

.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block
}

.swiper-vertical > .swiper-wrapper {
    flex-direction: column
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box
}

.swiper-android .swiper-slide, .swiper-ios .swiper-slide, .swiper-wrapper {
    transform: translate3d(0px, 0, 0)
}

.swiper-horizontal {
    touch-action: pan-y
}

.swiper-vertical {
    touch-action: pan-x
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block
}

.swiper-slide-invisible-blank {
    visibility: hidden
}

.swiper-autoheight, .swiper-autoheight .swiper-slide {
    height: auto
}

.swiper-autoheight .swiper-wrapper {
    align-items: flex-start;
    transition-property: transform, height
}

.swiper-backface-hidden .swiper-slide {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.swiper-3d.swiper-css-mode .swiper-wrapper {
    perspective: 1200px
}

.swiper-3d .swiper-wrapper {
    transform-style: preserve-3d
}

.swiper-3d {
    perspective: 1200px
}

.swiper-3d .swiper-cube-shadow, .swiper-3d .swiper-slide {
    transform-style: preserve-3d
}

.swiper-css-mode > .swiper-wrapper {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
    display: none
}

.swiper-css-mode > .swiper-wrapper > .swiper-slide {
    scroll-snap-align: start start
}

.swiper-css-mode.swiper-horizontal > .swiper-wrapper {
    scroll-snap-type: x mandatory
}

.swiper-css-mode.swiper-vertical > .swiper-wrapper {
    scroll-snap-type: y mandatory
}

.swiper-css-mode.swiper-free-mode > .swiper-wrapper {
    scroll-snap-type: none
}

.swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {
    scroll-snap-align: none
}

.swiper-css-mode.swiper-centered > .swiper-wrapper::before {
    content: '';
    flex-shrink: 0;
    order: 9999
}

.swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {
    scroll-snap-align: center center;
    scroll-snap-stop: always
}

.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
    margin-inline-start: var(--swiper-centered-offset-before)
}

.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
    height: 100%;
    min-height: 1px;
    width: var(--swiper-centered-offset-after)
}

.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
    margin-block-start: var(--swiper-centered-offset-before)
}

.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {
    width: 100%;
    min-width: 1px;
    height: var(--swiper-centered-offset-after)
}

.swiper-3d .swiper-slide-shadow, .swiper-3d .swiper-slide-shadow-bottom, .swiper-3d .swiper-slide-shadow-left, .swiper-3d .swiper-slide-shadow-right, .swiper-3d .swiper-slide-shadow-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10
}

.swiper-3d .swiper-slide-shadow-left {
    background-image: linear-gradient(to left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}

.swiper-3d .swiper-slide-shadow-right {
    background-image: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}

.swiper-3d .swiper-slide-shadow-top {
    background-image: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}

.swiper-3d .swiper-slide-shadow-bottom {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}

.swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    box-sizing: border-box;
    border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
    border-radius: 50%;
    border-top-color: transparent
}

.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader, .swiper:not(.swiper-watch-progress) .swiper-lazy-preloader {
    animation: swiper-preloader-spin 1s infinite linear
}

.swiper-lazy-preloader-white {
    --swiper-preloader-color: #fff
}

.swiper-lazy-preloader-black {
    --swiper-preloader-color: #000
}

@keyframes swiper-preloader-spin {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

.swiper-virtual .swiper-slide {
    -webkit-backface-visibility: hidden;
    transform: translateZ(0)
}

.swiper-virtual.swiper-css-mode .swiper-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none
}

.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after {
    height: 1px;
    width: var(--swiper-virtual-size)
}

.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after {
    width: 1px;
    height: var(--swiper-virtual-size)
}

:root {
    --swiper-navigation-size: 44px
}

.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: var(--swiper-navigation-top-offset, 50%);
    width: calc(var(--swiper-navigation-size) / 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--swiper-navigation-color, var(--swiper-theme-color))
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: .35;
    cursor: auto;
    pointer-events: none
}

.swiper-button-next.swiper-button-hidden, .swiper-button-prev.swiper-button-hidden {
    opacity: 0;
    cursor: auto;
    pointer-events: none
}

.swiper-navigation-disabled .swiper-button-next, .swiper-navigation-disabled .swiper-button-prev {
    display: none !important
}

.swiper-button-next svg, .swiper-button-prev svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center
}

.swiper-rtl .swiper-button-next svg, .swiper-rtl .swiper-button-prev svg {
    transform: rotate(180deg)
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 10px);
    right: auto
}

.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 10px);
    left: auto
}

.swiper-button-lock {
    display: none
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    content: 'prev'
}

.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 10px);
    left: auto
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
    content: 'next'
}

.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10
}

.swiper-pagination.swiper-pagination-hidden {
    opacity: 0
}

.swiper-pagination-disabled > .swiper-pagination, .swiper-pagination.swiper-pagination-disabled {
    display: none !important
}

.swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, 8px);
    top: var(--swiper-pagination-top, auto);
    left: 0;
    width: 100%
}

.swiper-pagination-bullets-dynamic {
    overflow: hidden;
    font-size: 0
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transform: scale(.33);
    position: relative
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
    transform: scale(1)
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
    transform: scale(1)
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
    transform: scale(.66)
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
    transform: scale(.33)
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(.66)
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
    transform: scale(.33)
}

.swiper-pagination-bullet {
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
    display: inline-block;
    border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
    background: var(--swiper-pagination-bullet-inactive-color, #000);
    opacity: var(--swiper-pagination-bullet-inactive-opacity, .2)
}

button.swiper-pagination-bullet {
    border: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer
}

.swiper-pagination-bullet:only-child {
    display: none !important
}

.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: var(--swiper-pagination-color, var(--swiper-theme-color))
}

.swiper-pagination-vertical.swiper-pagination-bullets, .swiper-vertical > .swiper-pagination-bullets {
    right: var(--swiper-pagination-right, 8px);
    left: var(--swiper-pagination-left, auto);
    top: 50%;
    transform: translate3d(0px, -50%, 0)
}

.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {
    margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
    display: block
}

.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic, .swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    top: 50%;
    transform: translateY(-50%);
    width: 8px
}

.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet, .swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    display: inline-block;
    transition: .2s transform, .2s top
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px)
}

.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic, .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap
}

.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transition: .2s transform, .2s left
}

.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transition: .2s transform, .2s right
}

.swiper-pagination-fraction {
    color: var(--swiper-pagination-fraction-color, inherit)
}

.swiper-pagination-progressbar {
    background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));
    position: absolute
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--swiper-pagination-color, var(--swiper-theme-color));
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: left top
}

.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    transform-origin: right top
}

.swiper-horizontal > .swiper-pagination-progressbar, .swiper-pagination-progressbar.swiper-pagination-horizontal, .swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite, .swiper-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
    width: 100%;
    height: var(--swiper-pagination-progressbar-size, 4px);
    left: 0;
    top: 0
}

.swiper-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite, .swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite, .swiper-pagination-progressbar.swiper-pagination-vertical, .swiper-vertical > .swiper-pagination-progressbar {
    width: var(--swiper-pagination-progressbar-size, 4px);
    height: 100%;
    left: 0;
    top: 0
}

.swiper-pagination-lock {
    display: none
}

.swiper-scrollbar {
    border-radius: var(--swiper-scrollbar-border-radius, 10px);
    position: relative;
    touch-action: none;
    background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))
}

.swiper-scrollbar-disabled > .swiper-scrollbar, .swiper-scrollbar.swiper-scrollbar-disabled {
    display: none !important
}

.swiper-horizontal > .swiper-scrollbar, .swiper-scrollbar.swiper-scrollbar-horizontal {
    position: absolute;
    left: var(--swiper-scrollbar-sides-offset, 1%);
    bottom: var(--swiper-scrollbar-bottom, 4px);
    top: var(--swiper-scrollbar-top, auto);
    z-index: 50;
    height: var(--swiper-scrollbar-size, 4px);
    width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))
}

.swiper-scrollbar.swiper-scrollbar-vertical, .swiper-vertical > .swiper-scrollbar {
    position: absolute;
    left: var(--swiper-scrollbar-left, auto);
    right: var(--swiper-scrollbar-right, 4px);
    top: var(--swiper-scrollbar-sides-offset, 1%);
    z-index: 50;
    width: var(--swiper-scrollbar-size, 4px);
    height: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))
}

.swiper-scrollbar-drag {
    height: 100%;
    width: 100%;
    position: relative;
    background: var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));
    border-radius: var(--swiper-scrollbar-border-radius, 10px);
    left: 0;
    top: 0
}

.swiper-scrollbar-cursor-drag {
    cursor: move
}

.swiper-scrollbar-lock {
    display: none
}

.swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center
}

.swiper-zoom-container > canvas, .swiper-zoom-container > img, .swiper-zoom-container > svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.swiper-slide-zoomed {
    cursor: move;
    touch-action: none
}

.swiper .swiper-notification {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0;
    z-index: -1000
}

.swiper-free-mode > .swiper-wrapper {
    transition-timing-function: ease-out;
    margin: 0 auto
}

.swiper-grid > .swiper-wrapper {
    flex-wrap: wrap
}

.swiper-grid-column > .swiper-wrapper {
    flex-wrap: wrap;
    flex-direction: column
}

.swiper-fade.swiper-free-mode .swiper-slide {
    transition-timing-function: ease-out
}

.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity
}

.swiper-fade .swiper-slide .swiper-slide {
    pointer-events: none
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto
}

.swiper-fade .swiper-slide-active .swiper-slide-active {
    pointer-events: auto
}

.swiper-cube {
    overflow: visible
}

.swiper-cube .swiper-slide {
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 1;
    visibility: hidden;
    transform-origin: 0 0;
    width: 100%;
    height: 100%
}

.swiper-cube .swiper-slide .swiper-slide {
    pointer-events: none
}

.swiper-cube.swiper-rtl .swiper-slide {
    transform-origin: 100% 0
}

.swiper-cube .swiper-slide-active, .swiper-cube .swiper-slide-active .swiper-slide-active {
    pointer-events: auto
}

.swiper-cube .swiper-slide-active, .swiper-cube .swiper-slide-next, .swiper-cube .swiper-slide-prev {
    pointer-events: auto;
    visibility: visible
}

.swiper-cube .swiper-cube-shadow {
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 100%;
    opacity: .6;
    z-index: 0
}

.swiper-cube .swiper-cube-shadow:before {
    content: '';
    background: #000;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    filter: blur(50px)
}

.swiper-cube .swiper-slide-next + .swiper-slide {
    pointer-events: auto;
    visibility: visible
}

.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom, .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left, .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right, .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top {
    z-index: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.swiper-flip {
    overflow: visible
}

.swiper-flip .swiper-slide {
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 1
}

.swiper-flip .swiper-slide .swiper-slide {
    pointer-events: none
}

.swiper-flip .swiper-slide-active, .swiper-flip .swiper-slide-active .swiper-slide-active {
    pointer-events: auto
}

.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom, .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left, .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right, .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top {
    z-index: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.swiper-creative .swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    transition-property: transform, opacity, height
}

.swiper-cards {
    overflow: visible
}

.swiper-cards .swiper-slide {
    position: relative;
    display: block;
    height: 100vh;
    width: 100vW;
    overflow: hidden;
    margin: auto;
}

section.menulog {
    position: fixed;
    display: block;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    height: 100vh;
    width: 100vW;
    overflow: hidden;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 0;
}

section.menulog .content {
    position: absolute;
    display: block;
    margin: auto;
    gap: 30px;
    border-radius: 20px;
    width: 95vW;
    height: 95vH;
    z-index: 1;
    top: -2vH;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}


section.menulog .content.long {
    width: min(1024px, 93vW);
    max-height: max(540px, 93vH);
    min-height: min(540px, 93vH);
    height: auto;
}

section.menulog .content.horz {
    width: min(540px, 93vW);
    height: min(1024px, 93vH);
}


section.menulog .infoe {
    position: relative;
    margin: auto;
    display: block;
    width: calc(100% - 22px);
    height: calc(100% - 33px);
    padding: 10px 15px;
    text-align: justify;
    overflow: hidden;
    overflow-y: auto;
}

section.menulog .infoe p {
    position: relative;
    display: block;
    margin: 20px 5px 20px 5px;
    color: var(--back-color);
    font-weight: 500;
    font-size: 22px;
    line-height: 9.5vW;
    font-family: 'naz_300';
    direction: rtl;
    text-align: justify;
}

.movie-night {
    background: linear-gradient(225deg, var(--base-color) 0%, var(--pop-color) 50%, #073c60 100%);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10.5px 2.5px auto 2.5px;
    position: relative;
    display: inline-block;
    top: 1px;
    font-family: 'kalame_b';
    cursor: pointer;
    font-size: 20px;
    color: #f8f8f8;
}

section.menulog .btn {
    position: relative;
    display: block;
    padding: 10px 40px;
    margin: 10px auto;
    font-size: 22px;
    font-family: 'titr';
    font-weight: 700;
    border-radius: 15px;
    outline: none;
    text-decoration: none;
    color: #c3c2c5;
    background: rgb(10 88 8 / 90%);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #4242427a;
    cursor: pointer;
}

section.menulog .btn:hover,
section.menulog .btn:focus,
section.menulog .btn:active,
section.menulog .btn:visited {
    transition-timing-function: cubic-bezier(0.6, 4, 0.3, 0.8);
    animation: gelatine 0.5s 1;
}

@keyframes gelatine {
    0%,
    100% {
        transform: scale(1, 1);
    }
    25% {
        transform: scale(0.9, 1.1);
    }
    50% {
        transform: scale(1.1, 0.9);
    }
    75% {
        transform: scale(0.95, 1.05);
    }
}

/* SWIPER */

section.menulog .swiperdiv {
    position: relative;
    margin: auto;
    display: block;
    width: calc(90% - 20px);
    height: calc(90% - 20px);
    text-align: justify;
    padding: 10px 10px;
    min-height: max(100%, 300px);
}

section.menulog .swiper {
    position: absolute;
    margin: auto;
    display: block;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    text-align: justify;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 10px 10px;
}

section.menulog .swiper-slide {
    position: relative;
    border-radius: 10px;
    user-select: none;
    max-width: 100%;
    max-height: 100%;
    opacity: 0.5;
}

section.menulog .swiper-slide-active {
    opacity: 1;
}

section.menulog .swiper-slide img {
    position: relative;
    inset: 0;
    width: 95%;
    height: auto;
    max-height: 95%;
    object-fit: cover;
    margin: 2%;
}

section.menulog .img-position {
    object-position: 50% 0%;
}

section.menulog .overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    opacity: 0;
}

section.menulog .swiper-slide-active .overlay {
    opacity: 1;
}

section.menulog .overlay span {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    padding: 7px 18px 5px;
    margin: 10px;
    border-radius: 20px;
    letter-spacing: 2px;
    font-size: 18px;
    font-family: 'per_add';
    font-weight: 700;
    background: rgb(65 0 62 / 81%);
    box-shadow: inset 2px -2px 20px rgb(52 2 50 / 89%), inset -3px 3px 3px rgb(54 3 65 / 84%);
    backdrop-filter: blur(74px);
}

section.menulog .overlay h2 {
    direction: rtl;
    text-align: center;
    width: 90%;
    position: absolute;
    bottom: 15%;
    right: 0;
    left: 0;
    color: #fff;
    padding: 15px 20px;
    margin: 10px;
    border-radius: 20px;
    letter-spacing: 2px;
    font-size: 18px;
    font-family: 'per_add';
    font-weight: 700;
    background: rgb(65 0 62 / 81%);
    box-shadow: inset 2px -2px 20px rgb(52 2 50 / 89%), inset -3px 3px 3px rgb(54 3 65 / 84%);
    backdrop-filter: blur(74px);
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    bottom: 0;
    right: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background-color: var(--base-color);
    background-image: linear-gradient(
        225deg,
        var(--base-color) 0%,
        var(--pop-color) 40%,
        #0ef1c1 160%
    );
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

textbar {
    position: fixed;
    margin: auto;
    display: block;
    background: #8715c7;
    width: 100vW;
    height: 100vH;
    z-index: 401;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
    justify-content: center;
}

textbar text {
    position: absolute;
    margin: 43vH auto;
    display: block;
    color: #f8f8f8;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    justify-content: center;
    font-family: 'sans';
    font-size: 5.2vW;
}

.copyright {
    position: absolute;
    clear: both;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    direction: rtl;
    text-align: center;
    font-family: 'per_add';
    font-size: 13px;
    color: #cecdcd;
    bottom: 2px;
    right: 0;
    left: 0;
    font-weight: 700;
    z-index: 2;
}

section.menulog .content.horz form {
    position: relative;
    margin: 5px auto;
    z-index: 0;
    display: block;
    width: 90%;
    min-width: 300px;
    height: auto;
    max-height: calc(100% - 10px);
    overflow: hidden;
    overflow-y: auto;
}

section.menulog .content .grid[role="2"] {
    grid-template-columns: 55% 45%;
    height: 100%;
    overflow: hidden;
    margin: auto;
    width: 100%;
    direction: ltr;
}

ul.menu_bar {
    position: relative;
    display: grid;
    margin: auto;
    clear: both;
    grid-template-columns: 100%;
    direction: rtl;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    padding-bottom: 5%;
    box-sizing: border-box;
}

ul.menu_bar li {
    position: relative;
    display: block;
    margin: 5%;
    clear: both;
    width: calc(100% - 10%);
    height: calc(100% - 10%);
    border: 2px solid rgb(220 220 220 / 25%);
    border-radius: 15px;
    cursor: pointer;
    background: rgb(0 0 0 / 70%);
    padding: 10px 20% 10px 10px;
    box-sizing: border-box;
}

ul.menu_bar li i:nth-child(1) {
    position: absolute;
    margin: auto;
    width: 20%;
    height: auto;
    max-height: 40%;
    display: block;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    z-index: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

ul.menu_bar li i:nth-child(4), ul.menu_bar li i:nth-child(2) {
    margin: auto !important;
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #f8f8f8;
    text-shadow: 0px 0px 1px var(--gold-color);
    top: 5%;
    left: 3%;
    cursor: pointer;
    z-index: 1;
}

ul.menu_bar li h1 {
    position: relative;
    margin: auto;
    display: block;
    clear: both;
    text-align: right;
    font-size: 25px;
    font-family: 'kalame_b';
    color: #f8f8f8;
    text-shadow: 0px 0px 1px var(--gold-color);
    padding: 4% 1%;
    cursor: pointer;
}

ul.menu_bar li h3 {
    position: relative;
    margin: auto;
    display: block;
    clear: both;
    text-align: right;
    font-size: 16px;
    font-family: 'titr_r';
    color: rgb(238 238 238 / 53%);
    text-shadow: 0px 0px 1px #181818;
    padding: 0px 1%;
}

ul.menu_bar li i, ul.menu_bar li i svg {
    cursor: pointer;
}

game {
    width: 100vW;
    height: 100vH;
    top: 0%;
    bottom: 0%;
    right: 0%;
    left: 0%;
    z-index: 1;
    overflow: hidden;
    position: relative;
    margin: auto;
    display: block;
    text-align: center;
    background: transparent;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    direction: rtl;
    font-size: 20px;
    border-radius: 10px;
    color: #f8f8f8;
    font-family: 'naz_900';
}

game object {
    position: relative;
    margin: auto !important;
    display: block;
    background: radial-gradient(circle, rgba(245, 245, 245, 0.5) 5%, rgb(53 9 64) 60%);
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden !important;
}


.user_M_dashboard {
    position: relative;
    margin: auto !important;
    display: block;
    clear: both;
    padding: 10px 0px !important;
    width: calc(100% - 0%);
    height: calc(100% - 20px);
    overflow: hidden;
    overflow-y: auto;
}

.user_M_dashboard center {
    overflow: hidden;
    position: relative;
    margin: 5% auto !important;
    background: center center repeat;
    background-size: calc(100px * 3) calc(57.5px * 3);
    z-index: 0;
    box-shadow: 0px 0px 10vW rgb(43 41 41 / 86%) inset;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.user_M_dashboard center img {
    position: relative;
    display: block;
    margin: auto;
    border-radius: 50%;
    max-width: 100%;
    width: 120px;
    height: 120px;
    max-height: 100%;
}

.user_M_dashboard ul.pro_file {
    position: relative;
    margin: 10px 15px;
    padding: 2px;
    display: block;
    z-index: 0;
}

.user_M_dashboard ul.pro_file li {
    position: relative;
    margin: 10px auto;
    padding: 15px 50px 15px 20px;
    font-family: 'sans_b';
    font-size: 15px;
    direction: rtl;
    display: block;
    text-align: right;
    border: 3px solid #f8f8f8;
    border-radius: 12px;
    background: #272727;
    color: #eee;
}

.user_M_dashboard ul.pro_file li i {
    width: 25px !important;
    height: 25px !important;
    font-size: 25px !important;
    color: #f8f8f8;
    top: 0;
    bottom: 0;
    right: 10px !important;
}

.user_M_dashboard ul.pro_file li svg.icon {
    width: 25px;
    height: 25px;
    font-size: 25px;
    color: #f8f8f8;
    top: 0;
    bottom: 0;
    right: 10px;
}

.user_M_dashboard ul.pro_file li span[for] {
    position: absolute !important;
    margin: auto !important;
    font-size: 25px !important;
    top: 0;
    bottom: 0;
    left: 10px !important;
}

.fui-noty {
    background: center center no-repeat;
    background-size: cover;
}


.hr {
    margin: 14px 0 !important;
    display: flex;
    flex-direction: row;
    clear: both;
    width: 100%;
    font-family: naz_300;
    font-size: 12px;
    text-align: center;
}

.hr i {
    margin: auto 2px !important;
    position: relative !important;
    color: var(--red-color);
}

.hr:before, .hr:after {
    content: '';
    flex: 1 1;
    margin: auto 5px !important;
    border-bottom: 1.5px dashed rgb(147 8 8 / 74%);
}

.hr span {
    margin: -5px 7px !important;
    font-size: 13px;
    color: var(--red-color);
    direction: rtl;
}


.pre {
    position: relative;
    display: block;
    clear: both;
    text-align: left;
    direction: ltr;
    font-family: fantasy;
    border: 2px solid #383838;
    background: #151919bf;
    margin: 5px;
    border-radius: 5px;
    padding: 15px 10px;
    font-size: 13px;
    color: var(--snow-color);
    font-weight: 200 !important;
    -webkit-animation-name: rot_alrt;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -moz-animation-name: rot_alrt;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 1;
    animation-name: rot_alrt;
    animation-duration: 1s;
    animation-iteration-count: 1;
}

.pre .btn-c {
    padding: 5px 10px !important;
    background: var(--box-color);
    color: var(--back-color) !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-family: 'naz_300' !important;
    margin: auto 2.5px !important;
}

i.back {
    width: max(15vW, 15vH);
    height: max(15vW, 15vH);
    top: -0.5%;
    left: -0.5%;
    z-index: 150;
    -webkit-animation-name: peypar;
    -webkit-animation-duration: 1.5s;
    -webkit-animation-iteration-count: 1;
    -moz-animation-name: peypar;
    -moz-animation-duration: 1.5s;
    -moz-animation-iteration-count: 1;
    animation-name: peypar;
    animation-duration: 1.5s;
    animation-iteration-count: 1;
}

i.back svg {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    transform: rotate(90deg);
    z-index: 2;
    -webkit-animation-name: rot_alrt;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -moz-animation-name: rot_alrt;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 1;
    animation-name: rot_alrt;
    animation-duration: 1s;
    animation-iteration-count: 1;
}

i.back i {
    width: 92%;
    height: 92%;
    text-align: center;
    background: #c9c9c9 url('/public/files/icons/headbg5.png');
    top: 0;
    left: 0;
    border-radius: 0px 0px 100% 0px;
    z-index: 0;
    font-size: max(5vW, 5vH);
    color: rgb(248 248 248 / 60%);
    -webkit-animation-name: rot_alrt;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -moz-animation-name: rot_alrt;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 1;
    animation-name: rot_alrt;
    animation-duration: 1s;
    animation-iteration-count: 1;
}

i.back i:before {
    position: absolute;
    top: 0;
    width: max(5vW, 5vH);
    height: max(5vW, 5vH);
    bottom: 40%;
    margin: auto;
    left: 5%;
    cursor: pointer;
    -webkit-animation-name: rot_alrt;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -moz-animation-name: rot_alrt;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 1;
    animation-name: rot_alrt;
    animation-duration: 1s;
    animation-iteration-count: 1;
}


@-moz-keyframes peypar {
    0% {
        top: calc(-1 * max(15.5vW, 15.5vH));
        left: calc(-1 * max(15.5vW, 15.5vH));
    }
    100% {
        top: -0.5%;
        left: -0.5%;
    }
}

@-webkit-keyframes peypar {
    0% {
        top: calc(-1 * max(15.5vW, 15.5vH));
        left: calc(-1 * max(15.5vW, 15.5vH));
    }
    100% {
        top: -0.5%;
        left: -0.5%;
    }
}

@keyframes peypar {
    0% {
        top: calc(-1 * max(15.5vW, 15.5vH));
        left: calc(-1 * max(15.5vW, 15.5vH));
    }
    100% {
        top: -0.5%;
        left: -0.5%;
    }
}

.infoter {
    position: relative;
    margin: 10% 5% 5% 5%;
    display: block;
    text-align: center;
    padding: 2vH 3vW 2vH 3vW;
    background: #b9b9b9;
    border: 1px solid rgb(99 99 99 / 71%);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    direction: rtl;
    font-size: 12px;
    border-radius: 10px;
    color: #181818;
    font-family: 'naz_900';
    z-index: 3;
}

.infoter img.gem_inline {
    position: relative;
    margin: auto 2%;
    width: 50px;
    height: auto;
}

.gridel {
    position: relative;
    margin: 5%;
    display: grid;
    grid-template-columns: 50% 50%;
    text-align: center;
    padding: 2vH 2vW;
    background: #c9c9c9 url('/public/files/icons/headbg5.png');
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    direction: rtl;
    font-size: 20px;
    border-radius: 10px;
    color: #f8f8f8;
    font-family: 'naz_900';
}

.gridel span {
    position: relative;
    margin: 2%;
    display: block;
    text-align: center;
    justify-content: center;
    padding: 1vH 1vW;
    background: #4e00cae6 url('/public/files/icons/headbg5.png');
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    direction: rtl;
    font-size: 20px;
    border-radius: 10px;
    color: #f8f8f8;
    font-family: 'naz_900';
    max-height: 100%;
}

.gridel span img.iconpack {
    position: relative;
    text-align: center;
    justify-content: center;
    margin: auto;
    max-height: 20vH;
    width: calc(100% - 2vW);
    display: block;
}

.gridel span i {
    width: 40px;
    height: 25px;
    font-size: 40px;
    top: -4%;
    left: -15%;
    z-index: 5;
    filter: drop-shadow(5px 5px 5px gold) drop-shadow(0px 0px 10px gold) drop-shadow(10px 10px 20px gold);
}

.gridel span i img {
    filter: drop-shadow(0px 0px 5px #1a1919);
}

.gridel span h3 {
    position: relative;
    margin: 5% auto;
    display: block;
    font-size: max(2vW, 2vH);
    text-shadow: 0px 0px 3px gold;
    font-family: 'per_add';
}

.gridel span h1 {
    position: relative;
    margin: 5% auto;
    display: block;
    font-size: max(2.8vW, 2.8vH);
    font-family: 'sans';
}

.row {
    position: relative;
    margin: auto;
    display: block;
    width: 100%;
    min-height: 35%;
    z-index: 2;
}

.row[role="scroll"] {
    width: 100%;
    height: auto;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;
}

.infoter i:nth-child(1) {
    width: 40vW;
    max-height: 20vH;
    transform: rotate(0deg);
    left: 0%;
    bottom: -150%;
}

.infoter i:nth-child(2) {
    width: 30vW;
    max-height: 15vH;
    top: -40%;
    right: -8%;
    z-index: 5;
}

table {
    direction: rtl;
    border-spacing: 1px;
    border-collapse: collapse;
    overflow: hidden;
    max-width: 1000px;
    width: 95%;
    min-width: 85%;
    margin: auto;
    position: relative;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

table.rewardT {
    margin: 21% auto auto auto;
}

table * {
    position: relative;
}

table tbody {
    border-bottom: var(--base-color) 3px solid;
    box-shadow: 0px 0px 5px #231f1fa1;
}

table td, table th {
    min-width: 30px;
    max-height: 200px;
    overflow: hidden;
    overflow-y: auto;
    padding: 10px;
    font-family: 'naz_900';
}

table thead tr {
    background: #9d00c3 url('/public/files/icons/headbg5.png');
}

table thead td {
    font-family: naz_900;
    color: var(--back-color);
    font-size: max(3vW, 1vH);
    padding: 10px;
}

table tbody tr:nth-of-type(2n) {
    min-height: 48px;
    background: #490044 url('/public/files/icons/headbg5.png');
}

table tbody tr:nth-child(2n) {
    background: #ff00e9 url('/public/files/icons/headbg5.png');
}

table tbody tr:nth-child(2n) td {
    color: #7d7d7b;
}

table tbody tr {
    min-height: 48px;
    border-bottom: 1px solid #676767;
    background: #7300ff url('/public/files/icons/headbg5.png');
}


tr.thisme {
    background: #32ff6d url('/public/files/icons/headbg5.png') !important;
}

table tbody tr:last-child {
    border: 0;
}

table td, table th {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

table td.l, table th.l {
    text-align: right;
}

table td.c, table th.c {
    text-align: center;
}

table td.r, table th.r {
    text-align: center;
}

table th {
    color: var(--gold-color);
    text-align: center;
}

table td {
    font-family: naz_500;
    color: #b1afaf;
    font-size: 16px;
    direction: rtl;
}

table td img {
    display: table;
    position: relative;
    margin: auto;
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: 100%;
    padding: 5px;
}

table td i.icon {
    position: relative !important;
    display: inline-block;
    width: 25px;
    height: 25px;
    font-size: 25px;
    color: #626262;
    cursor: pointer;
    padding: 5px;
    right: unset !important;
    left: unset !important;
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
}

table td i.icon:hover {
    color: var(--back-color);
}

table tfoot td {
    background: #535758 !important;
    color: #f7f7f7 !important;
}

table td i.icon span {
    position: absolute;
    z-index: 2;
    margin: auto;
    display: block;
    font-family: 'per_add';
    background: red;
    padding: 3px;
    border-radius: 50%;
    color: #f8f8f8;
    overflow: hidden;
    width: 12px;
    height: 12px;
    font-size: 10px;
    top: -3px;
    right: -3px;
}


div#pop_daily_prize {
    position: fixed;
    z-index: 200;
    margin: auto;
    display: block;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgb(240 240 240 / 70%);
}


#pop_daily_prize .boxes {
    background: url('/public/__Global/Files/image/reward/img.png');
    background-color: rgb(240 240 240 / 20%);
    height: max(20vH, 20vW);
    margin: 5% auto;
    position: relative;
    overflow: hidden;
    width: 95%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 15px;
    box-shadow: 0 5px 5px rgb(18 17 17 / 26%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    text-align: center;
    justify-content: center;
    z-index: 5;
}

#pop_daily_prize.spec .boxes:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 54px;
    background: url('/public/__Global/Files/image/reward/img_1.png');
    background: rgba(255, 255, 255, 0.2);
    bottom: 0;
    left: 0;
}

#pop_daily_prize.spec .bdg {
    position: absolute;
    width: 97px;
    height: 62px;
    left: -4px;
    top: 35px;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#pop_daily_prize .boxes div[r],
#pop_daily_prize.spec.parti .boxes div[r],
#pop_daily_prize.spec.fall .boxes div[r] {
    width: 104px;
    height: 54px;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    cursor: pointer;
    background: none;
    -moz-transition: none;
    -o-transition: none;
    -webkit-transition: none;
    transition: none;
    z-index: 1;
}

#pop_daily_prize.spec .boxes div[r] {
    width: 55px;
    height: 16px;
    background: url('/public/__Global/Files/image/reward/img_2.png') no-repeat center bottom;
    left: 55px;
    bottom: 12px;
    top: auto;
    -moz-transition: background 150ms;
    -o-transition: background 150ms;
    -webkit-transition: background 150ms;
    transition: background 150ms;
}

#pop_daily_prize.spec .boxes div[r].hatch {
    background: none;
    bottom: 0;
}

#pop_daily_prize.nowrooz .boxes div[r].hatch {
    width: 89px;
}

#pop_daily_prize.summer .boxes div[r].hatch {
    width: 91px;
}

#pop_daily_prize.spec .boxes div[r]:hover {
    background-position: center bottom -2px;
}

#pop_daily_prize .boxes div[r].o {
    cursor: default;
}

#pop_daily_prize .boxes div[r='1'],
#pop_daily_prize.spec.parti .boxes div[r='1'],
#pop_daily_prize.spec.fall .boxes div[r='1'] {
    left: 7%;
    top: 40%;
}

#pop_daily_prize.spec .boxes div[r='1'] {
    left: 57px;
}

#pop_daily_prize .boxes div[r='2'],
#pop_daily_prize.spec.parti .boxes div[r='2'],
#pop_daily_prize.spec.fall .boxes div[r='2'] {
    left: 35%;
    top: 40%;
}

#pop_daily_prize.spec .boxes div[r='2'] {
    left: 149px;
}

#pop_daily_prize .boxes div[r='3'],
#pop_daily_prize.spec.parti .boxes div[r='3']
#pop_daily_prize.spec.fall .boxes div[r='3'] {
    left: 65%;
    top: 40%;
}

#pop_daily_prize.spec .boxes div[r='3'] {
    left: 243px;
}


#pop_daily_prize .boxes div[r] .tp,
#pop_daily_prize .boxes div[r] .bg,
#pop_daily_prize .boxes div[r] .bk {
    position: absolute;
    width: 100%;
    height: 27px;
    top: -14px;
    left: 0;
    background: url('/public/__Global/Files/image/reward/img_3.png') no-repeat center top;
    filter: hue-rotate(275deg);
}

#pop_daily_prize .boxes div[r] .tp {
    -moz-transition: margin 150ms;
    -o-transition: margin 150ms;
    -webkit-transition: margin 150ms;
    transition: margin 150ms;
}

#pop_daily_prize .boxes div[r]:hover .tp {
    margin-top: -3px;
}

#pop_daily_prize .boxes div[r].o:hover .tp {
    margin-top: 0;
}

#pop_daily_prize .boxes div[r] .bk {
    background-position: center -27px;
    height: 5px;
    top: -4px;
}

#pop_daily_prize.spec .boxes div[r] .tp,
#pop_daily_prize.spec .boxes div[r] .bk {
    display: none;
}

#pop_daily_prize .boxes div[r] .bg,
#pop_daily_prize.spec.parti .boxes div[r] .bg,
#pop_daily_prize.spec.fall .boxes div[r] .bg {
    background-position: center bottom;
    height: 100%;
    width: 100%;
    top: auto;
    bottom: 0;
    left: 0;
    -moz-transition: none;
    -o-transition: none;
    -webkit-transition: none;
    transition: none;
}

#pop_daily_prize.spec .boxes div[r] .bg {
    -moz-transition: bottom 150ms;
    -o-transition: bottom 150ms;
    -webkit-transition: bottom 150ms;
    transition: bottom 150ms;
}

#pop_daily_prize.spec .boxes div[e='2'] .bg {
    background-position: center bottom;
}

#pop_daily_prize.spec .boxes div[e='3'] .bg {
    background-position: right bottom;
}

#pop_daily_prize.spec .boxes div[r]:hover .bg {
    bottom: 14px;
}

#pop_daily_prize.spec .boxes div[r].o:hover .bg {
    bottom: 7px;
}

#pop_daily_prize .boxes .pr {
    position: absolute;
    height: 44px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 7px;
    background-position: center bottom;
    background-repeat: no-repeat;
}

#pop_daily_prize.nowrooz .boxes .pr {
    left: 16px;
}

#pop_daily_prize.summer .boxes .pr {
    left: 11px;
}

#pop_daily_prize .boxes .pr[r='money'] {
    background-image: url('/public/__Global/Files/image/reward/img_8.png');
}

#pop_daily_prize .boxes > .mbg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('/public/__Global/Files/image/reward/img_9.png') no-repeat;
    background-size: cover;
    opacity: 0;
    filter: invert(0.8) contrast(0.7);
}

#pop_daily_prize .boxes > .prize {
    position: absolute;
    height: 45px;
    background: #15012b;
    top: 62px;
    left: 100%;
    padding: 0 10px 0 12px;
    font: 13px / 45px 'yekan';
    text-align: center;
    min-width: 180px;
    color: #f8f8f8;
    direction: rtl;
    font-family: 'sans_b';
}

#pop_daily_prize .boxes > .prize span.num {
    font: 22px / 16px 'Tahoma';
    display: inline-block;
    vertical-align: middle;
    height: 23px;
    font-family: 'naz_500';
    margin: 0px 3px;
    line-height: 25px;
}

#pop_daily_prize .boxes > .prize span.typ {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: -5px 5px;
}

#pop_daily_prize .boxes > .prize span.typ i {
    position: relative;
    margin: auto;
    width: 100%;
    height: 100%;
    display: block;
}

#pop_daily_prize.sp .boxes > .prize span.num {
    font-size: 18px;
    line-height: 19px;
}

#pop_daily_prize.sp .boxes > .prize span.typ {
    display: inline-block;
    height: 23px;
    position: relative;
    vertical-align: middle;
    width: 60px;
}

#pop_daily_prize .boxes > .prize .sup_txt {
    position: absolute;
    bottom: 100%;
    left: 0;
    direction: ltr;
    font: 14px/21px 'Tahoma';
    color: #000;
    margin-bottom: 3px;
    height: 25px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

#pop_daily_prize .boxes > .prize .sup_txt span[r] {
    font: 14px/27px 'Tahoma';
    margin: 0 5px 0 0;
    display: inline-block;
    vertical-align: baseline;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 30px;
    height: 27px;
    color: #fff;
}

#pop_daily_prize .boxes > .prize .sup_txt span[r='diamonds'] {
    padding-left: 35px;
    background-image: url('/public/__Global/Files/image/reward/img_10.png');
}

#pop_daily_prize .boxes > .prize .sup_txt span[r='money'] {
    background-image: url('/public/__Global/Files/image/reward/img_11.png');
}

#pop_daily_prize .boxes > .prize .sup_txt span[r='score'] {
    background-image: url('/public/__Global/Files/image/reward/img_12.png');
}

#pop_daily_prize .boxes > .prize .sp[r] {
    bottom: -7px;
    height: 87px;
    left: 50%;
    margin-left: -45px;
    position: absolute;
    width: 117px;
}

#pop_daily_prize .boxes > .prize .sp[r='diamonds'] {
    background: url('/public/__Global/Files/image/reward/img_13.png') no-repeat center;
}

#pop_daily_prize .boxes > .prize .sp[r='money'] {
    background: url('/public/__Global/Files/image/reward/img_14.png') no-repeat center;
}

.textbox {
    position: relative;
    display: block;
    direction: rtl;
    margin: 2% 5%;
    padding: 5px;
    color: #181818;
    text-align: justify;
}

h1.textbox {
    font-size: 30px;
    font-family: 'titr';
}

p.textbox {
    font-size: 14px;
    font-family: 'sans';
}

i[role="intext"] {
    position: relative !important;
    margin: -5px 5px !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
}


.back_fix {
    display: block;
    margin: auto;
    clear: both;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.back_fix img {
    position: absolute;
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    touch-callout: none;
    -moz-touch-callout: none;
    -o-touch-callout: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    -ms-pointer-events: none;
    -moz-pointer-events: none;
    -webkit-pointer-events: none;
    user-drag: none;
}


.selection {
    position: fixed;
    margin: 0px auto;
    clear: both;
    width: 100vW;
    height: 100vH;
    overflow: hidden;
    z-index: 0;
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

.logo_loading {
    position: relative;
    display: block;
    margin: 2% auto;
    padding: 15px;
    clear: both;
    text-align: center;
    justify-content: center;
}

.logo_loading img {
    display: block;
    clear: both;
    margin: auto;
    position: relative;
    max-width: 100vW;
    max-height: 100vH;
    width: 180px;
    height: auto;
    border-radius: 25%;
}

.progs_loading {
    position: relative;
    clear: both;
    margin: 5% auto 15px auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    height: 12px;
    background: #ececec;
    border-radius: 25px;
    border: 2px solid #121111;
    direction: rtl;
    overflow: hidden;
}

.progs_loading span {
    position: absolute;
    display: block;
    height: 100%;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    background: #cd2004;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.num_load {
    position: relative;
    clear: both;
    margin: 10px auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    direction: rtl;
    text-align: center;
    font-family: 'per_add';
    font-size: 17px;
    font-weight: bold;
    color: snow;
}


.set_text {
    position: relative;
    clear: both;
    margin: 30px auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    direction: rtl;
    text-align: center;
    font-family: 'titr';
    font-size: 17px;
    font-weight: bold;
    color: snow;
}

.set_text h1 {
    font-size: 40px;
    color: snow;
    font-weight: 900;
}

.set_text h3 {
    font-size: 25px;
    margin: 20px;
    color: snow;
    font-weight: 100;
}

.infoter[rol='game'] {
    margin: 1% !important;
    padding: 0% 0%;
}


.teacher_box {
    position: relative;
    margin: 120px 15px 20px 15px;
    background: #E5E5E5;
    border-radius: 20px;
    display: block;
    padding-top: 65px;
}

.teacher_box img {
    border-radius: 26px;
    background: #f8f8f8;
    width: 120px;
    height: 120px;
    position: absolute;
    z-index: 2;
    top: -60px;
    right: 0;
    left: 0;
    display: block;
}

.teacher_box h1 {
    position: relative;
    font-family: 'Kalame';
    font-style: normal;
    font-weight: 700;
    font-size: 23px;
    line-height: 39px;
    text-align: right;
    color: var(--box-color);
    display: block;
    margin: 10px 20px;
}

.teacher_box span {
    position: relative;
    font-family: 'Kalame';
    font-style: normal;
    font-weight: 600;
    font-size: 19px;
    line-height: 15px;
    color: var(--box-color);
    display: block;
    margin: 10px 50px;
    text-align: right;
}

.teacher_box span b {
    position: relative;
    font-family: 'Kalame';
    font-style: normal;
    font-weight: 700;
    font-size: 19px;
    line-height: 15px;
    color: var(--green-color);
    display: inline-block;
    text-align: left;
    width: 55%;
}

.teacher_box p {
    position: relative;
    font-family: 'sans';
    font-size: 16px;
    line-height: 30px;
    color: #181818;
    display: block;
    margin: 50px 30px 15px 30px;
    text-align: justify;
}

.box_bod {
    position: relative;
    margin: 10% auto;
    display: block;
    width: min(110px, 30vW);
    height: min(110px, 30vW);
    background: rgb(251 251 251 / 90%);
    box-shadow: 0px 0px 15px rgb(16 90 255 / 26%);
    border: 4px dashed #073af1db;
    cursor: pointer;
    border-radius: 50%;
    transition-timing-function: cubic-bezier(0.6, 4, 0.3, 0.8);
    animation: gelatine 1.2s 1;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.box_bod:hover,
.box_bod:focus,
.box_bod:active,
.box_bod:visited {
    transition-timing-function: cubic-bezier(0.6, 4, 0.3, 0.8);
    animation: gelatine 0.5s 1;
}

.box_bod i {
    width: 65%;
    height: 65%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.box_bod:nth-child(1), .box_bod:nth-child(3) {
    right: 30vW;
}

.box_bod:nth-child(2) {
    left: 30vW;
}

.box_bod i svg * {
    fill: #176395;
    stroke: #101aff;
}

.box_bod:nth-child(1) i svg * {
    fill: #292b2d;
    stroke: #151313;
}

.box_bod:nth-child(2) i svg * {
    fill: #bc143d;
    stroke: #950606;
}

.box_bod:nth-child(3) i svg * {
    fill: #2584e8;
    stroke: #013a6c;
}


.box_bod span {
    position: absolute;
    display: block;
    padding: 15px 20px;
    margin: auto;
    font-size: 18px;
    font-family: 'titr';
    font-weight: 700;
    border-radius: 15px;
    outline: none;
    text-decoration: none;
    color: #f8f8f8;
    background: rgb(0 53 171 / 90%);
    box-shadow: 0 6px 30px rgb(0 0 0 / 23%);
    border: 4px dashed #f8f8f8;
    cursor: pointer;
    width: min(160px, 30vW);
    text-align: center;
    height: 23px;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.box_bod:nth-child(1) span, .box_bod:nth-child(3) span {
    left: calc(min(110px, 30vW) + 30%);
    top: 0;
    bottom: 0;
}

.box_bod:nth-child(2) span {
    right: calc(min(110px, 30vW) + 30%);
    top: 0;
    bottom: 0;
}


.owl-item {
    -webkit-tap-highlight-color: transparent;
    position: relative
}

.owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    -moz-backface-visibility: hidden
}

.owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0
}

.owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    width: 100% !important;
}

.owl-item, .owl-wrapper {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0)
}

.owl-item {
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-touch-callout: none
}

.owl-item img {
    display: block;
    margin: 0 auto;
}

.owl-nav.disabled {
    display: none
}

.owl-dots {
    position: absolute;
    margin: auto;
    display: block;
    right: 0;
    left: 0;
    bottom: 0px;
    text-align: center;
    justify-content: center;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.owl-dot {
    position: relative;
    margin: auto;
    display: inline-block;
    right: 0;
    left: 0;
    text-align: center;
    padding: 0px;
    justify-content: center;
}

.owl-dot span {
    margin: 5px;
    position: relative;
    display: block;
    width: 10vW;
    height: 1.2vH;
    background: rgb(22 60 201 / 76%);
    border-radius: 1.2vH;
}

.owl-dot.active span {
    background: #ffffff;
}

.no-js, .owl-loaded {
    visibility: visible;
    opacity: 1;
}

.owl-dot, .owl-nav .owl-next, .owl-nav .owl-prev {
    cursor: pointer;
    cursor: hand;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.owl-loading {
    opacity: 0;
    display: block
}

.owl-hidden {
    opacity: 0
}

.owl-refresh .owl-item {
    visibility: hidden
}

.owl-drag .owl-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-grab {
    cursor: move;
    cursor: grab;
}

.owl-rtl {
    direction: rtl;
}

.owl-rtl .owl-item {
    float: right;
    min-width: 130px;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.owl-animated-in {
    z-index: 0
}

.owl-animated-out {
    z-index: 1
}

.fadeOut {
    animation-name: fadeOut
}

@keyframes fadeOut {
    0% {
        opacity: 1
    }
    100% {
        opacity: 0
    }
}

.owl-height {
    transition: height .5s ease-in-out
}

.owl-item .owl-lazy {
    opacity: 0;
    transition: opacity .4s ease
}

.owl-item img.owl-lazy {
    transform-style: preserve-3d
}

.owl-video-wrapper {
    position: relative;
    height: 100%;
    background: #000
}

.owl-video-play-icon {
    position: absolute;
    height: 80px;
    width: 80px;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    background: no-repeat;
    cursor: pointer;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    transition: transform .1s ease;
}

.owl-video-play-icon:hover {
    -ms-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3)
}

.owl-video-playing .owl-video-play-icon, .owl-video-playing .owl-video-tn {
    display: none
}

.owl-video-tn {
    opacity: 0;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity .4s ease;
}

.owl-video-frame {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%
}

.owl-buttons.disabled {
    display: none !important;
}

.owl-item .owl-lazy {
    opacity: 1
}

.grid {
    display: grid;
    margin: auto;
    position: relative;
    height: auto;
    grid-template-columns: auto;
}

.grid lable {
    position: relative;
    display: block;
    overflow: hidden;
    width: calc(100% - 20px - 4%);
    min-height: calc(100% - 20px - 10%);
    height: auto !important;
    min-width: unset !important;
    background: transparent;
    margin: 10px 10px;
    border-radius: 20px;
    border: transparent;
    cursor: pointer;
    z-index: 5;
    padding: 5% 2%;
}

.grid lable .box_bod {
    right: 0px !important;
    left: 0px !important;
}

.grid lable .box_bod {
    right: 0px !important;
    left: 0px !important;
    width: 60vW !important;
    height: 60vW !important;
    background: rgb(6 6 6 / 10%) !important;
    box-shadow: inset 0px 0px 15px rgb(201 201 201 / 50%), inset 0px 0px 30vW rgb(223 223 223 / 50%) !important;
    margin: 10% auto 65% auto;
}

.grid lable .box_bod span {
    right: 0 !important;
    top: unset !important;
    bottom: -50% !important;
    background: rgb(22 86 181 / 82%) !important;
    box-shadow: 0px 0px 5px rgb(185 185 185 / 50%), inset 0px 0px 30vW rgb(63 63 63 / 50%) !important;
    text-shadow: 0px 0px 1px #f8f8f8 !important;
    width: calc(100% - 40px) !important;
    font-size: 22px !important;
    height: auto !important;
}

.grid lable .box_bod h3 {
    position: absolute;
    margin: auto;
    display: block;
    font-size: 11px;
    color: hsl(0deg 0% 91.49% / 56%);
    font-family: 'naz_500';
    width: 100%;
    text-align: center;
    right: 0;
    left: 0;
    bottom: -35px;
    text-shadow: 0px 0px 1px #858585 !important;
}

.gride {
    position: relative;
    margin: 70px auto 50px auto;
    display: grid;
    grid-template-columns: 50% 50%;
    clear: both;
    text-align: center;
    justify-content: center;
}

.gride span {
    position: relative;
    margin: auto;
    text-align: center;
    justify-content: center;
    display: block;
    width: 100%;
    height: 100%;
}

.gride span i {
    color: #4c266f;
    font-size: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    display: block;
    position: relative !important;
    margin: 10% auto 5% auto !important;
    text-shadow: 0px 0px 2px #f8f8f8;
    cursor: pointer;
}

.gride span h3 {
    position: relative;
    margin: 10% auto 2% auto;
    color: #f8f8f8;
    font-family: 'kalame_b';
    font-size: 18px;
    text-align: center;
    text-shadow: 0px 0px 5px #784ba0;
}

form i input[type="radio"] + span {
    box-shadow: unset;
    position: relative !important;
    display: inline-block;
    text-indent: 0px;
    background: transparent;
    border: 2px solid #000000;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    cursor: pointer;
    top: 2px;
    right: -1px;
    margin: 0px 5px;
    -webkit-transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    transition: all 0.3s cubic-bezier(1, 0.1, 0, 0.9);
    filter: contrast(0);
    -webkit-filter: contrast(0);
    -moz-filter: contrast(0);
}


.grid lable .box_bod i svg, .grid lable .box_bod i svg * {
    fill: #032fc182;
    stroke: #ffffff;
    stroke-width: 4px;
}

.paszamin {
    position: fixed;
    z-index: -1;
    margin: auto;
    display: block;
    overflow: hidden;
    width: 100vW;
    height: 100vH;
    background: #5f5f5f url(/public/files/icons/headbg5.png) repeat;
}

.paszamin moon {
    position: absolute;
    margin: auto;
    width: max(63vW, 31.5vH);
    height: max(63vW, 31.5vH);
    display: block;
    top: -40%;
    bottom: 0;
    right: 0;
    left: 0;
    box-shadow: 0px 0px 30vW #87878794;
    z-index: 1;
    border-radius: 50%;
    stroke: #995e4dcf;
}

.paszamin moon svg {
    position: relative;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0px 0px 5vW #733c01) drop-shadow(0px 0px 10vW #ffd360) drop-shadow(0px 0px 20vW #bdbdbd);
    border-radius: 50%;
    border: 1px solid rgba(115, 40, 1, 0.6);
    z-index: 1;
}

.paszamin svg.waves {
    position: absolute;
    width: 130%;
    height: 35%;
    margin: auto;
    min-height: 10%;
    max-height: 100%;
    min-width: 100%;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -1;
    background: transparent;
}

svg.waves * {
    background: transparent;
}

hookah {
    position: fixed;
    z-index: 3;
    width: calc(1080px / 15);
    height: calc(1920px / 15);
    margin: auto;
    display: block;
    opacity: 1;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

hookah i {
    width: 100%;
    height: 100%;
    font-size: 100px;
}

hookah[rol="1"] {
    bottom: 2px;
    right: unset;
    left: 5%;
}

hookah[rol="2"] {
    top: 2px;
    right: 0;
    left: 0;
}

hookah[rol="3"] {
    top: 0;
    right: 2px;
    bottom: 0;
}

hookah[rol="4"] {
    top: 0;
    left: 2px;
    bottom: 0;
}

hookah[rol="0"] {
    width: 0px;
    height: 0px;
    opacity: 0;
}


.show-all {
    position: absolute;
    margin: auto;
    display: block;
    z-index: 3;
    text-align: center;
    justify-content: center;
    padding: 10px;
    font-family: 'per_add';
    font-size: 18px;
    color: #f8f8f8;
    border-radius: 50%;
    overflow: hidden;
}

.show-all[role="1"] {
    left: 0;
    bottom: 2%;
    right: 0;
    width: 70%;
    height: max(5vW, 5vH);
}

.show-all[role="2"] {
    left: -22%;
    top: 28.5%;
    width: 70%;
    height: max(5vW, 5vH);
    transform: rotate(90deg);
}

.show-all[role="1"] svg {
    right: 0;
    width: 85%;
    height: auto;
    position: absolute;
    display: block;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
}

.show-all[role="2"] svg {
    right: 0;
    width: 35%;
    height: auto;
    position: absolute;
    display: block;
    margin: auto;
    top: -100%;
    bottom: 0;
    left: -45%;
    transform: rotate(90deg);
}

.this_get[role="1"] {
    position: absolute;
    width: 40px;
    height: 60vW;
    z-index: 3;
    display: grid;
    grid-template-rows: calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7);
    text-align: center;
    margin: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    bottom: 2%;
    right: 2%;
    opacity: 0.8;
    zoom: 0.8;
    direction: rtl;
    transform: rotate(180deg);
}

.this_get[role="1"] i {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.this_get[role="2"] {
    position: absolute;
    height: 60vW;
    z-index: 3;
    display: grid;
    grid-template-rows: calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7);
    text-align: center;
    margin: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    top: 25%;
    left: 3%;
    width: 40px;
    opacity: 0.8;
    zoom: 0.8;
}

.this_get i {
    position: relative !important;
    margin: 2%;
    display: block;
    width: 25px;
    max-width: 95%;
    max-height: 95%;
    z-index: 1;
}

svg .player {
    fill: #5d5d5d;
    stroke: #181818;
    stroke-width: 2px;
    transition: fill 0.5s;
}

svg .active {
    fill: var(--green-color);
    stroke: #011101;
    stroke-width: 3px;
}


.text_news, .setrhokm {
    position: absolute;
    margin: auto;
    display: block;
    color: #f8f8f8;
    text-shadow: 0px 0px 2px #e1e1e1;
    background: #181818c2;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    font-family: 'sans';
    width: calc(100% - 10px);
    height: auto;
    top: 35%;
    max-height: 30%;
    z-index: 10;
    direction: rtl;
}

.setrhokm {
    z-index: 11;
    display: none;
    background: rgba(18, 0, 34, 0.9);
    padding: 30px 15px;
    -moz-transition: all 0.75s ease;
    -webkit-transition: all 0.75s ease;
    transition: all 0.75s ease;
}

.setrhokm h1 b#numsec {
    color: var(--red-color);
}

.hokm_nema {
    position: absolute;
    margin: auto;
    width: min(80px, max(4vW, 8vH));
    height: min(80px, max(4vW, 8vH));
    z-index: 10;
    bottom: 30%;
    right: 7.5%;
    overflow: hidden;
    border: 1px solid #181818;
    border-radius: 15px;
    box-shadow: 0px 0px 1px rgb(248 248 248 / 50%);
    background: url('/public/__Global/Files/image/cart/backpass.jpg?v=hokm-backpass-20261106-1') center center no-repeat;
    background-size: 150%;
}

.hokm_nema[role="1"] {
    background: url('/public/__Global/Files/image/passor/1.png') center center no-repeat;
    background-size: 150%;
}

.hokm_nema[role="2"] {
    background: url('/public/__Global/Files/image/passor/14.png') center center no-repeat;
    background-size: 150%;
}

.hokm_nema[role="3"] {
    background: url('/public/__Global/Files/image/passor/27.png') center center no-repeat;
    background-size: 150%;
}

.hokm_nema[role="4"] {
    background: url('/public/__Global/Files/image/passor/40.png') center center no-repeat;
    background-size: 150%;
}


/*.setrhokm {*/
/*    position: absolute;*/
/*    margin: auto;*/
/*    display: none;*/
/*    color: #f8f8f8;*/
/*    background: #9d9d9d url('/public/files/icons/headbg5.png');*/
/*    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
/*    text-align: center;*/
/*    font-size: 16px;*/
/*    font-family: 'sans';*/
/*    width: calc(100% - 0px);*/
/*    height: auto;*/
/*    bottom: 0%;*/
/*    right: 0;*/
/*    left: 0;*/
/*    max-height: 45%;*/
/*    z-index: 12;*/
/*    direction: rtl;*/
/*}*/

.setrhokm .list_card_seth {
    position: relative;
    margin: 5% auto;
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    justify-content: center;
    text-align: center;
    width: 90%;
}

.setrhokm .list_dast_seth {
    position: relative;
    margin: 5% auto;
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.setrhokm .list_card_seth label, .setrhokm .list_dast_seth label {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
    margin: auto;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    cursor: pointer;
}

.setrhokm .list_card_seth label i, .setrhokm .list_dast_seth label i {
    width: 40px;
    height: 40px;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

.setrhokm .list_card_seth label i img {
    padding: 5px;
    border: 1px solid #cdaaeb;
    box-shadow: 2px 2px 1px #cdaaeb;
    border-radius: 15px;
    background: #ffffff;
}


.setrhokm h1 {
    position: relative;
    text-align: center;
    margin: 8px auto;
    padding: 5px;
    display: block;
}

i.nobatu {
    z-index: 7;
    opacity: 0.8;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 20vW;
    height: 20vW;
}


.dat_show {
    display: grid;
    margin: 10px auto;
    width: 90vW;
    max-width: 100%;
    position: relative;
    z-index: 1;
    background: #181818;
    padding: 20px 10px;
    border-radius: 10px;
    grid-template-columns: 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6% 7.6%;
    justify-content: center;
    text-align: center;
}

.hokm_show {
    display: grid;
    margin: 10px auto;
    width: 90vW;
    max-width: 100%;
    position: relative;
    z-index: 2;
    background: var(--box-color);
    padding: 20px 10px;
    border-radius: 10px;
    grid-template-columns: 25% 25% 25% 25%;
    justify-content: center;
    text-align: center;
}

.dat_show span, .hokm_show span {
    display: block;
    margin: auto;
    padding: 1%;
    width: 100%;
    height: auto;
    position: relative;
    justify-content: center;
    text-align: center;
}

.dat_show span img, .hokm_show span img {
    display: block;
    margin: auto;
    width: 100%;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}

.hokm_show span img {
    width: 90%;
    justify-content: center;
    filter: brightness(0.2) drop-shadow(0px 0px 5px var(--red-color));
}

.hokm_show span:hover img, .hokm_show span:focus img, .hokm_show span:active img {
    filter: brightness(1) drop-shadow(0px 0px 5px var(--green-color));
}

div#container {
    position: absolute;
    margin: auto;
    display: block;
    width: 27vW;
    height: 27vW;
    z-index: 2;
    top: 10px;
    right: 0;
    left: 0;
    padding: 1%;
    border-radius: 15px;
    overflow: hidden;
}

div#container p#countdown {
    position: absolute;
    margin: auto;
    width: 100%;
    font-size: 15px;
    text-align: center;
    justify-content: center;
    font-family: 'kalame_b';
    top: 0;
    z-index: 5;
    direction: rtl;
}

div#container canvas#timer {
    position: absolute;
    margin: auto;
    clear: both;
    z-index: 2;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    display: block;
}

.user_yar {
    position: absolute;
    background: rgb(24 24 24 / 63%);
    width: 20vW;
    height: auto;
    border-radius: 15px;
    display: block;
    top: 2%;
    right: 15%;
    z-index: 3;
}

.user_yar span, .user_harif span {
    position: relative;
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.user_yar span img, .user_harif span img {
    position: relative;
    margin: 10%;
    max-width: 80%;
    max-height: 80%;
    border-radius: 50%;
}

.user_yar span h1, .user_harif span h1 {
    position: relative;
    margin: 5px auto;
    padding: 5px;
    text-align: center;
    color: #f8f8f8;
    font-family: 'kalame';
    font-size: 12px;
}

.user_harif {
    position: absolute;
    background: rgba(48, 4, 4, 0.6);
    z-index: 2;
    width: 20vW;
    height: auto;
    border-radius: 15px;
    display: block;
    zoom: 0.8;
}

.user_harif[role="1"] {
    top: 35%;
    right: 5%;
}

.user_harif[role="2"] {
    bottom: 35%;
    left: 5%;
}

.user_yar i, .user_harif i {
    z-index: 10;
    width: 12vW;
    height: 12vW;
    top: -10%;
    left: 0px;
    right: 0;
    bottom: 0px;
    filter: drop-shadow(0px 0px 6px gold);
    cursor: url('/public/__Global/Files/cursor/Cursor.png'), default;
}

.text_titr {
    display: block;
    margin: 10px auto;
    width: 90vW;
    max-width: 100%;
    position: relative;
    z-index: 1;
    background: #181818;
    padding: 20px 10px;
    border-radius: 10px;
}

.text_titr h3 {
    position: relative;
    font-size: 12px;
    font-family: 'sans';
    text-align: right;
    direction: rtl;
    color: rgb(152 10 10 / 80%);
    display: block;
}

.text_titr h1 {
    margin: 2% auto;
    position: relative;
    font-size: 16px;
    font-family: 'sans_b';
    text-align: right;
    direction: rtl;
    color: #f8f8f8;
    display: block;
}

.user_list .user_info_r b {
    display: block;
    position: relative;
    margin: auto;
    width: calc(100% - 4%);
    padding: 5% 2%;
    text-align: center;
    height: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #181818;
    font-size: max(1.2vW, 16px);
    color: #f8f8f8;
    font-family: 'titr';
    cursor: pointer;
}

span.lin_text {
    display: block;
    margin: 2% auto;
    clear: both;
    width: 1280px;
    max-width: calc(95% - 55px - 5px);
    direction: rtl;
    padding: 10px 55px 10px 5px;
    font-size: 15px;
    font-family: 'sans_b';
    color: #f8f8f8;
    position: relative;
    text-align: right;
}

.titler[role="2"] span.lin_text {
    margin: 3% auto;
    max-width: calc(95% - 60px - 5px);
    padding: 10px 60px 20px 5px;
    border-bottom: 1px solid rgb(156 156 156 / 20%);
}


span.lin_text i {
    font-size: 35px;
    width: 35px;
    height: 35px;
    right: 10px;
    top: 0;
    bottom: 0;
    color: #f8f8f8;
}

.menu_list .geme_base span, .chat_list .geme_chat span {
    position: absolute;
    background: #181818;
    width: 100%;
    text-align: center;
    justify-content: center;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 5% 1%;
    direction: ltr;
    font-family: 'per_add';
    font-size: max(1.2vW, 16px);
    color: gold;
    overflow: hidden;
}

i svg, i img {
    width: 100%;
    height: 100%;
    display: block;
    clear: both;
    cursor: pointer;
    position: relative;
}

.icon {
    position: absolute;
    margin: auto;
    display: block;
    color: var(--box-color);
}

.titler {
    position: relative;
    display: block;
    margin: 1% 3% 3% 3%;
    clear: both;
    border-radius: 15px;
    padding: 0vH 0vW;
    background: #f8f8f8;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.titler d {
    position: absolute;
    z-index: 10;
    background: #1b5a9b;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #104479;
    width: 40px;
    height: 40px;
    border-radius: 0px 0px 7px 7px;
    top: -4px;
    right: 10%;
    cursor: pointer;
    text-align: center;
}

.titler d i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #c9c9c9;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}

img.text_img {
    position: relative !important;
    display: inline-block !important;
    margin: auto 5px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0px 0px 10px gold !important;
    clear: unset !important;
    filter: unset !important;
}

.titler[role="2"] img.text_img {
    width: 20px !important;
    height: 20px !important;
    border-radius: unset !important;
    box-shadow: unset !important;
}

progres {
    position: relative;
    display: block;
    margin: 2% auto 5% auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgb(18 19 18 / 72%);
    width: 90%;
    height: 10px;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

progres prog {
    position: absolute;
    margin: auto;
    height: 100%;
    background: var(--green-color);
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    -moz-transition: all 0.75s ease;
    -webkit-transition: all 0.75s ease;
    transition: all 0.75s ease;
}

span.lin_text i b#numer {
    position: absolute;
    margin: auto;
    font-family: 'naz_900';
    font-size: 19px;
    width: 35px;
    height: 25px;
    color: var(--green-color);
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    text-shadow: 0px 0px 2px #181818;
    z-index: 1;
}


.sticker {
    position: fixed;
    margin: auto;
    display: block;
    width: 120px;
    height: 160px;
    padding: 10px;
    background: #f8f8f8;
    z-index: 100;
    border-radius: 12px;
    top: 5%;
    right: 0;
    left: 0;
    overflow: hidden;
}

.sticker img {
    position: relative;
    margin: 5px;
    width: calc(100% - 10px);
    height: auto;
    max-height: calc(75% - 10px);
}

.sticker h3 {
    position: absolute;
    margin: 5px auto;
    font-family: 'sans_b';
    font-size: 12px;
    color: var(--red-color);
    top: 5px;
    left: 5px;
    z-index: 5;
    width: calc(100% - 10px);
    display: block;
}

.sticker h1 {
    position: relative;
    text-align: center;
    margin: 5px auto;
    font-family: 'sans';
    font-size: 15px;
    color: #181818;
    z-index: 1;
    display: block;
}

#deadline {
    width: 90vW;
    max-width: 100%;
    position: relative;
    z-index: 1;
    background: #181818;
    padding: 20px 10px;
    border-radius: 10px;
}

#deadline svg {
    width: 100%;
}

#progress-time-fill {
    animation-name: progress-fill;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Death */
#death-group {
    animation-name: walk;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    transform: translateX(0);
}

#death-arm {
    animation: move-arm 3s ease infinite;
    /* transform-origin: left center; */
    transform-origin: -60px 74px;
}

#death-tool {
    animation: move-tool 3s ease infinite;
    transform-origin: -48px center;
}

/* Designer */

#designer-arm-grop {
    animation: write 1.5s ease infinite;
    transform: translate(0, 0) rotate(0deg) scale(1, 1);
    transform-origin: 90% top;
}

.deadline-days {
    color: #fff;
    text-align: center;
    width: 165px;
    margin: 0 auto;
    position: relative;
    height: 20px;
    font-family: "Oswald", sans-serif;
}

.deadline-days .inner {
    width: 165px;
    position: relative;
    top: 0;
    left: 0;
}

.mask-red,
.mask-white {
    position: absolute;
    top: 0;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.mask-red {
    left: 0;
    width: 0;
    color: #be002a;
    animation: text-red 30s ease infinite;
    z-index: 2;
    background: #181818;
}

.mask-white {
    right: 0;
}

/* Flames */

#red-flame {
    opacity: 0;
    animation: show-flames 30s ease infinite, red-flame 120ms ease infinite;
    transform-origin: center bottom;
}

#yellow-flame {
    opacity: 0;
    animation: show-flames 30s ease infinite, yellow-flame 120ms ease infinite;
    transform-origin: center bottom;
}

#white-flame {
    opacity: 0;
    animation: show-flames 30s ease infinite, red-flame 100ms ease infinite;
    transform-origin: center bottom;
}

@keyframes progress-fill {
    0% {
        x: -100%;
    }

    100% {
        x: -3%;
    }
}

@keyframes walk {
    0% {
        transform: translateX(0);
    }
    6% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(100px);
    }
    15% {
        transform: translateX(140px);
    }

    25% {
        transform: translateX(170px);
    }

    35% {
        transform: translateX(220px);
    }

    45% {
        transform: translateX(280px);
    }

    55% {
        transform: translateX(340px);
    }

    65% {
        transform: translateX(370px);
    }

    75% {
        transform: translateX(430px);
    }

    85% {
        transform: translateX(460px);
    }

    100% {
        transform: translateX(520px);
    }
}

@keyframes move-arm {
    0% {
        transform: rotate(0);
    }

    5% {
        transform: rotate(0);
    }

    9% {
        transform: rotate(40deg);
    }

    80% {
        transform: rotate(0);
    }
}

@keyframes move-tool {
    0% {
        transform: rotate(0);
    }

    5% {
        transform: rotate(0);
    }

    9% {
        transform: rotate(50deg);
    }

    80% {
        transform: rotate(0);
    }
}

/* Design animations */

@keyframes write {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1, 1);
    }

    16% {
        transform: translate(0px, 0px) rotate(5deg) scale(0.8, 1);
    }

    32% {
        transform: translate(0px, 0px) rotate(0deg) scale(1, 1);
    }

    48% {
        transform: translate(0px, 0px) rotate(6deg) scale(0.8, 1);
    }

    65% {
        transform: translate(0px, 0px) rotate(0deg) scale(1, 1);
    }

    83% {
        transform: translate(0px, 0px) rotate(4deg) scale(0.8, 1);
    }
}

@keyframes text-red {
    0% {
        width: 0%;
    }

    100% {
        width: 98%;
    }
}

/* Flames */

@keyframes show-flames {
    0% {
        transform: translateY(0);
    }
    74% {
        transform: translateY(0);
    }
    80% {
        transform: translateY(-30px);
    }
    97% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes show-flames {
    0% {
        opacity: 0;
    }
    74% {
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes red-flame {
    0% {
        transform: translateY(-30px) scale(1, 1);
    }

    25% {
        transform: translateY(-30px) scale(1.1, 1.1);
    }

    75% {
        transform: translateY(-30px) scale(0.8, 0.7);
    }

    100% {
        transform: translateY(-30px) scale(1, 1);
    }
}

@keyframes yellow-flame {
    0% {
        transform: translateY(-30px) scale(0.8, 0.7);
    }

    50% {
        transform: translateY(-30px) scale(1.1, 1.2);
    }

    100% {
        transform: translateY(-30px) scale(1, 1);
    }
}

.popup_box object.box_show_link .show_responsive .titler {
    background: transparent !important;
}

.popup_box object.box_show_link .show_responsive {
    z-index: 0;
}

.popup_box object.box_show_link .show_responsive .circles {
    z-index: -1;
}

level {
    position: absolute;
    margin: auto;
    display: block;
    width: max(150px, min(15vH, 15vW));
    height: max(25px, min(5vH, 5vW));
    z-index: 1;
    bottom: -40%;
    left: -1.5%;
}

level svg {
    position: absolute;
    margin: auto;
    display: block;
    width: 40px;
    height: 40px;
    top: 0;
    bottom: 0;
    left: -15px;
    filter: drop-shadow(0px 0px 5px #d9980087);
    z-index: 5;
}

level .levelprogres {
    position: relative;
    margin: auto;
    display: block;
    border: 3px solid #2b3251;
    border-radius: 15px;
    width: 100%;
    height: 60%;
    top: 10%;
    z-index: 0;
    overflow: hidden;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background: #2b3251d9;
}

level .levelprogres span {
    position: absolute;
    display: block;
    margin: auto 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 0%;
    overflow: hidden;
    left: 0;
    background: linear-gradient(90deg, #797144 0%, #efe8a9 50%, #c98406 100%);
    border-radius: 5px;
    box-shadow: inset 0px 0px 10px rgb(203 186 95 / 50%);
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

level .levelprogres h2 {
    position: relative;
    margin: auto;
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-family: naz_500;
    direction: ltr;
    color: #2b3251;
}

.this_get i span {
    position: absolute;
    margin: auto;
    display: block;
    color: #f8f8f8;
    text-shadow: 0px 0px 3px #181818;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    font-family: 'naz_500';
    font-size: 25px;
    text-align: center;
    justify-content: center;
}


@media only screen and (max-width: 800px) {

    section.menulog .content .grid[role="2"] {
        grid-template-columns: 100%;
        overflow-y: auto;
        direction: rtl;
    }

    section.menulog .swiper {
        text-align: center;
    }

    section.menulog .overlay h2 {
        bottom: 0%
    }

    section.menulog .infoe p {
        font-size: max(12px, 4vW);
    }

    @media only screen and (max-width: 700px) {


        @media only screen and (max-width: 400px) {


        }
    }
}

@media only screen and (min-width: 800px) {

}

* {
    cursor: url('/public/__Global/Files/cursor/Cursor.png'), default;
}

/* Hokmland game-shell refresh: responsive game lobby, account panels, shop and splash */
:root {
    --hk-ink: #eff7f4;
    --hk-muted: #a9beb8;
    --hk-felt: #0c3e35;
    --hk-felt2: #071e1d;
    --hk-gold: #f3cc79;
    --hk-mint: #6bf0c0;
    --hk-violet: #ab83ff;
    --hk-glass: rgba(11, 25, 30, .78);
    --hk-line: rgba(221, 194, 126, .28);
    --hk-shadow: 0 18px 54px rgba(0, 0, 0, .38)
}

body {
    color: var(--hk-ink);
    background: radial-gradient(ellipse at 48% 0%, #184b3d 0, #101923 42%, #100d1b 100%);
    background-attachment: fixed
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 12% 70%, rgba(103, 55, 140, .18), transparent 35%), radial-gradient(circle at 88% 24%, rgba(56, 180, 145, .12), transparent 30%)
}

.hk-page-head, .hk-home-hero, .hk-auth-shell, .hk-shop-head {
    position: relative;
    overflow: hidden;
    color: var(--hk-ink);
    border: 1px solid var(--hk-line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(21, 63, 52, .94), rgba(13, 25, 34, .96) 60%, rgba(46, 29, 57, .92));
    box-shadow: var(--hk-shadow), inset 0 1px rgba(255, 255, 255, .08)
}

.hk-page-head:after, .hk-home-hero:after, .hk-auth-shell:after, .hk-shop-head:after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    left: -80px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 204, 121, .16), transparent 68%);
    pointer-events: none
}

.hk-page-head {
    margin: 12px auto 16px;
    padding: 20px clamp(16px, 4vw, 30px);
    max-width: 1100px;
    animation: hkRise .55s both
}

.hk-page-head h1, .hk-page-head h2 {
    margin: 0;
    color: #fff4d8;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 950
}

.hk-page-head p {
    margin: 7px 0 0;
    color: var(--hk-muted);
    line-height: 1.8;
    font-size: 13px
}

.hk-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hk-mint);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase
}

.hk-home-hero {
    width: min(1040px, calc(100% - 28px));
    margin: clamp(12px, 3vh, 30px) auto 14px;
    padding: clamp(22px, 5vw, 42px);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: hkRise .7s both
}

.hk-home-hero h1 {
    font-size: clamp(26px, 6vw, 46px);
    font-weight: 1000;
    line-height: 1.2;
    margin: 9px 0;
    color: #fff4d8;
    text-shadow: 0 5px 26px #0007
}

.hk-home-hero p {
    max-width: 580px;
    color: #c5d8d2;
    line-height: 1.9;
    margin: 0;
    font-size: 14px
}

.hk-home-hero .hk-hero-emblem {
    flex: 0 0 auto;
    width: clamp(74px, 16vw, 130px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 32px;
    color: var(--hk-gold);
    font-size: clamp(44px, 9vw, 76px);
    background: linear-gradient(145deg, #ffffff12, #02070a55);
    border: 1px solid #f3cc795c;
    box-shadow: inset 0 1px #fff3, 0 16px 35px #0006;
    transform: rotate(-7deg);
    animation: hkFloat 4s ease-in-out infinite
}

.hk-home-hero .hk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px
}

.hk-home-hero a, .hk-action, .hk-login-submit, .hk-ad-claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid #8bffdb70;
    border-radius: 14px;
    background: linear-gradient(110deg, #72f1bf, #5dd8e1);
    color: #08251f;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 9px 25px #36dba635;
    transition: transform .2s, filter .2s, box-shadow .2s
}

.hk-home-hero a:hover, .hk-action:hover, .hk-login-submit:hover, .hk-ad-claim:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 14px 30px #36dba655
}

.hk-home-stats, .infoter.hk-home-stats {
    width: min(1000px, calc(100% - 28px));
    margin: 14px auto 22px;
    padding: 12px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #fff;
    background: linear-gradient(110deg, rgba(10, 20, 27, .91), rgba(18, 35, 38, .88));
    border: 1px solid #e1c47c50;
    border-radius: 19px;
    box-shadow: 0 12px 34px #0005;
    backdrop-filter: blur(14px)
}

.hk-home-stats > i, .infoter.hk-home-stats > i {
    margin-inline-start: 8px
}

.hk-home-stats img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 2px 5px #0007)
}

.hk-home-stats level {
    display: grid;
    grid-template-columns:auto minmax(90px, 190px);
    align-items: center;
    gap: 8px;
    min-width: min(100%, 230px)
}

.hk-home-stats level > svg {
    width: 34px;
    height: 34px
}

.hk-home-stats .levelprogres {
    position: relative;
    height: 12px;
    border: 1px solid #d9bd7866;
    border-radius: 99px;
    background: #050b12;
    overflow: hidden
}

.hk-home-stats .levelprogres > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8c70ff, #60ecc2, #f5d276);
    box-shadow: 0 0 14px #69f0c277;
    transition: width .7s cubic-bezier(.2, .8, .2, 1)
}

.hk-home-stats .levelprogres h2 {
    position: absolute;
    inset: -8px 0 auto;
    margin: 0;
    font-size: 9px;
    text-align: center;
    text-shadow: 0 1px 3px #000
}

.hk-home-grid, .grid.hk-home-grid {
    width: min(1050px, calc(100% - 24px));
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 14px
}

.hk-home-grid lable {
    min-width: 0;
    display: block;
    animation: hkRise .6s both
}

.hk-home-grid lable:nth-child(2) {
    animation-delay: .06s
}

.hk-home-grid lable:nth-child(3) {
    animation-delay: .12s
}

.hk-home-grid lable:nth-child(4) {
    animation-delay: .18s
}

.hk-home-grid .box_bod {
    position: relative;
    min-height: 132px;
    height: 100%;
    padding: 20px 18px;
    display: grid;
    grid-template-columns:54px minmax(0, 1fr);
    grid-template-rows:auto 1fr;
    align-items: center;
    gap: 4px 14px;
    border: 1px solid rgba(211, 198, 160, .19);
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(21, 39, 45, .94), rgba(18, 18, 31, .94));
    box-shadow: 0 13px 30px #0004, inset 0 1px #ffffff0c;
    transition: transform .25s, border-color .25s, box-shadow .25s
}

.hk-home-grid .box_bod:hover {
    transform: translateY(-5px);
    border-color: #7df4cc77;
    box-shadow: 0 20px 42px #0006, 0 0 22px #59eabc18
}

.hk-home-grid .box_bod > i.icon {
    grid-column: 1;
    grid-row: 1/3;
    width: 52px;
    height: 52px;
    padding: 9px;
    border: 1px solid #f3cc7944;
    border-radius: 17px;
    background: linear-gradient(145deg, #f4ce7c21, #8c6bcb20);
    box-shadow: inset 0 1px #fff2
}

.hk-home-grid .box_bod > i.icon svg {
    width: 100%;
    height: 100%
}

.hk-home-grid .box_bod > span {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    color: #fff2cf;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer
}

.hk-home-grid .box_bod > h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 4px 0 0;
    color: #9fb5b2;
    font-size: 11px;
    line-height: 1.7;
    font-weight: 500;
    text-align: right
}

.hk-auth-shell {
    width: min(980px, calc(100% - 28px));
    margin: clamp(14px, 4vh, 38px) auto;
    padding: clamp(18px, 4vw, 34px);
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(260px, .78fr);
    gap: clamp(18px, 4vw, 40px);
    align-items: center;
    animation: hkRise .65s both
}

.hk-auth-copy h1 {
    margin: 10px 0;
    color: #fff0c9;
    font-size: clamp(23px, 4.8vw, 36px);
    font-weight: 1000
}

.hk-auth-copy p {
    color: #b4c8c2;
    line-height: 1.9;
    font-size: 13px
}

.hk-auth-points {
    display: grid;
    gap: 9px;
    margin: 16px 0
}

.hk-auth-points span {
    padding: 10px 12px;
    border: 1px solid #ffffff15;
    border-radius: 13px;
    background: #ffffff08;
    color: #d9e8e3;
    font-size: 12px
}

.hk-auth-points b {
    color: var(--hk-mint)
}

.hk-auth-telegram {
    display: inline-flex;
    margin-top: 8px;
    color: #9ddfff;
    text-decoration: none;
    font-weight: 800
}

.hk-auth-form-wrap {
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid #d4bd7b42;
    border-radius: 21px;
    background: rgba(4, 12, 18, .48);
    box-shadow: inset 0 1px #fff1
}

.hk-auth-form-wrap form#inlogin {
    display: grid;
    gap: 11px
}

.hk-auth-form-wrap form#inlogin label#start {
    position: relative;
    display: block;
    margin: 0;
    width: 100%
}

.hk-auth-form-wrap input:not([type=radio]):not([type=submit]) {
    width: 100%;
    height: 48px;
    padding: 0 45px 0 13px;
    border: 1px solid #ffffff20;
    border-radius: 13px;
    background: #07131acc;
    color: #fff;
    font: 600 15px system-ui;
    outline: none;
    transition: border-color .2s, box-shadow .2s
}

.hk-auth-form-wrap input:focus {
    border-color: #70efc1 !important;
    box-shadow: 0 0 0 3px #70efc122
}

.hk-auth-form-wrap #acters {
    cursor: pointer;
    text-align: right
}

.hk-auth-form-wrap input[type=submit], .hk-auth-form-wrap input.btn {
    width: 100%;
    height: 49px;
    margin-top: 3px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #72f1bf, #5dd8e1);
    color: #08251f;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 9px 24px #36dba635;
    transition: transform .2s, filter .2s
}

.hk-auth-form-wrap input[type=submit]:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

.hk-auth-form-wrap .inlog {
    margin: 4px 0;
    color: #a9bab7;
    text-align: center;
    font-size: 11px
}

.hk-auth-form-wrap .inlog b {
    color: #ffe09b;
    cursor: pointer
}

.hk-auth-form-wrap .icon img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain
}

.hk-shop-head {
    width: min(1100px, calc(100% - 26px));
    margin: 14px auto 18px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px
}

.hk-shop-head h1 {
    margin: 0;
    color: #ffefc5;
    font-size: clamp(20px, 4vw, 29px);
    font-weight: 950
}

.hk-shop-head p {
    margin: 6px 0 0;
    color: #a9bfba;
    font-size: 12px
}

.hk-wallet {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid #f3cc7960;
    border-radius: 16px;
    background: #040d13a8;
    white-space: nowrap
}

.hk-wallet img {
    width: 27px;
    height: 27px;
    object-fit: contain
}

.gridel.hk-market-grid {
    width: min(1100px, calc(100% - 26px));
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px
}

.hk-market-card {
    position: relative;
    min-width: 0;
    min-height: 220px;
    padding: 19px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #efcf7950;
    border-radius: 21px;
    background: linear-gradient(145deg, #142d2c, #101a28 65%, #261d31);
    box-shadow: 0 15px 38px #0005, inset 0 1px #fff2;
    cursor: pointer;
    overflow: hidden;
    transition: transform .24s, border-color .24s, box-shadow .24s;
    animation: hkRise .5s both
}

.hk-market-card:before {
    content: "";
    position: absolute;
    inset: -55% 35% auto;
    width: 120px;
    height: 180px;
    transform: rotate(38deg);
    background: linear-gradient(90deg, transparent, #ffffff0c, transparent);
    transition: left .5s
}

.hk-market-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: #8bffdb99;
    box-shadow: 0 22px 46px #0007, 0 0 25px #45d5b722
}

.hk-market-card .iconpack {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px #0008);
    margin-bottom: 8px
}

.hk-market-card h3 {
    margin: 5px 0;
    color: #f5dfaa;
    font-size: 15px;
    font-weight: 900
}

.hk-market-card h1 {
    margin: 7px 0;
    color: #9cf4d1;
    font-size: 17px;
    font-weight: 950
}

.hk-market-card .hk-pack-sub {
    color: #9aafac;
    font-size: 11px
}

.hk-market-card .hk-pack-cta {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #f2ce7b;
    color: #2c2415;
    font-size: 11px;
    font-weight: 900
}

.hk-profile-panel, .user_M_dashboard {
    width: min(880px, calc(100% - 28px));
    margin: 16px auto;
    padding: clamp(18px, 4vw, 32px);
    border: 1px solid #e6c97544;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(18, 47, 42, .94), rgba(16, 22, 32, .96));
    box-shadow: var(--hk-shadow);
    animation: hkRise .55s both
}

.user_M_dashboard center {
    width: clamp(82px, 18vw, 125px);
    height: clamp(82px, 18vw, 125px);
    margin: 0 auto 14px;
    border: 2px solid #f3cc79a0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 7px #f3cc7918, 0 12px 28px #0006
}

.user_M_dashboard #avatar {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.user_M_dashboard form.pro_file {
    max-width: 480px;
    margin: auto;
    display: grid;
    gap: 10px
}

.user_M_dashboard form.pro_file label {
    position: relative;
    display: block
}

.user_M_dashboard form.pro_file input:not([type=submit]):not([type=file]) {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ffffff24;
    border-radius: 13px;
    background: #061117;
    color: #fff;
    outline: 0
}

.user_M_dashboard form.pro_file input[type=submit] {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(110deg, #72f1bf, #5dd8e1);
    color: #09241d;
    font-weight: 950
}

.user_M_dashboard .pre {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px
}

.user_M_dashboard .btn-c {
    padding: 10px 13px;
    border: 1px solid #ffffff21;
    border-radius: 12px;
    background: #ffffff0b;
    color: #ebeee9;
    cursor: pointer;
    transition: .2s
}

.user_M_dashboard .btn-c:hover {
    transform: translateY(-2px);
    border-color: #8bffdb77
}

.rewardT {
    width: min(100%, 940px);
    margin: 14px auto;
    border-collapse: separate;
    border-spacing: 0 7px;
    color: #edf4f0;
    font-size: 13px
}

.rewardT th, .rewardT thead td {
    padding: 12px;
    background: #1a3735;
    color: #f4d98d
}

.rewardT tbody tr {
    background: #101d25;
    transition: transform .2s, background .2s
}

.rewardT tbody tr:hover {
    transform: translateY(-2px);
    background: #173b35
}

.rewardT tbody td {
    padding: 11px;
    border-top: 1px solid #ffffff10;
    border-bottom: 1px solid #ffffff10
}

.rewardT tbody td:first-child {
    border-radius: 0 12px 12px 0
}

.rewardT tbody td:last-child {
    border-radius: 12px 0 0 12px
}

.titler {
    width: min(800px, calc(100% - 24px));
    margin: 18px auto;
    padding: clamp(16px, 4vw, 28px);
    border: 1px solid #ddc2744c;
    border-radius: 23px;
    background: linear-gradient(145deg, #15352f, #111c29 72%, #261e32);
    box-shadow: var(--hk-shadow);
    color: #f3f6f3;
    animation: hkRise .5s both
}

.titler #lkih {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: #06151288
}

.titler progres {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #ffffff20
}

.titler prog {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #967bff, #6df0c0, #f3cc79);
    transition: width .5s
}

.hk-splash {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 25%, #174d3d 0, #101924 45%, #100d1b 100%)
}

.hk-splash:before, .hk-splash:after {
    content: "";
    position: absolute;
    width: min(70vw, 500px);
    aspect-ratio: 1;
    border: 1px solid #f3cc7926;
    border-radius: 50%;
    animation: hkOrbit 22s linear infinite
}

.hk-splash:after {
    width: min(52vw, 360px);
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 34s
}

.hk-splash .back_fix {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .15
}

.hk-splash .back_fix img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(.7)
}

.hk-splash .selection {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: clamp(24px, 7vw, 52px);
    text-align: center;
    border: 1px solid #e4c77564;
    border-radius: 30px;
    background: linear-gradient(145deg, #112c28ed, #101924f2 70%, #261a2bed);
    box-shadow: 0 30px 90px #0009, inset 0 1px #fff2;
    backdrop-filter: blur(18px);
    animation: hkRise .75s both
}

.hk-splash .logo_loading img {
    width: clamp(80px, 19vw, 132px);
    height: clamp(80px, 19vw, 132px);
    object-fit: contain;
    filter: drop-shadow(0 10px 24px #0008);
    animation: hkFloat 3s ease-in-out infinite
}

.hk-splash .set_text h1 {
    color: #fff0c7;
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 1000;
    text-shadow: 0 4px 20px #0007
}

.hk-splash .num_load {
    margin: 16px auto 7px;
    color: var(--hk-mint);
    font: 900 16px ui-monospace, monospace
}

.hk-splash loading {
    display: grid;
    place-items: center;
    margin: 12px auto
}

.hk-splash loading svg {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 10px #6bf0c088)
}

.hk-splash .copyright {
    position: absolute;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 2;
    color: #b6c8bf;
    font-size: 10px;
    letter-spacing: .1em
}

.hokm-ad-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #03090de8;
    backdrop-filter: blur(12px);
    direction: rtl
}

.hokm-ad-modal[hidden] {
    display: none
}

.hokm-ad-card {
    width: min(560px, 100%);
    padding: 18px;
    border: 1px solid #f3cc7966;
    border-radius: 22px;
    background: linear-gradient(145deg, #153a32, #111c29 68%, #251c33);
    box-shadow: 0 30px 90px #000b;
    color: #f5f7f2;
    animation: hkRise .3s both
}

.hokm-ad-card h2 {
    margin: 0 0 8px;
    color: #f7dea0;
    font-size: 20px
}

.hokm-ad-card p {
    color: #a9beb8;
    font-size: 12px;
    line-height: 1.8
}

.hokm-ad-card video {
    display: block;
    width: 100%;
    max-height: min(55vh, 420px);
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 14px;
    background: #030607
}

.hokm-ad-status {
    min-height: 26px;
    padding: 9px 2px;
    color: #9af0cc;
    font-size: 12px
}

.hokm-ad-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.hokm-ad-close {
    padding: 10px 14px;
    border: 1px solid #ffffff27;
    border-radius: 13px;
    background: #ffffff0c;
    color: #dce8e2;
    font-weight: 800
}

.hk-invite-banner {
    width: min(840px, calc(100% - 24px));
    margin: 12px auto;
    padding: 14px 16px;
    border: 1px solid #76efc160;
    border-radius: 16px;
    background: linear-gradient(100deg, #143d35, #151d2b);
    color: #dcf8ed;
    text-align: center;
    box-shadow: 0 12px 32px #0005;
    animation: hkPulse 2s ease-in-out infinite alternate
}

@keyframes hkRise {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.99)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes hkFloat {
    0%, 100% {
        translate: 0 0
    }
    50% {
        translate: 0 -8px
    }
}

@keyframes hkOrbit {
    to {
        transform: rotate(360deg)
    }
}

@keyframes hkPulse {
    to {
        box-shadow: 0 12px 38px #0006, 0 0 22px #6bf0c022
    }
}

@media (max-width: 700px) {
    .hk-home-hero {
        align-items: flex-start
    }

    .hk-home-hero .hk-hero-emblem {
        border-radius: 24px
    }

    .hk-auth-shell {
        grid-template-columns:1fr
    }

    .hk-auth-copy {
        text-align: center
    }

    .hk-auth-points {
        text-align: right
    }

    .hk-shop-head {
        align-items: flex-start
    }

    .hk-home-grid {
        gap: 9px
    }

    .hk-home-grid .box_bod {
        min-height: 115px;
        padding: 14px 12px;
        grid-template-columns:43px minmax(0, 1fr);
        gap: 4px 10px
    }

    .hk-home-grid .box_bod > i.icon {
        width: 42px;
        height: 42px;
        padding: 7px;
        border-radius: 14px
    }

    .hk-home-grid .box_bod > span {
        font-size: 14px
    }

    .hk-home-grid .box_bod > h3 {
        font-size: 10px
    }

    .hk-wallet {
        padding: 8px 10px;
        font-size: 12px
    }
}

@media (max-width: 420px) {
    .hk-home-hero {
        padding: 19px 16px;
        gap: 10px
    }

    .hk-home-hero p {
        font-size: 12px
    }

    .hk-home-hero .hk-hero-emblem {
        width: 65px;
        border-radius: 19px
    }

    .hk-home-stats {
        gap: 7px;
        padding: 10px
    }

    .hk-home-stats level {
        grid-template-columns:auto minmax(80px, 1fr);
        width: 100%
    }

    .hk-home-grid, .gridel.hk-market-grid {
        grid-template-columns:1fr
    }

    .hk-home-grid .box_bod {
        min-height: 92px;
        grid-template-columns:42px 1fr
    }

    .hk-shop-head {
        padding: 14px;
        flex-direction: column
    }

    .hk-market-card {
        min-height: 185px
    }

    .hk-auth-shell {
        padding: 16px
    }

    .hk-splash .selection {
        border-radius: 23px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-home-hero, .hk-home-grid lable, .hk-auth-shell, .hk-market-card, .hk-page-head, .hk-splash .selection, .hk-ad-card, .hk-invite-banner {
        animation: none !important;
        transition: none !important
    }

    .hk-home-hero .hk-hero-emblem, .hk-splash .logo_loading img {
        animation: none !important
    }
}

/* Full-screen splash shell and global accessible focus states */
body.hk-loading-active {
    overflow: hidden;
    background: #100d1b
}

body.hk-loading-active .selection.hk-splash {
    isolation: isolate
}

body.hk-loading-active .selection.hk-splash:before, body.hk-loading-active .selection.hk-splash:after {
    z-index: -1
}

a:focus-visible, button:focus-visible, [role=button]:focus-visible {
    outline: 2px solid #8cf4d0;
    outline-offset: 3px
}


/* Correct splash structure: splash is the .selection itself, while the wallpaper/copyright are siblings. */
.selection.hk-splash {
    position: relative;
    isolation: isolate;
    width: min(520px, calc(100% - 28px));
    min-height: min(640px, calc(100dvh - 36px));
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: clamp(24px, 7vw, 52px);
    text-align: center;
    border: 1px solid #e4c77564;
    border-radius: 30px;
    background: linear-gradient(145deg, #112c28ed, #101924f2 70%, #261a2bed);
    box-shadow: 0 30px 90px #0009, inset 0 1px #fff2;
    backdrop-filter: blur(18px);
    animation: hkRise .75s both;
    overflow: hidden
}

.selection.hk-splash:before, .selection.hk-splash:after {
    z-index: -1;
    pointer-events: none
}

.selection.hk-splash .back_fix {
    display: none
}

.selection.hk-splash .logo_loading img {
    width: clamp(90px, 19vw, 138px);
    height: clamp(90px, 19vw, 138px);
    object-fit: contain;
    filter: drop-shadow(0 10px 24px #0008);
    animation: hkFloat 3s ease-in-out infinite
}

.selection.hk-splash .set_text h1 {
    color: #fff0c7;
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 1000;
    text-shadow: 0 4px 20px #0007
}

.selection.hk-splash .num_load {
    margin: 10px auto;
    color: #8df2c9;
    font: 900 16px ui-monospace, monospace
}

.selection.hk-splash loading {
    display: grid;
    place-items: center;
    margin: 12px auto
}

.selection.hk-splash loading svg {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 10px #6bf0c088)
}

body.hk-loading-active .back_fix {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .18
}

body.hk-loading-active .back_fix img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(.7)
}

body.hk-loading-active .copyright {
    position: fixed;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 2;
    color: #b6c8bf;
    font-size: 10px
}

/* Consistent polish for the intro, selector, profile and reward pages. */
.menulog .infoe {
    width: min(860px, calc(100% - 26px));
    margin: clamp(16px, 5vh, 54px) auto 24px;
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid #d6c07655;
    border-radius: 26px;
    background: linear-gradient(145deg, #15372feF, #101b27f2 70%, #251c30ef);
    box-shadow: 0 22px 65px #0008, inset 0 1px #fff2;
    backdrop-filter: blur(16px);
    animation: hkRise .65s both
}

.menulog .infoe .box_bod {
    border: 1px solid #ffffff1e;
    border-radius: 17px;
    background: #06131a82;
    color: #e9eee9;
    padding: 15px 17px;
    margin: 9px 0;
    transition: transform .2s, border-color .2s, background .2s
}

.menulog .infoe .box_bod:hover {
    transform: translateY(-2px);
    border-color: #77edc980;
    background: #0e2925
}

.menulog .infoe .btn {
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(110deg, #72f1bf, #5dd8e1);
    color: #08251f;
    font-weight: 950;
    box-shadow: 0 10px 30px #36dba635;
    transition: transform .2s, filter .2s
}

.menulog .infoe .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

.titler {
    max-width: 900px
}

.titler #lkih {
    border: 1px solid #e6cb7844;
    border-radius: 20px;
    background: linear-gradient(145deg, #12372fdd, #101b27f5);
    box-shadow: inset 0 1px #fff1
}

.user_M_dashboard {
    animation: hkRise .55s both
}

/* Daily treasure: animated, game-like reward modal using the existing reward art and endpoints. */
div#pop_daily_prize {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    grid-template-rows:auto auto;
    align-content: center;
    justify-items: center;
    gap: clamp(10px, 2vh, 20px);
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: radial-gradient(ellipse at 50% 18%, #285f4b88, transparent 46%), radial-gradient(ellipse at 50% 85%, #624a8d3d, transparent 42%), #050a11eF;
    backdrop-filter: blur(13px);
    animation: hkDailyFade .35s ease both
}

#pop_daily_prize > .boxes {
    isolation: isolate;
    width: min(760px, 100%);
    height: clamp(190px, 34svh, 320px);
    min-height: 190px;
    margin: 0;
    top: auto;
    bottom: auto;
    overflow: hidden;
    border: 1px solid #efd27b90;
    border-radius: 26px;
    background: radial-gradient(ellipse at 50% 80%, #0b6a4d 0, #073c32 48%, #101722 100%);
    box-shadow: 0 26px 76px #000a, inset 0 1px #fff5, 0 0 40px #53e5ac22;
    animation: hkDailyFloat 4.5s ease-in-out infinite
}

#pop_daily_prize > .boxes:before {
    content: "DAILY TREASURE";
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
    padding: 6px 11px;
    border: 1px solid #ffe6a04d;
    border-radius: 999px;
    background: #071711a8;
    color: #ffe4a0;
    font: 800 9px/1 system-ui;
    letter-spacing: .18em;
    white-space: nowrap
}

#pop_daily_prize .boxes > .mbg {
    opacity: .34;
    filter: saturate(1.15) contrast(1.1);
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent)
}

#pop_daily_prize .boxes div[r] {
    width: clamp(86px, 15vw, 116px);
    height: clamp(56px, 9vw, 74px);
    filter: drop-shadow(0 12px 15px #0009);
    transform: scale(1.05);
    animation: hkChestFloat 2.7s ease-in-out infinite;
    transition: transform .25s, filter .25s;
    touch-action: manipulation
}

#pop_daily_prize .boxes div[r='1'] {
    animation-delay: -.3s
}

#pop_daily_prize .boxes div[r='2'] {
    animation-delay: -1.2s
}

#pop_daily_prize .boxes div[r='3'] {
    animation-delay: -2s
}

#pop_daily_prize .boxes div[r]:not(.o):hover, #pop_daily_prize .boxes div[r]:not(.o):focus {
    transform: translateY(-9px) scale(1.18);
    filter: drop-shadow(0 16px 19px #0009) drop-shadow(0 0 12px #ffe39a88)
}

#pop_daily_prize .boxes div[r]:not(.o):after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, #fff8 49%, transparent 62%);
    transform: translateX(-130%);
    animation: hkChestGleam 4s ease-in-out infinite
}

#pop_daily_prize .boxes div[r].o {
    z-index: 6;
    transform: scale(1.35);
    filter: drop-shadow(0 0 22px #ffe285) drop-shadow(0 15px 15px #000a);
    animation: hkChestOpen .75s cubic-bezier(.2, .8, .2, 1) both
}

#pop_daily_prize .boxes > .prize {
    left: 50%;
    right: auto !important;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    height: auto;
    min-width: 0;
    width: max-content;
    max-width: calc(100% - 18px);
    padding: 11px 18px;
    border: 1px solid #f4d78277;
    border-radius: 15px;
    background: linear-gradient(120deg, #111d25ed, #143b31ed);
    color: #fff4d5;
    line-height: 1.5;
    box-shadow: 0 12px 30px #0008, 0 0 20px #ffda8240;
    animation: hkPrizePop .55s .15s both
}

#pop_daily_prize .row {
    position: relative;
    width: min(760px, 100%);
    max-height: 42svh;
    overflow: auto;
    margin: 0;
    padding: clamp(14px, 3vw, 24px);
    border: 1px solid #8becbf44;
    border-radius: 22px;
    background: linear-gradient(145deg, #102a25f5, #101924f7 70%, #211b2cf5);
    box-shadow: 0 22px 65px #0008, inset 0 1px #fff2;
    color: #edf6f1;
    direction: rtl;
    animation: hkDailyRise .55s both
}

#pop_daily_prize .hk-daily-heading {
    text-align: center
}

.hk-daily-kicker {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid #f5d98c50;
    border-radius: 999px;
    background: #f5d98c11;
    color: #ffdfa0;
    font-size: 11px;
    font-weight: 900
}

.hk-daily-heading h1.textbox {
    margin: 9px 0 2px;
    padding: 0;
    color: #fff4d6;
    text-align: center;
    font-size: clamp(18px, 4vw, 25px);
    font-weight: 950
}

.hk-daily-heading p.textbox {
    margin: 0;
    padding: 0;
    color: #a9c2b9;
    text-align: center;
    font-size: 12px
}

.hk-daily-reward-types {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px
}

.hk-daily-reward-types > span {
    display: grid;
    grid-template-columns:36px 1fr;
    align-items: center;
    gap: 2px 9px;
    padding: 10px 12px;
    border: 1px solid #ffffff18;
    border-radius: 15px;
    background: #ffffff08;
    color: #f3dfaa;
    font-size: 13px;
    font-weight: 900
}

.hk-daily-reward-types img {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px #0008)
}

.hk-daily-reward-types small {
    color: #a5b8b2;
    font-size: 10px;
    font-weight: 500
}

#pop_daily_prize .row > h1.textbox {
    margin: 4px auto 12px;
    color: #fff2cc;
    text-align: center;
    font-size: clamp(19px, 4vw, 26px);
    font-weight: 950
}

#pop_daily_prize .row > p.textbox {
    margin: 0 auto;
    padding: 0;
    max-width: 620px;
    color: #c3d4ce;
    text-align: center;
    line-height: 1.75;
    font-size: 13px
}

#pop_daily_prize .row > p.textbox b {
    color: #f6d98e
}

#pop_daily_prize .row > p.textbox .btn {
    display: block;
    min-width: 150px;
    margin: 14px auto 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(105deg, #7bf2c3, #65dfe0);
    color: #06281f;
    font-weight: 950;
    box-shadow: 0 10px 28px #58e7ba35;
    transition: transform .2s, filter .2s
}

#pop_daily_prize .row > p.textbox .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

#pop_daily_prize .circles {
    pointer-events: none;
    opacity: .22
}

@keyframes hkDailyFade {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes hkDailyRise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.985)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes hkDailyFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0)
    }
    50% {
        transform: translateY(-3px) rotateX(1deg)
    }
}

@keyframes hkChestFloat {
    0%, 100% {
        translate: 0 0
    }
    50% {
        translate: 0 -5px
    }
}

@keyframes hkChestGleam {
    0%, 65% {
        transform: translateX(-130%)
    }
    88%, 100% {
        transform: translateX(130%)
    }
}

@keyframes hkChestOpen {
    0% {
        transform: scale(.55) rotate(-8deg);
        opacity: 0
    }
    65% {
        transform: scale(1.48) rotate(3deg);
        opacity: 1
    }
    100% {
        transform: scale(1.35) rotate(0)
    }
}

@keyframes hkPrizePop {
    from {
        opacity: 0;
        transform: translate(-50%, 12px) scale(.9)
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1)
    }
}

@media (max-width: 560px) {
    div#pop_daily_prize {
        gap: 10px;
        padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom))
    }

    #pop_daily_prize > .boxes {
        height: clamp(190px, 30svh, 250px);
        border-radius: 20px
    }

    #pop_daily_prize .boxes div[r] {
        transform: scale(.88)
    }

    #pop_daily_prize .boxes div[r]:not(.o):hover, #pop_daily_prize .boxes div[r]:not(.o):focus {
        transform: translateY(-7px) scale(1.04)
    }

    #pop_daily_prize .row {
        max-height: 48svh;
        padding: 14px;
        border-radius: 18px
    }

    .hk-daily-reward-types {
        gap: 7px
    }

    .hk-daily-reward-types > span {
        padding: 8px 9px;
        grid-template-columns:29px 1fr;
        font-size: 11px
    }

    .hk-daily-reward-types img {
        width: 28px;
        height: 28px
    }

    .hk-daily-reward-types small {
        font-size: 9px
    }
}

@media (prefers-reduced-motion: reduce) {
    #pop_daily_prize, #pop_daily_prize .boxes, #pop_daily_prize .boxes div[r], #pop_daily_prize .boxes div[r]:after, #pop_daily_prize .row, #pop_daily_prize .boxes > .prize {
        animation: none !important;
        transition: none !important
    }
}

/* New daily reward experience: pure CSS chests, independent from the legacy sprite-based reward widgets. */
#pop_daily_prize.hk-daily-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    overflow: auto;
    background: radial-gradient(ellipse at 50% 16%, #1b765681, transparent 44%), radial-gradient(ellipse at 50% 100%, #8051a43b, transparent 45%), #050a11ed;
    backdrop-filter: blur(15px);
    animation: hkDailyFade .35s ease both
}

.hk-daily-panel {
    position: relative;
    width: min(620px, 100%);
    padding: clamp(20px, 5vw, 36px);
    overflow: hidden;
    border: 1px solid #ecd17b73;
    border-radius: 30px;
    background: linear-gradient(150deg, #123b31f5, #101b26fa 62%, #261b32f5);
    box-shadow: 0 32px 90px #000b, inset 0 1px #fff2, 0 0 48px #52e3aa19;
    text-align: center;
    animation: hkDailyRise .55s cubic-bezier(.2, .8, .2, 1) both
}

.hk-daily-panel:before, .hk-daily-panel:after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 220px;
    height: 220px;
    border: 1px solid #f3d27b20;
    border-radius: 50%;
    pointer-events: none
}

.hk-daily-panel:before {
    top: -145px;
    right: -90px
}

.hk-daily-panel:after {
    bottom: -155px;
    left: -90px
}

.hk-daily-panel > * {
    position: relative;
    z-index: 1
}

.hk-daily-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9dbcb0;
    font: 800 9px/1 system-ui;
    letter-spacing: .18em
}

.hk-daily-gem {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid #f3d27b66;
    border-radius: 12px;
    background: #f3d27b12;
    color: #ffdf93;
    font-size: 18px;
    box-shadow: 0 0 22px #f3d27b25;
    animation: hkGemBeat 2s ease-in-out infinite
}

.hk-daily-panel h2 {
    margin: 11px 0 5px;
    color: #fff0c7;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 1000
}

.hk-daily-lead {
    margin: 0;
    color: #adc2ba;
    font-size: 12px;
    line-height: 1.8
}

.hk-daily-chests {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 3vw, 20px);
    margin: clamp(17px, 4vw, 28px) auto 14px;
    max-width: 470px
}

.hk-treasure {
    position: relative;
    min-width: 0;
    padding: 9px 2px 7px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #ead9a8;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .22s, filter .22s
}

.hk-treasure:hover, .hk-treasure:focus-visible {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 8px 18px #e8c66c35)
}

.hk-treasure:disabled {
    cursor: default
}

.hk-chest-glow {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 110px;
    height: 88px;
    max-width: 95%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffdc7450;
    filter: blur(24px);
    opacity: .25;
    transition: opacity .3s
}

.hk-treasure:hover .hk-chest-glow, .hk-treasure.is-selected .hk-chest-glow {
    opacity: .8
}

.hk-chest {
    position: relative;
    display: block;
    width: clamp(72px, 20vw, 110px);
    height: clamp(72px, 20vw, 100px);
    margin: 0 auto 7px;
    perspective: 350px;
    filter: drop-shadow(0 14px 11px #0008);
    animation: hkChestIdle 3s ease-in-out infinite
}

.hk-treasure:nth-child(2) .hk-chest {
    animation-delay: -1s
}

.hk-treasure:nth-child(3) .hk-chest {
    animation-delay: -2s
}

.hk-chest-body {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 4%;
    height: 56%;
    display: grid;
    place-items: center;
    border: 2px solid #ffe5a0;
    border-radius: 8px 8px 13px 13px;
    background: linear-gradient(90deg, #70431f 0, #cf8d36 18%, #875021 35%, #e2ad4d 50%, #8d4d21 72%, #d4933d 100%);
    box-shadow: inset 0 3px 5px #ffe5a077, inset 0 -8px 9px #36190c77
}

.hk-chest-body:before {
    content: "";
    position: absolute;
    inset: 0 43%;
    border-right: 2px solid #ffe8a6;
    border-left: 2px solid #ffe8a6;
    background: linear-gradient(90deg, #a35d21, #f1ce72, #a05c24)
}

.hk-chest-body b {
    position: relative;
    z-index: 1;
    color: #fff2b5;
    font-size: 18px;
    text-shadow: 0 0 12px #fff
}

.hk-chest-lid {
    position: absolute;
    z-index: 2;
    left: 3%;
    right: 3%;
    top: 7%;
    height: 40%;
    border: 2px solid #ffe5a0;
    border-radius: 11px 11px 5px 5px;
    background: linear-gradient(90deg, #895222, #e3b654 22%, #9a5b28 45%, #edc363 55%, #895020 82%, #dda64a);
    box-shadow: inset 0 3px 5px #ffeba277, inset 0 -4px 6px #4b260f66;
    transform-origin: 15% 100%;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1)
}

.hk-chest-lock {
    position: absolute;
    z-index: 3;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 20px;
    height: 24px;
    border: 1px solid #fff0b9;
    border-radius: 5px;
    background: linear-gradient(#ffe49b, #c3872b);
    color: #704314;
    font-size: 12px;
    box-shadow: 0 3px 7px #0008
}

.hk-chest-label {
    display: block;
    color: #d9c99c;
    font-size: 10px;
    font-weight: 800
}

.hk-treasure.is-selected .hk-chest-lid {
    transform: rotate(-48deg) translate(-4px, -4px)
}

.hk-daily-modal.is-opening .hk-treasure:not(.is-selected) {
    opacity: .3;
    transform: scale(.94)
}

.hk-treasure.is-selected {
    transform: translateY(-5px) scale(1.07)
}

.hk-treasure.is-selected .hk-chest {
    animation: hkChestReveal .55s ease both
}

.hk-daily-reward-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px
}

.hk-daily-reward-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #ffffff18;
    border-radius: 999px;
    background: #ffffff08;
    color: #d8e7df;
    font-size: 10px
}

.hk-daily-reward-legend img {
    width: 20px;
    height: 20px;
    object-fit: contain
}

.hk-daily-status {
    min-height: 24px;
    margin: 10px 0 0;
    color: #91eac2;
    font-size: 11px;
    font-weight: 750
}

.hk-daily-result {
    position: relative;
    display: flex;
    min-height: 340px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(620px, 100%);
    margin: auto;
    padding: 30px 18px;
    overflow: hidden;
    border: 1px solid #e8cd7b72;
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 16%, #1f795280, transparent 45%), linear-gradient(150deg, #123b31f5, #101b26fa 62%, #261b32f5);
    box-shadow: 0 32px 90px #000b, inset 0 1px #fff2;
    text-align: center;
    animation: hkPrizePop .6s cubic-bezier(.2, .8, .2, 1) both
}

.hk-result-sparkle {
    position: absolute;
    top: 15px;
    color: #f8de94;
    letter-spacing: .55em;
    font-size: 18px;
    animation: hkSparkle 2s ease-in-out infinite
}

.hk-result-emblem {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 5px auto 12px;
    border: 1px solid #f1d27d88;
    border-radius: 25px;
    background: linear-gradient(145deg, #e7bd6030, #5bf1bb1e);
    box-shadow: 0 0 40px #f0d16a35, inset 0 1px #fff4;
    animation: hkEmblemPop .65s .15s both
}

.hk-result-emblem img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 7px 11px #0008)
}

.hk-result-emblem.is-muted {
    color: #a6b7af;
    font-size: 38px
}

.hk-result-kicker {
    color: #a9c4b8;
    font: 800 9px/1.5 system-ui;
    letter-spacing: .17em
}

.hk-daily-result h2 {
    margin: 7px 0;
    color: #fff0c7;
    font-size: clamp(23px, 5vw, 32px);
    font-weight: 1000
}

.hk-daily-result p {
    margin: 0;
    color: #bfd1c8;
    font-size: 13px
}

.hk-result-amount {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 17px auto 8px;
    padding: 10px 20px;
    border: 1px solid #efda9677;
    border-radius: 17px;
    background: #07171070;
    color: #ffdfa0;
    box-shadow: 0 0 25px #eacb6f20
}

.hk-result-amount strong {
    font-size: 28px
}

.hk-result-amount span {
    font-size: 12px;
    font-weight: 900
}

.hk-daily-result small {
    color: #a9c5b8
}

.hk-result-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 180px;
    margin-top: 20px;
    padding: 12px 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(105deg, #7bf2c3, #65dfe0);
    color: #06281f;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 28px #58e7ba35;
    cursor: pointer;
    transition: transform .2s, filter .2s
}

.hk-result-confirm:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

@keyframes hkChestIdle {
    0%, 100% {
        transform: translateY(0) rotate(0)
    }
    50% {
        transform: translateY(-6px) rotate(-1deg)
    }
}

@keyframes hkChestReveal {
    0%, 100% {
        scale: 1
    }
    40% {
        scale: 1.12
    }
    65% {
        scale: .98
    }
}

@keyframes hkEmblemPop {
    from {
        opacity: 0;
        transform: scale(.55) rotate(-12deg)
    }
    70% {
        opacity: 1;
        transform: scale(1.12) rotate(4deg)
    }
    to {
        transform: scale(1) rotate(0)
    }
}

@keyframes hkGemBeat {
    0%, 100% {
        box-shadow: 0 0 15px #f3d27b18
    }
    50% {
        box-shadow: 0 0 25px #f3d27b55;
        transform: rotate(8deg)
    }
}

@keyframes hkSparkle {
    0%, 100% {
        opacity: .45;
        transform: translateY(0)
    }
    50% {
        opacity: 1;
        transform: translateY(-5px)
    }
}

@media (max-width: 480px) {
    .hk-daily-panel {
        padding: 19px 13px;
        border-radius: 24px
    }

    .hk-daily-chests {
        gap: 3px;
        margin: 18px auto 12px
    }

    .hk-chest-label {
        font-size: 9px
    }

    .hk-daily-result {
        min-height: 310px;
        padding: 24px 13px;
        border-radius: 23px
    }
}

@media (prefers-reduced-motion: reduce) {
    #pop_daily_prize.hk-daily-modal, .hk-daily-panel, .hk-daily-gem, .hk-chest, .hk-treasure.is-selected .hk-chest, .hk-daily-result, .hk-result-sparkle, .hk-result-emblem {
        animation: none !important;
        transition: none !important
    }
}

/* The game surface stays edge-to-edge; all surrounding pages use the new interface. */
game.hk-game-viewport {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 10000 !important;
    background: transparent !important;
    touch-action: manipulation
}

game.hk-game-viewport > object#compiler_game {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important
}

/* MYBALL Hokm app: new responsive shell, controls and page components */
:root {
    --hk-bg: #080d12;
    --hk-panel: #101a20;
    --hk-panel-2: #14252b;
    --hk-felt: #07523f;
    --hk-mint: #82efc2;
    --hk-gold: #f2cd79;
    --hk-ink: #f5f3e9;
    --hk-muted: #a8b9b4;
    --hk-line: #e4c7793d;
    --hk-shadow: 0 26px 70px #0008
}

.hk-entry-screen, .hk-splash-screen, .hk-app-page {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--hk-ink);
    direction: rtl;
    isolation: isolate
}

.hk-entry-screen {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(15px, 3.5vw, 42px);
    background: radial-gradient(ellipse at 75% 35%, #124b3b7d, transparent 46%), radial-gradient(ellipse at 15% 100%, #60427144, transparent 42%), #080d12
}

.hk-entry-screen:before, .hk-entry-screen:after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid #e6c66a20;
    border-radius: 50%;
    aspect-ratio: 1;
    z-index: -1
}

.hk-entry-screen:before {
    width: min(70vw, 800px);
    top: 5%;
    left: -25%;
    box-shadow: 0 0 80px #43dfae0d
}

.hk-entry-screen:after {
    width: min(52vw, 610px);
    right: -20%;
    bottom: -18%;
    border-style: dashed;
    animation: hkOrbit 65s linear infinite
}

.hk-entry-bar {
    width: min(1160px, 100%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.hk-wordmark {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff4d4;
    text-decoration: none;
    font-weight: 1000;
    letter-spacing: .08em
}

.hk-wordmark-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #efce7b88;
    border-radius: 14px;
    background: linear-gradient(145deg, #245743, #111c24);
    color: #ffe29c;
    font-size: 24px;
    box-shadow: 0 8px 24px #0007
}

.hk-wordmark small {
    display: block;
    margin-top: 2px;
    color: #8ea69d;
    font-size: 8px;
    letter-spacing: .21em
}

.hk-telegram-link {
    padding: 10px 14px;
    border: 1px solid #ffffff22;
    border-radius: 999px;
    background: #ffffff08;
    color: #bce6dc;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800
}

.hk-entry-main {
    width: min(1080px, 100%);
    min-height: min(740px, calc(100dvh - 110px));
    margin: 16px auto 0;
    display: grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: clamp(20px, 5vw, 74px)
}

.hk-entry-copy {
    max-width: 590px
}

.hk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hk-mint);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em
}

.hk-entry-copy h1 {
    margin: 14px 0;
    color: #fff2d2;
    font-size: clamp(34px, 6.5vw, 70px);
    line-height: 1.15;
    letter-spacing: -.04em;
    font-weight: 1000
}

.hk-entry-copy h1 em {
    color: #8bedc1;
    font-style: normal;
    text-shadow: 0 0 28px #79f0c12c
}

.hk-entry-copy > p {
    max-width: 500px;
    margin: 0;
    color: #aec3ba;
    font-size: clamp(13px, 1.5vw, 16px);
    line-height: 2
}

.hk-entry-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 23px 0
}

.hk-entry-pills span {
    padding: 8px 12px;
    border: 1px solid #ffffff16;
    border-radius: 999px;
    background: #ffffff07;
    color: #d8e4dc;
    font-size: 10px;
    font-weight: 750
}

.hk-entry-ajax {
    min-height: 76px
}

.hk-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid #fff6;
    border-radius: 16px;
    background: linear-gradient(112deg, #91f0c1, #62d9d1);
    color: #06251d;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 12px 34px #48d6a93a, inset 0 1px #fff9;
    cursor: pointer;
    transition: transform .2s, filter .2s, box-shadow .2s
}

.hk-primary-action:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow: 0 17px 40px #48d6a955
}

.hk-entry-note {
    margin: 8px 0;
    color: #82958e;
    font-size: 10px
}

.hk-entry-footer {
    display: flex;
    gap: 18px;
    margin-top: 15px
}

.hk-entry-footer a, .hk-entry-footer button {
    padding: 0;
    border: 0;
    background: none;
    color: #b8c9c0;
    text-decoration: none;
    font-size: 11px;
    cursor: pointer
}

.hk-entry-footer a:hover, .hk-entry-footer button:hover {
    color: var(--hk-gold)
}

.hk-entry-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 450px;
    perspective: 1000px
}

.hk-entry-ring {
    position: absolute;
    width: min(35vw, 380px);
    aspect-ratio: 1;
    border: 1px solid #e8cd7852;
    border-radius: 50%;
    box-shadow: inset 0 0 40px #56c49b12, 0 0 60px #45c89f12;
    animation: hkSpin 24s linear infinite
}

.hk-entry-ring:before, .hk-entry-ring:after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed #b99e5b4a;
    border-radius: 50%
}

.hk-entry-ring:after {
    inset: 26%;
    border-style: solid;
    border-color: #70d8ac22
}

.hk-entry-token {
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(145px, 22vw, 245px);
    aspect-ratio: 1;
    border: 1px solid #f1d48999;
    border-radius: 34% 40% 34% 40%;
    background: radial-gradient(circle at 35% 25%, #39a06e, #08634b 48%, #062a25 78%);
    color: #f5d88e;
    font-size: clamp(72px, 12vw, 128px);
    text-shadow: 0 7px 22px #0008;
    box-shadow: 0 32px 80px #0009, inset 0 2px #fff5, inset 0 -25px 42px #031a1680;
    transform: rotate(-9deg);
    animation: hkTokenFloat 4.5s ease-in-out infinite
}

.hk-card-float {
    position: absolute;
    z-index: 2;
    width: clamp(88px, 12vw, 138px);
    height: clamp(124px, 17vw, 192px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px;
    border: 1px solid #f3e4b6;
    border-radius: 13px;
    background: linear-gradient(145deg, #fffdf4, #e8e5d9);
    color: #121b18;
    font-size: clamp(24px, 4vw, 38px);
    font-family: Georgia, serif;
    box-shadow: 0 20px 35px #0008
}

.hk-card-float small {
    font-size: clamp(26px, 4vw, 40px)
}

.hk-card-a {
    top: 13%;
    right: 7%;
    transform: rotate(15deg);
    animation: hkCardA 5s ease-in-out infinite
}

.hk-card-b {
    bottom: 12%;
    left: 4%;
    color: #c33b48;
    transform: rotate(-15deg);
    animation: hkCardB 5.5s ease-in-out infinite
}

.hk-entry-bottom {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #72867d;
    font-size: 9px;
    letter-spacing: .2em
}

.hk-entry-bottom span:first-child, .hk-entry-bottom span:last-child {
    color: #d4b969
}

.hk-rules-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #040a0ded;
    backdrop-filter: blur(10px)
}

.hk-rules-modal[hidden] {
    display: none
}

.hk-rules-card {
    position: relative;
    width: min(460px, 100%);
    padding: 28px;
    border: 1px solid var(--hk-line);
    border-radius: 25px;
    background: linear-gradient(145deg, #183b31, #111a24);
    box-shadow: var(--hk-shadow)
}

.hk-rules-card h2 {
    margin: 10px 0;
    color: #ffe8a9
}

.hk-rules-card p {
    color: #c0d0c8;
    line-height: 2;
    font-size: 13px
}

.hk-icon-close {
    position: absolute;
    left: 13px;
    top: 12px;
    width: 35px;
    height: 35px;
    border: 1px solid #fff3;
    border-radius: 12px;
    background: #fff1;
    color: white;
    font-size: 22px;
    cursor: pointer
}

.hk-splash-screen {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 24px;
    background: radial-gradient(ellipse at 50% 40%, #0b6046, #101820 56%, #090c13)
}

.hk-splash-screen:before {
    content: "";
    position: absolute;
    width: min(80vw, 650px);
    aspect-ratio: 1;
    border: 1px solid #e2c66a2b;
    border-radius: 50%;
    box-shadow: 0 0 80px #47daa519;
    animation: hkSpin 32s linear infinite
}

.hk-splash-screen:after {
    content: "";
    position: absolute;
    width: min(60vw, 475px);
    aspect-ratio: 1;
    border: 1px dashed #8de5bb32;
    border-radius: 50%;
    animation: hkSpin 25s linear infinite reverse
}

.hk-splash-brand {
    z-index: 1;
    width: min(490px, 100%);
    padding: clamp(28px, 7vw, 54px);
    border: 1px solid #e8cb7964;
    border-radius: 32px;
    background: linear-gradient(145deg, #132e29ee, #111a24f5 68%, #211a29f2);
    box-shadow: 0 30px 100px #000a, inset 0 1px #fff3;
    text-align: center;
    backdrop-filter: blur(16px);
    animation: hkRise .7s both
}

.hk-splash-logo {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    margin: 0 auto 17px;
    border: 1px solid #f1d28077;
    border-radius: 28px;
    background: linear-gradient(145deg, #236448, #101a20);
    box-shadow: 0 0 42px #43d69c27, 0 14px 30px #0007;
    animation: hkTokenFloat 3s ease-in-out infinite
}

.hk-splash-logo img {
    width: 67px;
    height: 67px;
    object-fit: contain
}

.hk-splash-brand > span {
    color: #9af0c8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em
}

.hk-splash-brand h1 {
    margin: 12px 0 8px;
    color: #fff0c7;
    font-size: clamp(22px, 5vw, 31px);
    font-weight: 950
}

.hk-splash-brand p {
    margin: 0;
    color: #a9beb5;
    font-size: 12px
}

.hk-loader-track {
    height: 7px;
    margin: 27px 0 10px;
    overflow: hidden;
    border: 1px solid #ffffff19;
    border-radius: 99px;
    background: #020805
}

.hk-loader-track i {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #73e5b3, #f3d480, #73e5b3);
    background-size: 220%;
    box-shadow: 0 0 18px #74e7b466;
    animation: hkLoading .95s ease-in-out infinite alternate, hkShimmer 2s linear infinite
}

.hk-loader-caption {
    color: #879c92;
    font-size: 10px
}

.hk-app-page {
    min-height: 100svh;
    min-height: 100dvh;
    padding: clamp(14px, 3vw, 34px);
    background: radial-gradient(ellipse at 85% 0%, #124b3a66, transparent 38%), radial-gradient(ellipse at 10% 100%, #57396b30, transparent 36%), #080d12
}

.hk-app-wrap {
    width: min(1160px, 100%);
    margin: 0 auto
}

.hk-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px
}

.hk-page-kicker {
    color: #8de8bd;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em
}

.hk-page-title {
    margin: 5px 0 0;
    color: #fff1cc;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 1000
}

.hk-page-subtitle {
    margin: 5px 0 0;
    color: #9fb4aa;
    font-size: 12px;
    line-height: 1.8
}

.hk-back-action, .hk-quiet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #ffffff1d;
    border-radius: 13px;
    background: #ffffff08;
    color: #e2eadf;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s
}

.hk-back-action:hover, .hk-quiet-action:hover {
    border-color: #7ae7b966;
    background: #7ae7b613;
    transform: translateY(-2px)
}

.hk-panel {
    border: 1px solid var(--hk-line);
    border-radius: 25px;
    background: linear-gradient(145deg, #142b28ed, #101820f5 70%, #211927ed);
    box-shadow: var(--hk-shadow), inset 0 1px #fff2
}

.hk-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 14px
}

.hk-stack {
    display: grid;
    gap: 14px
}

.hk-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #ffffff19;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff0d, #ffffff04);
    box-shadow: inset 0 1px #fff1;
    transition: transform .22s, border-color .22s, box-shadow .22s
}

.hk-card:hover {
    transform: translateY(-4px);
    border-color: #8ae7bf60;
    box-shadow: 0 16px 32px #0005, 0 0 20px #72e2af12
}

.hk-card h2, .hk-card h3 {
    margin: 0;
    color: #f5e3b4
}

.hk-card p {
    color: #a9bdb4;
    line-height: 1.8;
    font-size: 12px
}

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

.hk-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #ffffff18;
    border-radius: 17px;
    background: #ffffff08
}

.hk-stat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border: 1px solid #f1d27b42;
    border-radius: 13px;
    background: #ebcc7512;
    font-size: 18px
}

.hk-stat small {
    display: block;
    color: #95aaa0;
    font-size: 9px
}

.hk-stat strong {
    display: block;
    margin-top: 3px;
    color: #fff0c8;
    font-size: 15px;
    font-variant-numeric: tabular-nums
}

.hk-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 190px;
    margin-bottom: 16px;
    padding: clamp(22px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid #edce7b69;
    border-radius: 27px;
    background: radial-gradient(ellipse at 15% 100%, #84522536, transparent 45%), linear-gradient(120deg, #153d32, #102027 58%, #241a2d);
    box-shadow: var(--hk-shadow), inset 0 1px #fff2;
    animation: hkRise .5s both
}

.hk-home-hero h1 {
    margin: 8px 0;
    color: #fff0c6;
    font-size: clamp(26px, 5vw, 43px);
    font-weight: 1000
}

.hk-home-hero p {
    max-width: 590px;
    margin: 0;
    color: #b1c5bb;
    line-height: 1.9;
    font-size: 12px
}

.hk-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px
}

.hk-hero-emblem {
    display: grid;
    place-items: center;
    flex: 0 0 clamp(75px, 12vw, 120px);
    aspect-ratio: 1;
    border: 1px solid #f2d17a90;
    border-radius: 32px;
    background: radial-gradient(circle at 35% 25%, #3c9262, #07523f 62%, #09251f);
    color: #f4d47f;
    font-size: clamp(43px, 7vw, 71px);
    box-shadow: 0 20px 42px #0007, inset 0 2px #fff5;
    transform: rotate(6deg);
    animation: hkTokenFloat 4s ease-in-out infinite
}

.hk-nav-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 12px
}

.hk-nav-card {
    display: grid;
    grid-template-columns:46px 1fr 20px;
    align-items: center;
    gap: 12px;
    min-height: 87px;
    padding: 15px;
    text-align: right;
    border: 1px solid #ffffff19;
    border-radius: 19px;
    background: linear-gradient(145deg, #ffffff0d, #ffffff04);
    color: var(--hk-ink);
    cursor: pointer;
    transition: .2s
}

.hk-nav-card:hover {
    transform: translateY(-3px);
    border-color: #7ce6b477;
    background: #83e8bd0d
}

.hk-nav-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #ecd07a3b;
    border-radius: 15px;
    background: #f0cd7514;
    color: #ffdfa0;
    font-size: 21px
}

.hk-nav-card strong {
    display: block;
    color: #f5e4b8;
    font-size: 13px
}

.hk-nav-card small {
    display: block;
    margin-top: 4px;
    color: #91a69d;
    font-size: 10px
}

.hk-nav-arrow {
    color: #86e5b8;
    font-size: 17px
}

.hk-form {
    display: grid;
    gap: 12px
}

.hk-field {
    display: grid;
    gap: 6px
}

.hk-field label {
    color: #b9c9c1;
    font-size: 10px;
    font-weight: 800
}

.hk-input, .hk-select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #ffffff20;
    border-radius: 14px;
    outline: none;
    background: #081216;
    color: #f4f3e8;
    font: 600 14px system-ui;
    transition: border-color .2s, box-shadow .2s
}

.hk-input:focus, .hk-select:focus {
    border-color: #7ce5b7;
    box-shadow: 0 0 0 3px #7ce5b71a
}

.hk-checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #9dafaa;
    font-size: 10px;
    line-height: 1.8
}

.hk-checkline input {
    accent-color: #65ddb0;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 1px 0 0
}

.hk-form-submit {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #8df0be, #63d9d2);
    color: #07251d;
    font-weight: 950;
    font-size: 13px;
    box-shadow: 0 10px 25px #53d9a632;
    cursor: pointer
}

.hk-form-submit:disabled {
    opacity: .5;
    cursor: not-allowed
}

.hk-form-link {
    border: 0;
    background: none;
    color: #f3d486;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer
}

.hk-auth-grid {
    display: grid;
    grid-template-columns:minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 16px;
    align-items: stretch
}

.hk-auth-promo {
    padding: clamp(22px, 4vw, 38px)
}

.hk-auth-promo h2 {
    margin: 15px 0 7px;
    color: #fff0c7;
    font-size: 29px
}

.hk-auth-promo p {
    color: #aec2b8;
    line-height: 1.9;
    font-size: 12px
}

.hk-auth-form-card {
    padding: clamp(18px, 4vw, 30px)
}

.hk-login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px
}

.hk-login-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain
}

.hk-login-brand strong {
    color: #ffefc6;
    font-size: 17px
}

.hk-login-brand small {
    display: block;
    color: #8ca49a;
    font-size: 9px
}

.hk-market-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px
}

.hk-market-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 226px;
    padding: 19px;
    text-align: center;
    border: 1px solid #e7ca7752;
    border-radius: 22px;
    background: linear-gradient(145deg, #16372f, #111c25 68%, #211a2c);
    color: var(--hk-ink);
    box-shadow: 0 18px 40px #0005, inset 0 1px #fff2;
    cursor: pointer;
    transition: transform .22s, border-color .22s
}

.hk-market-card:hover {
    transform: translateY(-5px);
    border-color: #91efc090
}

.hk-market-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px #0008)
}

.hk-market-card h3 {
    margin: 9px 0 3px;
    color: #ffe6aa;
    font-size: 14px
}

.hk-market-card strong {
    color: #8ceac1;
    font-size: 18px
}

.hk-market-card small {
    margin-top: 6px;
    color: #a0b4ab;
    font-size: 10px
}

.hk-market-cta {
    display: inline-flex;
    margin-top: 13px;
    padding: 8px 14px;
    border-radius: 11px;
    background: #f2ce7b;
    color: #2e2818;
    font-size: 10px;
    font-weight: 950
}

.hk-wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px 18px
}

.hk-wallet-card span {
    color: #9fb3a9;
    font-size: 10px
}

.hk-wallet-card strong {
    color: #ffe5a5;
    font-size: 20px
}

.hk-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 2px solid #f0d07b;
    border-radius: 28px;
    box-shadow: 0 9px 24px #0007
}

.hk-table-wrap {
    overflow: auto;
    border: 1px solid #ffffff19;
    border-radius: 18px
}

.hk-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
    color: #dce7df;
    font-size: 11px
}

.hk-table th {
    padding: 13px;
    background: #173a32;
    color: #f5dc98;
    text-align: right
}

.hk-table td {
    padding: 12px;
    border-top: 1px solid #ffffff12;
    background: #ffffff04
}

.hk-empty-state {
    padding: 30px;
    text-align: center;
    color: #9fb2a9
}

.hk-daily-modal {
    background: radial-gradient(ellipse at 50% 16%, #1b765681, transparent 44%), radial-gradient(ellipse at 50% 100%, #8051a43b, transparent 45%), #050a11ed
}

.hk-daily-panel {
    max-width: 620px
}

.hk-daily-chests {
    margin-top: 25px
}

.hk-daily-result {
    min-height: 360px
}

.hk-invite-banner {
    margin: 12px 0;
    padding: 13px 15px;
    border: 1px solid #76efc160;
    border-radius: 16px;
    background: linear-gradient(100deg, #143d35, #151d2b);
    color: #dcf8ed;
    text-align: center
}

.hk-game-viewport {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 10000 !important;
    background: transparent !important;
    touch-action: manipulation
}

.hk-game-viewport > object#compiler_game {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important
}

.hk-lobby-wait {
    display: grid;
    place-items: center;
    min-height: 210px;
    text-align: center
}

.hk-lobby-ring {
    display: grid;
    place-items: center;
    width: 105px;
    height: 105px;
    margin: 8px auto 15px;
    border: 1px solid #7be5b988;
    border-radius: 50%;
    background: radial-gradient(circle, #65e0ad22, #06231b);
    box-shadow: 0 0 45px #57d9a638;
    animation: hkGemBeat 2s infinite
}

.hk-lobby-ring strong {
    color: #fff1ca;
    font-size: 23px
}

.hk-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #fff2
}

.hk-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #70e0b1, #f1d17c);
    transition: width .5s
}

.hk-seat-list {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 10px
}

.hk-seat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid #ffffff17;
    border-radius: 15px;
    background: #ffffff07;
    color: #d8e5dc
}

.hk-seat img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover
}

.hk-sticker-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 9px
}

.hk-sticker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ffffff19;
    border-radius: 14px;
    background: #ffffff07;
    color: #dce7df;
    cursor: pointer
}

.hk-sticker img {
    width: 32px;
    height: 32px;
    object-fit: contain
}

.hk-select-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

.hk-picker-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 13px
}

.hk-picker-card {
    display: flex;
    flex-direction: column;
    min-height: 195px;
    padding: 19px;
    border: 1px solid #ffffff1b;
    border-radius: 20px;
    background: linear-gradient(145deg, #15372f, #111b24 70%, #221b2a);
    color: var(--hk-ink);
    text-align: right;
    cursor: pointer;
    transition: .22s
}

.hk-picker-card:hover {
    transform: translateY(-4px);
    border-color: #83e9bb77
}

.hk-picker-card .hk-picker-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    border-radius: 14px;
    background: #e8ca7718;
    color: #f3d17b;
    font-size: 21px
}

.hk-picker-card strong {
    color: #f7e3ae;
    font-size: 15px
}

.hk-picker-card p {
    color: #9eb4a9;
    font-size: 11px;
    line-height: 1.8
}

.hk-picker-card .hk-picker-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #ffffff12;
    color: #8be9bd;
    font-size: 10px
}

.hk-count-badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: #ffffff0b;
    color: #f1d487
}

.hk-hokm-page {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 15px;
    background: radial-gradient(ellipse at 50% 35%, #15513f, #0b1117 72%)
}

.hk-hokm-card {
    width: min(720px, 100%);
    padding: clamp(16px, 4vw, 28px);
    border: 1px solid #f0cf7b77;
    border-radius: 26px;
    background: linear-gradient(145deg, #153b31, #101821);
    box-shadow: var(--hk-shadow);
    text-align: center
}

.hk-hokm-clock {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 10px;
    border: 2px solid #f0d17b;
    border-radius: 50%;
    background: #061b17;
    color: #fff0c6;
    font-size: 25px;
    font-weight: 950;
    box-shadow: 0 0 28px #f1cf7130
}

.hk-hand-cards {
    display: flex;
    justify-content: center;
    gap: clamp(3px, 1vw, 10px);
    margin: 19px auto;
    direction: ltr
}

.hk-hand-cards img {
    width: clamp(44px, 10vw, 76px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 18px #0008
}

.hk-suit-choices {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px
}

.hk-suit-choice {
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 13px 6px;
    border: 1px solid #ffffff24;
    border-radius: 16px;
    background: #ffffff08;
    color: #e9eadf;
    cursor: pointer;
    transition: .2s
}

.hk-suit-choice:hover {
    transform: translateY(-4px);
    border-color: #eed17c;
    box-shadow: 0 10px 24px #0005
}

.hk-suit-choice img {
    width: clamp(44px, 10vw, 72px);
    height: auto
}

.hk-suit-choice span {
    font-size: 10px;
    font-weight: 900
}

@keyframes hkRise {
    from {
        opacity: 0;
        transform: translateY(15px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes hkOrbit {
    to {
        transform: rotate(360deg)
    }
}

@keyframes hkSpin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes hkTokenFloat {
    0%, 100% {
        translate: 0 0
    }
    50% {
        translate: 0 -9px
    }
}

@keyframes hkCardA {
    0%, 100% {
        transform: translateY(0) rotate(15deg)
    }
    50% {
        transform: translateY(-12px) rotate(10deg)
    }
}

@keyframes hkCardB {
    0%, 100% {
        transform: translateY(0) rotate(-15deg)
    }
    50% {
        transform: translateY(10px) rotate(-9deg)
    }
}

@keyframes hkLoading {
    from {
        width: 22%
    }
    to {
        width: 83%
    }
}

@keyframes hkShimmer {
    to {
        background-position: 220% 0
    }
}

@media (max-width: 760px) {
    .hk-entry-main {
        min-height: auto;
        grid-template-columns:1fr;
        gap: 5px;
        margin-top: 26px
    }

    .hk-entry-copy {
        order: 1;
        max-width: 650px;
        margin: 0 auto;
        text-align: center
    }

    .hk-entry-copy > p {
        margin: auto
    }

    .hk-entry-pills, .hk-entry-footer {
        justify-content: center
    }

    .hk-entry-art {
        order: 0;
        min-height: clamp(220px, 45vw, 340px)
    }

    .hk-entry-ring {
        width: min(62vw, 280px)
    }

    .hk-entry-token {
        width: clamp(115px, 27vw, 176px);
        font-size: clamp(61px, 13vw, 95px)
    }

    .hk-card-float {
        width: clamp(68px, 17vw, 100px);
        height: clamp(98px, 24vw, 142px);
        padding: 9px
    }

    .hk-card-a {
        right: 17%;
        top: 5%
    }

    .hk-card-b {
        left: 17%;
        bottom: 2%
    }

    .hk-entry-bottom {
        position: relative;
        margin-top: 30px;
        bottom: auto
    }

    .hk-auth-grid {
        grid-template-columns:1fr
    }

    .hk-auth-promo {
        text-align: center
    }

    .hk-stat-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-home-hero {
        min-height: 155px
    }

    .hk-nav-grid {
        gap: 9px
    }

    .hk-game-viewport {
        height: 100svh !important;
        height: 100dvh !important
    }
}

@media (max-width: 480px) {
    .hk-entry-screen {
        padding: 13px
    }

    .hk-entry-main {
        margin-top: 10px
    }

    .hk-entry-art {
        min-height: 220px
    }

    .hk-entry-copy h1 {
        font-size: 37px
    }

    .hk-entry-pills {
        gap: 5px;
        margin: 16px 0
    }

    .hk-entry-pills span {
        padding: 7px 9px;
        font-size: 9px
    }

    .hk-app-page {
        padding: 12px
    }

    .hk-page-top {
        align-items: flex-start
    }

    .hk-grid {
        grid-template-columns:1fr
    }

    .hk-nav-grid {
        grid-template-columns:1fr
    }

    .hk-home-hero {
        padding: 20px 16px
    }

    .hk-hero-emblem {
        flex-basis: 63px;
        border-radius: 21px;
        font-size: 39px
    }

    .hk-home-hero p {
        font-size: 10px
    }

    .hk-stat-grid {
        gap: 7px
    }

    .hk-stat {
        padding: 10px
    }

    .hk-stat-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px
    }

    .hk-seat-list {
        grid-template-columns:1fr
    }

    .hk-sticker-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-suit-choices {
        gap: 6px
    }

    .hk-suit-choice {
        padding: 10px 3px
    }

    .hk-hokm-card {
        padding: 14px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-entry-art *, .hk-splash-screen *, .hk-home-hero, .hk-card, .hk-nav-card, .hk-picker-card, .hk-treasure, .hk-daily-result {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* MYBALL Hokm redesigned account and table surfaces */
.hk-side-menu[hidden], .hk-rules-modal[hidden] {
    display: none !important
}

.hk-side-menu {
    position: absolute;
    z-index: 1200;
    top: 68px;
    left: clamp(12px, 3vw, 34px);
    width: min(300px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid #e8cb7966;
    border-radius: 19px;
    background: linear-gradient(145deg, #122a26f5, #101722fa 68%, #201928fa);
    box-shadow: 0 24px 68px #000b;
    backdrop-filter: blur(16px);
    animation: hkRise .2s both
}

.hk-side-menu button, .hk-side-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e7eee7;
    text-decoration: none;
    font: 700 12px system-ui;
    cursor: pointer
}

.hk-side-menu button:hover, .hk-side-menu a:hover {
    background: #7ce5b714;
    color: #f8dfa0
}

.hk-menu-label {
    font-size: 0
}

.hk-menu-label:after {
    content: 'منو';
    font-size: 10px
}

.hk-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff0c7;
    text-decoration: none;
    font-weight: 1000;
    letter-spacing: .07em
}

.hk-wordmark small {
    display: block;
    margin-top: 3px;
    color: #8fdfb7;
    font-size: 8px;
    letter-spacing: .16em
}

.hk-wordmark-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #efcf7977;
    border-radius: 13px;
    background: linear-gradient(145deg, #246549, #09251e);
    color: #f6d982;
    font-size: 20px;
    box-shadow: 0 7px 17px #0005
}

.hk-eyebrow {
    color: #8de9bd;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .14em
}

.hk-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #f5dc9366;
    border-radius: 14px;
    background: linear-gradient(115deg, #f4dc91, #dfb95c);
    color: #292315;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 10px 24px #d2aa3c28;
    cursor: pointer;
    text-decoration: none;
    transition: .2s
}

.hk-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px #d2aa3c42
}

.hk-xp-panel {
    display: grid;
    grid-template-columns:auto minmax(100px, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 15px 18px
}

.hk-xp-panel > div:first-child {
    display: grid;
    grid-template-columns:auto auto;
    gap: 3px 12px;
    align-items: center
}

.hk-xp-panel .hk-eyebrow {
    grid-column: 1/-1
}

.hk-xp-panel strong {
    color: #f5dfa4;
    font-size: 12px
}

.hk-xp-panel > div:first-child > span:last-child, .hk-xp-panel > small {
    color: #8ce9be;
    font-size: 10px
}

.hk-xp-panel .hk-progress {
    width: 100%
}

.hk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 19px;
    padding: 13px 2px;
    color: #71887e;
    font-size: 9px
}

.hk-footer a {
    color: #8de7bb;
    text-decoration: none
}

.hk-home-hero .hk-eyebrow {
    color: #89e7bb
}

.hk-app-page {
    direction: rtl;
    color: #edf1e7;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow: auto;
    overscroll-behavior: contain
}

.hk-app-wrap {
    padding-bottom: 22px
}

.hk-page-top {
    direction: rtl
}

.hk-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #efcf7952;
    border-radius: 15px;
    background: #d8b64b0c;
    color: #f3dc9d
}

.hk-wallet img {
    width: 27px;
    height: 27px;
    object-fit: contain
}

.hk-wallet b {
    font-size: 14px
}

.hk-wallet span {
    color: #9aada2;
    font-size: 9px
}

.hk-profile-card {
    padding: clamp(18px, 4vw, 30px)
}

.hk-profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffffff12
}

.hk-profile-identity h2 {
    margin: 5px 0;
    color: #fff0c6;
    font-size: 22px
}

.hk-profile-identity p {
    margin: 0;
    color: #9eb3a9;
    font-size: 11px
}

.hk-avatar-picker {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: transparent;
    cursor: pointer
}

.hk-avatar-picker img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 2px solid #edcf7d;
    border-radius: 26px
}

.hk-avatar-picker span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    padding: 5px;
    border-radius: 0 0 20px 20px;
    background: #07120dc9;
    color: #e7d492;
    font-size: 8px
}

.hk-profile-form {
    margin-top: 18px
}

.hk-profile-fields {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 13px
}

.hk-profile-form .hk-form-submit {
    max-width: 260px;
    margin-right: auto
}

.hk-profile-links {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px
}

.hk-profile-links button {
    display: grid;
    grid-template-columns:38px 1fr;
    align-items: center;
    gap: 3px 10px;
    min-height: 73px;
    padding: 12px;
    border: 1px solid #ffffff17;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff0b, #ffffff03);
    color: #eee9d6;
    text-align: right;
    cursor: pointer
}

.hk-profile-links button:hover {
    border-color: #85e7bb77;
    transform: translateY(-2px)
}

.hk-profile-links i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #ebcc7515;
    color: #efcf7d;
    font-style: normal;
    font-size: 18px
}

.hk-profile-links span {
    font-size: 11px;
    font-weight: 900
}

.hk-profile-links small {
    color: #91a69b;
    font-size: 8px
}

.hk-profile-links .hk-logout-link i {
    background: #d9686818;
    color: #ef9999
}

.hk-table-panel {
    padding: clamp(14px, 3vw, 23px)
}

.hk-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.hk-section-head > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e8cb7950;
    border-radius: 14px;
    background: #e8cb7913;
    color: #f1d486;
    font-size: 20px
}

.hk-section-head h2 {
    margin: 0;
    color: #f5e1ad;
    font-size: 16px
}

.hk-section-head p {
    margin: 4px 0 0;
    color: #93a99d;
    font-size: 10px
}

.hk-table {
    min-width: 430px
}

.hk-table th:first-child, .hk-table td:first-child {
    text-align: center
}

.hk-me-row td {
    background: #59d4a21a;
    color: #fff0c6
}

.hk-player-cell {
    display: flex;
    align-items: center;
    gap: 9px
}

.hk-player-cell img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover
}

.hk-rank-medal {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8cb7918;
    color: #f0d382;
    font-weight: 950
}

.hk-score {
    color: #84e9bd
}

.hk-wallet-stats {
    grid-template-columns:repeat(3, minmax(0, 1fr))
}

.hk-wallet-stats .hk-stat-icon {
    font-style: normal
}

.hk-empty-state h2 {
    margin: 10px 0 3px;
    color: #f3dfa8
}

.hk-empty-state p {
    margin: 4px;
    color: #9caf9f;
    font-size: 11px
}

.hk-empty-icon {
    font-size: 44px;
    color: #ebce7c
}

.hk-section-block {
    margin-top: 23px
}

.hk-practice-card {
    width: min(350px, 100%);
    min-height: 165px
}

.hk-practice-card .hk-picker-icon {
    font-style: normal
}

.hk-alert-card, .hk-invite-note, .hk-resume-banner {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 13px 0;
    padding: 14px 16px;
    border: 1px solid #e9cc7952;
    border-radius: 18px;
    background: linear-gradient(120deg, #352d1c88, #172925)
}

.hk-alert-card > span, .hk-invite-note > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 13px;
    background: #f3c96620;
    color: #f4d386;
    font-size: 19px
}

.hk-alert-card strong, .hk-invite-note strong, .hk-resume-banner strong {
    color: #f3dfa9;
    font-size: 12px
}

.hk-alert-card p, .hk-invite-note p, .hk-resume-banner p {
    margin: 4px 0 0;
    color: #9bafa4;
    font-size: 10px;
    line-height: 1.7
}

.hk-alert-card button {
    margin-top: 6px;
    border: 0;
    background: none;
    color: #8be8bd;
    font-size: 10px;
    cursor: pointer
}

.hk-resume-banner .hk-picker-icon {
    flex: 0 0 40px;
    margin: 0
}

.hk-resume-banner > div {
    flex: 1
}

.hk-resume-banner .hk-form-submit {
    width: auto;
    padding: 0 16px
}

.hk-lobby-panel {
    padding: clamp(17px, 4vw, 28px)
}

.hk-lobby-wait h2 {
    margin: 4px 0;
    color: #f2e0b3
}

.hk-lobby-wait p {
    max-width: 490px;
    color: #9eb3a8;
    font-size: 11px;
    line-height: 1.8
}

.hk-lobby-wait .hk-progress {
    width: min(500px, 100%);
    margin: 14px 0
}

.hk-seat-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: #e6c86d18;
    color: #e5cb80
}

.hk-seat-empty {
    border-style: dashed;
    color: #84998f
}

.hk-lobby-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px
}

.hk-lobby-actions .hk-quiet-action {
    flex: 1
}

.hk-sticker {
    min-height: 58px;
    font-family: system-ui
}

.hk-hokm-page {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif
}

.hk-hokm-topline {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.hk-hokm-timer {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid #f0d17b;
    border-radius: 50%;
    background: #061b17;
    color: #fff0c6;
    font-size: 17px;
    font-weight: 950;
    box-shadow: 0 0 22px #f1cf7130
}

.hk-hokm-timer.is-urgent {
    border-color: #fa8282;
    color: #ff9a9a;
    animation: hkGemBeat .8s infinite
}

.hk-hokm-crown {
    margin: 6px auto 4px;
    color: #f5d776;
    font-size: 33px;
    text-shadow: 0 0 24px #f0d27d55
}

.hk-hokm-crown.is-waiting {
    color: #8be6b6
}

.hk-hokm-card h1 {
    margin: 4px 0;
    color: #fff0c7;
    font-size: clamp(23px, 5vw, 34px)
}

.hk-hokm-lead {
    margin: 5px auto;
    color: #a9bdb2;
    font-size: 11px;
    line-height: 1.8
}

.hk-hokm-card .hk-hand-cards img {
    width: clamp(48px, 9vw, 73px);
    height: auto
}

.hk-hokm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 13px 0;
    color: #ddca91
}

.hk-hokm-divider span {
    height: 1px;
    flex: 1;
    background: #ffffff1c
}

.hk-hokm-divider small {
    font-size: 9px
}

.hk-hokm-card .hk-suit-choice {
    font-family: system-ui
}

.hk-suit-heart, .hk-suit-diamond {
    color: #ff8d8d
}

.hk-hokm-hint {
    margin: 13px 0 0;
    color: #83998d;
    font-size: 9px
}

.hk-hokm-waiting-cards {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 26px auto
}

.hk-hokm-waiting-cards span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 67px;
    border: 1px solid #edd384;
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, #164c3c, #164c3c 4px, #133629 4px, #133629 8px);
    color: #edcf7c;
    font-size: 24px;
    box-shadow: 0 8px 17px #0006
}

.hk-hokm-feedback:empty {
    display: none
}

.hk-app-page .hk-shop-head {
    margin: 0 0 16px
}

.hk-app-page .hk-market-grid {
    margin-top: 12px
}

.hk-app-page .hk-market-card h1 {
    color: #f2d98d;
    font-size: 16px
}

.hk-app-page .hk-market-card .hk-pack-cta {
    margin-top: 11px
}

.hk-rules-modal {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: #02060bdc;
    backdrop-filter: blur(10px)
}

.hk-rules-card {
    position: relative;
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid #e5c77466;
    border-radius: 24px;
    background: linear-gradient(145deg, #15372f, #111922, #211a2b);
    box-shadow: 0 28px 90px #000b;
    color: #e7eee5
}

.hk-rules-card h2 {
    color: #f5dfaa
}

.hk-rules-card p {
    color: #a8bbb1;
    font-size: 12px;
    line-height: 2
}

.hk-icon-close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: 0;
    background: none;
    color: #f3dfad;
    font-size: 26px;
    cursor: pointer
}

.hk-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.hk-code-row > span {
    color: #83998f;
    font-size: 9px
}

.hk-auth-footnote {
    margin: 14px 0 0;
    color: #71887d;
    text-align: center;
    font-size: 9px
}

.hk-promo-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px;
    border: 1px solid #ffffff16;
    border-radius: 14px;
    background: #ffffff07;
    color: #e6e6d8;
    font-size: 11px
}

.hk-promo-feature > b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #e6c97619;
    color: #f0d37f
}

.hk-promo-feature small {
    display: block;
    margin-top: 3px;
    color: #8da297;
    font-size: 9px
}

.hk-auth-telegram {
    display: inline-flex;
    margin-top: 16px;
    color: #86e5bd;
    font-size: 10px;
    text-decoration: none
}

.hk-entry-screen {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif
}

@keyframes hkGemBeat {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px #70e3b633
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 0 38px #70e3b655
    }
}

@media (max-width: 760px) {
    .hk-profile-links {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-wallet-stats {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-xp-panel {
        grid-template-columns:1fr auto
    }

    .hk-xp-panel .hk-progress {
        grid-column: 1/-1;
        grid-row: 2
    }

    .hk-xp-panel > small {
        grid-column: 2;
        grid-row: 1
    }

    .hk-resume-banner {
        flex-wrap: wrap
    }

    .hk-resume-banner .hk-form-submit {
        width: 100%
    }
}

@media (max-width: 480px) {
    .hk-profile-fields {
        grid-template-columns:1fr
    }

    .hk-profile-form .hk-form-submit {
        max-width: none
    }

    .hk-profile-identity h2 {
        font-size: 17px
    }

    .hk-profile-identity .hk-avatar-picker img {
        width: 72px;
        height: 72px
    }

    .hk-lobby-actions .hk-quiet-action {
        flex-basis: calc(50% - 9px)
    }

    .hk-alert-card, .hk-invite-note {
        align-items: flex-start
    }

    .hk-home-hero .hk-primary-action {
        min-height: 41px;
        padding: 0 12px;
        font-size: 10px
    }

    .hk-wallet {
        padding: 7px 9px
    }

    .hk-hokm-page {
        padding: 8px
    }

    .hk-hokm-card {
        border-radius: 20px
    }

    .hk-suit-choice span {
        font-size: 9px
    }
}

.hk-history-list {
    display: grid;
    gap: 9px
}

.hk-history-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px
}

.hk-history-mark {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border: 1px solid #e9cc7955;
    border-radius: 13px;
    background: #e9cc7912;
    color: #f0d581;
    font-size: 17px
}

.hk-history-info {
    display: grid;
    gap: 4px;
    flex: 1
}

.hk-history-info strong {
    color: #f1e1b8;
    font-size: 11px
}

.hk-history-info small {
    color: #91a69b;
    font-size: 9px
}

.hk-history-values {
    display: flex;
    gap: 12px;
    color: #92a89c;
    font-size: 9px
}

.hk-history-values b {
    color: #8ce9bd;
    font-size: 10px
}

.selection.hk-splash .hk-loader-track.progs_loading {
    width: min(88%, 585px);
    height: 8px;
    margin: 27px auto 10px;
    border: 0;
    background: #050b09;
    box-shadow: inset 0 1px 4px #000b
}

.selection.hk-splash .hk-loader-track.progs_loading span {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #71e1b0, #f1d37b);
    box-shadow: 0 0 17px #74e7b466;
    transition: width .25s linear
}

.selection.hk-splash .num_load {
    width: auto;
    margin: 8px auto 0;
    color: #91e7bd;
    font-size: 10px;
    text-align: center
}

.selection.hk-loader-shell, .selection.hk-loader-shell * {
    box-sizing: border-box
}

.selection.hk-loader-shell .hk-splash-screen {
    width: 100%;
    height: 100%;
    min-height: 100%
}

.selection.hk-loader-shell .hk-loader-track.progs_loading {
    width: min(88%, 585px);
    height: 8px;
    margin: 27px auto 10px;
    border: 0;
    background: #050b09;
    box-shadow: inset 0 1px 4px #000b
}

.selection.hk-loader-shell .hk-loader-track.progs_loading span {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #71e1b0, #f1d37b);
    box-shadow: 0 0 17px #74e7b466;
    transition: width .25s linear
}

.selection.hk-loader-shell .num_load {
    width: auto;
    margin: 8px auto 0;
    color: #91e7bd;
    font-size: 10px;
    text-align: center
}

/* Mobile containment overrides for MYBALL Hokm. Shared/global CSS stays untouched. */
.hk-entry-screen, .hk-splash-screen, .hk-app-page, .hk-rules-modal, .hk-daily-modal, .hk-hokm-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0
}

.hk-entry-screen *, .hk-entry-screen *::before, .hk-entry-screen *::after, .hk-splash-screen *, .hk-splash-screen *::before, .hk-splash-screen *::after, .hk-app-page *, .hk-app-page *::before, .hk-app-page *::after, .hk-rules-modal *, .hk-rules-modal *::before, .hk-rules-modal *::after, .hk-daily-modal *, .hk-daily-modal *::before, .hk-daily-modal *::after, .hk-hokm-page *, .hk-hokm-page *::before, .hk-hokm-page *::after {
    box-sizing: border-box;
    min-width: 0
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden
}

.selection.hk-loader-shell {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important
}

.selection.hk-loader-shell, .selection.hk-loader-shell * {
    box-sizing: border-box
}

.selection.hk-loader-shell .hk-splash-screen {
    width: 100%;
    height: 100%;
    min-height: 100%
}

.hk-splash-screen {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: clamp(12px, 4vw, 24px);
    overflow-x: hidden;
    overflow-y: auto
}

.hk-splash-brand {
    width: min(490px, 100%);
    max-width: 100%;
    padding: clamp(18px, 6vw, 54px);
    overflow-wrap: anywhere
}

.hk-splash-brand h1 {
    font-size: clamp(20px, 6vw, 31px);
    line-height: 1.5;
    overflow-wrap: anywhere
}

.hk-app-page {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain
}

.hk-app-wrap {
    width: 100%;
    max-width: 1160px;
    min-width: 0;
    margin-inline: auto
}

.hk-page-top {
    flex-wrap: wrap;
    min-width: 0
}

.hk-page-top > div {
    min-width: 0;
    max-width: 100%
}

.hk-page-title, .hk-page-subtitle, .hk-card, .hk-picker-card, .hk-market-card, .hk-panel {
    min-width: 0;
    overflow-wrap: anywhere
}

.hk-market-grid, .hk-picker-grid, .hk-stat-grid, .hk-nav-grid, .hk-profile-links, .hk-help-grid {
    min-width: 0
}

.hk-market-grid, .hk-picker-grid {
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 215px), 1fr))
}

.hk-table-wrap {
    max-width: 100%;
    overflow-x: auto
}

.hk-table {
    width: 100%
}

.hk-hokm-page {
    width: 100%;
    max-width: 100vw;
    padding: clamp(8px, 3vw, 18px);
    overflow-x: hidden;
    overflow-y: auto
}

.hk-hokm-card {
    width: min(720px, 100%);
    max-width: 100%;
    min-width: 0
}

.hk-hand-cards {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 2px
}

.hk-suit-choices {
    grid-template-columns:repeat(4, minmax(0, 1fr))
}

.hk-daily-modal {
    max-width: 100vw;
    overflow-x: hidden
}

.hk-daily-panel {
    width: min(620px, 100%);
    max-width: 100%;
    min-width: 0
}

.hk-game-viewport {
    max-width: 100vw !important
}

@media (max-width: 760px) {
    .hk-entry-screen {
        width: 100%;
        max-width: 100%;
        min-height: 100svh;
        min-height: 100dvh;
        overflow-x: hidden;
        padding: 14px
    }

    .hk-entry-main {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        grid-template-columns:minmax(0, 1fr);
        gap: 0;
        margin: 12px auto 0
    }

    .hk-entry-art {
        width: 100%;
        min-height: clamp(190px, 48vw, 310px);
        overflow: hidden
    }

    .hk-entry-copy {
        width: 100%;
        max-width: 600px;
        margin: 0 auto
    }

    .hk-entry-copy h1 {
        font-size: clamp(31px, 8vw, 48px);
        overflow-wrap: anywhere
    }

    .hk-entry-bottom {
        position: relative;
        bottom: auto;
        margin: 24px auto 4px
    }

    .hk-auth-grid {
        width: 100%;
        grid-template-columns:minmax(0, 1fr);
        gap: 12px
    }

    .hk-auth-promo, .hk-auth-form-card {
        width: 100%;
        min-width: 0
    }

    .hk-home-hero {
        flex-wrap: wrap;
        width: 100%;
        min-width: 0
    }

    .hk-page-top {
        align-items: center
    }

    .hk-resume-banner > * {
        min-width: 0
    }

    .hk-profile-links {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 480px) {
    .hk-app-page {
        padding: 12px
    }

    .hk-app-wrap {
        padding-bottom: calc(18px + env(safe-area-inset-bottom))
    }

    .hk-page-top {
        gap: 9px;
        margin-bottom: 13px
    }

    .hk-page-title {
        font-size: clamp(21px, 7vw, 30px)
    }

    .hk-wallet {
        max-width: 100%;
        flex-wrap: wrap
    }

    .hk-home-hero {
        gap: 11px;
        padding: 18px 14px
    }

    .hk-home-hero > div:first-child {
        min-width: 0;
        flex: 1 1 100%
    }

    .hk-home-hero .hk-hero-emblem {
        flex: 0 0 58px;
        width: 58px
    }

    .hk-nav-card {
        grid-template-columns:40px minmax(0, 1fr) 16px;
        padding: 12px
    }

    .hk-nav-icon {
        width: 38px;
        height: 38px
    }

    .hk-stat-grid, .hk-wallet-stats {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-market-grid, .hk-picker-grid {
        grid-template-columns:minmax(0, 1fr);
        width: 100%;
        gap: 10px
    }

    .hk-market-card, .hk-picker-card {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 16px
    }

    .hk-profile-fields {
        grid-template-columns:minmax(0, 1fr)
    }

    .hk-profile-links {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-history-card {
        flex-wrap: wrap
    }

    .hk-history-values {
        width: 100%;
        justify-content: space-between
    }

    .hk-lobby-actions .hk-quiet-action {
        flex: 1 1 calc(50% - 9px)
    }

    .hk-seat-list {
        grid-template-columns:minmax(0, 1fr)
    }

    .hk-sticker-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-entry-screen {
        padding: 12px
    }

    .hk-entry-bar {
        gap: 8px
    }

    .hk-telegram-link {
        padding: 8px 10px;
        font-size: 9px
    }

    .hk-entry-art {
        min-height: clamp(180px, 58vw, 245px)
    }

    .hk-entry-copy h1 {
        font-size: clamp(29px, 9.2vw, 39px)
    }

    .hk-entry-pills {
        justify-content: center
    }

    .hk-entry-footer {
        justify-content: center;
        flex-wrap: wrap
    }

    .hk-rules-card {
        width: 100%;
        padding: 22px 18px
    }

    .hk-splash-screen {
        padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom))
    }

    .hk-splash-brand {
        padding: clamp(18px, 6vw, 28px);
        border-radius: 24px
    }

    .hk-splash-logo {
        width: 76px;
        height: 76px;
        border-radius: 22px
    }

    .hk-splash-logo img {
        width: 55px;
        height: 55px
    }

    .hk-splash-brand p {
        font-size: 11px;
        line-height: 1.8
    }

    .hk-hokm-card {
        padding: 14px 11px
    }

    .hk-hand-cards {
        gap: 3px
    }

    .hk-hokm-card .hk-hand-cards img {
        width: clamp(40px, 12vw, 58px)
    }

    .hk-suit-choice {
        padding: 8px 2px
    }

    .hk-suit-choice img {
        width: clamp(38px, 11vw, 54px)
    }

    .hk-hokm-waiting-cards {
        gap: 5px
    }

    .hk-hokm-waiting-cards span {
        width: clamp(38px, 11vw, 48px);
        height: 58px
    }
}

@media (max-width: 350px) {
    .hk-profile-links {
        grid-template-columns:minmax(0, 1fr)
    }

    .hk-stat-grid, .hk-wallet-stats {
        grid-template-columns:minmax(0, 1fr)
    }

    .hk-splash-brand h1 {
        font-size: 20px
    }

    .hk-entry-pills span {
        padding: 6px 8px;
        font-size: 8px
    }

    .hk-home-actions {
        flex-direction: column;
        align-items: stretch
    }

    .hk-home-actions > * {
        width: 100%
    }

    .hk-daily-chests {
        gap: 4px
    }

    /* Account identity, explicit permission onboarding, and competitive leaderboard */
    .hk-home-hero {
        align-items: center
    }

    .hk-home-welcome {
        min-width: 0;
        flex: 1
    }

    .hk-home-player {
        position: relative;
        display: grid;
        grid-template-columns:clamp(60px, 8vw, 84px) minmax(0, 1fr) 24px;
        align-items: center;
        gap: 12px;
        width: min(330px, 40%);
        min-width: 220px;
        padding: 12px;
        border: 1px solid #f1d37b56;
        border-radius: 20px;
        background: linear-gradient(145deg, #081b1ad9, #111a28ed 72%, #2a1b31d9);
        color: #f6e4b0;
        text-align: right;
        box-shadow: 0 15px 38px #0005, inset 0 1px #fff2;
        cursor: pointer;
        transition: transform .24s, border-color .24s
    }

    .hk-home-player:hover {
        transform: translateY(-3px);
        border-color: #8bf0c4a6
    }

    .hk-home-player > img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border: 2px solid #edcf7d;
        border-radius: 18px;
        box-shadow: 0 0 0 5px #eacb6c17, 0 9px 18px #0006
    }

    .hk-home-player > span {
        display: grid;
        gap: 4px;
        min-width: 0
    }

    .hk-home-player small {
        color: #8de7bb;
        font-size: 9px
    }

    .hk-home-player strong {
        overflow: hidden;
        color: #fff0c7;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .hk-home-player b {
        color: #9eb5ab;
        font-size: 9px
    }

    .hk-home-player > i {
        color: #f4d781;
        font-style: normal;
        font-size: 19px;
        text-shadow: 0 0 18px #f2d17b66
    }

    .hk-permission-card {
        position: relative;
        display: grid;
        grid-template-columns:42px minmax(0, 1fr) auto 20px;
        align-items: center;
        gap: 11px;
        width: min(100%, 1050px);
        margin: 12px auto 16px;
        padding: 12px 14px;
        border: 1px solid #7be7bd38;
        border-radius: 17px;
        background: linear-gradient(100deg, #10342fdb, #111c29ef 70%, #1a2030ed);
        box-shadow: 0 12px 28px #0003;
        transition: opacity .25s, transform .25s
    }

    .hk-permission-card.is-dismissed {
        display: none
    }

    .hk-permission-icon {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid #79e7b954;
        border-radius: 13px;
        background: #62e8b51a;
        color: #8cf0c5;
        font-size: 23px
    }

    .hk-permission-card > div {
        min-width: 0
    }

    .hk-permission-card strong {
        color: #e5f4e8;
        font-size: 11px
    }

    .hk-permission-card p {
        margin: 3px 0;
        color: #a6bbb1;
        font-size: 9px;
        line-height: 1.7
    }

    .hk-permission-card small {
        color: #81dfb7;
        font-size: 8px
    }

    .hk-permission-card > button:not(.hk-permission-dismiss) {
        min-height: 36px;
        padding: 0 13px;
        border: 1px solid #91f0c360;
        border-radius: 11px;
        background: linear-gradient(110deg, #73e9bb, #5cd9db);
        color: #09241e;
        font: 900 10px system-ui;
        white-space: nowrap;
        cursor: pointer
    }

    .hk-permission-card > button:disabled {
        opacity: .7;
        cursor: wait
    }

    .hk-permission-dismiss {
        align-self: start;
        border: 0;
        background: transparent;
        color: #9bb0a8;
        font-size: 20px;
        line-height: 1;
        cursor: pointer
    }

    .hk-leader-hero {
        position: relative;
        margin: 0 0 16px;
        padding: clamp(16px, 3vw, 25px);
        border: 1px solid #e7c97955;
        border-radius: 23px;
        background: radial-gradient(ellipse at 8% 10%, #e4c05d22, transparent 38%), linear-gradient(130deg, #12392f, #111a27 62%, #24192e);
        box-shadow: 0 18px 45px #0004;
        overflow: hidden
    }

    .hk-leader-hero:after {
        content: '♛';
        position: absolute;
        left: 9%;
        top: 50%;
        transform: translateY(-50%) rotate(-12deg);
        color: #edce7d12;
        font-size: clamp(70px, 12vw, 130px);
        pointer-events: none
    }

    .hk-leader-hero > * {
        position: relative;
        z-index: 1
    }

    .hk-podium {
        display: grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        align-items: end;
        gap: 12px;
        width: min(850px, 100%);
        margin: 12px auto 18px
    }

    .hk-podium-card {
        position: relative;
        display: grid;
        justify-items: center;
        align-content: start;
        min-width: 0;
        min-height: 190px;
        padding: 20px 12px 14px;
        border: 1px solid #e4c97955;
        border-radius: 21px;
        background: linear-gradient(150deg, #182a2b, #101a26 63%, #201b2b);
        box-shadow: 0 17px 42px #0005, inset 0 1px #fff2;
        animation: hkRise .55s both
    }

    .hk-podium-card.hk-podium-1 {
        order: 2;
        min-height: 224px;
        border-color: #f5d77db0;
        background: radial-gradient(ellipse at 50% 0, #f0d16d20, transparent 60%), linear-gradient(150deg, #25372e, #131d25 62%, #2b2130);
        box-shadow: 0 20px 50px #0006, 0 0 35px #edce6d1e, inset 0 1px #fff3
    }

    .hk-podium-card.hk-podium-2 {
        order: 1
    }

    .hk-podium-card.hk-podium-3 {
        order: 3
    }

    .hk-podium-card.is-me {
        outline: 1px solid #72efc477;
        outline-offset: 3px
    }

    .hk-podium-crown {
        position: absolute;
        top: 9px;
        right: 12px;
        color: #f5d77e;
        font-size: 20px;
        text-shadow: 0 0 16px #f2d27766
    }

    .hk-podium-number {
        position: absolute;
        top: 12px;
        left: 12px;
        color: #91b7a7;
        font-size: 10px;
        font-weight: 900
    }

    .hk-podium-1 .hk-podium-number {
        color: #ffdfa0
    }

    .hk-podium-card > img {
        width: clamp(61px, 8vw, 82px);
        height: clamp(61px, 8vw, 82px);
        margin: 15px auto 9px;
        object-fit: cover;
        border: 2px solid #e4c879;
        border-radius: 50%;
        box-shadow: 0 0 0 5px #e3c76b18, 0 9px 23px #0008
    }

    .hk-podium-1 > img {
        width: clamp(72px, 9vw, 94px);
        height: clamp(72px, 9vw, 94px);
        border-color: #ffe292;
        box-shadow: 0 0 0 6px #e3c76b22, 0 0 30px #e4c65d38
    }

    .hk-podium-card > strong {
        max-width: 100%;
        overflow: hidden;
        color: #f3e5bd;
        font-size: clamp(10px, 1.4vw, 13px);
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .hk-podium-score {
        margin-top: 7px;
        color: #8df0c1;
        font-size: 16px;
        font-weight: 1000
    }

    .hk-podium-score small {
        color: #a9bcb0;
        font-size: 8px;
        font-weight: 600
    }

    .hk-podium-games {
        margin-top: 5px;
        color: #839c90;
        font-size: 9px
    }

    .hk-top50-badge {
        margin-right: auto;
        padding: 7px 10px;
        border: 1px solid #e7c86d55;
        border-radius: 10px;
        background: #e4c36813;
        color: #e8d38e;
        font-size: 9px;
        letter-spacing: .08em
    }

    .hk-leader-table-panel {
        border: 1px solid #d8c17935;
        border-radius: 22px;
        background: linear-gradient(145deg, #101d21eF, #121723f5 65%, #1b1827f3);
        box-shadow: 0 18px 45px #0004
    }

    .hk-leader-table {
        border-spacing: 0 5px
    }

    .hk-leader-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #172c2a;
        color: #d9ca98
    }

    .hk-leader-table tbody tr {
        transition: transform .2s, background .2s
    }

    .hk-leader-table tbody tr:hover {
        transform: translateY(-2px);
        background: #1d3b35
    }

    .hk-leader-table tbody td {
        padding-block: 9px
    }

    .hk-rank-medal {
        border: 1px solid #e0c97030;
        background: linear-gradient(145deg, #dac25a16, #ffffff08);
        color: #c8cfc4
    }

    .hk-rank-1 {
        border-color: #ffdf886e;
        background: linear-gradient(145deg, #f4d779, #bc8739);
        color: #342719;
        box-shadow: 0 0 14px #f0d4783a
    }

    .hk-rank-2 {
        border-color: #cbd6df66;
        color: #e0e4e4
    }

    .hk-rank-3 {
        border-color: #d995625c;
        color: #edb080
    }

    .hk-you-tag {
        margin-right: 5px;
        padding: 3px 6px;
        border-radius: 6px;
        background: #63e4ad20;
        color: #82edbc;
        font-size: 8px
    }

    .hk-my-rank-card {
        display: grid;
        grid-template-columns:46px minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 12px;
        margin: 14px 0 24px;
        padding: 15px;
        border: 1px solid #8be8ba70;
        border-radius: 20px;
        background: radial-gradient(ellipse at 0 50%, #62e5b51c, transparent 42%), linear-gradient(115deg, #12382f, #121d28 70%, #211a2c);
        box-shadow: 0 16px 38px #0004, 0 0 28px #6de5b112;
        animation: hkRise .5s both
    }

    .hk-my-rank-icon {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid #e4c87570;
        border-radius: 15px;
        background: #e7c96b16;
        color: #f2d87f;
        font-size: 21px
    }

    .hk-my-rank-copy {
        display: grid;
        gap: 3px
    }

    .hk-my-rank-copy > span {
        color: #91e9bf;
        font-size: 9px;
        font-weight: 900
    }

    .hk-my-rank-copy strong {
        color: #fff0c8;
        font-size: 15px
    }

    .hk-my-rank-copy small {
        color: #9cb0a6;
        font-size: 9px
    }

    .hk-my-rank-card > img {
        width: 48px;
        height: 48px;
        border: 2px solid #e6ca78;
        border-radius: 50%;
        object-fit: cover
    }

    .hk-my-rank-numbers {
        display: flex;
        gap: 12px
    }

    .hk-my-rank-numbers > b {
        display: grid;
        gap: 2px;
        color: #8de9bc;
        text-align: center;
        font-size: 13px
    }

    .hk-my-rank-numbers small {
        color: #96a99f;
        font-size: 8px;
        font-weight: 500
    }

    .hk-my-rank-unranked {
        grid-template-columns:46px minmax(0, 1fr)
    }

    .hk-daily-modal .hk-daily-panel {
        isolation: isolate
    }

    .hk-daily-modal .hk-treasure {
        will-change: transform
    }

    .hk-daily-modal.is-opening .hk-daily-gem {
        animation: hkGemBeat .35s ease-in-out infinite
    }

    .hk-daily-modal.is-opening .hk-treasure.is-selected .hk-chest {
        filter: drop-shadow(0 0 18px #ffdc74aa) drop-shadow(0 14px 11px #0008)
    }

    .hk-result-sparkle {
        pointer-events: none
    }

    .hk-daily-result:before, .hk-daily-result:after {
        content: "";
        position: absolute;
        inset: -35% -10%;
        z-index: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #ffe08e 0 2px, transparent 3px), radial-gradient(circle, #8af2c1 0 2px, transparent 3px), radial-gradient(circle, #e9a5ff 0 2px, transparent 3px), radial-gradient(circle, #fff4c5 0 1.5px, transparent 3px);
        background-size: 79px 91px, 113px 105px, 137px 119px, 53px 67px;
        background-position: 0 0, 25px 40px, 65px 15px, 18px 70px;
        opacity: .45;
        animation: hkConfettiFall 7s linear infinite
    }

    .hk-daily-result:after {
        opacity: .25;
        transform: rotate(13deg);
        animation-duration: 11s;
        animation-direction: reverse
    }

    .hk-daily-result > * {
        position: relative;
        z-index: 1
    }

    .hk-daily-result:has(.hk-result-amount) {
        border-color: #efd47ba6;
        box-shadow: 0 32px 90px #000b, inset 0 1px #fff2, 0 0 50px #e0bc5240
    }

    .hk-daily-result:has(.hk-result-amount) .hk-result-emblem {
        animation: hkEmblemPop .65s .15s both, hkGemBeat 1.8s 1s ease-in-out infinite
    }

    .hk-result-amount {
        animation: hkPrizePop .55s .28s both
    }

    @keyframes hkConfettiFall {
        0% {
            background-position: 0 -180px, 25px -80px, 65px -240px, 18px -100px
        }
        100% {
            background-position: 35px 100vh, -10px 95vh, 95px 110vh, 45px 98vh
        }
    }
    @media (max-width: 700px) {
        .hk-home-player {
            width: 100%;
            min-width: 0
        }

        .hk-home-hero {
            align-items: stretch
        }

        .hk-permission-card {
            grid-template-columns:36px minmax(0, 1fr) auto;
            gap: 8px;
            padding: 10px
        }

        .hk-permission-icon {
            width: 34px;
            height: 34px
        }

        .hk-permission-card > button:not(.hk-permission-dismiss) {
            grid-column: 2/4;
            justify-self: start
        }

        .hk-permission-dismiss {
            position: absolute;
            left: 7px;
            top: 6px
        }

        .hk-podium {
            gap: 7px
        }

        .hk-podium-card {
            min-height: 168px;
            padding-inline: 7px
        }

        .hk-podium-card.hk-podium-1 {
            min-height: 196px
        }

        .hk-my-rank-card {
            grid-template-columns:40px minmax(0, 1fr) auto
        }

        .hk-my-rank-card > img {
            grid-column: 1;
            grid-row: 2;
            width: 40px;
            height: 40px
        }

        .hk-my-rank-numbers {
            grid-column: 2/4;
            justify-content: flex-start
        }

        .hk-my-rank-copy {
            grid-column: 2/4
        }

        .hk-my-rank-unranked {
            grid-template-columns:40px minmax(0, 1fr)
        }
    }
    @media (max-width: 430px) {
        .hk-home-player {
            grid-template-columns:56px minmax(0, 1fr) 18px;
            padding: 9px
        }

        .hk-podium {
            grid-template-columns:repeat(2, minmax(0, 1fr));
            align-items: stretch
        }

        .hk-podium-card.hk-podium-1 {
            grid-column: 1/-1;
            order: 0;
            min-height: 185px
        }

        .hk-podium-card.hk-podium-2 {
            order: 1
        }

        .hk-podium-card.hk-podium-3 {
            order: 2
        }

        .hk-podium-card {
            min-height: 158px
        }

        .hk-podium-card > img {
            width: 58px;
            height: 58px
        }

        .hk-podium-1 > img {
            width: 76px;
            height: 76px
        }

        .hk-my-rank-card {
            gap: 8px;
            padding: 11px
        }

        .hk-my-rank-copy strong {
            font-size: 13px
        }

        .hk-my-rank-copy small {
            line-height: 1.6
        }

        .hk-my-rank-numbers {
            gap: 17px
        }

        .hk-leader-table {
            min-width: 390px
        }

        .hk-section-head {
            flex-wrap: wrap
        }

        .hk-top50-badge {
            margin-right: 52px
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .hk-podium-card, .hk-my-rank-card, .hk-daily-result:before, .hk-daily-result:after {
            animation: none !important
        }
    }
}

/* Profile stats and accessible account controls */
.hk-profile-vitals {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 4px
}

.hk-profile-vitals > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ffffff12;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff0a, #030a1014)
}

.hk-profile-vitals i {
    display: grid;
    place-items: center;
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    border: 1px solid #e5c97535;
    border-radius: 11px;
    background: #e5c97512;
    font-style: normal
}

.hk-profile-vitals span {
    display: grid;
    gap: 3px;
    min-width: 0
}

.hk-profile-vitals small {
    color: #97ada2;
    font-size: 8px
}

.hk-profile-vitals b {
    overflow: hidden;
    color: #e9d99e;
    font-size: 11px;
    text-overflow: ellipsis
}

.hk-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.hk-password-toggle {
    border: 0;
    background: none;
    color: #7ee5b8;
    font: 700 9px system-ui;
    cursor: pointer
}

.hk-profile-links button {
    transition: transform .2s, border-color .2s, box-shadow .2s
}

.hk-profile-links button:hover {
    box-shadow: 0 12px 26px #0003
}

.hk-daily-result.is-winner {
    border-color: #efd47ba6;
    box-shadow: 0 32px 90px #000b, inset 0 1px #fff2, 0 0 50px #e0bc5240
}

.hk-daily-result.is-winner .hk-result-emblem {
    animation: hkEmblemPop .65s .15s both, hkGemBeat 1.8s 1s ease-in-out infinite
}

.hk-daily-result.is-cooldown:before, .hk-daily-result.is-cooldown:after {
    opacity: .08;
    animation: none
}

.hk-daily-result.is-winner:before, .hk-daily-result.is-winner:after {
    opacity: .5
}

@media (max-width: 600px) {
    .hk-profile-vitals {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .hk-profile-identity {
        align-items: flex-start
    }

    .hk-profile-card {
        padding: 15px
    }
}

@media (max-width: 360px) {
    .hk-profile-vitals > div {
        padding: 8px;
        gap: 6px
    }

    .hk-profile-vitals i {
        flex-basis: 28px;
        width: 28px;
        height: 28px
    }
}

/* Two independent permission prompts stay readable on narrow screens */
.hk-permission-card {
    grid-template-columns:42px minmax(0, 1fr) auto auto 20px
}

.hk-permission-card > button:not(.hk-permission-dismiss) {
    grid-column: auto
}

@media (max-width: 700px) {
    .hk-permission-card {
        grid-template-columns:36px minmax(0, 1fr) auto auto 20px
    }

    .hk-permission-card > button:not(.hk-permission-dismiss) {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        padding-inline: 9px
    }
}

@media (max-width: 480px) {
    .hk-permission-card {
        grid-template-columns:34px minmax(0, 1fr) auto auto;
        align-items: center;
        padding: 10px 9px
    }

    .hk-permission-card > div {
        grid-column: 2/5;
        padding-left: 16px
    }

    .hk-permission-card > button:not(.hk-permission-dismiss) {
        grid-row: 2;
        min-height: 33px;
        padding: 0 7px;
        font-size: 9px
    }

    .hk-permission-card > button:nth-last-child(2) {
        grid-column: 3
    }

    .hk-permission-card > button:nth-last-child(3) {
        grid-column: 2
    }

    .hk-permission-icon {
        grid-row: 1;
        width: 32px;
        height: 32px
    }

    .hk-permission-dismiss {
        position: absolute;
        left: 5px;
        top: 4px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-daily-result.is-winner .hk-result-emblem {
        animation: none !important
    }
}

/* A single scrollable app surface receives AJAX pages after the splash screen. */
.content.hk-app-host#ajaxer {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100% !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    z-index: 11000 !important;
    background: #080d12
}

.content.hk-app-host#ajaxer > .hk-entry-screen {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow: visible
}

.content.hk-app-host#ajaxer > .hk-entry-screen, .content.hk-app-host#ajaxer > .hk-entry-screen * {
    box-sizing: border-box
}

.content.hk-app-host#ajaxer .hk-app-page {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overflow: visible !important;
    overscroll-behavior: initial
}

.hk-entry-cta {
    min-height: 76px
}

/* Premium, clearly differentiated MYBALL market packages. */
.hk-market-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    margin: 2px 0 20px;
    padding: clamp(18px, 4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e9cb7952;
    border-radius: 26px;
    background: radial-gradient(ellipse at 12% 10%, #edd1811b, transparent 36%), radial-gradient(ellipse at 82% 110%, #51e3b41b, transparent 42%), linear-gradient(125deg, #15362f, #101b27 62%, #231b30);
    box-shadow: 0 20px 55px #0006, inset 0 1px #fff2
}

.hk-market-heading {
    position: relative;
    z-index: 1;
    min-width: 0
}

.hk-market-heading .hk-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a5f1ce
}

.hk-market-heading .hk-page-kicker i {
    font-style: normal;
    color: #f5d47f
}

.hk-market-heading .hk-page-title {
    margin: 7px 0 3px;
    font-size: clamp(24px, 4vw, 38px)
}

.hk-market-heading .hk-page-subtitle {
    max-width: 520px
}

.hk-market-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px
}

.hk-market-highlights span {
    padding: 7px 10px;
    border: 1px solid #ffffff17;
    border-radius: 999px;
    background: #020a0d38;
    color: #d8e9df;
    font-size: 10px;
    font-weight: 800
}

.hk-market-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex: 0 0 auto
}

.hk-market-actions .hk-back-action {
    min-height: 40px;
    justify-content: center
}

.hk-market-actions .hk-back-action span {
    font-size: 17px;
    color: #f2d681
}

.hk-market-hero .hk-wallet {
    min-width: 150px;
    padding: 9px 12px;
    border-color: #efd07d57;
    background: #07120f9c;
    color: #f5e7ba
}

.hk-wallet-gem {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffe39135, #eebd3a12);
    box-shadow: inset 0 1px #fff5, 0 5px 16px #eec54c17
}

.hk-wallet-gem img {
    width: 27px;
    height: 27px;
    object-fit: contain
}

.hk-wallet-copy {
    display: grid;
    gap: 2px
}

.hk-wallet-copy small {
    color: #a4b6ad;
    font-size: 9px
}

.hk-wallet-copy b {
    color: #ffdf83;
    font-size: 16px;
    font-variant-numeric: tabular-nums
}

.hk-market-orbit {
    position: absolute;
    z-index: 0;
    left: 36%;
    top: -65px;
    color: #ffda8044;
    font-size: 180px;
    line-height: 1;
    transform: rotate(-18deg);
    pointer-events: none;
    text-shadow: 0 0 55px #f2ce7b25
}

.hk-market-section {
    width: 100%
}

.hk-market-section-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 13px;
    padding-inline: 3px
}

.hk-market-section-head > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border: 1px solid #edd17b55;
    border-radius: 13px;
    background: #eacb7617;
    color: #f4d987;
    font-size: 20px
}

.hk-market-section-head h2 {
    margin: 0;
    color: #f5e5bc;
    font-size: 16px;
    font-weight: 950
}

.hk-market-section-head p {
    margin: 3px 0 0;
    color: #93aaa0;
    font-size: 10px
}

.hk-market-section-head > b {
    margin-inline-start: auto;
    color: #efcf7b99;
    font-size: 18px
}

.gridel.hk-market-grid {
    width: 100%;
    margin: 0 0 28px;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: 15px;
    align-items: stretch
}

.hk-market-card {
    --pack-a: #20cfe3;
    --pack-b: #6555e9;
    --pack-glow: #36d9ee;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    min-height: 328px;
    padding: 17px 17px 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--pack-a) 36%, transparent);
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 2%, color-mix(in srgb, var(--pack-a) 19%, transparent), transparent 46%), linear-gradient(153deg, #182932 0%, #111b26 55%, #1b1a2b 100%);
    color: #f7f5ea;
    text-align: right;
    box-shadow: 0 16px 35px #0006, inset 0 1px #ffffff1a;
    cursor: pointer;
    transition: transform .25s, border-color .25s, box-shadow .25s, filter .25s;
    animation: hkRise .45s both
}

.hk-market-card:before {
    content: "";
    position: absolute;
    z-index: 2;
    opacity: .42;
    top: -60%;
    left: -55%;
    width: 58%;
    height: 220%;
    transform: rotate(28deg);
    background: linear-gradient(90deg, transparent, #ffffff16, transparent);
    transition: left .65s ease;
    pointer-events: none
}

.hk-market-card:after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -32px;
    bottom: -52px;
    width: 160px;
    height: 160px;
    border: 1px solid color-mix(in srgb, var(--pack-a) 27%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 17px color-mix(in srgb, var(--pack-a) 5%, transparent), 0 0 50px color-mix(in srgb, var(--pack-a) 13%, transparent);
    pointer-events: none
}

.hk-market-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--pack-a) 78%, white);
    box-shadow: 0 24px 48px #0008, 0 0 30px color-mix(in srgb, var(--pack-glow) 22%, transparent);
    filter: brightness(1.06)
}

.hk-market-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pack-a) 75%, white);
    outline-offset: 3px
}

.hk-market-card > * {
    position: relative;
    z-index: 1
}

.hk-market-card > .hk-pack-badge {
    z-index: 3
}

.hk-market-card:hover:before {
    left: 120%
}

.hk-market-card.hk-pack-diamond {
    --pack-a: #48e5ee;
    --pack-b: #387bff;
    --pack-glow: #43eaff
}

.hk-market-card.hk-pack-credit {
    --pack-a: #f2bb63;
    --pack-b: #eb7d43;
    --pack-glow: #ffc477
}

.hk-market-card.hk-pack-star {
    --pack-a: #d594ff;
    --pack-b: #7859ef;
    --pack-glow: #d49aff
}

.hk-market-card.hk-pack-video {
    --pack-a: #5ae5ac;
    --pack-b: #2aa9a0;
    --pack-glow: #75f3bf
}

.hk-market-card .hk-pack-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--pack-a) 36%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pack-a) 12%, #07120f);
    color: color-mix(in srgb, var(--pack-a) 74%, white);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .02em
}

.hk-market-card .hk-pack-art {
    position: relative;
    display: grid;
    place-items: center;
    align-self: center;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    margin: 11px auto 8px;
    border: 1px solid color-mix(in srgb, var(--pack-a) 48%, transparent);
    border-radius: 26px;
    background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--pack-a) 29%, transparent), transparent 65%), linear-gradient(145deg, #ffffff12, #00000017);
    box-shadow: 0 9px 25px #0006, inset 0 1px #fff3, 0 0 30px color-mix(in srgb, var(--pack-glow) 14%, transparent);
    transform: rotate(-5deg);
    transition: transform .3s, box-shadow .3s
}

.hk-market-card:hover .hk-pack-art {
    transform: rotate(0) scale(1.06);
    box-shadow: 0 13px 30px #0007, inset 0 1px #fff4, 0 0 38px color-mix(in srgb, var(--pack-glow) 25%, transparent)
}

.hk-market-card .iconpack, .hk-market-card .hk-pack-art svg {
    width: 58px;
    height: 58px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 11px #0008)
}

.hk-market-card.hk-pack-credit .hk-pack-art {
    color: #ffd780
}

.hk-market-card .hk-pack-kind {
    align-self: center;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--pack-a) 26%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pack-a) 8%, transparent);
    color: color-mix(in srgb, var(--pack-a) 60%, white);
    font-size: 9px;
    font-weight: 900
}

.hk-market-card h3 {
    display: grid;
    place-items: center;
    min-height: 36px;
    max-width: 100%;
    margin: 9px 0 4px;
    color: #f4ead1;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center
}

.hk-market-card .hk-pack-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-height: 40px;
    gap: 6px;
    margin: 0 auto 9px;
    color: var(--pack-a);
    text-shadow: 0 0 22px color-mix(in srgb, var(--pack-glow) 24%, transparent)
}

.hk-market-card .hk-pack-count strong {
    font-size: clamp(25px, 4vw, 33px);
    line-height: 1.15;
    font-weight: 1000;
    font-variant-numeric: tabular-nums
}

.hk-market-card .hk-pack-count small {
    color: #b6c4bc;
    font-size: 10px;
    font-weight: 800
}

.hk-market-card .hk-pack-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #ffffff13;
    color: #fff0ce
}

.hk-market-card .hk-pack-price b {
    font-size: 16px;
    font-weight: 950;
    font-variant-numeric: tabular-nums
}

.hk-market-card .hk-pack-price small {
    color: #9baea4;
    font-size: 9px
}

.hk-market-card .hk-pack-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    margin-top: 11px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--pack-a) 40%, transparent);
    border-radius: 14px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--pack-a) 25%, #101822), color-mix(in srgb, var(--pack-b) 28%, #101822));
    color: #f3f5e9;
    font-size: 11px;
    font-weight: 950;
    box-shadow: inset 0 1px #ffffff19, 0 6px 15px #0003
}

.hk-market-card .hk-pack-cta b {
    color: var(--pack-a);
    font-size: 16px;
    transition: transform .2s
}

.hk-market-card:hover .hk-pack-cta b {
    transform: translateX(-3px)
}

@media (max-width: 760px) {
    .hk-market-hero {
        align-items: flex-start
    }

    .hk-market-orbit {
        left: 25%;
        font-size: 140px
    }

    .gridel.hk-market-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .hk-market-card {
        min-height: 300px;
        padding: 13px 12px
    }

    .hk-market-card .hk-pack-art {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        border-radius: 22px
    }

    .hk-market-card .iconpack, .hk-market-card .hk-pack-art svg {
        width: 51px;
        height: 51px
    }
}

@media (max-width: 520px) {
    .hk-market-hero {
        flex-direction: column;
        gap: 14px;
        padding: 17px;
        border-radius: 21px
    }

    .hk-market-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between
    }

    .hk-market-actions .hk-wallet {
        min-width: 0;
        flex: 1;
        justify-content: center
    }

    .hk-market-actions .hk-back-action {
        min-width: 94px
    }

    .hk-market-highlights {
        gap: 5px
    }

    .hk-market-highlights span {
        font-size: 8px;
        padding: 6px 8px
    }

    .hk-market-orbit {
        left: 0;
        top: -25px;
        font-size: 115px
    }

    .hk-market-card {
        min-height: 306px;
        padding: 12px 10px;
        border-radius: 19px
    }

    .hk-market-card .hk-pack-badge {
        top: 9px;
        left: 8px;
        padding: 4px 6px;
        font-size: 7px
    }

    .hk-market-card h3 {
        font-size: 11px
    }

    .hk-market-card .hk-pack-count strong {
        font-size: 25px
    }

    .hk-market-card .hk-pack-price b {
        font-size: 13px
    }

    .hk-market-card .hk-pack-cta {
        min-height: 39px;
        padding: 0 10px;
        font-size: 9px
    }
}

@media (max-width: 350px) {
    .gridel.hk-market-grid {
        grid-template-columns:minmax(0, 1fr)
    }

    .hk-market-card {
        min-height: 306px
    }

    .hk-market-highlights span {
        font-size: 8px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-market-card, .hk-market-card:before, .hk-market-card .hk-pack-art, .hk-market-card .hk-pack-cta b {
        animation: none !important;
        transition: none !important
    }
}

@media (min-width: 761px) {
    .hk-market-card {
        min-height: 356px
    }

    .hk-market-card .hk-pack-art {
        flex-basis: 108px;
        width: 108px;
        height: 108px;
        margin-top: 13px
    }

    .hk-market-card .iconpack {
        width: 98px;
        height: 98px
    }

    .hk-market-card .hk-pack-art svg {
        width: 76px;
        height: 76px
    }
}


/* Final responsive account polish: home identity, permissions, podium, ranks and guide. */
main.hk-app-page .hk-home-hero {
    align-items: stretch;
    gap: clamp(16px, 3vw, 30px)
}

main.hk-app-page .hk-home-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0
}

main.hk-app-page .hk-home-welcome h1 {
    max-width: 100%;
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1.18;
    overflow-wrap: anywhere
}

main.hk-app-page .hk-home-name {
    display: block;
    margin-top: 4px;
    color: #ffe3a0;
    font-size: .72em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-shadow: 0 0 24px #e8c56b24
}

main.hk-app-page .hk-home-player {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns:minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: 9px;
    flex: 0 0 clamp(210px, 27%, 280px);
    width: auto;
    min-width: 0;
    max-width: 280px;
    min-height: 240px;
    padding: 23px 17px 17px;
    border: 1px solid #edcf7d70;
    border-radius: 23px;
    background: radial-gradient(circle at 50% 0, #e8c76c1e, transparent 54%), linear-gradient(145deg, #0b201edb, #121a27 70%, #241b2d);
    color: #f4e5bb;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
    box-shadow: 0 18px 42px #0006, inset 0 1px #fff3;
    cursor: pointer
}

main.hk-app-page .hk-home-player > img {
    width: clamp(76px, 8vw, 98px);
    height: clamp(76px, 8vw, 98px);
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #f2d27d;
    border-radius: 25px;
    box-shadow: 0 0 0 6px #eacb6c17, 0 12px 25px #0008
}

main.hk-app-page .hk-home-player > span {
    display: grid;
    justify-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0
}

main.hk-app-page .hk-home-player small {
    color: #8de7bb;
    font-size: 10px;
    font-weight: 800
}

main.hk-app-page .hk-home-player strong {
    max-width: 100%;
    color: #fff0c7;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal
}

main.hk-app-page .hk-home-player b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #ffffff18;
    border-radius: 999px;
    background: #ffffff09;
    color: #a9beb3;
    font-size: 9px
}

main.hk-app-page .hk-home-player b em {
    color: #f3d77e;
    font-size: 13px;
    font-style: normal
}

main.hk-app-page .hk-home-player > i {
    position: absolute;
    top: 11px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid #e8c96b4a;
    border-radius: 10px;
    background: #e5c46b17;
    color: #f4d781;
    font-style: normal;
    font-size: 16px;
    text-shadow: 0 0 16px #f2d27766
}

main.hk-app-page .hk-permission-card {
    grid-template-columns:44px minmax(0, 1fr) auto auto 22px;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 15px;
    border-color: #7be7bd43;
    border-radius: 19px;
    background: linear-gradient(112deg, #10342feF, #111c29f7 66%, #1e1b2b);
    box-shadow: 0 14px 32px #0004, inset 0 1px #ffffff10
}

main.hk-app-page .hk-permission-card > div {
    grid-column: auto !important;
    padding: 0 !important
}

main.hk-app-page .hk-permission-card strong {
    display: block;
    color: #f0f1df;
    font-size: 12px;
    font-weight: 950
}

main.hk-app-page .hk-permission-card p {
    font-size: 10px;
    line-height: 1.8
}

main.hk-app-page .hk-permission-card small {
    font-size: 9px;
    line-height: 1.6
}

main.hk-app-page .hk-permission-card > button:not(.hk-permission-dismiss) {
    appearance: none;
    -webkit-appearance: none;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: stretch;
    min-width: 95px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #82edc284;
    border-radius: 12px;
    background: linear-gradient(115deg, #77e8b7, #54cfcb);
    color: #09241e;
    font: 900 10px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    box-shadow: 0 7px 18px #4bdbb02a, inset 0 1px #ffffffa8;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s, filter .2s
}

main.hk-app-page .hk-permission-card > button:not(.hk-permission-dismiss):hover {
    transform: translateY(-2px);
    filter: brightness(1.07)
}

main.hk-app-page .hk-permission-dismiss {
    position: static;
    align-self: center;
    width: 24px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #ffffff08;
    color: #b6c7be;
    font-size: 18px
}

.hk-podium {
    perspective: 900px;
    gap: clamp(9px, 1.5vw, 16px);
    align-items: end;
    margin-top: 16px;
    margin-bottom: 22px
}

.hk-podium-card {
    min-height: 205px;
    padding: 20px 14px 16px;
    border-color: #d8c16c68;
    background: radial-gradient(ellipse at 50% 0, #b9e8d00e, transparent 58%), linear-gradient(150deg, #19302d, #111b26 68%, #251b30);
    box-shadow: 0 20px 45px #0006, inset 0 1px #fff2;
    transform: translateZ(0)
}

.hk-podium-card.hk-podium-1 {
    min-height: 244px;
    border-color: #ffe18e;
    background: radial-gradient(ellipse at 50% 0, #ffe0883d, transparent 59%), linear-gradient(150deg, #3a3424, #182723 55%, #2b2130);
    box-shadow: 0 22px 55px #0007, 0 0 40px #e6c76d2c, inset 0 1px #fff5
}

.hk-podium-card.hk-podium-2 {
    background: radial-gradient(ellipse at 50% 0, #d6e5f326, transparent 55%), linear-gradient(150deg, #253039, #111b26 70%, #211e2b)
}

.hk-podium-card.hk-podium-3 {
    background: radial-gradient(ellipse at 50% 0, #e29c6426, transparent 55%), linear-gradient(150deg, #352923, #111b26 70%, #211e2b)
}

.hk-podium-card.is-me {
    outline: 2px solid #ffdf80;
    outline-offset: 3px;
    box-shadow: 0 0 0 7px #edcf7d18, 0 18px 45px #0007
}

.hk-podium-card > strong {
    max-width: 100%;
    font-size: clamp(11px, 1.4vw, 14px);
    text-align: center;
    line-height: 1.5
}

.hk-podium-score {
    padding: 4px 10px;
    border: 1px solid #85e9bb2f;
    border-radius: 999px;
    background: #76e2b310;
    color: #9bf4c9;
    font-size: 15px
}

.hk-podium-1 .hk-podium-score {
    border-color: #f5d67c65;
    background: #f5d67c13;
    color: #ffe69c
}

.hk-leader-table-wrap, .hk-leader-table {
    width: 100%;
    min-width: 0
}

.hk-leader-table {
    min-width: 530px;
    table-layout: auto
}

.hk-leader-table thead th {
    padding-block: 12px;
    font-size: 10px
}

.hk-leader-table tbody td {
    padding: 10px 8px;
    font-size: 11px;
    vertical-align: middle
}

.hk-leader-table th:first-child, .hk-leader-table td:first-child, .hk-leader-table th:nth-child(2), .hk-leader-table td:nth-child(2) {
    width: 62px;
    text-align: center
}

.hk-leader-table .hk-avatar-cell img {
    display: block;
    width: 42px;
    height: 42px;
    margin: auto;
    border: 2px solid #d7c77c;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px #0007
}

.hk-leader-table .hk-player-cell {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 8px;
    text-align: right
}

.hk-leader-table .hk-player-cell strong {
    color: #e9eee3;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5
}

.hk-leader-table tbody tr.hk-me-row {
    position: relative;
    background: linear-gradient(90deg, #614c1b55, #382e1d77 55%, #51401a55);
    box-shadow: inset 3px 0 #ffd56d, inset 0 1px #ffdf8e55, inset 0 -1px #ffdf8e55
}

.hk-leader-table tbody tr.hk-me-row td {
    border-top: 1px solid #f4d37b55;
    border-bottom: 1px solid #f4d37b55;
    color: #fff1be;
    font-weight: 900
}

.hk-leader-table tbody tr.hk-me-row td:first-child {
    border-radius: 0 12px 12px 0
}

.hk-leader-table tbody tr.hk-me-row td:last-child {
    border-radius: 12px 0 0 12px
}

.hk-leader-table tbody tr.hk-me-row .hk-player-cell strong, .hk-leader-table tbody tr.hk-me-row .hk-score {
    color: #ffe39b;
    font-weight: 1000
}

.hk-leader-table tbody tr.hk-me-row .hk-avatar-cell img {
    border-color: #ffdf80;
    box-shadow: 0 0 0 4px #f4d47820, 0 6px 18px #0008
}

.hk-leader-table .hk-me-outside-row {
    background: linear-gradient(90deg, #624d1c75, #3b301d90 55%, #60491a75)
}

.hk-leader-table .hk-me-outside-row .hk-rank-medal {
    min-width: 36px;
    width: auto;
    padding-inline: 6px;
    border-color: #ffdf82;
    color: #ffe39b;
    font-weight: 1000
}

.hk-you-tag {
    display: inline-flex;
    vertical-align: middle;
    border: 1px solid #f5d87972;
    background: #f5d8791c;
    color: #ffdf85;
    font-weight: 1000
}

.hk-profile-links button {
    appearance: none;
    -webkit-appearance: none;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif
}

.hk-help-hero {
    background: radial-gradient(ellipse at 10% 0, #eed27a1c, transparent 39%), linear-gradient(130deg, #12392f, #111a27 62%, #24192e)
}

.hk-help-intro {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 14px;
    padding: 18px 20px;
    border-color: #77e5b842;
    background: linear-gradient(120deg, #14362f, #111b27 70%, #201b2b)
}

.hk-help-emblem {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border: 1px solid #e6cb765d;
    border-radius: 18px;
    background: linear-gradient(145deg, #f4d57525, #55deb11a);
    color: #ffe09a;
    font-size: 28px;
    box-shadow: inset 0 1px #fff3, 0 8px 22px #0004
}

.hk-help-intro strong {
    color: #fff0c7;
    font-size: 14px
}

.hk-help-intro p {
    margin: 5px 0 0;
    color: #a9beb2;
    font-size: 11px;
    line-height: 1.85
}

.hk-help-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 12px
}

.hk-help-card {
    position: relative;
    display: grid;
    grid-template-columns:48px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    border: 1px solid #ffffff16;
    border-radius: 19px;
    background: linear-gradient(145deg, #14242a, #101922 65%, #211b2a);
    box-shadow: 0 12px 27px #0004, inset 0 1px #fff1;
    transition: transform .22s, border-color .22s, box-shadow .22s
}

.hk-help-card:hover {
    transform: translateY(-3px);
    border-color: #8be8bb62;
    box-shadow: 0 17px 34px #0006, 0 0 22px #7ce3b512
}

.hk-help-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #ffffff20;
    border-radius: 15px;
    background: #ffffff09;
    font-size: 21px;
    box-shadow: inset 0 1px #fff2
}

.hk-help-green {
    color: #ffda83;
    background: #e9c85d18;
    border-color: #edcf7d4a
}

.hk-help-blue {
    color: #92d9ff;
    background: #58bce518;
    border-color: #80d1ff43
}

.hk-help-gold {
    color: #ffc979;
    background: #f0a84d17;
    border-color: #ffc97945
}

.hk-help-violet {
    color: #d4a1ff;
    background: #a86ce51a;
    border-color: #c48cff45
}

.hk-help-red {
    color: #ff9da3;
    background: #eb6d7519;
    border-color: #f9949a45
}

.hk-help-mint {
    color: #84edbd;
    background: #58dba81a;
    border-color: #83ebbd45
}

.hk-help-card h2 {
    margin: 1px 0 5px;
    color: #f5e7c4;
    font-size: 13px;
    font-weight: 950
}

.hk-help-card p {
    margin: 0;
    color: #aabbb2;
    font-size: 10px;
    line-height: 1.9
}

.hk-help-step {
    justify-self: end;
    color: #d3c18180;
    font-size: 9px;
    font-variant-numeric: tabular-nums
}

.hk-help-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #e7ca7650;
    border-radius: 17px;
    background: linear-gradient(110deg, #3b311b70, #142923)
}

.hk-help-note > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border: 1px solid #e4ca7850;
    border-radius: 12px;
    background: #e1c56c17;
    color: #f5da88;
    font-size: 19px
}

.hk-help-note strong {
    color: #f2dfa9;
    font-size: 11px
}

.hk-help-note p {
    margin: 3px 0 0;
    color: #9eb0a5;
    font-size: 10px;
    line-height: 1.8
}

.hk-help-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 2px 4px;
    color: #81978b;
    font-size: 9px
}

.hk-help-footer a {
    color: #8be8bc;
    text-decoration: none
}

@media (max-width: 760px) {
    main.hk-app-page .hk-home-hero {
        flex-direction: column
    }

    .hk-home-player {
        flex: 0 0 auto;
        align-self: center;
        width: min(100%, 390px);
        max-width: 390px;
        min-height: 0
    }

    main.hk-app-page .hk-home-welcome h1 {
        font-size: clamp(25px, 7vw, 36px)
    }

    main.hk-app-page .hk-permission-card {
        grid-template-columns:38px minmax(0, 1fr) 24px;
        gap: 8px;
        padding: 12px
    }

    main.hk-app-page .hk-permission-card > div {
        grid-column: 2/4 !important
    }

    main.hk-app-page .hk-permission-card > button:not(.hk-permission-dismiss) {
        grid-column: 2/4 !important;
        justify-self: stretch;
        min-height: 42px
    }

    main.hk-app-page .hk-permission-dismiss {
        position: absolute;
        top: 8px;
        left: 8px
    }

    .hk-help-grid {
        grid-template-columns:minmax(0, 1fr)
    }

    .hk-podium-card {
        padding-inline: 8px
    }
}

@media (max-width: 480px) {
    .hk-leader-table {
        min-width: 490px
    }

    .hk-leader-table .hk-avatar-cell img {
        width: 36px;
        height: 36px
    }

    .hk-leader-table tbody td {
        padding: 8px 6px;
        font-size: 10px
    }

    .hk-podium {
        gap: 7px
    }

    .hk-podium-card {
        min-height: 170px;
        padding-top: 18px
    }

    .hk-podium-card.hk-podium-1 {
        min-height: 198px
    }

    .hk-help-intro {
        align-items: flex-start;
        padding: 14px
    }

    .hk-help-emblem {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        border-radius: 14px
    }

    .hk-help-card {
        grid-template-columns:42px minmax(0, 1fr) 22px;
        gap: 9px;
        padding: 14px
    }

    .hk-help-icon {
        width: 41px;
        height: 41px;
        border-radius: 13px
    }

    .hk-help-card p {
        font-size: 10px
    }

    .hk-help-footer {
        flex-direction: column
    }

    .hk-permission-card {
        padding: 11px !important
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-help-card, .hk-podium-card, .hk-home-player, .hk-permission-card > button {
        transition: none !important;
        animation: none !important
    }
}


/* Keep the daily reward result popup centered and inside the viewport on phones and desktops. */
.popup_box:has(.hk-daily-result) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 20001 !important;
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
    transform: none !important;
    background: #050a11ed !important;
}

.popup_box:has(.hk-daily-result) .hk-daily-result {
    width: min(620px, calc(100vw - 24px)) !important;
    max-width: 100% !important;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
    min-width: 0 !important;
    margin: auto !important;
    padding: clamp(18px, 4vw, 30px) !important;
    overflow: auto !important;
    box-sizing: border-box !important;
}

.popup_box:has(.hk-daily-result) .hk-result-amount {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 560px) {
    .popup_box:has(.hk-daily-result) {
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important
    }

    .popup_box:has(.hk-daily-result) .hk-daily-result {
        width: min(100%, 520px) !important;
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        padding: 19px 13px !important;
        border-radius: 23px !important
    }

    .popup_box:has(.hk-daily-result) .hk-result-confirm {
        max-width: 100%;
        white-space: normal
    }
}


/* Keep the daily-reward dialog centered even when older popup rules are loaded later or phone widths are narrow. */
#pop_daily_prize.hk-daily-modal,
.hk-daily-modal#pop_daily_prize {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    display: grid !important;
    place-items: center !important;
    justify-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

#pop_daily_prize > .hk-daily-panel,
#pop_daily_prize > .hk-daily-result,
#pop_daily_prize.hk-daily-result {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: min(620px, 100%) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* The reward response is injected into the existing modal with AJAX. Pin the
   result card to the viewport center too, so transformed/narrow app containers
   cannot leave the card stranded at the left edge. */
#pop_daily_prize .hk-daily-result,
.popup_box:has(.hk-daily-result) .hk-daily-result {
    position: fixed !important;
    inset: auto !important;
    left: 50vw !important;
    right: auto !important;
    top: 50vh !important;
    top: 50dvh !important;
    bottom: auto !important;
    translate: -50% -50% !important;
    transform: none !important;
    margin: 0 !important;
    width: min(620px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

@media (max-height: 620px), (max-width: 360px) {
    #pop_daily_prize.hk-daily-modal,
    .hk-daily-modal#pop_daily_prize {
        align-items: start !important;
    }

    #pop_daily_prize .hk-daily-result,
    .popup_box:has(.hk-daily-result) .hk-daily-result {
        top: 50dvh !important;
        min-height: 0 !important;
        padding: 22px 14px !important;
    }
}

/* Home-screen / browser save prompt: visible only in normal browser mode on the main menu. */
#hk-save-prompt[hidden] {
    display: none !important;
}

.hk-save-prompt {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin: 0 auto 18px;
    padding: 15px 46px 15px 16px;
    overflow: hidden;
    border: 1px solid #d7bd6a55;
    border-radius: 19px;
    background: radial-gradient(ellipse at 0 0, #31a77725, transparent 48%), linear-gradient(125deg, #132923f5, #171923f5 70%, #201c2a);
    box-shadow: 0 14px 36px #0003, inset 0 1px #ffffff12;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .24s ease, transform .24s ease;
}

.hk-save-prompt.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hk-save-prompt-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #a8efbd70;
    border-radius: 15px;
    color: #ffe29a;
    background: linear-gradient(145deg, #25684d, #142d28);
    font-size: 25px;
    box-shadow: inset 0 1px #fff2, 0 8px 20px #0003;
}

.hk-save-prompt-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hk-save-prompt-copy strong {
    color: #ffedc0;
    font-size: 14px;
    font-weight: 900;
}

.hk-save-prompt-copy small {
    color: #b7c9c2;
    font-size: 11px;
    line-height: 1.8;
}

.hk-save-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hk-save-prompt-actions button, .hk-save-dialog-close {
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid #e6ca7a66;
    border-radius: 12px;
    color: #f6e6bb;
    background: #ffffff0b;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.hk-save-prompt-actions button:hover, .hk-save-dialog-close:hover {
    transform: translateY(-1px);
    border-color: #f4d77e;
    background: #ffffff15;
}

.hk-save-prompt-actions .hk-save-install {
    color: #17221b;
    border-color: #f2d681;
    background: linear-gradient(115deg, #f6df94, #d1a849);
    box-shadow: 0 7px 18px #c99b3b30;
}

.hk-save-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    color: #dce7e2;
    background: #ffffff10;
    font-size: 18px;
    cursor: pointer;
}

.hk-save-dialog {
    width: min(430px, calc(100vw - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: auto;
    border: 1px solid #d9c16e88;
    border-radius: 23px;
    color: #f2f3ed;
    background: linear-gradient(145deg, #142923, #111820 62%, #211c29);
    box-shadow: 0 28px 90px #000a, inset 0 1px #ffffff14;
}

.hk-save-dialog::backdrop {
    background: #05090bcc;
    backdrop-filter: blur(5px);
}

.hk-save-dialog-inner {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 30px 25px 24px;
    text-align: center;
}

.hk-save-dialog-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #d8c16d77;
    border-radius: 17px;
    color: #ffe19a;
    background: #d6b94c16;
    font-size: 27px;
}

.hk-save-dialog h2 {
    margin: 0;
    color: #ffedc0;
    font-size: 20px;
}

.hk-save-dialog p {
    margin: 0;
    color: #c2d0cb;
    font-size: 14px;
    line-height: 2;
}

.hk-save-dialog-close {
    min-width: 130px;
    margin-top: 5px;
    color: #17221b;
    border-color: #f2d681;
    background: linear-gradient(115deg, #f6df94, #d1a849);
}

@media (max-width: 680px) {
    .hk-save-prompt {
        grid-template-columns:40px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 14px;
        padding: 13px 38px 13px 12px;
        border-radius: 16px;
    }

    .hk-save-prompt-icon {
        width: 39px;
        height: 39px;
        border-radius: 13px;
        font-size: 21px;
    }

    .hk-save-prompt-copy strong {
        font-size: 12px;
    }

    .hk-save-prompt-copy small {
        font-size: 10px;
    }

    .hk-save-prompt-actions {
        grid-column: 1/-1;
        display: grid;
        grid-template-columns:1fr 1fr;
    }

    .hk-save-prompt-actions button {
        min-height: 40px;
        padding: 0 7px;
        font-size: 10px;
    }

    .hk-save-dialog-inner {
        padding: 25px 18px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-save-prompt, .hk-save-prompt-actions button {
        transition: none;
    }
}


/* Hokmland ad video canvas powered by shared player_HD */
.hk-ad-player-wrap {
    position: relative;
    width: min(100%, 760px);
    margin: 18px auto 12px;
    padding: 8px;
    border: 1px solid #c6a55688;
    border-radius: 20px;
    background: linear-gradient(145deg, #102a24, #101720);
    box-shadow: 0 18px 45px #0009, inset 0 1px #ffffff20;
    overflow: hidden
}

.hk-ad-player-wrap canvas#playe_hd_video {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 13px;
    background: #020506;
    touch-action: manipulation
}

.hk-ad-player-wrap video#hokm-ad-video {
    display: block;
    width: 100%;
    max-height: min(62vh, 560px);
    aspect-ratio: 16/9;
    object-fit: contain;
    border: 0;
    border-radius: 13px;
    background: #020506;
    touch-action: manipulation
}

.hk-profile-form fieldset.hk-avatar-options {
    display: block;
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 12px 0 0;
    padding: 14px;
    direction: rtl;
    border: 1px solid #d6b96c;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 0, #c8a44b14, transparent 62%), linear-gradient(145deg, #102b24 0%, #0d1d1b 58%, #171b20 100%);
    box-shadow: inset 0 1px #ffffff12, 0 12px 30px #0005;
}

.hk-profile-form .hk-avatar-options legend {
    max-width: 100%;
    padding: 0 10px;
    color: #f5dc9b;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.hk-profile-form .hk-avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 11px;
    width: 100%;
    min-width: 0;
}

.hk-profile-form form label.hk-avatar-option,
.hk-profile-form label.hk-avatar-option {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(2.4em, auto) auto;
    justify-items: center;
    align-content: start;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 142px;
    margin: 0 !important;
    padding: 12px 7px 10px;
    overflow: hidden;
    border: 1px solid #d7c5893a;
    border-radius: 16px;
    background: linear-gradient(155deg, #ffffff0c, #ffffff03 55%), #101e1c;
    color: #e9eee9;
    cursor: pointer;
    direction: rtl;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.hk-profile-form .hk-avatar-option:hover {
    transform: translateY(-2px);
    border-color: #dfc36d;
    background: linear-gradient(155deg, #d4b35520, #ffffff05 55%), #13241f;
    box-shadow: 0 7px 18px #0005, inset 0 1px #fff2;
}

.hk-profile-form .hk-avatar-option input[type="radio"] {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.hk-profile-form .hk-avatar-option img {
    display: block;
    box-sizing: border-box;
    width: 76px;
    max-width: 100%;
    height: 76px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #d7bd70a8;
    border-radius: 50%;
    background: #14241f;
    box-shadow: 0 4px 12px #0007;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hk-profile-form .hk-avatar-option strong {
    display: block;
    max-width: 100%;
    align-self: center;
    overflow: hidden;
    color: #f2f1e9;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    text-overflow: ellipsis;
}

.hk-profile-form .hk-avatar-option small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 9px;
    border: 1px solid #d5b65b55;
    border-radius: 999px;
    background: #c4a34b16;
    color: #f2d78d;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
}

.hk-profile-form .hk-avatar-option.unavailable {
    border-color: #ffffff18;
    background: #ffffff04;
    filter: saturate(.58);
    opacity: .72;
    cursor: not-allowed;
}

.hk-profile-form .hk-avatar-option.unavailable img {
    opacity: .78
}

.hk-profile-form .hk-avatar-option input:disabled {
    cursor: not-allowed
}

.hk-profile-form .hk-avatar-option input:checked + img {
    border-color: #ffe291;
    box-shadow: 0 0 0 3px #e4c66d38, 0 0 20px #e4c66d77;
    transform: scale(1.04);
}

.hk-profile-form .hk-avatar-option:has(input:checked) {
    border-color: #e4c66d;
    background: linear-gradient(155deg, #c8a44b28, #ffffff06 58%), #14251f;
    box-shadow: inset 0 0 0 1px #e4c66d48, 0 7px 20px #0005;
}

.hk-profile-form .hk-avatar-option:focus-within {
    outline: 2px solid #f4d781;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .hk-profile-form .hk-avatar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px
    }

    .hk-profile-form .hk-avatar-option {
        min-height: 132px;
        padding: 10px 6px 9px
    }

    .hk-profile-form .hk-avatar-option img {
        width: 68px;
        height: 68px
    }
}

@media (max-width: 360px) {
    .hk-profile-form fieldset.hk-avatar-options {
        padding: 10px
    }

    .hk-profile-form .hk-avatar-grid {
        gap: 7px
    }

    .hk-profile-form .hk-avatar-option {
        min-height: 122px;
        padding: 8px 4px
    }

    .hk-profile-form .hk-avatar-option img {
        width: 58px;
        height: 58px
    }

    .hk-profile-form .hk-avatar-option strong {
        font-size: 11px
    }
}

.hk-ad-controls {
    display: flex;
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid #ffffff35;
    border-radius: 999px;
    background: #06110fdb;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px #0009
}

.hk-ad-controls button, #video_full {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid #d4b55f99;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4d57f, #c19038);
    color: #17221b;
    font-weight: 900;
    cursor: pointer
}

.hk-ad-controls button[hidden] {
    display: none !important
}

#video_full {
    position: absolute;
    right: 16px;
    bottom: 17px;
    border-radius: 12px;
    background: #0c1b19dc;
    color: #ffe4a1
}

.hk-ad-status {
    margin: 12px auto;
    padding: 10px 14px;
    border: 1px solid #8ddbc344;
    border-radius: 14px;
    background: #0b2421;
    color: #d7f7e9;
    text-align: center
}

.hk-market-card.hk-pack-video:disabled {
    opacity: .58;
    filter: saturate(.6);
    cursor: not-allowed
}

@media (max-width: 600px) {
    .hk-ad-card {
        width: calc(100vw - 24px);
        max-width: 460px;
        margin: 12px auto;
        padding: 16px
    }

    .hk-ad-player-wrap {
        margin: 12px auto 8px;
        padding: 5px;
        border-radius: 15px
    }

    .hk-ad-controls {
        bottom: 10px;
        gap: 7px;
        padding: 5px 8px
    }

    .hk-ad-controls button, #video_full {
        min-width: 32px;
        height: 32px
    }

    #video_full {
        right: 10px;
        bottom: 10px
    }
}

.hk-recovery-token {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d5b05c55;
    border-radius: 18px;
    background: linear-gradient(135deg, #132b28, #101b25 72%);
    box-shadow: inset 0 1px #fff1, 0 8px 24px #0004;
}

.hk-recovery-token > div:first-child strong {
    color: #ffe2a0;
    font-size: 14px;
}

.hk-recovery-token p {
    margin: 5px 0 0;
    color: #c9d5d4;
    font-size: 12px;
    line-height: 1.7;
}

.hk-recovery-token-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.hk-recovery-token-row input {
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ffffff27;
    border-radius: 11px;
    background: #07110f;
    color: #9ff1ce;
    font: 700 12px/1.4 ui-monospace, monospace;
}

.hk-recovery-token-row button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #f1cf7b88;
    border-radius: 11px;
    background: linear-gradient(135deg, #b8873c, #75542a);
    color: #fff5da;
    font: 800 12px Tahoma, sans-serif;
    cursor: pointer;
}

.hk-recovery-token > small {
    min-height: 1em;
    color: #8ff0c9;
    font-size: 11px;
}

@media (max-width: 480px) {
    .hk-recovery-token {
        padding: 12px;
    }

    .hk-recovery-token-row {
        flex-direction: column;
    }

    .hk-recovery-token-row input {
        width: 100%;
        min-height: 42px;
    }
}


/* Extracted from blades/Hokmland/master.blade.php · block 1; scoped to .hk-app-host */
body:has(.hk-app-host) #hk-android-install {
    position: fixed;
    z-index: 250000;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns:auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(520px, calc(100vw - 24px));
    margin: auto;
    padding: 12px 14px;
    border: 1px solid #f0d17e88;
    border-radius: 19px;
    background: linear-gradient(120deg, #102e2aF5, #14202bf7 60%, #241c2af7);
    box-shadow: 0 14px 42px #000b, 0 0 28px #e9c35b33;
    direction: rtl;
    color: #f7f1de;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    opacity: 0;
    transform: translateY(calc(100% + 30px));
    transition: transform .42s cubic-bezier(.2, .85, .25, 1), opacity .3s;
    pointer-events: none
}

body:has(.hk-app-host) #hk-android-install.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

body:has(.hk-app-host) #hk-android-install[hidden] {
    display: none
}

body:has(.hk-app-host) .hk-android-install-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #8ef0bc88;
    border-radius: 15px;
    background: linear-gradient(145deg, #2c7654, #15372f);
    font-size: 24px;
    color: #c6ffda;
    box-shadow: inset 0 1px #fff3
}

body:has(.hk-app-host) .hk-android-install-copy {
    display: grid;
    gap: 3px;
    min-width: 0
}

body:has(.hk-app-host) .hk-android-install-copy b {
    font-size: 13px;
    color: #ffe6a2
}

body:has(.hk-app-host) .hk-android-install-copy small {
    font-size: 10px;
    line-height: 1.6;
    color: #c2d2ce
}

body:has(.hk-app-host) .hk-android-install-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #ffe39a;
    border-radius: 12px;
    background: linear-gradient(110deg, #f3d47b, #c99e4a);
    color: #221e14;
    text-decoration: none;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 950;
    box-shadow: 0 7px 18px #c99b3b40
}

body:has(.hk-app-host) .hk-android-install-close {
    position: absolute;
    left: 5px;
    top: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #ffffff14;
    color: #d6dfdc;
    font-size: 15px;
    line-height: 1;
    cursor: pointer
}

@media (max-width: 420px) {
    body:has(.hk-app-host) #hk-android-install {
        gap: 8px;
        padding: 10px 9px
    }

    body:has(.hk-app-host) .hk-android-install-icon {
        width: 39px;
        height: 39px;
        font-size: 20px
    }

    body:has(.hk-app-host) .hk-android-install-copy b {
        font-size: 11px
    }

    body:has(.hk-app-host) .hk-android-install-copy small {
        font-size: 9px
    }

    body:has(.hk-app-host) .hk-android-install-action {
        min-height: 37px;
        padding: 0 9px;
        font-size: 10px
    }
}

/* Extracted from blades/Hokmland/game/app/play/help.blade.php · block 1; scoped to .hk-help */
body:has(.hk-help) .hk-help {
    position: relative;
    max-width: 1120px;
    min-height: 100vh;
    margin: auto;
    padding: 28px 20px 48px;
    color: #eef4ed;
    background: radial-gradient(ellipse at 50% 0, #214639, #0d1918 68%);
    font: 15px/1.9 IRANSans, IRANSansWeb, Tahoma, sans-serif
}

body:has(.hk-help) .hk-help * {
    box-sizing: border-box
}

body:has(.hk-help) .hk-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px
}

body:has(.hk-help) .hk-help h1 {
    margin: 0;
    color: #f1d283;
    font-size: clamp(24px, 4vw, 38px)
}

body:has(.hk-help) .hk-help a {
    color: #ffe6a7
}

body:has(.hk-help) .hk-help-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #d9bc7666;
    border-radius: 14px;
    background: #132721;
    color: #ffe6a7;
    text-decoration: none;
    font-weight: 800
}

body:has(.hk-help) .hk-help-intro {
    margin: 0 0 22px;
    color: #c4d5ca
}

body:has(.hk-help) .hk-help-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 14px
}

body:has(.hk-help) .hk-help-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #c9ad5b55;
    border-radius: 20px;
    background: linear-gradient(145deg, #172b25, #111a1d);
    box-shadow: 0 12px 26px #0004
}

body:has(.hk-help) .hk-help-card h2 {
    margin: 0 0 8px;
    color: #ffe29a;
    font-size: 19px
}

body:has(.hk-help) .hk-help-card p {
    margin: 0;
    color: #dce5dc
}

body:has(.hk-help) .hk-help-card ul {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 0 20px 0 0 !important;
    list-style: disc outside !important;
    columns: initial !important;
    column-count: initial !important;
    direction: rtl;
    color: #c6d4cb
}

body:has(.hk-help) .hk-help-card li {
    display: list-item !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    line-height: 1.9
}

body:has(.hk-help) .hk-help-card li + li {
    margin-top: 3px
}

@media (max-width: 680px) {
    .hk-help {
        padding: 18px 12px 32px
    }

    .hk-help-head {
        align-items: flex-start
    }

    .hk-help-grid {
        grid-template-columns:1fr
    }

    .hk-help-card {
        padding: 15px;
        border-radius: 16px
    }
}

/* Extracted from blades/Hokmland/game/app/play/index.blade.php · block 1; scoped to .hk-game-viewport */
body:has(.hk-game-viewport) i.back {
    display: none;
}

body:has(.hk-game-viewport) .hk-game-viewport--immersive {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #07101e !important;
}

body:has(.hk-game-viewport) .hk-game-viewport--immersive > object {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
}

/* Extracted from blades/Hokmland/game/app/play/invite.blade.php · block 1; scoped to .hk-invite-host */
body:has(.hk-invite-host) {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    overflow: hidden !important;
    background: #07101e;
}

body:has(.hk-invite-host) .content.hk-invite-host#ajaxer {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #07101e !important;
    z-index: 10000 !important;
}

/* Extracted from blades/Hokmland/game/app/play/launch.blade.php · block 1; scoped to .hk-ajax-game-host */
body:has(.hk-ajax-game-host) .hk-ajax-game-host {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #07101e !important;
}

body:has(.hk-ajax-game-host) .hk-ajax-game-host object {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: #07101e !important;
}

body:has(.hk-ajax-game-host) .hk-ajax-game-back {
    position: absolute !important;
    z-index: 5 !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    min-height: 40px !important;
    padding: 8px 13px !important;
    border: 1px solid #d9bc7680 !important;
    border-radius: 13px !important;
    background: #132721ed !important;
    color: #ffe6a7 !important;
    font: 800 12px/1.2 Tahoma, sans-serif !important;
    box-shadow: 0 6px 18px #0008 !important;
    cursor: pointer !important;
}

body:has(.hk-ajax-game-host) .hk-ajax-game-help {
    position: absolute !important;
    z-index: 5 !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    min-height: 40px !important;
    padding: 8px 13px !important;
    border: 1px solid #d9bc7680 !important;
    border-radius: 13px !important;
    background: #132721ed !important;
    color: #ffe6a7 !important;
    font: 800 12px/1.2 Tahoma, sans-serif !important;
    box-shadow: 0 6px 18px #0008 !important;
    cursor: pointer !important;
}

@supports (height:100svh) {
    body:has(.hk-ajax-game-host) .hk-ajax-game-host {
        height: 100svh !important;
    }
}

/* Extracted from blades/Hokmland/game/app/play/reward.blade.php · block 1; scoped to .hk-leaderboard-page */
body:has(.hk-leaderboard-page) .hk-leaderboard-page,
body:has(.hk-leaderboard-page) .hk-leaderboard-page * {
    font-family: "iran", IRANSans, IRANSansWeb, Tahoma, sans-serif
}

body:has(.hk-leaderboard-page) .hk-leaderboard-page {
    direction: rtl;
    text-align: right
}

body:has(.hk-leaderboard-page) .hk-leaderboard-page small {
    font-size: max(9px, .82em)
}

body:has(.hk-leaderboard-page) #hk-wheel-video-modal,
body:has(.hk-leaderboard-page) #hk-wheel-video-modal * {
    font-family: "iran", IRANSans, IRANSansWeb, Tahoma, sans-serif
}

body:has(.hk-leaderboard-page) #hk-wheel-video-modal small {
    font-size: max(9px, .82em)
}

body:has(.hk-leaderboard-page) .hk-reward-stage {
    display: grid;
    grid-template-columns:minmax(250px, 380px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 54px);
    margin: 22px 0 30px;
    padding: clamp(20px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid #e0b96566;
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 0, #a331292b, transparent 55%), linear-gradient(140deg, #29110f, #171b22 70%);
    box-shadow: 0 24px 60px #080a1030, inset 0 1px #fff2;
    color: #fff
}

body:has(.hk-leaderboard-page) .hk-reward-wheel-wrap {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    margin: auto;
    padding: 17px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8d985, #8e5e22 25%, #f1c75f 55%, #714316 78%, #f1d17d);
    box-shadow: 0 0 0 4px #f7df9a33, 0 0 36px #efbd5266, 0 18px 34px #0008
}

body:has(.hk-leaderboard-page) .hk-reward-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 4px solid #5b1c19;
    border-radius: 50%;
    background: conic-gradient(#c23b2e, #f1aa3e, #8f241e, #edbd53, #b53129, #f1a942, #8f241e, #e9bb4b);
    box-shadow: inset 0 0 0 5px #f5d879, inset 0 0 30px #461410;
    transition: transform 5.8s cubic-bezier(.12, .72, .12, 1);
    will-change: transform
}

body:has(.hk-leaderboard-page) .hk-reward-wheel canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%
}

body:has(.hk-leaderboard-page) .hk-reward-wheel:before {
    content: "";
    position: absolute;
    inset: 8%;
    border: 2px solid #ffe69a99;
    border-radius: 50%;
    box-shadow: 0 0 14px #fff4
}

body:has(.hk-leaderboard-page) .hk-wheel-pin {
    position: absolute;
    z-index: 3;
    top: -2px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 32px solid #fff0b1;
    filter: drop-shadow(0 3px 4px #0009)
}

body:has(.hk-leaderboard-page) .hk-wheel-hub {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 23%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 4px solid #f8d36c;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff2bf, #ac772b 55%, #4b2618);
    box-shadow: 0 0 0 5px #611e1d, 0 5px 12px #0009;
    color: #fff4cf;
    font-size: clamp(19px, 4vw, 34px);
    text-shadow: 0 2px 4px #4b1d17
}

body:has(.hk-leaderboard-page) .hk-wheel-lights {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 1.8%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 85% 15%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 98% 50%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 85% 85%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 50% 98%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 15% 85%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 2% 50%, #fff6bd 0 4px, transparent 5px), radial-gradient(circle at 15% 15%, #fff6bd 0 4px, transparent 5px);
    filter: drop-shadow(0 0 5px #ffe18a);
    animation: hk-wheel-bulbs .8s steps(2, end) infinite alternate;
    pointer-events: none
}

@keyframes hk-wheel-bulbs {
    from {
        opacity: .48;
        filter: brightness(.8) drop-shadow(0 0 3px #ffe18a)
    }
    to {
        opacity: 1;
        filter: brightness(1.45) drop-shadow(0 0 9px #fff2ae)
    }
}

body:has(.hk-leaderboard-page) .hk-wheel-label {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 15%;
    width: 32%;
    transform: translateX(-50%);
    color: #fff9e8;
    font-size: clamp(10px, 1.35vw, 14px);
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 4px #4c1111;
    line-height: 1.3
}

body:has(.hk-leaderboard-page) .hk-wheel-copy {
    text-align: right
}

body:has(.hk-leaderboard-page) .hk-wheel-copy .hk-page-kicker {
    color: #f0cb76
}

body:has(.hk-leaderboard-page) .hk-wheel-copy h2 {
    margin: 8px 0 10px;
    color: #ffe4a2;
    font-size: clamp(21px, 3vw, 30px)
}

body:has(.hk-leaderboard-page) .hk-wheel-copy p {
    max-width: 620px;
    color: #d9d1c6;
    font-size: 14px;
    line-height: 2
}

body:has(.hk-leaderboard-page) .hk-wheel-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0
}

body:has(.hk-leaderboard-page) .hk-wheel-prizes span {
    padding: 8px 12px;
    border: 1px solid #f1cf7a55;
    border-radius: 99px;
    background: #ffffff0b;
    color: #ffe6a1;
    font-size: 12px;
    font-weight: 800
}

body:has(.hk-leaderboard-page) .hk-wheel-locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid #e6c47566;
    border-radius: 13px;
    background: #0b111a;
    color: #e7d9b8;
    font-weight: 800;
    cursor: not-allowed;
    opacity: .9
}

body:has(.hk-leaderboard-page) .hk-wheel-note {
    display: block;
    margin-top: 12px;
    color: #c4c0b8;
    font-size: 12px;
    line-height: 1.9;
    direction: rtl;
    text-align: right
}

body:has(.hk-leaderboard-page) .hk-wheel-locked:not(:disabled) {
    cursor: pointer;
    opacity: 1;
    background: linear-gradient(120deg, #f4d77e, #ad7229);
    color: #24160c;
    box-shadow: 0 0 22px #f4cf6566;
    animation: hk-spin-glow 1.25s ease-in-out infinite alternate
}

body:has(.hk-leaderboard-page) .hk-wheel-result {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #f4d77e66;
    border-radius: 13px;
    background: #f4d77e12;
    color: #ffe8ae;
    font-weight: 800;
    line-height: 1.8;
    direction: rtl;
    text-align: right
}

body:has(.hk-leaderboard-page) .hk-wheel-result strong {
    color: #fff
}

body:has(.hk-leaderboard-page) .hk-wheel-video-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px;
    padding: 7px 10px;
    border: 1px solid #f5d781;
    border-radius: 99px;
    background: #f5d7811a;
    color: #ffe8ae;
    font-weight: 900;
    cursor: pointer
}

body:has(.hk-leaderboard-page) .hk-wheel-notice {
    position: fixed;
    z-index: 2147483600;
    right: 50%;
    bottom: 22px;
    transform: translateX(50%);
    width: min(520px, calc(100vw - 28px));
    padding: 15px 18px;
    border: 1px solid #f2cf7a;
    border-radius: 16px;
    background: linear-gradient(125deg, #182c28, #171923);
    box-shadow: 0 14px 50px #000b, 0 0 24px #e6b94c35;
    color: #fff0c5;
    direction: rtl;
    text-align: right;
    font: 700 14px/1.8 "iran", IRANSans, IRANSansWeb, Tahoma, sans-serif
}

@keyframes hk-spin-glow {
    from {
        filter: brightness(.96);
        box-shadow: 0 0 10px #f4cf6533
    }
    to {
        filter: brightness(1.12);
        box-shadow: 0 0 24px #f4cf6599
    }
}

@media (max-width: 720px) {
    .hk-reward-stage {
        grid-template-columns:1fr;
        text-align: center;
        padding: 22px 16px
    }

    .hk-reward-wheel-wrap {
        width: min(74vw, 300px)
    }

    .hk-wheel-copy {
        text-align: center
    }

    .hk-wheel-copy p {
        margin-inline: auto
    }

    .hk-wheel-prizes {
        justify-content: center
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-wheel-lights {
        animation: none
    }
}

/* Extracted from blades/Hokmland/game/app/play/rps.blade.php · block 1; scoped to #rps-game */
body:has(#rps-game) {
    min-height: 100%;
    margin: 0 !important;
    background: #07101e;
    color: #f7fbff;
    overflow-x: hidden
}

body:has(#rps-game) #rps-game {
    --rps-ink: #091322;
    --rps-panel: rgba(15, 31, 53, .84);
    --rps-line: rgba(170, 213, 255, .14);
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: auto;
    background: transparent;
    color: #f5f8ff;
    font-family: stedad, sans-serif
}

body:has(#rps-game) #rps-game:before,
body:has(#rps-game) #rps-game:after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none
}

body:has(#rps-game) #rps-game:before {
    width: 44vw;
    height: 44vw;
    min-width: 360px;
    min-height: 360px;
    top: -28vw;
    right: -12vw;
    background: radial-gradient(circle, #60dcff24, transparent 66%)
}

body:has(#rps-game) #rps-game:after {
    width: 35vw;
    height: 35vw;
    min-width: 300px;
    min-height: 300px;
    bottom: -24vw;
    left: -9vw;
    background: radial-gradient(circle, #b979ff22, transparent 68%)
}

body:has(#rps-game) .rps-shell {
    width: min(1160px, 100%);
    min-height: 100dvh;
    margin: auto;
    padding: clamp(14px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box
}

body:has(#rps-game) .rps-topbar,
body:has(#rps-game) .rps-brand,
body:has(#rps-game) .rps-user,
body:has(#rps-game) .rps-heading,
body:has(#rps-game) .rps-room-tools,
body:has(#rps-game) .rps-scoreline,
body:has(#rps-game) .rps-actions,
body:has(#rps-game) .rps-bottom {
    display: flex;
    align-items: center
}

body:has(#rps-game) .rps-topbar {
    justify-content: space-between;
    gap: 16px
}

body:has(#rps-game) .rps-brand {
    gap: 11px;
    color: inherit;
    text-decoration: none
}

body:has(#rps-game) .rps-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #51d9ff, #6478ff);
    box-shadow: 0 8px 28px #39b9ff35;
    color: #061322;
    font-size: 23px
}

body:has(#rps-game) .rps-brand strong {
    display: block;
    letter-spacing: .08em;
    font-size: 13px
}

body:has(#rps-game) .rps-brand small {
    display: block;
    margin-top: 2px;
    color: #91a9c5;
    font-size: 10px;
    letter-spacing: .18em
}

body:has(#rps-game) .rps-user {
    gap: 8px;
    color: #a9bed6;
    font-size: 12px
}

body:has(#rps-game) .rps-user img {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #78d6ff55
}

body:has(#rps-game) .rps-main {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(330px, .82fr);
    gap: 18px;
    flex: 1;
    direction: ltr
}

body:has(#rps-game) .rps-arena,
body:has(#rps-game) .rps-control-panel {
    direction: rtl
}

body:has(#rps-game) .rps-arena,
body:has(#rps-game) .rps-control-panel {
    border: 1px solid var(--rps-line);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(19, 41, 68, .8), rgba(7, 17, 31, .72));
    box-shadow: 0 24px 80px #0004, inset 0 1px #fff1;
    backdrop-filter: blur(18px)
}

body:has(#rps-game) .rps-arena {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

body:has(#rps-game) .rps-arena-head {
    position: absolute;
    inset: 22px 24px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2
}

body:has(#rps-game) .rps-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #b4d7ff1a;
    border-radius: 99px;
    background: #07132199;
    color: #c4d6eb;
    font-size: 11px
}

body:has(#rps-game) .rps-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #44e6ae;
    box-shadow: 0 0 12px #44e6ae
}

body:has(#rps-game) .rps-arena-title {
    color: #91a9c5;
    font-size: 11px;
    letter-spacing: .13em
}

body:has(#rps-game) .rps-stage {
    position: relative;
    min-height: 440px;
    flex: 1;
    display: grid;
    place-items: center;
    isolation: isolate
}

body:has(#rps-game) .rps-stage:before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 57%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #84d8ff33, transparent);
    z-index: 1
}

body:has(#rps-game) #Canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    display: block;
    pointer-events: none
}

body:has(#rps-game) .rps-shell {
    position: relative;
    z-index: 1
}

body:has(#rps-game) .rps-versus {
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #b7d4f72b;
    border-radius: 50%;
    background: #071321b5;
    color: #d5e7fc;
    font-weight: 900;
    font-size: 11px;
    box-shadow: 0 0 36px #56c8ff2a;
    pointer-events: none;
    z-index: 3
}

body:has(#rps-game) .rps-player-label {
    position: absolute;
    top: 19%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    color: #dcedff;
    text-align: center;
    pointer-events: none;
    z-index: 3
}

body:has(#rps-game) .rps-player-label small {
    color: #8ea9c4;
    font-size: 10px
}

body:has(#rps-game) .rps-player-label strong {
    font-size: 13px
}

body:has(#rps-game) .rps-player-label.opponent {
    left: 12%
}

body:has(#rps-game) .rps-player-label.you {
    right: 12%
}

body:has(#rps-game) .rps-player-label .rps-state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #768ba5
}

body:has(#rps-game) .rps-player-label.is-ready .rps-state-dot {
    background: #53e6b4;
    box-shadow: 0 0 10px #53e6b4
}

body:has(#rps-game) .rps-scoreline {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    z-index: 3
}

body:has(#rps-game) .rps-score {
    min-width: 90px;
    text-align: center;
    padding: 10px 15px;
    border: 1px solid #b5d8ff17;
    border-radius: 16px;
    background: #071321b8
}

body:has(#rps-game) .rps-score small {
    display: block;
    color: #829bb6;
    font-size: 10px
}

body:has(#rps-game) .rps-score strong {
    display: block;
    margin-top: 3px;
    font-size: 20px
}

body:has(#rps-game) .rps-score-sep {
    color: #7890aa;
    font-size: 13px
}

body:has(#rps-game) .rps-control-panel {
    padding: clamp(20px, 3vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 18px
}

body:has(#rps-game) .rps-eyebrow {
    color: #62d8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em
}

body:has(#rps-game) .rps-heading {
    justify-content: space-between;
    gap: 10px
}

body:has(#rps-game) .rps-heading h1 {
    font-size: clamp(22px, 3vw, 32px);
    margin: 6px 0 4px;
    line-height: 1.25
}

body:has(#rps-game) .rps-heading p {
    margin: 0;
    color: #9eb4cd;
    font-size: 12px;
    line-height: 1.8
}

body:has(#rps-game) .rps-prize {
    padding: 10px 12px;
    border: 1px solid #f4c96a35;
    border-radius: 15px;
    background: linear-gradient(145deg, #f3bb4818, #f3bb4805);
    color: #ffdf87;
    text-align: center;
    white-space: nowrap
}

body:has(#rps-game) .rps-prize small {
    display: block;
    color: #c3a962;
    font-size: 9px
}

body:has(#rps-game) .rps-prize strong {
    font-size: 15px
}

body:has(#rps-game) .rps-room-tools {
    gap: 8px;
    flex-wrap: wrap
}

body:has(#rps-game) .rps-room-tools input {
    flex: 1;
    min-width: 115px;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #b3d5f21e;
    border-radius: 13px;
    background: #071321;
    color: #fff;
    font: inherit;
    font-size: 13px;
    outline: none
}

body:has(#rps-game) .rps-room-tools input:focus {
    border-color: #66d9ff88;
    box-shadow: 0 0 0 3px #61d7ff12
}

body:has(#rps-game) .rps-btn {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #b8d8f21e;
    border-radius: 13px;
    background: #152b45;
    color: #e8f4ff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s, border-color .18s, background .18s
}

body:has(#rps-game) .rps-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #71d9ff88;
    background: #1c3d5e
}

body:has(#rps-game) .rps-btn:disabled {
    opacity: .52;
    cursor: not-allowed
}

body:has(#rps-game) .rps-btn-primary {
    border: 0;
    background: linear-gradient(120deg, #40d5ee, #7190ff);
    color: #061425;
    box-shadow: 0 9px 25px #47cbeb26
}

body:has(#rps-game) .rps-btn-primary:hover:not(:disabled) {
    background: linear-gradient(120deg, #70edff, #9aacff)
}

body:has(#rps-game) .rps-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #b9d9f21c, transparent)
}

body:has(#rps-game) .rps-choice-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #dcecff;
    font-size: 12px
}

body:has(#rps-game) .rps-choice-title small {
    color: #849bb5;
    font-size: 10px
}

body:has(#rps-game) .rps-actions {
    gap: 9px
}

body:has(#rps-game) .rps-choice {
    flex: 1;
    min-width: 0;
    min-height: 91px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 10px 5px;
    border: 1px solid #9ac8fa1b;
    border-radius: 17px;
    background: linear-gradient(150deg, #10243d, #0b192b);
    color: #eaf5ff;
    font: inherit;
    cursor: pointer;
    transition: .2s
}

body:has(#rps-game) .rps-choice:hover:not(:disabled) {
    transform: translateY(-4px);
    border-color: #71d9ff88;
    box-shadow: 0 13px 30px #44baf31a
}

body:has(#rps-game) .rps-choice.is-selected {
    border-color: #69e1ff;
    background: linear-gradient(145deg, #123d5a, #142447);
    box-shadow: 0 0 0 2px #5fd9ff1a, 0 12px 30px #3ec7fa28
}

body:has(#rps-game) .rps-choice:disabled {
    opacity: .42;
    cursor: not-allowed
}

body:has(#rps-game) .rps-choice i {
    font-style: normal;
    font-size: 27px;
    filter: drop-shadow(0 5px 8px #54c7ff55)
}

body:has(#rps-game) .rps-choice span {
    font-size: 10px;
    font-weight: 700
}

body:has(#rps-game) .rps-status {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #a9d2f51a;
    border-radius: 14px;
    background: #081625aa;
    color: #a9bfd8;
    font-size: 11px;
    line-height: 1.7
}

body:has(#rps-game) .rps-status:before {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: #60d9ff;
    box-shadow: 0 0 10px #60d9ff80
}

body:has(#rps-game) .rps-status[data-kind="error"] {
    color: #ffc1c5;
    border-color: #ff77822d
}

body:has(#rps-game) .rps-status[data-kind="error"]:before {
    background: #ff7782;
    box-shadow: 0 0 10px #ff778280
}

body:has(#rps-game) .rps-status[data-kind="success"] {
    color: #b8ffe4
}

body:has(#rps-game) .rps-status[data-kind="success"]:before {
    background: #4fe5ad;
    box-shadow: 0 0 10px #4fe5ad80
}

body:has(#rps-game) .rps-room-code {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 1px dashed #68d9ff50;
    border-radius: 14px;
    background: #0e2b43;
    color: #8fdfff;
    font-size: 12px
}

body:has(#rps-game) .rps-room-code.is-visible {
    display: flex
}

body:has(#rps-game) .rps-room-code strong {
    font-size: 16px;
    letter-spacing: .1em
}

body:has(#rps-game) .rps-terms {
    margin-top: auto;
    color: #7189a3;
    font-size: 10px;
    line-height: 1.8
}

body:has(#rps-game) .rps-bottom {
    justify-content: center;
    gap: 8px;
    color: #69839e;
    font-size: 10px
}

body:has(#rps-game) .rps-back {
    color: #9db6d0;
    text-decoration: none
}

body:has(#rps-game) .rps-back:hover {
    color: #66d9ff
}

body:has(#rps-game) .rps-ar-tools {
    display: none;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap
}

body:has(#rps-game) .rps-ar-test .rps-ar-tools {
    display: flex
}

body:has(#rps-game) .rps-ar-test-link {
    color: #7fdfff;
    text-decoration: none
}

body:has(#rps-game) .rps-ar-test .rps-ar-test-link {
    display: none
}

body:has(#rps-game) .rps-ar-camera {
    position: fixed;
    inset: auto 16px 16px auto;
    z-index: 15;
    width: min(230px, 38vw);
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid #79ddff88;
    border-radius: 20px;
    background: #02070c;
    box-shadow: 0 14px 38px #0009;
    transform: scaleX(-1);
    display: none
}

body:has(#rps-game) .rps-ar-test .rps-ar-camera.is-on {
    display: block
}

body:has(#rps-game) .rps-ar-test .rps-stage {
    padding-bottom: 0
}

body:has(#rps-game) .rps-countdown {
    position: absolute !important;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    min-width: 112px;
    justify-content: center;
    padding: 10px 18px;
    border-color: #65ddff66;
    background: linear-gradient(145deg, #0b2435ed, #101d32e8);
    color: #e7f8ff;
    font-size: clamp(15px, 2vw, 22px);
    font-weight: 900;
    box-shadow: 0 0 28px #4cdcff26;
    font-variant-numeric: tabular-nums
}

body:has(#rps-game) .rps-countdown[data-kind="error"] {
    border-color: #ff8a8a;
    color: #ffd4d4;
    box-shadow: 0 0 24px #ff5d5d38
}

body:has(#rps-game) .rps-floating-controls {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 80;
    width: min(500px, calc(100vw - 28px));
    padding: 10px 12px 12px;
    border: 1px solid #8ddfff3b;
    border-radius: 24px;
    background: linear-gradient(145deg, #0b1926ee, #11243aee);
    box-shadow: 0 18px 50px #0009, inset 0 1px #fff2;
    backdrop-filter: blur(14px);
    direction: rtl
}

body:has(#rps-game) .rps-floating-controls .rps-choice-title {
    margin: 0 3px 9px
}

body:has(#rps-game) .rps-floating-controls .rps-actions {
    gap: 10px
}

body:has(#rps-game) .rps-floating-controls .rps-choice {
    min-height: 86px;
    border-radius: 19px;
    background: linear-gradient(145deg, #173657, #0c2034);
    box-shadow: 0 7px 20px #0005, inset 0 1px #fff2
}

body:has(#rps-game) .rps-floating-controls .rps-choice i {
    font-size: 36px
}

body:has(#rps-game) .rps-floating-controls .rps-choice span {
    font-size: 12px
}

body:has(#rps-game) .rps-floating-controls .rps-choice:disabled {
    opacity: .58
}

body:has(#rps-game) .rps-room-mode {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px
}

body:has(#rps-game) .rps-room-mode .rps-btn {
    min-height: 48px
}

body:has(#rps-game) .rps-room-mode .rps-btn.selected {
    border-color: #67e0ff;
    background: linear-gradient(120deg, #1e5b75, #384d87);
    box-shadow: 0 0 0 2px #51d6ff1c
}

body:has(#rps-game) .rps-room-mode small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    opacity: .78
}

body:has(#rps-game) .rps-shell {
    padding-bottom: 130px
}

body:has(#rps-game) .rps-arena-head {
    z-index: 5
}

@media (max-width: 820px) {
    body:has(#rps-game) .rps-main {
        grid-template-columns:1fr;
        direction: rtl
    }

    body:has(#rps-game) .rps-shell {
        gap: 12px
    }

    body:has(#rps-game) .rps-arena {
        min-height: 390px
    }

    body:has(#rps-game) .rps-stage {
        min-height: 355px
    }

    body:has(#rps-game) .rps-control-panel {
        gap: 14px
    }

    body:has(#rps-game) .rps-control-panel {
        order: 2
    }

    body:has(#rps-game) .rps-arena {
        order: 1
    }
}

@media (max-width: 480px) {
    body:has(#rps-game) .rps-shell {
        padding: 12px 12px 150px
    }

    body:has(#rps-game) .rps-topbar {
        align-items: flex-start
    }

    body:has(#rps-game) .rps-user {
        font-size: 10px
    }

    body:has(#rps-game) .rps-arena {
        min-height: 340px;
        border-radius: 22px
    }

    body:has(#rps-game) .rps-stage {
        min-height: 300px
    }

    body:has(#rps-game) .rps-arena-head {
        inset: 14px 14px auto
    }

    body:has(#rps-game) .rps-player-label {
        top: 18%
    }

    body:has(#rps-game) .rps-player-label.opponent {
        left: 7%
    }

    body:has(#rps-game) .rps-player-label.you {
        right: 7%
    }

    body:has(#rps-game) .rps-scoreline {
        bottom: 13px;
        gap: 7px
    }

    body:has(#rps-game) .rps-score {
        min-width: 67px;
        padding: 8px
    }

    body:has(#rps-game) .rps-score strong {
        font-size: 17px
    }

    body:has(#rps-game) .rps-control-panel {
        padding: 19px 16px;
        border-radius: 22px
    }

    body:has(#rps-game) .rps-room-tools {
        display: grid;
        grid-template-columns:1fr 1fr
    }

    body:has(#rps-game) .rps-room-tools input {
        grid-column: 1/-1;
        width: auto
    }

    body:has(#rps-game) .rps-room-mode {
        grid-column: 1/-1
    }

    body:has(#rps-game) .#rps-create {
        grid-column: 1/-1
    }

    body:has(#rps-game) .rps-floating-controls {
        bottom: calc(8px + env(safe-area-inset-bottom));
        padding: 8px;
        border-radius: 19px
    }

    body:has(#rps-game) .rps-floating-controls .rps-choice {
        min-height: 74px
    }

    body:has(#rps-game) .rps-floating-controls .rps-choice i {
        font-size: 30px
    }

    body:has(#rps-game) .rps-countdown {
        top: 31%;
        min-width: 90px;
        padding: 7px 12px
    }

    body:has(#rps-game) .rps-ar-camera {
        width: 34vw;
        right: 10px;
        bottom: 10px;
        border-radius: 13px
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(#rps-game) #rps-game *,
    body:has(#rps-game) #rps-game *:before,
    body:has(#rps-game) #rps-game *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }
}

body:has(#rps-game) /* Corner timer,
body:has(#rps-game) entry fee badge,
body:has(#rps-game) and outcome presentation. */
.rps-countdown {
    top: 62px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    z-index: 6;
    min-width: 90px;
    padding: 8px 13px;
    border: 1px solid #65ddff66 !important;
    background: linear-gradient(145deg, #0b2435ed, #101d32e8) !important;
    font-size: 13px !important;
    box-shadow: 0 0 24px #4cdcff26;
    font-variant-numeric: tabular-nums
}

body:has(#rps-game) .rps-countdown[data-kind="error"] {
    border-color: #ff8a8a !important;
    color: #ffd4d4;
    box-shadow: 0 0 24px #ff5d5d38
}

body:has(#rps-game) .rps-fee-notice {
    position: absolute;
    top: 62px;
    left: 20px;
    z-index: 6;
    padding: 8px 12px;
    border: 1px solid #f0c86c55;
    border-radius: 99px;
    background: linear-gradient(120deg, #37290fe8, #172337e8);
    color: #ffe29a;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 8px 25px #0005
}

body:has(#rps-game) .rps-fee-notice[hidden],
body:has(#rps-game) .rps-outcome[hidden] {
    display: none !important
}

body:has(#rps-game) .rps-outcome {
    position: absolute;
    top: auto;
    right: 20px;
    bottom: 74px;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: min(290px, calc(100% - 40px));
    padding: 10px 14px;
    border: 1px solid #7ce9c477;
    border-radius: 17px;
    background: linear-gradient(130deg, #0b2f27f2, #101b2df2);
    color: #d7ffec;
    box-shadow: 0 14px 36px #0008, 0 0 22px #56e8ba24;
    backdrop-filter: blur(12px);
    animation: rpsToastIn .35s cubic-bezier(.2, .8, .2, 1)
}

body:has(#rps-game) .rps-outcome[data-kind="loss"] {
    border-color: #ff879277;
    background: linear-gradient(130deg, #341d28f4, #151b2bf4);
    color: #ffe1e4
}

body:has(#rps-game) .rps-outcome[data-kind="round"] {
    border-color: #70dfff77;
    background: linear-gradient(130deg, #102c41f4, #151b2bf4);
    color: #d9f5ff
}

body:has(#rps-game) .rps-outcome-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 11px;
    background: #ffffff12;
    font-size: 19px
}

body:has(#rps-game) .rps-outcome strong {
    display: block;
    font-size: 12px
}

body:has(#rps-game) .rps-outcome small {
    display: block;
    margin-top: 2px;
    color: #a8c5d3;
    font-size: 9px
}

body:has(#rps-game) .rps-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0
}

body:has(#rps-game) .rps-impact.is-active {
    animation: rpsImpact .8s ease-out
}

body:has(#rps-game) .rps-impact:before,
body:has(#rps-game) .rps-impact:after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid #93f5ff;
    border-radius: 50%;
    box-shadow: 0 0 20px #50dfff
}

body:has(#rps-game) .rps-impact:after {
    animation: rpsImpactRing .8s ease-out
}

body:has(#rps-game) .rps-confetti {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none
}

body:has(#rps-game) .rps-confetti i {
    position: absolute;
    top: -12px;
    left: var(--x);
    width: var(--w);
    height: var(--h);
    border-radius: 2px;
    background: var(--c);
    opacity: 0;
    animation: rpsConfetti var(--d) cubic-bezier(.15, .55, .35, 1) var(--delay) forwards;
    transform: rotate(var(--r))
}

body:has(#rps-game) .rps-arena.is-win {
    box-shadow: 0 0 0 1px #78edbd44, 0 24px 90px #34e6a222, inset 0 1px #fff1
}

body:has(#rps-game) .rps-arena.is-loss {
    box-shadow: 0 0 0 1px #ff8a9b33, 0 24px 90px #ff506b16, inset 0 1px #fff1
}

@keyframes rpsToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.96)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes rpsImpact {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.5)
    }
    65% {
        opacity: .8;
        transform: translate(-50%, -50%) scale(2)
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.7)
    }
}

@keyframes rpsImpactRing {
    0% {
        inset: -4px;
        opacity: .9
    }
    100% {
        inset: -42px;
        opacity: 0
    }
}

@keyframes rpsConfetti {
    0% {
        opacity: 0;
        transform: translate3d(0, -8px, 0) rotate(var(--r))
    }
    10% {
        opacity: 1
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift), var(--fall), 0) rotate(calc(var(--r) + 500deg))
    }
}

@media (max-width: 480px) {
    body:has(#rps-game) .rps-countdown {
        top: 54px !important;
        right: 12px !important;
        min-width: 76px;
        padding: 7px 10px;
        font-size: 11px !important
    }

    body:has(#rps-game) .rps-fee-notice {
        top: 54px;
        left: 12px;
        padding: 7px 9px;
        font-size: 9px
    }

    body:has(#rps-game) .rps-outcome {
        right: 12px;
        bottom: 62px;
        max-width: calc(100% - 24px);
        padding: 8px 10px
    }

    body:has(#rps-game) .rps-outcome-icon {
        width: 29px;
        height: 29px
    }
}

body:has(#rps-game)

/* Mobile uses a real lobby screen followed by an edge-to-edge arena. */
@media (max-width: 820px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overscroll-behavior-x: none
    }

    #rps-game {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        touch-action: pan-y;
        overscroll-behavior: contain
    }

    .rps-shell {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
        gap: 8px;
        overflow: hidden
    }

    .rps-topbar {
        flex: none;
        min-height: 38px
    }

    .rps-main {
        position: relative;
        display: block;
        flex: 1;
        min-height: 0;
        width: 100%;
        overflow: hidden
    }

    .rps-arena {
        display: none
    }

    .rps-control-panel {
        display: flex;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: clamp(18px, 5vw, 26px);
        border-radius: 22px;
        box-sizing: border-box
    }

    .rps-bottom {
        display: none
    }

    .rps-floating-controls {
        display: none;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        transform: none;
        width: auto;
        max-width: none
    }

    .rps-choice {
        touch-action: manipulation
    }

    #rps-game.has-room .rps-arena {
        display: flex;
        position: absolute;
        inset: 0;
        min-height: 0;
        border-radius: 22px
    }

    #rps-game.has-room .rps-stage {
        min-height: 0;
        width: 100%;
        height: 100%
    }

    #rps-game.has-room .rps-control-panel {
        display: none
    }

    #rps-game.has-room .rps-floating-controls {
        display: block
    }

    #rps-game.has-room .rps-player-label {
        top: 17%
    }

    #rps-game.has-room .rps-countdown {
        top: 54px !important;
        right: 12px !important
    }

    #rps-game.has-room .rps-fee-notice {
        top: 54px;
        left: 12px
    }

    #rps-game.has-room .rps-scoreline {
        bottom: 16px
    }
}

@media (max-width: 480px) {
    body:has(#rps-game) .rps-shell {
        padding-left: 8px;
        padding-right: 8px
    }

    body:has(#rps-game) .rps-topbar {
        padding: 0 3px
    }

    body:has(#rps-game) .rps-brand strong {
        font-size: 11px
    }

    body:has(#rps-game) .rps-brand small {
        font-size: 8px
    }

    body:has(#rps-game) .rps-mark {
        width: 34px;
        height: 34px;
        border-radius: 11px
    }

    body:has(#rps-game) .rps-user img {
        width: 27px;
        height: 27px
    }

    body:has(#rps-game) .rps-main {
        min-height: 0
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
        gap: 12px;
        padding: 18px 15px
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-heading h1 {
        font-size: 25px
    }

    body:has(#rps-game) #rps-game.has-room .rps-arena {
        border-radius: 18px
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label {
        top: 15%
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label.opponent {
        left: 7%
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label.you {
        right: 7%
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls {
        padding: 7px;
        border-radius: 17px
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice {
        min-height: 67px;
        padding: 6px 4px
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice i {
        font-size: 29px
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice span {
        font-size: 11px
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice-title {
        font-size: 11px;
        margin-bottom: 6px
    }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
    body:has(#rps-game) .rps-shell {
        padding-top: calc(4px + env(safe-area-inset-top));
        padding-bottom: calc(5px + env(safe-area-inset-bottom));
        gap: 4px
    }

    body:has(#rps-game) .rps-topbar {
        min-height: 30px
    }

    body:has(#rps-game) .rps-mark {
        width: 28px;
        height: 28px
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
        padding: 12px 18px;
        gap: 8px
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-heading h1 {
        font-size: 20px
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label {
        top: 14%
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls {
        left: auto;
        right: 10px;
        bottom: 8px;
        width: min(330px, 45vw)
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice {
        min-height: 56px
    }

    body:has(#rps-game) #rps-game.has-room .rps-scoreline {
        left: 12px;
        bottom: 8px;
        transform: none;
        scale: .84;
        transform-origin: left bottom
    }
}

@media (min-width: 821px) {
    body:has(#rps-game) #rps-game:not(.has-room) .rps-floating-controls {
        display: none
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-main {
        grid-template-columns:minmax(0, 760px);
        justify-content: center
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-arena {
        display: none
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
        min-height: min(620px, 72vh)
    }

    body:has(#rps-game) #rps-game.has-room .rps-main {
        grid-template-columns:minmax(0, 1fr);
    }

    body:has(#rps-game) #rps-game.has-room .rps-control-panel {
        display: none
    }

    body:has(#rps-game) #rps-game.has-room .rps-arena {
        min-height: min(78vh, 820px)
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls {
        display: block
    }
}

body:has(#rps-game) #rps-game.has-room .rps-outcome {
    top: 104px;
    right: 18px;
    bottom: auto
}

@media (max-width: 480px) {
    body:has(#rps-game) #rps-game.has-room .rps-outcome {
        top: 96px;
        right: 10px;
        bottom: auto;
        max-width: calc(100% - 20px)
    }
}

body:has(#rps-game) #rps-game.has-room .rps-countdown[data-kind="start"] {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    min-width: clamp(110px, 24vw, 190px);
    min-height: clamp(88px, 20vw, 150px);
    display: grid;
    place-items: center;
    border: 1px solid #8df0ff99 !important;
    border-radius: 28px;
    padding: 18px 28px;
    background: radial-gradient(circle at 30% 20%, #24566beF, #111e34f5 74%) !important;
    color: #e9fcff;
    font-size: clamp(42px, 12vw, 88px) !important;
    box-shadow: 0 0 0 100vmax #020914a8, 0 0 70px #4feaff77;
    animation: rpsStartPulse .8s ease-in-out infinite alternate
}

@keyframes rpsStartPulse {
    to {
        filter: brightness(1.35);
        transform: translate(-50%, -50%) scale(1.045)
    }
}

body:has(#rps-game) #rps-outcome.is-final {
    position: fixed;
    inset: 0;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 12000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 13px;
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 24px;
    background: #020813dd;
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 0 140px #14304788;
    animation: rpsFinalIn .4s cubic-bezier(.2, .8, .2, 1);
    backdrop-filter: blur(12px);
    text-align: center
}

body:has(#rps-game) #rps-outcome.is-final .rps-outcome-icon {
    width: 72px;
    height: 72px;
    font-size: 38px;
    border-radius: 24px;
    background: #ffffff18
}

body:has(#rps-game) #rps-outcome.is-final .rps-outcome-copy {
    display: grid;
    justify-items: center;
    gap: 7px;
    width: min(430px, 90vw);
    padding: 22px 18px;
    border: 1px solid #7ce9c477;
    border-radius: 26px;
    background: linear-gradient(145deg, #0c3029f5, #101c2ef5);
    box-shadow: 0 22px 80px #000b, 0 0 45px #57e6bc27
}

body:has(#rps-game) #rps-outcome.is-final[data-kind="loss"] .rps-outcome-copy {
    border-color: #ff879277;
    background: linear-gradient(145deg, #341d28f5, #151b2bf5)
}

body:has(#rps-game) #rps-outcome.is-final .rps-outcome-copy strong {
    font-size: clamp(25px, 6vw, 36px)
}

body:has(#rps-game) #rps-outcome.is-final .rps-outcome-copy small {
    font-size: 13px;
    line-height: 1.8
}

body:has(#rps-game) #rps-outcome-actions {
    display: flex;
    gap: 9px;
    margin-top: 9px
}

body:has(#rps-game) #rps-outcome-actions[hidden] {
    display: none !important
}

body:has(#rps-game) #rps-outcome-actions button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #7ce9c477;
    border-radius: 13px;
    background: linear-gradient(110deg, #70efbf, #65dfff);
    color: #07151f;
    font: 850 12px system-ui;
    cursor: pointer
}

body:has(#rps-game) #rps-outcome-actions #rps-back-home {
    background: #15243a;
    color: #e8f5ff;
    border-color: #a9c8e355
}

@keyframes rpsFinalIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@media (max-width: 480px) {
    body:has(#rps-game) #rps-outcome.is-final {
        right: 0;
        bottom: 0;
        max-width: none;
        padding: 15px
    }

    body:has(#rps-game) #rps-outcome-actions {
        width: 100%;
        display: grid;
        grid-template-columns:1fr 1fr
    }

    body:has(#rps-game) #rps-outcome-actions button {
        padding: 8px;
        font-size: 11px
    }
}

body:has(#rps-game) #rps-diamond-gate {
    position: fixed;
    z-index: 13000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #020813dd;
    backdrop-filter: blur(12px);
    font-family: system-ui, sans-serif;
    color: #f3f8ff
}

body:has(#rps-game) #rps-diamond-gate[hidden] {
    display: none
}

body:has(#rps-game) #rps-diamond-gate section {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(390px, 100%);
    padding: 26px 20px;
    border: 1px solid #f0cf7d77;
    border-radius: 25px;
    background: linear-gradient(145deg, #1b2938, #142521);
    box-shadow: 0 24px 80px #000b;
    text-align: center
}

body:has(#rps-game) #rps-diamond-gate section > span {
    font-size: 38px
}

body:has(#rps-game) #rps-diamond-gate strong {
    font-size: 23px;
    color: #ffe6a2
}

body:has(#rps-game) #rps-diamond-gate small {
    color: #bdccda;
    line-height: 1.8
}

body:has(#rps-game) #rps-diamond-gate section div {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

body:has(#rps-game) #rps-diamond-gate button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #ffffff28;
    border-radius: 13px;
    background: linear-gradient(110deg, #7affc0, #66dcff);
    color: #07151f;
    font: 850 12px system-ui
}

body:has(#rps-game) #rps-diamond-gate [data-close] {
    background: #152238;
    color: #eef6ff
}

body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
    position: fixed;
    z-index: 90;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 28px));
    max-height: min(88dvh, 820px);
    overflow-y: auto;
    border: 1px solid #8bdaff55;
    background: linear-gradient(145deg, #0d1e31f7, #142841f5);
    box-shadow: 0 28px 100px #000b, 0 0 45px #55d9ff1c;
    backdrop-filter: blur(20px)
}

body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel:before {
    content: "تنظیم مسابقه";
    display: block;
    color: #8cecff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em
}

@media (max-width: 820px) {
    body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
        width: min(540px, calc(100vw - 20px));
        height: auto;
        min-height: 0;
        max-height: calc(100dvh - 24px);
        padding: clamp(17px, 5vw, 25px)
    }
}

/* Extracted from blades/Hokmland/game/app/play/tank.blade.php · block 1; scoped to #tank4-root */
body:has(#tank4-root) {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: #08111f;
}

body:has(#tank4-root) #tank4-root {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    touch-action: none;
    overflow: hidden;
    --tank-ui-scale: .92;
}

body:has(#tank4-root) #Canvas,
body:has(#tank4-root) #ARCanvas,
body:has(#tank4-root) #VRCanvas {
    touch-action: none;
}

@media (orientation: landscape) {
    body:has(#tank4-root) #tank4-root {
        --tank-ui-scale: 1;
    }
}

/* Extracted from blades/Hokmland/game/app/play/warsix.blade.php · block 1; scoped to #warsix-root */
body:has(#warsix-root) {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden !important;
    background: #101a1c;
    color: #f5f4e7;
    overscroll-behavior: none;
    font-family: "iran", IRANSans, stedad, system-ui, sans-serif
}

body:has(#warsix-root) #warsix-root {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 48%, #466249 0, #263e35 52%, #121d22 100%);
    touch-action: none;
    isolation: isolate
}

body:has(#warsix-root) #Canvas {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer !important
}

body:has(#warsix-root) #Canvas:active {
    cursor: pointer !important
}

body:has(#warsix-root) .w6-ui {
    position: fixed;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
    box-sizing: border-box;
    direction: rtl
}

body:has(#warsix-root) .w6-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px
}

body:has(#warsix-root) .w6-card {
    pointer-events: auto;
    border: 1px solid #f3dfa847;
    border-radius: 17px;
    background: linear-gradient(145deg, #10231deF, #17242bea);
    box-shadow: 0 12px 35px #0007, inset 0 1px #fff2;
    backdrop-filter: blur(12px)
}

body:has(#warsix-root) .w6-brand {
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .05em
}

body:has(#warsix-root) .w6-brand small {
    display: block;
    color: #c2c9ad;
    font-size: 9px;
    letter-spacing: .12em
}

body:has(#warsix-root) .w6-hud {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end
}

body:has(#warsix-root) .w6-chip {
    padding: 8px 10px;
    border: 1px solid #ffffff24;
    border-radius: 12px;
    background: #091613c9;
    color: #f3e5bb;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap
}

body:has(#warsix-root) .w6-chip strong {
    color: #fff;
    font-size: 13px;
    margin-inline-start: 5px
}

body:has(#warsix-root) .w6-actions {
    display: flex;
    gap: 7px;
    pointer-events: auto
}

body:has(#warsix-root) .w6-btn {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #f4dfa566;
    border-radius: 12px;
    background: linear-gradient(140deg, #506a43, #90703d);
    color: #fff8df;
    font: 850 11px system-ui;
    cursor: pointer;
    box-shadow: 0 5px 16px #0006
}

body:has(#warsix-root) .w6-btn:disabled {
    opacity: .42;
    cursor: not-allowed
}

body:has(#warsix-root) .w6-btn.secondary {
    background: #101d1ced;
    border-color: #ffffff28
}

body:has(#warsix-root) .w6-btn.danger {
    background: linear-gradient(140deg, #7f3430, #50292b)
}

body:has(#warsix-root) .w6-roster {
    position: absolute;
    top: 68px;
    right: 12px;
    display: grid;
    gap: 5px;
    max-width: min(200px, 44vw)
}

body:has(#warsix-root) .w6-player {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 11px;
    background: #07130fdc;
    border: 1px solid #ffffff21;
    font-size: 10px
}

body:has(#warsix-root) .w6-player i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pc);
    box-shadow: 0 0 9px var(--pc);
    flex: none
}

body:has(#warsix-root) .w6-player b {
    margin-inline-start: auto;
    color: #ffe9aa
}

body:has(#warsix-root) .w6-player.is-me {
    border-color: var(--pc)
}

body:has(#warsix-root) .w6-player {
    position: relative
}

body:has(#warsix-root) .w6-player-bubble {
    position: absolute;
    z-index: 20;
    right: calc(100% + 9px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(145px, 19vw, 250px);
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--pc) 72%, white);
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(145deg, #0b1715f5, #152521f2);
    box-shadow: 0 8px 26px #0009;
    color: #fff5d9;
    font: 600 14px/1.7 "iran", IRANSans, stedad, system-ui, sans-serif;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
    transition: opacity .2s
}

body:has(#warsix-root) .w6-player-bubble:after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #13211df5;
    border-top: 1px solid color-mix(in srgb, var(--pc) 72%, white);
    border-right: 1px solid color-mix(in srgb, var(--pc) 72%, white);
    transform: translateY(-50%) rotate(45deg)
}

body:has(#warsix-root) .w6-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px
}

body:has(#warsix-root) .w6-status {
    max-width: min(330px, 52vw);
    padding: 9px 12px;
    color: #eee8cf;
    font-size: 11px;
    line-height: 1.65
}

body:has(#warsix-root) .w6-controls {
    pointer-events: auto;
    display: flex;
    gap: 7px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end
}

body:has(#warsix-root) .w6-panel {
    max-width: min(430px, 90vw);
    padding: 11px;
    display: none;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

body:has(#warsix-root) .w6-panel.show {
    display: flex
}

body:has(#warsix-root) .w6-panel strong {
    width: 100%;
    font-size: 12px
}

body:has(#warsix-root) .w6-panel small {
    color: #c4cdb8;
    font-size: 10px
}

body:has(#warsix-root) .w6-panel input {
    width: 78px;
    min-height: 38px;
    padding: 6px;
    border: 1px solid #ffffff38;
    border-radius: 10px;
    background: #06110f;
    color: white;
    font: 800 14px system-ui;
    text-align: center
}

body:has(#warsix-root) .w6-panel.is-floating {
    position: fixed;
    z-index: 7;
    width: min(270px, 76vw);
    max-width: 76vw;
    max-height: 140px;
    box-sizing: border-box;
    padding: 9px;
    gap: 6px;
    overflow: visible;
    background: linear-gradient(145deg, #10231df5, #17242bf5);
    box-shadow: 0 12px 35px #000a
}

body:has(#warsix-root) .w6-panel.is-floating strong {
    font-size: 13px
}

body:has(#warsix-root) .w6-panel.is-floating small {
    font-size: 12px;
    line-height: 1.6
}

body:has(#warsix-root) .w6-panel.is-floating input {
    width: 62px;
    min-height: 34px
}

body:has(#warsix-root) .w6-panel.is-floating .w6-btn {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 11px
}

body:has(#warsix-root) .w6-upgrades {
    pointer-events: auto;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end
}

body:has(#warsix-root) .w6-chat {
    pointer-events: auto;
    position: absolute;
    left: 12px;
    bottom: 80px;
    width: min(300px, 48vw);
    max-height: min(44vh, 330px);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

body:has(#warsix-root) .w6-chat-head {
    display: flex;
    gap: 4px;
    padding: 7px;
    flex-wrap: wrap
}

body:has(#warsix-root) .w6-chat-head button {
    padding: 5px 7px;
    border: 1px solid #ffffff2a;
    border-radius: 9px;
    background: #0a1613;
    color: #eee5c9;
    font: 750 9px system-ui
}

body:has(#warsix-root) .w6-chat-head button.active {
    background: #956c32
}

body:has(#warsix-root) .w6-chat-list {
    overflow: auto;
    max-height: 220px;
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

body:has(#warsix-root) .w6-chat-msg {
    padding: 6px 8px;
    border-radius: 9px;
    background: #ffffff0c;
    font-size: 10px;
    line-height: 1.5
}

body:has(#warsix-root) .w6-chat-msg b {
    color: #e7ca87;
    margin-inline-end: 5px
}

body:has(#warsix-root) .w6-chat {
    width: min(340px, 48vw);
    max-height: min(54vh, 440px);
    font-family: "iran", IRANSans, stedad, system-ui, sans-serif
}

body:has(#warsix-root) .w6-chat-head {
    flex: none
}

body:has(#warsix-root) .w6-chat-head button {
    padding: 7px 10px;
    font: 700 13px/1.5 "iran", IRANSans, stedad, system-ui, sans-serif;
    cursor: pointer
}

body:has(#warsix-root) .w6-chat-list {
    min-height: 0;
    max-height: min(46vh, 370px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    padding: 4px 9px 10px
}

body:has(#warsix-root) .w6-chat-msg {
    flex: none;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ffffff55;
    border-radius: 11px;
    color: #f4f1df;
    text-align: right;
    font: 500 13px/1.65 "iran", IRANSans, stedad, system-ui, sans-serif;
    cursor: pointer
}

body:has(#warsix-root) .w6-chat-msg:disabled {
    opacity: .52;
    cursor: wait
}

body:has(#warsix-root) .w6-chat[hidden] {
    display: none
}

body:has(#warsix-root) .w6-player,
body:has(#warsix-root) .w6-chat,
body:has(#warsix-root) .w6-btn {
    font-family: "iran", IRANSans, stedad, system-ui, sans-serif
}

body:has(#warsix-root) .w6-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 18px;
    background: linear-gradient(120deg, #081412b9, #101b1bbf);
    backdrop-filter: blur(6px);
    pointer-events: auto
}

body:has(#warsix-root) .w6-overlay[hidden] {
    display: none
}

body:has(#warsix-root) .w6-modal {
    width: min(540px, 100%);
    max-height: 90dvh;
    overflow: auto;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid #e1c37a77;
    border-radius: 24px;
    background: linear-gradient(145deg, #1b3026f5, #152126f7);
    box-shadow: 0 26px 100px #000b;
    text-align: center
}

body:has(#warsix-root) .w6-modal h1,
body:has(#warsix-root) .w6-modal h2 {
    margin: 0 0 8px;
    color: #ffedbd;
    font-size: clamp(23px, 5vw, 34px)
}

body:has(#warsix-root) .w6-modal p {
    margin: 6px auto 15px;
    color: #cbd3bd;
    font-size: 12px;
    line-height: 1.9
}

body:has(#warsix-root) .w6-seats {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 17px 0
}

body:has(#warsix-root) .w6-seats[data-player-count="4"] {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    max-width: 360px;
    margin-inline: auto;
    margin-block: 17px
}

body:has(#warsix-root) .w6-seat {
    min-height: 55px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 1px solid #ffffff25;
    border-radius: 13px;
    background: #0a1714;
    color: #dce5cf;
    font-size: 10px
}

body:has(#warsix-root) .w6-seat i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pc, #7a877a)
}

body:has(#warsix-root) .w6-seat.filled {
    border-color: var(--pc)
}

body:has(#warsix-root) .w6-seat small {
    color: #97a895
}

body:has(#warsix-root) .w6-modal .w6-btn {
    min-height: 46px;
    padding-inline: 20px
}

body:has(#warsix-root) .w6-terms {
    display: block;
    margin-top: 12px;
    color: #d4bd7f;
    font-size: 10px;
    line-height: 1.8
}

body:has(#warsix-root) .w6-countdown {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-size: clamp(90px, 25vw, 220px);
    font-weight: 1000;
    color: #fff2c0;
    text-shadow: 0 0 40px #f5b64e, 0 5px 25px #000;
    animation: w6-pop .8s ease infinite alternate
}

body:has(#warsix-root) .w6-countdown[hidden] {
    display: none
}

@keyframes w6-pop {
    to {
        transform: scale(1.07);
        filter: brightness(1.3)
    }
}

body:has(#warsix-root) .w6-btn.is-free-ready {
    border-color: #a6ffc5;
    background: linear-gradient(135deg, #247d57, #a1823e);
    box-shadow: 0 0 0 1px #8dffc77a, 0 0 14px #50f5a8b5, 0 0 29px #38dd9180, inset 0 0 13px #c7ffe940;
    animation: w6-free-glow 1.25s ease-in-out infinite alternate
}

body:has(#warsix-root) .w6-btn.is-free-ready:disabled {
    opacity: 1;
    filter: saturate(.75)
}

@keyframes w6-free-glow {
    from {
        box-shadow: 0 0 0 1px #8dffc766, 0 0 11px #50f5a880, 0 0 21px #38dd9155, inset 0 0 8px #c7ffe922
    }
    to {
        box-shadow: 0 0 0 2px #baffd1b0, 0 0 19px #50f5a8d9, 0 0 36px #38dd9199, inset 0 0 17px #c7ffe966;
        filter: brightness(1.12)
    }
}

body:has(#warsix-root) .w6-loading {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #07100fd9;
    backdrop-filter: blur(9px);
    pointer-events: auto
}

body:has(#warsix-root) .w6-loading[hidden] {
    display: none
}

body:has(#warsix-root) .w6-loading-card {
    width: min(340px, 88vw);
    padding: 24px;
    border: 1px solid #e5cb8190;
    border-radius: 22px;
    background: linear-gradient(145deg, #1b3026f5, #152126f7);
    box-shadow: 0 24px 80px #000b;
    text-align: center
}

body:has(#warsix-root) .w6-loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 15px;
    border: 4px solid #ffffff24;
    border-top-color: #f4d47a;
    border-right-color: #7ddca7;
    border-radius: 50%;
    animation: w6-spin .8s linear infinite
}

body:has(#warsix-root) .w6-loading-card strong {
    display: block;
    color: #fff0c3;
    font-size: 16px
}

body:has(#warsix-root) .w6-loading-card p {
    margin: 9px 0 0;
    color: #d1dbc9;
    font-size: 11px;
    line-height: 1.8
}

body:has(#warsix-root) .w6-loading.is-error .w6-loading-spinner {
    display: none
}

body:has(#warsix-root) .w6-loading-retry {
    margin-top: 14px
}

body:has(#warsix-root) .w6-loading-retry[hidden] {
    display: none
}

@keyframes w6-spin {
    to {
        transform: rotate(360deg)
    }
}

body:has(#warsix-root) .w6-toast {
    position: absolute;
    left: 50%;
    top: 20%;
    z-index: 13;
    transform: translateX(-50%);
    padding: 10px 15px;
    border-radius: 13px;
    background: #0a1514ed;
    border: 1px solid #f3d78966;
    color: #fff1c7;
    font-size: 11px;
    max-width: 88vw;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s
}

body:has(#warsix-root) .w6-toast.show {
    opacity: 1
}

body:has(#warsix-root) .w6-result {
    position: absolute;
    inset: 0;
    z-index: 14;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #050c0cbb;
    backdrop-filter: blur(9px);
    pointer-events: auto
}

body:has(#warsix-root) .w6-result[hidden] {
    display: none
}

body:has(#warsix-root) .w6-result-card {
    width: min(390px, 100%);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid #f4d47a99;
    background: linear-gradient(145deg, #1d3427, #17212a);
    text-align: center;
    box-shadow: 0 20px 70px #000b
}

body:has(#warsix-root) .w6-result-card b {
    display: block;
    font-size: 29px;
    color: #ffe7a3
}

body:has(#warsix-root) .w6-result-card p {
    font-size: 12px;
    line-height: 1.8;
    color: #d6dfd1
}

body:has(#warsix-root) .w6-result-card span {
    font-size: 44px
}

body:has(#warsix-root) .w6-result-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap
}

@media (max-width: 720px) {
    body:has(#warsix-root) .w6-ui {
        padding: calc(7px + env(safe-area-inset-top)) calc(7px + env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) calc(7px + env(safe-area-inset-left))
    }

    body:has(#warsix-root) .w6-brand {
        padding: 7px 9px;
        font-size: 10px
    }

    body:has(#warsix-root) .w6-hud {
        gap: 4px
    }

    body:has(#warsix-root) .w6-chip {
        padding: 6px 7px;
        font-size: 9px
    }

    body:has(#warsix-root) .w6-roster {
        top: 62px;
        right: 7px;
        gap: 3px
    }

    body:has(#warsix-root) .w6-player {
        padding: 5px;
        font-size: 9px
    }

    body:has(#warsix-root) .w6-player-bubble {
        width: clamp(125px, 36vw, 210px);
        right: calc(100% + 6px);
        font-size: 13px
    }

    body:has(#warsix-root) .w6-bottom {
        align-items: flex-end
    }

    body:has(#warsix-root) .w6-status {
        max-width: 44vw;
        font-size: 9px;
        padding: 7px
    }

    body:has(#warsix-root) .w6-controls {
        gap: 4px
    }

    body:has(#warsix-root) .w6-btn {
        min-height: 37px;
        padding: 7px 9px;
        font-size: 10px
    }

    body:has(#warsix-root) .w6-chat {
        left: 7px;
        bottom: 65px;
        width: min(275px, 62vw);
        max-height: 42vh
    }

    body:has(#warsix-root) .w6-chat-list {
        max-height: 32vh
    }

    body:has(#warsix-root) .w6-chat-msg {
        font-size: 13px
    }

    body:has(#warsix-root) .w6-seat {
        min-height: 47px
    }

    body:has(#warsix-root) .w6-panel {
        max-width: 96vw
    }

    body:has(#warsix-root) .w6-actions #w6-home {
        font-size: 0
    }

    body:has(#warsix-root) .w6-actions #w6-home:after {
        content: '⌂';
        font-size: 17px
    }
}

@media (orientation: portrait) and (max-width: 600px) {
    body:has(#warsix-root) .w6-top {
        align-items: flex-start
    }

    body:has(#warsix-root) .w6-hud {
        max-width: 66vw
    }

    body:has(#warsix-root) .w6-roster {
        top: 94px
    }

    body:has(#warsix-root) .w6-bottom {
        flex-direction: column;
        align-items: stretch
    }

    body:has(#warsix-root) .w6-status {
        max-width: none;
        align-self: flex-start
    }

    body:has(#warsix-root) .w6-controls {
        justify-content: space-between
    }

    body:has(#warsix-root) .w6-chat {
        bottom: 128px;
        width: min(240px, 58vw)
    }

    body:has(#warsix-root) .w6-upgrades {
        justify-content: flex-start
    }

    body:has(#warsix-root) .w6-actions {
        margin-inline-start: auto
    }
}

@media (orientation: portrait) and (max-width: 600px) {
    body:has(#warsix-root) .w6-top {
        display: grid;
        grid-template-columns:minmax(0, 1fr) auto;
        grid-template-areas:"brand actions" "hud hud";
        align-items: center;
        gap: 6px
    }

    body:has(#warsix-root) .w6-brand {
        grid-area: brand;
        justify-self: start;
        max-width: 100%;
        box-sizing: border-box
    }

    body:has(#warsix-root) .w6-actions {
        grid-area: actions;
        flex-wrap: nowrap;
        gap: 4px
    }

    body:has(#warsix-root) .w6-actions #w6-home {
        min-width: 38px;
        padding: 6px
    }

    body:has(#warsix-root) .w6-actions #w6-test-exit {
        white-space: nowrap;
        padding: 6px 8px;
        font-size: 9px
    }

    body:has(#warsix-root) .w6-hud {
        grid-area: hud;
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap: 4px
    }

    body:has(#warsix-root) .w6-chip {
        min-width: 0;
        box-sizing: border-box;
        padding: 6px 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        font-size: 9px
    }

    body:has(#warsix-root) .w6-chip strong {
        font-size: 11px;
        margin-inline-start: 2px
    }

    body:has(#warsix-root) .w6-roster {
        top: calc(126px + env(safe-area-inset-top));
        left: 8px;
        right: 8px;
        max-width: none;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap: 4px
    }

    body:has(#warsix-root) .w6-player {
        min-width: 0;
        justify-content: center;
        gap: 4px;
        padding: 5px 4px;
        overflow: hidden;
        font-size: 9px;
        white-space: nowrap
    }

    body:has(#warsix-root) .w6-player span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis
    }

    body:has(#warsix-root) .w6-player b {
        margin-inline-start: 0;
        font-size: 8px;
        white-space: nowrap
    }

    body:has(#warsix-root) .w6-player i {
        width: 7px;
        height: 7px
    }

    body:has(#warsix-root) .w6-player-bubble {
        left: 50%;
        right: auto;
        top: calc(100% + 4px);
        transform: translateX(-50%);
        width: min(220px, 74vw)
    }

    body:has(#warsix-root) .w6-bottom {
        gap: 5px
    }

    body:has(#warsix-root) .w6-status {
        align-self: center;
        text-align: center;
        padding: 6px 9px
    }

    body:has(#warsix-root) .w6-controls {
        width: 100%;
        justify-content: center;
        gap: 4px
    }

    body:has(#warsix-root) .w6-upgrades {
        width: 100%;
        display: grid;
        grid-template-columns:minmax(0, 1fr) minmax(0, 1.5fr) auto;
        gap: 4px
    }

    body:has(#warsix-root) .w6-upgrades .w6-btn {
        min-width: 0;
        padding: 6px 5px;
        font-size: 9px;
        white-space: nowrap
    }

    body:has(#warsix-root) .w6-panel.is-floating {
        width: min(270px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        padding: 8px;
        gap: 5px
    }
}

body:has(#warsix-root)

/* Compact portrait layout: keep the board clear and make its controls readable. */
@media (orientation: portrait) and (max-width: 600px) {
    .w6-top {
        grid-template-columns:minmax(0, 1fr) auto;
        grid-template-areas:"brand actions" "hud hud";
        gap: 5px
    }

    .w6-brand {
        padding: 6px 8px;
        font-size: 10px;
        line-height: 1.35
    }

    .w6-brand small {
        font-size: 8px
    }

    .w6-hud {
        grid-template-columns:repeat(5, minmax(0, 1fr));
        gap: 3px
    }

    .w6-chip {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        border-radius: 9px;
        font-size: 0
    }

    .w6-chip-icon {
        font-size: 13px;
        line-height: 1
    }

    .w6-chip-label {
        display: none
    }

    .w6-chip strong {
        max-width: 46px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 10px;
        line-height: 1.2;
        margin: 0
    }

    .w6-chip:nth-child(3) strong {
        max-width: 34px
    }

    .w6-roster {
        top: calc(101px + env(safe-area-inset-top));
        left: auto;
        right: 7px;
        width: min(154px, 43vw);
        max-width: none;
        display: flex;
        flex-direction: column;
        gap: 4px
    }

    .w6-player {
        width: 100%;
        min-height: 30px;
        box-sizing: border-box;
        justify-content: flex-start;
        gap: 6px;
        padding: 5px 7px;
        font-size: 10px;
        white-space: nowrap
    }

    .w6-player span {
        min-width: 0;
        flex: 1;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .w6-player b {
        margin-inline-start: 0;
        font-size: 9px;
        white-space: nowrap
    }

    .w6-player i {
        width: 8px;
        height: 8px
    }

    .w6-player-bubble {
        left: auto;
        right: calc(100% + 5px);
        top: 50%;
        transform: translateY(-50%);
        width: min(160px, 43vw);
        padding: 7px 9px;
        font-size: 12px;
        line-height: 1.55
    }

    .w6-player .w6-player-bubble {
        flex: none;
        overflow: visible;
        text-overflow: clip
    }

    .w6-chat {
        left: 7px;
        right: auto;
        bottom: calc(116px + env(safe-area-inset-bottom));
        width: min(310px, 68vw);
        max-height: 36vh;
        border-color: #f3dfa877;
        background: linear-gradient(145deg, #0b1917f7, #14231ff7);
        box-shadow: 0 10px 28px #000b
    }

    .w6-chat-head {
        gap: 5px;
        padding: 7px
    }

    .w6-chat-head button {
        flex: 1;
        min-height: 35px;
        padding: 6px 7px;
        font-size: 12px
    }

    .w6-chat-list {
        max-height: 27vh;
        padding: 4px 8px 9px
    }

    .w6-chat-msg {
        min-height: 42px;
        padding: 8px 9px;
        font-size: 14px;
        line-height: 1.65
    }

    .w6-bottom {
        gap: 5px
    }

    .w6-status {
        max-width: calc(100vw - 24px);
        font-size: 10px;
        line-height: 1.6
    }

    .w6-upgrades .w6-btn {
        min-height: 40px;
        font-size: 10px
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(#warsix-root) .w6-countdown {
        animation: none
    }
}

/* Extracted from blades/Hokmland/game/app/start/login.blade.php · block 1; scoped to .hk-auth-grid */
body:has(.hk-auth-grid) .hk-otp-wrap {
    position: relative;
    direction: ltr;
    margin-top: 4px
}

body:has(.hk-auth-grid) .hk-otp-cells {
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 9px
}

body:has(.hk-auth-grid) .hk-otp-cells i {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 54px;
    border: 1px solid #c8a85866;
    border-radius: 14px;
    background: linear-gradient(145deg, #152d2b, #111923);
    color: #f4d98d;
    font: 900 22px system-ui;
    font-style: normal;
    box-shadow: inset 0 1px #ffffff18, 0 7px 16px #0002;
    transition: .18s
}

body:has(.hk-auth-grid) .hk-otp-wrap:focus-within .hk-otp-cells i {
    border-color: #83e4be;
    box-shadow: 0 0 0 2px #83e4be20, inset 0 1px #fff2
}

body:has(.hk-auth-grid) .hk-otp-input {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: .025;
    padding: 0 !important;
    cursor: text;
    letter-spacing: 1.25em
}

body:has(.hk-auth-grid) .hk-otp-input:focus {
    box-shadow: none !important;
    outline: none
}

body:has(.hk-auth-grid) #hk-phone-step[hidden],
body:has(.hk-auth-grid) .hk-otp-step[hidden],
body:has(.hk-auth-grid) #login-submit[hidden] {
    display: none !important
}

body:has(.hk-auth-grid) .hk-phone-edit {
    margin-top: 7px;
    text-decoration: underline
}

body:has(.hk-auth-grid) .hk-guest-create {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #73d9b344;
    border-radius: 18px;
    background: linear-gradient(145deg, #102b27, #101925);
    box-shadow: inset 0 1px #ffffff12
}

body:has(.hk-auth-grid) .hk-guest-create > div > span {
    color: #8ef0cb;
    font-size: 11px;
    font-weight: 900
}

body:has(.hk-auth-grid) .hk-guest-create h2 {
    margin: 4px 0;
    color: #ffe6a5;
    font-size: 17px
}

body:has(.hk-auth-grid) .hk-guest-create p {
    margin: 0;
    color: #c4d1d0;
    font-size: 11px;
    line-height: 1.8
}

body:has(.hk-auth-grid) .hk-guest-create > label {
    margin: 0;
    color: #e4e9df;
    font-size: 12px
}

body:has(.hk-auth-grid) #hk-guest-status {
    min-height: 1.5em;
    color: #ffd997
}

body:has(.hk-auth-grid) #hk-guest-submit:disabled {
    opacity: .65;
    cursor: wait
}

body:has(.hk-auth-grid) .hk-guest-recover {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #c8a85844;
    border-radius: 18px;
    background: linear-gradient(145deg, #201e19, #111923);
    box-shadow: inset 0 1px #ffffff12
}

body:has(.hk-auth-grid) .hk-guest-recover h2 {
    margin: 0;
    color: #ffe6a5;
    font-size: 15px
}

body:has(.hk-auth-grid) .hk-guest-recover p {
    margin: 0;
    color: #c4d1d0;
    font-size: 11px;
    line-height: 1.8
}

body:has(.hk-auth-grid) #hk-recover-status {
    min-height: 1.5em;
    color: #ffd997
}

body:has(.hk-auth-grid) #hk-recover-submit:disabled {
    opacity: .65;
    cursor: wait
}

body:has(.hk-auth-grid) #hk-auth-choice[hidden],
body:has(.hk-auth-grid) #hk-auth-existing[hidden],
body:has(.hk-auth-grid) #hk-auth-phone-flow[hidden],
body:has(.hk-auth-grid) #hk-auth-guest-flow[hidden],
body:has(.hk-auth-grid) #hk-auth-key-flow[hidden],
body:has(.hk-auth-grid) #hk-key-code-row[hidden] {
    display: none !important
}

body:has(.hk-auth-grid) .hk-entry-choice {
    display: grid;
    gap: 10px;
    margin-top: 18px
}

body:has(.hk-auth-grid) .hk-entry-choice button,
body:has(.hk-auth-grid) .hk-entry-option {
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #83e4be55;
    border-radius: 15px;
    background: linear-gradient(145deg, #12352f, #111923);
    color: #f4f4e9;
    font: 800 14px system-ui;
    text-align: right;
    cursor: pointer
}

body:has(.hk-auth-grid) .hk-entry-choice button:first-child {
    background: linear-gradient(115deg, #6af0c2, #73d9e9);
    color: #10232a
}

body:has(.hk-auth-grid) .hk-entry-choice small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    opacity: .8
}

body:has(.hk-auth-grid) .hk-entry-back {
    padding: 6px 0;
    border: 0;
    background: none;
    color: #9de9c8;
    font: 700 12px system-ui;
    text-align: right;
    cursor: pointer
}

body:has(.hk-auth-grid) .hk-login-feedback {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #73d9b355;
    border-radius: 12px;
    background: #10251fcc;
    color: #d5f5e8;
    font-size: 11px;
    line-height: 1.8
}

body:has(.hk-auth-grid) .hk-login-feedback[hidden] {
    display: none !important
}

body:has(.hk-auth-grid) .hk-key-code-row {
    display: grid;
    gap: 9px;
    margin-top: 10px
}

body:has(.hk-auth-grid) .hk-key-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #050b10df
}

body:has(.hk-auth-grid) .hk-key-modal[hidden] {
    display: none !important
}

body:has(.hk-auth-grid) .hk-key-modal-card {
    width: min(480px, 100%);
    padding: 22px;
    border: 1px solid #e5c978;
    border-radius: 22px;
    background: linear-gradient(145deg, #132a25, #111822);
    color: #f6f1df;
    box-shadow: 0 24px 75px #000b
}

body:has(.hk-auth-grid) .hk-key-modal-card h2 {
    margin: 0 0 8px;
    color: #ffe6a5
}

body:has(.hk-auth-grid) .hk-key-modal-card p {
    font-size: 12px;
    line-height: 1.9;
    color: #d2d8cf
}

body:has(.hk-auth-grid) .hk-key-value {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #8affd577;
    border-radius: 12px;
    background: #07120f;
    color: #9fffdc;
    font: 700 12px/1.7 monospace;
    overflow-wrap: anywhere;
    user-select: text
}

body:has(.hk-auth-grid) .hk-key-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px
}

body:has(.hk-auth-grid) .hk-key-modal-actions button {
    flex: 1;
    min-height: 44px;
    border: 1px solid #e5c978;
    border-radius: 12px;
    background: #e3bd64;
    color: #20180b;
    font-weight: 900;
    cursor: pointer
}

@media (max-width: 480px) {
    body:has(.hk-auth-grid) .hk-otp-cells {
        gap: 6px
    }

    body:has(.hk-auth-grid) .hk-otp-cells i {
        height: 48px;
        border-radius: 11px
    }
}

/* Extracted from blades/Hokmland/game/app/start/menu.blade.php · block 1; scoped to .hk-home-hero */
body:has(.hk-home-hero) .hk-nav-grid button {
    transition: transform .2s ease, box-shadow .2s ease
}

body:has(.hk-home-hero) .hk-nav-grid button:hover {
    transform: translateY(-3px)
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    max-width: 1120px
}

body:has(.hk-home-hero) .hk-game-launch {
    --launch-a: #14463f;
    --launch-b: #b58235;
    position: relative;
    isolation: isolate;
    min-height: 154px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 17px 18px;
    border: 1px solid color-mix(in srgb, var(--launch-b), transparent 46%);
    border-radius: 22px;
    background: radial-gradient(circle at 15% 8%, color-mix(in srgb, var(--launch-b), transparent 68%), transparent 38%), linear-gradient(138deg, var(--launch-a), var(--launch-b));
    color: #fff;
    text-align: right;
    cursor: pointer;
    box-shadow: 0 18px 44px #06121a33, inset 0 1px #ffffff25;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease
}

body:has(.hk-home-hero) .hk-game-launch:before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 145px;
    height: 145px;
    left: -30px;
    top: 14px;
    border: 1px solid #ffffff27;
    border-radius: 50%;
    box-shadow: 0 0 0 15px #ffffff08, 0 0 0 31px #ffffff05;
    transition: transform .35s ease
}

body:has(.hk-home-hero) .hk-game-launch:hover,
body:has(.hk-home-hero) .hk-game-launch:focus-visible {
    transform: translateY(-5px) scale(1.012);
    box-shadow: 0 24px 54px #06121a55, inset 0 1px #ffffff36;
    filter: saturate(1.12)
}

body:has(.hk-home-hero) .hk-game-launch:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px
}

body:has(.hk-home-hero) .hk-game-launch-art {
    position: absolute;
    left: 17px;
    top: 13px;
    font-size: 42px;
    line-height: 1;
    filter: drop-shadow(0 7px 12px #0004);
    transform: rotate(-9deg);
    transition: transform .3s ease
}

body:has(.hk-home-hero) .hk-game-launch:hover .hk-game-launch-art {
    transform: rotate(0) scale(1.1)
}

body:has(.hk-home-hero) .hk-game-launch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #ffffff35;
    border-radius: 99px;
    background: #07131b35;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    backdrop-filter: blur(8px)
}

body:has(.hk-home-hero) .hk-game-launch h2 {
    margin: 10px 0 3px;
    font-size: 19px;
    line-height: 1.35
}

body:has(.hk-home-hero) .hk-game-launch p {
    margin: 0;
    color: #ffffffca;
    font-size: 11px;
    line-height: 1.7
}

body:has(.hk-home-hero) .hk-game-launch-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 800
}

body:has(.hk-home-hero) .hk-game-launch-cta b {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #ffffff23;
    font-size: 14px
}

body:has(.hk-home-hero) .hk-game-launch--cards {
    --launch-a: #123d38;
    --launch-b: #b27c30;
    grid-column: 1/-1;
    min-height: 212px;
    padding: 24px 26px
}

body:has(.hk-home-hero) .hk-game-launch--cards h2 {
    font-size: clamp(23px, 3vw, 34px)
}

body:has(.hk-home-hero) .hk-game-launch--cards p {
    font-size: 13px
}

body:has(.hk-home-hero) .hk-game-launch--warsix {
    --launch-a: #1a313b;
    --launch-b: #32bf37ba;
}

body:has(.hk-home-hero) .hk-game-launch--tank {
    --launch-a: #162c37;
    --launch-b: #b85f31
}

body:has(.hk-home-hero) .hk-game-launch--knight {
    --launch-a: #273b34;
    --launch-b: #d1a64f
}

body:has(.hk-home-hero) .hk-game-launch--rps {
    --launch-a: #182b69;
    --launch-b: #1b9fb5
}

body:has(.hk-home-hero) .hk-game-launch--rift {
    --launch-a: #24133f;
    --launch-b: #8f3bb7
}

body:has(.hk-home-hero) .hk-home-account {
    display: grid;
    gap: 12px;
    align-content: start;
    min-width: 0
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #ffffff20;
    border-radius: 22px;
    background: linear-gradient(145deg, #172d40, #0b1927);
    color: #f4f8ff;
    text-align: right;
    cursor: pointer
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 2px solid #f0c46d;
    border-radius: 50%
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player span {
    display: grid;
    gap: 4px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player small,
body:has(.hk-home-hero) .hk-wallet-chip small {
    color: #9bb1c9;
    font-size: 11px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player strong {
    font-size: 16px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player b {
    color: #68d7ed;
    font-size: 11px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player i {
    display: none
}

body:has(.hk-home-hero) .hk-home-wallet {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 9px
}

body:has(.hk-home-hero) .hk-wallet-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 11px;
    border: 1px solid #ffffff1a;
    border-radius: 16px;
    background: linear-gradient(145deg, #13263a, #0a1725);
    color: #fff;
    text-align: right;
    cursor: pointer
}

body:has(.hk-home-hero) .hk-wallet-chip > span:nth-child(2) {
    display: grid;
    gap: 4px;
    min-width: 0
}

body:has(.hk-home-hero) .hk-wallet-chip strong {
    font-size: 15px
}

body:has(.hk-home-hero) .hk-wallet-chip > b {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-right: auto;
    border-radius: 50%;
    background: #32c8e8;
    color: #07131b;
    font-size: 19px;
    line-height: 1
}

body:has(.hk-home-hero) .hk-wallet-chip:hover {
    border-color: #54d5eb;
    transform: translateY(-2px)
}

body:has(.hk-home-hero) .hk-nav-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 11px
}

body:has(.hk-home-hero) .hk-nav-grid .hk-nav-card {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #19344b;
    border-radius: 18px;
    background: linear-gradient(145deg, #12283a, #0b1927);
    color: #edf5ff;
    text-align: right;
    cursor: pointer
}

body:has(.hk-home-hero) .hk-nav-card .hk-nav-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    background: linear-gradient(145deg, #214760, #132b40);
    color: #72d9ee;
    font-size: 21px
}

body:has(.hk-home-hero) .hk-nav-card > span:nth-child(2) {
    display: grid;
    gap: 3px
}

body:has(.hk-home-hero) .hk-nav-card small {
    color: #91a8bf;
    font-size: 10px
}

body:has(.hk-home-hero) .hk-nav-card .hk-nav-arrow {
    margin-right: auto;
    color: #68d7ed
}

body:has(.hk-home-hero) .hk-side-menu[hidden] {
    display: none
}

body:has(.hk-home-hero) .hk-side-menu:not([hidden]) {
    position: fixed;
    z-index: 10020;
    top: 76px;
    right: max(16px, calc((100vw - 1120px) / 2));
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(360px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid #29455e;
    border-radius: 20px;
    background: #0b1926f5;
    box-shadow: 0 22px 64px #0009;
    backdrop-filter: blur(18px)
}

body:has(.hk-home-hero) .hk-side-menu > button,
body:has(.hk-home-hero) .hk-side-menu > a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid #ffffff14;
    border-radius: 13px;
    background: #14283a;
    color: #eff7ff;
    text-decoration: none;
    text-align: right;
    font: 700 12px/1.5 system-ui;
    cursor: pointer
}

body:has(.hk-home-hero) .hk-side-menu > button span:first-child,
body:has(.hk-home-hero) .hk-side-menu > a span:first-child {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #21445b;
    color: #72d9ee;
    font-size: 17px
}

body:has(.hk-home-hero) .hk-side-menu > button span:last-child,
body:has(.hk-home-hero) .hk-side-menu > a span:last-child {
    margin-right: auto;
    color: #69d8ed
}

body:has(.hk-home-hero) .hk-home-hero {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 260px;
    align-items: start;
    gap: 20px
}

body:has(.hk-home-hero) .hk-home-welcome {
    min-width: 0
}

body:has(.hk-home-hero) .hk-stat-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr))
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-home-hero {
        grid-template-columns:1fr
    }

    body:has(.hk-home-hero) .hk-game-launch-grid {
        grid-template-columns:1fr;
        max-width: 520px
    }

    body:has(.hk-home-hero) .hk-game-launch,
    body:has(.hk-home-hero) .hk-game-launch--cards {
        grid-column: auto;
        min-height: 130px;
        padding: 15px 17px
    }

    body:has(.hk-home-hero) .hk-game-launch--cards {
        min-height: 178px
    }

    body:has(.hk-home-hero) .hk-game-launch-art {
        font-size: 36px;
        left: 15px;
        top: 15px
    }

    body:has(.hk-home-hero) .hk-game-launch h2 {
        font-size: 17px;
        margin-top: 7px
    }

    body:has(.hk-home-hero) .hk-game-launch--cards h2 {
        font-size: 24px
    }

    body:has(.hk-home-hero) .hk-game-launch-cta {
        margin-top: 8px
    }

    body:has(.hk-home-hero) .hk-nav-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    body:has(.hk-home-hero) .hk-wallet-chip {
        padding: 9px 7px;
        gap: 6px
    }
}

@media (prefers-color-scheme: light) {
    body:has(.hk-home-hero) .hk-app-page {
        background: linear-gradient(145deg, #eef7ff, #fff)
    }

    body:has(.hk-home-hero) .hk-panel,
    body:has(.hk-home-hero) .hk-nav-card {
        box-shadow: 0 12px 30px #16324d16
    }
}

body:has(.hk-home-hero) #hk-phone-reminder,
body:has(.hk-home-hero) #hk-daily-offer-modal,
body:has(.hk-home-hero) .hk-app-page [role="dialog"],
body:has(.hk-home-hero) .hk-app-page [role="alert"],
body:has(.hk-home-hero) .hk-app-page [aria-live] {
    direction: rtl;
    text-align: right;
    font-family: "iran", IRANSans, IRANSansWeb, Tahoma, sans-serif
}

/* Extracted from blades/Hokmland/game/app/start/menu.blade.php · block 2; scoped to .hk-home-hero */
body:has(.hk-home-hero) .hk-daily-offer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    place-items: center;
    padding: 18px;
    overflow: auto;
    background: radial-gradient(ellipse at 50% 40%, #dfaa4430, transparent 45%), radial-gradient(ellipse at 15% 85%, #19b89b18, transparent 40%), #02060de8;
    backdrop-filter: blur(12px);
    direction: rtl
}

body:has(.hk-home-hero) .hk-daily-offer-backdrop:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #ffe7a9 0 1px, transparent 1.8px), radial-gradient(circle, #6ceac8 0 1px, transparent 1.8px);
    background-size: 71px 71px, 113px 113px;
    background-position: 0 0, 28px 47px;
    opacity: .32;
    animation: hk-offer-stars 7s linear infinite
}

body:has(.hk-home-hero) .hk-daily-offer,
body:has(.hk-home-hero) .hk-daily-offer * {
    box-sizing: border-box
}

body:has(.hk-home-hero) .hk-daily-offer {
    isolation: isolate;
    position: relative;
    width: min(100%, 550px);
    overflow: hidden;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid #f4d478;
    border-radius: 30px;
    background: radial-gradient(ellipse at 50% -8%, #ffe49b3d, transparent 42%), radial-gradient(ellipse at 100% 100%, #18bb9e22, transparent 50%), linear-gradient(145deg, #142b29, #101923 70%, #1b1b1c);
    color: #fff;
    box-shadow: 0 30px 100px #000c, 0 0 0 5px #e0b84a18, 0 0 48px #e4b94b55, inset 0 1px #fff5;
    text-align: center;
    direction: rtl;
    font-family: "iran", IRANSans, IRANSansWeb, Tahoma, sans-serif;
    animation: hk-offer-enter .55s cubic-bezier(.2, .8, .2, 1) both
}

/* Keep salon and leaderboard pages scrollable inside the AJAX app shell. */
.content.hk-app-host#ajaxer {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important
}

.content.hk-app-host#ajaxer .hk-app-page {
    height: auto !important;
    min-height: 100dvh !important;
    padding-bottom: calc(42px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
    touch-action: pan-y !important
}

.content.hk-app-host#ajaxer .hk-app-wrap {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 24px !important
}

.content.hk-app-host#ajaxer {
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior-y: auto !important;
    scrollbar-width: thin !important;
    touch-action: pan-y !important
}

.content.hk-app-host#ajaxer > .hk-app-page {
    display: flow-root !important;
    height: max-content !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important
}

.content.hk-app-host#ajaxer .hk-app-page > .hk-app-wrap {
    display: flow-root !important;
    height: max-content !important;
    min-height: 0 !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer {
    overflow-y: scroll !important;
    overscroll-behavior-y: auto !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer .hk-home-hero {
    min-height: min-content !important
}

/* Stable single-surface vertical scrolling for the AJAX salon shell. */
.content.hk-app-host#ajaxer {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    scrollbar-gutter: stable !important
}

.content.hk-app-host#ajaxer > .hk-app-page {
    display: flow-root !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: max-content !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    touch-action: pan-y !important
}

.content.hk-app-host#ajaxer > .hk-app-page > .hk-app-wrap {
    display: flow-root !important;
    width: min(100%, 1240px) !important;
    height: max-content !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page {
    padding: clamp(12px, 2vw, 24px) !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page > .hk-app-wrap {
    padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important
}

/* Keep the four suit choices in an even, readable row in the Hokm modal. */
.hk-hokm-page {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important
}

.hk-hokm-card {
    box-sizing: border-box !important;
    width: min(720px, 100%) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important
}

.hk-suit-choices {
    display: grid !important;
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: clamp(7px, 2vw, 14px) !important;
    width: 100% !important;
    margin: 16px auto 0 !important
}

.hk-suit-choices > .hk-suit-choice {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    display: grid !important;
    grid-template-rows:1fr auto !important;
    justify-items: center !important;
    align-content: center !important;
    min-width: 0 !important;
    min-height: clamp(94px, 18vw, 140px) !important;
    padding: 10px 5px !important;
    border: 1px solid #d7bc7c99 !important;
    border-radius: 17px !important;
    background: linear-gradient(150deg, #1d4439, #10241f) !important;
    box-shadow: inset 0 1px #fff2, 0 8px 20px #0005 !important
}

.hk-suit-choices > .hk-suit-choice img {
    display: block !important;
    width: clamp(38px, 8vw, 66px) !important;
    height: auto !important;
    max-height: 88px !important;
    object-fit: contain !important
}

.hk-suit-choices > .hk-suit-choice span {
    font-size: clamp(11px, 2.6vw, 14px) !important;
    line-height: 1.3 !important
}

.hk-suit-choices > .hk-suit-choice:hover, .hk-suit-choices > .hk-suit-choice:focus-visible {
    transform: translateY(-3px) !important;
    border-color: #ffe39a !important;
    box-shadow: 0 0 0 2px #f3d58333, 0 12px 26px #0007 !important;
    outline: none !important
}

/* Prevent the RPS arena from producing a horizontal viewport scrollbar. */
html:has(#rps-game), body:has(#rps-game), body:has(#rps-game) #ajaxer {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important
}

body:has(#rps-game) #rps-game, body:has(#rps-game) .rps-shell {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: clip !important
}

body:has(#rps-game) .rps-header, body:has(#rps-game) .rps-main, body:has(#rps-game) .rps-arena, body:has(#rps-game) .rps-control-panel {
    min-width: 0 !important;
    max-width: 100% !important
}

@media (max-width: 560px) {
    .hk-suit-choices {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important
    }

    .hk-suit-choices > .hk-suit-choice {
        min-height: 92px !important
    }

    .hk-suit-choices > .hk-suit-choice img {
        width: 48px !important
    }
}


/* Last home pass: equal card dimensions and a balanced account panel on phones. */
body:has(.hk-home-hero) .hk-game-slider-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 34px !important;
    margin: 7px 2px 5px !important;
    color: #a6cdbd !important;
    font-size: 11px !important;
    font-weight: 750 !important
}

body:has(.hk-home-hero) .hk-game-slider-controls {
    display: flex !important;
    gap: 6px !important;
    flex: none !important
}

body:has(.hk-home-hero) .hk-game-slider-controls button {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 30px !important;
    border: 1px solid #d8bf7566 !important;
    border-radius: 10px !important;
    background: #ffffff0a !important;
    color: #f6d984 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    touch-action: manipulation !important
}

body:has(.hk-home-hero) .hk-game-slider-controls button:hover {
    background: #d8bf7522 !important;
    border-color: #f6d984 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    align-items: stretch !important;
    direction: rtl !important;
    touch-action: pan-y !important;
    overscroll-behavior-inline: contain !important;
    cursor: grab !important
}

body:has(.hk-home-hero) .hk-game-launch-grid.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
    box-sizing: border-box !important;
    flex: 0 0 clamp(260px, 31%, 315px) !important;
    width: auto !important;
    height: clamp(174px, 19vw, 210px) !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    text-decoration: none !important;
    color: #fff !important;
    -webkit-tap-highlight-color: transparent !important
}

body:has(.hk-home-hero) .hk-game-launch > div {
    min-width: 0 !important;
    width: 100% !important
}

body:has(.hk-home-hero) .hk-game-launch p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.65 !important
}

body:has(.hk-home-hero) .hk-home-account {
    grid-template-columns:minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important
}

body:has(.hk-home-hero) .hk-home-wallet, body:has(.hk-home-hero) .hk-home-progress {
    display: grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-wallet > .hk-wallet-chip, body:has(.hk-home-hero) .hk-home-progress > .hk-home-stat {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 72px !important
}

body:has(.hk-home-hero) .hk-home-stat {
    display: grid !important;
    grid-template-columns:38px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 11px !important;
    border: 1px solid #d7bd7650 !important;
    border-radius: 15px !important;
    background: linear-gradient(145deg, #172c2b, #111b23) !important;
    color: #fff0ca !important;
    box-shadow: inset 0 1px #ffffff12, 0 7px 18px #0003 !important
}

body:has(.hk-home-hero) .hk-home-stat > span:first-child {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #d7bd7655 !important;
    border-radius: 12px !important;
    background: #ffffff09 !important;
    font-size: 21px !important
}

body:has(.hk-home-hero) .hk-home-stat > span:last-child {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-stat small {
    color: #a9bdba !important;
    font-size: 9px !important;
    line-height: 1.2 !important
}

body:has(.hk-home-hero) .hk-home-stat strong {
    overflow: hidden !important;
    color: #fff0ca !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important
}

body:has(.hk-home-hero) .hk-game-launch-art--rps {
    color: #f4d67f !important;
    filter: grayscale(1) sepia(.38) saturate(1.15) brightness(1.2) !important;
    font-family: Arial, sans-serif !important;
    font-variant-emoji: text !important
}

body:has(.hk-ajax-game-host) .hk-ajax-game-host iframe {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: #07101e !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-home-account {
        grid-template-columns:minmax(0, 1fr) !important;
        grid-template-rows:auto !important;
        gap: 8px !important
    }

    body:has(.hk-home-hero) .hk-home-account .hk-home-player {
        min-height: 108px !important;
        height: auto !important
    }

    body:has(.hk-home-hero) .hk-home-wallet, body:has(.hk-home-hero) .hk-home-progress {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important
    }

    body:has(.hk-home-hero) .hk-home-wallet > .hk-wallet-chip, body:has(.hk-home-hero) .hk-home-progress > .hk-home-stat {
        height: 64px !important;
        min-height: 64px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid {
        gap: 9px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: min(82vw, 310px) !important;
        height: 158px !important
    }
}

@media (max-width: 360px) {
    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: calc(100vw - 52px) !important;
        height: 150px !important
    }

    body:has(.hk-home-hero) .hk-home-wallet > .hk-wallet-chip, body:has(.hk-home-hero) .hk-home-progress > .hk-home-stat {
        padding-inline: 6px !important
    }
}

/* Home game rail: equal cards with working touch/mouse drag and explicit controls. */
body:has(.hk-home-hero) .hk-game-slider-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 34px !important;
    margin: 7px 2px 5px !important;
    color: #a6cdbd !important;
    font-size: 11px !important;
    font-weight: 750 !important
}

body:has(.hk-home-hero) .hk-game-slider-controls {
    display: flex !important;
    gap: 6px !important;
    flex: none !important
}

body:has(.hk-home-hero) .hk-game-slider-controls button {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 30px !important;
    border: 1px solid #d8bf7566 !important;
    border-radius: 10px !important;
    background: #ffffff0a !important;
    color: #f6d984 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    touch-action: manipulation !important
}

body:has(.hk-home-hero) .hk-game-slider-controls button:hover {
    background: #d8bf7522 !important;
    border-color: #f6d984 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    align-items: stretch !important;
    direction: rtl !important;
    touch-action: pan-y !important;
    overscroll-behavior-inline: contain !important;
    cursor: grab !important
}

body:has(.hk-home-hero) .hk-game-launch-grid.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
    box-sizing: border-box !important;
    flex: 0 0 clamp(260px, 31%, 315px) !important;
    width: auto !important;
    height: clamp(174px, 19vw, 210px) !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    text-decoration: none !important;
    color: #fff !important;
    -webkit-tap-highlight-color: transparent !important
}

body:has(.hk-home-hero) .hk-game-launch > div {
    min-width: 0 !important;
    width: 100% !important
}

body:has(.hk-home-hero) .hk-game-launch p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.65 !important
}

body:has(.hk-home-hero) .hk-home-account {
    grid-template-columns:minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important
}

body:has(.hk-home-hero) .hk-home-wallet, body:has(.hk-home-hero) .hk-home-progress {
    display: grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-wallet > .hk-wallet-chip, body:has(.hk-home-hero) .hk-home-progress > .hk-home-stat {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 72px !important
}

body:has(.hk-home-hero) .hk-home-stat {
    display: grid !important;
    grid-template-columns:38px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 11px !important;
    border: 1px solid #d7bd7650 !important;
    border-radius: 15px !important;
    background: linear-gradient(145deg, #172c2b, #111b23) !important;
    color: #fff0ca !important;
    box-shadow: inset 0 1px #ffffff12, 0 7px 18px #0003 !important
}

body:has(.hk-home-hero) .hk-home-stat > span:first-child {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #d7bd7655 !important;
    border-radius: 12px !important;
    background: #ffffff09 !important;
    font-size: 21px !important
}

body:has(.hk-home-hero) .hk-home-stat > span:last-child {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-stat small {
    color: #a9bdba !important;
    font-size: 9px !important;
    line-height: 1.2 !important
}

body:has(.hk-home-hero) .hk-home-stat strong {
    overflow: hidden !important;
    color: #fff0ca !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-home-account {
        grid-template-columns:minmax(0, 1fr) !important;
        grid-template-rows:auto !important;
        gap: 8px !important
    }

    body:has(.hk-home-hero) .hk-home-account .hk-home-player {
        min-height: 108px !important;
        height: auto !important
    }

    body:has(.hk-home-hero) .hk-home-wallet, body:has(.hk-home-hero) .hk-home-progress {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important
    }

    body:has(.hk-home-hero) .hk-home-wallet > .hk-wallet-chip, body:has(.hk-home-hero) .hk-home-progress > .hk-home-stat {
        height: 64px !important;
        min-height: 64px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid {
        gap: 9px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: min(82vw, 310px) !important;
        height: 158px !important
    }
}

@media (max-width: 360px) {
    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: calc(100vw - 52px) !important;
        height: 150px !important
    }

    body:has(.hk-home-hero) .hk-home-wallet > .hk-wallet-chip, body:has(.hk-home-hero) .hk-home-progress > .hk-home-stat {
        padding-inline: 6px !important
    }
}

body:has(.hk-ajax-game-host) .hk-ajax-game-host iframe {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: #07101e !important
}

body:has(.hk-home-hero) .hk-game-launch-art--rps {
    color: #f4d67f !important;
    filter: grayscale(1) sepia(.38) saturate(1.15) brightness(1.2) !important;
    font-family: Arial, sans-serif !important;
    font-variant-emoji: text !important
}

/* Prevent the prize-wheel heading from breaking into one-letter columns on phones. */
body:has(.hk-leaderboard-page) .hk-leaderboard-page,
body:has(.hk-leaderboard-page) .hk-leaderboard-page * {
    box-sizing: border-box;
    writing-mode: horizontal-tb;
    text-orientation: mixed
}

body:has(.hk-leaderboard-page) .hk-reward-stage {
    width: 100%;
    min-width: 0;
    grid-template-columns:minmax(0, 380px) minmax(0, 1fr)
}

body:has(.hk-leaderboard-page) .hk-reward-wheel-wrap {
    width: min(100%, 360px)
}

body:has(.hk-leaderboard-page) .hk-wheel-copy {
    min-width: 0;
    width: 100%;
    overflow-wrap: normal;
    word-break: normal
}

body:has(.hk-leaderboard-page) .hk-wheel-copy .hk-page-kicker {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    letter-spacing: .06em;
    font-size: clamp(9px, 2.3vw, 10px)
}

body:has(.hk-leaderboard-page) .hk-wheel-copy h2,
body:has(.hk-leaderboard-page) .hk-wheel-copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal
}

body:has(.hk-leaderboard-page) .hk-leader-hero {
    min-width: 0
}

body:has(.hk-leaderboard-page) .hk-leader-hero .hk-back-action {
    flex: 0 0 auto;
    min-height: 42px;
    cursor: pointer;
    touch-action: manipulation
}

body:has(.hk-leaderboard-page) .hk-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch
}

@media (max-width: 720px) {
    body:has(.hk-leaderboard-page) .hk-reward-stage {
        grid-template-columns:minmax(0, 1fr);
        gap: 20px;
        padding: 20px 14px;
        overflow: visible
    }

    body:has(.hk-leaderboard-page) .hk-reward-wheel-wrap {
        width: min(78vw, 300px)
    }

    body:has(.hk-leaderboard-page) .hk-wheel-copy {
        text-align: center
    }

    body:has(.hk-leaderboard-page) .hk-wheel-copy p {
        margin-inline: auto;
        line-height: 1.9
    }

    body:has(.hk-leaderboard-page) .hk-wheel-prizes {
        justify-content: center
    }
}

@media (max-width: 380px) {
    body:has(.hk-leaderboard-page) .hk-reward-wheel-wrap {
        width: min(74vw, 270px)
    }

    body:has(.hk-leaderboard-page) .hk-leader-hero {
        align-items: flex-start
    }

    body:has(.hk-leaderboard-page) .hk-leader-hero .hk-back-action {
        padding-inline: 9px;
        font-size: 12px
    }
}

body:has(.hk-home-hero) .hk-daily-offer:before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 9px;
    border: 1px solid #f3d18e55;
    border-radius: 22px;
    box-shadow: inset 0 0 25px #f6d36a0d;
    pointer-events: none
}

body:has(.hk-home-hero) .hk-daily-offer:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -45%;
    left: -65%;
    width: 48%;
    height: 190%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, #fff2, transparent);
    animation: hk-offer-shine 5.5s ease-in-out infinite;
    pointer-events: none
}

body:has(.hk-home-hero) .hk-daily-offer > :not(.hk-daily-offer-close):not(.hk-daily-offer-sparkle) {
    position: relative;
    z-index: 2
}

body:has(.hk-home-hero) .hk-daily-offer-close {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    background: linear-gradient(145deg, #15232b, #080e14);
    color: white;
    font: 900 20px/1 "iran", IRANSans, sans-serif;
    cursor: pointer;
    box-shadow: 0 0 18px #0008, 0 0 12px #ffffff16;
    transition: transform .2s, box-shadow .2s
}

body:has(.hk-home-hero) .hk-daily-offer-close:hover {
    transform: rotate(90deg);
    box-shadow: 0 0 20px #f5d77a66
}

body:has(.hk-home-hero) .hk-daily-offer-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border: 1px solid #ffe9a6;
    border-radius: 27px;
    background: radial-gradient(circle at 30% 24%, #fff7d6, #e2b34c 40%, #573618 100%);
    font-size: 41px;
    box-shadow: 0 0 0 6px #e4bd5d20, 0 0 38px #efc95e99, inset 0 1px #fff9;
    animation: hk-offer-gem 2.2s ease-in-out infinite alternate
}

body:has(.hk-home-hero) .hk-daily-offer-icon:after {
    content: "✦";
    position: absolute;
    top: -11px;
    right: -14px;
    color: #fff3bf;
    font-size: 21px;
    text-shadow: 0 0 12px #ffe798;
    animation: hk-offer-twinkle 1.3s ease-in-out infinite alternate
}

body:has(.hk-home-hero) .hk-daily-offer-sparkle {
    position: absolute;
    z-index: 2;
    top: 23px;
    right: 28px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff1b0;
    box-shadow: 0 0 9px 3px #ffe28a99, 70px 22px 0 -2px #c6ffe7, 0 0 20px 5px #ffe28a66;
    animation: hk-offer-twinkle 1.8s ease-in-out infinite alternate;
    pointer-events: none
}

body:has(.hk-home-hero) .hk-daily-offer h2 {
    margin: 8px 0 10px;
    color: #ffe5a2;
    font-size: clamp(21px, 4vw, 27px);
    text-shadow: 0 2px 18px #ffc8574d
}

body:has(.hk-home-hero) .hk-daily-offer p {
    margin: 0;
    color: #e0e6e0;
    font-size: 14px;
    line-height: 1.9
}

body:has(.hk-home-hero) .hk-daily-offer-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 18px 0 12px;
    color: #8fe8ff;
    font-size: clamp(27px, 6vw, 35px);
    font-weight: 1000;
    direction: rtl;
    text-shadow: 0 0 24px #4ac7ff68
}

body:has(.hk-home-hero) .hk-daily-offer-count small {
    color: #c9d6d7;
    font-size: 12px;
    font-weight: 700
}

body:has(.hk-home-hero) .hk-daily-offer-bonus {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid #71e8ae77;
    border-radius: 99px;
    background: linear-gradient(100deg, #0f402d88, #17472f99);
    color: #aaf4c3;
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 1px #fff2, 0 0 20px #50db8c20
}

body:has(.hk-home-hero) .hk-daily-offer-pay {
    display: block;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #fff0b8;
    border-radius: 16px;
    background: linear-gradient(110deg, #9a6b2e, #eac16b 48%, #b9863e);
    color: #21170b;
    font-size: 15px;
    font-weight: 1000;
    text-decoration: none;
    box-shadow: 0 9px 28px #e3b54c45, inset 0 1px #fff9;
    transition: transform .2s, filter .2s
}

body:has(.hk-home-hero) .hk-daily-offer-pay:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

body:has(.hk-home-hero) .hk-daily-offer-price {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 800;
    opacity: .85
}

body:has(.hk-home-hero) .hk-daily-offer-foot {
    display: block;
    margin-top: 13px;
    color: #c0ceca;
    font-size: 11px;
    line-height: 1.9
}

body:has(.hk-home-hero) .hk-daily-offer-backdrop small {
    font-size: max(9px, .82em)
}

body:has(.hk-home-hero) .hk-daily-offer h2,
body:has(.hk-home-hero) .hk-daily-offer p,
body:has(.hk-home-hero) .hk-daily-offer-foot {
    direction: rtl;
    text-align: right
}

/* Compact account panel and lively, non-WebGL home menu. */
body:has(.hk-home-hero) .hk-home-account {
    gap: 10px;
    perspective: 900px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player {
    position: relative;
    isolation: isolate;
    min-height: 132px;
    padding: 18px 16px;
    overflow: hidden;
    border-color: #7ce3c54a;
    border-radius: 25px;
    background: radial-gradient(circle at 8% 10%, #56dbc31c, transparent 40%), linear-gradient(145deg, #172d3c, #0d1b27 70%, #132a29);
    box-shadow: 0 14px 36px #0004, inset 0 1px #ffffff20;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -55% auto -55% -35%;
    width: 42%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, #ffffff12, transparent);
    transition: transform .55s ease
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player:hover,
body:has(.hk-home-hero) .hk-home-account .hk-home-player:focus-visible {
    transform: translateY(-3px) rotateX(2deg);
    border-color: #8fe8cc99;
    box-shadow: 0 20px 42px #0005, 0 0 22px #49d4ad17, inset 0 1px #ffffff2b
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player:hover:before {
    transform: translateX(390%) rotate(24deg)
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player img {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border: 2px solid #f0cf7b;
    box-shadow: 0 0 0 5px #f0cf7b18, 0 7px 20px #0006
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player span {
    gap: 5px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player small {
    color: #a9c4c7;
    font-size: 10px
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player strong {
    color: #fff0ca;
    font-size: 17px;
    line-height: 1.4
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player b {
    color: #7ce5d2;
    font-size: 10px
}

body:has(.hk-home-hero) .hk-home-wallet {
    gap: 8px
}

body:has(.hk-home-hero) .hk-wallet-chip {
    position: relative;
    min-height: 67px;
    padding: 9px;
    border-color: #ffffff20;
    border-radius: 16px;
    background: linear-gradient(145deg, #172d3b, #0d1a26);
    box-shadow: 0 8px 22px #0003, inset 0 1px #ffffff12;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

body:has(.hk-home-hero) .hk-wallet-chip:first-child {
    border-color: #68d9ed35
}

body:has(.hk-home-hero) .hk-wallet-chip:last-child {
    border-color: #f1ce7650
}

body:has(.hk-home-hero) .hk-wallet-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px #0004, 0 0 16px #57d8cf14
}

body:has(.hk-home-hero) .hk-wallet-chip > span:first-child {
    filter: drop-shadow(0 0 8px #62d8e966)
}

body:has(.hk-home-hero) .hk-wallet-chip:last-child > span:first-child {
    filter: drop-shadow(0 0 8px #f3d16d66)
}

body:has(.hk-home-hero) .hk-game-launch {
    transform-style: preserve-3d;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, filter .28s ease
}

body:has(.hk-home-hero) .hk-game-launch:hover {
    transform: translateY(-5px) rotateX(1deg) scale(1.008);
    filter: saturate(1.08)
}

body:has(.hk-home-hero) .hk-game-launch:active {
    transform: translateY(-1px) scale(.995)
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-home-account {
        grid-template-columns:1fr;
        max-width: 520px
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(.hk-home-hero) .hk-home-account *, body:has(.hk-home-hero) .hk-game-launch {
        animation: none !important;
        transition: none !important
    }
}

@keyframes hk-offer-stars {
    to {
        background-position: 71px 71px, -85px 160px
    }
}

@keyframes hk-offer-enter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.97)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes hk-offer-shine {
    0%, 35% {
        left: -65%
    }
    70%, 100% {
        left: 130%
    }
}

@keyframes hk-offer-gem {
    from {
        filter: brightness(.94);
        transform: translateY(0)
    }
    to {
        filter: brightness(1.12);
        transform: translateY(-3px)
    }
}

@keyframes hk-offer-twinkle {
    from {
        opacity: .45;
        transform: scale(.75) rotate(0)
    }
    to {
        opacity: 1;
        transform: scale(1.1) rotate(25deg)
    }
}

@media (max-width: 480px) {
    .hk-daily-offer {
        padding: 26px 20px;
        border-radius: 25px
    }

    .hk-daily-offer h2 {
        font-size: 22px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-daily-offer-backdrop:before, .hk-daily-offer, .hk-daily-offer:after, .hk-daily-offer-icon, .hk-daily-offer-icon:after {
        animation: none
    }
}

/* Extracted from blades/Hokmland/subs/panel/home/index.blade.php · block 1; scoped to .ajaxer_pervision .base */
body:has(.ajaxer_pervision .base) .popup_box {
    background: rgb(16 16 16 / 5%) !important;
}

body:has(.ajaxer_pervision .base) .popup_box object.box_show_link {
    background: rgb(34 72 82 / 50%) !important;
}


/* Help list reset: the shared site stylesheet has legacy vertical-list rules. */
body:has(.hk-help) .hk-help-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important
}

body:has(.hk-help) .hk-help-card {
    min-width: 0 !important;
    overflow: hidden !important
}

body:has(.hk-help) .hk-help-card ul {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 22px 0 0 !important;
    direction: rtl !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    columns: auto !important;
    column-count: 1 !important;
    list-style: disc outside !important;
    text-align: right !important;
    unicode-bidi: plaintext !important
}

body:has(.hk-help) .hk-help-card li {
    display: list-item !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    direction: rtl !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.9 !important;
    text-align: right !important;
    unicode-bidi: plaintext !important
}

@media (max-width: 680px) {
    body:has(.hk-help) .hk-help-grid {
        grid-template-columns:minmax(0, 1fr) !important
    }
}

/* Invitation and in-shell room navigation */
.hk-invite-tools {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, 920px);
    margin: 18px auto;
    padding: 14px;
    border: 1px solid #cba85c55;
    border-radius: 18px;
    background: linear-gradient(135deg, #102a25f2, #111c25f5);
    box-shadow: 0 12px 34px #0004;
    color: #f5f1e6;
    direction: rtl
}

.hk-invite-entry {
    display: grid;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 560px
}

.hk-invite-entry label {
    font-weight: 800;
    color: #f5d98f;
    font-size: 14px
}

.hk-invite-entry > div {
    display: flex;
    gap: 8px;
    min-width: 0
}

.hk-invite-entry input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d9bd7766;
    border-radius: 12px;
    background: #071713;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    direction: ltr;
    text-align: center;
    letter-spacing: .08em;
    outline: none
}

.hk-invite-entry input:focus {
    border-color: #e7c66f;
    box-shadow: 0 0 0 3px #e7c66f26
}

.hk-invite-entry button, .hk-room-share button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #e4c879;
    border-radius: 12px;
    background: linear-gradient(135deg, #d8b65e, #a9762d);
    color: #16130b;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer
}

.hk-invite-entry small {
    color: #bfc9c4;
    font-size: 12px;
    line-height: 1.6
}

.hk-room-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 10px;
    border-inline-start: 1px solid #d9bd7733;
    font-size: 13px
}

.hk-room-share[hidden] {
    display: none !important
}

.hk-room-share b {
    direction: ltr;
    unicode-bidi: isolate;
    color: #f5d98f;
    letter-spacing: .1em
}

.hk-ajax-game-host .hk-invite-tools {
    position: relative;
    z-index: 2;
    margin: 8px auto 12px;
    padding: 10px 12px;
    max-width: 780px
}

.hk-ajax-game-host .hk-invite-entry {
    grid-template-columns:auto minmax(220px, 1fr);
    align-items: center;
    max-width: none
}

.hk-ajax-game-host .hk-invite-entry > div {
    grid-column: 2
}

.hk-ajax-game-host .hk-invite-entry small {
    grid-column: 2
}

@media (max-width: 680px) {
    .hk-invite-tools {
        display: grid;
        gap: 10px;
        margin: 12px auto;
        padding: 12px;
        border-radius: 15px
    }

    .hk-invite-entry > div {
        display: grid;
        grid-template-columns:minmax(0, 1fr) auto
    }

    .hk-invite-entry button {
        padding: 0 11px
    }

    .hk-room-share {
        border-inline-start: 0;
        border-top: 1px solid #d9bd7733;
        padding-top: 12px
    }

    .hk-ajax-game-host .hk-invite-entry {
        grid-template-columns:1fr
    }

    .hk-ajax-game-host .hk-invite-entry > div, .hk-ajax-game-host .hk-invite-entry small {
        grid-column: 1
    }
}

body:has(.hk-help) main.hk-help .hk-help-grid > article.hk-help-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important
}

body:has(.hk-help) main.hk-help .hk-help-grid > article.hk-help-card > ul {
    display: block !important;
    position: static !important;
    float: none !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    columns: 1 !important;
    column-count: 1 !important;
    column-width: auto !important;
    direction: rtl !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: right !important;
    unicode-bidi: plaintext !important
}

body:has(.hk-help) main.hk-help .hk-help-grid > article.hk-help-card > ul > li {
    display: list-item !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    direction: rtl !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: right !important;
    unicode-bidi: plaintext !important;
    line-height: 1.9 !important
}


/* Compact in-game controls; lobby inputs remain available before play. */
body:has(.hk-ajax-game-host) .hk-ajax-game-back,
body:has(.hk-ajax-game-host) .hk-ajax-game-help {
    display: none !important
}

body:has(.hk-ajax-game-host) .hk-ajax-game-host object {
    inset: 0 !important;
    height: 100% !important
}

body:has(#warsix-root) #w6-home[hidden] {
    display: none !important
}

body:has(#warsix-root) .w6-player {
    font-size: 10px !important;
    line-height: 1.35 !important
}

body:has(#warsix-root) .w6-player-bubble {
    font-size: 12px !important;
    line-height: 1.55 !important
}

body:has(#warsix-root) .w6-chip-label {
    font-size: 9px !important
}

body:has(#warsix-root) .w6-chip strong {
    font-size: 11px !important
}

body:has(#rps-game) #rps-game.has-room .rps-room-tools {
    display: none !important
}

/* Home page: a normal document-sized layout inside the fixed AJAX shell. */
html:has(.hk-home-hero), body:has(.hk-home-hero) {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page {
    display: flow-root !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(12px, 2vw, 24px) !important;
    overflow: visible !important;
    overscroll-behavior: initial !important;
    touch-action: pan-y !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page > .hk-app-wrap {
    display: flow-root !important;
    width: min(100%, 1240px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 0 calc(30px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .hk-page-top {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    margin: 0 0 14px !important
}

body:has(.hk-home-hero) .hk-home-hero {
    display: grid !important;
    grid-template-columns:minmax(0, 1fr) clamp(210px, 24%, 280px) !important;
    align-items: stretch !important;
    gap: clamp(16px, 2vw, 28px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 14px !important;
    padding: clamp(18px, 3vw, 34px) !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .hk-home-welcome {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .hk-home-welcome h1 {
    font-size: clamp(27px, 4vw, 44px) !important;
    line-height: 1.2 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    display: grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 18px !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .hk-game-launch, body:has(.hk-home-hero) .hk-game-launch--cards {
    grid-column: auto !important;
    min-width: 0 !important;
    min-height: 172px !important;
    padding: 17px !important;
    border-radius: 20px !important
}

body:has(.hk-home-hero) .hk-game-launch h2, body:has(.hk-home-hero) .hk-game-launch--cards h2 {
    font-size: clamp(16px, 1.8vw, 22px) !important;
    line-height: 1.45 !important
}

body:has(.hk-home-hero) .hk-home-account {
    display: grid !important;
    grid-template-columns:minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 12px !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-account .hk-home-player {
    width: 100% !important;
    max-width: none !important;
    min-height: 170px !important
}

body:has(.hk-home-hero) .hk-home-wallet {
    display: grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important
}

body:has(.hk-home-hero) .hk-invite-tools {
    display: block !important;
    width: 100% !important;
    max-width: 920px !important;
    margin: 14px auto !important;
    padding: 14px !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .hk-invite-entry {
    display: grid !important;
    grid-template-columns:minmax(0, 1fr) !important;
    gap: 8px !important;
    max-width: 620px !important
}

body:has(.hk-home-hero) .hk-invite-entry > div {
    display: flex !important;
    gap: 8px !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-invite-entry input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important
}

body:has(.hk-home-hero) main.hk-app-page > .hk-panel {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 14px 0 !important;
    overflow: visible !important;
    transform: none !important
}

body:has(.hk-home-hero) .hk-side-menu:not([hidden]) {
    animation: hk-home-menu-in .18s ease-out both
}

@keyframes hk-home-menu-in {
    from {
        opacity: 0;
        transform: translateY(-7px) scale(.985)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

#hk-home-extras-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483001 !important;
    display: grid !important;
    place-items: center !important;
    padding: 16px !important;
    background: #03070dcc !important;
    backdrop-filter: blur(9px) !important;
    animation: hk-home-menu-in .18s ease-out both !important
}

#hk-home-extras-modal .hk-home-extras-card {
    display: flex !important;
    flex-direction: column !important;
    width: min(780px, 100%) !important;
    max-height: min(86dvh, 820px) !important;
    overflow: hidden !important;
    border: 1px solid #e0c477 !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, #172a25, #101923 68%, #201a20) !important;
    box-shadow: 0 24px 90px #000c !important;
    color: #f6f0e2 !important
}

#hk-home-extras-modal .hk-home-extras-card > header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: none !important;
    padding: 13px 17px !important;
    border-bottom: 1px solid #dfc57755 !important;
    color: #ffe6a4 !important
}

#hk-home-extras-modal .hk-home-extras-card > header button {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #e0c47777 !important;
    border-radius: 10px !important;
    background: #ffffff0c !important;
    color: #ffe5a1 !important;
    font-size: 22px !important;
    cursor: pointer !important
}

#hk-home-extras-modal .hk-home-extras-content {
    min-height: 0 !important;
    overflow: auto !important;
    padding: 12px !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ad9252 #171719 !important
}

#hk-home-extras-modal .hk-home-extras-content > .hk-panel {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 10px !important;
    overflow: visible !important
}

#hk-home-extras-modal .hk-home-extras-content > [aria-label="اعلان‌های جایزهٔ شما"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page {
        padding: 10px !important
    }

    body:has(.hk-home-hero) .hk-home-hero {
        grid-template-columns:minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 14px !important
    }

    body:has(.hk-home-hero) .hk-home-account {
        grid-template-columns:minmax(0, 1fr) auto !important;
        grid-template-rows:auto !important;
        align-items: center !important;
        gap: 8px !important;
        order: -1 !important
    }

    body:has(.hk-home-hero) .hk-home-account .hk-home-player {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        min-height: 0 !important;
        padding: 8px !important;
        border-radius: 15px !important;
        text-align: right !important
    }

    body:has(.hk-home-hero) .hk-home-account .hk-home-player img {
        width: 44px !important;
        height: 44px !important
    }

    body:has(.hk-home-hero) .hk-home-account .hk-home-player span {
        justify-items: start !important
    }

    body:has(.hk-home-hero) .hk-home-account .hk-home-player b {
        display: none !important
    }

    body:has(.hk-home-hero) .hk-home-wallet {
        grid-template-columns:1fr !important;
        gap: 6px !important
    }

    body:has(.hk-home-hero) .hk-wallet-chip {
        min-height: 42px !important;
        padding: 6px !important;
        border-radius: 12px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 12px !important
    }

    body:has(.hk-home-hero) .hk-game-launch, body:has(.hk-home-hero) .hk-game-launch--cards {
        min-height: 142px !important;
        padding: 12px !important;
        border-radius: 15px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-art {
        top: 9px !important;
        left: 10px !important;
        font-size: 30px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-label {
        top: 9px !important;
        right: 9px !important;
        max-width: calc(100% - 48px) !important;
        padding: 4px 7px !important;
        font-size: 9px !important
    }

    body:has(.hk-home-hero) .hk-game-launch h2, body:has(.hk-home-hero) .hk-game-launch--cards h2 {
        font-size: clamp(14px, 3.5vw, 18px) !important
    }

    body:has(.hk-home-hero) .hk-game-launch p {
        font-size: 10px !important
    }

    body:has(.hk-home-hero) .hk-invite-tools {
        margin: 10px auto !important;
        padding: 11px !important
    }

    body:has(.hk-home-hero) .hk-invite-entry label {
        font-size: 12px !important
    }
}

@media (max-width: 390px) {
    body:has(.hk-home-hero) .hk-game-launch-grid {
        grid-template-columns:minmax(0, 1fr) !important
    }

    body:has(.hk-home-hero) .hk-game-launch, body:has(.hk-home-hero) .hk-game-launch--cards {
        min-height: 128px !important
    }
}

body:has(#warsix-root) .w6-lobby-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 9px 16px;
    border: 1px solid #d6bd7b77;
    border-radius: 12px;
    background: linear-gradient(140deg, #253a38, #172229);
    color: #f5dfa4;
    font-weight: 850;
    cursor: pointer
}

body:has(#warsix-root) #w6-lobby .w6-modal > .w6-lobby-back {
    position: relative;
    z-index: 2;
    display: flex;
    width: max-content;
    min-height: 42px;
    margin: 0 0 12px auto;
    padding: 9px 16px;
    border: 1px solid #d6bd7b99;
    border-radius: 12px;
    background: linear-gradient(140deg, #253a38, #172229);
    color: #f5dfa4;
    font-weight: 850;
    cursor: pointer
}

body:has(#rps-game) .rps-back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #d7bd7b77;
    border-radius: 12px;
    background: linear-gradient(140deg, #253a38, #172229);
    color: #f6e2aa;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap
}

@media (max-width: 620px) {
    body:has(#rps-game) .rps-back-top {
        min-height: 34px;
        padding: 6px 9px;
        font-size: 11px
    }
}

/* Home layout: return scrolling to the document instead of relying on a fixed AJAX scroller. */
html:has(.hk-home-hero) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable
}

body:has(.hk-home-hero) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    overscroll-behavior: initial !important;
    touch-action: pan-y !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page {
    display: flow-root !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page > .hk-app-wrap {
    display: flow-root !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(36px + env(safe-area-inset-bottom)) !important
}

body:has(.hk-home-hero) .hk-invite-tools {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 920px !important;
    height: auto !important;
    max-height: none !important;
    margin: 14px auto !important;
    padding: clamp(12px, 2vw, 18px) !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .hk-invite-entry {
    display: grid !important;
    grid-template-columns:minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 !important
}

body:has(.hk-home-hero) .hk-invite-entry > label, body:has(.hk-home-hero) .hk-invite-entry > small {
    display: block !important;
    position: static !important;
    grid-column: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    white-space: normal !important
}

body:has(.hk-home-hero) .hk-invite-entry > div {
    display: flex !important;
    position: static !important;
    grid-column: 1 !important;
    align-items: stretch !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important
}

body:has(.hk-home-hero) .hk-invite-entry input {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 1% !important;
    height: 46px !important
}

body:has(.hk-home-hero) .hk-invite-entry button {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    white-space: nowrap !important
}

@media (max-width: 520px) {
    body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page {
        padding: 10px !important
    }

    body:has(.hk-home-hero) .hk-invite-entry > div {
        display: grid !important;
        grid-template-columns:minmax(0, 1fr) auto !important
    }

    body:has(.hk-home-hero) .hk-invite-entry button {
        padding-inline: 12px !important;
        font-size: 12px !important
    }
}

/* RPS is a viewport-sized game: only the room form may scroll internally. */
html:has(#rps-game),
body:has(#rps-game) {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important
}

body:has(#rps-game) {
    position: fixed !important;
    inset: 0 !important
}

body:has(#rps-game) #rps-game {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    box-sizing: border-box !important
}

body:has(#rps-game) .rps-shell {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 1440px !important;
    max-height: 100% !important;
    padding: clamp(10px, 2vw, 24px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important
}

body:has(#rps-game) .rps-main {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important
}

body:has(#rps-game) .rps-arena {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important
}

body:has(#rps-game) .rps-stage {
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    background: radial-gradient(ellipse at 50% 78%, #1538597a, transparent 40%), radial-gradient(ellipse at 12% 15%, #283c7770, transparent 36%), radial-gradient(ellipse at 88% 22%, #075b5b59, transparent 34%), linear-gradient(155deg, #09172d, #081426 55%, #10162e) !important
}

body:has(#rps-game) #Canvas {
    max-width: 100% !important;
    max-height: 100% !important
}

body:has(#rps-game) #rps-game:not(.has-room) .rps-arena {
    display: none !important
}

body:has(#rps-game) #rps-game:not(.has-room) .rps-shell {
    padding-bottom: clamp(10px, 2vw, 24px) !important
}

body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #46c9e8 #0a1c2d !important
}

body:has(#rps-game) #rps-game.has-room .rps-control-panel {
    display: none !important
}

body:has(#rps-game) #rps-game.has-room .rps-floating-controls {
    display: block !important
}

@media (max-width: 820px) {
    body:has(#rps-game) .rps-shell {
        gap: 8px !important;
        padding: calc(8px + env(safe-area-inset-top)) 9px calc(8px + env(safe-area-inset-bottom)) !important
    }

    body:has(#rps-game) .rps-main {
        grid-template-columns:minmax(0, 1fr) !important;
        grid-template-rows:minmax(0, 1fr) !important;
        gap: 8px !important;
        direction: rtl !important;
        flex: 1 1 auto !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-arena {
        order: 0 !important;
        min-height: 0 !important;
        height: 100% !important;
        border-radius: 20px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-stage {
        min-height: 0 !important;
        height: 100% !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-topbar {
        flex: none !important;
        min-height: 36px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls {
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        left: 50% !important;
        right: auto !important;
        width: min(390px, calc(100vw - 20px)) !important;
        transform: translateX(-50%) !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice {
        min-height: 58px !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
        width: min(540px, calc(100vw - 20px)) !important;
        max-height: calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        padding: clamp(13px, 4vw, 22px) !important;
        border-radius: 20px !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-heading h1 {
        font-size: clamp(22px, 6vw, 30px) !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-heading p {
        font-size: 12px !important;
        line-height: 1.7 !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-prize {
        flex: none !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-room-mode {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-room-mode .rps-btn {
        min-width: 0 !important;
        min-height: 52px !important;
        padding: 8px !important
    }
}

@media (max-width: 520px) {
    body:has(#rps-game) .rps-brand small {
        font-size: 7px !important
    }

    body:has(#rps-game) .rps-brand strong {
        font-size: 10px !important
    }

    body:has(#rps-game) .rps-mark {
        width: 31px !important;
        height: 31px !important
    }

    body:has(#rps-game) .rps-user {
        font-size: 10px !important
    }

    body:has(#rps-game) .rps-user img {
        width: 27px !important;
        height: 27px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label {
        top: 14% !important;
        max-width: 34vw !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label.opponent {
        left: 5% !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label.you {
        right: 5% !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-player-label small {
        font-size: 9px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-scoreline {
        bottom: 86px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-countdown[data-kind="start"] {
        min-width: 92px !important;
        min-height: 72px !important;
        font-size: 38px !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-room-tools {
        grid-template-columns:minmax(0, 1fr) auto !important;
        gap: 7px !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-room-tools input {
        grid-column: 1/-1 !important;
        width: 100% !important
    }

    body:has(#rps-game) .rps-back-top {
        min-height: 32px !important;
        padding: 5px 8px !important;
        font-size: 10px !important
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    body:has(#rps-game) .rps-shell {
        gap: 5px !important;
        padding-block: calc(4px + env(safe-area-inset-top)) calc(4px + env(safe-area-inset-bottom)) !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-topbar {
        min-height: 28px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls {
        width: min(340px, 42vw) !important;
        bottom: calc(4px + env(safe-area-inset-bottom)) !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-floating-controls .rps-choice {
        min-height: 48px !important
    }

    body:has(#rps-game) #rps-game.has-room .rps-scoreline {
        bottom: 4px !important;
        left: 5px !important;
        transform: scale(.8) !important;
        transform-origin: left bottom !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-control-panel {
        max-height: calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        padding: 10px 16px !important
    }

    body:has(#rps-game) #rps-game:not(.has-room) .rps-heading h1 {
        font-size: 19px !important
    }
}

/* Keep the Android download action in the home header, never as a fixed bottom bar. */
body:has(.hk-home-hero) .hk-page-top {
    position: relative !important;
    min-width: 0 !important;
    gap: clamp(6px, 1.3vw, 14px) !important
}

body:has(.hk-home-hero) .hk-page-top #hk-android-install {
    position: relative !important;
    inset: auto !important;
    z-index: 5 !important;
    display: grid !important;
    grid-template-columns:auto !important;
    align-items: center !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
    transform: translateY(-5px) !important;
    transition: opacity .22s ease, transform .22s ease !important;
    pointer-events: none !important
}

body:has(.hk-home-hero) .hk-page-top #hk-android-install.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important
}

body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-icon, body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-copy {
    display: none !important
}

body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    border: 1px solid #f4d77f !important;
    border-radius: 12px !important;
    background: linear-gradient(115deg, #f4d77e, #c99942) !important;
    color: #241d0f !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font: 900 11px/1 system-ui, sans-serif !important;
    box-shadow: 0 5px 16px #c99b3b30 !important
}

body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-action span {
    font-size: 15px !important
}

body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-close {
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    z-index: 2 !important;
    width: 17px !important;
    height: 17px !important;
    border: 1px solid #f1da9b !important;
    border-radius: 50% !important;
    background: #16241f !important;
    color: #fff2c8 !important;
    font: 700 12px/1 system-ui !important
}

@media (max-width: 520px) {
    body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-action {
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 10px !important
    }

    body:has(.hk-home-hero) .hk-page-top #hk-android-install .hk-android-install-close {
        top: -4px !important;
        left: -4px !important
    }
}

/* The home card keeps account, quick join, and a swipeable game rail together. */
body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home {
    display: block !important;
    width: min(100%, 580px) !important;
    max-width: 580px !important;
    margin: 14px 0 4px !important;
    padding: 10px 12px !important;
    border: 1px solid #d6bb7055 !important;
    border-radius: 15px !important;
    background: linear-gradient(110deg, #0d2b27d9, #111e27d9) !important;
    box-shadow: inset 0 1px #fff1 !important
}

body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry {
    display: grid !important;
    grid-template-columns:auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: none !important
}

body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry > label {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #e8d18c !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    white-space: nowrap !important
}

body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry > div {
    display: flex !important;
    gap: 7px !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry input {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important
}

body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    font-size: 11px !important
}

body:has(.hk-home-hero) .hk-game-slider-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 11px 2px 6px !important;
    color: #91cbb4 !important;
    font-size: 10px !important;
    font-weight: 750 !important
}

body:has(.hk-home-hero) .hk-game-slider-hint b {
    display: grid !important;
    place-items: center !important;
    width: 23px !important;
    height: 23px !important;
    border: 1px solid #d8bf7566 !important;
    border-radius: 50% !important;
    color: #f6d984 !important;
    animation: hk-home-drag-nudge 1.6s ease-in-out infinite !important
}

@keyframes hk-home-drag-nudge {
    50% {
        transform: translateX(-4px)
    }
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    padding: 3px 2px 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    scrollbar-color: #a98a4f #10231f !important;
    touch-action: pan-y !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important
}

body:has(.hk-home-hero) .hk-game-launch-grid.is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
    flex: 0 0 clamp(245px, 31%, 315px) !important;
    width: auto !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    user-select: none !important;
    -webkit-user-select: none !important
}

body:has(.hk-home-hero) .hk-home-hero {
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-welcome, body:has(.hk-home-hero) .hk-home-account {
    min-width: 0 !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home {
        width: 100% !important;
        max-width: none !important;
        margin: 11px 0 3px !important;
        padding: 9px !important
    }

    body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry {
        grid-template-columns:minmax(0, 1fr) !important;
        gap: 6px !important
    }

    body:has(.hk-home-hero) .hk-home-welcome > .hk-invite-tools--home .hk-invite-entry > label {
        font-size: 10px !important
    }

    body:has(.hk-home-hero) .hk-game-slider-hint {
        margin-top: 8px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid {
        gap: 9px !important;
        padding-bottom: 10px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: min(82vw, 310px) !important;
        min-height: 148px !important
    }
}

/* Final layout pass: one dependable vertical salon scroller and clipped game viewports. */
.content.hk-app-host#ajaxer {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    scrollbar-gutter: stable !important
}

.content.hk-app-host#ajaxer > .hk-app-page {
    display: flow-root !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: max-content !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y !important
}

.content.hk-app-host#ajaxer > .hk-app-page > .hk-app-wrap {
    display: flow-root !important;
    width: min(100%, 1240px) !important;
    height: max-content !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto !important;
    overflow: visible !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page {
    padding: clamp(12px, 2vw, 24px) !important
}

body:has(.hk-home-hero) .content.hk-app-host#ajaxer > .hk-app-page > .hk-app-wrap {
    padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important
}

/* RPS is truly viewport-bound: no outer horizontal or accidental vertical scrollbars. */
html:has(#rps-game), body:has(#rps-game), body:has(#rps-game) #ajaxer, body:has(#rps-game) #rps-game, body:has(#rps-game) .rps-shell {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important
}

body:has(#rps-game) .rps-header, body:has(#rps-game) .rps-main, body:has(#rps-game) .rps-arena, body:has(#rps-game) .rps-control-panel {
    min-width: 0 !important;
    max-width: 100% !important
}

/* Keep Hokm suits evenly arranged; the compact phone layout uses two clear columns. */
.hk-hokm-page {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important
}

.hk-hokm-card {
    box-sizing: border-box !important;
    width: min(720px, 100%) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important
}

.hk-suit-choices {
    display: grid !important;
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: clamp(7px, 2vw, 14px) !important;
    width: 100% !important;
    margin: 16px auto 0 !important
}

.hk-suit-choices > .hk-suit-choice {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    display: grid !important;
    grid-template-rows:1fr auto !important;
    justify-items: center !important;
    align-content: center !important;
    min-width: 0 !important;
    min-height: clamp(94px, 18vw, 140px) !important;
    padding: 10px 5px !important;
    border: 1px solid #d7bc7c99 !important;
    border-radius: 17px !important;
    background: linear-gradient(150deg, #1d4439, #10241f) !important;
    box-shadow: inset 0 1px #fff2, 0 8px 20px #0005 !important
}

.hk-suit-choices > .hk-suit-choice img {
    display: block !important;
    width: clamp(38px, 8vw, 66px) !important;
    height: auto !important;
    max-height: 88px !important;
    object-fit: contain !important
}

.hk-suit-choices > .hk-suit-choice:hover, .hk-suit-choices > .hk-suit-choice:focus-visible {
    transform: translateY(-3px) !important;
    border-color: #ffe39a !important;
    outline: none !important
}

@media (max-width: 560px) {
    .hk-suit-choices {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important
    }

    .hk-suit-choices > .hk-suit-choice {
        min-height: 92px !important
    }

    .hk-suit-choices > .hk-suit-choice img {
        width: 48px !important
    }
}

/* Last override: align home panels and lock every game tile to one shared size. */
body:has(.hk-home-hero) .hk-home-hero {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important
}

body:has(.hk-home-hero) .hk-permission-card, body:has(.hk-home-hero) .hk-save-prompt, body:has(.hk-home-hero) .hk-xp-panel, body:has(.hk-home-hero) .hk-nav-grid, body:has(.hk-home-hero) .hk-footer {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 clamp(275px, 31%, 330px) !important;
    width: auto !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    align-self: stretch !important;
    overflow: hidden !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div {
    min-width: 0 !important;
    width: 100% !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-game-launch-grid {
        gap: 9px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: min(82vw, 320px) !important;
        height: 178px !important;
        min-height: 178px !important;
        max-height: 178px !important
    }
}

@media (max-width: 360px) {
    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: calc(100vw - 48px) !important
    }
}

/* Short looping motion previews for games without uploaded video clips. */
@keyframes hkGameCardOrbit {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
        opacity: .82
    }
    50% {
        transform: translate3d(0, -7px, 0) rotate(7deg) scale(1.08);
        opacity: 1
    }
}

@keyframes hkGameCardFlag {
    0%, 100% {
        transform: rotate(-12deg) translateY(0)
    }
    50% {
        transform: rotate(14deg) translateY(-5px)
    }
}

@keyframes hkGameCardTank {
    0%, 100% {
        transform: translateX(0) rotate(-7deg)
    }
    50% {
        transform: translateX(-6px) rotate(2deg)
    }
}

@keyframes hkGameCardRift {
    0%, 100% {
        transform: rotate(0) scale(.94);
        filter: drop-shadow(0 0 5px #e9b8ff66)
    }
    50% {
        transform: rotate(90deg) scale(1.12);
        filter: drop-shadow(0 0 17px #e9b8ffcc)
    }
}

@keyframes hkGameCardGlow {
    0%, 100% {
        opacity: .14;
        transform: translateX(-125%) skewX(-18deg)
    }
    45%, 65% {
        opacity: .5
    }
    90% {
        opacity: .14;
        transform: translateX(125%) skewX(-18deg)
    }
}

body:has(.hk-home-hero) .hk-game-launch:before {
    animation: hkGameCardOrbit 5.2s ease-in-out infinite
}

body:has(.hk-home-hero) .hk-game-launch:after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20% auto -20% -40%;
    width: 38%;
    background: linear-gradient(90deg, transparent, #ffffff19, transparent);
    pointer-events: none;
    animation: hkGameCardGlow 7s ease-in-out infinite
}

body:has(.hk-home-hero) .hk-game-launch--warsix .hk-game-launch-art {
    animation: hkGameCardFlag 2.8s ease-in-out infinite
}

body:has(.hk-home-hero) .hk-game-launch--tank .hk-game-launch-art {
    animation: hkGameCardTank 3.2s ease-in-out infinite
}

body:has(.hk-home-hero) .hk-game-launch--rift .hk-game-launch-art {
    animation: hkGameCardRift 4.8s ease-in-out infinite
}

body:has(.hk-home-hero) .hk-game-launch--rps .hk-game-launch-art {
    animation: hkGameCardOrbit 2.4s ease-in-out infinite
}

body:has(.hk-home-hero) .hk-game-launch--cards .hk-game-launch-art {
    animation: hkGameCardOrbit 3.4s ease-in-out infinite
}

@media (prefers-reduced-motion: reduce) {
    body:has(.hk-home-hero) .hk-game-launch:before, body:has(.hk-home-hero) .hk-game-launch:after, body:has(.hk-home-hero) .hk-game-launch-art {
        animation: none !important
    }
}

/* Refined top-three podium: the original layout rules only covered mobile,
   so desktop let profile images expand and pushed the ranking details apart. */
.hk-leaderboard-page .hk-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: clamp(12px, 2vw, 22px);
    width: min(980px, 100%);
    margin: 34px auto 30px;
    perspective: 1000px;
}

.hk-leaderboard-page .hk-podium-card {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 7px;
    min-width: 0;
    min-height: 258px;
    overflow: hidden;
    padding: 48px 18px 20px;
    border: 1px solid #c5d7e255;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% -10%, #d8e7ff20, transparent 58%), linear-gradient(155deg, #27343e, #111d25 60%, #1a202b);
    box-shadow: 0 18px 40px #0007, inset 0 1px #fff2;
    text-align: center;
}

.hk-leaderboard-page .hk-podium-card::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, transparent, #c7d8e8, transparent);
}

.hk-leaderboard-page .hk-podium-card.hk-podium-1 {
    order: 2;
    min-height: 288px;
    border-color: #f5d77dcc;
    background: radial-gradient(ellipse at 50% 0, #ffe08a38, transparent 62%), linear-gradient(155deg, #42361f, #172923 58%, #25202d);
    box-shadow: 0 24px 55px #0008, 0 0 36px #edce6d26, inset 0 1px #fff4;
    transform: translateY(-12px);
}

.hk-leaderboard-page .hk-podium-card.hk-podium-1::before {
    height: 5px;
    background: linear-gradient(90deg, transparent, #fff0a4, #d89a32, #fff0a4, transparent);
}

.hk-leaderboard-page .hk-podium-card.hk-podium-2 {
    order: 1;
    border-color: #c8d6e580;
    background: radial-gradient(ellipse at 50% 0, #d8e5f329, transparent 62%), linear-gradient(155deg, #303c48, #131d27 62%, #20232d);
}

.hk-leaderboard-page .hk-podium-card.hk-podium-3 {
    order: 3;
    border-color: #d49a6c88;
    background: radial-gradient(ellipse at 50% 0, #e3a26a29, transparent 62%), linear-gradient(155deg, #3d2d25, #171e25 62%, #241d25);
}

.hk-leaderboard-page .hk-podium-card.is-me {
    outline: 2px solid #63e8c2;
    outline-offset: 3px;
}

.hk-leaderboard-page .hk-podium-crown,
.hk-leaderboard-page .hk-podium-number {
    position: absolute;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 37px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #ffffff20;
    border-radius: 999px;
    background: #06120eb8;
    line-height: 1;
}

.hk-leaderboard-page .hk-podium-crown {
    right: 14px;
    color: #ffe18e;
    font-size: 20px;
    text-shadow: 0 0 15px #ffd96b88;
}

.hk-leaderboard-page .hk-podium-number {
    left: 14px;
    color: #d6e1e8;
    font-size: 11px;
    font-weight: 900;
}

.hk-leaderboard-page .hk-podium-card.hk-podium-1 .hk-podium-number {
    color: #ffe6a0;
    border-color: #f5d77d66;
}

.hk-leaderboard-page .hk-podium-card.hk-podium-3 .hk-podium-number {
    color: #f0b27c;
}

.hk-leaderboard-page .hk-podium-card > img {
    display: block;
    flex: none;
    width: 86px !important;
    min-width: 86px;
    max-width: 86px !important;
    height: 86px !important;
    min-height: 86px;
    max-height: 86px !important;
    margin: 4px auto 3px;
    padding: 0;
    object-fit: cover;
    border: 3px solid #cad8df;
    border-radius: 50%;
    background: #10191e;
    box-shadow: 0 0 0 5px #b9d2dd19, 0 10px 22px #0008;
}

.hk-leaderboard-page .hk-podium-card.hk-podium-1 > img {
    width: 104px !important;
    min-width: 104px;
    max-width: 104px !important;
    height: 104px !important;
    min-height: 104px;
    max-height: 104px !important;
    border-color: #ffe293;
    box-shadow: 0 0 0 6px #e3c76b25, 0 0 30px #e4c65d4d;
}

.hk-leaderboard-page .hk-podium-card > strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #f4ead0;
    font-size: clamp(13px, 1.2vw, 17px);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-leaderboard-page .hk-podium-score {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 3px;
    padding: 6px 13px;
    border: 1px solid #75e1b640;
    border-radius: 999px;
    background: #65dbac12;
    color: #9bf4c9;
    font-size: 16px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.hk-leaderboard-page .hk-podium-card.hk-podium-1 .hk-podium-score {
    border-color: #f5d67c70;
    background: #f5d67c16;
    color: #ffe69c;
}

.hk-leaderboard-page .hk-podium-score small {
    color: #c0cfc5;
    font-size: 10px;
    font-weight: 700;
}

.hk-leaderboard-page .hk-podium-games {
    color: #a1b0a9;
    font-size: 11px;
}

@media (max-width: 650px) {
    .hk-leaderboard-page .hk-podium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 10px;
        margin-top: 24px;
    }

    .hk-leaderboard-page .hk-podium-card {
        min-height: 218px;
        padding: 44px 10px 16px;
    }

    .hk-leaderboard-page .hk-podium-card.hk-podium-1 {
        grid-column: 1 / -1;
        order: 0;
        min-height: 236px;
        transform: none;
    }

    .hk-leaderboard-page .hk-podium-card.hk-podium-2 {
        order: 1;
    }

    .hk-leaderboard-page .hk-podium-card.hk-podium-3 {
        order: 2;
    }

    .hk-leaderboard-page .hk-podium-card > img {
        width: 72px !important;
        min-width: 72px;
        max-width: 72px !important;
        height: 72px !important;
        min-height: 72px;
        max-height: 72px !important;
    }

    .hk-leaderboard-page .hk-podium-card.hk-podium-1 > img {
        width: 88px !important;
        min-width: 88px;
        max-width: 88px !important;
        height: 88px !important;
        min-height: 88px;
        max-height: 88px !important;
    }
}


/* HOKMLand salon game-card art, drawn with local CSS so it works in WebViews. */
body:has(.hk-home-hero) .hk-game-launch--henhouse {
    --launch-a: #174b34;
    --launch-b: #dba83f;
    background: radial-gradient(ellipse at 82% 24%, #b1dc6680 0 3%, transparent 18%), radial-gradient(ellipse at 72% 75%, #356e4e 0 2%, transparent 22%), linear-gradient(135deg, #163e2e, #09251f 72%) !important;
    border-color: #97c97955 !important
}

body:has(.hk-home-hero) .hk-game-launch--henhouse:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(135deg, transparent 0 26px, #d9eca00a 27px 29px), radial-gradient(ellipse at 86% 55%, #cfaa3a18, transparent 42%)
}

body:has(.hk-home-hero) .hk-game-launch--henhouse .hk-game-launch-art {
    filter: drop-shadow(0 8px 16px #0008);
    text-shadow: 0 0 22px #deca6680
}

body:has(.hk-home-hero) .hk-game-launch--rift {
    background: radial-gradient(ellipse at 78% 27%, #d76aff35, transparent 31%), linear-gradient(135deg, #271540, #101827 78%) !important
}

body:has(.hk-home-hero) .hk-game-launch--warsix {
    background: radial-gradient(ellipse at 84% 35%, #7bd88926, transparent 31%), linear-gradient(135deg, #174538, #101f25 78%) !important
}

body:has(.hk-home-hero) .hk-game-launch--rps {
    background: radial-gradient(circle at 82% 28%, #80eeff27, transparent 25%), linear-gradient(135deg, #213b59, #101c2b 78%) !important
}

body:has(.hk-home-hero) .hk-game-launch--tank {
    background: radial-gradient(ellipse at 82% 35%, #ff9d532a, transparent 30%), linear-gradient(135deg, #47302b, #171d23 78%) !important
}

body:has(.hk-home-hero) .hk-game-launch--knight {
    background: radial-gradient(ellipse at 84% 25%, #ffe29a28, transparent 29%), linear-gradient(135deg, #394636, #151d1d 80%) !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        min-height: 156px !important;
        padding: 16px 17px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch h2 {
        max-width: 72%;
        line-height: 1.5
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch p {
        max-width: 82%;
        line-height: 1.8
    }
}

@media (orientation: portrait) and (max-width: 600px) {
    .hk-hokm-card .hk-hand-cards img {
        width: clamp(44px, 13vw, 62px) !important
    }

    .hk-hokm-card .hk-hand-cards {
        gap: 4px !important
    }

    .hk-entry-main, .hk-entry-screen, .hk-suit-choices, .hk-hokm-card {
        min-width: 0 !important;
        max-width: 100vw !important;
        overflow-x: clip !important
    }

    .hk-suit-choices {
        grid-template-columns:repeat(4, minmax(0, 1fr)) !important
    }

    .hk-suit-choice {
        min-width: 0 !important
    }
}


/* Dedicated, high-contrast table chooser for the Hokm lobby. */
.hk-hokm-picker-page {
    min-height: 100vh !important;
    padding: clamp(14px, 3vw, 32px) !important;
    color: #f6f1df !important;
    background: radial-gradient(ellipse at 50% 0%, #245846 0%, #102d25 44%, #091713 100%) !important;
}

.hk-hokm-picker-page .hk-app-wrap {
    width: min(100%, 980px) !important;
    margin-inline: auto !important;
}

.hk-hokm-picker-page .hk-invite-tools {
    margin: 0 0 20px !important;
    padding: 16px 18px !important;
    border: 1px solid #d8c47755 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #173b31, #10241f) !important;
    box-shadow: 0 12px 32px #0004, inset 0 1px #ffffff15 !important;
}

.hk-hokm-picker-page .hk-invite-entry > label {
    color: #f1d782 !important;
    font-weight: 900 !important;
}

.hk-hokm-picker-page .hk-invite-entry input {
    min-height: 48px !important;
    border: 1px solid #d7dfcb55 !important;
    border-radius: 13px !important;
    background: #081713 !important;
    color: #fff7dc !important;
}

.hk-hokm-picker-page .hk-invite-entry button,
.hk-hokm-picker-page .hk-form-submit {
    min-height: 48px !important;
    border: 1px solid #f1d77d !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #f3dc91, #c5a34f) !important;
    color: #17251c !important;
    font-weight: 950 !important;
    box-shadow: 0 7px 18px #0003 !important;
}

.hk-hokm-picker-page .hk-page-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 18px !important;
    padding: 20px 22px !important;
    border: 1px solid #a6d0b044 !important;
    border-radius: 22px !important;
    background: linear-gradient(120deg, #183e32, #142823 62%, #1b2630) !important;
    box-shadow: 0 16px 38px #0004, inset 0 1px #ffffff18 !important;
}

.hk-hokm-picker-page .hk-page-kicker {
    color: #b6e5cb !important;
    letter-spacing: .08em !important;
    font-weight: 900 !important;
}

.hk-hokm-picker-page .hk-page-title {
    margin: 4px 0 !important;
    color: #fff2c9 !important;
    font-size: clamp(24px, 4vw, 34px) !important;
}

.hk-hokm-picker-page .hk-page-subtitle {
    margin: 0 !important;
    color: #c4d8cb !important;
    line-height: 1.8 !important;
}

.hk-hokm-picker-page .hk-wallet {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    border: 1px solid #d9c57466 !important;
    border-radius: 15px !important;
    background: #091a15 !important;
    color: #ffe59a !important;
    box-shadow: inset 0 1px #ffffff14 !important;
}

.hk-hokm-picker-page .hk-wallet img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
}

.hk-hokm-picker-page .hk-section-block {
    margin: 16px 0 !important;
    padding: clamp(16px, 3vw, 24px) !important;
    border: 1px solid #b9d7c147 !important;
    border-radius: 23px !important;
    background: linear-gradient(145deg, #16372f, #10231f 65%, #14232a) !important;
    box-shadow: 0 18px 42px #0004, inset 0 1px #ffffff14 !important;
}

.hk-hokm-picker-page .hk-section-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 17px !important;
    color: #f4d77e !important;
}

.hk-hokm-picker-page .hk-section-head > span {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid #f1d77d77 !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #745c26, #2f3928) !important;
    color: #ffe9a6 !important;
    font-size: 20px !important;
}

.hk-hokm-picker-page .hk-section-head h2 {
    margin: 0 !important;
    color: #fff0c2 !important;
    font-size: 19px !important;
}

.hk-hokm-picker-page .hk-section-head p {
    margin: 3px 0 0 !important;
    color: #bdd2c6 !important;
    font-size: 13px !important;
}

.hk-hokm-picker-page .hk-picker-grid {
    display: grid !important;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
    gap: 12px !important;
}

.hk-hokm-picker-page .hk-picker-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    min-height: 190px !important;
    padding: 17px !important;
    overflow: hidden !important;
    border: 1px solid #b8d4c34a !important;
    border-radius: 19px !important;
    background: linear-gradient(145deg, #20483b, #142a25 68%, #17232b) !important;
    color: #f4f5e8 !important;
    text-align: right !important;
    box-shadow: 0 10px 24px #0004, inset 0 1px #ffffff1a !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.hk-hokm-picker-page .hk-picker-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #f2d57c, transparent) !important;
    opacity: .8 !important;
}

.hk-hokm-picker-page .hk-picker-card:hover {
    transform: translateY(-3px) !important;
    border-color: #f1d77dbb !important;
    box-shadow: 0 16px 30px #0005, 0 0 20px #f1d77d16 !important;
}

.hk-hokm-picker-page .hk-picker-card .hk-picker-icon {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 0 12px !important;
    border: 1px solid #f0d78177 !important;
    border-radius: 14px !important;
    background: #e4c65b1b !important;
    color: #ffe39a !important;
    font-size: 21px !important;
}

.hk-hokm-picker-page .hk-picker-card strong {
    color: #fff0c6 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.hk-hokm-picker-page .hk-picker-card p {
    margin: 6px 0 12px !important;
    color: #c4d9cd !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

.hk-hokm-picker-page .hk-picker-card .hk-picker-foot {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 11px !important;
    border-top: 1px solid #ffffff20 !important;
    color: #c3e7cf !important;
    font-size: 11px !important;
}

.hk-hokm-picker-page .hk-practice-card {
    width: min(100%, 420px) !important;
    min-height: 160px !important;
    cursor: pointer !important;
}

.hk-hokm-picker-page .hk-resume-banner,
.hk-hokm-picker-page .hk-alert-card,
.hk-hokm-picker-page .hk-invite-note {
    border: 1px solid #d4c27155 !important;
    border-radius: 18px !important;
    background: linear-gradient(130deg, #193b31, #10241f) !important;
    color: #f4efdd !important;
}

.hk-hokm-picker-page .hk-resume-banner p,
.hk-hokm-picker-page .hk-invite-note p {
    color: #c3d8ca !important;
}

@media (max-width: 600px) {
    .hk-hokm-picker-page {
        padding: 10px !important;
    }

    .hk-hokm-picker-page .hk-page-top {
        align-items: flex-start !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .hk-hokm-picker-page .hk-wallet {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .hk-hokm-picker-page .hk-wallet img {
        width: 24px !important;
        height: 24px !important;
    }

    .hk-hokm-picker-page .hk-section-block {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .hk-hokm-picker-page .hk-picker-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .hk-hokm-picker-page .hk-picker-card {
        min-height: 174px !important;
        padding: 12px !important;
        border-radius: 15px !important;
    }

    .hk-hokm-picker-page .hk-picker-card .hk-picker-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 8px !important;
    }

    .hk-hokm-picker-page .hk-picker-card strong {
        font-size: 14px !important;
    }

    .hk-hokm-picker-page .hk-picker-card p {
        font-size: 11px !important;
    }
}

@media (max-width: 390px) {
    .hk-hokm-picker-page .hk-page-top {
        flex-direction: column !important;
    }

    .hk-hokm-picker-page .hk-picker-grid {
        grid-template-columns:minmax(0, 1fr) !important;
    }

    .hk-hokm-picker-page .hk-picker-card {
        min-height: 145px !important;
    }
}


/* Expand the salon game rail into the full lower row so the account column has no dead zone. */
body:has(.hk-home-hero) .hk-home-hero {
    display: grid !important;
    grid-template-columns:minmax(0, 1fr) minmax(290px, 360px) !important;
    grid-template-rows:auto auto minmax(240px, 1fr) !important;
    grid-template-areas:"welcome account" "gamehint gamehint" "games games" !important;
    align-items: stretch !important;
    align-content: stretch !important;
    gap: 12px !important;
    min-height: calc(100dvh - 64px) !important;
    padding: clamp(14px, 2vw, 24px) !important
}

body:has(.hk-home-hero) .hk-home-welcome {
    grid-area: welcome !important;
    display: block !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-home-account {
    grid-area: account !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important
}

body:has(.hk-home-hero) .hk-game-slider-hint {
    grid-area: gamehint !important;
    align-self: end !important;
    margin: 0 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid {
    grid-area: games !important;
    display: flex !important;
    align-self: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #87b99b42 !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ffffff08, #00000012) !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
    flex: 0 0 clamp(265px, 24vw, 330px) !important;
    width: auto !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    align-self: stretch !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-home-hero {
        grid-template-columns:minmax(0, 1fr) !important;
        grid-template-rows:auto auto auto minmax(190px, 1fr) !important;
        grid-template-areas:"welcome" "account" "gamehint" "games" !important;
        min-height: 0 !important;
        gap: 10px !important
    }

    body:has(.hk-home-hero) .hk-home-account {
        align-self: stretch !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid {
        min-height: 190px !important;
        padding: 8px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        flex-basis: min(82vw, 320px) !important;
        height: auto !important;
        min-height: 166px !important
    }
}


/* Individual game artwork supplied for the home salon cards. */
body:has(.hk-home-hero) .hk-game-launch--catdog {
    background: linear-gradient(180deg, #07120f32 0%, #07120f60 40%, #07120fea 100%), url('/public/Hokmland/Styles/catdog.png') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--football {
    background: linear-gradient(180deg, #06130e20 0%, #06130e45 42%, #06130eef 100%), url('/public/Hokmland/Styles/hk-menu-football.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--rps {
    background: linear-gradient(180deg, #10112622 0%, #10112648 42%, #09121bef 100%), url('/public/Hokmland/Styles/hk-menu-rps.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--cards {
    background: linear-gradient(180deg, #07151018 0%, #07151042 40%, #06130fee 100%), url('/public/Hokmland/Styles/hk-menu-cards.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--warsix {
    background: linear-gradient(180deg, #08130f1c 0%, #08130f50 42%, #08130fee 100%), url('/public/Hokmland/Styles/hk-menu-warsix.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--football-cup {
    background: linear-gradient(180deg, #0b11151a 0%, #0b111548 42%, #07120fee 100%), url('/public/Hokmland/Styles/hk-menu-football-cup.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--snakes {
    background: linear-gradient(180deg, #07130e18 0%, #07130e42 40%, #07130fee 100%), url('/public/Hokmland/Styles/hk-menu-snakes-crop.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--ludo {
    background: linear-gradient(180deg, #07130e18 0%, #07130e42 40%, #07130fee 100%), url('/public/Hokmland/Styles/hk-menu-ludo.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--tictactoe {
    background: linear-gradient(180deg, #07130e18 0%, #07130e42 40%, #07130fee 100%), url('/public/Hokmland/Styles/hk-menu-tictactoe.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--tank {
    background: linear-gradient(180deg, #0b11151a 0%, #0b111548 42%, #07120fee 100%), url('/public/Hokmland/Styles/hk-menu-tank.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--henhouse {
    background: linear-gradient(180deg, #07130e18 0%, #07130e42 40%, #07130fee 100%), url('/public/Hokmland/Styles/hk-menu-henhouse.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch--rift {
    background: linear-gradient(180deg, #080d171c 0%, #080d1750 42%, #080d17ef 100%), url('/public/Hokmland/Styles/hk-menu-rift.jpg') center/cover no-repeat !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
    background-position: center !important;
    background-size: cover !important;
    border-color: #e7d08a88 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding: 8px 11px !important;
    border: 1px solid #fff3 !important;
    border-radius: 13px !important;
    background: linear-gradient(100deg, #06110eeb, #0a1915df) !important;
    box-shadow: 0 5px 16px #0005 !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div h2 {
    margin: 0 0 3px !important;
    color: #fff2c8 !important;
    font-size: clamp(15px, 1.45vw, 19px) !important;
    line-height: 1.35 !important;
    text-shadow: 0 2px 5px #000 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    margin: 0 !important;
    color: #f5f3e9 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 4px #000 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch .hk-game-launch-label {
    background: #06120fea !important;
    border-color: #f1dfa555 !important;
    color: #fff5d8 !important;
    box-shadow: 0 3px 12px #0007 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch .hk-game-launch-cta {
    margin-top: 7px !important;
    padding: 5px 8px !important;
    border: 1px solid #ffe7a455 !important;
    border-radius: 10px !important;
    background: #06120fe8 !important;
    color: #ffe8a4 !important;
    text-shadow: 0 1px 4px #000 !important
}

body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch .hk-game-launch-art {
    filter: drop-shadow(0 5px 9px #000b) !important
}

@media (max-width: 760px) {
    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch {
        min-height: 180px !important;
        padding: 12px !important;
        background-position: center !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div {
        padding: 7px 9px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div h2 {
        font-size: 16px !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch > div p {
        font-size: 10px !important;
        line-height: 1.5 !important
    }

    body:has(.hk-home-hero) .hk-game-launch-grid > .hk-game-launch .hk-game-launch-cta {
        font-size: 10px !important
    }
}

#body .hk-game-launch--catdog {
    background: linear-gradient(180deg, #07120f28 0%, #07120f58 40%, #07120ff0 100%), url('/public/Hokmland/Styles/catdog.png') center/cover no-repeat !important;
    background-size: cover !important;
    background-position: center !important
}
