.wrapper,
header {
    width: 100%;
    background-color: #ffffff
}

.search_bar input,
.wrapper,
header {
    background-color: var(--bg-primary);
}

.icon_list.closed .active_bit,
header button {
    background-color: transparent
}

#game_help_popup,
.award_pop {
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, .3)
}

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

.icon_list.mobileshow .nav_bottom,
.icongrid_2.homepage_icons .dpuzzleicon.tt8,
article,
aside,
body.gameisplaying #awards_game_top,
body.gameisplaying #leaderboard_game_top,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

/* ===== Senior-Friendly Design System ===== */
:root {
    --bg-primary: #1e293b;
    --bg-secondary: #336843f0;
    --bg-card: #1e293b;
    --bg-hover: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --cta-bg: #2563eb;
    --cta-hover: #1d4ed8;
    --success: #22c55e;
    --border: #475569;
    --radius: 10px;
    --font-size-base: 18px;
    --font-size-sm: 16px;
    --font-size-lg: 22px;
    --font-size-xl: 28px;
    --font-size-h1: 30px;
    --font-size-h2: 24px;
    --touch-target: 48px;
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 18px;
    --spacing-lg: 28px;
}

/* ===== Light Theme ===== */
.theme-light,
html.theme-light {
    --bg-primary: #f5f0ea;
    --bg-secondary: #336843f0;
    --bg-card: #ffffff;
    --bg-hover: #ddd5cb;
    --text-primary: #2d2822;
    --text-secondary: #6b6359;
    --text-muted: #9c948b;
    --accent: #d97706;
    --accent-hover: #b45309;
    --cta-bg: #2563eb;
    --cta-hover: #1d4ed8;
    --success: #16a34a;
    --border: #d6cfc4;
}

