.profile-gifts{margin-top:9px;padding:9px;text-align:left;background:linear-gradient(130deg,#24221d,#181a1c 65%);border:1px solid #80653e;color:#eadac0}
.gift-heading,.gift-dialog header,.gift-inspect{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-gifts h3{margin:0;font:600 17px Georgia,serif;color:#edcb94}.gift-heading a{color:#ecc98f}
.gift-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:8px}
.gift-slot{box-sizing:border-box;background:#191b1d;border:1px solid #715c40;box-shadow:inset 0 0 0 2px #22221f;aspect-ratio:1;position:relative;min-width:0;padding:0;display:block}
button.gift-slot{cursor:pointer}
.gift-slot:focus-visible,.gift-product:focus-visible{outline:2px solid #f2d38d;outline-offset:1px}
.gift-count{position:absolute;top:2px;right:2px;background:#15120fed;color:#fff2c1;border:1px solid #d5a656;padding:1px 4px;font:bold 12px Georgia,serif}
.gift-art{display:block;width:100%;aspect-ratio:1;background-image:url('/art/fairy/gifts.webp');background-size:400% 300%;background-repeat:no-repeat}
.gift-dialog{box-sizing:border-box;width:min(800px,95vw);max-height:90dvh;overflow:auto;padding:0;color:#ece0c8;background:#1b1b1b;border:1px solid #ad8951;font:16px/1.35 Georgia,serif;box-shadow:0 15px 65px #000b;margin:auto}
.gift-dialog::backdrop{background:#08090aca}.gift-dialog header{position:sticky;top:0;z-index:1;padding:10px 16px;background:#28231d;border-bottom:1px solid #795e3b}.gift-dialog h2,.gift-dialog h3{margin:0;color:#eed09c}.gift-dialog h2{font-size:23px}.gift-dialog h3{font-size:18px;margin-bottom:8px}
.gift-dialog button{border:1px solid #8b7147;background:#322c23;color:#f6e3bb;padding:5px 10px;cursor:pointer;font:inherit}.gift-dialog :disabled{opacity:.6}
.gift-body{padding:14px}.gift-body section+section{margin-top:18px}.gift-body section>p{font-size:14px;max-width:65ch}
.gift-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(105px,100%),1fr));gap:8px}
.gift-product{display:flex;align-items:stretch;text-align:left;flex-direction:column;gap:4px;min-width:0}.gift-dialog .gift-product{padding:5px;background:#23211e}.gift-product b{font-size:14px}.gift-product small{font-size:12px;color:#d4c5ad}.gift-product strong{margin-top:auto;color:#f4d48f}
.gift-form{display:grid;gap:10px;max-width:440px;margin:auto}.gift-form[hidden],.gift-dialog [hidden]{display:none}.gift-form label{display:grid;gap:4px}.gift-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.gift-form input,.gift-form textarea{font:inherit;background:#111416;color:#f3e3bf;border:1px solid #846b4d;padding:6px}
.gift-inspect{justify-content:start}.gift-inspect .gift-art{width:82px;flex:none}.gift-inspect strong{margin-left:auto}.gift-history article{padding:10px 0;border-bottom:1px solid #534736}.gift-history small{margin-right:7px}.gift-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}
.leaderboard-power .profile-power{width:clamp(115px,14vw,178px)}
.rank-class-icon{display:block;width:36px;height:36px;background:url('/art/power-class-fist.webp') 1% center/132px auto no-repeat}

.gift-art.gift-sun{background-image:url('/art/fairy/sunny-gifts.webp');background-size:300% 200%;background-color:#ffc72c}
.gift-wink{animation:gift-wink 2.8s step-end infinite}
@keyframes gift-wink{0%,95%{background-position:0 0}87%,91%{background-position:50% 0}}
@media(prefers-reduced-motion:reduce){.gift-wink{animation:none}}
.gift-quantity{display:inline-flex;align-items:center;flex:none;gap:2px}
.gift-dialog .gift-quantity button{width:30px;height:32px;padding:0}
.gift-form .gift-quantity input{width:3.4em;text-align:center;padding:4px;appearance:textfield}
.gift-quantity input::-webkit-inner-spin-button{appearance:none}
@media(max-width:460px){.gift-form .gift-inspect{flex-wrap:wrap;gap:6px}.gift-form .gift-inspect .gift-art{width:50px}}

.gift-art.gift-award{
  position:relative;display:block;overflow:hidden;
  background:#121015 url('/art/awards/black-velvet.webp') center/100% 100% no-repeat;
}
.gift-award-icon,.gift-award-location{position:absolute;background-repeat:no-repeat}
.gift-award-icon{
  inset:5%;background-image:url('/art/awards/records-cutout.webp');background-size:400% 300%;
}
.gift-award-location{
  right:5%;bottom:5%;width:40%;height:40%;border:1px solid #8f7651;border-radius:50%;
  background-color:#121015;background-image:url('/art/awards/locations-cutout.webp');
  background-size:500% 400%;box-shadow:0 1px 5px #000b;
}
.gift-award[data-tier="I"] .gift-award-location{
  inset:6%;width:auto;height:auto;border:0;border-radius:0;background-color:transparent;box-shadow:none;
}
.gift-award-stamp{position:absolute;bottom:5%;left:5%;padding:1px 3px;border:1px solid #ad7d52;border-radius:2px;background:#2a170f;color:#ffdb9e;font:700 clamp(9px,1vw,14px)/1.1 Georgia,serif}
.gift-award:is([data-tier="I"],[data-tier="500"]) .gift-award-stamp{background:#25292f;color:#e2edf6;border-color:#9aaeb9}
.gift-award[data-tier="1000"] .gift-award-stamp{background:#382014;color:#ffe69a;border-color:#d0a04d}
