/* 
 * 飞翔心同 - 精美移动端样式
 * 心同计划 Web端预上线小游戏
 */

/* ===== Vue.js v-cloak 隐藏未编译模板 ===== */
[v-cloak] {
    display: none !important;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 100%);
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
}

#app {
    height: 100%;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ===== 页面通用 ===== */
.page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 登录页面 ===== */
.login-page {
    background: linear-gradient(180deg, #0a0a15 0%, #1a1a2e 50%, #0d47a1 100%);
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="2" fill="rgba(255,255,255,0.06)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-100px) rotate(5deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.logo-bird {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.nft-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-nft {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-nft.active {
    opacity: 1;
}

.carousel-nft.is-3d {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

.carousel-nft:not(.is-3d) {
    animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(1deg); }
}

.default-bird {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes birdFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.bird-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

.app-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: 4px;
}

.app-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
}

.login-form {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #00d4ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.input-group input::placeholder {
    color: #aaa;
}

.btn-primary {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    height: 54px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #eee;
}

.btn-login {
    margin-top: 8px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.login-footer a {
    color: white;
    text-decoration: none;
}

.login-footer .icp-info {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.8;
    padding: 8px 0;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.login-footer .icp-info .icp-company {
    margin-bottom: 0;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    white-space: nowrap;
}

.login-footer .icp-info a {
    color: rgba(255,255,255,0.6);
    display: inline-block;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center;
    text-decoration: underline;
    white-space: nowrap;
}

.login-footer .icp-info a:hover {
    color: rgba(255,255,255,0.9);
}

/* 活动通知 */
.event-notice {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255,71,87,0.1), rgba(0,212,255,0.1));
    border-radius: 16px;
    border: 1px solid rgba(0,212,255,0.3);
}

.notice-title {
    font-size: 15px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 10px;
    text-align: center;
}

.notice-content {
    font-size: 13px;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: left;
}

.notice-content br {
    margin: 4px 0;
}

/* ===== 主页 ===== */
.home-page {
    background: linear-gradient(180deg, #0a0a15 0%, #1a1a2e 100%);
}

.home-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: radial-gradient(ellipse at top, rgba(0,212,255,0.15) 0%, transparent 70%);
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    position: relative;
    z-index: 10;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    border: 2px solid rgba(0,212,255,0.5);
}

.user-details {
    color: white;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
}

.user-stats {
    font-size: 13px;
    opacity: 0.8;
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.25);
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.feature-bird {
    text-align: center;
}

.bird-3d-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    position: relative;
}

.bird-3d-container.is-3d {
    perspective: 500px;
    transform-style: preserve-3d;
}

.bird-3d-container.is-3d .bird-image,
.bird-3d-container.is-3d .default-bird {
    animation: rotate3d 6s ease-in-out infinite;
}

.bird-3d-container:not(.is-3d) .bird-image,
.bird-3d-container:not(.is-3d) .default-bird {
    animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes rotate3d {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg); }
    50% { transform: rotateY(15deg) rotateX(-5deg); }
}

.bird-image, .default-bird {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: subtleFloat 4s ease-in-out infinite;
}

.bird-image.is-3d, .default-bird.is-3d {
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8));
    animation: float 3s ease-in-out infinite;
}

.bird-name {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.home-menu {
    padding: 24px 20px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background: #1a1a2e;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.menu-btn:last-child {
    margin-bottom: 0;
}

.menu-btn:hover {
    background: rgba(0,212,255,0.1);
    transform: translateX(4px);
    border-color: rgba(0,212,255,0.4);
}

.menu-btn:active {
    transform: scale(0.98);
}

.menu-btn-icon {
    font-size: 28px;
    margin-right: 16px;
}

.menu-btn-text {
    font-size: 17px;
    font-weight: 600;
    color: #e0e0e0;
}

.menu-btn-badge {
    position: absolute;
    right: 20px;
    background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.menu-btn-play {
    background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}

.menu-btn-play .menu-btn-text {
    color: white;
}

.menu-btn-play:hover {
    background: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 71, 87, 0.6);
}

/* ===== 游戏页面 ===== */
.game-page {
    background: #87CEEB;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
}

.btn-back {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-back svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
}

.btn-back:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.05);
}

