/* Tips & giveaways */
.gift-coin{display:inline-block;width:14px;height:14px;border-radius:50%;vertical-align:-2px;flex:0 0 auto;
  background:radial-gradient(circle at 34% 30%,#fff6c4 0 12%,#fcd34d 30%,#f59e0b 70%,#b45309 100%);
  box-shadow:inset 0 0 0 1.5px rgba(120,53,15,.45),0 1px 2px rgba(0,0,0,.35)}
.gift-coin.is-lg{width:22px;height:22px}

/* Composer button */
#gift-btn{position:relative;color:#fbbf24}
#gift-btn:hover{color:#fde68a;background:rgba(251,191,36,.1)}
#gift-intro{position:absolute;right:56px;bottom:calc(100% - 4px);z-index:30;width:250px;display:flex;flex-direction:column;gap:4px;padding:12px 13px;border-radius:12px;
  background:#1c1a14;border:1px solid rgba(251,191,36,.35);box-shadow:0 14px 34px rgba(0,0,0,.5);font-size:12px;color:#d4d4d8;line-height:1.45}
#gift-intro::after{content:"";position:absolute;right:22px;bottom:-6px;width:10px;height:10px;background:#1c1a14;border-right:1px solid rgba(251,191,36,.35);border-bottom:1px solid rgba(251,191,36,.35);transform:rotate(45deg)}
#gift-intro strong{color:#fde68a;font-size:13px}
#gift-intro button{align-self:flex-end;margin-top:4px;border:0;border-radius:7px;padding:5px 10px;background:#fbbf24;color:#1c1302;font-weight:700;font-size:12px;cursor:pointer}

/* Pinned giveaway bar */
#giveaway-bar{flex-shrink:0;display:flex;flex-direction:column;gap:6px;padding:8px 12px 0}
#giveaway-bar[hidden]{display:none}
.gw-bar{display:flex;align-items:center;gap:11px;padding:9px 10px 9px 12px;border-radius:12px;
  background:linear-gradient(100deg,rgba(251,191,36,.16),rgba(251,191,36,.05) 55%,rgba(255,255,255,.02));
  border:1px solid rgba(251,191,36,.3);animation:gw-in .25s ease}
.gw-bar.is-ended{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08)}
@keyframes gw-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.gw-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:20px;color:#1c1302;background:linear-gradient(145deg,#fde68a,#f59e0b);flex:0 0 auto}
.gw-bar.is-ended .gw-icon{background:#27272a;color:#a1a1aa}
.gw-main{flex:1;min-width:0}
.gw-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gw-tag{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fbbf24}
.gw-bar.is-ended .gw-tag{color:#a1a1aa}
.gw-prize{display:inline-flex;align-items:center;gap:5px;font-size:15px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
.gw-meta,.gw-title{font-size:12px;color:#d4d4d8}
.gw-title{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gw-sub{margin-top:2px;font-size:12px;color:#a1a1aa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gw-sub b{color:#e4e4e7;font-weight:600;font-variant-numeric:tabular-nums}
.gw-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.gw-enter{border:0;border-radius:9px;padding:8px 14px;background:#fbbf24;color:#1c1302;font-weight:800;font-size:13px;cursor:pointer;white-space:nowrap}
.gw-enter:hover{background:#fcd34d}
.gw-enter:disabled{opacity:.6;cursor:default}
.gw-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.06);color:#d4d4d8;font-size:12px;font-weight:600;white-space:nowrap}
.gw-pill.is-in{background:rgba(74,222,128,.12);color:#86efac}
.gw-pill .material-icons-round{font-size:15px}
.gw-link{border:0;background:none;color:#fca5a5;font:inherit;cursor:pointer;padding:0;text-decoration:underline}
.gw-help{width:30px;height:30px;border:0;border-radius:8px;display:grid;place-items:center;background:transparent;color:#71717a;cursor:pointer}
.gw-help:hover{background:rgba(255,255,255,.06);color:#e4e4e7}
.gw-help .material-icons-round{font-size:18px}
@media (max-width:640px){
  .gw-bar{flex-wrap:wrap}
  .gw-actions{width:100%;justify-content:flex-end}
  .gw-enter{flex:1}
  .gw-sub{white-space:normal}
}

/* Cards in the message list */
.gift-card{display:flex;align-items:flex-start;gap:10px;margin:6px auto;max-width:560px;width:100%;padding:10px 12px;border-radius:12px;
  background:rgba(251,191,36,.07);border:1px solid rgba(251,191,36,.2);text-align:left;font-size:13px;color:#d4d4d8;line-height:1.45}
.gift-card b{color:#fff;font-weight:700}
.gift-card.is-mine{background:rgba(74,222,128,.08);border-color:rgba(74,222,128,.25)}
.gift-card-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto;background:rgba(251,191,36,.12)}
.gift-card-icon.is-gw{font-size:19px;color:#1c1302;background:linear-gradient(145deg,#fde68a,#f59e0b)}
.gift-gw.is-empty .gift-card-icon,.gift-gw.is-cancelled .gift-card-icon{background:#27272a;color:#a1a1aa}
.gift-card-body{flex:1;min-width:0}
.gift-amt{color:#fbbf24;font-weight:800;white-space:nowrap}
.gift-note{margin-top:2px;color:#a1a1aa;font-style:italic}
.gift-time{font-size:11px;color:#52525b;white-space:nowrap;padding-top:2px}
.gift-gw-head{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fbbf24}
.gift-gw-state{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;flex-wrap:wrap}
.gc-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#a1a1aa}
.gc-live i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.18)}
.gc-live b{color:#e4e4e7;font-variant-numeric:tabular-nums}
.gc-done{font-size:12px;color:#71717a}
.gift-gw .gw-enter{padding:6px 14px}

/* Dialogs */
.gift-modal{width:min(440px,100%);color:#d4d4d8}
.gift-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.gift-modal h3{margin:0;font-size:18px;font-weight:800;color:#fff}
.gift-modal-head p{margin:4px 0 0;font-size:12px;color:#a1a1aa}
.gift-modal-head p b{color:#fbbf24}
.gift-x{width:32px;height:32px;border:0;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.05);color:#a1a1aa;cursor:pointer}
.gift-x:hover{color:#fff;background:rgba(255,255,255,.1)}
.gift-choices{display:flex;flex-direction:column;gap:8px}
.gift-choice{display:flex;align-items:center;gap:12px;width:100%;padding:13px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#d4d4d8;text-align:left;cursor:pointer;font:inherit}
.gift-choice:hover:not(:disabled){border-color:rgba(251,191,36,.45);background:rgba(251,191,36,.06)}
.gift-choice:disabled{opacity:.5;cursor:not-allowed}
.gift-choice strong{display:block;color:#fff;font-size:14px}
.gift-choice small{display:block;margin-top:2px;font-size:12px;color:#a1a1aa;line-height:1.4}
.gift-choice>.material-icons-round:last-child{margin-left:auto;color:#52525b}
.gift-choice-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto;background:rgba(251,191,36,.1)}
.gift-choice-icon.is-gw{color:#1c1302;background:linear-gradient(145deg,#fde68a,#f59e0b);font-size:22px}
.gift-tips{display:flex;align-items:flex-start;gap:8px;margin-top:12px;padding:10px 11px;border-radius:10px;background:rgba(255,255,255,.03);font-size:12px;color:#a1a1aa;line-height:1.5}
.gift-tips .material-icons-round{font-size:17px;color:#fbbf24}
.gift-tips code{padding:1px 5px;border-radius:5px;background:rgba(255,255,255,.08);color:#e4e4e7;font-size:11px}
.gift-steps{margin:0 0 14px;padding:0;list-style:none;counter-reset:gs;display:flex;flex-direction:column;gap:8px}
.gift-steps li{counter-increment:gs;position:relative;padding-left:30px;font-size:12.5px;color:#a1a1aa;line-height:1.45}
.gift-steps li::before{content:counter(gs);position:absolute;left:0;top:-1px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:rgba(251,191,36,.14);color:#fbbf24;font-size:11px;font-weight:800}
.gift-steps b{color:#e4e4e7}
.gift-form{display:flex;flex-direction:column;gap:11px}
.gift-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:#a1a1aa;min-width:0}
.gift-field em{font-style:normal;font-weight:400;color:#52525b}
.gift-input{display:flex;align-items:center;gap:8px;padding:0 11px;height:42px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:#0d0d12}
.gift-input:focus-within{border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.15)}
.gift-input input,.gift-input select{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:14px}
.gift-input select option{background:#18181b}
.gift-at{color:#71717a;font-weight:700}
.gift-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gift-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:-4px}
.gift-chips button{border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:5px 11px;background:rgba(255,255,255,.04);color:#e4e4e7;font-size:12px;font-weight:700;cursor:pointer}
.gift-chips button:hover:not(:disabled){border-color:#fbbf24;color:#fde68a}
.gift-chips button:disabled{opacity:.35;cursor:not-allowed}
.gift-fine{margin:0;font-size:11.5px;color:#71717a;line-height:1.45}
.gift-error{margin:0;padding:8px 10px;border-radius:8px;background:rgba(248,113,113,.1);color:#fca5a5;font-size:12px}
.gift-error[hidden]{display:none}
.gift-primary{height:44px;border:0;border-radius:10px;background:#fbbf24;color:#1c1302;font-size:14px;font-weight:800;cursor:pointer;width:100%}
.gift-primary:hover:not(:disabled){background:#fcd34d}
.gift-primary:disabled{opacity:.6;cursor:default}
.gift-tips+.gift-primary{margin-top:14px}
@media (max-width:420px){.gift-row{grid-template-columns:1fr}}
.gift-wait{display:flex;align-items:center;gap:7px;margin:0;padding:9px 11px;border-radius:10px;background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:#fde68a;font-size:12px}
.gift-wait[hidden]{display:none}
.gift-wait .material-icons-round{font-size:16px}
.gift-wait b{font-variant-numeric:tabular-nums}

/* Message requests (DMs from non-friends) */
.dm-request-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:9px;cursor:pointer}
.dm-request-row:hover{background:rgba(255,255,255,.04)}
.dm-request-row.active{background:rgba(0,153,255,.1)}
.dm-request-avatar{position:relative;width:26px;height:26px;border-radius:8px;flex:0 0 auto;overflow:hidden;display:grid;place-items:center;font-size:10px;font-weight:700;color:#fff}
.dm-request-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dm-request-copy{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.dm-request-copy strong{font-size:12.5px;color:#e4e4e7;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-request-copy small{font-size:11.5px;color:#71717a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-request-x{width:22px;height:22px;border:0;border-radius:6px;display:grid;place-items:center;background:transparent;color:#52525b;cursor:pointer;flex:0 0 auto;opacity:0}
.dm-request-row:hover .dm-request-x,.dm-request-x:focus-visible{opacity:1}
.dm-request-x:hover{background:rgba(255,255,255,.08);color:#e4e4e7}
.dm-request-x .material-icons-round{font-size:15px}
@media (hover:none){.dm-request-x{opacity:1}}
#dm-request-bar{flex-shrink:0;display:flex;align-items:center;gap:10px;margin:8px 12px 0;padding:9px 11px;border-radius:12px;background:rgba(0,153,255,.08);border:1px solid rgba(0,153,255,.25);font-size:12px;color:#a1a1aa}
#dm-request-bar>.material-icons-round{color:#38bdf8;font-size:20px}
#dm-request-bar div{flex:1;min-width:0;display:flex;flex-direction:column}
#dm-request-bar strong{color:#fff;font-size:13px}
#dm-request-bar button{border:0;border-radius:8px;padding:7px 12px;font-weight:700;font-size:12px;cursor:pointer;background:#0099ff;color:#fff;white-space:nowrap}
#dm-request-bar button.is-danger{background:rgba(248,113,113,.12);color:#fca5a5}
#dm-request-bar button:disabled{opacity:.6}
@media (max-width:560px){#dm-request-bar{flex-wrap:wrap}#dm-request-bar div{flex-basis:100%}}