body {
    scrollbar-gutter: stable;
    line-height: 1.6;
    font-family: Rubik, Arial, Helvetica, sans-serif;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

ol,
ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote:after,
blockquote:before,
q:after,
q:before {
    content: '';
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

img {
    user-select: none;
    pointer-events: auto
}

html {
    background-color: var(--bg-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    height: 100%
}

input,
textarea {
    font-size: var(--font-size-base)
}

.wrapper {
    float: left
}

p strong {
    font-weight: 600;
    color: var(--accent)
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px
}
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 10000;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

header button {
    border: none;
    outline: 0;
    float: left;
    color: var(--text-primary);
    cursor: pointer
}

header button svg {
    float: left;
    width: 28px;
    height: 28px;
    display: block
}

header button span {
    display: block;
    line-height: 28px;
    float: left;
    padding-left: 8px;
    width: calc(100% - 36px);
    font-size: var(--font-size-sm)
}

.header_left {
    float: left;
    width: 180px
}

.header_left button {
    position: absolute;
    top: 8px;
    left: 12px;
    padding: 10px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center
}

.header_left .logo {
    display: block;
    position: absolute;
    left: 62px;
    top: 4px;
    width: 170px;
    height: 44px;
    padding: 8px
}
.header_left .name {
    display: block;
    position: absolute;
    left: 132px;
    top: 10px;
    width: 300px;
    height: 42px;
    padding: 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px
}
.header_left .name a {
    background: linear-gradient(135deg, var(--accent) 0%, #f97316 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-shadow: none;
    font-size: 22px
}
.theme-light .header_left .name a,
html.theme-light .header_left .name a {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.header_center {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    text-align: center;
    width: 400px
}

.user_avatar,
ul.user_btns,
ul.user_btns li {
    position: relative;
    height: 40px
}

.header_right {
    float: right;
    width: auto;
    margin-top: 10px;
    margin-right: 20px
}

.search_bar {
    position: relative
}
.search_bar input {
    float: left;
    width: calc(100% - 28px);
    padding: 12px 14px 12px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: var(--font-size-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: none
}

.search_bar input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent)
}

.search_bar input::placeholder {
    color: var(--text-muted)
}

.search_bar .srhb {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0 12px 12px 0;
    transition: background-color .15s
}

.search_bar .srhb svg {
    fill: var(--text-muted);
    width: 22px;
    height: 22px;
    transition: fill .15s
}

.search_bar .srhb:hover {
    background-color: var(--bg-hover)
}

.search_bar .srhb:hover svg {
    fill: var(--accent)
}

ul.user_btns {
    float: left;
    width: auto;
    margin-top: 2px
}

#menu_modal,
.custom-select select,
.header_right.loader ul.user_btns,
.icon_list.closed .head3,
.icon_list.closed .nav_bottom,
 
.select-hide,
form .custom_radio input[type=radio],
ul.user_btns .streakbit,
ul.user_btns li.search {
    display: none
}

ul.user_btns li {
    float: left;
    min-width: 48px;
    margin-right: 12px;
    padding: 4px 0;
    cursor: pointer
}

ul.user_btns li svg {
    float: left;
    width: 28px;
    height: 28px;
    margin: 6px
}

ul.user_btns li span {
    display: block;
    float: left;
    height: 28px;
    line-height: 28px;
    margin: 6px 0 0 4px;
    font-size: var(--font-size-sm)
}

ul.user_btns li div.show_hover_top {
    font-size: 14px;
    line-height: 20px;
    display: none;
    float: left;
    padding: 15px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, .2)
}

.daily_puzzles_game .puzzleshome.t2,
.game_page_related .thumbWrapper.tt10,
.game_page_related .thumbWrapper.tt12,
.game_page_related .thumbWrapper.tt14,
.game_page_related .thumbWrapper.tt16,
.game_page_related .thumbWrapper.tt18,
.game_page_related .thumbWrapper.tt2,
.game_page_related .thumbWrapper.tt20,
.game_page_related .thumbWrapper.tt4,
.game_page_related .thumbWrapper.tt6,
.game_page_related .thumbWrapper.tt8,
.puzzleshome.t10,
.puzzleshome.t5,
ul.user_btns li.profile {
    margin-right: 0
}

.user_avatar {
    float: left;
    display: block;
    width: 32px
}

.user_avatar img {
    position: absolute
}

.user_avatar .ubr {
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px
}

.user_avatar .uar {
    z-index: 100;
    width: 26px;
    height: 26px;
    top: 3px;
    left: 3px
}

.show_hover_top a {
    text-decoration: none;
    color: #066dff
}

a.user_links {
    float: left;
    clear: both;
    width: 100%;
    font-size: 14px;
    text-align: center;
    padding: 5px 0
}

.profile_bit b,
.usernametop a {
    display: block;
    font-size: 12px;
    float: left
}

.usernametop {
    float: left;
    width: 100%;
    line-height: 24px
}

.usernametop a {
    margin-left: 6px;
    padding-top: 4px;
    text-decoration: underline
}

ul.user_btns li div.show_hover_top.showit {
    display: block;
    z-index: 10000;
    top: 30px;
    width: 200px;
    left: -100px
}

ul.user_btns li.profile div.show_hover_top.showit {
    left: -200px
}

.profile_bit {
    float: left;
    clear: both;
    width: 100%;
    margin: 5px 0
}

.profile_bit b {
    width: calc(100% - 12px);
    background-color: #eee;
    padding: 6px;
    border-radius: 5px;
    margin-bottom: 5px
}

/* ===== Sidebar Navigation ===== */
.icon_list {
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    width: 240px;
    padding: 6px 0 20px 12px;
    float: left;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border);
    transition: width .3s ease;
    z-index: 500
}

.icon_list.closed {
    width: 64px;
    overflow: hidden;
    top: 64px;
    padding: 10px 0 20px 6px;
    border-right-color: transparent
}

.icon_list.closed:hover {
    width: 210px;
    z-index: 10000;
    border-right: 1px solid var(--border);
    background-color: var(--bg-secondary);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3)
}

.icon_list.hide {
    width: 0;
    min-width: 0;
    display: none
}

.icon_list.closed .list_seperator {
    width: calc(100% - 10px)
}

.icon_list.closed:hover .list_seperator {
    width: calc(100% - 20px)
}

.icon_list .head3 {
    float: left;
    clear: both;
    font-size: 11px;
    padding: 10px 0 6px 10px;
    width: 180px;
    margin: 8px 0 4px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.icon_list.closed .head3 {
    display: none
}

.icon_list a,
a.allgameslist {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none
}

.active_bit,
.icon_list a {
    float: left;
    width: calc(100% - 12px);
    overflow: hidden;
    clear: both;
    border-radius: 10px;
    padding: 5px 0;
    margin: 1px 0;
    white-space: nowrap;
    position: relative;
    transition: background-color .2s;
    display: flex;
    align-items: center
}

.icon_list a.active_bit {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(245, 158, 11, 0.12);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0
}

a.allgameslist {
    float: left;
    clear: both;
    width: 100%;
    padding: 3px 0
}

.active_bit path {
    fill: var(--accent) !important
}

.icon_list a path {
    fill: var(--text-primary) !important
}

.icon_list .grh {
    width: 36px;
    height: 36px;
    float: left;
    margin: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.icon_list .grh svg {
    width: 100%;
    height: 100%
}

.icon_list .grh img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    border-radius: 30%;
}

.icon_list .gtt {
    float: left;
    /* width kept for layout; hidden by overflow in closed state */
    display: block;
    line-height: 48px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.site_scrolled {
    position: relative;
    float: left;
    padding: 20px 15px 15px;
    width: calc(100% - 285px);
    margin: 64px 0 0 262px
}

.site_scrolled.wideopen {
    width: calc(100% - 115px);
    margin-left: 90px
}

.site_scrolled.fullscreen {
    width: calc(100% - 312px);
    margin-left: 262px
}

h1,
h2 {
    float: left;
    clear: both;
    padding: 14px 0;
    width: 100%;
    font-size: var(--font-size-h2);
    color: var(--text-primary);
    font-weight: 600
}

.list_seperator {
    float: left;
    clear: both;
    width: calc(100% - 30px);
    height: 1px;
    background-color: var(--border);
    margin: 14px 5px
}

.account_benefits h5,
.headtext {
    margin-bottom: 10px
}

.header_wrap,
.rankings_board,
.rankings_scores {
    float: left;
    clear: both;
    width: 100%
}

.header_wrap.extrabtm {
    margin-bottom: 20px
}

.header_wrap h1,
.header_wrap h2,
.headtext span {
    width: auto;
    display: inline-block
}

.bp-forms.contactus button.button-green,
.headtext span,
.headtext svg,
.rankings_scores .ranked,
.rankings_scores .score,
.rankings_scores .user {
    float: left
}

.header_wrap a,
.header_wrap span,
.headtext a {
    float: left;
    width: auto;
    margin-left: 15px;
    font-size: var(--font-size-sm);
    padding: 12px 0 0;
    line-height: 24px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 500
}

.account_benefits p a {
    color: #066dff
}

.headtext {
    float: left;
    width: 100%
}

.headtext a {
    float: right;
    padding: 0 10px 0 0
}

.headtext.withicon span {
    line-height: 24px;
    padding-left: 8px
}

.account_benefits {
    clear: both;
    width: 100%;
    margin: 30px 0 0;
    float: left;
    text-align: left;
    padding-top: 25px;
    border-top: 1px solid var(--border)
}

.account_benefits li,
.account_benefits ul {
    float: left;
    width: 100%;
    clear: both;
    position: relative
}

.account_benefits li {
    width: calc(100% - 35px);
    padding: 8px 0 8px 35px;
    line-height: 28px;
    font-size: var(--font-size-sm);
    margin: 8px 0;
    color: var(--text-primary)
}

.account_benefits li::before {
    position: absolute;
    content: "";
    top: 5px;
    left: 0;
    width: 24px;
    height: 24px;
    background: url(/assets/3/img/user-ft-award.png) 0 0/24px 24px
}

.account_benefits li.progress::before {
    background: url(/assets/3/img/user-ft-save.png) 0 0/24px 24px
}

.account_benefits li.customize::before {
    background: url(/assets/3/img/user-ft-customize.png) 0 0/24px 24px
}

.account_benefits li.createpuzzles::before {
    background: url(/assets/3/img/create-level.png) 0 0/24px 24px
}

.header_wrap span.big {
    color: var(--text-secondary);
    float: right;
    display: block;
    padding-top: 14px;
    margin-right: 4px;
    font-size: var(--font-size-sm);
    width: 145px;
    text-align: right
}

#daily_timer {
    display: inline-block;
    width: 55px;
    text-align: left
}

.header_wrap .cat_icon {
    float: left;
    width: 50px;
    height: 50px
}

.header_wrap p {
    float: left;
    width: 100%;
    clear: both;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5
}

.with_icon {
    float: left;
    width: calc(100% - 65px);
    margin-left: 15px
}

.with_icon h1 {
    font-size: var(--font-size-h1);
    padding: 5px 0 8px;
    font-weight: 600
}
@media(max-width:1000px) {

.with_icon h1 {
    font-size: var(--font-size-lg);
    padding: 5px 0 8px;
    max-width: 320px;
    
}
}
.puzzleshome {
    position: relative;
    float: left;
    width: calc(20% - 15px);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    height: 240px;
    border-radius: 12px;
    margin: 0 15px 15px 0;
    overflow: hidden;
    border-bottom: 3px solid rgba(0,0,0,0.25)
}

.puzzleshome a.puzzletop {
    display: block;
    width: 100%;
    height: 150px;
    background-color: #eee;
    text-align: center;
    padding-top: 12px;
    color: #333
}

.puzzleshome a.puzzletop img,
.puzzleshome a.puzzletop svg {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    display: block
}

.puzzleshome a.puzzletop svg.mahjong {
    width: 96px
}

.puzzleshome a.puzzletop span {
    float: left;
    display: block;
    clear: both;
    width: 100%;
    font-size: var(--font-size-lg);
    padding-top: 14px;
    font-weight: 600
}

.puzzleshome .puzzlebottom {
    float: left;
    clear: both;
    width: 100%;
    text-align: center
}

.puzzleshome .puzzlebottom a {
    float: left;
    width: calc(100% - 64px);
    text-decoration: none;
    padding: 14px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-primary);
    margin: 16px 20px 0;
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center
}

.thumbWrapper.dpuzzleicon.completed {
    border-color: #7a96317d
}

.thumbWrapper.dpuzzleicon.completed:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 6px;
    right: 6px;
    background: url(/assets/3/img/checkmark.svg) 0 0/18px 18px
}

.daily_puzzles_game .puzzleshome {
    width: calc(50% - 6px);
    margin-right: 5px
}

.inner_footer {
    float: left;
    clear: both;
    margin: 25px 0 50px;
    width: 100%;
    text-align: center;
    padding-bottom: 25px;
    height: 30px
}

.nav_bottom {
    float: left;
    clear: both;
    margin: 30px 0 20px;
    text-align: left;
    padding-left: 15px
}

.icon_list .nav_bottom a {
    margin: 4px 0;
    line-height: 28px;
    padding: 6px 12px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis
}

.lang_footer {
    padding: 8px 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border)
}
.lang_footer select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer
}
.icon_list.closed .lang_footer {
    display: none
}

.icongrid {
    display: grid;
    grid-column-gap: 12px;
    grid-row-gap: 12px;
    clear: both;
    margin-bottom: 15px
}

.icongrid_2 {
    grid-template-columns: repeat(7, 1fr)
}

.icongrid_3 {
    grid-template-columns: repeat(6, 1fr)
}

.thumbWrapper.dpuzzleicon {
    background-color: #f6f6f6;
    border-bottom: 3px solid #0000003b
}

