.gp,
.gp * {
    box-sizing: border-box;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, .6);
    display: none;
}

.overlay.loading {
    display: block;
}

.overlay .loading-text {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    margin-top: -16px;
    font-size: 32px;
    height: 32px;
    animation: flash .8s ease-in-out infinite;
}

@keyframes flash {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.gp-tool-box {
    position: fixed;
    top: 5px;
    left: 5px;
    width: 180px;
    height: 120px;
    z-index: 101;
}

.gp-tool-box > .gp-tool-box-body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    border: solid 1px #333;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0, 0, 0, .8);
    background-color: rgba(200, 200, 200, .9);
    padding-top: 1px;
}

.gp-tool-box > .gp-tool-box-body > button {
    display: block;
    padding: 4px 0;
    border-radius: 3px;
    background-color: #fff;
    border: solid 1px #000;
    margin: 2px auto;
    width: 172px;
    font-size: 10px;
    text-align: center;
}

.gp-tool-box > .gp-tool-box-body > button:hover {
    background-color: #eee;
}

.gp-tool-box > .gp-tool-box-body > button:disabled {
    background-color: #888;
}

.gp-tool-box:hover > .gp-tool-box-body {
    display: block;
}

.gp-player-table {
    margin: 0 auto;
    width: 1320px;
}

.gp-player-table > .gp-player {
    position: relative;
    width: 1320px;
    height: 170px;
    border-bottom: solid 1px #888;
    margin-bottom: 10px;
}

.gp-player-table > .gp-player > .gp-player-close-button-box {
    position: absolute;
    top: 5px;
    right: -40px;
    width: 30px;
    height: 150px;
    line-height: 150px;
}

.gp-player-table > .gp-player > .gp-player-close-button-box > .gp-player-close-button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    border: solid 1px #000;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.gp-player-table > .gp-player > .gp-player-close-button-box:hover > .gp-player-close-button {
    display: block;
}

.gp-player-table > .gp-player > .gp-player-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 160px;
}

.gp-player-table > .gp-player > .gp-player-body > .gp-player-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    cursor: n-resize;
}

.gp-player-table > .gp-player > .gp-player-body > .gp-player-name {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    cursor: s-resize;
}

.gp-player-table > .gp-player > .gp-unit-table {
    position: absolute;
    top: 0;
    left: 120px;
    width: 1200px;
    height: 160px;
}