.btn-back:active {
    transform: scale(0.95);
}

.game-score {
    background: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.score-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.score-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.game-lives {
    display: flex;
    gap: 4px;
}

.life-heart {
    font-size: 24px;
    transition: all 0.3s ease;
}

.life-lost {
    opacity: 0.3;
    filter: grayscale(1);
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.overlay-content {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #333;
}

.overlay-content p {
    color: #666;
    margin-bottom: 8px;
}

.overlay-content .tip {
    font-size: 14px;
    color: #00d4ff;
    margin-top: 16px;
    margin-bottom: 24px;
}

.start-bird {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    animation: subtleFloat 4s ease-in-out infinite;
}

.start-bird img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: subtleFloat 4s ease-in-out infinite;
}

.final-score {
    margin: 24px 0;
}

.score-big {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #ff4757 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 24px;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 13px;
    color: #999;
    display: block;
}

.info-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.game-over-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== NFT页面 ===== */
.nft-page, .leaderboard-page {
    background: #0a0a15;
}

.page-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    background: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-header h1 {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.page-header .btn-back,
.page-header .btn-icon {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-header .btn-back svg,
.page-header .btn-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.page-header .btn-back:hover,
.page-header .btn-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.page-header .btn-back:active,
.page-header .btn-icon:active {
    transform: scale(0.95);
}

.header-spacer {
    width: 40px;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
    flex: 1;
}

.nft-card {
    background: #1a1a2e;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0,212,255,0.2);
}

.nft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.2);
    border-color: rgba(0,212,255,0.5);
}

.nft-card.nft-selected {
    border: 3px solid #00d4ff;
}

.nft-card.nft-3d .nft-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,71,87,0.1));
    pointer-events: none;
}

.nft-image-wrapper {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #0a0a15, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.nft-3d-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.nft-default-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #4CAF50;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.nft-info {
    padding: 14px;
}

.nft-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-hash {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.nft-selected-mark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px;
}

.nft-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed rgba(0,212,255,0.3);
    background: transparent;
    box-shadow: none;
}

.nft-add:hover {
    border-color: #00d4ff;
    background: rgba(0,212,255,0.05);
}

.nft-add-icon {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 8px;
}

.nft-add-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.nft-add-price {
    font-size: 13px;
    color: #00d4ff;
    font-weight: 600;
}

.nft-add-price.price-free {
    color: #4CAF50;
    font-weight: 700;
}

.info-row .price.price-free {
    color: #4CAF50;
    font-weight: 700;
}

/* ===== 排行榜 ===== */
.my-rank-card {
    margin: 16px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d47a1 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    border: 1px solid rgba(0,212,255,0.3);
}

