* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFD4A3 50%, #FFC78A 100%);
    min-height: 100vh;
    overflow-x: hidden;
    touch-action: manipulation;
}

#app {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-top: 70px;
}

.music-toggle-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle-btn:active {
    transform: scale(0.9);
}

@media (max-width: 600px) {
    .music-toggle-btn {
        width: 70px;
        height: 70px;
        font-size: 36px;
        top: 10px;
        right: 10px;
    }
}

.user-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255,152,0,0.3);
}

.user-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-nickname {
    font-size: 22px;
    font-weight: 800;
    color: #FFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.member-expire {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.user-info-right {
    display: flex;
    gap: 10px;
}

.small-btn {
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 44px;
    min-width: 80px;
}

.small-btn:active {
    transform: scale(0.95);
}

.admin-btn {
    background: #FFF;
    color: #FF6B35;
    box-shadow: 0 3px 0 #E8D5C4;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: #FFF;
    border: 2px solid rgba(255,255,255,0.5);
}

.member-btn-small {
    background: rgba(255,255,255,0.15);
    color: #FFF;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 20px;
    border-radius: 50%;
    margin: 0 8px;
}

.member-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #3BA99C 100%);
    color: #FFF;
    box-shadow: 0 4px 0 #2D8B81;
    font-size: 18px;
    padding: 12px 30px;
}

.auth-screen {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-screen.active {
    display: flex;
}

.auth-card {
    background: #FFF;
    border-radius: 40px;
    padding: 40px 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 0 #E8D5C4, 0 20px 50px rgba(0,0,0,0.15);
}

.auth-mascot {
    font-size: 5em;
    text-align: center;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.auth-title {
    font-size: 2.2em;
    color: #FF6B35;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 900;
    text-shadow: 2px 2px 0 #FFF, -1px -1px 0 #FFF;
}

.auth-subtitle {
    font-size: 1.2em;
    color: #8B5A2B;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 20px;
    font-weight: 700;
    color: #8B5A2B;
    padding-left: 5px;
}

.form-input {
    border: 4px solid #FFD4A3;
    border-radius: 20px;
    padding: 18px 20px;
    font-size: 22px;
    font-weight: 600;
    color: #5D4037;
    background: #FFFAF5;
    transition: all 0.2s ease;
    min-height: 60px;
    -webkit-user-select: text;
    user-select: text;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.2);
}

.form-input::placeholder {
    color: #BCAAA4;
    font-weight: 500;
}

.big-btn {
    border: none;
    border-radius: 25px;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 80px;
    min-width: 120px;
}

.big-btn:active {
    transform: scale(0.95);
}

.primary-btn {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #FFF;
    box-shadow: 0 8px 0 #E65100;
}

.primary-btn:active {
    box-shadow: 0 4px 0 #E65100;
    transform: translateY(4px) scale(0.98);
}

.full-width {
    width: 100%;
}

.auth-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.link-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #FF6B35;
    font-weight: 700;
    cursor: pointer;
    padding: 10px;
    text-decoration: underline;
}

.link-btn:active {
    color: #E65100;
}

.auth-message {
    padding: 15px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    min-height: 20px;
}

.auth-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 3px solid #EF9A9A;
}

.auth-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 3px solid #A5D6A7;
}

.payment-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 3px dashed #FFD4A3;
}

.payment-title {
    font-size: 20px;
    color: #8B5A2B;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.pay-btn {
    width: 100%;
    margin-bottom: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.6;
    cursor: not-allowed;
}

.wechat-btn {
    background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
    color: #FFF;
    box-shadow: 0 6px 0 #058D46;
}

