.chat-container {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 15px 0;
  width: 300px;
}
.chat-box {
  height: 150px;
  overflow-y: auto;
  background: #f9f9f9;
  margin-bottom: 5px;
  padding: 5px;
  border: 1px solid #ddd;
}
  .room-block {
    background: #f4f4f4;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
  }

button.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
  }
  50% {
    box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
  }
}

/* تأثير الاهتزاز */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.disabled{
  filter: brightness(0.7);
    cursor: not-allowed;
pointer-events: none;
  }
/* تطبيق التأثيرين على الزر */
.glow-shake-button {
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #00cccc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: glow 2s ease-in-out infinite, shake 0.5s ease-in-out infinite;
  outline: none;
}

.box,.chat-container,div#gameRooms{
display: none !important;
}
#viewbox{display: block !important;
}
  #CONUI {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #064420;
    color: white;
    font-family: monospace;
  }
  .card {
    cursor: pointer;
    width: 80px;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    zoom: 50%;
  }
  .card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

#seat-south-projects,#seat-north-projects,#seat-west-projects,#seat-east-projects{

}#seat-south-coll,#seat-north-coll,#seat-west-coll,#seat-east-coll{
  display: none;
}#seat-south-thr,#seat-north-thr,#seat-west-thr,#seat-east-thr{
  display: none;
}h6 {
    margin: 5px;
}

  .br2{
    position: absolute;
    z-index: 1111;
opacity: 0;
    transform: scale(0, 0);
  }

  .br{
    position: absolute;
    z-index: 1111;
opacity: 0;
    transform: scale(0, 0);
  }
      @font-face {
            font-family: 'SomarRounded-SemiBold';
            src: url('../fonts/font.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
      }
  * {
    font-family: 'SomarRounded-SemiBold', sans-serif !important;
    box-sizing: border-box;

}
#seat-east-buttons,
#seat-west-buttons,
#seat-north-buttons,
#seat-south-buttons
{
    display: flex
;
    gap: 10px;
}
#ARD_GAME img.card {
  transform: scale(1.25);
  transform-origin: center center; /* يكبر من النص */
}
.scale-out-center {
  /*
	-webkit-animation: scale-out-center 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both !important;
	        animation: scale-out-center 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both !important;*/
}
@-webkit-keyframes scale-out-center {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
}
@keyframes scale-out-center {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
}

@-webkit-keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
 #seat-south-buttons button {
    background: url(../cdn/button5.png) no-repeat center center;
    background-size: contain;
    padding: 54px;
    padding-top: 30px;
    padding-bottom: 30px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: honeydew;
    text-shadow: 0 0 1px #000000;
    cursor: pointer;
    font-size: 24px;
    -webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

#seat-east-buttons button,
#seat-west-buttons button,
#seat-north-buttons button{
    background: url(../cdn/button5.png) no-repeat center center;
    background-size: contain;
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: honeydew;
    text-shadow: 0 0 1px #000000;
    cursor: pointer;
}

/* 🌟 SweetAlert Royal Theme 🌟 */
.swal-royal-popup {
    background: linear-gradient(180deg, rgba(20, 65, 45, 0.95) 0%, rgba(7, 25, 17, 0.98) 100%), url(../cdn/background.png) center / cover !important;
    border-radius: 15px !important;
    border: 2px solid #e6c875 !important;
    box-shadow: 0 0 0 4px #081a11, 0 0 0 8px #c5a059, 0 15px 30px rgba(0, 0, 0, 0.8) !important;
    padding: 0.5em 0.5em !important;
    margin-right: 20px;
    margin-left: 20px;
    width: 97%;
}

.swal-royal-title {
    color: #e6c875 !important;
    font-size: 26px !important;
    font-weight: bold !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

.swal-royal-input-label {
    color: #d8b97d !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
}

.swal-royal-input {
    /* تأثير الزجاج اللامع للحقل */
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.7) 100%) !important;
    border: 1px solid #7a6332 !important;
    border-bottom: 4px solid #3fa66c !important; /* الخط الأخضر المضيء بالأسفل */
    border-radius: 8px !important;
    color: #fff !important;
    text-align: right !important;
    font-size: 18px !important;
    padding: 15px !important;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.7), 0 2px 4px rgba(255,255,255,0.05) !important;
    transition: all 0.3s ease !important;
}

.swal-royal-input:focus {
    border-bottom: 4px solid #55e091 !important;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.7), 0 0 15px rgba(63, 166, 108, 0.4) !important;
    outline: none !important;
}

.swal-royal-actions {
    gap: 15px !important;
    margin-top: 25px !important;
}

