#sas-game{
    text-align:center;
    color:white;
    background: linear-gradient(to bottom, #eaf6ff, #bfe4ff);
    padding:15px;
}

#sas-board{
    position:relative;
    width:85vw;
    max-width:520px;
    aspect-ratio:1/1;
    margin:20px auto;
    border-radius:50%;
    overflow:hidden;

    background:
    radial-gradient(circle at 30% 30%, 
        #9ed4fb 0%,
        #5fb3f5 40%,
        #2f7fc2 70%,
        #1a3f66 100%
    );

    box-shadow:
        0 0 30px rgba(95,179,245,0.35),
        inset 0 0 50px rgba(30,80,130,0.5);
}

/* PC用 */
@media (min-width: 769px) {
    #sas-board{
        width: 70vw;      
        max-width: 550px; 
    }

    .sas-cell{
        width: 10%;       
        font-size: clamp(10px, 3vw, 16px); 
    }

    #sas-player{
        width: 8%;        
    }

    #sas-image{
        width: 70%;
        max-width: 600px;
    }

    #sas-profile{
        width: 90%;
        max-width: 600px;
        padding: 20px;
        font-size: 16px;
    }
}

.sas-cell{
    position:absolute;
    width:8%;
    aspect-ratio:1/1;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;

    background:rgba(255,255,255,0.15);
    border:1px solid rgba(95,179,245,0.7);
    color:#eaf6ff;

    font-size:clamp(8px,2.5vw,12px);
    transform:translate(-50%,-50%);
    z-index:2;
}

/*2026.02.18*/
#sas-player{
    position:absolute;
    width:0;
    height:0;

    border-left:8px solid transparent;
    border-right:8px solid transparent;
    border-bottom:28px solid #ffcc00;

    transform:translate(-50%,-50%) scale(1.1);
    z-index:5;
}

/*2026.02.18*/
#sas-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/*2026.02.18*/
#sas-modal-content img{
    max-width:90%;
    max-height:80%;
}


/*2026.02.18*/
#sas-modal-content{
    text-align:center;
}

#sas-modal img{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
    box-shadow:0 0 30px rgba(255,255,255,0.4);
    cursor:pointer;
}

/*2026.02.18*/
#sas-modal-close:hover{
    opacity:0.85;
}

/*2026.02.18*/
#sas-modal-close{
    position:static;        /* ← これ重要 */
    display:inline-block;
    padding:10px 30px;
    margin-top:15px;
    font-size:16px;
    background:#5fb3f5;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

#sas-game button{
    width:80%;
    max-width:300px;
    padding:12px;
    font-size:16px;
    margin:8px 0;
    border:none;
    border-radius:8px;
}

/* ボタン演出 */
#sas-game button {
    cursor: pointer;
    background: #5fb3f5;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 4px #9ed4fb;
    transition: all 0.1s ease;
}

#sas-game button:hover {
    background: #4aa3e6;
}

#sas-game button:active {
    transform: translateY(2px);
    box-shadow: 0 2px #2f7fc2;
}

#sas-image{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:70%;
    aspect-ratio:1/1;
    border-radius:50%;
    overflow:hidden;
    z-index:0;
}

#sas-image img{
    width:100%;
    height:100%;
    object-fit:cover;

	/*2026.02.18*/
    cursor: pointer;
    transition: transform 0.3s ease;
}

/*2026.02.18*/
.zoom-text{
    position:absolute;
    bottom:10px;
    right:12px;
    background:rgba(0,0,0,0.6);
    color:#fff;
    font-size:14px;
    padding:4px 8px;
    border-radius:12px;
    pointer-events:none;
}

#sas-profile{
    width:85%;
    max-width:500px;
    margin:15px auto;
    padding:15px;

    background:#ffffff;
    backdrop-filter:blur(10px);

    border-radius:15px;
    border:1px solid rgba(95,179,245,0.6);

    color:#123;
    font-size:14px;
    line-height:1.6;
    text-align:left;
}

/* タイトル */
.route-title {
    text-align: center;
    color:#1a3f66;
}

@media (max-width: 768px) {
    .route-title {
        text-align: left;
    }

    .route-title .start {
        display: block;
    }

    .route-title .rest {
        display: block;
        margin-left: 3em;
        margin-top: 5px;
    }
}

/* ===== ルール背景 ===== */
.rule-section{
    margin-top:30px;
    padding:40px 20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 1px, transparent 2px),
        radial-gradient(circle at 80% 60%, rgba(200,230,255,0.15) 1px, transparent 2px),
        linear-gradient(180deg,#1a3f66,#2f7fc2);
    background-size: 200px 200px, 250px 250px, cover;
    border-radius:20px;
}

.rule-title{
    text-align:center;
    font-size:22px;
    letter-spacing:4px;
    margin-bottom:12px;

    color:#ffffff;
    font-weight:700;

    text-shadow:
        0 0 6px rgba(255,255,255,0.6),
        0 0 12px rgba(95,179,245,0.6);
}

.rule-panel{
    background: rgba(255,255,255,0.95);
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
    line-height:1.9;
    font-size:15px;
    position:relative;
    margin-top:18px;   
}

.rule-panel::before{
    content:"";
    position:absolute;
    top:-14px;
    left:40px;
    right:40px;
    height:3px;
    background:linear-gradient(90deg,#5fb3f5,#9ed4fb,#5fb3f5);
    border-radius:4px;
}

.rule-panel h3{
    margin-top:15px;
    font-size:16px;
    letter-spacing:1px;
    color:#2f7fc2;
}

.rule-panel hr{
    border:none;
    height:1px;
    background:linear-gradient(90deg,transparent,#5fb3f5,transparent);
    margin:20px 0;
}

.rank-list{
    font-weight:600;
}

@media (max-width:768px){
    .rule-panel{
        padding:20px;
        font-size:14px;
    }

    .rule-title{
        font-size:18px;
        letter-spacing:2px;
    }
}


#sas-dice-remain,
#sas-log {
    color: #000;
}