.alipay-btn {
    background: linear-gradient(135deg, #1677FF 0%, #0958D9 100%);
    color: #FFF;
    box-shadow: 0 6px 0 #0040A8;
}

.pay-icon {
    font-size: 28px;
}

.screen {
    display: none;
    padding: 20px;
    min-height: calc(100vh - 70px);
}

.screen.active {
    display: block;
}

.welcome-section {
    text-align: center;
    padding: 30px 20px;
}

.game-title {
    font-size: 2.5em;
    color: #FF6B35;
    text-shadow: 3px 3px 0 #FFF, -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF;
    margin-bottom: 10px;
    font-weight: 900;
}

.welcome-text {
    font-size: 1.3em;
    color: #8B5A2B;
    font-weight: 600;
}

.mascot-section {
    text-align: center;
    margin: 20px 0;
}

.mascot {
    font-size: 8em;
    animation: bounce 1s ease-in-out infinite;
}

.mascot-message {
    font-size: 1.2em;
    color: #6B4423;
    margin-top: 10px;
    font-weight: 600;
}

.mode-section {
    margin-bottom: 25px;
}

.mode-title {
    font-size: 1.3em;
    color: #8B5A2B;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 800;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 15px;
}

.vs-card {
    background: linear-gradient(135deg, #FFF 0%, #FFE8E8 100%);
    border: 4px solid #FF6B6B;
    box-shadow: 0 8px 0 #E85555, 0 10px 20px rgba(255,107,107,0.2);
}

.vs-card .game-name {
    color: #FF4757;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.game-card {
    background: #FFF;
    border: none;
    border-radius: 30px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 0 #E8D5C4, 0 10px 20px rgba(0,0,0,0.1);
    min-height: 200px;
}

.game-card:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #E8D5C4, 0 6px 10px rgba(0,0,0,0.1);
}

.game-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.game-name {
    font-size: 1.4em;
    font-weight: 800;
    color: #FF6B35;
    margin-bottom: 5px;
}

.game-desc {
    font-size: 1em;
    color: #8B7355;
}

.progress-section {
    text-align: center;
    padding: 30px;
}

.stars-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFF;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.8em;
    font-weight: 800;
    color: #FFB800;
    box-shadow: 0 6px 0 #E8D5C4;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 20px;
    margin-bottom: 10px;
}

.admin-title {
    font-size: 1.8em;
    color: #FF6B35;
    font-weight: 900;
}

.admin-card {
    background: #FFF;
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 0 #E8D5C4;
}

.admin-section-title {
    font-size: 1.4em;
    color: #FF6B35;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-card-item {
    background: #FFF8E1;
    border: 3px solid #FFE082;
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-item.used {
    background: #F5F5F5;
    border-color: #E0E0E0;
    opacity: 0.6;
}

.card-code {
    font-size: 22px;
    font-weight: 800;
    color: #FF6B35;
    font-family: monospace;
    letter-spacing: 2px;
}

.card-info {
    display: flex;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
}

.card-type {
    color: #4ECDC4;
}

.card-status {
    color: #8B7355;
}

.user-card {
    background: #FFF;
    border: 3px solid #FFD4A3;
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-card.banned {
    background: #FFEBEE;
    border-color: #EF9A9A;
    opacity: 0.8;
}

.user-card.in-game {
    border-color: #4CAF50;
    border-width: 4px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F1F8E9 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.user-info-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    font-size: 48px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 22px;
    font-weight: 800;
    color: #5D4037;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    color: #8B7355;
    font-weight: 600;
}

.user-role {
    background: #E3F2FD;
    color: #1565C0;
    padding: 2px 8px;
    border-radius: 8px;
}

.user-game-status {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #2E7D32;
    background: #E8F5E9;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
}

.user-idle-status {
    margin-top: 6px;
    font-size: 14px;
    color: #9E9E9E;
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-btn {
    border: none;
    border-radius: 15px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 4px 0 rgba(0,0,0,0.15);
    min-width: 110px;
    text-align: center;
}

.action-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.spectate-btn-big {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    padding: 16px 28px;
    min-width: 130px;
    box-shadow: 0 4px 0 #5E35B1;
}

.user-card.in-game .spectate-btn-big {
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 0 #5E35B1, 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 0 #5E35B1, 0 0 0 10px rgba(102, 126, 234, 0); }
}

.ban-btn {
    background: #FFEBEE;
    color: #C62828;
    box-shadow: 0 4px 0 #FFCDD2;
}

.unban-btn {
    background: #E8F5E9;
    color: #2E7D32;
    box-shadow: 0 4px 0 #C8E6C9;
}

.self-badge, .admin-badge {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
}

.self-badge {
    background: #FFF3E0;
    color: #E65100;
}

.admin-badge {
    background: #E3F2FD;
    color: #1565C0;
}

.empty-text {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #8B7355;
    font-weight: 600;
}

.spectate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 15px;
    margin-bottom: 10px;
}

.spectate-title-big {
    font-size: 2em;
    color: #FF6B35;
    font-weight: 900;
    text-align: center;
    text-shadow: 2px 2px 0 #FFF;
}

.spectate-tip {
    text-align: center;
    font-size: 1.2em;
    color: #8B5A2B;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
}

.spectate-screen-full {
    max-width: 1000px;
    margin: 0 auto;
}

.spectate-game-area {
    background: #FFF;
    border-radius: 30px;
    padding: 30px;
    min-height: 500px;
    box-shadow: 0 10px 0 #E8D5C4;
    position: relative;
}

.spectate-game-area .spectate-waiting {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #8B7355;
    font-weight: 700;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 20px;
}

.back-btn {
    background: #FFF;
    border: none;
    border-radius: 20px;
    padding: 15px 25px;
    font-size: 20px;
    font-weight: 700;
    color: #8B5A2B;
    cursor: pointer;
    box-shadow: 0 4px 0 #E8D5C4;
    min-height: 60px;
    min-width: 100px;
}

.back-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #E8D5C4;
}

.current-game-title {
    font-size: 1.5em;
    color: #FF6B35;
    font-weight: 800;
}

.game-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: 800;
    color: #FFB800;
    box-shadow: 0 4px 0 #E8D5C4;
}

