.site-icon {
	height: 88px;
}

#hidden-content {
  max-height: 15em;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.button-hidden-content{
	text-align:center;
	font-size: 0.9rem;
	background-color: #faf8ef;
	padding-top: 30px;
}
#button-less{
	border-radius:99px;
	padding:0px 30px 0px 30px;
}

      .mode-selector {
        display: flex;
        gap: 10px;
        justify-content: center;
        font-family: Arial, sans-serif;
      }

      .mode {
        background-color: transparent;
        border: none;
        font-weight: bold;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 6px;
color: black;
font-size: .8rem;
margin:0;
      }
      .mode.active {
        background-color: #f9c74f; 
      }

      .mode:hover {
        background-color: #ffe28a; 
      }
      .scoreboard {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 20px;
        width: 100%;
        font-family: Arial, sans-serif;
      }

      .score-box {
        background-color: #bb9a7a;
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        text-align: center;
        min-width: 60px;
      }
      .score-group {
        display: flex;
        gap: 10px; /* khoảng cách giữa SCORE và BEST */
      }

      .label {
        font-size: 10px;
        font-weight: bold;
      }

      .value {
        font-size: 18px;
        font-weight: bold;
      }

      .new-game {
        background-color: #bb9a7a;
        color: white;
        border: none;
        border-radius: 3px;
        padding: 8px 15px;
        font-weight: bold;
        cursor: pointer;
margin:0;
      }

      .new-game:hover {
        background-color: #a78667;
      }

.play2048-text .ol {
    counter-reset: item; /* Reset counter khi bắt đầu danh sách */
}

.play2048-text .ol li {
    display: block;
    position: relative;
    text-align: center;
    padding-top: 70px;
    margin-bottom: 25px;
    color: #2b2e3a;
    font-size: 16px;
    line-height: 24px;
}

.play2048-text .ol li:before {
    content: counters(item, ".") " ";
    counter-increment: item; /* Tăng số thứ tự */
    width: 55px;
    height: 55px;
    -webkit-box-shadow: 0 0 25px rgba(0, 0, 0, .1);
    box-shadow: 0 0 25px rgba(0, 0, 0, .1);
    background-color: #fff;
    position: absolute;
    top: 0;
    left: calc(50% - 27px);
    text-align: center;
    line-height: 55px;
    border-radius: 50%;
    color: #ffbf5a;
    font-size: 30px;
    font-weight: 400;
}

.language-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: 700px;
        margin: 20px auto;
        font-family: Arial, sans-serif;
      }

      .lang-item {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: white;
        padding: 8px 15px;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s, color 0.2s;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
					font-size: .8rem;
      }

      .lang-item img {
        width: 20px;
        height: 14px;
        object-fit: cover;
      }

      .lang-item:hover {
        background-color: #fff4db;
      }

      .lang-item.active {
        color: #ff9900;
        background-color: #fff4db;
      }

.rating {
        display: flex;
        align-items: center;
		justify-content:center;
		flex-wrap: wrap;
        gap: 8px;
        font-family: Arial, sans-serif;
		font-size: 1.5rem;
      }

      .stars {
        display: flex;
        position: relative;
        gap: 2px;
        font-size: 24px;
        cursor: pointer;
        direction: rtl;
      }

      .stars span {
        color: lightgray;
        position: relative;
        transition: color 0.2s;
      }

      
      .stars span:hover,
      .stars span:hover ~ span {
        color: gold;
      }

    
      .stars span::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-5px);
        background: #222;
        color: white;
        font-size: 12px;
        padding: 3px 6px;
        border-radius: 4px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
      }

      
      .stars span::before {
        content: "";
        position: absolute;
        bottom: calc(100% - 5px);
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #222 transparent;
        opacity: 0;
        transition: opacity 0.2s ease;
      }

      
      .stars span:hover::after,
      .stars span:hover::before {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
      }

      
      .stars {
        unicode-bidi: bidi-override;
      }

      .score {
        font-weight: bold;
					margin-right: 1.2rem; 
      }

      .votes {
        color: #888;
        font-size: 14px;
      }

.footer-text { 
    display: flex;
    justify-content: center;
    align-items: center;
		flex-wrap:wrap;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #444;
    padding: 15px 0;
  }

  .footer-text a { 
    text-decoration: none;
    color: #444;
    position: relative;
    padding: 0 8px;
  }

  .footer-text a:not(:last-child)::after { 
    content: "|";
    position: absolute;
    right: -8px;
    color: #888;
  }

  .footer-text a:hover { 
    text-decoration: underline;
  }
.logo-footer img{
		border-radius: 10px;
}
.rating p {
		margin: 0;
}
.scoreboard p {
		margin:0;
}

/* Custom CSS cho tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .rating strong {
		width:100%;
		font-size:1.4rem;
}
.rating {
		padding: 0 20px;
}
.score {
    font-weight: bold;
		margin-right: 1rem;
		font-size: 1.2rem;
}
.votes {
    color: #888;
    font-size: 14px;
}
}