:root {
    --bounty-border: rgba(255, 255, 255, 0.11);
    --bounty-muted: #9ba4af;
    --bounty-surface: rgba(13, 16, 21, 0.94);
    --bounty-red: #d34b54;
    --bounty-gold: #d7b56d;
}

.bounty-page {
    width: min(1420px, calc(100% - 32px));
    margin: 28px auto 72px;
}

.bounty-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--bounty-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 82% 18%, rgba(211, 75, 84, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(20, 23, 29, 0.98), rgba(7, 9, 13, 0.98));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.bounty-kicker {
    display: block;
    color: var(--bounty-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 7px;
}

.bounty-hero h1,
.bounty-panel h2 {
    margin: 0;
}

.bounty-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.bounty-hero p {
    max-width: 780px;
    color: var(--bounty-muted);
    line-height: 1.7;
    margin: 18px 0 0;
}

.bounty-hero__rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 10px;
}

.bounty-hero__rules div,
.bounty-summary-grid article {
    border: 1px solid var(--bounty-border);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    padding: 18px;
}

.bounty-hero__rules div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.bounty-hero__rules strong {
    color: #f2f3f5;
    font-size: 1.05rem;
}

.bounty-hero__rules span,
.bounty-summary-grid span {
    color: var(--bounty-muted);
    font-size: 0.75rem;
    margin-top: 6px;
}

.bounty-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.bounty-summary-grid article {
    display: flex;
    flex-direction: column;
}

.bounty-summary-grid strong {
    font-size: 1.45rem;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.bounty-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.bounty-main-column,
.bounty-side-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.bounty-panel {
    border: 1px solid var(--bounty-border);
    border-radius: 18px;
    background: var(--bounty-surface);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    padding: 22px;
    min-width: 0;
}

.bounty-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bounty-board-list,
.bounty-history-list {
    display: grid;
    gap: 10px;
}

.bounty-target-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(140px, auto) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.bounty-target-avatar {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.bounty-target-copy {
    min-width: 0;
}

.bounty-target-copy strong {
    display: block;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bounty-target-copy span,
.bounty-target-copy small,
.bounty-value small,
.bounty-history-card small {
    display: block;
    color: var(--bounty-muted);
    margin-top: 4px;
}

.bounty-online {
    color: #66d39b !important;
}

.bounty-value {
    text-align: right;
    min-width: 0;
}

.bounty-value strong {
    display: block;
    color: #f0d18f;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.bounty-primary-button,
.bounty-secondary-button,
.bounty-profile-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.bounty-primary-button,
.bounty-profile-button {
    color: #fff;
    background: linear-gradient(135deg, #a92f3c, #6f1e28);
}

.bounty-secondary-button {
    color: #e9ecef;
    background: rgba(255, 255, 255, 0.05);
}

.bounty-primary-button:hover,
.bounty-secondary-button:hover,
.bounty-profile-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
}

.bounty-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.bounty-history-card strong {
    overflow-wrap: anywhere;
}

.bounty-history-status {
    align-self: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.07);
}

.bounty-history-status.active { color: #f0d18f; }
.bounty-history-status.claimed { color: #74d8a9; }
.bounty-history-status.expired { color: #9ca4ae; }

.bounty-place-panel header p {
    color: var(--bounty-muted);
    line-height: 1.55;
}

#bountyPlaceForm {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

#bountyPlaceForm label {
    display: grid;
    gap: 7px;
    color: #d9dde2;
    font-size: 0.82rem;
    font-weight: 700;
}

#bountyPlaceForm input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    padding: 12px;
    font: inherit;
}

.bounty-money-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.bounty-money-input b {
    padding-left: 12px;
}

.bounty-money-input input {
    border: 0 !important;
    background: transparent !important;
}

.bounty-cash-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--bounty-muted);
    font-size: 0.82rem;
}

.bounty-cash-row strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.bounty-form-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 9px;
    color: #f0d18f;
    background: rgba(211, 75, 84, 0.12);
}

.bounty-form-message.success {
    color: #7de0b2;
    background: rgba(75, 193, 132, 0.11);
}

.bounty-rules-panel ul {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--bounty-muted);
    line-height: 1.6;
}

.bounty-empty {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--bounty-muted);
    padding: 22px;
    text-align: center;
}

@media (max-width: 1040px) {
    .bounty-layout,
    .bounty-hero {
        grid-template-columns: 1fr;
    }
    .bounty-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .bounty-page { width: min(100% - 18px, 1420px); margin-top: 12px; }
    .bounty-hero, .bounty-panel { padding: 17px; border-radius: 14px; }
    .bounty-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bounty-hero__rules { grid-template-columns: 1fr; }
    .bounty-side-column { grid-template-columns: 1fr; }
    .bounty-target-card { grid-template-columns: 48px minmax(0, 1fr); }
    .bounty-target-avatar { width: 48px; height: 48px; }
    .bounty-value { text-align: left; grid-column: 2; }
    .bounty-profile-button { grid-column: 1 / -1; }
}

/* Public bounty reasons and reason field */
#bountyPlaceForm textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(0,0,0,.28);color:#fff;padding:12px;font:inherit;resize:vertical;min-height:82px}
.bounty-target-reasons{display:grid;gap:6px;margin-top:9px}.bounty-target-reasons p{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px;margin:0;padding:7px 8px;border-left:2px solid rgba(240,209,143,.48);border-radius:0 7px 7px 0;background:rgba(255,255,255,.025)}.bounty-target-reasons p b{color:#f0d18f;font-size:.69rem}.bounty-target-reasons p span{min-width:0;color:#d8dde4;font-size:.72rem;overflow-wrap:anywhere}.bounty-target-reasons p small{grid-column:2;margin:0;color:var(--bounty-muted);font-size:.62rem}.bounty-target-reasons>em{color:var(--bounty-muted);font-size:.66rem;font-style:normal}
