.dxd-give {
    color: var(--text-default);
    padding-bottom: 32px;
}

.dxd-give .admin_nav {
    margin: 0 0 16px;
}

.dxd-give .admin-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-family-2);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.dxd-give .admin-nav__btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dxd-give .admin-nav__btn.active {
    background: var(--span);
    color: #fff;
}

.dxd-give__head {
    margin: 0 0 20px;
}

.dxd-give__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 26px;
    line-height: 1.15;
}

.dxd-give__title svg,
.dxd-give__card-title svg,
.dxd-give__notice > svg,
.dxd-give__notice-x svg,
.dxd-give__media > svg {
    fill: currentColor;
    flex: 0 0 auto;
}

.dxd-give__title svg {
    width: 22px;
    height: 22px;
    color: var(--span);
}

.dxd-give__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--span);
}

.dxd-give__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: 16px;
}

.dxd-give__notice > svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--span);
}

.dxd-give__notice p {
    flex: 1;
    margin: 0;
    font-family: var(--font-family-2);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.dxd-give__notice p a {
    color: var(--text-default);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--span-middle);
    transition: color .2s ease;
}

.dxd-give__notice p a:hover {
    color: var(--span);
}

.dxd-give__notice-x {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.dxd-give__notice-x svg {
    width: 12px;
    height: 12px;
}

.dxd-give__notice-x:hover {
    background: var(--transparent-5-w);
    color: var(--text-default);
}

.dxd-give__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dxd-give__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.dxd-give__card {
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: 16px;
    padding: 20px;
}

.dxd-give__card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 15px;
    line-height: 1.3;
}

.dxd-give__card-title svg {
    width: 16px;
    height: 16px;
    color: var(--span);
}

.dxd-give__prize {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.dxd-give__media {
    position: relative;
    width: 176px;
    height: 112px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 40%, rgb(250 58 58 / 28%), transparent 68%),
        var(--bg);
}

.dxd-give__media img,
.dxd-give__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dxd-give__media > svg {
    width: 42px;
    height: 42px;
    color: var(--text-default);
}

.dxd-give__prize-copy {
    min-width: 0;
}

.dxd-give__prize-copy strong {
    display: block;
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 20px;
    line-height: 1.25;
}

.dxd-give__prize-copy span,
.dxd-give__meta,
.dxd-give__empty {
    font-family: var(--font-family-2);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.dxd-give__prize-copy span {
    display: block;
    margin-top: 6px;
}

.dxd-give__time {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dxd-give__time--hour {
    grid-template-columns: repeat(3, 1fr);
}

.dxd-give__time--hour .dxd-give__unit:first-child {
    display: none;
}

.dxd-give__unit {
    padding: 12px 8px 10px;
    text-align: center;
    background: var(--bg);
    border-radius: 12px;
}

.dxd-give__unit b {
    display: block;
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 26px;
    line-height: 1;
}

.dxd-give__unit span {
    display: block;
    margin-top: 6px;
    font-family: var(--font-family-2);
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-secondary);
}

.dxd-give__join {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1px solid var(--transparent-10-w);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-family-2);
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
}

button.dxd-give__join {
    width: 100%;
    padding: 0;
    cursor: pointer;
}

button.dxd-give__join:disabled {
    cursor: default;
    opacity: 0.7;
}

.dxd-give__join--go {
    background: var(--span);
    border-color: transparent;
    color: #fff;
}

.dxd-give__join--go:hover {
    filter: brightness(1.08);
    color: #fff;
}

.dxd-give__join--in {
    color: var(--text-default);
    background: var(--transparent-5-w);
}

.dxd-give__meta {
    margin: 12px 0 0;
}

.dxd-give__empty {
    margin: 0;
}

.dxd-give__card-title .dxd-give__count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 99px;
    background: var(--transparent-5-w);
    color: var(--text-default);
    font-family: var(--font-family-2);
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.dxd-give__winners {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 292px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--transparent-10-w) transparent;
}

