/* lobby.css - Extracted styles for lobby.php */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 50px; overflow-x: hidden; }
body {
    font-family: 'Roboto', 'Noto Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    background: #fff;
    color: #333;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 1.4rem;
    overflow-x: hidden;
    width: 100%;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.dream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.24rem 0.3rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.dream-header > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
#index-logo {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}
#index-name {
    font-size: 0.26rem;
    font-weight: 700;
    margin-top: 4px;
    color: #333;
}
.registerBtn, .loginBtn {
    font-size: 0.26rem;
    color: #666;
    padding: 0.1rem 0.2rem;
}
.registerBtn a, .loginBtn a { color: #666; }

.userBtn {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    padding: 0.08rem 0.18rem;
    background: linear-gradient(135deg, #FF8C5A, #FF6B6B);
    color: #fff;
    border-radius: 0.3rem;
    font-size: 0.24rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255,107,107,0.3);
}
.userBtn svg { width: 0.28rem; height: 0.28rem; fill: #fff; }
.userBtn .ub-name {
    max-width: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slider-pic {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
}
.slider-pic > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
    vertical-align: middle;
}
.slider-decorator-0 {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
}
.am-carousel-wrap-dot {
    display: inline-block;
    margin: 0 4px;
}
.am-carousel-wrap-dot span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f1216;
}
.am-carousel-wrap-dot-active span {
    background: #FEC80D;
}

.tips {
    display: flex;
    align-items: center;
    background: #FFF8E1;
    padding: 0.18rem 0.3rem;
    gap: 0.16rem;
    border-bottom: 1px solid #FFE082;
}
.tips img {
    width: 0.36rem;
    height: 0.36rem;
}
.tips-content {
    flex: 1;
    overflow: hidden;
    font-size: 0.26rem;
    color: #F57C00;
    font-weight: 500;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    padding: 0.36rem 0.2rem 0.3rem;
    gap: 0.1rem;
}
.tabs > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
    text-align: center;
}
.tabs img {
    width: 0.92rem;
    height: 0.92rem;
}
.tabs > div > div:last-child {
    font-size: 0.24rem;
    color: #555;
    line-height: 1.3;
}

.lotteryTitle {
    display: flex;
    align-items: center;
    padding: 0.36rem 0.3rem 0.2rem;
    gap: 0.16rem;
}
.lotteryTitle img {
    width: 0.36rem;
    height: 0.36rem;
}
.lotteryTitle p {
    font-size: 0.34rem;
    font-weight: 700;
    color: #333;
}

.lotteryHall-page {
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
}
.hallContent {
    background: #f5f5f5;
}
.block {
    margin-bottom: 0.2rem;
    background: #fff;
}
.block header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.24rem 0.1rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.block header > div > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.12rem 0;
    position: relative;
    cursor: pointer;
}
.block header > div > div.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.6rem;
    height: 3px;
    background: #FF4757;
    border-radius: 2px;
}
.block header > div > div:active {
    opacity: 0.6;
}
.block header img {
    width: 0.86rem;
    height: 0.86rem;
    object-fit: contain;
}
.block header span {
    font-size: 0.26rem;
    font-weight: 600;
    color: #333;
}
.block header > div > div.active span {
    color: #FF4757;
}

.block ul {
    list-style: none;
    padding: 0.24rem 0.2rem;
    display: none;
    margin: 0;
    background: #fff;
}
.block ul.show {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: flex-start;
}
.block ul li {
    width: calc((100% - 0.4rem) / 3);
    background: #fff;
    border-radius: 0.12rem;
    padding: 0.18rem 0.1rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}
.block ul li > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    cursor: pointer;
}
.block ul li img {
    width: 0.7rem;
    height: 0.7rem;
    flex-shrink: 0;
    border-radius: 0.1rem;
    object-fit: cover;
}
.block ul li p {
    font-size: 0.22rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
}
.block ul li p span {
    display: block;
    font-size: 0.18rem;
    color: #999;
    font-weight: 400;
    margin-top: 0.04rem;
}

.games-grid, .game-item, .game-children { display: none !important; }

.country-select {
    text-align: center;
    padding: 0.3rem 0;
    font-size: 0.28rem;
    color: #666;
}
.country-select a {
    color: #666;
}

.footer-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
    z-index: 100;
}
.footer-nav > div {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0.16rem 0;
}
.footer-nav li {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
    position: relative;
}
.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
}
.footer-link img {
    width: 0.5rem;
    height: 0.5rem;
}
.footer-link span {
    font-size: 0.22rem;
    color: #999;
}
.footer-link.active span {
    color: #FF4757;
}
.footer-nav > p {
    height: 0.36rem;
    background: #fff;
}

.popup-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.popup-content {
    background: #fff;
    border-radius: 0.2rem;
    width: 85%;
    max-width: 380px;
    min-height: 200px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}
.popup-title {
    font-size: 0.34rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
    color: #333;
    flex-shrink: 0;
}
.popup-text {
    font-size: 0.28rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.4rem;
    flex: 1;
    overflow-y: auto;
    word-break: break-word;
}
.popup-btn {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
}
.popup-btn button {
    padding: 0.2rem 0.8rem;
    border: none;
    border-radius: 0.1rem;
    background: #FF4757;
    color: white;
    font-size: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}
.popup-btn button.cancel {
    background: #ddd;
    color: #333;
}

@media (max-width: 320px) {
    html { font-size: 40px; }
}