.thumbWrapper.dpuzzleicon img {
    width: calc(100% - 60px);
    height: calc(100% - 85px);
    border-radius: 0;
    position: absolute;
    top: 27px;
    left: 30px;
    right: 30px;
    bottom: auto
}

.thumbWrapper.dpuzzleicon span.thumbname {
    background-color: var(--bg-card);
    line-height: 31px;
    height: 30px
}

.thumbWrapper.dpuzzleicon a video {
    bottom: 28px;
    height: calc(100% - 28px)
}

.thumbWrapper.showawards a:before {
    content: '';
    z-index: 1000;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 55px;
    height: 22px;
    background: url(/assets/3/img/awards_bit.svg) 6px 50%/16px 16px no-repeat #fff;
    border-radius: 5px
}

.thumbWrapper.showawards .award_cnt {
    position: absolute;
    right: 7px;
    top: 6px;
    z-index: 1000;
    color: #000;
    width: 31px;
    text-align: center;
    height: 20px;
    line-height: 20px;
    font-size: 13px
}

.icongrid_1 .tt1 {
    grid-area: 1/1/3/3
}

.icongrid_1 .tt2 {
    grid-area: 1/7/3/9
}

.icongrid_1 .tt3,
.icongrid_2 .tt3 {
    grid-area: 1/3/2/4
}

.icongrid_1 .tt4,
.icongrid_2 .tt4 {
    grid-area: 1/4/2/5
}

.icongrid_1 .tt5,
.icongrid_2 .tt5 {
    grid-area: 1/5/2/6
}

.icongrid_1 .tt6,
.icongrid_2 .tt6 {
    grid-area: 1/6/2/7
}

.icongrid_1 .tt7,
.icongrid_2 .tt10 {
    grid-area: 2/3/3/4
}

.icongrid_1 .tt8,
.icongrid_2 .tt11 {
    grid-area: 2/4/3/5
}

.icongrid_1 .tt9,
.icongrid_2 .tt12 {
    grid-area: 2/5/3/6
}

.icongrid_1 .tt10,
.icongrid_2 .tt13 {
    grid-area: 2/6/3/7
}

.icongrid_2 .tt1 {
    grid-area: 1/1/2/2
}

.icongrid_2 .tt2 {
    grid-area: 1/2/2/3
}

.icongrid_2 .tt7 {
    grid-area: 1/7/2/8
}

.icongrid_2 .tt8 {
    grid-area: 2/1/3/2
}

.icongrid_2 .tt9 {
    grid-area: 2/2/3/3
}

.icongrid_2 .tt14 {
    grid-area: 2/7/3/8
}

.thumbWrapper {
    position: relative;
    border: 1px solid var(--border);
    border-bottom: 3px solid rgba(0,0,0,0.25);
    width: 100%;
    padding-bottom: calc(60% + 28px);
    margin: 0;
    border-radius: 10px;
    background-color: var(--bg-card);
    float: left;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.2s
}

.game,
.headerlogin,
.thumbWrapper a {
    border-radius: 25px
}

.thumbWrapper a {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 200;
    position: absolute;
    background-color:#000;
}

.thumbWrapper a video,
.thumbWrapper img {
    height: calc(100% - 30px);
    border-radius: 5px 5px 0 0;
    bottom: 30px;
    width: 100%;
    top: 0;
    right: 0;
    position: absolute;
    left: 0
}

.thumbWrapper a video {
    object-fit: fill;
    z-index: 200;
    display: block
}

.thumbWrapper span.thumbname {
    position: absolute;
    font-size: var(--font-size-sm);
    width: 100%;
    bottom: 0;
    line-height: 30px;
    height: 30px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    padding-top: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4)
}

.game_page_related {
    float: left;
    clear: both;
    width: 100%;
    margin-bottom: 10px
}

.game_page_related .thumbWrapper {
    width: calc(50% - 6px);
    padding-bottom: calc(50% + 17px);
    margin: 0 6px 6px 0
}

.advertisment,
.advertisment-mobile {
    float: left;
    clear: both;
    margin: 0 0 20px;
    text-align: center;
    width: 100%;
    font-size: 14px;
    color: var(--text-muted)
}

.advertisment-mobile {
    padding-top: 20px;
    margin: 0;
    overflow: hidden
}

.ad300,
.ad728,
.admobile {
    margin: 0 auto;
    text-align: center
}

.ad300,
.ad728 {
    width: 336px;
    height: 280px;
    background-color: var(--bg-secondary);
    border-radius: 8px
}

.ad728 {
    max-width: 970px;
    height: 100px;
    width: auto
}

.loader_svg_show {
    background: url(/assets/3/img/load.svg) 50% 50%/25px 25px no-repeat;
    width: 50px;
    height: 50px;
    margin: 0
}

.headerlogin {
    position: relative;
    line-height: 44px;
    height: 44px;
    float: right;
    text-align: center;
    min-width: 100px;
    color: #fff;
    background-color: var(--cta-bg);
    display: block;
    padding: 0 20px;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none
}

.headerlogin::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 18px;
    height: 18px;
    background: url(/assets/3/img/userbit.svg) 0 0/18px 18px
}

.game_page_left {
    float: left;
    width: 100%;
    min-height: 100vh
}

/* PC 端限制游戏详情页宽度，右侧留白给 AdSense 自动广告 */
@media (min-width: 1081px) {
    .game_page_left {
        max-width: 88%;
    }
}

.game_page_right {
    float: left;
    display: none;
    width: 160px;
    margin-left: 15px
}

.game_page_right .section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md)
}


.game {
    position: relative;
    float: left;
    width: 100%;
    min-height: 400px;
    height: 76vh;
    height: 76dvh;
    overflow: hidden
}

/* 游戏加载过场动画 - Logo 脉冲 */
.game-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    z-index: 10;
    gap: 1.5rem;
}
.game-loading-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: game-logo-pulse 1.5s ease-in-out infinite;
}
@keyframes game-logo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
.game-loading-text {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    animation: game-text-fade 1.5s ease-in-out infinite;
}
@keyframes game-text-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#game_loader,
.game iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: var(--bg-secondary);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px
}

#likeGame,
#toggleHelp,
.game_top {
    position: relative
}

#game_loader {
    color: var(--text-primary);
    text-align: center;
    font-size: var(--font-size-base);
    background: var(--bg-secondary);
    letter-spacing: 1px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px
}

#game_loader .loading_bits {
    text-align: center;
    padding-top: 20px
}

#game_loader .loading_skeleton {
    width: 200px;
    height: 140px;
    border-radius: 15px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-secondary) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite
}

#game_loader .loading_skeleton + .loading_skeleton {
    width: 160px;
    height: 20px;
    border-radius: 4px;
    margin-top: 4px
}

#game_loader span {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 500;
    opacity: .7
}

#game_loader .loader_spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loader-spin .8s linear infinite
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}

@keyframes loader-spin {
    to { transform: rotate(360deg) }
}

.game_top {
    float: left;
    clear: both;
    width: 100%;
    height: 44px;
    margin-bottom: 8px
}

.game_top h1 {
    clear: none;
    float: left;
    line-height: 48px;
    font-size: var(--font-size-lg);
    padding: 0 0 0 10px;
    width: auto;
    max-width: 55%;
    overflow: hidden;
    font-weight: 500
}

.game_top img {
    float: left;
    width: auto;
    height: 44px;
    border-radius: 2px
}

.game_bottom {
    float: left;
    clear: both;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px
}

.game_bottom .rightbtns {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto
}

#toggleHelp {
    width: auto;
    min-width: 120px;
    padding: 0 16px
}

#likeGame {
    min-width: 60px;
    gap: 4px;
    padding: 0 10px 0 34px;
    position: relative
}

.gamebtn.withtxtx {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative
}

.gamebtn.withtxtx svg {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin-top: 0
}

