.daily-prize-strip {
    margin-bottom: 16px;
    background: #fff9ec;
}

.daily-prize-strip h3 {
    margin: 0;
    overflow-wrap: anywhere;
}

.daily-prize-strip .gold-button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.daily-prize-strip button span { min-width: 0; }

.daily-prize-strip h3 i {
    color: var(--gd-accent);
    margin-right: 5px;
}

.gold-dialog.daily-prize-dialog {
    --daily-prize-inset: clamp(14px, 3vw, 24px);
    width: min(760px, calc(100% - 28px)) !important;
    max-width: none;
}

.daily-prize-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: var(--daily-prize-inset) var(--daily-prize-inset) 12px;
}

.daily-prize-head h2 {
    margin: 0;
    font-size: clamp(21px, 3vw, 28px);
    overflow-wrap: anywhere;
}

.daily-prize-head .daily-prize-close {
    flex: none;
    min-height: 40px;
    width: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 23px;
}

.hub-dialog-scroll.daily-prize-body {
    padding: 2px var(--daily-prize-inset) var(--daily-prize-inset);
}

.daily-prize-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.daily-prize-card {
    padding: 18px 12px;
    border: 1px solid #e8d4ad;
    border-radius: 13px;
    background: linear-gradient(#fffdf8, #fcf4e2);
    text-align: center;
    overflow-wrap: anywhere;
}

.daily-prize-number {
    display: inline-grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #e0be7b;
    border-radius: 50%;
    color: #79521b;
    background: #f6e7c6;
    font-weight: 800;
}

.daily-prize-card h3 { margin: 8px 0 6px; font-size: 15px; }
.daily-prize-reward { margin: 0; font-weight: 750; }
.daily-prize-matches, .daily-prize-note { color: var(--gd-muted); font-size: 13px; line-height: 1.6; }
.daily-prize-matches { margin: 8px 0 0; }
.daily-prize-note { margin: 14px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.hub-daily-result { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin:15px 0; }

.hub-daily-hero {
    gap: 10px;
    padding: 25px 18px;
    background: radial-gradient(ellipse at top, #fff6df, #fffdf8 58%);
}
.hub-daily-hero > strong { font-size: clamp(29px, 5vw, 50px); font-variant-numeric: tabular-nums; }
.hub-daily-hero > small { margin-top: -8px; color: var(--gd-muted); }
.hub-daily-hero .gold-pill, .hub-daily-card-head .gold-pill {
    color: #79551d;
    border: 1px solid #e4c88d;
    background: #f8edcf;
    white-space: nowrap;
}
.hub-daily-hero .gold-button:not(:disabled) { background: #f2dfad; border-color: #c59545; }

.hub-daily-free, .hub-daily-tickets, .hub-daily-results, .hub-daily-rules { margin-top: 16px; }
.hub-daily-free { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; }
.hub-daily-card-head, .hub-daily-section-head {
    display:flex; justify-content:space-between; align-items:flex-start; gap:8px;
}
.hub-daily-card-head h2, .hub-daily-card-head h3 { margin:0; }
.hub-daily-card-head small, .hub-daily-section-head small, .hub-daily-free p { color:var(--gd-muted); font-size:12px; }
.hub-daily-free p { margin:7px 0 0; }
.hub-daily-free progress, .hub-daily-tasks progress {
    display:block; width:100%; height:7px; margin:12px 0 7px; accent-color:#b08032;
}
.hub-daily-section-head { margin:18px 0 8px; align-items:baseline; }
.hub-daily-section-head h2 { margin:0; font-size:16px; }
.hub-daily-tasks .hub-invite-tasks { grid-template-columns:repeat(3,minmax(0,1fr)); }
.hub-daily-tasks .hub-invite-tasks > div { min-width:0; background:#fcf7e9; }
.hub-daily-tasks .hub-invite-tasks button { white-space:normal; min-height:31px; line-height:1.35; }

.hub-daily-ticket, .hub-daily-history-row {
    border:1px solid #e9d6ad; border-radius:11px; background:#fffaf0; padding:12px 13px;
}
.hub-daily-ticket + .hub-daily-ticket, .hub-daily-history-row + .hub-daily-history-row { margin-top:8px; }
.hub-daily-ticket header, .hub-daily-history-row { display:flex; align-items:flex-start; justify-content:space-between; gap:8px 14px; }
.hub-daily-ticket header small, .hub-daily-ticket p, .hub-daily-history-row div { color:var(--gd-muted); font-size:12px; }
.hub-daily-ticket header small.is-winner { color:#774d12; font-weight:700; }
.hub-daily-ticket p { margin:9px 0 0; }
.hub-daily-balls { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.hub-daily-balls .hub-number { background:#fff8e6; color:#764f16; border:1px solid #c9a158; }
.hub-daily-balls .hub-number-hit { background:#edd49a; color:#42280c; border-color:#805415; box-shadow:inset 0 0 0 2px #f7e8c2; }

.hub-daily-results { align-items:start; }
.hub-daily-winner-list { list-style:none; margin:10px 0 0; padding:0; }
.hub-daily-winner-list li { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; padding:8px 0; border-top:1px solid #eddbc0; }
.hub-daily-winner-list small { color:var(--gd-muted); }
.hub-daily-winners-empty { margin-top:12px; border:1px dashed #d8b87f; border-radius:12px; padding:21px 12px; text-align:center; }
.hub-daily-winners-empty i { display:block; color:#ae7825; font-size:24px; margin-bottom:8px; }
.hub-daily-winners-empty p { margin:5px 0 0; }

.hub-daily-history summary, .hub-daily-rules summary {
    display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; list-style:none;
}
.hub-daily-history summary::-webkit-details-marker,.hub-daily-rules summary::-webkit-details-marker { display:none; }
.hub-daily-history summary:focus-visible,.hub-daily-rules summary:focus-visible { outline:2px solid var(--gd-accent); outline-offset:4px; }
.hub-daily-history[open] summary i { transform:rotate(180deg); }
.hub-daily-history-body { margin-top:12px; }
.hub-daily-history-body > .gold-button { display:flex; justify-content:center; width:100%; margin-top:8px; }
.hub-daily-history-row { align-items:center; scroll-margin-bottom:100px; }
.hub-daily-history-row time, .hub-daily-history-row small { display:block; }
.hub-daily-history-row strong { text-align:right; font-size:13px; }
.hub-daily-rules ol { margin:12px 0 0; padding-left:24px; font-size:13px; line-height:1.75; color:var(--gd-muted); }
.hub-daily-rules li + li { margin-top:6px; }

@media (max-width: 540px) {
    .daily-prize-strip { flex-wrap: wrap; }
    .daily-prize-cards { grid-template-columns: 1fr; gap: 8px; }
    .daily-prize-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
        padding: 11px;
        text-align: left;
    }
    .daily-prize-number { align-self: center; grid-row: span 3; }
    .daily-prize-card h3, .daily-prize-matches { margin: 0 0 2px; }
    .hub-daily-free { grid-template-columns:1fr; gap:10px; }
    .hub-daily-free .gold-button { justify-self:start; }
    .hub-daily-balls .hub-number { width:30px; height:30px; font-size:12px; }
    .hub-daily-tasks .hub-invite-tasks { gap:5px; }
}
