﻿.nd-activity {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
    color: #f4e9d4;
    box-sizing: border-box;
}

body.nd-activity-page #wrap.nd-activity-wrap {
    background: #1a0c0c;
}

body.nd-activity-page .nd-activity {
    padding-top: 0.5rem;
}

html.nd-activity-embed #navbar,
html.nd-activity-embed #ai-navigation-container,
html.nd-activity-embed #masthead,
html.nd-activity-embed #footer,
html.nd-activity-embed #backtop,
html.nd-activity-embed .sp-progress,
html.nd-activity-embed #adFloat {
    display: none !important;
}

html.nd-activity-embed #wrap.nd-activity-wrap {
    padding-top: 0 !important;
}

html.nd-activity-embed .nd-activity {
    padding-top: 1.25rem;
}

.nd-activity-hero {
    padding: 1.5rem 1.25rem 1.25rem;
    border: 1px solid #6a2a22;
    border-radius: 12px;
    background: #2a1212;
    text-align: center;
}

.nd-activity-kicker {
    margin: 0 0 0.5rem;
    color: #e8c36a;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.nd-activity-title {
    margin: 0 0 0.6rem;
    color: #fff4d6;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.nd-activity-lead,
.nd-activity-time {
    margin: 0 0 0.5rem;
    color: rgba(244, 233, 212, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

.nd-activity-status {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #6d1d16;
    color: #e8c36a;
    font-size: 0.8rem;
}

.nd-activity-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem 0;
}

.nd-stat {
    padding: 0.7rem 0.3rem;
    border: 1px solid #5a2a24;
    border-radius: 10px;
    background: #241010;
    text-align: center;
}

.nd-stat strong {
    display: block;
    color: #e8c36a;
    font-size: 1.2rem;
}

.nd-stat span {
    color: rgba(244, 233, 212, 0.65);
    font-size: 0.75rem;
}

.nd-card {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid #5a2a24;
    border-radius: 12px;
    background: #241010;
}

.nd-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.nd-card-head h2 {
    margin: 0;
    color: #fff4d6;
    font-size: 1.1rem;
}

.nd-card-hint {
    color: rgba(244, 233, 212, 0.55);
    font-size: 0.8rem;
}

.nd-checkin-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.nd-checkin-day {
    padding: 0.55rem 0.2rem;
    border: 1px solid #4a2420;
    border-radius: 8px;
    background: #1a0c0c;
    text-align: center;
}

.nd-checkin-day em,
.nd-checkin-day strong,
.nd-checkin-day span {
    display: block;
    font-style: normal;
}

.nd-checkin-day em {
    color: rgba(244, 233, 212, 0.6);
    font-size: 0.7rem;
}

.nd-checkin-day strong {
    margin: 0.2rem 0;
    color: #fff4d6;
    font-size: 0.78rem;
}

.nd-checkin-day span {
    color: #e8c36a;
    font-size: 0.68rem;
}

.nd-checkin-day.is-done {
    border-color: #e8c36a;
    background: #3a2210;
}

.nd-checkin-day.is-today {
    border-color: #c41a1a;
}

.nd-actions,
.nd-task-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nd-task-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nd-task-list li {
    padding: 0.75rem 0;
    border-top: 1px solid #3a1c18;
}

.nd-task-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.nd-task-list strong {
    color: #fff4d6;
}

.nd-task-list p,
.nd-reward-note,
.nd-rules p,
.nd-invite-url {
    margin: 0.25rem 0 0;
    color: rgba(244, 233, 212, 0.7);
    font-size: 0.85rem;
    line-height: 1.55;
    word-break: break-all;
}

.nd-btn,
.nd-wheel-go,
.nd-dialog-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    height: 2.2rem;
    padding: 0 0.9rem;
    border: 1px solid #8a3a30;
    border-radius: 8px;
    background: #3a1814;
    color: #fff4d6;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
}

.nd-btn-primary,
.nd-wheel-go,
.nd-dialog-card button {
    border-color: #c41a1a;
    background: #c41a1a;
    color: #fff;
}

.nd-btn[disabled],
.nd-wheel-go[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.nd-wheel-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0.5rem auto 1rem;
}

.nd-wheel-disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 6px solid #e8c36a;
    background: #6d1d16;
    transition: transform 4s cubic-bezier(0.12, 0.7, 0.08, 1);
}