.gamebtn.withtxtx span {
    display: inline-block;
    line-height: 1;
    font-size: 15px;
    font-weight: 600
}

button.gamebtn {
    border: none;
    border-radius: 10px;
    min-width: 48px;
    min-height: 48px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s;
    border: 1px solid var(--border)
}

button.gamebtn svg {
    width: 22px;
    height: 22px
}

button.gamebtn:hover {
    background-color: var(--bg-hover)
}

.gamebtn.interatedwith {
    background-color: #ccc;
    font-weight: 700
}

#likeGame.interatedwith path {
    fill: #029b41
}

#likeGame.interatedwith span {
    font-size: 14px;
    color: #029b41
}

#dislikeGame.interatedwith path {
    fill: #9b0202
}

.game_bottom .game_name_wrap {
    float: left
}

.award_pop {
    text-align: left;
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    z-index: 100;
    width: 200px;
    border-radius: 5px;
    height: 55px;
    padding: 10px;
    opacity: 0;
    transition: opacity .5s
}

.award_pop.guest {
    left: calc(50% - 135px);
    right: auto;
    text-align: center;
    width: 250px;
    height: 70px
}

.award_pop h2 {
    padding: 4px 0 5px
}

.award_pop.guest h2 {
    padding-bottom: 10px
}

.award_pop .headerlogin {
    width: 155px;
    border: 0;
    font-weight: 600;
    float: none;
    clear: both;
    text-indent: 0;
    display: inline-block
}

.award_pop button.closeit {
    width: 26px;
    height: 26px;
    background-size: 16px 16px
}

.rankings_board {
    padding-bottom: 20px
}

.rankings_scores {
    padding: 10px;
    border-bottom: 1px solid #eee;
    width: calc(100% - 20px);
    font-size: 14px
}

.rankings_board h5 {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    margin: 14px 0
}

.rankings_scores.highlite {
    background-color: #ffffd0
}

.rankings_scores .ranked {
    width: 30px
}

.rankings_scores {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    width: calc(100% - 20px);
    font-size: var(--font-size-sm)
}

.rankings_scores .user {
    width: calc(100% - 125px);
    color: var(--text-primary);
    overflow: hidden
}

.rankings_scores .score {
    width: 70px;
    overflow: hidden;
    color: var(--accent);
    font-weight: 600
}

.page_tabs {
    float: left;
    width: 100%;
    clear: both;
    margin: 12px 0 20px
}

.page_tabs a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    padding: 12px 8px 8px;
    margin: 0 8px;
    font-size: var(--font-size-sm);
    font-weight: 500
}

.page_tabs a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent)
}

.page_tabs a:hover {
    color: var(--accent)
}

.rightbtns {
    float: right
}

#mobile_goback {
    position: absolute;
    top: 11px;
    left: 8px;
    height: 44px;
    width: 48px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    margin: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px)
}
#mobile_goback svg path {
    fill: var(--text-primary)
}

.game_name_wrap a {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 8px 16px 8px 8px;
    border-radius: 8px;
    line-height: 1;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    /* min-height: 44px; */
    border: 1px solid var(--border);
    gap: 6px
}

.game_name_wrap a .grh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px
}

.game_name_wrap a .grh svg {
    width: 24px;
    height: 24px
}

.game_name_wrap a .gtt {
    line-height: 1
}

.game_info {
    float: left;
    clear: both;
    width: calc(100% - 300px);
    margin: 0 0 50px;
    padding: 20px 270px 20px 20px;
    max-width: 850px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7
}

.game_info img,
.modalpop {
    position: absolute;
    right: 0
}

.game_info a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px
}

.game_info h2 {
    font-size: var(--font-size-lg)
}

.game_info h3,
.game_info h4 {
    float: left;
    clear: both;
    width: 100%;
    margin: 18px 0
}

.game_info h4 {
    margin: 8px 2px;
    width: calc(100% - 4px)
}

.achievement_bit,
.game_info p {
    margin-bottom: 8px;
    color: var(--text-primary);
}
.game_info p strong {
    color: var(--text-primary);
    font-weight: 600
}
#achievement-info p,
.account_benefits p,
.game_info li,
.game_info ol,
.game_info p,
.game_info ul {
    float: left;
    clear: both;
    width: calc(100% - 50px);
    font-size: var(--font-size-base);
    line-height: 1.7;
    font-weight: 400;
    font-family: inherit
}

.account_benefits p {
    font-size: var(--font-size-sm);
    color: var(--text-primary)
}

.game_info ol {
    list-style-type: decimal;
    margin-left: 25px
}

.game_info b {
    font-weight: 700
}

.game_info ul {
    list-style-type: disc;
    margin-left: 35px
}

.game_info img {
    width: 260px;
    height: auto;
    border-radius: 10px;
    top: 40px
}

.game_info li {
    padding: 3px
}

/* Force override CMS rich text inline color styles */
.game_info [style*="color"] {
    color: var(--text-primary) !important
}

.modalpop {
    top: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .7);
    width: 100%;
    height: 100%;
    z-index: 1000
}

.modalpop.maxzin {
    z-index: 10000;
    position: fixed
}

.popupbox {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    z-index: 100000;
    position: fixed;
    color: var(--text-primary);
    border: 1px solid var(--border)
}

.popupbox.centered {
    width: 460px;
    height: 560px;
    top: calc(50% - 280px);
    left: calc(50% - 230px)
}

button.closeit {
    position: absolute;
    border: 0;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: url(/assets/3/img/closeit.png) 50% 50%/24px 24px no-repeat
}

button.backbtn {
    position: absolute;
    border: 0;
    left: 10px;
    top: 15px;
    width: 40px;
    height: 40px;
    background: url(/assets/3/img/backbtn.png) 50% 50%/16px 16px no-repeat
}

.popupbox .inside {
    float: left;
    padding: 60px 40px;
    width: calc(100% - 80px);
    height: calc(100% - 120px);
    overflow-y: scroll
}

.popupbox .inside #achievement-info {
    margin: 0
}

#game_help_popup {
    position: absolute;
    top: 15%;
    left: 15%;
    background-color: var(--bg-secondary);
    padding: 24px 28px;
    width: calc(70% - 56px);
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    max-height: 70%;
    height: 520px;
    z-index: 1000;
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4)
}

.games_prompts h2 {
    font-size: var(--font-size-h2);
    color: var(--text-primary)
}

.games_prompts p {
    float: left;
    clear: both;
    padding: 14px 0;
    width: 100%;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary)
}

.games_prompts button {
    float: left;
    margin: 20px 20px 0 0;
    border: 0
}

button.button-green.greybtn {
    background-color: #cfcdcd;
    color: #000
}

button.button-green.adicon {
    position: relative;
    padding-right: 40px;
    padding-left: 20px
}

button.button-green.adicon:before {
    content: "";
    width: 20px;
    height: 20px;
    background: url(/assets/3/img/ads.png) 0 0/20px 20px;
    top: 13px;
    right: 9px;
    position: absolute
}

#game_help_popup button {
    padding: 10px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 1000
}

#howtoplay2 {
    overflow-y: scroll;
    border: 0;
    position: absolute;
    bottom: 0;
    top: 0;
    padding: 10px 0 25px
}

#achievement-info {
    float: left;
    clear: both;
    margin: 25px 0 10px;
    width: 100%;
    max-width: 400px
}

#awards_game_top,
#leaderboard_game_top {
    display: none;
    position: absolute;
    width: 90px;
    background: #fff;
    border: 1px solid #000;
    margin: 0;
    left: calc(50% - 45px);
    top: 7px;
    font-size: 14px;
    font-family: Rubik, Arial, Helvetica, sans-serif;
    transition: background-color 150ms linear
}

#awards_game_top span,
#leaderboard_game_top span {
    display: block;
    position: absolute;
    top: 8px;
    left: calc(50% - 10px);
    line-height: 20px;
    font-size: 14px;
    width: 42px;
    text-align: center
}

