/* The rewards after a fight (conclusion.js). Under the drawer (what the DM opened is in front of it), above the dock, far under a reaction question. The map around the card stays tappable. */
#cc { position: fixed; inset: 0 var(--inset-r, 0px) 0 var(--inset-l, 0px); z-index: 3; display: grid; place-items: center; padding: calc(max(10px, env(safe-area-inset-top)) + 58px) 12px calc(var(--dock-h, 0px) + 12px); background: #0006; pointer-events: none; }
#cc[hidden], #cc-chip[hidden], #cc-wait[hidden] { display: none; }
.cc-card { pointer-events: auto; width: min(520px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--panel-2); color: var(--ink); border: 2px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 40px #000a; animation: df-in .2s ease-out; }
.cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-card h2 { margin: 0 0 4px; font-size: 22px; } .cc-card h2:focus { outline: none; }
.cc-card h3 { margin: 14px 0 6px; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.cc-each { color: var(--accent); font-weight: 700; }
.cc-rounds, .cc-sub { color: var(--muted); } .cc-sub { margin: 0 0 6px; }
.cc-x { min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; line-height: 1; margin: -8px -8px 0 0; }
.cc-list { list-style: none; margin: 0; padding: 0; }
.cc-row, .cc-line, .cc-share { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.cc-row label { flex: 1; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.cc-n { color: var(--muted); white-space: nowrap; }
.cc-total { margin: 6px 0 0; }
.cc-bonus, .cc-loot { display: flex; gap: 6px; align-items: center; padding: 4px 0; flex-wrap: wrap; }
.cc-bonus input, .cc-loot input, .cc-loot select, .cc-share input { min-height: 44px; min-width: 0; }
.cc-amt { flex: 0 0 72px; } .cc-reason { flex: 1 1 140px; } .cc-qty { flex: 0 0 56px; }
.cc-loot .cc-lname { flex: 1 1 120px; } .cc-loot [data-nl-name] { flex: 1 1 140px; } .cc-loot select { flex: 1 1 130px; max-width: 100%; }
.cc-bonus button, .cc-loot button { min-height: 44px; min-width: 44px; }
.cc-who { display: flex; flex-direction: column; flex: 1; } .cc-who small { color: var(--muted); }
.cc-share input { flex: 0 0 84px; text-align: right; } .cc-unit { color: var(--muted); }
.cc-reset { min-height: 44px; font-size: 13px; }
.cc-bonuses li { padding: 6px 0; }
.cc-ready { color: var(--accent); font-weight: 700; padding: 4px 0 8px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cc-actions button { flex: 1 1 130px; min-height: 48px; }
.cc-actions .cc-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.cc-err { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--radius); background: var(--bad); color: #fff; font-weight: 600; }
#cc-wait { position: fixed; z-index: 6; left: calc(50% + (var(--inset-l, 0px) - var(--inset-r, 0px)) / 2); transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 100px); max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--accent); font-weight: 600; text-align: center; box-shadow: 0 4px 20px #0006; pointer-events: none; }
#cc-chip { position: fixed; z-index: 3; left: calc(50% + (var(--inset-l, 0px) - var(--inset-r, 0px)) / 2); transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 100px); min-height: 44px; max-width: calc(100% - 24px); padding: 8px 16px; border-radius: 999px; background: var(--panel-2); border: 2px solid var(--accent); font-weight: 600; box-shadow: 0 4px 20px #0006; }
body.drawer-modal #cc-chip, body.rp-open #cc-chip { display: none; }
#log-rewards { margin: 0 0 8px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .cc-card { animation: none; } }
body.editing #cc, body.editing #cc-chip, body.editing #cc-wait { display: none; }
