/* [경기장] 메인 레이아웃 */
.field-wrapper {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    margin: 4% 0;
    position: relative;
}

.team {
    flex: 1;
    padding: 20px;
    text-align: center;
    position: relative;
    border: 2px solid white;
}

.field-surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #4CAF50;
    background-image: repeating-linear-gradient(to right, rgba(0,0,0,0.1) 0, rgba(0,0,0,0.1) 50px, rgba(0,0,0,0.05) 50px, rgba(0,0,0,0.05) 100px);
}

/* [선수/유니폼] */
.team .player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    z-index: 5;
}

.team .player .player-number {
    width: 50px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    clip-path: polygon(15% 0%, 85% 0%, 100% 25%, 85% 35%, 85% 100%, 15% 100%, 15% 35%, 0% 25%);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

.team[data-team="a"] .player .player-number { background-color: var(--team-a-color); }
.team[data-team="b"] .player .player-number { background-color: var(--team-b-color); }

.team .player .player-name {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 80px;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: 0.85rem;
    font-weight: bold;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    z-index: 20;
}

/* [경기장 라인] */
.field-line {
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.7);
    border-style: solid;
}

.team .goal-line { width: 2px; height: 100%; background-color: rgba(255, 255, 255, 0.7); }
.team .center-circle { width: 120px; height: 120px; border-width: 2px; border-radius: 50%; }
.team .penalty-box { width: 16.5%; height: 40%; border-width: 2px; }
