



#domino {
    /*padding: 20px;*/
    /*background: #0d1526;*/
    /*border-radius: 12px;*/
    /*color: white;*/
    text-align: center;

}

/*.game-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}*/

.domino-badge {
    background: #1e2b47;
    /*padding: 8px 12px;*/
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.game-table {
    /*position: relative;*/
    /*height: 800px;*/
    /*height: 737px;*/
    /*height: 775px;*/
    /*height: 815px;*/
    /*background: radial-gradient(circle, #195ccf 0%, #0a0f1a 100%);*/
    /*border-radius: 20px;*/
    /*overflow: hidden;*/
    /*overflow-y: auto;*/
}

.table-center {
    /*position: absolute;*/
/*    top: 50%;
    left: 50%;*/
    /*transform: translate(-50%, -50%);*/
}

.table-label {
    font-size: 24px;
    font-weight: bold;
    color: gold;
    margin-bottom: 8px;
}

.table-hexagon {
    width: 140px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    margin: 0 auto;
}

.player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
}
#player_1,
#player_2,
#player_3,
#player_4 {
    z-index: 11;
}

.player img {
/*    width: 60px;
    height: 60px;*/
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*border: 2px solid #4caf50;*/
    /*border: 1px solid #555;*/
    border: 1px solid #333;
    /*box-shadow: 0 0 6px #000;*/
    /*background-color: #fff;*/
    /*padding: 10px;*/
}

.player span {
    margin-top: 4px;
    color: #fff;
}

.player span small {
    display: block;
    color: #aaa;
    font-size: 10px;
}

.top-left, .top-right {
    top: 70px;
}
.bottom-left, .bottom-right {
    bottom: 220px;
}

.top-left, .bottom-left {
    left: 30px;
}

.top-right, .bottom-right {
    right: 30px;
}

#table {
    padding: 20px;
    /*background-color: #f4f8fc;*/
    /*border-radius: 12px;*/
    max-width: 500px;
    margin: 0 auto;
    color: #333;
}

#table-select {
    padding: 1px 20px 0px 20px;
    background-color: #f4f8fc;
    border-radius: 12px;
    width: 100%;
    margin: 0 auto;
    color: #333;
}

#table h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #195ccf;
}

#table .tables {
    display: flex;
    gap: 12px;
    /*margin-bottom: 20px;*/
}

#table .table {
    flex: 1;
    background: #d9eaff;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, background 0.3s ease;
}

#table .table:hover {
    transform: scale(1.02);
}

#table .table.selected {
    background: linear-gradient(135deg, #42d392, #4ca9ff);
    color: white;
    font-weight: bold;
}

#table .table strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

#table .table span {
    font-size: 14px;
    opacity: 0.9;
}

#table .details {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

#table .details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #195ccf;
}

#table .details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

#table .details td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#table .play-btn {
    width: 100%;
    padding: 12px;
    background: #42d392;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#table .play-btn:hover {
    background: #36b87c;
}

#player-hand {
    background-color: #111a2f;
    background: rgba(0,0,0,0.8);
    position: fixed;
    z-index: 5;

    bottom: 50px;
    left: 0;

    width: 100%;
    height: 121px;
}

#player-hand-button {
    display: block;
    width: 50px;
    height: 30px;
    line-height: 35px;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: -30px;
    right: 20px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
}


.hand-scroll {
    display: flex;
    justify-content: center;  /* <- centraliza os dominós */
    gap: 10px;
    /*overflow-x: auto;*/
    scroll-behavior: smooth;
    padding: 8px 16px;
}

.hand-scroll::-webkit-scrollbar {
    height: 6px;
}
.hand-scroll::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
.hand-scroll::-webkit-scrollbar-track {
    background: #1b1b1b;
}

/* Dominós na mão menores (opcional) */
.player-hand .domino {
    transform: scale(0.9);
    transition: transform 0.2s;
}
.player-hand .domino:hover {
    transform: scale(1);
    cursor: pointer;
}



.domino-flipped {
    width: 50px;
    height: 100px;
    border-radius: 4px;
    background: #333;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.domino-flipped .half {
    height: 100%;
}


/*.game {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 2px;
    border: 1px #ddd solid;
}
.game img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 2px;
    
    float: left;
}
.friend {
}

.friend.selected {
    background: linear-gradient(135deg, #42d392, #4ca9ff);
    color: white;
    font-weight: bold;
}*/