.my-rank-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.my-rank-position {
    width: 70px;
    min-width: 70px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-number {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.my-name {
    font-size: 18px;
    font-weight: 600;
}

.my-stats {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.rank-item {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,212,255,0.1);
}

.rank-item.rank-top {
    background: linear-gradient(135deg, #1a1a2e, #0d47a1);
    border-color: rgba(0,212,255,0.3);
}

.rank-position {
    width: 40px;
    text-align: center;
}

.rank-medal {
    font-size: 24px;
}

.rank-num {
    font-size: 16px;
    font-weight: 600;
    color: #999;
}

.rank-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.rank-name {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
}

.rank-score {
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
}

.rank-arrow {
    font-size: 20px;
    color: #666;
    margin-left: 8px;
}

.rank-item:active {
    transform: scale(0.98);
    background: rgba(0,212,255,0.1);
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal {
    background: #1a1a2e;
    border-radius: 24px;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(0,212,255,0.2);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.btn-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 12px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
    height: 48px;
    font-size: 15px;
}

/* 上传弹窗 */
.upload-preview {
    width: 100%;
    height: 180px;
    background: #0a0a15;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px dashed rgba(0,212,255,0.3);
}

.upload-preview.has-image {
    border-style: solid;
    border-color: #00d4ff;
}

.upload-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-placeholder {
    text-align: center;
    color: #999;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 12px;
    margin-top: 4px;
}

.upload-btn-area {
    width: 100%;
    padding: 12px;
    background: rgba(0,212,255,0.1);
    border-radius: 12px;
    text-align: center;
    color: #00d4ff;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.upload-btn-area:hover {
    background: rgba(0,212,255,0.2);
}

.upload-info {
    background: rgba(0,212,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid rgba(0,212,255,0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #aaa;
    padding: 8px 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    padding-bottom: 0;
}

.info-row .price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
}

.info-highlight {
    color: #00d4ff;
}

.info-warning {
    color: #ff9800;
    font-weight: 500;
}

/* NFT详情弹窗 */
.nft-detail-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0a0a15, #1a1a2e);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.nft-detail-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.nft-3d-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,71,87,0.1));
    pointer-events: none;
}

.nft-detail-info {
    background: rgba(0,212,255,0.05);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(0,212,255,0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #999;
    font-size: 14px;
}

.detail-value {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.hash-row {
    flex-direction: column;
    gap: 8px;
}

.hash-value {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    color: #00d4ff;
}

/* 用户详情弹窗 */
.user-profile-modal {
    max-width: 400px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e, #0d47a1);
    border-radius: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.profile-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.profile-best-score {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 12px;
}

.profile-best-score .score-num {
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
}

.profile-best-score .score-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.profile-section {
    margin-top: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.profile-nft-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.profile-nft-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 12px;
    padding: 10px;
}

.profile-nft-item.is-3d {
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,71,87,0.05));
    border-color: rgba(0,212,255,0.2);
}

.pnft-image {
    width: 50px;
    height: 50px;
    background: #0a0a15;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.pnft-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.pnft-3d-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.pnft-info {
    flex: 1;
}

.pnft-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.pnft-stats {
    display: flex;
    gap: 12px;
}

.pnft-stat {
    font-size: 12px;
    color: #999;
}

.pnft-stat:first-child {
    color: #ffc107;
}

.empty-nft-hint {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: #666;
}

.empty-state .btn-primary {
    width: auto;
    padding: 0 32px;
    margin-top: 16px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: none;
}

.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* ===== 房间页面 ===== */
.room-page {
    background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 50%, #0d47a1 100%);
}

.room-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="20" r="2" fill="rgba(0,212,255,0.15)"/><circle cx="70" cy="40" r="3" fill="rgba(0,212,255,0.1)"/><circle cx="50" cy="80" r="2" fill="rgba(0,212,255,0.15)"/><circle cx="90" cy="60" r="2" fill="rgba(0,212,255,0.08)"/></svg>');
    animation: float 20s infinite linear;
}

.room-intro {
    text-align: center;
    padding: 30px 20px 20px;
    color: white;
    position: relative;
    z-index: 5;
}

.room-intro h2 {
    font-size: 28px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.room-intro p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.room-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 30px;
    position: relative;
    z-index: 5;
}

.action-card {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,212,255,0.2);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #ff4757);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,212,255,0.15);
    border-color: rgba(0,212,255,0.4);
}

.action-card:active {
    transform: translateY(-2px);
}

.action-card.create-room-card {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(255,71,87,0.1) 100%);
}

.action-card.join-room-card {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(0,212,255,0.1) 100%);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.create-icon {
    background: linear-gradient(135deg, #ff4757, #c0392b);
}

.join-icon {
    background: linear-gradient(135deg, #00d4ff, #0066cc);
}

.action-content {
    flex: 1;
}

.action-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.action-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    line-height: 1.4;
}

.action-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-features span {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.action-card:hover .action-btn {
    background: rgba(255,255,255,0.2);
    transform: translateX(4px);
}

/* 加入房间弹窗 */
.join-modal {
    max-width: 420px;
}

.join-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.join-icon-large {
    font-size: 24px;
}

.join-room-info {
    background: rgba(0,212,255,0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,212,255,0.1);
}

.join-room-info p {
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    font-size: 14px;
}

.room-code-input-group {
    margin-bottom: 24px;
}

.room-code-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-weight: 500;
}

.room-code-input-wrapper {
    position: relative;
}

.room-code-input {
    width: 100%;
    height: 64px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-align: center;
    font-family: monospace;
    transition: all 0.3s ease;
    letter-spacing: 8px;
    padding: 0 16px;
}

.room-code-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 4px rgba(0,212,255,0.1);
    background: rgba(255,255,255,0.08);
}

.room-code-input::placeholder {
    color: rgba(255,255,255,0.3);
    letter-spacing: normal;
}

.room-code-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 12px;
    color: #ff9800;
    opacity: 0.8;
}

.room-code-preview {
    background: rgba(0,212,255,0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0,212,255,0.2);
    text-align: center;
}

.preview-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-code {
    font-size: 28px;
    font-weight: 700;
    color: #00d4ff;
    font-family: monospace;
    letter-spacing: 6px;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.btn-primary.btn-large {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    font-size: 16px;
}

.btn-text {
    font-weight: 600;
}

.btn-arrow {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.8;
}

/* ===== 房间等待页面 ===== */
.room-waiting-page {
    background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
}

.room-waiting-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.room-waiting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.room-status-badge {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.room-status-badge.waiting {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.room-status-badge.playing {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.room-waiting-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

.room-main-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.room-code-section {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(0,212,255,0.05) 100%);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,212,255,0.2);
}

.code-title {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.code-value {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0,212,255,0.3);
    backdrop-filter: blur(10px);
}

.code-digit {
    display: inline-block;
    width: 48px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,255,255,0.05));
    border-radius: 12px;
    font-size: 36px;
    font-weight: 700;
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-shadow: 0 2px 10px rgba(0,212,255,0.3);
    border: 1px solid rgba(0,212,255,0.2);
    transition: all 0.3s ease;
}

.code-digit:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(255,255,255,0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.2);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(0,212,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,212,255,0.1);
}

