body {
    font-family: 'Inter', sans-serif;
}

#app-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: #F9F9F9;
    max-width: 480px;
    width: 100%;
}

.shared-top-nav,
.shared-bottom-nav {
    flex-shrink: 0;
}

.shared-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #E0E0E0;
    width: 100%;
    box-sizing: border-box;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-left {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    align-items: center;
}

.nav-center {
    align-items: center;
}

.nav-right {
    align-items: flex-end;
}

.nav-label {
    font-size: 15px;
    color: #1F2937;
    margin-bottom: 2px;
    font-weight: 600;
}

.nav-value {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #6B7280;
}

#total-participants {
    font-size: 20px;
    font-weight: 700;
    color: #6B7280;
}

.text-blue {
    color: #2787F5;
}

.shared-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #E0E0E0;
    padding: 12px 0;
    padding-bottom: env(safe-area-inset-bottom, 12px);
    width: 100%;
    box-sizing: border-box;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6B7280;
    font-size: 16px;
    font-weight: 700;
    gap: 4px;
    flex: 1 1 0;
}

.tab-btn.active {
    color: #2787F5;
}

.tab-btn svg {
    width: 30px;
    height: 30px;
}

.tab-btn:not(.active) svg {
    color: #A4AAB5;
}

.main-scrollable-area {
    flex: 1;
    overflow-y: auto;
    scrollbar-gutter: stable;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.action-buttons-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.action-btn {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-white {
    background: #ffffff;
    color: #333333;
}

.btn-blue {
    background: #2787F5;
    color: #ffffff;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-btn {
    font-size: 20px;
    font-weight: 700;
    color: #6B7280;
    text-align: center;
    word-break: break-word;
}

.text-btn-white {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    word-break: break-word;
}


.icon-box svg {
    width: 24px;
    height: 24px;
}

.mute-btn-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.btn-mute {
    background-color: #E14B4E;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
}

.btn-mute svg {
    width: 32px;
    height: 32px;
}

.tab-content-area {
    display: none;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.tab-content-area.active {
    display: flex;
}

.status-wait-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-wait-card svg {
    color: #F39C12;
    width: 40px;
    height: 40px;
}

.status-wait-card span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.webar-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
}

.webar-popup-close:hover {
    opacity: 1;
}

.webar-popup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.webar-popup h2 {
    font-size: 24px;
    margin-bottom: 8px;
    margin-top: 20px;
    font-weight: 700;
}

.d-flex {
    display: flex;
}

.hint-label {
    font-size: 16px;
    font-weight: 700;
    color: #A4AAB5;
    letter-spacing: 0.05em;
    text-align: left;
}

.settings-btn {
    display: flex;
    flex-direction: row !important;
    justify-content: flex-start !important;
    width: 100%;
    margin-bottom: 12px;
}

.settings-btn .text-btn {
    color: #1F2937 !important;
    font-weight: 700 !important;
}

.reaction-float {
    bottom: 90px !important;
}

.float {
    position: absolute;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #333333;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 8);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.float:active {
    transform: scale(0.95);
}

.my-float {
    margin-top: 0;
    font-size: 24px;
}

/* Portrait orientation lock overlay */
#orientation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#orientation-overlay .icon-rotate {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    animation: rotatetoportrait 2s infinite ease-in-out;
}

@keyframes rotatetoportrait {
    0% {
        transform: rotate(-90deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#orientation-overlay h2 {
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    margin-bottom: 10px;
    font-size: 22px;
}

#orientation-overlay p {
    font-family: 'Inter', sans-serif;
    color: #6B7280;
    font-size: 16px;
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    body {
        overflow: hidden !important;
    }

    body>*:not(#orientation-overlay) {
        display: none !important;
    }

    #orientation-overlay {
        display: flex !important;
    }
}