/* Pergaminho de recompensas: compartilhado por caixas únicas e lotes. */
.nr-box-dialog { --ink:#163449; --gold:#b58a34; box-sizing:border-box; width:min(940px,94vw); max-height:90dvh; padding:0; color:var(--ink); background:#f3e8ce; border:2px solid var(--gold); border-radius:12px; box-shadow:0 20px 100px #0009,inset 0 0 0 4px #fff6; font:15px/1.5 "Nunito",sans-serif; overflow:auto; }
.nr-box-dialog::backdrop { background:#061521cc; backdrop-filter:blur(5px); }
.nr-box-dialog * { box-sizing:border-box; }
.nr-box-header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:16px 24px; color:#fce5aa; background:linear-gradient(135deg,#173e55,#091c2b); border-bottom:3px double #bd9445; }
.nr-box-eyebrow { font-size:10px; letter-spacing:.2em; color:#d4b875; }
.nr-box-header h2 { margin:2px 0 0; color:inherit; font:bold 26px Georgia,serif; }
.nr-box-close { width:38px; height:38px; border:1px solid #a58950; border-radius:6px; color:#ffe9b7; background:#ffffff08; font-size:28px; cursor:pointer; }
.nr-box-body { padding:20px 24px 24px; background:radial-gradient(ellipse at top,#fff9eccc,transparent 80%); }
.nr-box-lead { margin:0 0 16px; color:#51636a; text-align:center; font-size:14px; }
.nr-box-summary { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:20px; }
.nr-box-summary span { border:1px solid #d1b471; border-radius:30px; padding:6px 14px; background:#fff9e8; font-weight:800; color:#5e4613; }
.nr-box-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.nr-box-single { max-width:330px; margin:0 auto; }
.nr-box-reward { position:relative; min-width:0; padding:16px 10px; text-align:center; border:1px solid #c6b07e; border-radius:9px; background:linear-gradient(155deg,#fffaf0,#ebdfc2); box-shadow:0 3px 9px #4b391515; animation:nr-reward-in .4s both; animation-delay:var(--reveal-delay,0ms); }
.nr-box-reward.raro { border-color:#af6ed0; background:radial-gradient(circle at 50% 30%,#d6b2ee70,#fcf3e1 70%); }
.nr-box-reward.xp { border-color:#538f89; background:radial-gradient(circle at 50% 30%,#a9d9ca70,#fcf3e1 70%); }
.nr-box-order { position:absolute; top:7px; left:10px; color:#847049; font-size:10px; }
.nr-box-art { width:100%; height:108px; display:grid; place-items:center; position:relative; }
.nr-box-art img { grid-area:1/1; width:100%; height:100%; max-height:108px; object-fit:contain; filter:drop-shadow(0 5px 5px #5f45192b); }
.nr-box-fallback { grid-area:1/1; font-size:36px; color:#b29243; }
.nr-box-fallback[hidden] { display:none; }
.nr-box-reward h3 { font:bold 14px/1.35 "Nunito",sans-serif; margin:12px 0 5px; min-height:2.7em; color:var(--ink); }
.nr-box-value { display:block; color:#92630d; font-size:21px; line-height:1.3; overflow-wrap:anywhere; }
.nr-box-reward.raro .nr-box-value { color:#733e91; font-size:17px; }
.nr-box-reward.xp .nr-box-value { color:#237568; }
.nr-box-reward p { font-size:11px; color:#5e675e; margin:6px 0 0; }
.nr-box-single .nr-box-art,.nr-box-single .nr-box-art img { height:200px; max-height:200px; }
.nr-box-single h3 { font-size:18px; min-height:0; }
.nr-box-single .nr-box-value { font-size:28px; }
.nr-box-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:24px; }
.nr-box-button { padding:10px 20px; border:1px solid #98702f; border-radius:5px; background:linear-gradient(#dcb563,#aa7828); color:#251b0a; font:800 13px "Nunito",sans-serif; cursor:pointer; }
.nr-box-button.secondary { color:#20485f; background:#fcf5e5; }
.nr-box-button:focus-visible,.nr-box-close:focus-visible { outline:3px solid #4297bd; outline-offset:3px; }
.nr-box-chances { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.nr-box-chance { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:10px; padding:10px; border:1px solid #d4bc89; border-radius:6px; background:#fff8e9; }
.nr-box-chance .nr-box-art,.nr-box-chance .nr-box-art img { height:58px; max-height:58px; }
.nr-box-chance h3 { font-size:13px; margin:0; color:var(--ink); }
.nr-box-chance p { font-size:11px; margin:3px 0 0; color:#675c47; }
.nr-box-percent { font-size:17px; color:#2c7251; white-space:nowrap; }
.nr-box-note { font-size:12px; color:#655b49; margin:18px 0 0; }
.nr-box-opening { display:grid; place-items:center; min-height:220px; }
.nr-box-opening .nr-box-art { width:190px; height:190px; border-radius:50%; background:radial-gradient(#ffdf7970,transparent 65%); animation:nr-box-pulse 1.1s ease-in-out infinite alternate; }
.nr-box-opening .nr-box-art img { max-height:170px; }
.nr-box-opening-note { text-align:center; color:#84611d; }
@keyframes nr-reward-in { from { opacity:0; transform:translateY(14px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes nr-box-pulse { from { transform:scale(.94) rotate(-3deg); } to { transform:scale(1.06) rotate(3deg); } }
@media(max-width:600px) { .nr-box-header { padding:12px 14px; } .nr-box-header h2 { font-size:22px; } .nr-box-body { padding:14px; } .nr-box-chances { grid-template-columns:1fr; } .nr-box-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .nr-box-grid.nr-box-single { grid-template-columns:1fr; } .nr-box-value { font-size:18px; } .nr-box-reward { padding:14px 7px; } }
@media(prefers-reduced-motion:reduce) { .nr-box-reward,.nr-box-opening .nr-box-art { animation:none; } }