.game-area {
    background: #FFF;
    border-radius: 30px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 10px 0 #E8D5C4;
}

.continue-btn {
    background: #4ECDC4;
    color: #FFF;
    box-shadow: 0 6px 0 #3BA99C;
}

.continue-btn:active {
    box-shadow: 0 2px 0 #3BA99C;
}

.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 200, 100, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.celebration-overlay.active {
    display: flex;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.celebration-content {
    text-align: center;
    background: #FFF;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 15px 0 #E8D5C4, 0 20px 40px rgba(0,0,0,0.2);
}

.celebration-emoji {
    font-size: 6em;
    margin-bottom: 20px;
    animation: celebrate 0.5s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.celebration-content h2 {
    font-size: 2.5em;
    color: #FF6B35;
    margin-bottom: 10px;
}

.celebration-content p {
    font-size: 1.3em;
    color: #8B5A2B;
    margin-bottom: 20px;
}

.celebration-stars {
    font-size: 3em;
    margin-bottom: 30px;
    letter-spacing: 10px;
}

.difficulty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 25px;
    max-width: fit-content;
}

.diff-label {
    font-size: 1.2em;
    font-weight: 800;
    color: #8B5A2B;
}

.diff-btn {
    border: none;
    border-radius: 20px;
    padding: 15px 22px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #FFF;
    color: #8B7355;
    box-shadow: 0 4px 0 #E8D5C4;
    min-height: 60px;
}

.diff-btn.active {
    background: #4ECDC4;
    color: #FFF;
    box-shadow: 0 4px 0 #3BA99C;
    transform: scale(1.05);
}

.diff-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #E8D5C4;
}

.diff-btn.active:active {
    box-shadow: 0 2px 0 #3BA99C;
}

.badges-display {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    font-size: 2em;
}

.badge-item {
    display: inline-block;
    animation: badgeBounce 0.5s ease;
    cursor: default;
}

@keyframes badgeBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.rest-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 150, 200, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.rest-overlay.active {
    display: flex;
    animation: popIn 0.3s ease;
}

.rest-content {
    text-align: center;
    background: #FFF;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 15px 0 #B8D0E8, 0 20px 40px rgba(0,0,0,0.2);
}

