html {
    height: 100%;
    width: 100%;
}

:root {
    --xxk-bg: none;
    --xxk-zan-bg: none;
    --share-weibo-icon: none;
    --share-twitter-icon: none;
    --share-facebook-icon: none;
    --share-wechat-icon: none;
}

body {
    margin: 0;
    font-size: clamp(14px, 2vw, 22px);
    background: var(--xxk-bg) repeat 0 0 #f2ecda;
    height: 100%;
    overflow: hidden;
    min-height: 100vh;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page {
    width: 100%;
    max-width: clamp(340px, 94vw, 720px);
    margin: 0 auto;
}

.text {
    padding: 10px 0 10px 20px;
    font-size: clamp(13px, 2.2vw, 20px);
}

.GameStage {
    position: relative;
    border: 1px solid #fff;
    border-width: 1px 4px 4px 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.GameStage div {
    font-size: clamp(14px, 2vw, 24px);
    width: 59px;
    height: 59px;
    line-height: 59px;
    border: clamp(1px, 0.2vw, 2px) solid #fff;
    text-align: center;
    position: absolute;
    cursor: pointer;
    background-size: 100% !important;
}

.GameStage .block_1 {
    background: #f44e4e;
}

.GameStage .block_2 {
    background: #28abef;
}

.GameStage .block_3 {
    background: #f1a30c;
}

.GameStage .block_4 {
    background: #b1ca24;
}

.GameStage .block_5 {
    background: #b854e6;
}

.GameStage div.selected {
    opacity: 0.6;
    border-color: #333;
}

.GameStage div.remove {
    background: #fff;
    background: -webkit-gradient(linear, left top, right bottom, from(#fff), to(#ccc));
    color: #333;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(14px, 2.4vw, 28px);
    margin: clamp(6px, 1.2vw, 10px) auto clamp(12px, 2vw, 32px) auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    min-width: 0;
    flex: 1 1 62%;
    max-width: 62%;
}

.logo .title {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: #a2811e;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 100%;
}

html:not([lang^="zh"]) .logo .title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo .slogan {
    font-size: clamp(14px, 2.4vw, 20px);
    color: #b3953c;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 100%;
}

.header .text {
    margin-left: auto;
    padding: 0 0;
    text-align: right;
    min-width: 0;
    flex: 0 1 38%;
    max-width: 38%;
}

#targetScore {
    font-size: clamp(14px, 1.8vw, 22px);
    color: #a2811e;
    line-height: clamp(20px, 2.6vw, 34px);
    padding: clamp(6px, 0.9vw, 10px) 2px clamp(4px, 0.8vw, 8px) 0;
    border-bottom: 3px solid #cbb77d;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

#targetScore span {
    color: #ff6c00;
    font-weight: bold;
}

@-webkit-keyframes scoreFlash {
    0% {
        background: #ffad2c
    }

    100% {
        background: #f00
    }
}

@keyframes scoreFlash {
    0% {
        background: #ffad2c
    }

    100% {
        background: #f00
    }
}

.scoreFlash {
    -webkit-animation: scoreFlash 0.3s linear 0s infinite alternate;
    animation: scoreFlash 0.3s linear 0s infinite alternate;
}

#score {
    font-size: clamp(14px, 1.8vw, 22px);
    color: #a2811e;
    line-height: clamp(20px, 2.6vw, 34px);
    padding: 8px 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.xxk-fit-text {
    display: inline-block;
    white-space: nowrap;
    transform-origin: left center;
}

.btns {
    margin: clamp(8px, 3vw, 28px) auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 4.5vw, 32px);
    flex-wrap: nowrap;
}

.btn {
    font-size: clamp(18px, 5vw, 32px);
    text-decoration: none;
    color: #ff6c00;
    padding: clamp(5px, 1vw, 8px) clamp(16px, 3vw, 32px);
    border-radius: clamp(18px, 3vw, 28px);
    border: 3px solid #ff6c00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.btn2 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 600;
    padding: clamp(8px, 1.5vw, 12px) clamp(36px, 6vw, 64px);
}
.btn3 {
    border-radius: clamp(18px, 3vw, 28px);
    border: 3px solid #ff6c00;
    border-color: rgba(102, 152, 97, .9);
    color: #666;
    position: relative;
    padding: clamp(8px, 2.2vw, 12px) clamp(14px, 2.2vw, 18px);
    margin-bottom: clamp(8px, 2vw, 12px);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: btnRipple 600ms ease-out;
}

@keyframes btnRipple {
    0% {
        transform: scale(0);
        opacity: 0.75;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.memo {
    font-size: clamp(14px, 4vw, 20px);
    color: #a2811e;
    font-weight: 300;
    margin: clamp(8px, 3vw, 20px) auto;
}

.moreGame {
    color: #a2811e;
    padding: 0 0 clamp(12px, 2vw, 32px) 0;
    font-family: "Arial";
}

.moreGame a:link,
.moreGame a:visited {
    color: #a2811e;
}

.moreGame a:hover {
    color: #a2811e;
}

.moreGame h2 {
    font-size: clamp(18px, 2.4vw, 34px);
    padding: 0;
    margin: 0;
    line-height: clamp(26px, 3vw, 48px);
    padding-left: 20px;
}

.moreGame .gameItem {
    height: clamp(52px, 7vw, 88px);
    padding-left: 28px;
    overflow: hidden;
}

.moreGame .i_icon {
    float: left;
    width: clamp(56px, 8vw, 104px);
}

.moreGame .i_name {
    float: left;
    width: clamp(210px, 38vw, 460px);
    line-height: clamp(52px, 7vw, 88px);
    font-size: clamp(16px, 2.4vw, 34px);
}

@-webkit-keyframes shareLayerShow {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes shareLayerShow {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes xxkCopySuccess {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.06);
        filter: brightness(1.35);
    }
}

@keyframes xxkCopyFail {
    0% {
        background-color: rgba(102, 152, 97, .45);
    }
    100% {
        background-color: rgba(214, 69, 69, .75);
    }
}

#shareLayer {
    background: #000;
    opacity: .9;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: none;
    -webkit-animation: shareLayerShow 0.3s linear 0s 1;
    animation: shareLayerShow 0.3s linear 0s 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
    padding: clamp(16px, 3vw, 32px);
    box-sizing: border-box;
}

#shareLayer .result,
#shareLayer .btn {
    align-self: center;
}

#shareLayer .wx-share-tip {
    position: absolute;
    top: clamp(12px, 3vw, 20px);
    right: clamp(12px, 3vw, 20px);
    max-width: min(90vw, 360px);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: clamp(12px, 3.2vmin, 14px);
    line-height: 1.3;
    text-align: center;
    z-index: 2;
    display: none;
}

.shareText {
    text-align: center;
    font-size: clamp(14px, 1.8vw, 22px);
    color: #fff;
    position: absolute;
    top: clamp(72px, 12vw, 208px);
    right: clamp(28px, 5vw, 96px);
}

#shareLayer .result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
    width: min(90vw, 560px);
    padding:0 0 clamp(48px, 12vw, 72px) 0;
}

