/* ============================================
   Mobile Result Screen
   m/towerfill/index.html のクリア画面用
   モックアップ(mobile_result_mockup.html)準拠
   ============================================ */

/* --- Clear Screen Base --- */
#clear-screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, #1a1e29 0%, #090a0f 100%);
    color: #fff;
    overflow: hidden;
}

/* --- Confetti Container --- */
.result-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --- Result Header --- */
.result-header {
    margin-top: 60px;
    text-align: center;
    z-index: 10;
}

.result-clear-label {
    font-family: var(--font-title, 'Orbitron', sans-serif);
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--green-neon, #00bcd4);
    letter-spacing: 3px;
    margin-bottom: 8px;
    display: block;
}

.result-clear-title {
    font-family: var(--font-title, 'Orbitron', sans-serif);
    font-size: 2.8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--green-neon, #00bcd4);
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
    letter-spacing: 2px;
}

/* --- Result Content --- */
.result-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0 24px;
}

.result-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 24px;
    padding: 30px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.result-time-label {
    font-size: 0.8rem;
    font-weight: 900;
    color: #b0bec5;
    margin-bottom: 4px;
}

.result-time-val {
    font-family: var(--font-title, 'Orbitron', sans-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

/* --- Tower Bonus Section --- */
.result-tower-bonus {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
}

.result-bonus-msg {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green-neon, #00bcd4);
}

/* --- Reward Message (ticket) --- */
.result-reward-msg {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffd54f;
    display: none;
}

/* --- Result Footer (Action Buttons) --- */
.result-footer {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.result-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.result-btn:active {
    transform: scale(0.97);
    opacity: 0.8;
}

.result-btn.-primary {
    background: var(--green-neon, #00bcd4);
    border-color: var(--green-neon, #00bcd4);
    font-family: var(--font-title, 'Orbitron', sans-serif);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.result-btn.-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.result-btn.-example {
    border-color: var(--green-neon, #00bcd4);
    color: var(--green-neon, #00bcd4);
}

.result-btn.-sns {
    border-color: #d500f9;
    color: #d500f9;
}

/* --- Mode Specific Visibility --- */
.result-mode-ui {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
}

.result-mode-ui.active {
    display: flex;
}

.result-common-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-btn-sm {
    padding: 12px 6px;
    font-size: 0.8rem;
}

/* --- Offline Sync Status --- */
.offline-sync-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    color: #b0bec5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
}

/* --- Difficulty Colors for Result Screen --- */
.ms-res-diff {
    font-weight: 900;
}
.ms-res-diff.diff-easy {
    color: var(--col-easy, #4caf50) !important;
}
.ms-res-diff.diff-normal {
    color: var(--col-normal, #ff9800) !important;
}
.ms-res-diff.diff-hard {
    color: var(--col-hard, #f44336) !important;
}

/* ============================================
   Admin Share Section (管理者専用公式コピーツール)
   ============================================ */
.admin-share-section {
    width: 100%;
    margin-top: 15px;
    padding: 16px 20px;
    background: rgba(255, 61, 0, 0.08); /* 赤・オレンジ色の管理カラー */
    border: 1px dashed #ff3d00;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 61, 0, 0.1);
    box-sizing: border-box;
}

.admin-share-title {
    font-family: var(--font-title, 'Orbitron', sans-serif);
    font-size: 0.95rem;
    font-weight: bold;
    color: #ff6d00;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.admin-share-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.admin-copy-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 61, 0, 0.15);
    border: 1px solid #ff3d00;
    color: #ff9e80;
    border-radius: 6px;
    transition: all 0.2s;
    text-align: center;
}

.admin-copy-btn:hover {
    background: #ff3d00;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.4);
}

.admin-copy-btn:active {
    transform: scale(0.97);
}