.rest-emoji {
    font-size: 6em;
    margin-bottom: 20px;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rest-content h2 {
    font-size: 2.2em;
    color: #2196F3;
    margin-bottom: 10px;
}

.rest-content p {
    font-size: 1.3em;
    color: #8B5A2B;
    margin-bottom: 25px;
}

.home-btn {
    background: #FF9800;
    color: #FFF;
    box-shadow: 0 6px 0 #E68900;
    margin-left: 15px;
}

.home-btn:active {
    box-shadow: 0 2px 0 #E68900;
}

.celebration-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-unlock {
    position: fixed;
    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: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.badge-unlock.active {
    opacity: 1;
    pointer-events: auto;
}

.badge-content {
    text-align: center;
    background: linear-gradient(135deg, #FFE66D 0%, #FFB800 100%);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 0 50px rgba(255,184,0,0.6);
    animation: badgePop 0.5s ease;
}

@keyframes badgePop {
    0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}

.badge-emoji {
    font-size: 7em;
    margin-bottom: 15px;
}

.badge-title {
    font-size: 1.8em;
    font-weight: 900;
    color: #8B5A00;
    margin-bottom: 10px;
}

.badge-name {
    font-size: 2em;
    font-weight: 900;
    color: #FFF;
    text-shadow: 2px 2px 0 #8B5A00;
    margin-bottom: 10px;
}

.badge-desc {
    font-size: 1.2em;
    color: #8B5A00;
    font-weight: 700;
}

.game-tip {
    text-align: center;
    font-size: 1.1em;
    color: #8B7355;
    margin-top: 15px;
    font-weight: 700;
}

.game-floating-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(255,255,255,0.95);
    padding: 20px 30px;
    border-radius: 20px;
    font-size: 1.5em;
    font-weight: 800;
    color: #4ECDC4;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.game-floating-tip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 500px) {
    #app {
        padding-top: 80px;
    }
    
    .user-info-bar {
        padding: 10px 15px;
    }
    
    .user-nickname {
        font-size: 18px;
    }
    
    .member-expire {
        font-size: 12px;
    }
    
    .small-btn {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 60px;
        min-height: 40px;
    }
    
    .game-title {
        font-size: 1.8em;
    }
    .mascot {
        font-size: 6em;
    }
    .games-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .game-icon {
        font-size: 3em;
    }
    .difficulty-selector {
        gap: 8px;
        padding: 10px;
    }
    .diff-btn {
        padding: 12px 16px;
        font-size: 18px;
    }
    .big-btn {
        padding: 18px 30px;
        font-size: 20px;
        min-height: 70px;
    }
    .home-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    .celebration-buttons {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.8em;
    }
    
    .form-label {
        font-size: 18px;
    }
    
    .form-input {
        font-size: 20px;
        padding: 15px 18px;
        min-height: 55px;
    }
    
    .user-meta {
        font-size: 12px;
    }
    
    .user-name {
        font-size: 20px;
    }
    
    .card-code {
        font-size: 18px;
    }
    
    .spectate-title-big {
        font-size: 1.5em;
    }
    
    .spectate-game-area {
        padding: 20px;
        min-height: 400px;
    }
}

.admin-entry-card {
    margin: 10px auto 20px;
    max-width: 400px;
}

.admin-card-big {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 4px solid #fff !important;
    color: white !important;
}

.admin-card-big .game-icon {
    font-size: 64px;
}

.admin-card-big .game-name {
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.admin-card-big .game-desc {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
}

.admin-card-big:active {
    transform: scale(0.98);
}

.level-select-container {
    background: #FFF;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 10px 0 #E8D5C4;
}

.continue-btn-area {
    text-align: center;
    margin-bottom: 25px;
}

.continue-big-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    color: #FFF;
    border: none;
    border-radius: 30px;
    padding: 25px 50px;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 0 #CC4444;
    animation: continuePulse 1.5s ease-in-out infinite;
    min-height: 90px;
    min-width: 280px;
}

.continue-big-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #CC4444;
}

@keyframes continuePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.level-btn {
    background: #E0E0E0;
    border: none;
    border-radius: 20px;
    padding: 20px 10px;
    font-size: 24px;
    font-weight: 800;
    color: #9E9E9E;
    cursor: not-allowed;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.level-btn.unlocked {
    background: linear-gradient(135deg, #81C784 0%, #4CAF50 100%);
    color: #FFF;
    cursor: pointer;
    box-shadow: 0 5px 0 #388E3C;
}

.level-btn.unlocked:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #388E3C;
}

.level-btn.completed {
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
    color: #5D4037;
    cursor: pointer;
    box-shadow: 0 5px 0 #FFA000;
}

.level-btn.completed:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #FFA000;
}