#awards_game_top.extrapadt {
    left: calc(50% - 105px)
}

#leaderboard_game_top {
    width: 114px;
    left: calc(50% - 72px)
}

#leaderboard_game_top span {
    width: 70px;
    left: 32px
}

#leaderboard_game_top.extrapadt {
    left: calc(50% - 5px)
}

.highlight {
    background-color: #f1f1e1 !important
}

.achievement_bit {
    float: left;
    width: calc(100% - 40px);
    clear: both;
    padding: 14px 0 14px 44px;
    border-bottom: 1px solid var(--border);
    position: relative;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: 1.5
}

.labelhelper,
.page-sub-para {
    color: var(--text-secondary);
    font-size: var(--font-size-sm)
}

.achievement_bit:last-child {
    border: 0
}

.achievement_bit::before {
    content: "";
    background: url(/assets/3/img/uncheck.svg) 0 0/24px 24px;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 10px;
    left: 3px
}

.achievement_bit.completed:before {
    background: url(/assets/3/img/checkmark.svg) 0 0/24px 24px
}

.achievement_bit .achievement_title {
    float: left;
    width: 100%;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary)
}

.achievement_rewards {
    float: left;
    width: 100%;
    font-size: var(--font-size-sm);
    line-height: 32px
}

.achievement_rewards span {
    display: block;
    float: left;
    color: var(--text-secondary)
}

span.award_bp {
    margin-right: 15px
}

.achievement_rewards svg {
    margin: 5px 5px 0 0;
    float: left
}

.achievement_rewards svg path {
    fill: #555 !important
}

.achievement_bit.completed .achievement_rewards span {
    color: #333
}

.viewmore {
    float: left;
    clear: both;
    width: 100%;
    margin: -5px 0 15px
}

.viewmore button {
    display: block;
    text-align: center;
    background-color: #f2f2f2;
    color: #333;
    padding: 5px 0;
    font-size: 14px;
    border: 0;
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px
}

#ad_message {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    line-height: 36px;
    font-size: var(--font-size-sm);
    padding: 4px 0
}

img.noradius {
    border-radius: 0
}

.bp-forms {
    float: left;
    clear: both;
    width: 95%;
    margin-top: 20px;
    max-width: 600px
}

.bp-forms.signupform input {
    width: 50%
}

.accountform h2,
.bp-forms.signupform h2 {
    font-size: 26px;
    font-weight: 800;
    color: #212f5c;
    margin: 38px 0;
    float: left;
    clear: both;
    width: 100%
}

.bp-forms .select-items div {
    margin-left: 2px
}

.bp-forms .select-selected:after {
    right: 12px
}

.bp-forms .custom-select {
    width: calc(100% - 5px);
    margin-bottom: 15px
}

.bp-forms button.button-green {
    outline: 0;
    border: 0;
    float: left;
    clear: both;
    padding-left: 80px;
    padding-right: 80px
}

.bp-forms .form-group,
.bp-forms input,
.bp-forms label {
    float: left;
    clear: both;
    width: 100%;
    position: relative
}

.labelhelper {
    float: left;
    clear: both;
    width: 100%;
    margin-bottom: 15px
}

.bp-forms .form-group {
    margin-bottom: 28px
}

.bp-forms label {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #333
}

.bp-forms label span {
    font-size: 12px;
    font-weight: 400;
    color: #54545c
}

.bp-forms input,
.bp-forms textarea {
    border: 1px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-primary);
    line-height: 47px;
    padding: 0 19px;
    width: calc(100% - 44px);
    margin-left: 2px
}

#taponmobile button,
button.button-green {
    text-align: center;
    background-color: var(--cta-bg)
}

.bp-forms input {
    height: 47px
}

.bp-forms textarea {
    height: 148px
}

.form-group.numberinput {
    width: 40%
}

.bp-forms input.readonly {
    opacity: .5;
    outline: 0
}

.page-sub-para {
    float: left;
    clear: both;
    width: 100%;
    margin-top: 18px;
    max-width: calc(100% - 100px);
    line-height: 20px
}

button.button-green {
    font-size: var(--font-size-base);
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: normal;
    color: #fff;
    border-radius: 10px;
    display: block;
    float: left;
    padding: 14px 44px;
    min-height: 52px;
    outline: 0;
    letter-spacing: .3px;
    opacity: 1;
    transition: opacity .2s;
    cursor: pointer;
    border: none
}

button.loading {
    content: "loading..."
}

button.loading:after {
    background: url(/assets/3/img/load.svg) 50% 50%/30px 30px
}

.centerform {
    text-align: center;
    width: 100%;
    opacity: 1;
    transition: opacity .2s
}

#modal_inside.is_loader {
    opacity: .8
}

.centerform label {
    margin: 15px 0 5px;
    font-size: 14px;
    text-align: left
}

.centerform form {
    max-width: 100%;
    width: 100%
}

.centerform form select {
    width: 100%;
    padding: 5px;
    font-size: 15px
}

form .custom_radio label {
    margin: 0 7px 0 0;
    float: left;
    clear: none;
    width: auto
}

form .custom_radio span {
    display: inline-block;
    padding: 10px;
    text-transform: uppercase;
    border: 2px solid #a7a7a7;
    border-radius: 10px;
    font-size: 14px;
    color: #333
}

form .custom_radio input[type=radio]:checked+span {
    border: 2px solid #066dff;
    background-color: #066dff;
    color: #fff
}

button.button-green:disabled {
    background-color: #8a8a8a;
    opacity: .6
}

.inline_errors {
    float: left;
    clear: both;
    color: red;
    padding: 5px 0;
    font-size: 14px;
    width: 100%
}

.centerform button {
    margin-top: 10px;
    width: 100%
}

button.is_loader {
    opacity: .8;
    background: url(/assets/3/img/load.svg) 50% 50%/30px 30px no-repeat #d9d9d9;
    text-indent: -99999px
}

.same-as-selected,
.select-items div:hover {
    background-color: rgba(206, 196, 196, .1)
}

.select-items div {
    border-top: 0
}

.select-items div:last-child {
    border-bottom: 2px solid #cacaca
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: var(--bg-secondary);
    max-height: 300px;
    overflow-y: scroll;
    border: 1px solid var(--border);
    border-top: none
}

::placeholder {
    color: #777;
    opacity: 1
}

:-ms-input-placeholder {
    color: #54545c
}

::-ms-input-placeholder {
    color: #54545c
}

.custom-select {
    float: left;
    width: 100%;
    position: relative
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 19px;
    right: 28px;
    width: 14px;
    height: 9px;
    background: url(/assets/3/img/down-arrow.png) 0 0/14px 9px no-repeat
}

.select-selected.select-arrow-active:after {
    background-image: url(/assets/3/img/up-arrow.png)
}

.select-items div,
.select-selected {
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    float: left;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    line-height: 48px;
    padding: 0 20px;
    width: calc(100% - 42px);
    font-size: var(--font-size-sm)
}

.select-selected {
    color: var(--text-secondary);
    width: calc(100% - 38px)
}

.hideifuser,
.showifuser {
    display: none !important
}

#taponmobile {
    display: none;
    clear: both;
    width: 100%;
    float: left;
    margin-top: 10px;
    padding: 20px 0 40px;
    background: linear-gradient(#0000 60%, #0000000a) !important;
    border-radius: 5px
}

#taponmobile img {
    width: 200px;
    height: auto;
    float: left;
    margin-left: calc(50% - 100px);
    border-radius: 10px
}

#taponmobile button {
    width: 280px;
    max-width: 100%;
    margin-left: calc(50% - 140px);
    margin-top: 16px;
    line-height: 72px;
    height: 72px;
    color: #fff;
    border-radius: 16px;
    font-size: 25px;
    font-weight: 700;
    border: 0;
    font-family: Rubik, Arial, Helvetica, sans-serif;
    position: relative;
    padding-right: 40px;
    background-color: var(--cta-bg);
    cursor: pointer;
    transition: background-color .2s
}