.dxd-give__winners::-webkit-scrollbar {
    width: 6px;
}

.dxd-give__winners::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: var(--transparent-10-w);
}

.dxd-give__winner {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--bg);
    color: inherit;
    text-decoration: none;
}

.dxd-give__winner:hover {
    background: var(--transparent-5-w);
}

.dxd-give__winner img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.dxd-give__winner-copy {
    min-width: 0;
}

.dxd-give__winner-copy strong,
.dxd-give__winner-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dxd-give__winner-copy strong {
    font-family: var(--font-family-2);
    font-weight: 400;
    font-size: 14px;
    font-style: normal;
}

.dxd-give__winner-copy em,
.dxd-give__winner-date {
    font-family: var(--font-family-2);
    font-weight: 400;
    font-size: 12px;
    font-style: normal;
    color: var(--text-secondary);
}

@media (max-width: 980px) {
    .dxd-give__grid {
        grid-template-columns: 1fr;
    }

    .dxd-give__winner {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .dxd-give__winner-date {
        display: none;
    }
}

@media (max-width: 720px) {
    .dxd-give__title {
        font-size: 22px;
    }

    .dxd-give__card,
    .dxd-give__admin {
        padding: 16px;
    }

    .dxd-give__prize {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dxd-give__media {
        width: 100%;
        height: 148px;
    }

    .dxd-give__prize-copy strong {
        font-size: 18px;
    }

    .dxd-give__unit b {
        font-size: 22px;
    }

    .dxd-give__actions {
        flex-direction: column;
    }

    .dxd-give__people {
        justify-content: center;
    }
}

.dxd-give__term {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 7px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-family: var(--font-family-2);
    font-weight: 400;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.dxd-give__media:has(.dxd-give__term) .dxd-give__chip {
    max-width: calc(100% - 86px);
}

.dxd-give__chip {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 2px 7px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-family: var(--font-family-2);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dxd-give__kind,
.dxd-give__prize-copy em,
.dxd-give__system,
.dxd-give__note {
    font-family: var(--font-family-2);
    font-weight: 400;
    font-style: normal;
}

.dxd-give__kind {
    display: block;
    margin-bottom: 6px;
    color: var(--span);
    font-size: 12px;
}

.dxd-give__prize-copy em {
    display: block;
    margin-top: 8px;
    color: var(--text-default);
    font-size: 13px;
    line-height: 1.35;
}

.dxd-give__admin {
    margin-top: 0;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: 16px;
}

.dxd-give__note {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 14px;
}

.dxd-give__admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dxd-give__admin-card,
.dxd-give__admin-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dxd-give__admin-card {
    padding: 16px;
    background: var(--bg);
    border-radius: 12px;
}

.dxd-give__admin-card strong,
.dxd-give__admin-card label {
    font-family: var(--font-family-2);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.dxd-give__admin-card strong {
    color: var(--text-default);
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 15px;
}

.dxd-give__system {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.dxd-give__admin select,
.dxd-give__admin button,
.dxd-give__log button {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--transparent-10-w);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-default);
    font-family: var(--font-family-2);
    font-size: 14px;
    font-weight: 400;
}

.dxd-give__admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.dxd-give__admin-actions button,
.dxd-give__log button {
    background: var(--span);
    border-color: transparent;
    color: #fff;
    cursor: pointer;
}

.dxd-give__ghost {
    background: transparent !important;
    border-color: var(--transparent-10-w) !important;
    color: var(--text-secondary) !important;
}

.dxd-give__stage {
    position: relative;
}

.dxd-give__stage.is-paused .dxd-give__live {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
}

.dxd-give__hold {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: auto;
    padding: min(28vh, 220px) 24px 24px;
    text-align: center;
    pointer-events: auto;
}

.dxd-give__hold strong {
    color: var(--text-default);
    font-family: var(--font-family-2);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-shadow: 0 8px 28px rgb(0 0 0 / 70%);
}

.dxd-give__hold span {
    max-width: 460px;
    color: var(--text-default);
    font-family: var(--font-family-2);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: 0 6px 20px rgb(0 0 0 / 75%);
}

.dxd-give__pause {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--transparent-5-w);
}

.dxd-give__pause strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-default);
    font-family: var(--font-family-2);
    font-size: 15px;
    font-weight: 500;
}

.dxd-give__pause p {
    margin: 0;
    color: var(--text-secondary);
    font-family: var(--font-family-2);
    font-size: 13px;
    line-height: 1.4;
}

.dxd-give__pause button {
    flex: none;
    cursor: pointer;
}

.dxd-give__logs-title {
    margin-top: 18px;
}

.dxd-give__logs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dxd-give__log {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--bg);
}