.copy-btn:active {
    transform: translateY(0);
}

.code-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    opacity: 0.8;
    line-height: 1.5;
}

.game-rules {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(255,71,87,0.05) 100%);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.game-rules h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-rules ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-rules li {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 8px;
}

.game-rules li::before {
    content: '✓';
    color: #00d4ff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.players-section {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(0,212,255,0.05) 100%);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.players-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.players-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0,212,255,0.1);
    transition: all 0.3s ease;
}

.player-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0,212,255,0.3);
    transform: translateX(4px);
}

.player-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.player-avatar.host-avatar {
    background: linear-gradient(135deg, #00d4ff, #0066cc);
}

.player-avatar.host-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #333;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.host-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.player-score {
    font-size: 14px;
    color: #00d4ff;
    font-weight: 500;
}

.player-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.status-dot.waiting {
    background: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
    animation: waitingPulse 1.5s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.player-waiting {
    opacity: 0.8;
    border-style: dashed;
}

.waiting-avatar {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
}

.waiting-name {
    opacity: 0.8;
}

.waiting-animation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.waiting-dot {
    width: 6px;
    height: 6px;
    background: #ff9800;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.waiting-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.waiting-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.game-start-section {
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-primary.btn-big {
    width: 100%;
    height: 60px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.btn-primary.btn-big:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.btn-primary.btn-big:active {
    transform: translateY(-2px);
}

.start-game-btn .btn-icon {
    font-size: 24px;
}

.start-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    opacity: 0.9;
    line-height: 1.5;
}

.leave-room-section {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.btn-secondary.btn-leave {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary.btn-leave:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary.btn-leave:active {
    transform: translateY(0);
}

.leave-icon {
    font-size: 18px;
}

/* ===== 响应式 ===== */
@media (min-width: 500px) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    #app {
        border-radius: 24px;
        margin: 20px auto;
        height: calc(100% - 40px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        overflow: hidden;
    }
}
