/* Nối Từ Việt 3.9.71: event countdown and task rewards, scoped to avoid impacting chat/rooms. */
#ntv-game-root .ntv-reward-teaser{
  margin:10px 0 12px;padding:12px 14px;border:2px solid #d4a84d;border-radius:17px;
  color:#24453c;background:linear-gradient(120deg,#fff6d2,#edfff5 56%,#e9fff5);
  box-shadow:0 4px 0 #a8853c38;
}
#ntv-game-root .ntv-reward-teaser-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
#ntv-game-root .ntv-reward-teaser h3{font-size:16px;line-height:1.3;margin:0;color:#734313}
#ntv-game-root .ntv-reward-open{padding:7px 12px;border:1px solid #a88f48;border-radius:10px;color:#155e4c;background:#fffefa;font-weight:800;cursor:pointer;min-height:36px}
#ntv-game-root .ntv-reward-mini-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:9px}
#ntv-game-root .ntv-reward-mini{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;border:1px solid #d6dfc1;padding:7px 10px;background:#ffffffb5;border-radius:12px;min-width:0;flex:1 1 220px;font-size:12px}
#ntv-game-root .ntv-reward-mini strong{color:#13614e}
#ntv-game-root .ntv-reward-mini [data-ntv-reward-countdown]{color:#a75d13;font-weight:800;white-space:nowrap}
#ntv-game-root .ntv-reward-mini img{width:33px;height:33px;object-fit:contain;flex:none}
#ntv-game-root .ntv-reward-mini small{white-space:normal}
#ntv-game-root .ntv-reward-modal{color:#225344}
#ntv-game-root .ntv-reward-modal h3{margin:14px 0 9px;color:#17614b;font-size:18px}
#ntv-game-root .ntv-reward-modal .ntv-rewards-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:10px}
#ntv-game-root .ntv-rewards-event,#ntv-game-root .ntv-rewards-mission{
  border:1px solid #d4dfc4;border-radius:13px;padding:12px;min-width:0;background:linear-gradient(130deg,#fff8df,#f8fff8);box-sizing:border-box
}
#ntv-game-root .ntv-rewards-event header{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}
#ntv-game-root .ntv-rewards-event header strong{color:#765016}
#ntv-game-root .ntv-rewards-event p{font-size:13px;margin:8px 0;color:#ad671d}
#ntv-game-root .ntv-rewards-prizes{display:flex;gap:7px;flex-wrap:wrap}
#ntv-game-root .ntv-reward-prize{display:flex;align-items:center;gap:6px;padding:6px;border:1px solid #deb967;border-radius:9px;background:#ffffffc9;font-size:12px;min-width:0}
#ntv-game-root .ntv-reward-prize img{height:42px;width:42px;object-fit:contain;flex:none}
#ntv-game-root .ntv-rewards-mission{display:flex;align-items:center;gap:10px}
#ntv-game-root .ntv-rewards-mission>div:first-child img{width:76px;height:58px;object-fit:contain}
#ntv-game-root .ntv-rewards-mission-details{flex:1;min-width:0}
#ntv-game-root .ntv-rewards-mission-details strong{display:block;color:#6f4b15}
#ntv-game-root .ntv-rewards-mission-details small{color:#356459;display:block}
#ntv-game-root .ntv-rewards-mission-details p{margin:5px 0;font-size:12px}
#ntv-game-root .ntv-rewards-progress{height:7px;width:100%;border-radius:6px;overflow:hidden;background:#d9e7dc;margin:6px 0}
#ntv-game-root .ntv-rewards-progress span{display:block;background:#11ab84;height:100%;max-width:100%}
#ntv-game-root .ntv-reward-empty{padding:16px;text-align:center;background:#f4fcf3;border-radius:10px;color:#336659}
/* Shortcodes outside the game, keep a separate safe presentation. */
.ntv-rewards-standalone{font:inherit;color:#234a3e;max-width:1100px;margin:16px auto;padding:18px;border:2px solid #ead096;border-radius:18px;background:#f8fff8;box-sizing:border-box}
.ntv-rewards-standalone h2{margin:0 0 15px;color:#166953}
.ntv-rewards-standalone .ntv-rewards-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,315px),1fr));gap:12px}
.ntv-rewards-standalone .ntv-rewards-event,.ntv-rewards-standalone .ntv-rewards-mission{background:white;border:1px solid #cbdcd2;border-radius:14px;padding:12px;box-sizing:border-box;min-width:0}
.ntv-rewards-standalone .ntv-rewards-event header{display:flex;flex-direction:column;gap:3px}
.ntv-rewards-standalone .ntv-rewards-event p{margin:9px 0;color:#a16521}
.ntv-rewards-standalone .ntv-rewards-prizes{display:flex;gap:8px;flex-wrap:wrap}
.ntv-rewards-standalone .ntv-reward-prize{display:flex;align-items:center;gap:5px;font-size:13px;padding:5px;border-radius:9px;background:#fff4cf}
.ntv-rewards-standalone .ntv-reward-prize img{height:46px;width:46px;object-fit:contain}
.ntv-rewards-standalone .ntv-rewards-mission{display:flex;gap:8px;align-items:center}
.ntv-rewards-standalone .ntv-rewards-mission img{height:55px;width:78px;object-fit:contain}
.ntv-rewards-standalone .ntv-rewards-mission-details{flex:1;min-width:0}
.ntv-rewards-standalone .ntv-rewards-mission-details p{margin:4px 0}
.ntv-rewards-standalone .ntv-rewards-progress{height:7px;background:#dfede4;border-radius:10px;overflow:hidden;margin:7px 0}
.ntv-rewards-standalone .ntv-rewards-progress span{display:block;height:100%;background:#14b991}
.ntv-rewards-admin-columns{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(380px,1.35fr);gap:18px;align-items:start;margin-top:16px}
.ntv-rewards-admin-card{background:white;border:1px solid #ccd5cc;border-radius:15px;padding:17px;box-shadow:0 3px 12px #00000008;min-width:0}
.ntv-rewards-admin-card h2{margin-top:0}
.ntv-rewards-admin-card label{font-size:13px;font-weight:600;color:#304842}
.ntv-rewards-admin-card label .widefat{margin-top:5px;max-width:100%}
.ntv-rewards-admin .ntv-rewards-prize-input{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin:14px 0}
.ntv-rewards-admin-event{border:1px solid #d3decf;border-radius:12px;background:#fafff8;padding:13px;margin-bottom:10px}
.ntv-rewards-admin-prize{display:inline-block;padding:5px 9px;margin:6px 5px 4px 0;border-radius:8px;background:#fff1c6;color:#71500b}
.ntv-rewards-admin-event small{color:#547166}
@media(max-width:850px){.ntv-rewards-admin-columns{grid-template-columns:1fr}}
@media(max-width:520px){#ntv-game-root .ntv-reward-teaser{padding:10px}#ntv-game-root .ntv-reward-mini{flex-basis:100%}.ntv-rewards-admin .ntv-rewards-prize-input{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-reward-teaser *, .ntv-rewards-standalone *{animation:none!important}}

.ntv-rewards-admin .ntv-reward-frame-preview{width:100px;height:100px;object-fit:contain;grid-column:1/-1;margin:0 auto;border:1px dashed #bca971;border-radius:12px;background:#fff9e8}
.ntv-rewards-admin .ntv-reward-frame-preview[hidden]{display:none!important}
