/* world: comentarios y regalos del perfil */
.pfWorld{
  margin-top: 18px; padding: 22px; border-radius: var(--radius, 26px);
  background: var(--surface, #fff); border: 1px solid var(--line, #E9E8F3); box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.wHead{ display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wTitle{ margin: 0; font: 800 26px/1 var(--font-display); color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.wTitle i{ color: var(--lav-500); font-size: .8em; }
.wTotal{ font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--lav-100); color: var(--lav-700); }
.wSub{ margin: 0; color: var(--muted); font-size: 14px; }

.wAv{ width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--lav-100); }
.wAvEmpty{ display: grid; place-items: center; font: 800 16px var(--font-display); color: var(--lav-700); background: linear-gradient(135deg, var(--lav-200), var(--blush)); }

/* caja para escribir */
.wCompose{ display: flex; gap: 12px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wCompose.wLogin{ justify-content: center; padding: 10px 0 18px; }
.wComposeBody{ flex: 1; min-width: 0; display: grid; gap: 10px; }
.wCompose textarea, .wReplyForm textarea{
  width: 100%; resize: vertical; min-height: 64px; padding: 13px 16px; border-radius: 18px;
  border: 1.5px solid var(--line-2); background: var(--lav-50); color: var(--ink);
  font: 500 15px/1.45 var(--font-body); transition: border-color .2s, background .2s, box-shadow .2s;
}
.wCompose textarea:focus, .wReplyForm textarea:focus{ outline: none; border-color: var(--lav-400); background: #fff; box-shadow: 0 0 0 4px var(--lav-100); }
.wComposeBar{ display: flex; align-items: center; gap: 10px; }
.wGhost{
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed var(--lav-300); background: #fff; color: var(--lav-700); font: 700 14px var(--font-body);
  transition: background .2s, border-color .2s, transform .15s;
}
.wGhost:hover{ background: var(--lav-50); border-color: var(--lav-500); }
.wGhost:active{ transform: scale(.97); }
.wGhost i{ color: var(--blush-ink); }
.wLen{ margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.wSend{ min-width: 104px; }
.wErr{ margin: 0; color: #C2264B; font-size: 13px; font-weight: 600; }
.wDraft{ position: relative; }
.wDraft .wGift{ margin-top: 0; }
.wDraftX{ position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.85); color: var(--ink); }

/* lista */
.wList{ display: grid; gap: 4px; margin-top: 6px; }
.wItem{ display: flex; gap: 12px; padding: 14px 0; animation: wIn .35s var(--ease) both; }
.wItem + .wItem:not(.wReply){ border-top: 1px dashed var(--line); }
@keyframes wIn{ from{ opacity: 0; transform: translateY(6px); } }
.wBody{ flex: 1; min-width: 0; }
.wMeta{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wName{ font: 700 15px var(--font-display); color: var(--ink); text-decoration: none; }
.wName:hover{ color: var(--lav-600); }
.wOwner{ font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; color: #fff; background: linear-gradient(100deg, var(--lav-600), #C46BD8); }
.wMeta time{ color: var(--muted); font-size: 12px; }
.wTools{ margin-left: auto; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.wItem:hover > .wBody > .wMeta .wTools, .wTools:focus-within{ opacity: 1; }
@media (hover: none){ .wTools{ opacity: 1; } }
.wTools button{ border: 0; background: none; cursor: pointer; color: var(--muted); font: 600 12px var(--font-body); padding: 4px 8px; border-radius: 8px; }
.wTools button:hover{ background: var(--lav-50); color: var(--lav-700); }
.wText{ margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.wReplies{ margin-top: 10px; display: grid; gap: 8px; }
.wReply{ padding: 12px 14px; border-radius: 18px; background: var(--lav-50); border: 1px solid var(--lav-100); }
.wReply .wAv{ width: 32px; height: 32px; }
.wReplyForm{ display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.wReplyForm textarea{ min-height: 44px; padding: 10px 14px; }
.wEmpty{ text-align: center; color: var(--muted); padding: 28px 0 10px; margin: 0; }
.wEmpty i{ display: block; font-size: 26px; color: var(--lav-300); margin-bottom: 8px; }
.wMore{ display: block; margin: 12px auto 0; }

/* caja de regalo + niveles por oreos */
.wGift{
  --g-bg: var(--lav-50); --g-line: var(--lav-200); --g-ink: var(--lav-700); --g-chip: #fff;
  display: inline-block; max-width: 100%; margin-top: 10px; padding: 12px 14px 14px; border-radius: 20px;
  background: var(--g-bg); border: 1.5px solid var(--g-line); color: var(--g-ink);
}
.wGift.t1{ --g-bg: #fff; --g-line: var(--line-2); --g-ink: var(--ink); --g-chip: var(--lav-50); }
.wGift.t2{ --g-bg: linear-gradient(135deg, #F1ECFF, #E4DAFF); --g-line: #C9B8FF; --g-ink: #4A268D; }
.wGift.t3{ --g-bg: linear-gradient(135deg, #DDF3FF, #C3E6FF); --g-line: #8CCBF5; --g-ink: #0F4C75; }
.wGift.t4{ --g-bg: linear-gradient(135deg, #FFE1EF, #FFC4DE); --g-line: #F58EBD; --g-ink: #8A1E52; }
.wGift.t5{ --g-bg: linear-gradient(135deg, #FFD89A, #FFA94D); --g-line: #F08A24; --g-ink: #5C2A00; --g-chip: rgba(255,255,255,.7); }
.wGift.t6{ --g-bg: linear-gradient(135deg, #FF5A6E, #D7193A); --g-line: #B0102C; --g-ink: #fff; --g-chip: rgba(255,255,255,.22);
  box-shadow: 0 10px 28px -12px rgba(215,25,58,.7); position: relative; overflow: hidden; }
.wGift.t6::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: wShine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes wShine{ 60%, 100%{ transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce){ .wGift.t6::after, .wItem{ animation: none; } }
.wGiftHead{ display: flex; align-items: center; gap: 8px; }
.wGiftIcon{ width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--g-chip); }
.wGiftChip{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--g-chip); font: 800 14px var(--font-display); font-variant-numeric: tabular-nums; }
.wOreo img{ width: 18px; height: 18px; }
.wGiftCards{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wMini{ margin: 0; width: 70px; position: relative; }
.wMini img{ width: 70px; aspect-ratio: 5/7; object-fit: cover; border-radius: 10px; display: block; background: var(--lav-100); box-shadow: 0 4px 10px -4px rgba(44,27,84,.35); transition: transform .2s var(--ease); }
.wMini:hover img{ transform: translateY(-3px) rotate(-1.5deg); }
.wMini figcaption{ font-size: 11px; font-weight: 700; text-align: center; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* modal */
body.wNoScroll{ overflow: hidden; }
.wModal{ position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; }
.wModalBack{ position: absolute; inset: 0; background: rgba(24,14,48,.45); backdrop-filter: blur(4px); animation: wFade .2s both; }
@keyframes wFade{ from{ opacity: 0; } }
.wModalCard{
  position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; animation: wPop .28s var(--ease) both;
}
@keyframes wPop{ from{ opacity: 0; transform: translateY(14px) scale(.98); } }
.wModalTop{ display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 8px; }
.wModalTop h3{ margin: 0; font: 800 24px var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.wModalTop em{ font-style: normal; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wX{ width: 40px; height: 40px; border-radius: 14px; border: 0; background: var(--lav-50); cursor: pointer; font-size: 18px; color: var(--ink); }
.wX:hover{ background: var(--lav-100); }
.wFilters{ display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 8px 24px 14px; }
.wF{ display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wF input, .wF select{ width: 100%; height: 40px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--lav-50); font: 600 14px var(--font-body); color: var(--ink); }
.wF input:focus, .wF select:focus{ outline: none; border-color: var(--lav-400); background: #fff; }
.wFCode input{ font-family: var(--font-mono); }
.wGrid{ flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; padding: 6px 24px 16px; align-content: start; min-height: 240px; background: linear-gradient(var(--lav-50), #fff 80px); }
.wGridMsg{ grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }
.wPick{ text-align: left; padding: 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.wPick:hover:not(:disabled){ border-color: var(--lav-300); transform: translateY(-2px); }
.wPick:disabled{ opacity: .45; cursor: not-allowed; }
.wPick.on{ border-color: var(--lav-600); box-shadow: 0 0 0 4px var(--lav-100); }
.wPickImg{ position: relative; display: block; }
.wPickImg img{ width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 10px; display: block; background: var(--lav-100); }
.wPickImg b{ position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(24,14,48,.78); color: #fff; font: 700 12px var(--font-display); }
.wTick{ position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lav-600); color: #fff; font-size: 12px; transform: scale(0); transition: transform .2s var(--ease); }
.wPick.on .wTick{ transform: scale(1); }
.wPickName{ display: block; margin-top: 6px; font: 700 14px var(--font-display); color: var(--ink); }
.wPickSub{ display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wPickSub code{ font-size: 11px; }
.wPager{ display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wCount{ color: var(--muted); font-size: 13px; flex: 1; }
.wPages{ display: flex; align-items: center; gap: 10px; }
.wPages button, .wSelTools button{ height: 34px; min-width: 34px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: 600 13px var(--font-body); color: var(--ink); }
.wPages button:disabled{ opacity: .4; cursor: default; }
.wSelTools{ display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.wModalFoot{ display: flex; align-items: center; gap: 12px; padding: 14px 24px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--lav-50); }
.wOreoIn{ display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; }
.wOreoIn img{ width: 22px; height: 22px; }
.wOreoIn input{ width: 110px; border: 0; outline: none; font: 700 16px var(--font-display); color: var(--ink); background: none; }
.wOreoIn:has(input.bad){ border-color: #C2264B; }
.wHave{ font-size: 13px; color: var(--muted); }
.wTierPreview{ font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.wTierPreview:empty{ display: none; }
.wTierPreview.t1{ background: #fff; border: 1px solid var(--line-2); }
.wTierPreview.t2{ background: #E4DAFF; color: #4A268D; }
.wTierPreview.t3{ background: #C3E6FF; color: #0F4C75; }
.wTierPreview.t4{ background: #FFC4DE; color: #8A1E52; }
.wTierPreview.t5{ background: #FFA94D; color: #5C2A00; }
.wTierPreview.t6{ background: #D7193A; color: #fff; }
.wSelInfo{ margin-left: auto; font: 800 14px var(--font-display); color: var(--lav-700); }
.wSelInfo.full{ color: var(--blush-ink); }
.wModalFoot .btn:disabled{ opacity: .5; cursor: not-allowed; }

@media (max-width: 640px){
  .pfWorld{ padding: 16px; }
  .wAv{ width: 36px; height: 36px; }
  .wMeAv{ display: none; }
  .wModal{ padding: 0; place-items: end stretch; }
  .wModalCard{ border-radius: 24px 24px 0 0; max-height: 94dvh; }
  .wFilters{ grid-template-columns: repeat(2, 1fr); }
  .wGrid{ grid-template-columns: repeat(3, 1fr); padding: 6px 14px 12px; }
  .wSelInfo{ margin-left: 0; }
  .wModalFoot .btn{ flex: 1; }
}

/* vista previa (3) y paginación */
.wList{ position: relative; transition: opacity .2s; }
.wList.wLoading{ opacity: .45; pointer-events: none; }
.wList.wPeek::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--surface, #fff)); pointer-events: none; }
.wExpand{
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 4px; padding: 14px;
  border-radius: 18px; border: 1.5px dashed var(--lav-300); background: var(--lav-50); color: var(--lav-700);
  font: 700 15px var(--font-display); cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.wExpand[hidden]{ display: none; }
.wExpand:hover{ background: var(--lav-100); border-color: var(--lav-500); }
.wExpand:active{ transform: scale(.99); }
.wExpand i{ transition: transform .2s var(--ease); }
.wExpand:hover i{ transform: translateY(2px); }
.wPagerBar{ display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.wPagerBar[hidden]{ display: none; }
.wPagerBar button{
  width: 48px; height: 48px; border-radius: 16px; border: 1.5px solid var(--lav-200); background: #fff; cursor: pointer;
  font: 700 20px var(--font-display); color: var(--lav-700); transition: background .2s, border-color .2s, transform .15s;
}
.wPagerBar button:hover:not(:disabled){ background: var(--lav-50); border-color: var(--lav-400); }
.wPagerBar button:active:not(:disabled){ transform: scale(.94); }
.wPagerBar button:disabled{ opacity: .4; cursor: default; background: var(--lav-50); }
.wPageBox{ display: flex; align-items: center; gap: 12px; height: 48px; padding: 4px 18px 4px 4px; border-radius: 16px; background: var(--lav-100); }
.wPageBox input{
  width: 52px; height: 40px; border: 0; border-radius: 12px; background: #fff; text-align: center; box-shadow: var(--shadow-sm);
  font: 700 17px var(--font-display); color: var(--ink); -moz-appearance: textfield;
}
.wPageBox input::-webkit-inner-spin-button, .wPageBox input::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }
.wPageBox input:focus{ outline: 2px solid var(--lav-500); }
.wPageOf{ font: 700 17px var(--font-display); color: var(--lav-700); white-space: nowrap; }
.wCollapse{ display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted); font: 600 13px var(--font-body); cursor: pointer; padding: 6px 12px; border-radius: 10px; }
.wCollapse:hover{ color: var(--lav-700); background: var(--lav-50); }
.wCollapse[hidden]{ display: none; }
@media (max-width: 480px){ .wPagerBar{ gap: 6px; } .wPagerBar button{ width: 40px; height: 40px; } .wPageBox{ height: 40px; padding-right: 12px; } .wPageBox input{ height: 32px; width: 44px; } }

/* fotos y gifs */
.wImg{ display: block; width: fit-content; max-width: min(100%, 420px); margin-top: 10px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--lav-50); }
.wImg img{ display: block; max-width: 100%; max-height: 360px; object-fit: contain; transition: transform .3s var(--ease); }
.wImg:hover img{ transform: scale(1.02); }
.wImgDraft{ position: relative; width: fit-content; max-width: 260px; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--lav-200); background: var(--lav-50); }
.wImgDraft[hidden]{ display: none; }
.wImgDraft img{ display: block; max-width: 100%; max-height: 180px; }
.wImgLoading{ display: block; padding: 18px 24px; color: var(--lav-700); font-weight: 600; font-size: 14px; }
.wImgBtn{ cursor: pointer; }
@media (max-width: 640px){ .wComposeBar{ flex-wrap: wrap; } .wGhost span{ display: none; } .wLen{ margin-left: auto; } }

/* ===== modal de regalo, estilo jisoo ===== */
.wModalCard{ width: min(1080px, 100%); border-radius: 32px; background: #fff; border: 1px solid var(--lav-200); }
.wModalTop{ position: relative; gap: 14px; justify-content: flex-start; padding: 22px 24px 18px; background:
  radial-gradient(120% 140% at 0% 0%, #F3EDFF 0%, transparent 55%), radial-gradient(90% 120% at 100% 0%, #FDE3EF 0%, transparent 60%), #fff; }
.wModalTop::after{ content: "\2726"; position: absolute; right: 86px; top: 18px; color: var(--lav-300); font-size: 18px; }
.wModalBadge{ width: 52px; height: 52px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--lav-500), #E58FC0); box-shadow: 0 10px 22px -10px rgba(123,63,228,.7); transform: rotate(-6deg); }
.wModalHead{ flex: 1; min-width: 0; }
.wModalTop h3{ font-size: 26px; }
.wModalHead p{ margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wX{ border-radius: 50%; background: #fff; border: 1.5px solid var(--lav-200); transition: transform .2s var(--ease), background .2s; }
.wX:hover{ background: var(--lav-50); transform: rotate(90deg); }

.wFilters{ grid-template-columns: repeat(8, 1fr); gap: 10px; padding: 4px 24px 16px; border-bottom: 1px solid var(--lav-100); }
.wFCode{ grid-column: span 5; }
.wSel{ grid-column: span 1; }
.wTxt{ grid-column: span 2; }
.wF > span{ font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--lav-600); padding-left: 4px; }
.wF input, .wF select{ height: 44px; border-radius: 14px; border: 1.5px solid var(--lav-100); background-color: var(--lav-50); font-weight: 600; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.wF input::placeholder{ color: var(--lav-300); font-weight: 500; }
.wF input:focus, .wF select:focus{ border-color: var(--lav-400); background-color: #fff; box-shadow: 0 0 0 4px var(--lav-100); }
.wF select{
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237B3FE4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px;
}
.wF select:hover{ border-color: var(--lav-300); }
.wFCode{ position: relative; align-self: end; }
.wFCode > i{ position: absolute; left: 16px; bottom: 15px; color: var(--lav-500); font-size: 14px; pointer-events: none; }
.wFCode input{ padding-left: 42px; font-family: var(--font-body); background-color: #fff; border-color: var(--lav-200); }

.wGrid{ background: linear-gradient(180deg, #FBF9FF, #fff 120px); grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; padding: 16px 24px; }
.wPick{ border-radius: 20px; border: 2px solid transparent; background: #fff; box-shadow: 0 1px 2px rgba(44,27,84,.05), 0 8px 18px -12px rgba(44,27,84,.35); padding: 8px 8px 10px; }
.wPick:hover:not(:disabled){ border-color: var(--lav-200); transform: translateY(-3px) rotate(-.6deg); }
.wPick.on{ border-color: var(--lav-500); background: linear-gradient(180deg, #F6F1FF, #fff); box-shadow: 0 0 0 4px var(--lav-100), 0 12px 24px -14px rgba(123,63,228,.6); }
.wPickImg img{ border-radius: 14px; }
.wPickImg b{ background: rgba(255,255,255,.92); color: var(--lav-800); }
.wG{ position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; font: 800 11px var(--font-display); color: #fff; background: linear-gradient(120deg, var(--lav-500), #E58FC0); }
.wGEv{ background: linear-gradient(120deg, #F08A24, #E2559B); }
.wTick{ background: linear-gradient(135deg, var(--lav-600), #E58FC0); box-shadow: 0 0 0 3px #fff; }
.wPickName{ font-size: 15px; }
.wPickSub code{ color: var(--lav-600); background: var(--lav-50); padding: 0 4px; border-radius: 4px; }

.wPager{ border-top: 1px solid var(--lav-100); background: #fff; }
.wPages{ gap: 6px; padding: 4px; border-radius: 16px; background: var(--lav-50); }
.wPages b{ min-width: 64px; text-align: center; font: 800 15px var(--font-display); color: var(--lav-800); }
.wPages button{ border-radius: 12px; border: 0; background: #fff; color: var(--lav-700); box-shadow: var(--shadow-sm); }
.wSelTools button{ border-radius: 999px; border-color: var(--lav-200); color: var(--lav-700); font-weight: 700; }
.wSelTools button:hover{ background: var(--lav-50); }

.wModalFoot{ background: linear-gradient(180deg, #FBF9FF, #F5F0FF); border-top: 1px solid var(--lav-100); align-items: flex-start; }
.wModalFoot > .btn, .wModalFoot > .wSelInfo{ align-self: center; }
/* la caja de oreos toma el color del regalo */
.wOreoWrap{ display: grid; gap: 4px; }
.wOreoIn{
  --g-bg: #fff; --g-line: var(--lav-200); --g-ink: var(--ink);
  height: 56px; padding: 0 8px 0 12px; gap: 10px; border-radius: 18px; background: var(--g-bg); border: 1.5px solid var(--g-line); color: var(--g-ink);
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s, color .35s; min-width: 250px;
}
.wOreoIn.t1{ --g-bg: #fff; --g-line: var(--line-2); }
.wOreoIn.t2{ --g-bg: linear-gradient(135deg, #F1ECFF, #E4DAFF); --g-line: #C9B8FF; --g-ink: #4A268D; }
.wOreoIn.t3{ --g-bg: linear-gradient(135deg, #DDF3FF, #C3E6FF); --g-line: #8CCBF5; --g-ink: #0F4C75; }
.wOreoIn.t4{ --g-bg: linear-gradient(135deg, #FFE1EF, #FFC4DE); --g-line: #F58EBD; --g-ink: #8A1E52; }
.wOreoIn.t5{ --g-bg: linear-gradient(135deg, #FFD89A, #FFA94D); --g-line: #F08A24; --g-ink: #5C2A00; }
.wOreoIn.t6{ --g-bg: linear-gradient(135deg, #FF5A6E, #D7193A); --g-line: #B0102C; --g-ink: #fff; box-shadow: 0 10px 24px -12px rgba(215,25,58,.8); }
.wOreoIn.over{ --g-bg: #FFF5F6; --g-line: #E5484D; --g-ink: #B4232A; animation: wShake .3s; }
@keyframes wShake{ 25%{ transform: translateX(-4px); } 75%{ transform: translateX(4px); } }
.wOreoIn img{ width: 30px; height: 30px; }
.wOreoField{ display: grid; line-height: 1.1; flex: 1; }
.wOreoField small{ font-size: 11px; font-weight: 700; opacity: .75; }
.wOreoIn input{ width: 140px; color: inherit; font-size: 18px; }
.wOreoIn input::placeholder{ color: inherit; opacity: .4; }
.wOreoIn input::-webkit-inner-spin-button, .wOreoIn input::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }
.wOreoIn input{ -moz-appearance: textfield; }
.wMax{ height: 32px; padding: 0 12px; border-radius: 10px; border: 0; cursor: pointer; font: 800 12px var(--font-display); text-transform: uppercase; color: inherit; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }
.wMax:hover{ opacity: 1; }
.wOreoErr{ margin: 0; padding-left: 6px; color: #B4232A; font-size: 12px; font-weight: 700; }
.wOreoErr[hidden]{ display: none; }
.wTierPreview, .wHave{ display: none; }
.wSelInfo{ padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--lav-200); }
.wModalFoot .btnDark{ background: linear-gradient(120deg, var(--lav-700), var(--lav-500)); box-shadow: 0 4px 0 var(--lav-800), 0 14px 24px -12px rgba(123,63,228,.7); }

@media (max-width: 760px){
  .wFilters{ grid-template-columns: repeat(2, 1fr); }
  .wFCode{ grid-column: 1 / -1; }
  .wSel, .wTxt{ grid-column: span 1; }
  .wFilters > .wSel:nth-of-type(4){ grid-column: 1 / -1; }
  .wOreoWrap{ flex: 1 1 100%; }
  .wOreoIn{ min-width: 0; }
  .wModalBadge{ width: 42px; height: 42px; font-size: 18px; }
  .wModalTop h3{ font-size: 20px; }
}

/* diálogo de confirmación */
.wDlg{ position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 20px; }
.wDlgBack{ position: absolute; inset: 0; background: rgba(24,14,48,.42); backdrop-filter: blur(4px); animation: wFade .18s both; }
.wDlgCard{
  position: relative; width: min(400px, 100%); padding: 26px 24px 20px; border-radius: 28px; text-align: center; background:
  radial-gradient(120% 90% at 50% 0%, #F3EDFF, transparent 60%), #fff; border: 1px solid var(--lav-200); box-shadow: var(--shadow);
  animation: wPop .24s var(--ease) both; font-family: var(--font-body);
}
.wDlg.out .wDlgCard{ animation: wDlgOut .16s ease-in both; }
.wDlg.out .wDlgBack{ opacity: 0; transition: opacity .16s; }
@keyframes wDlgOut{ to{ opacity: 0; transform: scale(.96); } }
.wDlgIcon{ width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--lav-500), #E58FC0); box-shadow: 0 10px 22px -10px rgba(123,63,228,.7); transform: rotate(-6deg); }
.wDlgCard.danger .wDlgIcon{ background: linear-gradient(135deg, #FF7A8A, #E5484D); box-shadow: 0 10px 22px -10px rgba(229,72,77,.7); }
.wDlgCard h4{ margin: 0; font: 800 21px var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.wDlgCard p{ margin: 8px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.wDlgBtns{ display: flex; gap: 10px; }
.wDlgBtns .btn{ flex: 1; justify-content: center; }
.wDlgCard.danger .btnDark{ background: linear-gradient(120deg, #E5484D, #FF6B7D); box-shadow: 0 4px 0 #B4232A, 0 14px 24px -12px rgba(229,72,77,.7); }

/* celular: el modal entero hace scroll (antes la cuadrícula se comía el alto y no se llegaba a los oreos) */
@media (max-width: 760px){
  .wModalCard{ overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .wGrid{ flex: none; overflow: visible; min-height: 0; }
  .wFilters{ padding-bottom: 12px; }
  .wFilters .wTxt{ display: none; }
  .wFilters.showMore .wTxt{ display: grid; }
  .wMoreFilters{ grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--lav-200); background: #fff; color: var(--lav-700); font: 700 12.5px var(--font-body); cursor: pointer; }
  .wPager{ position: static; }
  .wModalFoot{ position: sticky; bottom: 0; z-index: 3; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -10px 24px -16px rgba(44,27,84,.4); }
  .wOreoIn{ height: 50px; }
  .wSelInfo{ order: 2; }
  .wModalFoot .btn{ order: 3; padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 761px){ .wMoreFilters{ display: none; } }

/* ===== el modal siempre cabe: más compacto y, si no entra, scroll con el pie fijo abajo ===== */
.wModalCard{ max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.wModalFoot{ position: sticky; bottom: 0; z-index: 3; }
.wPager{ position: sticky; bottom: var(--w-foot-h, 0px); z-index: 2; }
.wModalTop{ padding: 16px 22px 12px; }
.wModalTop h3{ font-size: 22px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wModalBadge{ width: 44px; height: 44px; font-size: 18px; border-radius: 15px; }
.wModalHead p{ font-size: 13px; }
.wModalTop::after{ display: none; }
@media (min-width: 761px){
  /* una sola fila de filtros: código, idol, grupo, era, evento, tipo, rareza, orden */
  .wFilters{ grid-template-columns: 1.6fr repeat(7, minmax(0, 1fr)); gap: 8px; padding: 2px 22px 12px; }
  .wFCode, .wSel, .wTxt{ grid-column: span 1; }
  .wFilters > .wTxt{ order: 1; }
  .wFilters > .wSel{ order: 2; }
  .wFCode{ order: 0; }
  .wF > span{ font-size: 10px; }
  .wF input, .wF select{ height: 40px; font-size: 13px; padding-left: 10px; }
  .wF select{ padding-right: 28px; background-position: right 10px center; }
  .wFCode input{ padding-left: 36px; }
  .wFCode > i{ left: 13px; bottom: 13px; }
  .wGrid{ min-height: 180px; padding: 12px 22px; }
  .wPager{ padding: 8px 22px; }
  .wModalFoot{ padding: 12px 22px 14px; }
}
@media (min-width: 761px) and (max-height: 760px){
  .wModalHead p{ display: none; }
  .wGrid{ grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
.wPager{ position: static; }