#shareLayer .zan {
    width: clamp(60px, 9vw, 126px);
    height: clamp(70px, 11vw, 142px);
    background: var(--xxk-zan-bg) no-repeat 0 0;
    background-size: 100% 100%;
}

#shareLayer .gameText {
    font-size: clamp(16px, 2.8vw, 36px);
    color: #fff;
    line-height: 1.6;
    text-align: left;
    max-width: min(70vw, 420px);
}

.gr-text {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(35%, -100%);
    padding: 2px 8px;
    line-height: 1.05;
    font-size: clamp(12px, 3.2vmin, 14px);
    background: rgba(102, 152, 97, .9);
    color: #fff;
    border-radius: 12px 12px 0 0;
    pointer-events: none;
    z-index: 1;
}

#btnShareTo {
    display: flex;
    gap: clamp(4px, 1.2vmin, 6px);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gr-btn-shareTo {
    font-size: clamp(12px, 3.8vmin, 14px);
    padding: 4px clamp(8px, 2.5vmin, 12px);
    border-radius: 999px;
    border: 0;
    background: rgba(102, 152, 97, .45);
    color: rgba(255, 255, 255, .95);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

#btnShareWeibo,
#btnShareTwitter,
#btnShareFacebook,
#btnShareWechat {
    width: clamp(28px, 8vmin, 42px);
    height: clamp(28px, 8vmin, 42px);
    padding: 0;
    font-size: 0;
    color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
}

#btnShareWeibo {
    background-image: var(--share-weibo-icon);
}

#btnShareTwitter {
    background-image: var(--share-twitter-icon);
}

#btnShareFacebook {
    background-image: var(--share-facebook-icon);
}

#btnShareWechat {
    background-image: var(--share-wechat-icon);
}

#btnShareCopy.is-copy-success {
    animation: xxkCopySuccess 200ms ease-in-out 4 alternate;
}

#btnShareCopy.is-copy-fail {
    animation: xxkCopyFail 200ms ease-in-out 4 alternate;
}