* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        #000000,
        #1a1a1a,
        #000000,
        #1a1a1a,
        #000000
    );
    animation: bgAnimation 15s linear infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(50, 50, 50, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(50, 50, 50, 0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

@keyframes bgAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.game-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.timer {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.game-area {
    width: 100%;
    height: 700px;
    background: url('beijing.jpg') center center/cover no-repeat;
    border: 2px solid #333;
    border-radius: 10px;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%);
    background-size: 30px 30px;
    animation: gridAnimation 10s linear infinite;
    pointer-events: none;
}

@keyframes gridAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

.player {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.1s ease;
    pointer-events: none;
}

.target {
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.2s ease;
    pointer-events: none;
}

.button-area {
    width: 200px;
    height: 50px;
    background: #FFD700;
    border-radius: 25px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-button {
    padding: 12px 35px;
    font-size: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.start-button:hover {
    background: #45a049;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.start-button:active {
    transform: scale(0.95);
}

.start-button.fade-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 15px;
    display: none;
    z-index: 100;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.message-text {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.message img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 223, 0, 0.3), transparent);
}

.question-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-content {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 223, 0, 0.3);
}

.image-container {
    position: relative;
    margin: 30px auto;
    width: 100%;
    max-width: 600px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    filter: brightness(0.8);
}

.question-mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 33%;
    height: 100%;
    background: rgba(255, 223, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    backdrop-filter: blur(5px);
}

.vertical-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #0a0a0a;
    font-weight: bold;
    font-size: 2.5rem;
    line-height: 1.5;
}

.vertical-text span {
    display: block;
    writing-mode: vertical-lr;
    text-orientation: upright;
    letter-spacing: 0.1em;
}

.stats {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.button-group {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

button {
    background: #FFD700;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #0a0a0a;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.reset-button {
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #333;
}

.reset-button:not(:disabled):hover {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none !important;
    opacity: 0.7;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

button:not(:disabled):hover::before {
    transform: translateX(100%);
}

button:active {
    transform: translateY(0);
} 