/* 新手任务：主页入口与任务详情 */
#tutorialWidget {
    width: calc(100% - 112px);
    max-width: 480px;
    margin: 8px auto 0;
}

.tutorial-widget-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 114px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    border-radius: 14px;
    background: linear-gradient(115deg, #36270f 0%, #191b1c 60%, #17191b 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 3px 0 0 #ffd700;
}

.tutorial-widget-card.is-claimable {
    border-color: #ffd700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.2), inset 3px 0 0 #ffd700;
}

#tutorialWidget .tutorial-widget-main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
}

.tutorial-widget-top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 12px;
}

.tutorial-widget-kicker {
    color: #ffd700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.tutorial-widget-count {
    color: #e7d5a8;
    font-size: 11px;
    font-weight: 700;
}

.tutorial-widget-name {
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutorial-widget-desc {
    max-width: 100%;
    overflow: hidden;
    color: #d6d4cd;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutorial-widget-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bcb7a9;
    font-size: 11px;
    line-height: 1.4;
}

.tutorial-widget-reward strong {
    color: #fff;
    font-size: 12px;
}

#tutorialWidget .tutorial-widget-claim {
    flex: none;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: #ffd700;
    color: #291c00;
    font-size: 13px;
    font-weight: 800;
}

.tutorial-widget-arrow {
    flex: none;
    color: #ffd700;
    font-size: 28px;
    line-height: 1;
}

.tutorial-red-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e53939;
    box-shadow: 0 0 9px rgba(229, 57, 57, 0.8);
    pointer-events: none;
}

.tutorial-overlay {
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.86);
}

.tutorial-panel {
    width: min(100%, 420px);
    max-height: min(86vh, 720px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    border-radius: 18px;
    background: #191b1c;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.62), inset 0 3px 0 #ffd700;
    color: #fff;
}

.tutorial-panel-header,
.tutorial-task-progress,
.tutorial-reward {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tutorial-panel-header {
    margin-bottom: 20px;
}

.tutorial-panel-eyebrow,
.tutorial-section-label,
.tutorial-task-status {
    color: #ffd700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.tutorial-panel-header h2 {
    margin: 3px 0 0;
    font-size: 23px;
    line-height: 1.25;
}

.tutorial-panel-progress {
    padding: 6px 10px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 8px;
    color: #ffd700;
    font-size: 13px;
    font-weight: 800;
}

.tutorial-task-progress {
    margin-bottom: 7px;
    color: #c5c4bd;
    font-size: 11px;
}

.tutorial-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #44443c;
}

.tutorial-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #ffd700;
    transition: width 0.3s ease;
}

.tutorial-task-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 12px;
}

.tutorial-task-index {
    display: grid;
    flex: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #ffd700;
    border-radius: 12px;
    background: #3c300f;
    color: #ffd700;
    font-size: 19px;
    font-weight: 800;
}

.tutorial-task-heading-copy {
    min-width: 0;
}

.tutorial-task-heading h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
}

.tutorial-task-detail.is-claimable .tutorial-task-status {
    color: #85dc85;
}

.tutorial-task-description {
    margin: 0 0 18px;
    color: #f0ede3;
    font-size: 14px;
    line-height: 1.6;
}

.tutorial-guide {
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.23);
    border-radius: 12px;
    background: #24251f;
}

.tutorial-guide ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tutorial-guide li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e2e0d8;
    font-size: 13px;
    line-height: 1.5;
}

.tutorial-step-number {
    display: grid;
    flex: none;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #ffd700;
    color: #281b00;
    font-size: 11px;
    font-weight: 800;
}

.tutorial-reward {
    margin: 14px 0;
    padding: 13px 15px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    background: #342a13;
}

.tutorial-reward > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tutorial-reward-hint {
    color: #c9c0a7;
    font-size: 11px;
}

.tutorial-reward strong {
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
}

#tutorialOverlay .tutorial-claim-button,
#tutorialOverlay .tutorial-close {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

#tutorialOverlay .tutorial-claim-button {
    border: 0;
    background: #ffd700;
    color: #291c00;
}

#tutorialOverlay .tutorial-claim-button:disabled {
    border: 1px solid #55554e;
    background: #353632;
    color: #c9c9c2;
    cursor: default;
}

#tutorialOverlay .tutorial-close {
    margin-top: 10px;
    border: 1px solid #6b6a5c;
    background: transparent;
    color: #e5e3d9;
}

.tutorial-complete {
    padding: 34px 12px 24px;
    text-align: center;
}

.tutorial-complete-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    place-items: center;
    border: 1px solid #ffd700;
    border-radius: 50%;
    background: #3c300f;
    color: #ffd700;
    font-size: 28px;
    font-weight: 800;
}

.tutorial-complete h3 {
    margin: 0 0 8px;
    color: #ffd700;
    font-size: 20px;
}

.tutorial-complete p {
    margin: 0 0 22px;
    color: #ddd9cd;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    #tutorialWidget { margin: 7px auto 0; }
    .tutorial-widget-card { min-height: 108px; padding: 12px; }
    .tutorial-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .tutorial-progress-fill { transition: none; }
}
