/* Quiet dark cards; package artwork and owner-supplied HUD icons enhanced with AI. */
.reward-catalog { --reward-accent: #f1b79c; --reward-ink: #f1f3f5; --reward-muted: #b0b6bf; }
.reward-catalog.page-container { width: min(920px, 100%); padding-top: 28px; }
.reward-catalog-header { margin: 0 0 22px; }
.reward-catalog-header[hidden] { display: none; }
.reward-catalog-header h1 { margin: 0 0 9px; font-size: clamp(25px,4vw,34px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.reward-catalog-header p { margin: 0; max-width: 54ch; color: #b0b6bf; font-size: 16px; line-height: 1.5; }
.reward-grid.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.reward-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #15181d; color: var(--reward-ink); color-scheme: dark; border: 1px solid #2d323a; border-radius: 16px; overflow: hidden; }
.reward-card svg { width: 20px; height: 20px; flex: 0 0 auto; }
.reward-card-top { position: absolute; z-index: 1; top: 12px; right: 12px; }
.reward-received { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; background: #1b3027; color: #a8e1ba; font-size: 14px; font-weight: 650; line-height: 1.35; }
.reward-received svg { width: 17px; height: 17px; }
.reward-art { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #15181d; }
.reward-art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(.82); }
.reward-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.reward-card .reward-card-conditions { margin: auto 0 18px; padding-top: 16px; border-top: 1px solid #343941; }
.reward-card .reward-conditions-title { margin: 0 0 12px; color: #d2d8df; font-size: 15px; line-height: 1.4; font-weight: 650; }
.reward-card .reward-card-conditions ul { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.reward-card .reward-card-conditions li { display: flex; align-items: flex-start; gap: 10px; color: #b0b6bf; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.reward-card .reward-card-conditions li b { color: #e4e7eb; font-weight: 550; }
.reward-card .reward-card-conditions li svg { width: 18px; height: 18px; margin-top: 3px; color: #adb8c5; }
.reward-card .reward-claim { width: 100%; min-height: 52px; margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #462a22; color: #fff0e8; border: 1px solid #87553f; border-radius: 9px; padding: 13px 16px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .16s ease-out; }
.reward-card .reward-claim > svg { color: #f1b79c; }
.reward-card .reward-claim:hover { background: #603727; }
.reward-card .reward-claim:active { background: #3b241c; }
.reward-card .reward-claim:disabled { background: #252a31; border-color: #515863; color: #b0b6bf; cursor: wait; }
.reward-card.is-received .reward-claim { background: #1b3027; border-color: #3c6750; color: #a8e1ba; }
.reward-card.is-received .reward-claim > svg { color: inherit; }
.reward-card.is-received .reward-claim:hover { background: #244333; }
.reward-card :focus-visible { outline: 3px solid #f1b79c; outline-offset: 3px; }
.reward-card ::selection { background: #f1b79c; color: #211a17; }
@media (max-width: 560px) {
    .reward-catalog.page-container { padding: 20px 14px 32px; }
    .reward-grid.grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .reward-card-body { padding: 14px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .reward-card .reward-claim { transition: none; } }

/* Existing fallback evidence controls. */
.youtube-evidence > p { color: #bec3cb; font-size: 13px; line-height: 1.5; margin: 12px 0; }
.youtube-links { display: grid; gap: 8px; }
.youtube-links a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; padding: 10px 12px; border: 1px solid #484b50; border-radius: 8px; font-size: 13px; text-decoration: none; text-underline-offset: 3px; }
.youtube-links a:hover { text-decoration: underline; }
.youtube-evidence svg { width: 18px; height: 18px; flex-shrink: 0; }
.evidence-upload { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px; margin-top: 12px; background: #29271e; border: 1px dashed #a68b39; border-radius: 8px; color: #ffdc6d; font-size: 13px; cursor: pointer; position: relative; }
.evidence-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.evidence-upload:focus-within { outline: 2px solid #ffcc32; outline-offset: 3px; }
.youtube-evidence .evidence-feedback { color: #ffdc6d; }

/* Compact HUD composition from the owner's annotated card, 2026-10-30. */
.reward-stats { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 6px 12px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.reward-stats.has-map { grid-template-columns: minmax(0,1fr) 112px; }
.reward-stats .reward-credits, .reward-stats .reward-gold-value { grid-column: 1; display: flex; align-items: center; min-width: 0; gap: 10px; }
.reward-stats .reward-credits { grid-row: 1; }
.reward-stats .reward-gold-value { grid-row: 2; }
.reward-stats .reward-credits img, .reward-stats .reward-gold-value img { display: block; width: 32px; height: 36px; flex: 0 0 32px; object-fit: contain; }
.reward-stats .reward-credits strong { font-size: clamp(26px, 6.8vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; }
.reward-stats .reward-gold-value strong { color: #e7cb8a; font-size: 24px; line-height: 1.2; font-weight: 700; }
.reward-map { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding-left: 12px; border-left: 1px solid #343941; }
.reward-card .reward-map svg { width: 100%; height: auto; display: block; flex: 0 0 auto; }
.reward-map span { color: #d2d8df; font-size: 14px; line-height: 1.3; text-align: center; }
.reward-level { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 10px; color: #d2d8df; font-size: 14px; min-height: 28px; }
.reward-card .reward-level-mark { display: block; width: 32px; height: auto; flex: 0 0 32px; }
.reward-level > b { font-size: 22px; color: #e7cb8a; }
.reward-garage { margin: 0 0 16px; border-top: 1px solid #343941; }
.reward-garage summary { display: block; list-style: none; cursor: pointer; padding: 14px 0 0; }
.reward-garage summary::-webkit-details-marker { display: none; }
.reward-garage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.reward-garage-heading > strong, .reward-garage-label { font-size: 17px; font-weight: 700; }
.reward-garage-description { display: block; margin-top: 2px; color: #b0b6bf; font-size: 14px; line-height: 1.4; }
.reward-garage-toggle { display: inline-flex; align-items: center; gap: 6px; color: #b0b6bf; font-size: 14px; }
.reward-garage-toggle > svg { width: 16px; height: 16px; transition: transform .22s ease-out; }
.reward-garage-hide { display: none; }
.reward-garage[open] .reward-garage-show { display: none; }
.reward-garage[open] .reward-garage-hide { display: inline; }
.reward-garage[open] .reward-garage-toggle > svg { transform: rotate(180deg); }
.reward-garage-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) 44px; gap: 6px; align-items: center; min-height: 64px; }
.reward-garage-preview:not(:has(.reward-garage-more)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.reward-garage-preview > img { display: block; width: 100%; height: 62px; object-fit: contain; }
.reward-garage-more { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; color: #e4e7eb; font-size: 14px; font-weight: 650; border-left: 1px solid #343941; }
.reward-garage-body { padding-top: 8px; }
.reward-car-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; list-style: none; margin: 0; padding: 0 8px 16px 0; max-height: 360px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #626a75 #15181d; }
.reward-car-list::-webkit-scrollbar { width: 6px; }
.reward-car-list::-webkit-scrollbar-thumb { background: #626a75; border-radius: 3px; }
.reward-car-list > li { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.reward-car-list > li > img, .reward-car-placeholder { display: block; width: 100%; height: 76px; object-fit: contain; }
.reward-car-list > li > span:last-child { display: block; padding: 0 4px; }
.reward-car-list b { display: block; color: #e4e7eb; font-size: 15px; line-height: 1.35; font-weight: 550; overflow-wrap: anywhere; }
.reward-car-list small { display: block; margin-top: 3px; color: #b0b6bf; font-size: 13px; line-height: 1.35; }
.reward-car-placeholder { display: flex; align-items: center; justify-content: center; color: #78828f; }
.reward-car-placeholder > svg { width: 44px; height: 44px; }
.reward-garage summary:hover .reward-garage-toggle { color: #f1b79c; }
.reward-card .reward-card-conditions { margin-top: 0; }
.reward-card .reward-claim { margin-top: auto; }
@media (min-width: 561px) and (max-width: 800px) {
    .reward-grid.grid { grid-template-columns: minmax(0,1fr); max-width: 480px; margin-inline: auto; }
}
@media (max-width: 380px) {
    .reward-stats.has-map { grid-template-columns: minmax(0,1fr) 112px; }
    .reward-stats.has-map .reward-credits { grid-column: 1 / -1; margin-bottom: 4px; }
    .reward-stats.has-map .reward-map { grid-row: 2 / span 2; }
    .reward-stats .reward-credits strong { font-size: 30px; }
    .reward-stats .reward-gold-value strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .reward-garage-toggle > svg { transition: none; } }