/* زر الدخول (الأخضر) */
.swal-royal-confirm {
    background: linear-gradient(180deg, #1d6e4b 0%, #0d3824 100%) !important;
    border: 2px solid #d8b97d !important;
    border-radius: 10px !important;
    color: #fce8a1 !important;
    font-size: 20px !important;
    padding: 10px 35px !important;
    /* لمعة الزر العلوية */
    box-shadow: inset 0 3px 0px rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.5) !important;
    cursor: pointer;
    text-shadow: 0 2px 3px rgba(0,0,0,0.8);
    transition: transform 0.1s !important;
}
.swal-royal-confirm:active { transform: scale(0.95) !important; }

/* زر الإلغاء (الأحمر) */
.swal-royal-cancel {
    background: linear-gradient(180deg, #a82e2e 0%, #5e1111 100%) !important;
    border: 2px solid #d8b97d !important;
    border-radius: 10px !important;
    color: #fce8a1 !important;
    font-size: 20px !important;
    padding: 10px 35px !important;
    box-shadow: inset 0 3px 0px rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.5) !important;
    cursor: pointer;
    text-shadow: 0 2px 3px rgba(0,0,0,0.8);
    transition: transform 0.1s !important;
}
.swal-royal-cancel:active { transform: scale(0.95) !important; }



/* =========================================
   👑 ROYAL BALOOT GAMEPLAY UI 👑
   ========================================= */

/* --- Top Scoreboard Menu --- */
.game-top-bar {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
    z-index: 999;
    pointer-events: none; /* Let clicks pass through empty space */
}

.top-action-btn {
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    border: 2px solid #d8b97d;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}
.top-action-btn:active { transform: scale(0.9); }

.luxury-scoreboard {
    pointer-events: auto;
    background: #fdf5e6; /* Cream color from image */
    border: 2px solid #d8b97d;
    border-radius: 12px;
    padding: 8px 15px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #5a3a18;
    font-size: 16px;
    border-bottom: 1px solid rgba(216, 185, 125, 0.5);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.score-header .score-round {
    color: #009688;
    margin: 0 5px;
    font-size: 18px;
}
.score-header .score-round:last-child {
    color: #FF5722;
}

.score-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
    font-size: 32px;
    color: #2b1d0c;
}

.score-divider-icon {
    font-size: 20px;
    color: #d8b97d;
    opacity: 0.7;
}

/* --- Bottom Interaction Menu --- */
.game-bottom-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 999;
}

.bottom-action-btn {
    background: linear-gradient(180deg, rgba(20, 68, 48, 0.8) 0%, rgba(6, 26, 17, 0.9) 100%);
    border: 1px solid #d8b97d;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fce8a1;
    font-size: 24px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.2s;
}
.bottom-action-btn:active { transform: scale(0.9); }

/* --- South Player Area (Avatar & Cards) --- */
#southme {
    position: absolute;
    bottom: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Fix Cards Z-Index so they sit BEHIND the avatar */
#player-area {
    bottom: 120px !important; /* Push cards up slightly */
    z-index: 5 !important;    /* Lower than avatar */
}

.luxury-avatar-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20; /* Keep avatar above cards */
    margin-top: -40px; /* Overlap cards slightly */
}

.avatar-circle {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-img-clip {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff; /* Inner border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.avatar-frame {
    position: absolute;
    width: 125px; /* Adjust based on your frame image */
    height: 125px;
    pointer-events: none;
    z-index: 2;
}

/* Turn Timer exactly like the image (Green number below avatar) */
.turn-timer {
    color: #00ff2a;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 4px #000;
    margin-top: -5px;
    margin-bottom: 5px;
    z-index: 3;
}

/* Status Badges (Sun, Dealer, etc.) */
#seat-south-console {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    z-index: 3;
}
#seat-south-console img {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    background: linear-gradient(145deg, #1d6e4b, #0d3824);
}

/* Player Name */
.player-name-plate {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 5px #000;
    background: rgba(0,0,0,0.4);
    padding: 2px 15px;
    border-radius: 15px;
    border-bottom: 2px solid #d8b97d;
}/* 📱 PASTE THE MOBILE CODE HERE 📱 */
@media screen and (max-width: 850px) {
    #gamedevelop { display: none !important; }
    #Maingame { width: 100% !important; left: 0 !important; right: 0 !important; }
    #twoscreen { display: block !important; }
}
/* =========================================
   🌟 FULL SCREEN MODAL (الشاشات الكاملة) 🌟
   ========================================= */
.swal-royal-full-modal {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: radial-gradient(circle at center, #0e2e21 0%, #030a07 100%), url('cdn/background.png') center/cover !important;
    background-blend-mode: overlay !important;
    display: flex !important;
    flex-direction: column !important;
}

.swal-royal-full-modal .swal2-title {
    font-size: 32px !important;
    padding-top: 30px !important;
    border-bottom: 2px solid rgba(216, 185, 125, 0.3) !important;
    padding-bottom: 20px !important;
    margin-bottom: 15px !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8) !important;
}

