/* =========================
   RESET
========================= */

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

body{

    font-family:
    "Pretendard",
    "Noto Sans KR",
    sans-serif;

    background:
    radial-gradient(
        circle at center,
        #3b2b18,
        #1b130b 80%
    );

    min-height:100vh;

    color:white;
}


/* =========================
   SCREEN
========================= */

.screen{

    display:none;

    width:100%;
    min-height:100vh;

}

.screen.active{

    display:block;
}


/* =========================
   START SCREEN
========================= */

.start-card{

    width:600px;

    margin:100px auto;

    background:
    rgba(30,20,12,.95);

    padding:50px;

    border-radius:30px;

    text-align:center;

    border:
    2px solid rgba(212,175,55,.3);

    box-shadow:
    0 20px 60px rgba(0,0,0,.5);

}

.start-card h1{

    font-size:56px;

    color:#f0d17b;

    margin-bottom:20px;

}

.subtitle{

    font-size:18px;

    color:#d9d0c3;

    margin-bottom:40px;

}

.player-count{

    margin-bottom:30px;

}

.player-count h2{

    margin-bottom:15px;

}

select{

    width:250px;

    padding:14px;

    border-radius:12px;

    border:none;

    font-size:18px;

}


/* =========================
   REGISTER
========================= */

.register-card{

    width:900px;

    margin:60px auto;

    background:
    rgba(30,20,12,.95);

    border-radius:30px;

    padding:40px;

}

.register-card h2{

    margin-bottom:30px;

    color:#f0d17b;

}

.player-form{

    display:grid;

    grid-template-columns:
    1fr 1fr;

    gap:20px;

    margin-bottom:30px;

}

.player-box{

    background:
    rgba(255,255,255,.05);

    padding:20px;

    border-radius:15px;

}

.player-box input{

    width:100%;

    padding:12px;

    margin-top:10px;

    border-radius:10px;

    border:none;

}


/* =========================
   BUTTON
========================= */

.gold-btn{

    padding:14px 28px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:18px;

    font-weight:700;

    color:#2f2418;

    background:
    linear-gradient(
        135deg,
        #d4af37,
        #f5de92
    );

    transition:.2s;

}

.gold-btn:hover{

    transform:
    translateY(-3px);

}


/* =========================
   GAME LAYOUT
========================= */

.layout{

    display:grid;

    grid-template-columns:
    280px
    1fr
    320px;

    gap:20px;

    padding:20px;

}


/* =========================
   PANEL
========================= */

.panel{

    background:
    rgba(20,15,10,.95);

    border-radius:20px;

    padding:20px;

    border:
    1px solid rgba(212,175,55,.2);

    box-shadow:
    0 10px 30px rgba(0,0,0,.4);

}

.panel h3{

    margin-bottom:20px;

    color:#f0d17b;

}


/* =========================
   PLAYER LIST
========================= */

.player-card{

    background:
    rgba(255,255,255,.05);

    border-radius:15px;

    padding:15px;

    margin-bottom:12px;

}

.player-card.active{

    border:
    2px solid #d4af37;
}

.player-name{

    font-size:18px;

    font-weight:700;

}

.player-progress{

    margin-top:8px;

    color:#d6d6d6;

}


/* =========================
   BOARD
========================= */

.board-section{

    display:flex;

    flex-direction:column;

    align-items:center;

}

#board{

    width:850px;

    height:850px;

    border-radius:50%;

    position:relative;

    background:
    radial-gradient(
        circle,
        #f4ead7,
        #e2d2b6
    );

    border:
    12px solid #d4af37;

    box-shadow:
    0 0 50px rgba(0,0,0,.4);

}


/* 중앙 */

#board::after{

    content:
    "TRUST KITCHEN";

    position:absolute;

    top:50%;

    left:50%;

    transform:
    translate(-50%,-50%);

    width:350px;

    height:350px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    font-size:42px;

    font-weight:800;

    color:#d4af37;

    background:
    radial-gradient(
        circle,
        #2a1d12,
        #120d08
    );

}


/* =========================
   SPACE
========================= */

.space{

    width:110px;

    height:70px;

    position:absolute;

    border-radius:15px;

    background:white;

    color:#333;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    font-size:13px;

    font-weight:700;

    box-shadow:
    0 6px 15px rgba(0,0,0,.2);

}

.space.golden{

    background:
    linear-gradient(
        135deg,
        #7a5b1f,
        #d4af37
    );

    color:white;

}

.space.review{

    background:
    linear-gradient(
        135deg,
        #3b82f6,
        #60a5fa
    );

    color:white;

}


/* =========================
   PLAYER TOKEN
========================= */

.token{

    width:24px;

    height:24px;

    border-radius:50%;

    border:3px solid white;

    position:absolute;

    z-index:999;

}

.token.p1{background:#ef4444;}
.token.p2{background:#3b82f6;}
.token.p3{background:#10b981;}
.token.p4{background:#f59e0b;}
.token.p5{background:#8b5cf6;}
.token.p6{background:#ec4899;}


/* =========================
   DICE
========================= */

.dice-area{

    margin-top:25px;

}

.dice-btn{

    width:220px;

    height:70px;

    border:none;

    border-radius:18px;

    font-size:22px;

    font-weight:700;

    cursor:pointer;

    background:
    linear-gradient(
        135deg,
        #d4af37,
        #f6dc92
    );

}


/* =========================
   COLLECTION
========================= */

.collection-item{

    display:flex;

    justify-content:space-between;

    padding:10px;

    margin-bottom:10px;

    border-radius:10px;

    background:
    rgba(255,255,255,.05);

}

.collection-item.done{

    border-left:
    4px solid #22c55e;
}


/* =========================
   LOG
========================= */

#logPanel{

    margin:20px;

}

#gameLog{

    max-height:220px;

    overflow-y:auto;

}

.log-item{

    padding:10px;

    border-bottom:
    1px solid rgba(255,255,255,.1);

}


/* =========================
   MODAL
========================= */

.modal{

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,.7);

    display:flex;

    justify-content:center;

    align-items:center;

}

.hidden{

    display:none;
}

.modal-content{

    width:650px;

    background:white;

    color:#222;

    padding:35px;

    border-radius:25px;

    text-align:center;

    box-shadow:
    0 20px 50px rgba(0,0,0,.4);

}

.modal-content h2{

    margin-bottom:20px;

}


/* =========================
   MOBILE
========================= */

@media(max-width:1400px){

    .layout{

        grid-template-columns:
        1fr;

    }

    #board{

        width:90vw;
        height:90vw;
    }

}

@media(max-width:768px){

    .start-card,
    .register-card{

        width:95%;

    }

    #board{

        width:95vw;
        height:95vw;
    }

    .space{

        width:75px;
        height:50px;
        font-size:11px;

    }

}