.taabeelo-app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.taabeelo-app h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.taabeelo-app p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.taabeelo-access-message {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
}

.taabeelo-party-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.taabeelo-member-row {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

.taabeelo-member-name {
    font-size: 15px;
    font-weight: 600;
}

.taabeelo-member-status {
    font-size: 13px;
}

.taabeelo-member-row.is-online .taabeelo-member-status {
    font-weight: 700;
}

.taabeelo-member-row.is-offline {
    opacity: 0.55;
}

@media (min-width: 481px) {
    .taabeelo-app,
    .taabeelo-access-message {
        max-width: 480px;
    }
}

/* =========================================================
   TAABEELO GAME SCREEN
   ========================================================= */

.taabeelo-game {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taabeelo-game-hud {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    background: #1f241f;
    color: #ffffff;

    border-radius: 14px;
}

.taabeelo-game-party-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 14px;
    font-weight: 700;
}

.taabeelo-game-online {
    flex: 0 0 auto;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.taabeelo-game-scene {
    position: relative;
    width: 100%;
    height: clamp(560px, 72vh, 700px);
    overflow: hidden;
    border-radius: 18px;

    background-color: #283b2e;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: 1px solid rgba(0, 0, 0, 0.18);
}

.taabeelo-scene-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    font-weight: 800;
}

.taabeelo-game-dock {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;

    padding: 7px;
    box-sizing: border-box;

    background: #1f241f;
    border-radius: 16px;
}

.taabeelo-game-dock button {
    min-width: 0;
    min-height: 58px;

    padding: 7px 3px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    border: 0;
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 19px;
    line-height: 1;

    cursor: pointer;
}

.taabeelo-game-dock button span {
    font-size: 11px;
    line-height: 1.2;
}

.taabeelo-game-dock button:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.16);
}


/* =========================================================
   PLAYERS INSIDE THE GAME WORLD
   ========================================================= */

