/* ツモパターン一覧ページ専用スタイル */

.tsumo-page {
    padding-top: 80px;
    padding-bottom: 100px;
    background-color: #fbfbfd;
}

.text-center {
    text-align: center;
}

/* ヒーローセクション */
.basic-hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background: #fff;
    padding: 40px 0;
}

.basic-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #000, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.basic-subtitle {
    font-size: 1.1rem;
    color: #888;
    font-weight: 700;
}

/* 白パネル共通設定 */
.reference-panel {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ツモパターンの各行デザイン */
.tsumo-row {
    display: flex;
    flex-direction: row; 
    align-items: center;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 15px 20px; 
    margin-bottom: 12px;
    transition: all 0.2s ease;
    gap: 15px; 
}

.tsumo-row:hover {
    border-color: #ddd;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* 左側：キャラアイコンと名前 */
.char-info {
    flex: 0 0 95px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 2px dashed #eee;
    padding-right: 15px;
}

.char-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #e1e1e1;
}

.char-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.char-icon.fallback {
    width: 60%;
    height: 60%;
    opacity: 0.3;
}

.char-name {
    font-weight: 900;
    font-size: 0.85rem; /* PC時も少し小さくして余裕を確保 */
    color: #111;
    line-height: 1.2;
    white-space: nowrap; /* ★PCでもスマホでも改行させない */
}

/* 右側：ツモ詳細（2段構成） */
.tsumo-details {
    flex: 1;
    min-width: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

/* 1行目：16手のツモ画像並び */
.tsumo-sequence {
    display: grid; 
    grid-template-columns: repeat(16, 1fr);
    gap: 4px; 
    width: 100%;
    align-items: center;
}

.tsumo-img {
    width: 100%; 
    height: auto;
    max-width: 44px; 
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); 
}

/* 2行目：ぷよ量の集計表示 */
.tsumo-stats {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; 
    white-space: nowrap; 
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    gap: 6px; 
    overflow-x: auto; 
    scrollbar-width: none; 
}

.tsumo-stats::-webkit-scrollbar {
    display: none;
}

.stat-total {
    color: #111;
}

.highlight {
    font-size: 1.05rem;
    color: #e74c3c;
    margin-left: 2px;
    margin-right: 1px; /* 「個」と数字の隙間調整 */
}

.stat-divider {
    color: #ccc;
    font-weight: normal;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px; 
}

.stat-item img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
    .basic-title { font-size: 2.2rem; }
    
    .reference-panel {
        padding: 15px;
    }
    
    .tsumo-row {
        padding: 10px;
        gap: 10px;
        border-radius: 12px;
    }
    
    /* スマホ用に左側エリアをさらにコンパクトに調整 */
    .char-info {
        flex: 0 0 72px; /* ★65pxから少し広げて文字幅を確保 */
        padding-right: 8px; /* ★右側の余白を少し詰める */
        border-right: 1px dashed #eee;
    }
    
    .char-icon-wrapper {
        width: 44px;
        height: 44px;
        margin-bottom: 5px;
    }
    
    .char-name {
        font-size: 0.65rem; /* ★0.75remから縮小し、6文字でも収まるように */
        letter-spacing: -0.05em; /* ★文字の隙間をほんの少し詰める */
    }
    
    .tsumo-details {
        gap: 8px; 
    }
    
    .tsumo-sequence {
        gap: 2px; 
    }
    
    .tsumo-stats {
        padding: 6px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .stat-item img {
        height: 14px;
    }
    
    .highlight {
        font-size: 0.85rem;
    }
}