.level-num {
    font-size: 28px;
    font-weight: 900;
}

.level-stars {
    font-size: 16px;
    letter-spacing: 2px;
}

.vs-ready-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 400px;
}

.ready-btn {
    flex: 1;
    border: none;
    border-radius: 30px;
    font-size: 32px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.2s ease;
    min-height: 180px;
}

.ready-btn.blue-ready {
    background: linear-gradient(135deg, #64B5F6 0%, #2196F3 100%);
    color: #FFF;
    box-shadow: 0 8px 0 #1976D2;
}

.ready-btn.blue-ready:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #1976D2;
}

.ready-btn.orange-ready {
    background: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
    color: #FFF;
    box-shadow: 0 8px 0 #F57C00;
}

.ready-btn.orange-ready:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #F57C00;
}

.ready-btn.ready-done {
    background: #9E9E9E !important;
    color: #FFF !important;
    box-shadow: 0 4px 0 #616161 !important;
    cursor: not-allowed !important;
    font-size: 28px;
}

.ready-icon {
    font-size: 60px;
}

.celebration-badges {
    margin-bottom: 15px;
}

.badge-unlock-inline {
    display: inline-block;
    background: linear-gradient(135deg, #FFE66D 0%, #FFB800 100%);
    padding: 15px 25px;
    border-radius: 20px;
    margin: 5px;
    animation: badgePop 0.6s ease;
}

@keyframes badgePop {
    0% { transform: scale(0) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

.badge-unlock-inline .badge-emoji-inline {
    font-size: 40px;
}

.badge-unlock-inline .badge-name-inline {
    font-size: 18px;
    font-weight: 800;
    color: #8B5A00;
    display: block;
}

.celebration-rest {
    font-size: 20px;
    color: #2196F3;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 15px;
    background: #E3F2FD;
    border-radius: 15px;
}

.celebration-buttons {
    gap: 12px;
}

.celebration-buttons .big-btn {
    font-size: 22px;
    padding: 18px 30px;
    min-height: 70px;
}

@media (max-width: 600px) {
    .levels-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .level-btn {
        padding: 15px 5px;
        min-height: 75px;
        font-size: 20px;
    }
    
    .level-num {
        font-size: 22px;
    }
    
    .level-stars {
        font-size: 12px;
    }
    
    .continue-big-btn {
        font-size: 24px;
        padding: 20px 40px;
        min-height: 80px;
        min-width: 240px;
    }
    
    .ready-btn {
        font-size: 26px;
        min-height: 150px;
    }
    
    .ready-icon {
        font-size: 50px;
    }
}

.badge-unlock {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 15px;
    margin: 15px 0;
}

.badge-unlock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3em;
    font-weight: 800;
    padding: 8px;
    color: #5D4037;
}

.badge-emoji {
    font-size: 1.5em;
    animation: badgePop 0.6s ease infinite alternate;
}

.rest-tip {
    background: rgba(255,235,59,0.95);
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.3em;
    font-weight: 800;
    color: #F57F17;
    text-align: center;
}

/* ===== 桌面端响应式适配 ===== */
@media (min-width: 801px) {
    #app {
        max-width: 1200px;
        padding-top: 80px;
    }

    .user-info-bar {
        max-width: 1200px;
        padding: 14px 30px;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 25px;
        gap: 25px;
    }

    .game-area {
        min-height: 500px;
        padding: 40px;
    }

    .game-header {
        padding: 20px 10px;
    }

    .current-game-title {
        font-size: 1.8em;
    }

    .welcome-section {
        padding: 40px 20px 20px;
    }

    .game-title {
        font-size: 3em;
    }

    .mascot {
        font-size: 9em;
    }

    .spectate-game-area {
        min-height: 600px;
        padding: 40px;
    }

    .spectate-title-big {
        font-size: 2.2em;
    }

    .level-select-container {
        padding: 40px;
    }

    .levels-grid {
        gap: 18px;
    }

    .vs-ready-screen {
        min-height: 500px;
    }
}