.gp-player-table > .gp-player > .gp-unit-table::after {
    content: '';
    display: block;
    clear: both;
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit {
    float: left;
    position: relative;
    width: 120px;
    height: 160px;
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit.gp-unit-used5::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .6);
    z-index: 21;
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-unit-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    z-index: 11;
    cursor: pointer;
    border-radius: 7px;
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-unit-image:hover {
    outline: solid 2px rgba(0, 0, 0, .5);
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-unit-count {
    position: absolute;
    right: 9px;
    bottom: 48px;
    text-align: right;
    padding: 3px 4px 1px;
    border-radius: 5px;
    color: #222;
    font-weight: bold;
    background-color: rgba(255, 255, 255, .8);
    z-index: 22;
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-unit-count.count3 {
    background-color: rgba(255, 255, 0, .8);
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-unit-count.count4 {
    background-color: rgba(255, 0, 0, .8);
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-equipment-image {
    display: block;
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    outline: solid 1px #333;
    z-index: 12;
    cursor: pointer;
}

.gp-player-table > .gp-player > .gp-unit-table > .gp-unit > .gp-equipment-image:hover {
    outline: solid 2px rgba(0, 0, 0, .5);
}

.gp-unit > .gp-equipment-image:nth-child(2) {
    left: 0;
}

.gp-unit > .gp-equipment-image:nth-child(3) {
    left: 40px;
}

.gp-unit > .gp-equipment-image:nth-child(4) {
    left: 80px;
}

.gp-unit > .gp-equipment-image.gp-equipment-type1 {
    background-color: #f5cccc;
}

.gp-unit > .gp-equipment-image.gp-equipment-type2 {
    background-color: #d9d2ea;
}

.gp-unit > .gp-equipment-image.gp-equipment-type3 {
    background-color: #cee2f4;
}

.gp-unit > .gp-equipment-image.gp-equipment-type4 {
    background-color: #d9ebd2;
}

.gp-unit > .gp-equipment-image.gp-equipment-type5 {
    background-color: #fff3ca;
}

.gp-tournament {
    position: relative;
    margin: 20px auto;
    width: 2000px;
    height: 1000px;
    background-repeat: no-repeat;
    background-position: center 300px, center 40px;
    background-size: auto 80px, auto 180px;
}

.gp-tournament > .gp-tournament-tree {
    position: absolute;
    width: 260px;
}

.gp-tournament > .gp-tournament-tree.round1 {
    height: 240px;
}

.gp-tournament > .gp-tournament-tree.round2 {
    height: 360px;
}

.gp-tournament > .gp-tournament-tree.round3 {
    height: 600px;
}

.gp-tournament > .gp-tournament-tree.round4 {
    height: 120px;
}

.gp-tournament > .gp-tournament-tree.left-block.round1 {
    left: 0;
}

.gp-tournament > .gp-tournament-tree.right-block.round1 {
    right: 0;
}

.gp-tournament > .gp-tournament-tree.left-block.round2 {
    left: 260px;
}

.gp-tournament > .gp-tournament-tree.right-block.round2 {
    right: 260px;
}

.gp-tournament > .gp-tournament-tree.left-block.round3 {
    left: 520px;
}

.gp-tournament > .gp-tournament-tree.right-block.round3 {
    right: 520px;
}

.gp-tournament > .gp-tournament-tree > .video-link {
    position: absolute;
    top: 50%;
    color: #f00;
    zoom: 2;
}

.gp-tournament > .gp-tournament-tree.left-block.round1 > .video-link {
    left: 59px;
}

.gp-tournament > .gp-tournament-tree.right-block.round1 > .video-link {
    right: 59px;
}

.gp-tournament > .gp-tournament-tree.left-block.round2 > .video-link {
    left: 41px;
}

.gp-tournament > .gp-tournament-tree.right-block.round2 > .video-link {
    right: 41px;
}

.gp-tournament > .gp-tournament-tree.left-block.round3 > .video-link {
    left: 41px;
}

.gp-tournament > .gp-tournament-tree.right-block.round3 > .video-link {
    right: 41px;
}

.gp-tournament > .gp-tournament-tree.center-block > .video-link {
    left: 102px;
}

.gp-tournament > .gp-tournament-tree.round1 > .video-link {
    margin-top: -14px;
    zoom: 1.5;
}

.gp-tournament > .gp-tournament-tree.round2 > .video-link {
    margin-top: 10px;
}

.gp-tournament > .gp-tournament-tree.left-block.round1.index-of-block-round1,
.gp-tournament > .gp-tournament-tree.right-block.round1.index-of-block-round1 {
    top: 0;
}

.gp-tournament > .gp-tournament-tree.left-block.round1.index-of-block-round2,
.gp-tournament > .gp-tournament-tree.right-block.round1.index-of-block-round2 {
    top: 240px;
}

.gp-tournament > .gp-tournament-tree.left-block.round1.index-of-block-round3,
.gp-tournament > .gp-tournament-tree.right-block.round1.index-of-block-round3 {
    top: 480px;
}

.gp-tournament > .gp-tournament-tree.left-block.round1.index-of-block-round4,
.gp-tournament > .gp-tournament-tree.right-block.round1.index-of-block-round4 {
    top: 720px;
}

.gp-tournament > .gp-tournament-tree.left-block.round2.index-of-block-round1,
.gp-tournament > .gp-tournament-tree.right-block.round2.index-of-block-round1 {
    top: 60px;
}

.gp-tournament > .gp-tournament-tree.left-block.round2.index-of-block-round2,
.gp-tournament > .gp-tournament-tree.right-block.round2.index-of-block-round2 {
    top: 540px;
}

.gp-tournament > .gp-tournament-tree.left-block.round3.index-of-block-round1,
.gp-tournament > .gp-tournament-tree.right-block.round3.index-of-block-round1 {
    top: 180px;
}

.gp-tournament > .gp-tournament-tree.center-block.round4.index-of-block-round1 {
    top: 420px;
    left: 780px;
    right: 780px;
    width: auto;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player {
    position: absolute;
    width: 200px;
    height: 120px;
}

.gp-tournament > .gp-tournament-tree.gp-tournament-result2 > .gp-tournament-player:nth-child(1) > .gp-tournament-player-body {
    opacity: .25;
}

.gp-tournament > .gp-tournament-tree.gp-tournament-result1 > .gp-tournament-player:nth-child(2) > .gp-tournament-player-body {
    opacity: .25;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-player {
    right: 0;
}

.gp-tournament > .gp-tournament-tree.left-block > .gp-tournament-player {
    left: 0;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-player {
    right: 0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player:nth-child(1) {
    top: 0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player:nth-child(2) {
    bottom: 0;
}

.gp-tournament > .gp-tournament-tree.center-block > .gp-tournament-player:nth-child(1) {
    left: 0;
}

.gp-tournament > .gp-tournament-tree.center-block > .gp-tournament-player:nth-child(2) {
    right: 0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-player-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 40px;
    background-color: #ccc;
    cursor: pointer;
}

.gp-tournament > .gp-tournament-tree.active > .gp-tournament-player > .gp-tournament-player-body {
    background-color: #da0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-name {
    position: absolute;
    top: 0;
    right: 40px;
    bottom: 0;
    left: 40px;
    line-height: 40px;
    font-size: 12px;
    font-weight: bold;
}

.gp-tournament > .gp-tournament-tree.left-block > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-name {
    text-align: left;
    padding-left: 3px;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-name {
    text-align: right;
    padding-right: 3px;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-image {
    display: block;
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
}

.gp-tournament > .gp-tournament-tree.left-block > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-image {
    left: 0;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-image {
    right: 0;
}

.gp-tournament > .gp-tournament-tree.center-block > .gp-tournament-player:nth-child(2) > .gp-tournament-player-body > .gp-tournament-player-image {
    right: 0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-wins {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #ddd;
}

.gp-tournament > .gp-tournament-tree.active > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-wins {
    background-color: #eecc50;
}

.gp-tournament > .gp-tournament-tree.left-block > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-wins {
    right: 0;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-player > .gp-tournament-player-body > .gp-tournament-player-wins {
    left: 0;
}

.gp-tournament > .gp-tournament-tree.center-block > .gp-tournament-player:nth-child(2) > .gp-tournament-player-body > .gp-tournament-player-wins {
    left: 0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table {
    position: absolute;
    width: 200px;
    height: 50px;
}

.gp-tournament > .gp-tournament-tree.round1 > .gp-tournament-player > .gp-tournament-unit-table {
    transform-origin: top center;
    transform: scale(.4);
}

.gp-tournament > .gp-tournament-tree.left-block > .gp-tournament-player > .gp-tournament-unit-table {
    right: 0;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-player > .gp-tournament-unit-table {
    left: 0;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table.gp-tournament-round-result0 {
    opacity: .25;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table:nth-child(2) {
    top: 40px;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table:nth-child(3) {
    top: 90px;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table:nth-child(4) {
    top: 140px;
}

.gp-tournament > .gp-tournament-tree.round1 > .gp-tournament-player > .gp-tournament-unit-table:nth-child(3) {
    top: 60px;
}

.gp-tournament > .gp-tournament-tree.round1 > .gp-tournament-player > .gp-tournament-unit-table:nth-child(4) {
    top: 80px;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table::after {
    content: '';
    display: block;
    clear: both;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table > .gp-tournament-unit {
    float: left;
    width: 50px;
    height: 50px;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-player > .gp-tournament-unit-table > .gp-tournament-unit > .gp-tournament-unit-image {
    display: block;
    width: 50px;
    height: 50px;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-lines {
    position: absolute;
    width: 60px;
    top: 20px;
    bottom: 100px;
}

.gp-tournament > .gp-tournament-tree.left-block > .gp-tournament-lines {
    right: 0;
}

.gp-tournament > .gp-tournament-tree.right-block > .gp-tournament-lines {
    left: 0;
    transform: scaleX(-1);
}

.gp-tournament > .gp-tournament-tree.center-block > .gp-tournament-lines {
    display: none;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-top-left,
.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-top-right,
.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-bottom-left,
.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-bottom-right {
    position: absolute;
    width: 50%;
    height: 50%;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-top-left {
    top: 0;
    left: 0;
    border-top: solid 2px #000;
    border-right: solid 2px #000;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-top-right {
    top: 0;
    right: 0;
    border-bottom: solid 1px #000;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: solid 2px #000;
    border-right: solid 2px #000;
}

.gp-tournament > .gp-tournament-tree > .gp-tournament-lines > .gp-tournament-line-bottom-right {
    bottom: 0;
    right: 0;
    border-top: solid 1px #000;
}

.gp-tournament > .gp-tournament-tree.gp-tournament-result0 > .gp-tournament-lines > .gp-tournament-line-top-left,
.gp-tournament > .gp-tournament-tree.gp-tournament-result0 > .gp-tournament-lines > .gp-tournament-line-top-right,
.gp-tournament > .gp-tournament-tree.gp-tournament-result0 > .gp-tournament-lines > .gp-tournament-line-bottom-left,
.gp-tournament > .gp-tournament-tree.gp-tournament-result0 > .gp-tournament-lines > .gp-tournament-line-bottom-right {
    opacity: .1;
}

.gp-tournament > .gp-tournament-tree.gp-tournament-result2 > .gp-tournament-lines > .gp-tournament-line-top-left {
    opacity: .1;
}

.gp-tournament > .gp-tournament-tree.gp-tournament-result1 > .gp-tournament-lines > .gp-tournament-line-bottom-left {
    opacity: .1;
}

.gp-modal {
    position: fixed;
    top: 20px;
    left: 50%;
    margin-left: -700px;
    width: 1400px;
    height: 960px;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .8);
    overflow: hidden;
    border-radius: 4px;
}

.gp-modal.gp-modal-small {
    height: 390px;
}

.gp-modal > .gp-modal-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #5f6368;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .3);
    z-index: 200;
}

.gp-modal > .gp-modal-head > .gp-modal-close-button {
    display: inline-block;
    width: 20px;
    text-align: center;
    background-color: #646468;
    cursor: pointer;
    border-radius: 4px;
}

.gp-modal > .gp-modal-body {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: scroll;
    padding: 5px 0;
}

.gp-modal > .gp-modal-body::-webkit-scrollbar {
    display: none;
}

.gp-statistics {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    background-color: rgba(0, 0, 0, .6);
}

.gp-statistics > .gp-popular-items {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #fff;
    width: 300px;
    border-radius: 4px;
    padding: 5px 0;
}

.gp-statistics > .gp-popular-items:nth-child(1) {
    margin-left: -450px;
}

.gp-statistics > .gp-popular-items:nth-child(2) {
    margin-left: 150px;
}

.gp-statistics > .gp-popular-items > .gp-popular-item {
    position: relative;
    margin: 10px 0 15px;
    width: 300px;
    height: 150px;
}

.gp-statistics > .gp-popular-items > .gp-popular-item > .gp-popular-item-image {
    position: absolute;
    top: 0;
    left: 30px;
    display: block;
    width: 120px;
    height: 120px;
}

.gp-statistics > .gp-popular-items > .gp-popular-item > .gp-popular-item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    line-height: 25px;
    padding-left: 20px;
    background-color: #ccc;
    font-weight: bold;
    overflow: hidden;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, .5);
}

.gp-statistics > .gp-popular-items > .gp-popular-item > .gp-popular-item-count {
    position: absolute;
    top: 46px;
    left: 165px;
    height: 30px;
    line-height: 28px;
    font-weight: bold;
    border: solid 1px #666;
    border-radius: 15px;
    padding: 0 10px;
    overflow: hidden;
    min-width: 110px;
    background-color: #ffffd0;
    box-shadow: 0 0 1px rgba(0, 0, 0, .5);
}