.taabeelo-scene-location-name {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;

    padding: 6px 11px;

    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.taabeelo-scene-players {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.taabeelo-scene-player {
    pointer-events: auto;
}

.taabeelo-scene-player {
    position: absolute;

    width: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    transform: translate(-50%, -50%);
}

.taabeelo-player-avatar {
    position: relative;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0dfbd;
    color: #302719;

    border: 3px solid rgba(255, 255, 255, 0.9);

    font-size: 22px;
    font-weight: 800;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.taabeelo-player-presence-dot {
    position: absolute;

    right: -1px;
    bottom: 1px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #35c96f;
    border: 2px solid #ffffff;
}

.taabeelo-scene-player.is-offline {
    opacity: 0.48;
}

.taabeelo-scene-player.is-offline .taabeelo-player-presence-dot {
    background: #777777;
}

.taabeelo-player-label {
    max-width: 90px;

    padding: 4px 7px;

    background: rgba(20, 20, 20, 0.78);
    color: #ffffff;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player positions around the Pavilion */

.taabeelo-player-slot-1 {
    left: 50%;
    top: 65%;
}

.taabeelo-player-slot-2 {
    left: 25%;
    top: 70%;
}

.taabeelo-player-slot-3 {
    left: 75%;
    top: 70%;
}

.taabeelo-player-slot-4 {
    left: 30%;
    top: 43%;
}

.taabeelo-player-slot-5 {
    left: 70%;
    top: 43%;
}

.taabeelo-player-slot-6 {
    left: 50%;
    top: 35%;
}

.taabeelo-player-slot-7 {
    left: 18%;
    top: 25%;
}

.taabeelo-player-slot-8 {
    left: 82%;
    top: 25%;
}

/* =========================================================
   PAVILION TAP ZONES
   ========================================================= */

.taabeelo-pavilion-zones {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.taabeelo-pavilion-zone {
    position: absolute;

    left: 8%;
    width: 84%;

    border: 0;
    background: rgba(255, 255, 255, 0.01);

    padding: 0;
    margin: 0;

    cursor: pointer;
}

.taabeelo-pavilion-zone-lounge {
    top: 6%;
    height: 28%;
}

.taabeelo-pavilion-zone-billiards {
    top: 35%;
    height: 26%;
}

.taabeelo-pavilion-zone-bar {
    top: 64%;
    height: 24%;
}

/* =========================================================
   PAVILION CAMERA ZOOM
   ========================================================= */

.taabeelo-game-scene {
    transition:
        background-size 0.35s ease,
        background-position 0.35s ease;
}

/* Full Pavilion */
.taabeelo-game-scene:not(.is-camera-zoomed) {
   background-size: contain;
    background-position: center;
}

/* Lounge / Fireplace */
.taabeelo-game-scene.taabeelo-camera-lounge {
    background-size: 175%;
    background-position: center 8%;
}

/* Billiards */
.taabeelo-game-scene.taabeelo-camera-billiards {
    background-size: 175%;
    background-position: center 48%;
}

/* Bar */
.taabeelo-game-scene.taabeelo-camera-bar {
    background-size: 175%;
    background-position: center 88%;
}

/* =========================================================
   PAVILION CAMERA RESET
   ========================================================= */

.taabeelo-camera-reset {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;

    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s ease;
}

.taabeelo-game-scene.is-camera-zoomed .taabeelo-camera-reset {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   PLACE SELECTOR
   ========================================================= */

.taabeelo-place-panel {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;

    padding: 8px;
    box-sizing: border-box;

    background: #1f241f;
    border-radius: 14px;
}

.taabeelo-place-panel[hidden] {
    display: none;
}

.taabeelo-place-option {
    min-height: 62px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    border: 0;
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 21px;
    cursor: pointer;
}

.taabeelo-place-option span {
    font-size: 12px;
    font-weight: 700;
}

.taabeelo-place-option.is-current {
    background: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   ESTATE MASTER MAP
   ========================================================= */

.taabeelo-estate-map {
    grid-column: 1 / -1;

    width: 100%;

    overflow: hidden;
    border-radius: 14px;

    background: #111;
}

.taabeelo-estate-map-image {
    display: block;

    width: 100%;
    height: auto;
}

/* =========================================================
   ESTATE MAP HOTSPOTS
   ========================================================= */

.taabeelo-estate-map {
    position: relative;
}

.taabeelo-estate-hotspot {
    position: absolute;

    top: 0;
    height: 100%;
    min-height: 0;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 0;

    background: rgba(255, 255, 255, 0.01);

    z-index: 2;
    cursor: pointer;
}

.taabeelo-estate-hotspot-pool {
    left: 0;
    width: 33.333%;
}

.taabeelo-estate-hotspot-plaza {
    left: 33.333%;
    width: 33.334%;
}

.taabeelo-estate-hotspot-pavilion {
    left: 66.667%;
    width: 33.333%;
}

/* =========================================================
   ESTATE OVERVIEW
   ========================================================= */

.taabeelo-game-scene[data-location="estate"] {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Estate navigation hotspots */
.taabeelo-estate-zones {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.taabeelo-estate-zone {
    position: absolute;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    min-height: 0;

    background: transparent;

    cursor: pointer;
    pointer-events: auto;
}

/* Hide hotspot text */
.taabeelo-estate-zone span {
    display: none;
}

/* =========================================================
   ESTATE OVERVIEW - HIDE ROOM ELEMENTS
   ========================================================= */

.taabeelo-game-scene[data-location="estate"] .taabeelo-scene-players,
.taabeelo-game-scene[data-location="estate"] .taabeelo-pavilion-zones,
.taabeelo-game-scene[data-location="estate"] .taabeelo-camera-reset {
    display: none;
}

/* =========================================================
   LOCATION-SPECIFIC INTERACTION LAYERS
   ========================================================= */

/* Estate hotspots only exist on the Estate overview */
.taabeelo-estate-zones {
    display: none;
}

.taabeelo-game-scene[data-location="estate"] .taabeelo-estate-zones {
    display: block;
}

/* Pavilion zoom zones only exist inside the Pavilion */
.taabeelo-pavilion-zones {
    display: none;
}

.taabeelo-game-scene[data-location="pavilion"] .taabeelo-pavilion-zones {
    display: block;
}

/* Camera reset only belongs to the Pavilion */
.taabeelo-game-scene:not([data-location="pavilion"]) .taabeelo-camera-reset {
    display: none;
}

/* =========================================================
   ESTATE OVERVIEW HOTSPOT POSITIONS
   ========================================================= */

/* Entertainment Pavilion */
.taabeelo-estate-zone-pavilion {
    left: 8%;
    top: 25%;
    width: 84%;
    height: 27%;
}

/* Plaza / central terrace and stairs */
.taabeelo-estate-zone-plaza {
    left: 24%;
    top: 50%;
    width: 52%;
    height: 16%;
}

/* Swimming Pool */
.taabeelo-estate-zone-pool {
    left: 6%;
    top: 65%;
    width: 88%;
    height: 29%;
}


/* =========================================================
   PLAZA SCENE SIZE
   ========================================================= */

.taabeelo-game-scene[data-location="plaza"] {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.taabeelo-game-scene[data-location="estate"] .taabeelo-scene-players {
    display: none !important;
}

.taabeelo-people-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 82px;
    z-index: 20;

    max-height: 55%;
    overflow-y: auto;

    padding: 14px;
    border-radius: 16px;

    background: rgba(24, 31, 26, 0.96);
    color: #fff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.taabeelo-people-panel[hidden] {
    display: none;
}

.taabeelo-people-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.taabeelo-people-close {
    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: #fff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.taabeelo-people-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taabeelo-people-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 12px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
}

.taabeelo-people-name {
    font-size: 14px;
}

.taabeelo-people-status {
    font-size: 13px;
    white-space: nowrap;
}

.taabeelo-game {
    position: relative;
}

.taabeelo-chat-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 82px;
    z-index: 21;

    max-height: 60%;
    display: flex;
    flex-direction: column;

    padding: 14px;
    border-radius: 16px;

    background: rgba(24, 31, 26, 0.96);
    color: #fff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.taabeelo-chat-panel[hidden] {
    display: none;
}

.taabeelo-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.taabeelo-chat-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.taabeelo-chat-messages {
    min-height: 120px;
    max-height: 240px;
    overflow-y: auto;

    padding: 8px;
    margin-bottom: 10px;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.taabeelo-chat-compose {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.taabeelo-chat-input {
    flex: 1;
    resize: none;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    font: inherit;
}

.taabeelo-chat-send {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.taabeelo-chat-message {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.taabeelo-chat-message:last-child {
    margin-bottom: 0;
}

.taabeelo-chat-message-name {
    display: inline;
    font-size: 12px;
    opacity: 0.75;
}

.taabeelo-chat-message-time {
    margin-inline-start: 8px;
    font-size: 11px;
    opacity: 0.55;
}

.taabeelo-chat-message-text {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


.taabeelo-chat-user-1 {
    background: rgba(70, 130, 180, 0.22);
}

.taabeelo-chat-user-2 {
    background: rgba(46, 139, 87, 0.22);
}

.taabeelo-chat-user-3 {
    background: rgba(186, 85, 211, 0.22);
}

.taabeelo-chat-user-4 {
    background: rgba(218, 165, 32, 0.22);
}

.taabeelo-chat-user-5 {
    background: rgba(205, 92, 92, 0.22);
}

.taabeelo-chat-user-6 {
    background: rgba(72, 209, 204, 0.22);
}

.taabeelo-chat-user-7 {
    background: rgba(255, 140, 0, 0.22);
}

.taabeelo-chat-user-8 {
    background: rgba(123, 104, 238, 0.22);
}

.taabeelo-chat-message-name {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
}

.taabeelo-chat-message-time {
    display: inline-block;
    direction: rtl;
    unicode-bidi: isolate;
}

.taabeelo-chat-message-own {
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.35);
}

.taabeelo-chat-message {
    width: fit-content;
    max-width: 85%;
    margin-right: auto;
}

.taabeelo-chat-message-own {
    margin-right: 0;
    margin-left: auto;
}

.taabeelo-chat-compose {
    position: relative;
}

.taabeelo-chat-emoji-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border: 0;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.12);
    font-size: 22px;
    cursor: pointer;
}

.taabeelo-chat-emoji-panel {
    position: absolute;
    right: 0;
    bottom: 52px;
    z-index: 30;

    display: grid;
    grid-template-columns: repeat(4, 42px);
    gap: 6px;

    padding: 10px;
    border-radius: 14px;

    background: rgba(24, 31, 26, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.taabeelo-chat-emoji-panel[hidden] {
    display: none;
}

.taabeelo-chat-emoji {
    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
    cursor: pointer;
}

.taabeelo-dock-chat {
    position: relative;
}

.taabeelo-chat-unread {
    position: absolute;
    top: 4px;
    left: 8px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #d93025;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.taabeelo-chat-unread[hidden] {
    display: none;
}