.nd-wheel-label {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 72px;
    margin-left: -36px;
    color: #fff4d6;
    font-size: 0.68rem;
    text-align: center;
    transform-origin: 50% 112px;
    transform: rotate(calc(var(--i) * 60deg));
}

.nd-wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    margin-left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 16px solid #e8c36a;
}

.nd-wheel-go {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 72px;
    min-width: 0;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    font-weight: 700;
}

.nd-prize-list,
.nd-win-list {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(244, 233, 212, 0.78);
    font-size: 0.88rem;
    line-height: 1.7;
}

.nd-reward-coins {
    margin: 0 0 0.75rem;
    color: #fff4d6;
}

.nd-reward-coins strong {
    color: #e8c36a;
}

.nd-ticker {
    overflow: hidden;
    height: 1.8rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    background: #1a0c0c;
    color: #e8c36a;
    font-size: 0.8rem;
    line-height: 1.8rem;
}

.nd-ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: nd-ticker-move 18s linear infinite;
}

@keyframes nd-ticker-move {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.nd-toast {
    position: fixed;
    left: 50%;
    bottom: 18%;
    z-index: 10050;
    max-width: 80vw;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.9rem;
    transform: translateX(-50%);
}

.nd-dialog {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}

.nd-dialog[hidden],
.nd-toast[hidden],
.nd-invite-url[hidden],
.nd-ticker[hidden] {
    display: none !important;
}

.nd-dialog-card {
    width: 86%;
    max-width: 360px;
    padding: 1.2rem 1.1rem 1rem;
    border-radius: 12px;
    background: #2a1212;
    text-align: center;
}

.nd-dialog-card h3 {
    margin: 0 0 0.5rem;
    color: #fff4d6;
}

.nd-dialog-card p {
    margin: 0 0 1rem;
    color: rgba(244, 233, 212, 0.8);
    line-height: 1.5;
}

.nd-entry-popup {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
}

.nd-entry-popup-inner {
    position: relative;
    width: min(610px, 86vw);
    max-height: 86vh;
}

.nd-entry-popup-card {
    overflow: auto;
    max-height: 80vh;
    padding: 1.5rem 1.2rem 1.3rem;
    border-radius: 16px;
    background: #2a1212;
    text-align: center;
    color: #fff4d6;
}

.nd-entry-popup-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.nd-entry-popup-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
}

.nd-entry-popup-card p {
    margin: 0 0 1rem;
    color: rgba(244, 233, 212, 0.75);
}

.nd-entry-close {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nd-entry-close img {
    width: 100%;
    height: 100%;
}

.nd-entry-float {
    position: fixed;
    right: 12px;
    bottom: 88px;
    z-index: 10030;
    width: 64px;
    height: 64px;
    border: 1px solid #e8c36a;
    border-radius: 50%;
    background: #c41a1a;
    color: #fff4d6;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.nd-entry-float span {
    display: block;
    padding-top: 16px;
}

@media (max-width: 767px) {
    .nd-activity-stats,
    .nd-checkin-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .nd-checkin-days li:nth-child(n+5) {
        grid-column: span 1;
    }
    .nd-activity-title {
        font-size: 1.45rem;
    }
    .nd-wheel-wrap {
        width: 220px;
        height: 220px;
    }
    .nd-wheel-label {
        transform-origin: 50% 92px;
        font-size: 0.62rem;
    }
    .nd-actions,
    .nd-task-list li {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .nd-activity-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