.swal-royal-full-modal .swal2-close {
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 0, 0, 0.2) !important;
    border: 2px solid #ff4d4d !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 28px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: transform 0.2s !important;
}

.swal-royal-full-modal .swal2-close:active {
    transform: scale(0.9) !important;
}

.swal-royal-full-modal .swal2-html-container {
    flex: 1 !important;
    margin: 0 15px 15px 15px !important;
    overflow: hidden !important; /* إخفاء السكرول الافتراضي للسماح بالداخلي */
    display: flex !important;
    flex-direction: column !important;
}/* 🎮 Gaming UI Inventory Styles */
.inv-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}

/* التبويبات العلوية */
.inv-tabs-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    border: 1px solid rgba(216, 185, 125, 0.2);
}

.inv-tab-btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 0;
    border-radius: 40px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #d8b97d;
    background: transparent;
}

.inv-tab-btn.active {
    background: linear-gradient(180deg, #fce8a1 0%, #d8b97d 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(216, 185, 125, 0.4);
    transform: scale(1.05);
}

/* شبكة العناصر */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين في الجوال */
    gap: 15px;
    overflow-y: auto;
    padding-bottom: 30px;
}

@media (min-width: 768px) {
    .inv-grid { grid-template-columns: repeat(3, 1fr); }
}

/* كارت العنصر الاحترافي */
.inv-item-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(216, 185, 125, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.inv-item-card:active { transform: scale(0.95); }

/* حالة التجهيز */
.inv-item-card.equipped {
    border: 2px solid #55e091;
    box-shadow: 0 0 20px rgba(85, 224, 145, 0.2);
}

.equipped-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #55e091;
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 5px;
    z-index: 2;
    text-transform: uppercase;
}

/* صورة المعاينة */
.inv-item-preview {
    width: 100%;
    height: 110px;
    position: relative;
    background: #000;
}

.inv-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* معلومات العنصر والزر */
.inv-item-info {
    padding: 12px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.inv-item-name {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 2px 4px #000;
}

/* زر التجهيز الفخم */
.equip-btn {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 1px solid #7a6332;
    color: #d8b97d;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.inv-item-card:not(.equipped) .equip-btn {
    background: linear-gradient(180deg, #d8b97d 0%, #8f6d30 100%);
    color: #000;
    border: 1px solid #fff;
}/* 💬 Gaming Chat UI Styles */
.chat-container-full {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    gap: 15px;
}

/* صندوق الرسائل */
#swalChatBox {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(216, 185, 125, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

/* تنسيق فقاعة الرسالة */
.chat-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideInMsg 0.3s ease-out;
}

@keyframes slideInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d8b97d;
    background: url('cdn/userbk2.png') center/cover;
    flex-shrink: 0;
}

.chat-bubble {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(216, 185, 125, 0.3);
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    max-width: 85%;
    text-align: right;
    position: relative;
}

/* إذا كانت الرسالة من اللاعب نفسه (اختياري لو أردت تمييزها) */
.chat-msg-row.is-me {
    flex-direction: row-reverse;
}
.chat-msg-row.is-me .chat-bubble {
    background: linear-gradient(135deg, rgba(216, 185, 125, 0.2) 0%, rgba(143, 109, 48, 0.2) 100%);
    border-radius: 15px 0 15px 15px;
}

.chat-sender-name {
    display: block;
    color: #e6c875;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px #000;
}

.chat-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
}

/* منطقة الإدخال */
.chat-footer {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 12px;
    border-radius: 50px;
    border: 2px solid #a68444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.chat-input-modern {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 5px 15px;
    outline: none !important;
}

.chat-input-modern::placeholder {
    color: rgba(216, 185, 125, 0.5);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d8b97d 0%, #8f6d30 100%);
    border: 1px solid #fff;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s;
}

.chat-send-btn:active { transform: scale(0.9); }

/* =========================================
   🌟 CUSTOM GSAP MODAL ENGINE 🌟
   ========================================= */
.royal-gsap-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(14, 46, 33, 0.85) 0%, rgba(3, 10, 7, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999; /* يجب أن يكون أعلى شيء في اللعبة */
    display: none; /* يتم تغييره برمجياً */
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.royal-gsap-content {
    position: relative;
    width: 100%;
    max-width: 420px; /* أقصى عرض للبطاقة */
    display: flex;
    justify-content: center;
    align-items: center;
    /* الأنيميشن يتم التحكم به كلياً عبر GSAP */
}