.dxd-give__log img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.dxd-give__log strong,
.dxd-give__log em {
    display: block;
    overflow: hidden;
    font-family: var(--font-family-2);
    font-style: normal;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dxd-give__log strong {
    font-size: 14px;
}

.dxd-give__log em,
.dxd-give__log .dxd-give__winner-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.dxd-give__ok,
.dxd-give__bad {
    font-family: var(--font-family-2);
    font-size: 12px;
}

.dxd-give__ok {
    color: var(--green);
}

.dxd-give__bad {
    color: var(--span);
}

.dxd-give__log form {
    margin: 0;
}

@media (max-width: 980px) {
    .dxd-give__admin-grid,
    .dxd-give__log {
        grid-template-columns: 1fr;
    }
}

.dxd-give__progress {
    margin-bottom: 16px;
}

.dxd-give__progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-family-2);
    font-size: 13px;
    color: var(--text-secondary);
}

.dxd-give__progress-top b {
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 13px;
    color: var(--text-default);
}

.dxd-give__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--bg);
}

.dxd-give__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgb(250 58 58 / 72%), var(--span));
}

.dxd-give__progress--done .dxd-give__bar i {
    background: var(--green);
}

.dxd-give__done {
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 14px;
    color: var(--green);
}

.dxd-give__progress p {
    margin: 8px 0 0;
    font-family: var(--font-family-2);
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-secondary);
}

.dxd-give__actions {
    display: flex;
    gap: 10px;
}

.dxd-give__actions .dxd-give__join {
    flex: 1;
}

.dxd-give__people {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--transparent-10-w);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-default);
    font-family: var(--font-family-2);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    flex: 0 0 auto;
}

.dxd-give__people svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: var(--span);
}

.dxd-give__people b {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--span);
    color: #fff;
    font-family: var(--font-family-2);
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.dxd-give__people:hover {
    border-color: var(--span);
}

.dxd-give__modal[hidden] {
    display: none !important;
}

.dxd-give__modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgb(0 0 0 / 62%);
}

.dxd-give__modal-card {
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    max-height: min(70vh, 640px);
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: 16px;
}

.dxd-give__modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.dxd-give__modal-head strong {
    display: block;
    font-family: var(--font-family-1);
    font-weight: 500;
    font-synthesis: none;
    letter-spacing: 0;
    font-size: 18px;
    line-height: 1.25;
}

.dxd-give__modal-head span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-family-2);
    font-size: 13px;
    color: var(--text-secondary);
}

.dxd-give__modal-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
}

.dxd-give__modal-x svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.dxd-give__modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

.dxd-give__person {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--bg);
    color: inherit;
    text-decoration: none;
}

.dxd-give__person img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.dxd-give__person strong,
.dxd-give__person em {
    display: block;
    overflow: hidden;
    font-family: var(--font-family-2);
    font-style: normal;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dxd-give__person strong {
    font-size: 14px;
}

.dxd-give__person em,
.dxd-give__modal-more {
    font-size: 12px;
    color: var(--text-secondary);
}

.dxd-give__person > b {
    font-family: var(--font-family-2);
    font-size: 12px;
    font-weight: 400;
    color: var(--green);
}

.dxd-give__modal-more {
    margin: 12px 0 0;
    font-family: var(--font-family-2);
}