#taponmobile button:after {
    position: absolute;
    background: url(/templates/20/default/_files/img/playbtn.png) 0 0/35px 35px no-repeat;
    width: 45px;
    height: 45px;
    content: "";
    top: 20px;
    right: 45px
}

@media (hover:hover) and (pointer:fine) {

    .icon_list a:hover,
    .rankings_scores:hover {
        background-color: var(--bg-hover)
    }

    .headerlogin:hover {
        cursor: pointer;
        opacity: .9
    }

    .icon_list a:hover {
        color: var(--accent)
    }

    .icon_list a:hover path {
        fill: var(--accent) !important
    }

    .icon_list a:hover .grh img {
        filter: brightness(1.3)
    }

    .game_info a:hover,
    .header_wrap a:hover,
    .headtext a:hover,
    .icon_list a:hover,
    .viewmore button:hover,
    a.allgameslist:hover {
        text-decoration: underline
    }

    .active_bit:hover {
        cursor: pointer;
        background-color: #ccc
    }

    button:hover,
    form .custom_radio span:hover,
    ul.user_btns li.search:hover {
        cursor: pointer
    }

    ul.user_btns li:hover {
        cursor: default
    }

    ul.user_btns li:hover div.show_hover_top {
        display: block;
        z-index: 10000;
        top: 30px;
        width: 200px;
        left: -125px
    }

    ul.user_btns li.profile:hover div.show_hover_top {
        left: -200px
    }

    #awards_game_top:hover,
    #leaderboard_game_top:hover {
        background-color: #eee;
        color: #333
    }

    .bp-forms input:hover,
    .bp-forms textarea:hover {
        border: 1px solid #06003a
    }

    .bp-forms input.readonly:hover {
        border: 1px solid #d6d6d6;
        cursor: default
    }

    .thumbWrapper.has_hs:hover a:after,
    .thumbWrapper.hasawards:hover a:before {
        content: '';
        z-index: 1000;
        position: absolute;
        bottom: 29px;
        right: 4px;
        width: 22px;
        height: 22px;
        border-radius: 5px
    }

    .puzzleshome a.puzzletop:hover {
        color: #000
    }

    .puzzleshome .puzzlebottom a:hover {
        background-color: #f2f2f2
    }

    .thumbWrapper:hover {
        transform: scale(1.015)
    }

    .thumbWrapper.hasawards:hover a:before {
        background: url(/assets/3/img/awards_bit.svg) 50% 50%/16px 16px no-repeat #fff
    }

    .thumbWrapper.has_hs:hover a:after {
        background: url(/assets/3/img/hs_bit.svg) 50% 50%/16px 16px no-repeat #fff
    }

    .thumbWrapper.has_hs.hasawards:hover a:before {
        right: 29px
    }

    .icon_list:active,
    .icon_list:focus,
    .icon_list:hover {
        overflow-y: auto
    }

    .icon_list .nav_bottom a:hover {
        background-color: transparent
    }

    .game_name_wrap a:hover {
        background-color: var(--bg-hover)
    }

    .game_name_wrap a:hover .gtt {
        text-decoration: underline
    }

    #game_help_popup button:hover {
        color: #555
    }

    #modal_inside.is_loader:hover,
    button.is_loader:hover,
    button.loading:hover {
        cursor: wait
    }
}

@media (hover:none) {
    #menu {
        overflow-y: scroll;
        z-index: 1000000
    }

    body.menuopen {
        overflow: hidden
    }
}

@media(max-width:1370px) {
    .icongrid_2.homepage_icons .tt7 {
        display: none
    }

    .icongrid_2 {
        grid-template-columns: repeat(6, 1fr)
    }

    .icongrid_2 .tt1 {
        grid-area: 1/1/2/2
    }

    .icongrid_2 .tt2 {
        grid-area: 1/2/2/3
    }

    .icongrid_2 .tt3 {
        grid-area: 1/3/2/4
    }

    .icongrid_2 .tt4 {
        grid-area: 1/4/2/5
    }

    .icongrid_2 .tt5 {
        grid-area: 1/5/2/6
    }

    .icongrid_2 .tt6 {
        grid-area: 1/6/2/7
    }

    .icongrid_2 .tt7 {
        grid-area: 2/1/3/2
    }

    .icongrid_2 .tt8 {
        grid-area: 2/2/3/3
    }

    .icongrid_2 .tt9 {
        grid-area: 2/3/3/4
    }

    .icongrid_2 .tt10 {
        grid-area: 2/4/3/5
    }

    .icongrid_2 .tt11 {
        grid-area: 2/5/3/6
    }

    .icongrid_2 .tt12 {
        grid-area: 2/6/3/7
    }

    .icongrid_2 .tt13 {
        grid-area: 3/1/4/2
    }

    .icongrid_2 .tt14 {
        grid-area: 3/2/4/3
    }

    .game_page_left {
        width: 100%
    }

    .ad300,
    .game_page_right {
        width: 200px
    }

    .game_page_right {
        display: none
    }

    .game_page_related .thumbWrapper {
        width: 100%;
        padding-bottom: calc(100% + 23px);
        margin: 0 0 10px
    }

    .ad300 {
        overflow: hidden
    }
}

