/* An NhiÃªn V41.16 â€” compact mobile-friendly abbot daily modal */
#anDailyV4116{border:0;padding:0;border-radius:24px;width:min(540px,calc(100vw - 26px));max-height:min(92dvh,840px);overflow:auto;background:#fff8ea;color:#422e20;box-shadow:0 30px 90px #120907b8;outline:0;overscroll-behavior:contain}
#anDailyV4116::backdrop{background:rgba(26,10,4,.68);backdrop-filter:blur(5px)}
.an-daily-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;background:linear-gradient(120deg,#f7e2a9,#fff7e4);border-bottom:1px solid #ead4a8}
.an-daily-top h2{font:800 clamp(19px,4vw,24px)/1.3 system-ui,sans-serif;color:#553014;margin:0}
.an-daily-top button{border:0;background:#ffffffb0;color:#5a3925;border-radius:50%;width:40px;height:40px;font-size:24px;cursor:pointer}
.an-daily-inside{padding:18px 20px 22px;font-family:system-ui,sans-serif;line-height:1.5}
.an-daily-intro{margin:0 0 12px;color:#75553a;font-size:14px}
.an-daily-header{padding:14px;border-radius:17px;background:#f2dfb9;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}
.an-daily-header b{display:block;font-size:15px}.an-daily-header small{display:block;color:#866640;margin-top:4px}
.an-daily-streak{border-radius:20px;background:#6d3d19;padding:8px 13px;color:#fff0d4;font-weight:800;white-space:nowrap}
.an-daily-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:9px 0 14px}
.an-daily-day{min-height:51px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #e7cea3;border-radius:11px;background:#fffcf4;font-weight:700;color:#876b4a;font-size:12px}
.an-daily-day.is-done{background:#e9cb83;border-color:#cfa657;color:#46280c}
.an-daily-day.is-special{background:#f9eabf;border-color:#d2a858}
.an-daily-btn{display:block;width:100%;border:0;border-radius:16px;padding:13px 15px;cursor:pointer;font:700 15px system-ui,sans-serif;background:linear-gradient(#f8d97b,#d5a044);color:#482a11}
.an-daily-btn:disabled{cursor:default;opacity:.55}
.an-daily-section{margin:20px 0 11px;font-size:17px;color:#5d3a1c}
.an-daily-task{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:13px 12px;background:#fff;border:1px solid #e9d7b7;border-radius:16px;margin:9px 0}
.an-daily-task strong{display:block;color:#50351c;font-size:14px}
.an-daily-task small{display:block;font-size:12px;color:#83674a;margin-top:5px}
.an-daily-bar{height:7px;border-radius:6px;background:#efe2c9;overflow:hidden;margin-top:9px}
.an-daily-bar span{display:block;height:100%;background:#c99a41;border-radius:6px;transition:width .3s}
.an-daily-task button{border:0;background:#62401c;color:#ffe9a9;padding:9px 11px;border-radius:11px;font-weight:700;font-size:12px;min-width:76px;cursor:pointer}
.an-daily-task button:disabled{opacity:.48;cursor:default}
.an-daily-feedback{padding:11px 12px;border-radius:11px;background:#f9ecd1;color:#68451f;min-height:20px;font-size:13px;margin-top:12px;white-space:pre-line}
.an-daily-footer{font-size:12px;color:#8b6f50;margin-top:14px;line-height:1.6}
.an-daily-npc-btn{width:100%;border-radius:12px;border:1px solid #d8ae5e;padding:11px 12px;margin:0 0 12px;background:linear-gradient(#fee6a6,#f1c567);color:#563313;font-weight:800;font-size:14px;cursor:pointer}
@media(max-width:480px){#anDailyV4116{max-height:90dvh;border-radius:20px}.an-daily-inside{padding:13px 14px 20px}.an-daily-top{padding:13px 15px}.an-daily-task{gap:8px}.an-daily-days{gap:4px}.an-daily-day{min-height:46px;font-size:11px}}
/* Rank is displayed BELOW the original name, with no sideways nudging and no extra tracking loops. */
.an412-nameplate .an-v4116-label-name{display:block;white-space:nowrap;font:inherit;line-height:1.15}
.an412-nameplate .an-v4116-label-role{display:block;font-size:10px;line-height:1.15;font-weight:600;letter-spacing:.015em;color:#f6cf8b;white-space:nowrap;margin-top:3px;text-shadow:0 1px 2px #291a11}
.an412-nameplate.an412-guest .an-v4116-label-role{color:#e5d9be}
.an412-nameplate.an412-bot .an-v4116-label-role{color:#dec391}
@media(max-width:700px){.an412-nameplate .an-v4116-label-role{font-size:9px;margin-top:2px}}
/* Khung nhiá»‡m vá»¥ á»Ÿ mÃ n hÃ¬nh háº¹p, ká»ƒ cáº£ khi thanh trÃ¬nh duyá»‡t thay Ä‘á»•i chiá»u cao. */
@media(max-width:600px){
 #anDailyV4116{box-sizing:border-box;width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));margin:auto;overflow-x:hidden}
 .an-daily-top{gap:8px}.an-daily-top h2{min-width:0;overflow-wrap:anywhere}.an-daily-top button{width:44px;height:44px;flex:none}
 .an-daily-inside{min-width:0;overflow-wrap:anywhere;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
 .an-daily-task{grid-template-columns:minmax(0,1fr) auto}.an-daily-task>div{min-width:0}.an-daily-task button{min-height:44px}
 .an-quest-tabs{max-width:100%;-webkit-overflow-scrolling:touch}.an-quest-tab{min-height:44px}
}
@media(max-width:340px){.an-daily-task{grid-template-columns:minmax(0,1fr)}.an-daily-task button{justify-self:start}.an-daily-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
