/* Gameplay Section */
.gameplay {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.gameplay h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.gameplay h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #204040, transparent);
}

.gameplay-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gameplay-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.gameplay-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #204040 30%, #204040 70%, transparent);
    z-index: 1;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(32, 64, 64, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(32, 64, 64, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #204040;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(32, 64, 64, 0.3);
}

.step-screenshot {
    margin-top: 2rem;
}

.step-screenshot img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step:hover .step-screenshot img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Interactive Elements */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.action-button {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.attack-button {
    background: #ff4d4d;
}

.defense-button {
    background: #4d79ff;
}

.magic-button {
    background: #9f4dff;
}

.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Number Grid */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 1rem 0;
}

.number-cell {
    background: rgba(32, 64, 64, 0.1);
    border-radius: 5px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.number-cell:hover {
    background: rgba(32, 64, 64, 0.2);
    transform: scale(1.1);
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.avatar-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.avatar-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}