@media(max-width:1080px) {
    .header_wrap.extrabtm {
        margin-bottom: 15px
    }

    .game_info {
        width: calc(100% - 30px);
        margin: 20px 0 0;
        padding: 20px;
        max-width: 100%
    }

    .game_info p,
    .game_info li {
        font-size: var(--font-size-base)
    }

     body.gamepagebod.gameisplaying #game_wrap.game {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-bottom: 15px;
        margin-top: 25px;
    }


    #game_wrap,
    #menu,
    #toggleFull,
    .game_info img,
    .game_top .rightbtns,
    .game_top_left img,
    .gameisplaying #menu.mobileshow,
    body.gameisplaying .header_left button,
    body.gameisplaying .breadcrumbs,
    body.gameisplaying #taponmobile,
    body.gameisplaying .game_bottom,
    body.gameisplaying .game_info,
    body.gameisplaying .game_page_right,
    body.gameisplaying .game_top_left,
    body.gameisplaying .rightbtns,
    body.gameisplaying .icongrid.icongrid_2.homepage_icons,
    body.gameisplaying .tabs-and-content-column,
    body.gameisplaying .hide_on_mobile
  /* , body.gameisplaying header*/ {
        display: none
    }

    #menu_modal,
    #taponmobile,
    .advertisment-mobile,
    .icongrid_2.homepage_icons .tt7,
    .icongrid_2.homepage_icons .tt8,
    body.gameisplaying #game_wrap,
    body.gameisplaying #game_help_popup,
    body.gameisplaying .game_top .rightbtns {
        display: block
    }

    body:not(.gameisplaying) #mobile_goback {
        display: none !important
    }
    body.gameisplaying #mobile_goback {
        display: flex !important
    }

    #awards_game_top,
    #leaderboard_game_top,
    body.gameisplaying #menu {
        display: none !important
    }

    body.gameisplaying #awards_game_top,
    body.gameisplaying #leaderboard_game_top {
        display: block !important;
        top: 10px
    }

    .game_page_related .thumbWrapper {
        width: calc(33.3% - 10px);
        padding-bottom: calc(33.3% + 13px);
        margin: 0 5px 10px
    }

    .game_top_left h1 {
        width: 100%;
        text-align: center;
        padding: 0;
        max-width: 100%
    }

    .game_page_right {
        display: none;
        width: 100%;
        margin: 0;
        padding: 0
    }

    .game_bottom {
        min-height: 48px;
        margin-top: 16px;
        padding: 12px 0;
        border-top: 1px solid var(--border);
        flex-wrap: wrap;
        gap: 10px
    }

    .game_bottom button.gamebtn {
        margin: 0
    }

    #dislikeGame,
    .puzzleshome.t4,
    .puzzleshome.t8 {
        margin-right: 0
    }

    .game_bottom .game_name_wrap {
        float: none
    }

    .game_name_wrap a {
        font-size: var(--font-size-sm);
        display: inline-flex
    }

    #game_help_popup {
        top: 12%;
        left: 10%;
        padding: 5px 10px 20px 20px;
        width: calc(80% - 30px);
        max-height: 84%
    }

    #menu.mobileshow {
        display: block;
        z-index: 1000000;
        background-color: var(--bg-secondary);
        width: 280px !important;
        padding-left: 8px;
        top: 64px
    }

    .icon_list.mobileshow .nav_bottom {
        display: block !important
    }

    .site_scrolled.wideopen {
        overflow: hidden
    }

    .active_bit,
    .icon_list a {
        width: calc(100% - 16px)
    }

    .site_scrolled,
    .site_scrolled.fullscreen,
    .site_scrolled.wideopen {
        width: calc(100% - 24px);
        padding-left: 12px;
        padding-right: 12px;
        position: relative;
        margin-left: 0
    }

    .puzzleshome {
        width: calc(25% - 10px);
        margin: 0 10px 15px 0
    }

    .puzzleshome.t10,
    .puzzleshome.t5 {
        margin-right: 10px
    }

    .header_left button {
        left: 5px
    }

    .header_left .logo {
        left: 60px
    }

    .game_info p,
    .game_page_left {
        width: 100%
    }

    body.gameisplaying {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        /* iPhone notch safe area */
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0)
    }

    body.gameisplaying .wrapper {
        height: 100%
    }
    body.gameisplaying .site_scrolled {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        /* margin-bottom: 20px; */
    }

    .game_top {
        height: 54px;
        margin-bottom: 0;
        padding: 0 8px
    }

    #game_wrap,
    .game {
        height: auto;
        bottom: 0;
        width: 100%;
        position: absolute
    }

    #toggleHelp {
        height: 44px;
        margin: 5px 8px 0 0;
        width: 130px
    }

    .game {
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        z-index: 100
    }

    #toggleHelp svg {
        left: 8px;
        top: 7px
    }

    #toggleHelp span {
        top: 6px;
        left: 35px
    }

    #game_loader,
    .game,
    .game iframe {
        border-radius: 0
    }

    .icongrid_2 {
        grid-template-columns: repeat(4, 1fr)
    }

    .icongrid_2 .tt1 {
        grid-area: 1/1/2/2
    }

    .icongrid_2 .tt2 {
        grid-area: 1/2/2/3
    }

    .icongrid_2 .tt3 {
        grid-area: 1/3/2/4
    }

    .icongrid_2 .tt4 {
        grid-area: 1/4/2/5
    }

    .icongrid_2 .tt5 {
        grid-area: 2/1/3/2
    }

    .icongrid_2 .tt6 {
        grid-area: 2/2/3/3
    }

    .icongrid_2 .tt7 {
        grid-area: 2/3/3/4
    }

    .icongrid_2 .tt8 {
        grid-area: 2/4/3/5
    }

    .icongrid_2 .tt9 {
        grid-area: 3/1/4/2
    }

    .icongrid_2 .tt10 {
        grid-area: 3/2/4/3
    }

    .icongrid_2 .tt11 {
        grid-area: 3/3/4/4
    }

    .icongrid_2 .tt12 {
        grid-area: 3/4/4/5
    }

    .icongrid_2 .tt13 {
        grid-area: 4/1/5/2
    }

    .icongrid_2 .tt14 {
        grid-area: 4/2/5/3
    }

    .icongrid_2 .tt15 {
        grid-area: 4/3/5/4
    }

    .icongrid_2 .tt16 {
        grid-area: 4/4/5/5
    }
}

@media(max-width:850px) {
    .header_center {
        display: none
    }

    ul.user_btns li.search {
        display: block
    }

    .popupbox.centered {
        width: 600px;
        height: 50%;
        top: 25%;
        left: calc(50% - 300px)
    }
}
 
@media(max-width:600px) {
   body .wrapper #mainsite .game_page_left .breadcrumbs {
        display: none
    }
    .header_wrap p {
        max-height: 24px;
        overflow-y: scroll
    }

    .game_page_related .thumbWrapper {
        width: calc(50% - 10px);
        padding-bottom: calc(50% + 13px);
        margin: 0 5px 10px
    }

    body.gamepagebod #awards_game_top,
    body.gamepagebod #leaderboard_game_top {
        top: 4px;
        height: 28px;
        width: 80px;
        left: calc(50% - 40px)
    }

    #game_loader .loading_skeleton {
        width: 240px;
        height: 160px;
        border-radius: 20px
    }
    #game_loader span {
        font-size: var(--font-size-lg)
    }

    body.gamepagebod #leaderboard_game_top {
        width: 114px;
        left: calc(50% - 57px)
    }

    #awards_game_top svg,
    #leaderboard_game_top svg {
        left: 6px;
        top: 5px
    }

    #awards_game_top span,
    #leaderboard_game_top span {
        top: 4px
    }

    #awards_game_top.extrapadt {
        left: calc(50% - 100px) !important
    }

    #leaderboard_game_top.extrapadt {
        left: calc(50% - 14px) !important
    }

    .popupbox.centered {
        width: calc(100% - 20px);
        height: 80%;
        top: 10%;
        left: 10px
    }

    .header_right {
        margin-right: 10px
    }

    ul.user_btns li {
        margin-right: 6px;
        min-width: 44px
    }

    .puzzleshome.t5 {
        margin-right: 10px
    }

    #game_help_popup {
        top: 1%;
        left: 4%;
        padding: 5px 10px 20px 20px;
        width: calc(92% - 30px);
        max-height: 95%;
        height: 95%
    }

    #toggleHelp span,
    ul.user_btns li.streak {
        display: none
    }

    ul.user_btns .streakbit {
        display: block
    }

    .headerlogin {
        text-indent: -99999px;
        min-width: 48px;
        width: 48px;
        padding: 0;
        height: 48px
    }

    .headerlogin::before {
        top: 15px;
        left: 15px
    }

    .game_top {
        height: 6px
    }

    .game {
        top: 36px
    }

    #toggleHelp {
        height: 44px;
        margin: 2px 3px 0 0;
        width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center
    }

    #toggleHelp svg {
        position: static;
        width: 24px;
        height: 24px
    }

    #mobile_goback {
        top: 6px;
        left: 4px;
        height: 44px;
        width: 48px;
        display: flex;
        align-items: center;
        z-index: 100000;
        justify-content: center
    }

    .puzzleshome {
        width: calc(50% - 10px);
        height: 260px;
        margin: 0 10px 15px 0
    }

    .puzzleshome a.puzzletop {
        padding-top: 16px
    }

    .puzzleshome a.puzzletop span {
        font-size: var(--font-size-lg);
        padding-top: 14px
    }

    .puzzleshome.t10,
    .puzzleshome.t12,
    .puzzleshome.t2,
    .puzzleshome.t4,
    .puzzleshome.t6,
    .puzzleshome.t8 {
        margin-right: 0
    }

    .icongrid {
        grid-column-gap: 10px;
        grid-row-gap: 10px
    }

    .icongrid_2,
    .icongrid_3 {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 10px
    }

    .icongrid_2 .tt1 {
        grid-area: 1/1/2/2
    }

    .icongrid_2 .tt2 {
        grid-area: 1/2/2/3
    }

    .icongrid_2 .tt3 {
        grid-area: 2/1/3/2
    }

    .icongrid_2 .tt4 {
        grid-area: 2/2/3/3
    }

    .icongrid_2 .tt5 {
        grid-area: 3/1/4/2
    }

    .icongrid_2 .tt6 {
        grid-area: 3/2/4/3
    }

    .icongrid_2 .tt7 {
        grid-area: 4/1/5/2
    }

    .icongrid_2 .tt8 {
        grid-area: 4/2/5/3
    }

    .icongrid_2 .tt9 {
        grid-area: 5/1/6/2
    }

    .icongrid_2 .tt10 {
        grid-area: 5/2/6/3
    }

    .icongrid_2 .tt11 {
        grid-area: 6/1/7/2
    }

    .icongrid_2 .tt12 {
        grid-area: 6/2/7/3
    }

    .icongrid_2 .tt13 {
        grid-area: 7/1/8/2
    }

    .icongrid_2 .tt14 {
        grid-area: 7/2/8/3
    }

    .icongrid_2 .tt15 {
        grid-area: 8/1/9/2
    }

    .icongrid_2 .tt16 {
        grid-area: 8/2/9/3
    }

    .game_info {
        width: 100%;
        padding: 20px 0;
        margin: 0
    }

    .game_info p,
    .game_info li {
        font-size: var(--font-size-base);
        line-height: 1.7
    }

    .game_bottom {
        padding: 12px 0;
        margin-top: 12px;
        min-height: auto;
        gap: 8px
    }

    button.gamebtn {
        min-width: 44px;
        min-height: 44px
    }

}

