/* /minigame/cz/assets/css/style.css */
/* 90年代游戏厅主题样式补充 */

/* 游戏币闪烁动画 */
@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.coin-spin {
    animation: coin-spin 2s linear infinite;
    display: inline-block;
}

/* 投币动画 */
@keyframes coin-drop {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    100% { transform: translateY(0) rotate(360deg); opacity: 1; }
}

.coin-drop {
    animation: coin-drop 0.5s ease-out;
}

/* 按钮按压效果 */
@keyframes button-press {
    0% { transform: translateY(0); box-shadow: 0 5px 0 rgba(204, 51, 255, 0.5); }
    50% { transform: translateY(5px); box-shadow: 0 0 0 rgba(204, 51, 255, 0.5); }
    100% { transform: translateY(0); box-shadow: 0 5px 0 rgba(204, 51, 255, 0.5); }
}

.button-press {
    animation: button-press 0.3s ease;
}

/* 霓虹灯闪烁效果 */
@keyframes neon-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.neon-flash {
    animation: neon-flash 1s infinite;
}

/* 游戏厅字体效果 */
.pixel-text {
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000;
}

/* 游戏机屏幕效果 */
.screen-effect {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 51, 102, 0.4) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    border: 3px solid #3366ff;
    box-shadow: 
        inset 0 0 30px rgba(51, 102, 255, 0.5),
        0 0 30px rgba(51, 102, 255, 0.3);
}

/* 像素网格背景 */
.pixel-grid {
    background-image: 
        linear-gradient(rgba(255, 51, 85, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 85, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 复古游戏扫描线效果 */
.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}

/* 游戏厅招牌效果 */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 游戏结束闪屏效果 */
@keyframes game-over {
    0%, 100% { background-color: #ff3355; }
    25% { background-color: #3366ff; }
    50% { background-color: #ffcc00; }
    75% { background-color: #00cc66; }
}

.game-over {
    animation: game-over 0.5s 3;
}

/* 高分数值样式 */
.high-score {
    color: #ffcc00;
    text-shadow: 
        0 0 10px #ffcc00,
        0 0 20px #ffcc00,
        0 0 30px #ffcc00;
    font-weight: bold;
}

/* 游戏厅公告板样式 */
.bulletin-board {
    background: #8B4513;
    border: 10px solid #A0522D;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><rect width="10" height="10" fill="%23A0522D"/><rect x="0" y="0" width="2" height="2" fill="%238B4513"/><rect x="5" y="5" width="2" height="2" fill="%238B4513"/></svg>') 10 repeat;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    padding: 20px;
}

/* 游戏厅高分榜样式 */
.score-board {
    background: #000;
    border: 5px solid #ff3355;
    color: #0f0;
    font-family: 'Courier New', monospace;
    padding: 15px;
}

.score-board li {
    padding: 5px 0;
    border-bottom: 1px dashed #0f0;
}

.score-board li:first-child {
    color: #ffcc00;
    font-weight: bold;
}

/* 投币孔样式 */
.coin-slot {
    width: 80px;
    height: 15px;
    background: silver;
    border-radius: 10px;
    position: relative;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.coin-slot::after {
    content: "COIN";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 摇杆样式 */
.joystick {
    width: 60px;
    height: 60px;
    background: #ff3355;
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 8px 0 #990011,
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.joystick::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ffcc00;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .marquee {
        font-size: 0.8rem;
    }
    
    .score-board {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .bulletin-board {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .marquee {
        font-size: 0.7rem;
    }
    
    .score-board, .bulletin-board {
        font-size: 0.8rem;
        padding: 10px;
    }
}