@media only screen and (max-width:1024px) and (max-height:500px) and (orientation:landscape) {
    .game_top {
        height: 31px
    }

    .game {
        top: 31px
    }

    #toggleHelp {
        height: 24px;
        margin: 3px 3px 0 0;
        width: 112px
    }

    #toggleHelp svg {
        left: 5px;
        top: 3px
    }

    #toggleHelp span {
        top: 2px;
        left: 31px;
        font-size: 13px
    }

    #mobile_goback {
        top: 6px;
        left: 6px;
        height: 40px;
        width: 40px;
        border-radius: 8px
    }

    body.gamepagebod #awards_game_top,
    body.gamepagebod #leaderboard_game_top {
        top: 2px;
        height: 28px;
        width: 80px
    }

    body.gamepagebod #leaderboard_game_top {
        width: 114px
    }

    #awards_game_top svg,
    #leaderboard_game_top svg {
        left: 6px;
        top: 5px
    }

    #awards_game_top span,
    #leaderboard_game_top span {
        top: 4px
    }

    #awards_game_top.extrapadt {
        left: calc(50% - 100px)
    }

    #leaderboard_game_top.extrapadt {
        left: calc(50% - 10px)
    }

    .popupbox.centered {
        width: calc(100% - 20px);
        height: 80%;
        top: 10%;
        left: 10px
    }

    .popupbox .inside {
        padding: 30px 40px;
        height: calc(100% - 80px)
    }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    float: left;
    clear: both;
    width: 100%;
    padding: 12px 0 6px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px
}
.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 4px;
    transition: color .2s
}
.breadcrumbs a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px
}
.breadcrumbs .sep {
    color: var(--text-muted);
    padding: 0 2px;
    font-size: 18px
}
.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500
}

/* ===== Back to Top ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--cta-bg);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .3s, visibility .3s, transform .3s, background-color .2s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    -webkit-tap-highlight-color: transparent
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}
#backToTop:hover {
    background-color: var(--cta-hover)
}
#backToTop svg {
    width: 26px;
    height: 26px
}
#backToTop svg path {
    fill: #fff
}

/* ===== Search Results Dropdown ===== */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3)
}
.sr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border);
    transition: background-color .15s;
    cursor: pointer
}
.sr-item:last-child { border-bottom: none }
.sr-item:hover { background-color: var(--bg-hover) }
.sr-item img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0
}
.sr-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}
.sr-empty {
    justify-content: center;
    color: var(--text-muted);
    padding: 20px 16px;
    cursor: default
}
.sr-empty:hover { background-color: transparent }

/* ===== Header Center (Search) ===== */
.header_center {
    float: left;
    width: 280px;
    height: 64px;
    display: flex;
    align-items: center;
    margin-left: 15px
}
@media (max-width: 1080px) {
    .header_center {
        display: none
    }
}

/* ===== Font Sizer ===== */
#fontSizer {
    cursor: pointer;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color .2s
}
#fontSizer:hover {
    background-color: var(--bg-hover)
}
#fontSizer svg {
    width: 26px;
    height: 26px
}

/* ===== Favorite Button ===== */
#favoriteBtn svg path {
    fill: var(--text-muted);
    transition: fill .2s
}
#favoriteBtn.is-faved svg path {
    fill: #ef4444
}
#favoriteBtn:hover svg path {
    fill: var(--accent)
}
#favoriteBtn.is-faved:hover svg path {
    fill: #dc2626
}
#fontSizer svg path {
    fill: var(--text-primary)
}
header button .menu-icon path {
    fill: var(--text-primary)
}

/* ===== Theme Toggle ===== */
#themeToggle {
    cursor: pointer;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color .2s
}
#themeToggle:hover {
    background-color: var(--bg-hover)
}
#themeToggle svg {
    width: 26px;
    height: 26px;
    transition: opacity .2s
}
#themeToggle .icon-sun path {
    fill: var(--accent)
}
#themeToggle .icon-moon path {
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 2
}
#themeToggle .icon-moon {
    display: none
}
.theme-light #themeToggle .icon-sun,
html.theme-light #themeToggle .icon-sun {
    display: none
}
.theme-light #themeToggle .icon-moon,
html.theme-light #themeToggle .icon-moon {
    display: block
}

/* ===== Font Large Mode ===== */
body.font-large {
    --font-size-base: 22px;
    --font-size-sm: 20px;
    --font-size-lg: 28px;
    --font-size-xl: 34px;
    --font-size-h1: 36px;
    --font-size-h2: 30px
}

/* ===== Lazy Load Image Fade-in ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity .4s ease
}
img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1
}
   .sb-share-btn {
            min-width: 48px;
            min-height: 48px;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            position: relative;
            color: var(--text-primary);
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0 12px;
            transition: background-color .2s;
            font-size: 20px;
            gap: 4px
        }

        .sb-share-btn:hover {
            background-color: var(--bg-hover);
        }

        .sb-share-btn i {
            margin-right: 2px;
        }


        .sb-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .sb-popup-overlay.sb-visible {
            opacity: 1;
            visibility: visible;
        }

        .sb-popup-content {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            border-radius: 12px;
            padding: 24px;
            width: 90%;
            max-width: 400px;
            transform: scale(0.95);
            transition: transform 0.3s ease;
            position: relative;
            border: 1px solid var(--border);
        }

        .sb-popup-overlay.sb-visible .sb-popup-content {
            transform: scale(1);
        }

        .sb-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 18px;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .sb-close-btn:hover {
            color: var(--text-primary);
        }

        .sb-popup-title {
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            margin: 0 0 24px 0;
        }

        .sb-social-icons {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-bottom: 24px;
        }

        .sb-social-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .sb-social-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        }

        .sb-social-icon i {
            font-size: 24px;
            color: white;
        }

        .sb-facebook {
            background-color: #1877f2;
        }

        .sb-twitter {
            background-color: #1da1f2;
        }

        .sb-whatsapp {
            background-color: #25d366;
        }

        .sb-linkedin {
            background-color: #0a66c2;
        }

        .sb-reddit {
            background-color: #ff4500;
        }

        .sb-link-container {
            display: flex;
            background-color: var(--bg-primary);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .sb-share-link {
            flex: 1;
            padding: 12px;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: var(--font-size-sm);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sb-copy-btn {
            background-color: var(--cta-bg);
            color: #fff;
            border: none;
            padding: 0 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .sb-copy-btn:hover {
            background-color: var(--cta-hover);
        }

        .sb-copy-btn.sb-copied {
            background-color: var(--success);
        }